svn commit: trunk/uClibc/libpthread/linuxthreads.old
psm at uclibc.org
psm at uclibc.org
Wed Jan 25 14:50:39 UTC 2006
Author: psm
Date: 2006-01-25 06:50:38 -0800 (Wed, 25 Jan 2006)
New Revision: 13596
Log:
provide internal nanosleep/waitpid/sigaction/raise
Modified:
trunk/uClibc/libpthread/linuxthreads.old/signals.c
trunk/uClibc/libpthread/linuxthreads.old/wrapsyscall.c
Changeset:
Modified: trunk/uClibc/libpthread/linuxthreads.old/signals.c
===================================================================
--- trunk/uClibc/libpthread/linuxthreads.old/signals.c 2006-01-25 14:49:10 UTC (rev 13595)
+++ trunk/uClibc/libpthread/linuxthreads.old/signals.c 2006-01-25 14:50:38 UTC (rev 13596)
@@ -131,6 +131,7 @@
/* 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 @@
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 @@
}
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 @@
/* 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 @@
return -1;
}
}
+libpthread_hidden_def(raise)
Modified: trunk/uClibc/libpthread/linuxthreads.old/wrapsyscall.c
===================================================================
--- trunk/uClibc/libpthread/linuxthreads.old/wrapsyscall.c 2006-01-25 14:49:10 UTC (rev 13595)
+++ trunk/uClibc/libpthread/linuxthreads.old/wrapsyscall.c 2006-01-25 14:50:38 UTC (rev 13596)
@@ -102,9 +102,11 @@
/* 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 @@
/* 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). */
More information about the uClibc-cvs
mailing list