Fix signature of open_fd().
This commit is contained in:
parent
c62c1c0158
commit
6dcc1af7fb
|
@ -866,7 +866,7 @@ struct fd *alloc_fd( const struct fd_ops *fd_user_ops, struct object *user )
|
|||
/* open() wrapper using a struct fd */
|
||||
/* the fd must have been created with alloc_fd */
|
||||
/* on error the fd object is released */
|
||||
struct fd *open_fd( struct fd *fd, const char *name, int flags, int *mode )
|
||||
struct fd *open_fd( struct fd *fd, const char *name, int flags, mode_t *mode )
|
||||
{
|
||||
struct stat st;
|
||||
struct closed_fd *closed_fd;
|
||||
|
|
|
@ -45,7 +45,7 @@ struct fd_ops
|
|||
/* file descriptor functions */
|
||||
|
||||
extern struct fd *alloc_fd( const struct fd_ops *fd_user_ops, struct object *user );
|
||||
extern struct fd *open_fd( struct fd *fd, const char *name, int flags, int *mode );
|
||||
extern struct fd *open_fd( struct fd *fd, const char *name, int flags, mode_t *mode );
|
||||
extern struct fd *create_anonymous_fd( const struct fd_ops *fd_user_ops,
|
||||
int unix_fd, struct object *user );
|
||||
extern void *get_fd_user( struct fd *fd );
|
||||
|
|
Loading…
Reference in New Issue