PATCH: server/file.h and server/fd.c

Gerald Pfeifer pfeifer at dbai.tuwien.ac.at
Mon Mar 17 14:25:55 CST 2003


This is a minor outfall of the recent file/fd revamp. (If this is not
the desired fix, in fd.c we should use unsigned int intead of mode_t.)

Gerald

ChangeLog:
Fix signature of open_fd().

Index: fd.c
===================================================================
RCS file: /home/wine/wine/server/fd.c,v
retrieving revision 1.4
diff -u -3 -p -r1.4 fd.c
--- fd.c	12 Mar 2003 22:38:14 -0000	1.4
+++ fd.c	17 Mar 2003 20:24:32 -0000
@@ -504,7 +504,7 @@ struct fd *alloc_fd( const struct fd_ops
 /* 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;
Index: file.h
===================================================================
RCS file: /home/wine/wine/server/file.h,v
retrieving revision 1.4
diff -u -3 -p -r1.4 file.h
--- file.h	12 Mar 2003 22:38:14 -0000	1.4
+++ file.h	17 Mar 2003 20:24:32 -0000
@@ -43,7 +43,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 );



More information about the wine-patches mailing list