Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-09-01 09:17:34 +0400
committerChristopher Faylor <me@cgf.cx>2001-09-01 09:17:34 +0400
commite62ac9e86925090d0727605b33a1628d01b86158 (patch)
treee93ee4d420d352cc36cf1a9fbd530cf7f500f8d3 /winsup/cygwin/tty.h
parenta26a4cdbe0572f4c83d91b7193d5c53828757125 (diff)
* debug.cc (mark_closed): Rename from debug_mark_closed and make static.
(setclexec_pid): New function for marking saved handle as close-on-exec. (delete_handle): New function. (debug_fixup_after_fork): New function. * debug.h: Declare new functions, remove obsolete ones. * fork.cc (debug_fixup_after_fork): Call to cleanup close-on-exec handles. * fhandler.cc (fhandler_disk_file::close): Minor reorg. (fhandler_base::set_inheritance): Set flag appropriately for debugging when close-on-exec so forked process can delete closed handles. * tty.h (open_output_mutex): Eliminate unneeded argument. (open_input_mutex): Ditto. * fhandler_tty.cc (fhandler_tty_slave::open): reflect open_*_mutex argument changes. * fhandler.h (fhandler_socket): Make saw_shutdown_* functions type bool. * tty.cc (tty::get_event): Eliminate unneeded argument. (tty::common_init): Reflect change to get_event. Events should always be inherited.
Diffstat (limited to 'winsup/cygwin/tty.h')
-rw-r--r--winsup/cygwin/tty.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/winsup/cygwin/tty.h b/winsup/cygwin/tty.h
index 4b2ad7f4b..0730e51a9 100644
--- a/winsup/cygwin/tty.h
+++ b/winsup/cygwin/tty.h
@@ -86,7 +86,8 @@ class fhandler_pty_master;
class tty: public tty_min
{
- HANDLE get_event (const char *fmt, BOOL inherit, BOOL manual_reset = FALSE);
+ HANDLE get_event (const char *fmt, BOOL manual_reset = FALSE)
+ __attribute__ ((regparm (2)));
public:
HWND hwnd; /* Console window handle tty belongs to */
@@ -107,17 +108,17 @@ public:
HWND gethwnd () {return hwnd;}
void sethwnd (HWND wnd) {hwnd = wnd;}
int make_pipes (fhandler_pty_master *ptym);
- HANDLE open_output_mutex (BOOL inherit = FALSE)
+ HANDLE open_output_mutex ()
{
char buf[80];
__small_sprintf (buf, OUTPUT_MUTEX, ntty);
- return OpenMutex (MUTEX_ALL_ACCESS, inherit, buf);
+ return OpenMutex (MUTEX_ALL_ACCESS, TRUE, buf);
}
- HANDLE open_input_mutex (BOOL inherit = FALSE)
+ HANDLE open_input_mutex ()
{
char buf[80];
__small_sprintf (buf, INPUT_MUTEX, ntty);
- return OpenMutex (MUTEX_ALL_ACCESS, inherit, buf);
+ return OpenMutex (MUTEX_ALL_ACCESS, TRUE, buf);
}
BOOL exists ()
{