diff options
Diffstat (limited to 'libpthread')
-rw-r--r-- | libpthread/linuxthreads.old/signals.c | 6 | ||||
-rw-r--r-- | libpthread/linuxthreads.old/wrapsyscall.c | 4 |
2 files changed, 9 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) diff --git a/libpthread/linuxthreads.old/wrapsyscall.c b/libpthread/linuxthreads.old/wrapsyscall.c index 6b8a00bb5..369c190d5 100644 --- a/libpthread/linuxthreads.old/wrapsyscall.c +++ b/libpthread/linuxthreads.old/wrapsyscall.c @@ -102,9 +102,11 @@ CANCELABLE_SYSCALL (int, msync, (__ptr_t addr, size_t length, int flags), /* nanosleep(2). */ +libpthread_hidden_proto(nanosleep) CANCELABLE_SYSCALL (int, nanosleep, (const struct timespec *requested_time, struct timespec *remaining), (requested_time, remaining)) +libpthread_hidden_def(nanosleep) /* open(2). */ @@ -167,9 +169,11 @@ CANCELABLE_SYSCALL (__pid_t, wait, (__WAIT_STATUS_DEFN stat_loc), (stat_loc)) /* waitpid(2). */ +libpthread_hidden_proto(waitpid) CANCELABLE_SYSCALL (__pid_t, waitpid, (__pid_t pid, int *stat_loc, int options), (pid, stat_loc, options)) +libpthread_hidden_def(waitpid) /* write(2). */ |