accept4, dup3, pipe2: port to Cygwin
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 9 Jul 2013 17:00:58 +0000 (10:00 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 9 Jul 2013 17:02:10 +0000 (10:02 -0700)
commitceb26704b6d3047bfd7c109a471c9d6c7c812904
tree4347a5f3a82b19083f54d5e02019f4a36c0d0e0d
parent41d1b6c42641a5b9e21486ca2074198ee7909bd7
accept4, dup3, pipe2: port to Cygwin

Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
* lib/accept4.c (accept4) [O_BINARY]:
* lib/dup3.c (dup3) [O_BINARY]:
* lib/pipe2.c (pipe2) [O_BINARY]:
Use set_binary_mode, not setmode.
* lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
* modules/binary-io (Depends-on): Remove module indicator.
These last two bits undo the previous change to pipe2 and binary-io.
ChangeLog
lib/accept4.c
lib/dup3.c
lib/pipe2.c
modules/binary-io