OSDN Git Service

* fhandler.h (fhandler_pipe::hit_eof): New method.
authorcgf <cgf>
Mon, 24 Sep 2001 21:50:43 +0000 (21:50 +0000)
committercgf <cgf>
Mon, 24 Sep 2001 21:50:43 +0000 (21:50 +0000)
commit2658b0078c0b27cb332afb792d20645b56eab65c
tree6fac42f065d0660aed59de0dbb0222bfdfb2ee64
parent152cff845abc7f6a2d76fa7f07391d567307f78e
* fhandler.h (fhandler_pipe::hit_eof): New method.
(writepipe_exists): New class element.
(orig_pid): Ditto.
(id): Ditto.
(is_slow): Eliminate.
* pipe.cc (fhandler_pipe::set_close_on_exec): Set inheritance on
writepipe_exists, if it exists.
(fhandler_pipe::hit_eof): New method, modelled after tty.
(fhandler_pipe::dup): Duplicate writepipe_exists, if it exists.
(make_pipe): Set up a dummy event for pipes on windows 9x.  The nonexistence
of this event means that the write side of the pipe has closed.
(_dup): Move to syscalls.cc
(_dup2): Ditto.

* dtable.cc (dtable::build_fhandler): Fill out set_names here, if appropriate.
* syscalls.cc (_open): Call set_names in build_fhandler.
winsup/cygwin/ChangeLog
winsup/cygwin/dtable.cc
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_tty.cc
winsup/cygwin/how-vfork-works.txt
winsup/cygwin/pipe.cc
winsup/cygwin/select.cc
winsup/cygwin/syscalls.cc