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>2002-10-20 08:15:50 +0400
committerChristopher Faylor <me@cgf.cx>2002-10-20 08:15:50 +0400
commitd25c187f126df8e4d1cff98368c24815d2088bd3 (patch)
tree204a4eb3eafc1c3955417c8d36388f7e030eb1e5 /winsup/cygwin/fhandler_tty.cc
parentbea966c0d9a65fd0c7b909fc5f8b2b2ff7635537 (diff)
Rename _kill() to kill() throughout. Rename _raise() to raise() throughout.
Rename _pid() to pid() throughout. * Makefile.in: Compile some objects with -fomit-frame-pointer. * cygwin.din: Reverse aliasing for _kill. * syscalls.cc (_getpid_r): New function, implemented for newlib compatibility. * shared.cc (open_shared): Remove reserving of memory since previous change eliminate the need for this hack.
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 c8b73d7ee..8455f75b3 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -612,7 +612,7 @@ fhandler_tty_slave::write (const void *ptr, size_t len)
default:
__seterrno_from_win_error (err);
}
- _raise (SIGHUP); /* FIXME: Should this be SIGTTOU? */
+ raise (SIGHUP); /* FIXME: Should this be SIGTTOU? */
towrite = (DWORD) -1;
break;
}
@@ -704,7 +704,7 @@ fhandler_tty_slave::read (void *ptr, size_t len)
if (!PeekNamedPipe (get_handle (), peek_buf, sizeof (peek_buf), &bytes_in_pipe, NULL, NULL))
{
termios_printf ("PeekNamedPipe failed, %E");
- _raise (SIGHUP);
+ raise (SIGHUP);
bytes_in_pipe = 0;
}
@@ -726,7 +726,7 @@ fhandler_tty_slave::read (void *ptr, size_t len)
if (ReadFile (get_handle (), buf, readlen, &n, NULL) == FALSE)
{
termios_printf ("read failed, %E");
- _raise (SIGHUP);
+ raise (SIGHUP);
}
/* MSDN states that 5th prameter can be used to determine total
number of bytes in pipe, but for some reason this number doesn't
@@ -735,7 +735,7 @@ fhandler_tty_slave::read (void *ptr, size_t len)
if (!PeekNamedPipe (get_handle (), peek_buf, 1, &bytes_in_pipe, NULL, NULL))
{
termios_printf ("PeekNamedPipe failed, %E");
- _raise (SIGHUP);
+ raise (SIGHUP);
bytes_in_pipe = 0;
}
if (n)
@@ -923,7 +923,7 @@ fhandler_tty_slave::ioctl (unsigned int cmd, void *arg)
/* background process */
termios_printf ("bg ioctl pgid %d, tpgid %d, ctty %d",
myself->pgid, get_ttyp ()->getpgid (), myself->ctty);
- _raise (SIGTTOU);
+ raise (SIGTTOU);
}
switch (cmd)
@@ -1104,7 +1104,7 @@ fhandler_pty_master::ioctl (unsigned int cmd, void *arg)
break;
case TIOCSWINSZ:
get_ttyp ()->winsize = * (struct winsize *) arg;
- _kill (-get_ttyp ()->getpgid (), SIGWINCH);
+ kill (-get_ttyp ()->getpgid (), SIGWINCH);
break;
case FIONBIO:
set_nonblocking (*(int *) arg);