* fhandler.h (fhandler_tty_slave::close): Declare new function.

(fhandler_tty_slave::dup): Declare new function.
(fhandler_tty_slave::fixup_after_function): Declare new function.
* fhandler_tty.cc (fhandler_tty_slave_open): Only increment
fhandler_console::open_fhs when associated with a pty.
(fhandler_tty_slave::close): Define new function.  Decrement
fhandler_console::open_fhs when associated with a pty.
(fhandler_tty_slave::dup): Define new function.  Increment
fhandler_console::open_fhs when associated with a pty.
(fhandler_tty_slave::fixup_after_fork): Define new function.  Increment
fhandler_console::open_fhs when associated with a pty.
This commit is contained in:
Christopher Faylor
2003-03-04 04:07:34 +00:00
parent b99f1bf031
commit c418817ed8
3 changed files with 55 additions and 2 deletions

View File

@@ -907,6 +907,9 @@ class fhandler_tty_slave: public fhandler_tty_common
int tcgetattr (struct termios *t);
int tcflush (int);
int ioctl (unsigned int cmd, void *);
int close ();
int dup (fhandler_base *child);
void fixup_after_fork (HANDLE parent);
__off64_t lseek (__off64_t, int) { return 0; }
select_record *select_read (select_record *s);