pipe2: Remove dependency on 'nonblocking' module.
authorBruno Haible <bruno@clisp.org>
Thu, 2 Jun 2011 22:10:00 +0000 (00:10 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 4 Jun 2011 08:59:53 +0000 (10:59 +0200)
commit64e338384bc99dfb49c4f46648b3fa0c50e8491d
tree0fc0fc10079262643c99b1d45f2036fd69dc9ec3
parent1b20f727196f5f3361c2edf5ca28ac0032425706
pipe2: Remove dependency on 'nonblocking' module.

* lib/pipe2.c: Include verify.h. Include nonblocking.h only if
O_NONBLOCK is defined by gnulib.
(pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
is zero.
* modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
* tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
defined by gnulib.
(get_nonblocking_flag): New function.
(main): Test O_NONBLOCK flag only if it is nonzero.
ChangeLog
doc/glibc-functions/pipe2.texi
lib/pipe2.c
modules/pipe2
tests/test-pipe2.c