From: Bruno Haible Date: Sun, 17 Apr 2011 21:16:13 +0000 (+0200) Subject: nonblocking: Add comment. X-Git-Tag: v0.1~2934 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=e9da144137c07d2ec6f94745a347f771d14d2a10;p=gnulib.git nonblocking: Add comment. * lib/fcntl.in.h (O_NONBLOCK): Add comment. --- diff --git a/ChangeLog b/ChangeLog index d0923da0e..1f09ff845 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-04-17 Bruno Haible + nonblocking: Add comment. + * lib/fcntl.in.h (O_NONBLOCK): Add comment. + +2011-04-17 Bruno Haible + nonblocking: Add tests for sockets. * tests/test-nonblocking-socket.sh: New file. * tests/test-nonblocking-socket-main.c: New file. diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h index 971316fc0..ce7c8c016 100644 --- a/lib/fcntl.in.h +++ b/lib/fcntl.in.h @@ -218,6 +218,9 @@ _GL_WARN_ON_USE (openat, "openat is not portable - " # define O_NONBLOCK O_NDELAY #endif +/* If the gnulib module 'nonblocking' is in use, guarantee a working non-zero + value of O_NONBLOCK. Otherwise, O_NONBLOCK is defined (above) to O_NDELAY + or to 0 as fallback. */ #if @GNULIB_NONBLOCKING@ # if O_NONBLOCK # define GNULIB_defined_O_NONBLOCK 0