diff options
author | Christopher Faylor <me@cgf.cx> | 2003-12-07 22:37:12 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-12-07 22:37:12 +0000 |
commit | 2e008fb91f34b5a257305a1e9e42f60fb0aef81d (patch) | |
tree | f6c5fd9e3d77b40fbe13f5ae6d6dbc2ebf88324c /winsup/cygwin/tty.h | |
parent | 2e3ff06d3c0424e2862afba051c4928d268a21c7 (diff) | |
download | cygnal-2e008fb91f34b5a257305a1e9e42f60fb0aef81d.tar.gz cygnal-2e008fb91f34b5a257305a1e9e42f60fb0aef81d.tar.bz2 cygnal-2e008fb91f34b5a257305a1e9e42f60fb0aef81d.zip |
Change use of BOOL, TRUE, FALSE to bool, true, false, as appropriate,
throughout.
* tty.cc (tty::common_init): Remove call to SetKernelObjectSecurity and edit
some comments.
* cygheap.h (init_cygheap::ctty): Add new element.
* devices.in (device::parse): Remove special handling for /dev/tty.
* devices.cc: Regenerate.
* dtable.cc (build_fh_pc): Don't reset /dev/tty device. Let the device opener
do that.
* fhandler_termios.cc (tty_min::set_ctty): Redefine to _pinfo class.
* fhandler_tty.cc (fhandler_tty_common::set_close_on_exec): Avoid setting
noninherit flag for ctty.
* tty.h: Move BOOLs to bools.
(tty_min::set_ctty): Redeclare to _pinfo class.
* pinfo.cc (_pinfo::set_ctty): Define new function based on tty_min::set_ctty.
Change first argument from tty number to tty_min class.
* pinfo.h (_pinfo::set_ctty): Declare.
* fhandler_console.cc (fhandler_console::get_tty_stuff): Reflect move of
set_ctty to _pinfo class.
* fhandler_tty.cc (fhandler_tty_slave::open): Treat FH_TTY specially. Use
saved cygheap value if it exists. Otherwise convert to real device and save on
first time open.
(fhandler_tty_common::dup): Potentially set controlling tty if duping a slave
tty.
* syscalls.cc (setsid): Close controlling tty in cygheap.
* tty.cc: Change some BOOLs to bools.
Diffstat (limited to 'winsup/cygwin/tty.h')
-rw-r--r-- | winsup/cygwin/tty.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/winsup/cygwin/tty.h b/winsup/cygwin/tty.h index 30d8bb03b..8153aaf4d 100644 --- a/winsup/cygwin/tty.h +++ b/winsup/cygwin/tty.h @@ -61,7 +61,6 @@ public: void setpgid (int pid) {pgid = pid;} int getsid () {return sid;} void setsid (pid_t tsid) {sid = tsid;} - void set_ctty (int ttynum, int flags); void kill_pgrp (int sig); struct termios ti; struct winsize winsize; @@ -98,17 +97,17 @@ public: HANDLE from_slave, to_master; int read_retval; - BOOL was_opened; /* True if opened at least once. */ + bool was_opened; /* True if opened at least once. */ void init (); HANDLE create_inuse (const char *); - BOOL common_init (fhandler_pty_master *); - BOOL alive (const char *fmt); - BOOL slave_alive (); - BOOL master_alive (); + bool common_init (fhandler_pty_master *); + bool alive (const char *fmt); + bool slave_alive (); + bool master_alive (); HWND gethwnd () {return hwnd;} void sethwnd (HWND wnd) {hwnd = wnd;} - int make_pipes (fhandler_pty_master *ptym); + bool make_pipes (fhandler_pty_master *ptym); HANDLE open_output_mutex () { char buf[80]; @@ -121,7 +120,7 @@ public: __small_sprintf (buf, INPUT_MUTEX, ntty); return OpenMutex (MUTEX_ALL_ACCESS, TRUE, buf); } - BOOL exists () + bool exists () { HANDLE h = open_output_mutex (); if (h) |