From e9da144137c07d2ec6f94745a347f771d14d2a10 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 17 Apr 2011 23:16:13 +0200 Subject: [PATCH] nonblocking: Add comment. * lib/fcntl.in.h (O_NONBLOCK): Add comment. --- ChangeLog | 5 +++++ lib/fcntl.in.h | 3 +++ 2 files changed, 8 insertions(+) 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 -- 2.30.2