From: Bruno Haible Date: Sun, 17 Apr 2011 21:16:13 +0000 (+0200) Subject: nonblocking: Add comment. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9da144137c07d2ec6f94745a347f771d14d2a10;p=pspp nonblocking: Add comment. * lib/fcntl.in.h (O_NONBLOCK): Add comment. --- diff --git a/ChangeLog b/ChangeLog index d0923da0e9..1f09ff8458 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h index 971316fc05..ce7c8c016c 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