summaryrefslogtreecommitdiff
path: root/libpthread
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-25 14:53:46 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-25 14:53:46 +0000
commitcb62bafefd7196fda338bb13629ef1080d94a1c2 (patch)
tree80fe0a2fb232a457ed441ecf48974553b930b20a /libpthread
parent73a0370c804997360877a50a97b5bd68e73d7b08 (diff)
user internal versions of waitpid/raise/nanosleep
Diffstat (limited to 'libpthread')
-rw-r--r--libpthread/linuxthreads.old/manager.c2
-rw-r--r--libpthread/linuxthreads.old/spinlock.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/libpthread/linuxthreads.old/manager.c b/libpthread/linuxthreads.old/manager.c
index 8a33b1ca2..637a578d5 100644
--- a/libpthread/linuxthreads.old/manager.c
+++ b/libpthread/linuxthreads.old/manager.c
@@ -44,6 +44,8 @@
# define USE_SELECT
#endif
+libpthread_hidden_proto(waitpid)
+libpthread_hidden_proto(raise)
/* Array of active threads. Entry 0 is reserved for the initial thread. */
struct pthread_handle_struct __pthread_handles[PTHREAD_THREADS_MAX] =
diff --git a/libpthread/linuxthreads.old/spinlock.c b/libpthread/linuxthreads.old/spinlock.c
index cdf45f195..e00bc3156 100644
--- a/libpthread/linuxthreads.old/spinlock.c
+++ b/libpthread/linuxthreads.old/spinlock.c
@@ -26,13 +26,15 @@
#include "spinlock.h"
#include "restart.h"
+libpthread_hidden_proto(nanosleep)
+
static void __pthread_acquire(int * spinlock);
static inline void __pthread_release(int * spinlock)
{
WRITE_MEMORY_BARRIER();
*spinlock = __LT_SPINLOCK_INIT;
- __asm __volatile ("" : "=m" (*spinlock) : "m" (*spinlock));
+ __asm __volatile__ ("" : "=m" (*spinlock) : "m" (*spinlock));
}