aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/signal.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-10-20 04:15:50 +0000
committerChristopher Faylor <me@cgf.cx>2002-10-20 04:15:50 +0000
commitd25c187f126df8e4d1cff98368c24815d2088bd3 (patch)
tree204a4eb3eafc1c3955417c8d36388f7e030eb1e5 /winsup/cygwin/signal.cc
parentbea966c0d9a65fd0c7b909fc5f8b2b2ff7635537 (diff)
downloadnewlib-d25c187f126df8e4d1cff98368c24815d2088bd3.zip
newlib-d25c187f126df8e4d1cff98368c24815d2088bd3.tar.gz
newlib-d25c187f126df8e4d1cff98368c24815d2088bd3.tar.bz2
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/signal.cc')
-rw-r--r--winsup/cygwin/signal.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc
index 07417de..382a8a2 100644
--- a/winsup/cygwin/signal.cc
+++ b/winsup/cygwin/signal.cc
@@ -181,14 +181,13 @@ kill_worker (pid_t pid, int sig)
}
int
-_raise (int sig)
+raise (int sig)
{
- return _kill (myself->pid, sig);
+ return kill (myself->pid, sig);
}
-/* This is called _kill because the real kill is in newlib. */
int
-_kill (pid_t pid, int sig)
+kill (pid_t pid, int sig)
{
sigframe thisframe (mainthread);
syscall_printf ("kill (%d, %d)", pid, sig);
@@ -256,7 +255,7 @@ kill_pgrp (pid_t pid, int sig)
extern "C" int
killpg (pid_t pgrp, int sig)
{
- return _kill (-pgrp, sig);
+ return kill (-pgrp, sig);
}
extern "C" void
@@ -279,7 +278,7 @@ abort (void)
sigdelset (&sig_mask, SIGABRT);
set_process_mask (sig_mask);
- _raise (SIGABRT);
+ raise (SIGABRT);
(void) thisframe.call_signal_handler (); /* Call any signal handler */
do_exit (1); /* signal handler didn't exit. Goodbye. */
}