pipe2: Remove dependency on 'nonblocking' module.
authorBruno Haible <bruno@clisp.org>
Thu, 2 Jun 2011 22:10:00 +0000 (00:10 +0200)
committerIan Beckwith <ianb@erislabs.net>
Thu, 9 Jun 2011 23:30:46 +0000 (00:30 +0100)
commite54b6161486475d120c0a37a55518eba9dbb228c
tree37d1cfea39a8db1cd36eac72a82292b567d2c766
parenta39d56cfe7d904b61aba940b20de06b94b6a60f8
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.
(cherry picked from commit 64e338384bc99dfb49c4f46648b3fa0c50e8491d)
ChangeLog
doc/glibc-functions/pipe2.texi
lib/pipe2.c
modules/pipe2
tests/test-pipe2.c