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>2004-05-28 23:50:07 +0400
committerChristopher Faylor <me@cgf.cx>2004-05-28 23:50:07 +0400
commite3778517d9c6409c9c917db83ccac20de1800a29 (patch)
tree407e958798d6f156ff0762350734b7b92cf032d8 /winsup/cygwin/fhandler_tty.cc
parentdccc3e5d2c6059410c12feb9e5d26f3176334011 (diff)
* path.cc (chdir): Always use the normalized_path as posix_cwd, except if it
starts with a drive. Also perform whitespace cleanup.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r--winsup/cygwin/fhandler_tty.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index bf17e8331..f7831fe9b 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -299,7 +299,7 @@ fhandler_pty_master::process_slave_output (char *buf, size_t len, int pktmode_on
goto out;
/* DISCARD (FLUSHO) and tcflush can finish here. */
if (n == 0 && (get_ttyp ()->ti.c_lflag & FLUSHO || !buf))
- goto out;
+ goto out;
if (n == 0 && is_nonblocking ())
{
set_errno (EAGAIN);
@@ -587,7 +587,7 @@ fhandler_tty_slave::open (int flags, mode_t)
termios_printf ("SetProcessWindowStation %d, %E", b);
}
b = AllocConsole (); // will cause flashing if workstation
- // stuff fails
+ // stuff fails
termios_printf ("%d = AllocConsole (), %E", b);
if (b)
init_console_handler ();
@@ -809,7 +809,7 @@ fhandler_tty_slave::read (void *ptr, size_t& len)
/* On first peek determine no. of bytes to flush. */
if (!ptr && len == UINT_MAX)
- len = (size_t) bytes_in_pipe;
+ len = (size_t) bytes_in_pipe;
if (ptr && !vmin && !time_to_wait)
{
@@ -847,7 +847,7 @@ fhandler_tty_slave::read (void *ptr, size_t& len)
len -= n;
totalread += n;
if (ptr)
- {
+ {
memcpy (ptr, buf, n);
ptr = (char *) ptr + n;
}
@@ -864,7 +864,7 @@ fhandler_tty_slave::read (void *ptr, size_t& len)
if (!bytes_in_pipe)
break;
continue;
- }
+ }
if (get_ttyp ()->read_retval < 0) // read error
{
@@ -1414,7 +1414,7 @@ fhandler_tty_master::init_console ()
return -1;
console->init (INVALID_HANDLE_VALUE, GENERIC_READ | GENERIC_WRITE, O_BINARY);
- cygheap->open_fhs--; /* handled when individual fds are opened */
+ cygheap->open_fhs--; /* handled when individual fds are opened */
console->uninterruptible_io (true);
return 0;
}