[Libsysio-commit] HEAD: libsysio/src fcntl.c
Brought to you by:
lward
From: Ruth K. <rk...@us...> - 2004-07-20 22:42:01
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20719 Modified Files: fcntl.c Log Message: fcntl may have a non-zero return Index: fcntl.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/fcntl.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -w -b -B -p -r1.13 -r1.14 --- fcntl.c 3 Jul 2004 05:47:13 -0000 1.13 +++ fcntl.c 20 Jul 2004 22:41:52 -0000 1.14 @@ -133,7 +133,7 @@ SYSIO_INTERFACE_NAME(fcntl)(int fd, int } out: - SYSIO_INTERFACE_RETURN(err ? -1 : 0, err); + SYSIO_INTERFACE_RETURN((err < 0) ? -1 : err, (err < 0) ? err : 0); } #ifdef __GLIBC__ |