winsup/cygwin ChangeLog fhandler.cc fhandler.h ...
cgf@cygwin.com
cgf@cygwin.com
Fri Jul 24 20:54:00 GMT 2009
CVSROOT: /cvs/uberbaum
Module name: winsup
Changes by: cgf@sourceware.org 2009-07-24 20:54:33
Modified files:
cygwin : ChangeLog fhandler.cc fhandler.h
fhandler_clipboard.cc fhandler_console.cc
fhandler_dsp.cc fhandler_fifo.cc
fhandler_floppy.cc fhandler_mailslot.cc
fhandler_mem.cc fhandler_random.cc
fhandler_serial.cc fhandler_tape.cc
fhandler_tty.cc fhandler_virtual.cc
fhandler_windows.cc fhandler_zero.cc fork.cc
sigproc.cc sigproc.h syscalls.cc
Log message:
* sigproc.h (wait_for_sigthread): Eliminate parameter.
* sigproc.cc (wait_for_sigthread): Ditto. Don't synchronize with wait_sig
after receiving an event that it is ready to go.
(init_sig_pipe): New function.
(wait_sig): Call init_sig_pipe to create pipes for communicating signals to
this process. Don't send sigCONT signal when initializing.
* fork.cc (frok::child): Accommodate wait_for_sigpipe parameter change.
* fhandler.h (fhandler_*::write): Make ssize_t/__stdcall.
(fhandler_*::write_overlapped): Ditto.
(fhandler_*::raw_write): Ditto.
(fhandler_*::readv): Ditto.
(fhandler_*::writev): Ditto.
(fhandler_*::raw_read): Make __stdcall.
* fhandler: Accommodate changes to read/write functions throughout.
* fhandler_clipboard.cc: Ditto.
* fhandler_console.cc: Ditto.
* fhandler_dsp.cc: Ditto.
* fhandler_fifo.cc: Ditto.
* fhandler_mailslot.cc: Ditto.
* fhandler_mem.cc: Ditto.
* fhandler_mem.cc: Ditto.
* fhandler_random.cc: Ditto.
* fhandler_tape.cc: Ditto.
* fhandler_tty.cc: Ditto.
* fhandler_virtual.cc: Ditto.
* fhandler_windows.cc: Ditto.
* fhandler_zero.cc: Ditto.
* syscalls.cc (readv): Use ssize_t as temp variable.
* fhandler.cc (fhandler_base::read): Coerce returned len to signed or it will
never be treated as < 0.
(fhandler_base::wait_overlapped): Minimize calls to GetLastError. Remove
duplicate debugging test. Fix error return.
* fhandler.h (fhandler_fifo::fifo_name): Declare new function.
(fhandler_fifo::close): Ditto.
(fhandler_fifo::dup): Ditto.
(fhandler_fifo::close_on_exec): Ditto.
* fhandler.cc (fhandler_fifo::fifo_name): Define new function.
(FIFO_BUF_SIZE): New define.
(cnp): Ditto.
(fhandler_fifo::open): Rework. Use cnp to open named pipe. Always open write
side as a client. Open dummy client when writing and can't connect.
(wait): Rework. Implement fifo_wait_for_next_client. Handle signals during
connect better. Add new fifo_wait_for_server code which polls
(sigh) waiting for server.
(fhandler_fifo::raw_read): Handle transition states when one client closes and
another is available.
(fhandler_fifo::close): Define.
(fhandler_fifo::dup): Ditto.
(fhandler_fifo::close_on_exec): Ditto.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/ChangeLog.diff?cvsroot=uberbaum&r1=1.4594&r2=1.4595
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler.cc.diff?cvsroot=uberbaum&r1=1.351&r2=1.352
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler.h.diff?cvsroot=uberbaum&r1=1.374&r2=1.375
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_clipboard.cc.diff?cvsroot=uberbaum&r1=1.43&r2=1.44
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_console.cc.diff?cvsroot=uberbaum&r1=1.199&r2=1.200
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_dsp.cc.diff?cvsroot=uberbaum&r1=1.51&r2=1.52
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_fifo.cc.diff?cvsroot=uberbaum&r1=1.34&r2=1.35
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_floppy.cc.diff?cvsroot=uberbaum&r1=1.54&r2=1.55
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_mailslot.cc.diff?cvsroot=uberbaum&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_mem.cc.diff?cvsroot=uberbaum&r1=1.54&r2=1.55
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_random.cc.diff?cvsroot=uberbaum&r1=1.37&r2=1.38
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_serial.cc.diff?cvsroot=uberbaum&r1=1.72&r2=1.73
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_tape.cc.diff?cvsroot=uberbaum&r1=1.70&r2=1.71
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_tty.cc.diff?cvsroot=uberbaum&r1=1.189&r2=1.190
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_virtual.cc.diff?cvsroot=uberbaum&r1=1.50&r2=1.51
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_windows.cc.diff?cvsroot=uberbaum&r1=1.29&r2=1.30
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_zero.cc.diff?cvsroot=uberbaum&r1=1.30&r2=1.31
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fork.cc.diff?cvsroot=uberbaum&r1=1.206&r2=1.207
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/sigproc.cc.diff?cvsroot=uberbaum&r1=1.315&r2=1.316
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/sigproc.h.diff?cvsroot=uberbaum&r1=1.88&r2=1.89
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/syscalls.cc.diff?cvsroot=uberbaum&r1=1.526&r2=1.527
More information about the Cygwin-cvs
mailing list