diff options
Diffstat (limited to 'libpthread/linuxthreads.old/signals.c')
-rw-r--r-- | libpthread/linuxthreads.old/signals.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libpthread/linuxthreads.old/signals.c b/libpthread/linuxthreads.old/signals.c index 62dd9b503..23ba9778f 100644 --- a/libpthread/linuxthreads.old/signals.c +++ b/libpthread/linuxthreads.old/signals.c @@ -131,6 +131,7 @@ static void pthread_sighandler_rt(int signo, struct siginfo *si, /* The wrapper around sigaction. Install our own signal handler around the signal. */ +libpthread_hidden_proto(sigaction) int sigaction(int sig, const struct sigaction * act, struct sigaction * oact) { @@ -162,7 +163,7 @@ printf(__FUNCTION__": pthreads wrapper!\n"); if (__libc_sigaction(sig, newactp, oact) == -1) return -1; #ifdef DEBUG_PT -printf(__FUNCTION__": sighandler installed, __sigaction successful\n"); +printf(__FUNCTION__": sighandler installed, sigaction successful\n"); #endif if (sig > 0 && sig < NSIG) { @@ -175,6 +176,7 @@ printf(__FUNCTION__": sighandler installed, __sigaction successful\n"); } return 0; } +libpthread_hidden_def(sigaction) /* A signal handler that does nothing */ static void pthread_null_sighandler(int sig attribute_unused) { } @@ -235,6 +237,7 @@ int sigwait(const sigset_t * set, int * sig) /* Redefine raise() to send signal to calling thread only, as per POSIX 1003.1c */ +libpthread_hidden_proto(raise) int raise (int sig) { int retcode = pthread_kill(pthread_self(), sig); @@ -245,3 +248,4 @@ int raise (int sig) return -1; } } +libpthread_hidden_def(raise) |