4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-15 02:09:19 +08:00
Christopher Faylor 3378bdfc0a * fhandler.cc (fhandler_base::fixup_after_exec): Declare here.
* fhandler.h (fhandler_base::fixup_after_exec): Make non-inline.
(fhandler_termios::fixup_after_fork): Delete declaration.
(fhandler_termios::fixup_after_exec): Ditto.
(fhandler_tty_common::inuse): Remove.
(fhandler_tty_common::dup): Delete declaration.
(fhandler_tty_common::fixup_after_fork): Ditto.
(fhandler_tty_slave::fixup_after_exec): Declare new function.
(fhandler_pty_master::dwProcessId): New variable.
(fhandler_pty_master::from_master): Ditto.
(fhandler_pty_master::to_master): Ditto.
(fhandler_pty_master::setup): New function.
(fhandler_pty_master::fixup_after_fork): Ditto.
(fhandler_pty_master::fixup_after_exec): Ditto.
* fhandler_termios.cc (fhandler_termios::fixup_after_exec): Delete definition.
(fhandler_termios::fixup_after_fork): Ditto.
* fhandler_tty.cc (fhandler_tty_master::init): Use fhandler_pty_master setup
function rather than obsolete tty::common_init.  Delete obsolete inuse setting.
(fhandler_tty_slave::fhandler_tty_slave): Set inuse to NULL here.
(fhandler_tty_slave::open): Change debugging output for clarity.  Check for
different things when doing a sanity check on the tty.  Reflect the fact that
master_pid now is the cygwin pid rather than the windows pid.  Use "arch"
rather than "archetype" for consistency.
(fhandler_tty_slave::close): Close inuse here.
(fhandler_tty_slave::dup): Remove old if 0'ed code.
(fhandler_pty_master::dup): New function.  Handles pty master archetype.
(fhandler_pty_master::fhandler_pty_master): Zero pty_master specific fields.
(fhandler_pty_master::open): Implement using archetypes, similar to slave.  Use
fhandler_pty_master setup function rather than obsolete tty::common_init.
Don't set inuse.
(fhandler_tty_common::close): Don't deal with inuse.  Delete old if 0'ed code.
(fhandler_pty_master::close): Implement using archetypes.  Close from_master
and to_master.
(fhandler_tty_common::set_close_on_exec): Just set close_on_exec flag here
since everything uses archetypes now.
(fhandler_tty_common::fixup_after_fork): Delete definition.
(fhandler_tty_slave::fixup_after_exec): Define new function.
(fhandler_pty_master::setup): New function, derived from tty::common_init.
(fhandler_pty_master::fixup_after_fork): New function.
(shared_info.h): Reset SHARED_INFO_CB to reflect new tty size.
* tty.cc (tty_list::terminate): Close individual handles from tty_master.
(tty::master_alive): Delete.
(tty::make_pipes): Ditto.
(tty::common_init): Ditto.
* tty.h (tty::from_slave): Delete.
(tty::to_slave): Ditto.
(tty::common_init): Delete declaration.
(tty::make_pipes): Ditto.
(tty::master_pid): Define as pid_t since it is now a cygwin pid.
2006-06-02 15:41:34 +00:00
..
2006-05-28 15:50:14 +00:00
2006-05-24 16:59:03 +00:00
2006-03-01 20:20:22 +00:00
2004-12-05 02:30:20 +00:00
2004-01-20 03:11:39 +00:00
2006-01-16 19:52:21 +00:00
2006-05-28 15:50:14 +00:00
2006-05-24 16:59:03 +00:00
2005-09-29 14:28:22 +00:00
2005-03-23 17:11:24 +00:00
2006-05-28 15:50:14 +00:00
2006-03-01 20:20:22 +00:00
2004-05-12 16:21:18 +00:00
2006-05-28 15:50:14 +00:00
2006-05-28 15:50:14 +00:00
2006-02-15 22:11:13 +00:00
2006-05-28 15:50:14 +00:00
2006-05-28 15:50:14 +00:00
2005-08-12 02:39:13 +00:00
2006-05-28 15:50:14 +00:00
2005-09-28 19:22:25 +00:00
2006-05-28 15:50:14 +00:00
2006-03-01 20:20:22 +00:00
2004-03-14 05:35:19 +00:00
2004-12-05 02:30:20 +00:00
2005-11-18 17:48:23 +00:00
2005-12-29 20:46:34 +00:00
2006-05-28 15:50:14 +00:00
2004-02-04 22:40:50 +00:00
2006-05-28 15:50:14 +00:00
2006-05-28 15:50:14 +00:00
2005-05-02 03:50:11 +00:00
2006-05-28 15:50:14 +00:00
2004-12-27 19:03:56 +00:00
2006-05-28 15:50:14 +00:00
2004-12-27 19:03:56 +00:00
2006-01-02 02:57:54 +00:00
2006-05-28 15:50:14 +00:00
2006-05-28 15:50:14 +00:00
2006-05-28 15:50:14 +00:00
2006-02-20 02:06:37 +00:00