diff options
author | Christopher Faylor <me@cgf.cx> | 2002-02-22 19:33:41 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-02-22 19:33:41 +0000 |
commit | 083abe54283b1c247e746f06849f7995abb236c4 (patch) | |
tree | ae5b3c2f9728e69917f1cdf707706aa3ec6797ae /winsup/cygwin/dtable.h | |
parent | a6790c5f113e0fa5daf45d0815876509cd7f546b (diff) | |
download | newlib-083abe54283b1c247e746f06849f7995abb236c4.zip newlib-083abe54283b1c247e746f06849f7995abb236c4.tar.gz newlib-083abe54283b1c247e746f06849f7995abb236c4.tar.bz2 |
* sync.h (new_muto): Just accept an argument which denotes the name of the
muto. Use this argument to construct static storage.
* cygheap.cc (cygheap_init): Reflect above change.
* exceptions.cc (events_init): Ditto.
* malloc.cc (malloc_init): Ditto.
* path.cc (cwdstuff::init): Ditto.
* cygheap.h (cwdstuff): Change name of lock element to make it less generic.
* path.cc (cwdstuff::get_hash): Ditto.
(cwdstuff::get_initial): Ditto.
(cwdstuff::set): Ditto.
(cwdstuff::get): Ditto.
* sigproc.cc (proc_subproc): Ditto.
* debug.cc (lock_debug): Change to method. Use method rather than macro
throughout.
* tty.h (tty_min::kill_pgrp): Declare new method.
* fhandler_termios.cc (tty_min::kill_pgrp): New method.
(fhandler_termios::line_edit): Use new method for killing process.
* dcrt0.cc (do_exit): Ditto.
* dtable.cc (dtable::get_debugger_info): New method for inheriting dtable info
from a debugger.
* tty.cc (tty_init): Attempt to grab file handle info from parent debugger, if
appropriate. # dtable.cc (dtable::stdio_init): Make this a method.
(dtable::init_std_file_from_handle): Don't set fd unless it's not open.
(dtable::build_fhandler_from_name): Move name setting to
dtable::build_fhandler.
(dtable::build_fhandler): Add win32 name parameter.
* dcrt0.cc (dll_crt0_1): Change to use dtable stdio_init.
* dtable.h (dtable): Reflect build_fhandler parameter change.
* mmap.cc (mmap_record::alloc_fh): Don't set name parameter in build_fhandler.
* net.cc (fdsock): Remove set_name call since it is now handled by
build_fhandler.
* sigproc.cc (proc_subproc): Release muto as early as possible.
Diffstat (limited to 'winsup/cygwin/dtable.h')
-rw-r--r-- | winsup/cygwin/dtable.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/dtable.h b/winsup/cygwin/dtable.h index ebf8ab2..47e0a3b 100644 --- a/winsup/cygwin/dtable.h +++ b/winsup/cygwin/dtable.h @@ -48,8 +48,8 @@ public: void fixup_before_exec (DWORD win_proc_id); void fixup_before_fork (DWORD win_proc_id); void fixup_after_fork (HANDLE); - fhandler_base *build_fhandler (int fd, DWORD dev, const char *name, - int unit = -1); + fhandler_base *build_fhandler (int fd, DWORD dev, const char *unix_name, + const char *win32_name = NULL, int unit = -1); fhandler_base *build_fhandler_from_name (int fd, const char *name, HANDLE h, path_conv& pc, unsigned opts = PC_SYM_FOLLOW, @@ -75,6 +75,8 @@ public: select_record *select_write (int fd, select_record *s); select_record *select_except (int fd, select_record *s); operator fhandler_base **() {return fds;} + void stdio_init (); + void get_debugger_info (); }; void dtable_init (void); |