Fix signature of open_fd().

This commit is contained in:
Gerald Pfeifer 2003-03-18 18:26:44 +00:00 committed by Alexandre Julliard
parent c62c1c0158
commit 6dcc1af7fb
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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 );