Browse Source

user internal versions of waitpid/raise/nanosleep

Peter S. Mazinger 18 years ago
parent
commit
cb62bafefd
2 changed files with 5 additions and 1 deletions
  1. 2 0
      libpthread/linuxthreads.old/manager.c
  2. 3 1
      libpthread/linuxthreads.old/spinlock.c

+ 2 - 0
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] =

+ 3 - 1
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));
 }