[Libsysio-commit] HEAD: libsysio/include dev.h inode.h
Brought to you by:
lward
From: Ruth K. <rk...@us...> - 2004-07-26 16:38:11
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10551/include Modified Files: dev.h inode.h Log Message: fcntl fixes: fcntl may return a positive or negative value. Driver function interfaces have been changed to accomodate a returned system call value in the arguments. The return value of the driver functions is 0 for success and -errno for failure. Index: dev.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/dev.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -w -b -B -p -r1.8 -r1.9 --- dev.h 21 Jul 2004 21:22:24 -0000 1.8 +++ dev.h 26 Jul 2004 16:38:01 -0000 1.9 @@ -122,7 +122,8 @@ extern const struct inode_ops _sysio_nod #define _sysio_nodev_inop_fcntl \ (int (*)(struct inode *, \ int, \ - va_list))_sysio_do_ebadf + va_list, \ + int *))_sysio_do_ebadf #define _sysio_nodev_inop_sync \ (int (*)(struct inode *))_sysio_do_ebadf #define _sysio_nodev_inop_datasync \ Index: inode.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/inode.h,v retrieving revision 1.19 retrieving revision 1.20 diff -u -w -b -B -p -r1.19 -r1.20 --- inode.h 21 Jul 2004 21:22:24 -0000 1.19 +++ inode.h 26 Jul 2004 16:38:01 -0000 1.20 @@ -103,7 +103,7 @@ struct inode_ops { int (*inop_write)(struct inode *ino, struct ioctx *ioctx); _SYSIO_OFF_T (*inop_pos)(struct inode *ino, _SYSIO_OFF_T off); int (*inop_iodone)(struct ioctx *iocp); - int (*inop_fcntl)(struct inode *ino, int cmd, va_list ap); + int (*inop_fcntl)(struct inode *ino, int cmd, va_list ap, int *rtn); int (*inop_sync)(struct inode *ino); int (*inop_datasync)(struct inode *ino); int (*inop_ioctl)(struct inode *ino, unsigned long int request, va_list ap); |