OSDN Git Service

Christopher Faylor <cgf@timesys.com>
authorcgf <cgf>
Fri, 3 Sep 2004 01:32:02 +0000 (01:32 +0000)
committercgf <cgf>
Fri, 3 Sep 2004 01:32:02 +0000 (01:32 +0000)
commitb334b22f821b8ed5205ee663c7e14de3f622fe10
treef0b8fd1e1d045c5bc7740d0ac6650b0963d95585
parent5eeacbc8559f418fb0a15a6012f0a519e46e822d
Christopher Faylor <cgf@timesys.com>
* autoload.cc (NtQueryInformationFile): Return nonzero on error.
* ntdll.h (FILE_PIPE_LOCAL_INFORMATION): Add.
(NtQueryInformationFile): Fix types for last two arguments.
* pipe.cc: Include stdlib.h, limits.h, and ntdll.h.
(create_selectable_pipe): New function to create a pipe that can be used with
NtQueryInformationFile for select.
(fhandler_pipe::create): Call create_selectable_pipe instead of CreatePipe.
(pipe): Use DEFAULT_PIPEBUFSIZE as argument to create_pipe.
* select.cc: Include limits.h and ntdll.h.
(peek_pipe): Add select_printf output.  Call NtQueryInformationFile to
implement select for write on pipes.
(fhandler_pipe::select_read): Reorder field assignments to be consistent with
fhandler_pipe::select_write.
(fhandler_pipe::select_write): Initialize startup, verify, cleanup, and
write_ready fields for select_record.
(fhandler_pipe::select_except): Tweak indentation to be consistent with
fhandler_pipe::select_write.
winsup/cygwin/ChangeLog
winsup/cygwin/autoload.cc
winsup/cygwin/ntdll.h
winsup/cygwin/pipe.cc
winsup/cygwin/select.cc