OSDN Git Service

nptl: fix old style function declerations
authorAustin Foxley <austinf@cetoncorp.com>
Thu, 10 Dec 2009 00:53:57 +0000 (16:53 -0800)
committerAustin Foxley <austinf@cetoncorp.com>
Thu, 10 Dec 2009 00:53:57 +0000 (16:53 -0800)
also fix a few shadowed local warnings

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
98 files changed:
libpthread/nptl/cleanup_compat.c
libpthread/nptl/cleanup_defer_compat.c
libpthread/nptl/pthreadP.h
libpthread/nptl/pthread_atfork.c
libpthread/nptl/pthread_attr_destroy.c
libpthread/nptl/pthread_attr_getdetachstate.c
libpthread/nptl/pthread_attr_getguardsize.c
libpthread/nptl/pthread_attr_getinheritsched.c
libpthread/nptl/pthread_attr_getschedparam.c
libpthread/nptl/pthread_attr_getschedpolicy.c
libpthread/nptl/pthread_attr_getscope.c
libpthread/nptl/pthread_attr_getstack.c
libpthread/nptl/pthread_attr_getstackaddr.c
libpthread/nptl/pthread_attr_getstacksize.c
libpthread/nptl/pthread_attr_init.c
libpthread/nptl/pthread_attr_setdetachstate.c
libpthread/nptl/pthread_attr_setguardsize.c
libpthread/nptl/pthread_attr_setinheritsched.c
libpthread/nptl/pthread_attr_setschedparam.c
libpthread/nptl/pthread_attr_setschedpolicy.c
libpthread/nptl/pthread_attr_setscope.c
libpthread/nptl/pthread_attr_setstack.c
libpthread/nptl/pthread_attr_setstackaddr.c
libpthread/nptl/pthread_attr_setstacksize.c
libpthread/nptl/pthread_barrier_destroy.c
libpthread/nptl/pthread_barrier_init.c
libpthread/nptl/pthread_barrierattr_destroy.c
libpthread/nptl/pthread_barrierattr_getpshared.c
libpthread/nptl/pthread_barrierattr_init.c
libpthread/nptl/pthread_barrierattr_setpshared.c
libpthread/nptl/pthread_cancel.c
libpthread/nptl/pthread_cond_destroy.c
libpthread/nptl/pthread_cond_init.c
libpthread/nptl/pthread_condattr_destroy.c
libpthread/nptl/pthread_condattr_getclock.c
libpthread/nptl/pthread_condattr_getpshared.c
libpthread/nptl/pthread_condattr_init.c
libpthread/nptl/pthread_condattr_setclock.c
libpthread/nptl/pthread_condattr_setpshared.c
libpthread/nptl/pthread_detach.c
libpthread/nptl/pthread_equal.c
libpthread/nptl/pthread_exit.c
libpthread/nptl/pthread_getattr_np.c
libpthread/nptl/pthread_getschedparam.c
libpthread/nptl/pthread_getspecific.c
libpthread/nptl/pthread_join.c
libpthread/nptl/pthread_key_create.c
libpthread/nptl/pthread_key_delete.c
libpthread/nptl/pthread_mutex_destroy.c
libpthread/nptl/pthread_mutex_init.c
libpthread/nptl/pthread_mutex_lock.c
libpthread/nptl/pthread_mutex_timedlock.c
libpthread/nptl/pthread_mutex_trylock.c
libpthread/nptl/pthread_mutex_unlock.c
libpthread/nptl/pthread_mutexattr_destroy.c
libpthread/nptl/pthread_mutexattr_getpshared.c
libpthread/nptl/pthread_mutexattr_gettype.c
libpthread/nptl/pthread_mutexattr_init.c
libpthread/nptl/pthread_mutexattr_setpshared.c
libpthread/nptl/pthread_mutexattr_settype.c
libpthread/nptl/pthread_rwlock_destroy.c
libpthread/nptl/pthread_rwlock_init.c
libpthread/nptl/pthread_rwlock_tryrdlock.c
libpthread/nptl/pthread_rwlock_trywrlock.c
libpthread/nptl/pthread_rwlockattr_destroy.c
libpthread/nptl/pthread_rwlockattr_getkind_np.c
libpthread/nptl/pthread_rwlockattr_getpshared.c
libpthread/nptl/pthread_rwlockattr_init.c
libpthread/nptl/pthread_rwlockattr_setkind_np.c
libpthread/nptl/pthread_rwlockattr_setpshared.c
libpthread/nptl/pthread_setcancelstate.c
libpthread/nptl/pthread_setcanceltype.c
libpthread/nptl/pthread_setconcurrency.c
libpthread/nptl/pthread_setschedparam.c
libpthread/nptl/pthread_setschedprio.c
libpthread/nptl/pthread_setspecific.c
libpthread/nptl/pthread_timedjoin.c
libpthread/nptl/pthread_tryjoin.c
libpthread/nptl/sem_close.c
libpthread/nptl/sem_destroy.c
libpthread/nptl/sem_getvalue.c
libpthread/nptl/sem_init.c
libpthread/nptl/sem_unlink.c
libpthread/nptl/sysdeps/i386/jmpbuf-unwind.h
libpthread/nptl/sysdeps/i386/pthread_spin_lock.c
libpthread/nptl/sysdeps/pthread/pthread_cond_timedwait.c
libpthread/nptl/sysdeps/pthread/pthread_cond_wait.c
libpthread/nptl/sysdeps/pthread/pthread_sigmask.c
libpthread/nptl/sysdeps/pthread/pthread_spin_destroy.c
libpthread/nptl/sysdeps/sparc/sparc32/jmpbuf-unwind.h
libpthread/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h
libpthread/nptl/sysdeps/unix/sysv/linux/pthread_kill.c
libpthread/nptl/sysdeps/unix/sysv/linux/timer_create.c
libpthread/nptl/sysdeps/unix/sysv/linux/timer_delete.c
libpthread/nptl/sysdeps/unix/sysv/linux/timer_getoverr.c
libpthread/nptl/sysdeps/unix/sysv/linux/timer_gettime.c
libpthread/nptl/sysdeps/unix/sysv/linux/timer_settime.c
libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h

index a25b397..77d714f 100644 (file)
 
 
 void
-_pthread_cleanup_push (buffer, routine, arg)
-     struct _pthread_cleanup_buffer *buffer;
-     void (*routine) (void *);
-     void *arg;
+_pthread_cleanup_push (
+     struct _pthread_cleanup_buffer *buffer,
+     void (*routine) (void *),
+     void *arg)
 {
   struct pthread *self = THREAD_SELF;
 
@@ -39,9 +39,9 @@ strong_alias (_pthread_cleanup_push, __pthread_cleanup_push)
 
 
 void
-_pthread_cleanup_pop (buffer, execute)
-     struct _pthread_cleanup_buffer *buffer;
-     int execute;
+_pthread_cleanup_pop (
+     struct _pthread_cleanup_buffer *buffer,
+     int execute)
 {
   struct pthread *self __attribute ((unused)) = THREAD_SELF;
 
index a0ed6da..8fd9b54 100644 (file)
 
 
 void
-_pthread_cleanup_push_defer (buffer, routine, arg)
-     struct _pthread_cleanup_buffer *buffer;
-     void (*routine) (void *);
-     void *arg;
+_pthread_cleanup_push_defer (
+     struct _pthread_cleanup_buffer *buffer,
+     void (*routine) (void *),
+     void *arg)
 {
   struct pthread *self = THREAD_SELF;
 
@@ -60,9 +60,9 @@ strong_alias (_pthread_cleanup_push_defer, __pthread_cleanup_push_defer)
 
 
 void
-_pthread_cleanup_pop_restore (buffer, execute)
-     struct _pthread_cleanup_buffer *buffer;
-     int execute;
+_pthread_cleanup_pop_restore (
+     struct _pthread_cleanup_buffer *buffer,
+     int execute)
 {
   struct pthread *self = THREAD_SELF;
 
index 45222f4..61d59f6 100644 (file)
@@ -108,8 +108,8 @@ extern int __pthread_debug attribute_hidden;
 /* Cancellation test.  */
 #define CANCELLATION_P(self) \
   do {                                                                       \
-    int cancelhandling = THREAD_GETMEM (self, cancelhandling);               \
-    if (CANCEL_ENABLED_AND_CANCELED (cancelhandling))                        \
+    int _cancelhandling = THREAD_GETMEM (self, cancelhandling);                      \
+    if (CANCEL_ENABLED_AND_CANCELED (_cancelhandling))                       \
       {                                                                              \
        THREAD_SETMEM (self, result, PTHREAD_CANCELED);                       \
        __do_cancel ();                                                       \
@@ -308,8 +308,7 @@ extern int __pthread_mutex_trylock (pthread_mutex_t *_mutex);
 extern int __pthread_mutex_lock (pthread_mutex_t *__mutex);
 extern int __pthread_mutex_lock_internal (pthread_mutex_t *__mutex)
      attribute_hidden;
-extern int __pthread_mutex_cond_lock (pthread_mutex_t *__mutex)
-     attribute_hidden internal_function;
+extern int __pthread_mutex_cond_lock (pthread_mutex_t *__mutex);
 extern int __pthread_mutex_unlock (pthread_mutex_t *__mutex);
 extern int __pthread_mutex_unlock_internal (pthread_mutex_t *__mutex)
      attribute_hidden;
index 491362e..5e9b352 100644 (file)
@@ -44,10 +44,10 @@ extern void *__dso_handle __attribute__ ((__weak__));
 /* Hide the symbol so that no definition but the one locally in the
    executable or DSO is used.  */
 int
-__pthread_atfork (prepare, parent, child)
-     void (*prepare) (void);
-     void (*parent) (void);
-     void (*child) (void);
+__pthread_atfork (
+     void (*prepare) (void),
+     void (*parent) (void),
+     void (*child) (void))
 {
   return __register_atfork (prepare, parent, child,
                            &__dso_handle == NULL ? NULL : __dso_handle);
index cae7ca0..f9e446a 100644 (file)
@@ -24,8 +24,7 @@
 #include "pthreadP.h"
 
 int
-__pthread_attr_destroy (attr)
-     pthread_attr_t *attr;
+__pthread_attr_destroy (pthread_attr_t *attr)
 {
   struct pthread_attr *iattr;
 
index 502cfa4..db0720e 100644 (file)
@@ -22,9 +22,7 @@
 
 
 int
-__pthread_attr_getdetachstate (attr, detachstate)
-     const pthread_attr_t *attr;
-     int *detachstate;
+__pthread_attr_getdetachstate (const pthread_attr_t *attr, int *detachstate)
 {
   struct pthread_attr *iattr;
 
index e1d0ed6..6fc3e6a 100644 (file)
@@ -22,9 +22,7 @@
 
 
 int
-pthread_attr_getguardsize (attr, guardsize)
-     const pthread_attr_t *attr;
-     size_t *guardsize;
+pthread_attr_getguardsize (const pthread_attr_t *attr, size_t *guardsize)
 {
   struct pthread_attr *iattr;
 
index f47bf71..3ff3040 100644 (file)
@@ -22,9 +22,9 @@
 
 
 int
-__pthread_attr_getinheritsched (attr, inherit)
-     const pthread_attr_t *attr;
-     int *inherit;
+__pthread_attr_getinheritsched (
+     const pthread_attr_t *attr,
+     int *inherit)
 {
   struct pthread_attr *iattr;
 
index 0ff0c0c..82b2371 100644 (file)
@@ -23,9 +23,9 @@
 
 
 int
-__pthread_attr_getschedparam (attr, param)
-     const pthread_attr_t *attr;
-     struct sched_param *param;
+__pthread_attr_getschedparam (
+        const pthread_attr_t *attr,
+        struct sched_param *param)
 {
   struct pthread_attr *iattr;
 
index 8364f3b..7b8f1de 100644 (file)
@@ -22,9 +22,9 @@
 
 
 int
-__pthread_attr_getschedpolicy (attr, policy)
-     const pthread_attr_t *attr;
-     int *policy;
+__pthread_attr_getschedpolicy (
+     const pthread_attr_t *attr,
+     int *policy)
 {
   struct pthread_attr *iattr;
 
index b6aa5a2..9b05ffa 100644 (file)
@@ -22,9 +22,9 @@
 
 
 int
-__pthread_attr_getscope (attr, scope)
-     const pthread_attr_t *attr;
-     int *scope;
+__pthread_attr_getscope (
+     const pthread_attr_t *attr,
+     int *scope)
 {
   struct pthread_attr *iattr;
 
index 1db135e..cb74536 100644 (file)
 
 
 int
-__pthread_attr_getstack (attr, stackaddr, stacksize)
-     const pthread_attr_t *attr;
-     void **stackaddr;
-     size_t *stacksize;
+__pthread_attr_getstack (
+     const pthread_attr_t *attr,
+     void **stackaddr,
+     size_t *stacksize)
 {
   struct pthread_attr *iattr;
 
index 7656600..305910c 100644 (file)
@@ -23,9 +23,9 @@
 
 
 int
-__pthread_attr_getstackaddr (attr, stackaddr)
-     const pthread_attr_t *attr;
-     void **stackaddr;
+__pthread_attr_getstackaddr (
+     const pthread_attr_t *attr,
+     void **stackaddr)
 {
   struct pthread_attr *iattr;
 
index d4ff54f..ec20f6b 100644 (file)
@@ -22,9 +22,9 @@
 
 
 int
-__pthread_attr_getstacksize (attr, stacksize)
-     const pthread_attr_t *attr;
-     size_t *stacksize;
+__pthread_attr_getstacksize (
+     const pthread_attr_t *attr,
+     size_t *stacksize)
 {
   struct pthread_attr *iattr;
 
index f07dfc7..161282c 100644 (file)
@@ -29,8 +29,7 @@ lll_lock_t __attr_list_lock = LLL_LOCK_INITIALIZER;
 
 
 int
-__pthread_attr_init_2_1 (attr)
-     pthread_attr_t *attr;
+__pthread_attr_init_2_1 (pthread_attr_t *attr)
 {
   struct pthread_attr *iattr;
 
index a0e6c20..b6d9bb5 100644 (file)
@@ -23,9 +23,7 @@
 
 
 int
-__pthread_attr_setdetachstate (attr, detachstate)
-     pthread_attr_t *attr;
-     int detachstate;
+__pthread_attr_setdetachstate (pthread_attr_t *attr, int detachstate)
 {
   struct pthread_attr *iattr;
 
index 4c674f4..a424312 100644 (file)
@@ -22,9 +22,7 @@
 
 
 int
-pthread_attr_setguardsize (attr, guardsize)
-     pthread_attr_t *attr;
-     size_t guardsize;
+pthread_attr_setguardsize (pthread_attr_t* attr, size_t guardsize)
 {
   struct pthread_attr *iattr;
 
index 8a77eeb..9d0234a 100644 (file)
@@ -23,9 +23,9 @@
 
 
 int
-__pthread_attr_setinheritsched (attr, inherit)
-     pthread_attr_t *attr;
-     int inherit;
+__pthread_attr_setinheritsched (
+     pthread_attr_t *attr,
+     int inherit)
 {
   struct pthread_attr *iattr;
 
index 976ad13..137fbe7 100644 (file)
@@ -24,9 +24,9 @@
 
 
 int
-__pthread_attr_setschedparam (attr, param)
-     pthread_attr_t *attr;
-     const struct sched_param *param;
+__pthread_attr_setschedparam (
+     pthread_attr_t *attr,
+     const struct sched_param *param)
 {
   assert (sizeof (*attr) >= sizeof (struct pthread_attr));
   struct pthread_attr *iattr = (struct pthread_attr *) attr;
index b9710d5..1d87b53 100644 (file)
@@ -23,9 +23,9 @@
 
 
 int
-__pthread_attr_setschedpolicy (attr, policy)
-     pthread_attr_t *attr;
-     int policy;
+__pthread_attr_setschedpolicy (
+     pthread_attr_t *attr,
+     int policy)
 {
   struct pthread_attr *iattr;
 
index 8b3e161..cc4e467 100644 (file)
@@ -23,9 +23,9 @@
 
 
 int
-__pthread_attr_setscope (attr, scope)
-     pthread_attr_t *attr;
-     int scope;
+__pthread_attr_setscope (
+     pthread_attr_t *attr,
+     int scope)
 {
   struct pthread_attr *iattr;
 
index ba8fd0e..80780a0 100644 (file)
 
 
 int
-__pthread_attr_setstack (attr, stackaddr, stacksize)
-     pthread_attr_t *attr;
-     void *stackaddr;
-     size_t stacksize;
+__pthread_attr_setstack (
+     pthread_attr_t *attr,
+     void *stackaddr,
+     size_t stacksize)
 {
   struct pthread_attr *iattr;
 
index 0d7a7c0..ead54ba 100644 (file)
@@ -23,9 +23,9 @@
 
 
 int
-__pthread_attr_setstackaddr (attr, stackaddr)
-     pthread_attr_t *attr;
-     void *stackaddr;
+__pthread_attr_setstackaddr (
+     pthread_attr_t *attr,
+     void *stackaddr)
 {
   struct pthread_attr *iattr;
 
index 98339b1..24e5b0a 100644 (file)
@@ -24,9 +24,9 @@
 
 
 int
-__pthread_attr_setstacksize (attr, stacksize)
-     pthread_attr_t *attr;
-     size_t stacksize;
+__pthread_attr_setstacksize (
+     pthread_attr_t *attr,
+     size_t stacksize)
 {
   struct pthread_attr *iattr;
 
index 492b294..628c1c3 100644 (file)
@@ -23,8 +23,7 @@
 
 
 int
-pthread_barrier_destroy (barrier)
-     pthread_barrier_t *barrier;
+pthread_barrier_destroy (pthread_barrier_t *barrier)
 {
   struct pthread_barrier *ibarrier;
   int result = EBUSY;
index 19e82fa..98a7ecc 100644 (file)
 
 
 int
-pthread_barrier_init (barrier, attr, count)
-     pthread_barrier_t *barrier;
-     const pthread_barrierattr_t *attr;
-     unsigned int count;
+pthread_barrier_init (
+     pthread_barrier_t *barrier,
+     const pthread_barrierattr_t *attr,
+     unsigned int count)
 {
   struct pthread_barrier *ibarrier;
 
index f947daf..5cdcb76 100644 (file)
@@ -21,8 +21,7 @@
 
 
 int
-pthread_barrierattr_destroy (attr)
-     pthread_barrierattr_t *attr;
+pthread_barrierattr_destroy (pthread_barrierattr_t *attr)
 {
   /* Nothing to do.  */
 
index 246c888..ee96c02 100644 (file)
@@ -21,9 +21,9 @@
 
 
 int
-pthread_barrierattr_getpshared (attr, pshared)
-     const pthread_barrierattr_t *attr;
-     int *pshared;
+pthread_barrierattr_getpshared (
+     const pthread_barrierattr_t *attr,
+     int *pshared)
 {
   *pshared = ((const struct pthread_barrierattr *) attr)->pshared;
 
index a0be952..17391f9 100644 (file)
@@ -21,8 +21,7 @@
 
 
 int
-pthread_barrierattr_init (attr)
-     pthread_barrierattr_t *attr;
+pthread_barrierattr_init (pthread_barrierattr_t *attr)
 {
   ((struct pthread_barrierattr *) attr)->pshared = PTHREAD_PROCESS_PRIVATE;
 
index b69f23e..fbf6fcb 100644 (file)
@@ -22,9 +22,9 @@
 
 
 int
-pthread_barrierattr_setpshared (attr, pshared)
-     pthread_barrierattr_t *attr;
-     int pshared;
+pthread_barrierattr_setpshared (
+     pthread_barrierattr_t *attr,
+     int pshared)
 {
   struct pthread_barrierattr *iattr;
 
index 0ea9906..3188523 100644 (file)
@@ -26,8 +26,7 @@
 
 
 int
-pthread_cancel (th)
-     pthread_t th;
+pthread_cancel (pthread_t th)
 {
   volatile struct pthread *pd = (volatile struct pthread *) th;
 
index b7842d2..ebc6d78 100644 (file)
@@ -22,8 +22,7 @@
 
 
 int
-__pthread_cond_destroy (cond)
-     pthread_cond_t *cond;
+__pthread_cond_destroy (pthread_cond_t *cond)
 {
   /* Make sure we are alone.  */
   lll_mutex_lock (cond->__data.__lock);
index 5c3fd68..bf2ab31 100644 (file)
@@ -21,9 +21,9 @@
 
 
 int
-__pthread_cond_init (cond, cond_attr)
-     pthread_cond_t *cond;
-     const pthread_condattr_t *cond_attr;
+__pthread_cond_init (
+     pthread_cond_t *cond,
+     const pthread_condattr_t *cond_attr)
 {
   struct pthread_condattr *icond_attr = (struct pthread_condattr *) cond_attr;
 
index e6d069e..bdb6441 100644 (file)
@@ -21,8 +21,7 @@
 
 
 int
-__pthread_condattr_destroy (attr)
-     pthread_condattr_t *attr;
+__pthread_condattr_destroy (pthread_condattr_t *attr)
 {
   /* Nothing to be done.  */
   return 0;
index 84de918..056515b 100644 (file)
@@ -21,9 +21,9 @@
 
 
 int
-pthread_condattr_getclock (attr, clock_id)
-     const pthread_condattr_t *attr;
-     clockid_t *clock_id;
+pthread_condattr_getclock (
+     const pthread_condattr_t *attr,
+     clockid_t *clock_id)
 {
   *clock_id = (((((const struct pthread_condattr *) attr)->value) >> 1)
               & ((1 << COND_CLOCK_BITS) - 1));
index b44eac9..a558fdb 100644 (file)
@@ -21,9 +21,9 @@
 
 
 int
-pthread_condattr_getpshared (attr, pshared)
-     const pthread_condattr_t *attr;
-     int *pshared;
+pthread_condattr_getpshared (
+     const pthread_condattr_t *attr,
+     int *pshared)
 {
   *pshared = ((const struct pthread_condattr *) attr)->value & 1;
 
index 738deb4..d22ca1e 100644 (file)
@@ -22,8 +22,7 @@
 
 
 int
-__pthread_condattr_init (attr)
-     pthread_condattr_t *attr;
+__pthread_condattr_init (pthread_condattr_t *attr)
 {
   memset (attr, '\0', sizeof (*attr));
 
index 6dc2563..32b60cf 100644 (file)
@@ -27,9 +27,9 @@
 
 
 int
-pthread_condattr_setclock (attr, clock_id)
-     pthread_condattr_t *attr;
-     clockid_t clock_id;
+pthread_condattr_setclock (
+     pthread_condattr_t *attr,
+     clockid_t clock_id)
 {
   /* Only a few clocks are allowed.  CLOCK_REALTIME is always allowed.
      CLOCK_MONOTONIC only if the kernel has the necessary support.  */
index f008587..f3d39aa 100644 (file)
@@ -21,9 +21,9 @@
 #include <pthreadP.h>
 
 int
-pthread_condattr_setpshared (attr, pshared)
-     pthread_condattr_t *attr;
-     int pshared;
+pthread_condattr_setpshared (
+     pthread_condattr_t *attr,
+     int pshared)
 {
   if (pshared != PTHREAD_PROCESS_PRIVATE
       && __builtin_expect (pshared != PTHREAD_PROCESS_SHARED, 0))
index 1f0c2fe..054d779 100644 (file)
@@ -23,8 +23,7 @@
 
 
 int
-pthread_detach (th)
-     pthread_t th;
+pthread_detach (pthread_t th)
 {
   struct pthread *pd = (struct pthread *) th;
 
index c998609..8587e0f 100644 (file)
@@ -21,9 +21,7 @@
 
 
 int
-__pthread_equal (thread1, thread2)
-     pthread_t thread1;
-     pthread_t thread2;
+__pthread_equal (pthread_t thread1, pthread_t thread2)
 {
   return thread1 == thread2;
 }
index 85d8fd4..a8c92fd 100644 (file)
@@ -22,8 +22,7 @@
 
 
 void
-__pthread_exit (value)
-     void *value;
+__pthread_exit (void* value)
 {
   THREAD_SETMEM (THREAD_SELF, result, value);
 
index 8819731..00b9ba3 100644 (file)
@@ -31,9 +31,9 @@
 
 
 int
-pthread_getattr_np (thread_id, attr)
-     pthread_t thread_id;
-     pthread_attr_t *attr;
+pthread_getattr_np (
+     pthread_t thread_id,
+     pthread_attr_t *attr)
 {
   struct pthread *thread = (struct pthread *) thread_id;
   struct pthread_attr *iattr = (struct pthread_attr *) attr;
index 10ad271..2dd33ac 100644 (file)
 
 
 int
-__pthread_getschedparam (threadid, policy, param)
-     pthread_t threadid;
-     int *policy;
-     struct sched_param *param;
+__pthread_getschedparam (
+        pthread_t threadid,
+        int *policy,
+        struct sched_param *param)
 {
   struct pthread *pd = (struct pthread *) threadid;
 
index afb4d26..62c48fe 100644 (file)
@@ -22,8 +22,7 @@
 
 
 void *
-__pthread_getspecific (key)
-     pthread_key_t key;
+__pthread_getspecific (pthread_key_t key)
 {
   struct pthread_key_data *data;
 
index f94128d..977dbcf 100644 (file)
@@ -32,9 +32,7 @@ cleanup (void *arg)
 
 
 int
-pthread_join (threadid, thread_return)
-     pthread_t threadid;
-     void **thread_return;
+pthread_join (pthread_t threadid, void **thread_return)
 {
   struct pthread *self;
   struct pthread *pd = (struct pthread *) threadid;
index cf35bc8..88d160e 100644 (file)
@@ -25,9 +25,9 @@
 lll_lock_t __pthread_keys_lock = LLL_LOCK_INITIALIZER;
 
 int
-__pthread_key_create (key, destr)
-     pthread_key_t *key;
-     void (*destr) (void *);
+__pthread_key_create (
+     pthread_key_t *key,
+     void (*destr) (void *))
 {
   int result = EAGAIN;
   size_t cnt;
index ae7d7c4..cb408f0 100644 (file)
@@ -23,8 +23,7 @@
 
 
 int
-pthread_key_delete (key)
-     pthread_key_t key;
+pthread_key_delete (pthread_key_t key)
 {
   int result = EINVAL;
 
index 9e63ba2..05bd96a 100644 (file)
@@ -22,8 +22,7 @@
 
 
 int
-__pthread_mutex_destroy (mutex)
-     pthread_mutex_t *mutex;
+__pthread_mutex_destroy (pthread_mutex_t *mutex)
 {
   if (mutex->__data.__nusers != 0)
     return EBUSY;
index 5058fcc..2349497 100644 (file)
@@ -30,9 +30,9 @@ static const struct pthread_mutexattr default_attr =
 
 
 int
-__pthread_mutex_init (mutex, mutexattr)
-     pthread_mutex_t *mutex;
-     const pthread_mutexattr_t *mutexattr;
+__pthread_mutex_init (
+     pthread_mutex_t *mutex,
+     const pthread_mutexattr_t *mutexattr)
 {
   const struct pthread_mutexattr *imutexattr;
 
index ee39f20..faa5391 100644 (file)
@@ -30,8 +30,7 @@
 
 
 int
-__pthread_mutex_lock (mutex)
-     pthread_mutex_t *mutex;
+__pthread_mutex_lock (pthread_mutex_t *mutex)
 {
   assert (sizeof (mutex->__size) >= sizeof (mutex->__data));
 
index 1cd2c7e..6f3df6f 100644 (file)
@@ -23,9 +23,9 @@
 
 
 int
-pthread_mutex_timedlock (mutex, abstime)
-     pthread_mutex_t *mutex;
-     const struct timespec *abstime;
+pthread_mutex_timedlock (
+     pthread_mutex_t *mutex,
+     const struct timespec *abstime)
 {
   pid_t id = THREAD_GETMEM (THREAD_SELF, tid);
   int result = 0;
index 7008af3..2eb88db 100644 (file)
@@ -23,8 +23,7 @@
 
 
 int
-__pthread_mutex_trylock (mutex)
-     pthread_mutex_t *mutex;
+__pthread_mutex_trylock (pthread_mutex_t *mutex)
 {
   pid_t id;
 
index 32bc2a4..0cb6df3 100644 (file)
@@ -24,9 +24,9 @@
 
 int
 internal_function attribute_hidden
-__pthread_mutex_unlock_usercnt (mutex, decr)
-     pthread_mutex_t *mutex;
-     int decr;
+__pthread_mutex_unlock_usercnt (
+     pthread_mutex_t *mutex,
+     int decr)
 {
   switch (__builtin_expect (mutex->__data.__kind, PTHREAD_MUTEX_TIMED_NP))
     {
@@ -69,8 +69,7 @@ __pthread_mutex_unlock_usercnt (mutex, decr)
 
 
 int
-__pthread_mutex_unlock (mutex)
-     pthread_mutex_t *mutex;
+__pthread_mutex_unlock (pthread_mutex_t *mutex)
 {
   return __pthread_mutex_unlock_usercnt (mutex, 1);
 }
index eab27d3..adf2884 100644 (file)
@@ -21,8 +21,7 @@
 
 
 int
-__pthread_mutexattr_destroy (attr)
-     pthread_mutexattr_t *attr;
+__pthread_mutexattr_destroy (pthread_mutexattr_t *attr)
 {
   return 0;
 }
index 4bd4ea1..12de516 100644 (file)
@@ -21,9 +21,9 @@
 
 
 int
-pthread_mutexattr_getpshared (attr, pshared)
-     const pthread_mutexattr_t *attr;
-     int *pshared;
+pthread_mutexattr_getpshared (
+     const pthread_mutexattr_t *attr,
+     int *pshared)
 {
   const struct pthread_mutexattr *iattr;
 
index 5c32b2c..0f380a9 100644 (file)
@@ -21,9 +21,9 @@
 
 
 int
-pthread_mutexattr_gettype (attr, kind)
-     const pthread_mutexattr_t *attr;
-     int *kind;
+pthread_mutexattr_gettype (
+     const pthread_mutexattr_t *attr,
+     int *kind)
 {
   const struct pthread_mutexattr *iattr;
 
index ee026c6..ce8080d 100644 (file)
@@ -22,8 +22,7 @@
 
 
 int
-__pthread_mutexattr_init (attr)
-     pthread_mutexattr_t *attr;
+__pthread_mutexattr_init (pthread_mutexattr_t *attr)
 {
   if (sizeof (struct pthread_mutexattr) != sizeof (pthread_mutexattr_t))
     memset (attr, '\0', sizeof (*attr));
index 5f2cf41..74df1bf 100644 (file)
@@ -22,9 +22,9 @@
 
 
 int
-pthread_mutexattr_setpshared (attr, pshared)
-     pthread_mutexattr_t *attr;
-     int pshared;
+pthread_mutexattr_setpshared (
+     pthread_mutexattr_t *attr,
+     int pshared)
 {
   struct pthread_mutexattr *iattr;
 
index c77fe79..aaeec81 100644 (file)
@@ -22,9 +22,9 @@
 
 
 int
-__pthread_mutexattr_settype (attr, kind)
-     pthread_mutexattr_t *attr;
-     int kind;
+__pthread_mutexattr_settype (
+     pthread_mutexattr_t *attr,
+     int kind)
 {
   struct pthread_mutexattr *iattr;
 
index 28fd24b..d38202b 100644 (file)
@@ -21,8 +21,7 @@
 
 
 int
-__pthread_rwlock_destroy (rwlock)
-     pthread_rwlock_t *rwlock;
+__pthread_rwlock_destroy (pthread_rwlock_t *rwlock)
 {
   /* Nothing to be done.  For now.  */
   return 0;
index f664dd8..8055960 100644 (file)
@@ -28,9 +28,9 @@ static const struct pthread_rwlockattr default_attr =
 
 
 int
-__pthread_rwlock_init (rwlock, attr)
-     pthread_rwlock_t *rwlock;
-     const pthread_rwlockattr_t *attr;
+__pthread_rwlock_init (
+     pthread_rwlock_t *rwlock,
+     const pthread_rwlockattr_t *attr)
 {
   const struct pthread_rwlockattr *iattr;
 
index 446af05..0a9c815 100644 (file)
@@ -23,8 +23,7 @@
 
 
 int
-__pthread_rwlock_tryrdlock (rwlock)
-     pthread_rwlock_t *rwlock;
+__pthread_rwlock_tryrdlock (pthread_rwlock_t *rwlock)
 {
   int result = EBUSY;
 
index b754a19..47150c1 100644 (file)
@@ -23,8 +23,7 @@
 
 
 int
-__pthread_rwlock_trywrlock (rwlock)
-     pthread_rwlock_t *rwlock;
+__pthread_rwlock_trywrlock (pthread_rwlock_t *rwlock)
 {
   int result = EBUSY;
 
index 4f0c2c4..db18704 100644 (file)
@@ -21,8 +21,7 @@
 
 
 int
-pthread_rwlockattr_destroy (attr)
-     pthread_rwlockattr_t *attr;
+pthread_rwlockattr_destroy (pthread_rwlockattr_t *attr)
 {
   /* Nothing to do.  For now.  */
 
index aad9468..b15275c 100644 (file)
@@ -21,9 +21,9 @@
 
 
 int
-pthread_rwlockattr_getkind_np (attr, pref)
-     const pthread_rwlockattr_t *attr;
-     int *pref;
+pthread_rwlockattr_getkind_np (
+     const pthread_rwlockattr_t *attr,
+     int *pref)
 {
   *pref = ((const struct pthread_rwlockattr *) attr)->lockkind;
 
index 3a77683..2e0437c 100644 (file)
@@ -21,9 +21,9 @@
 
 
 int
-pthread_rwlockattr_getpshared (attr, pshared)
-     const pthread_rwlockattr_t *attr;
-     int *pshared;
+pthread_rwlockattr_getpshared (
+     const pthread_rwlockattr_t *attr,
+     int *pshared)
 {
   *pshared = ((const struct pthread_rwlockattr *) attr)->pshared;
 
index b299534..b33ae5b 100644 (file)
@@ -21,8 +21,7 @@
 
 
 int
-pthread_rwlockattr_init (attr)
-     pthread_rwlockattr_t *attr;
+pthread_rwlockattr_init (pthread_rwlockattr_t *attr)
 {
   struct pthread_rwlockattr *iattr;
 
index 0311f1b..186bf73 100644 (file)
@@ -22,9 +22,9 @@
 
 
 int
-pthread_rwlockattr_setkind_np (attr, pref)
-     pthread_rwlockattr_t *attr;
-     int pref;
+pthread_rwlockattr_setkind_np (
+     pthread_rwlockattr_t *attr,
+     int pref)
 {
   struct pthread_rwlockattr *iattr;
 
index 9438d29..a30de0e 100644 (file)
@@ -22,9 +22,9 @@
 
 
 int
-pthread_rwlockattr_setpshared (attr, pshared)
-     pthread_rwlockattr_t *attr;
-     int pshared;
+pthread_rwlockattr_setpshared (
+     pthread_rwlockattr_t *attr,
+     int pshared)
 {
   struct pthread_rwlockattr *iattr;
 
index a452c2e..e53b52d 100644 (file)
@@ -23,9 +23,9 @@
 
 
 int
-__pthread_setcancelstate (state, oldstate)
-     int state;
-     int *oldstate;
+__pthread_setcancelstate (
+     int state,
+     int *oldstate)
 {
   volatile struct pthread *self;
 
index bbe87ba..47c104b 100644 (file)
@@ -23,9 +23,9 @@
 
 
 int
-__pthread_setcanceltype (type, oldtype)
-     int type;
-     int *oldtype;
+__pthread_setcanceltype (
+     int type,
+     int *oldtype)
 {
   volatile struct pthread *self;
 
index 8cf1507..754fe3f 100644 (file)
@@ -26,8 +26,7 @@ int __concurrency_level;
 
 
 int
-pthread_setconcurrency (level)
-     int level;
+pthread_setconcurrency (int level)
 {
   if (level < 0)
     return EINVAL;
index 71c2f9b..55dfefc 100644 (file)
 
 
 int
-__pthread_setschedparam (threadid, policy, param)
-     pthread_t threadid;
-     int policy;
-     const struct sched_param *param;
+__pthread_setschedparam (
+        pthread_t threadid,
+        int policy,
+        const struct sched_param *param)
 {
   struct pthread *pd = (struct pthread *) threadid;
 
index e7ea4b7..d5e30e5 100644 (file)
@@ -26,9 +26,7 @@
 
 
 int
-pthread_setschedprio (threadid, prio)
-     pthread_t threadid;
-     int prio;
+pthread_setschedprio (pthread_t threadid, int prio)
 {
   struct pthread *pd = (struct pthread *) threadid;
 
index b6e66b5..8761eb9 100644 (file)
@@ -23,9 +23,9 @@
 
 
 int
-__pthread_setspecific (key, value)
-     pthread_key_t key;
-     const void *value;
+__pthread_setspecific (
+     pthread_key_t key,
+     const void *value)
 {
   struct pthread *self;
   unsigned int idx1st;
index 1cc0721..ce2cf3f 100644 (file)
@@ -31,10 +31,10 @@ cleanup (void *arg)
 
 
 int
-pthread_timedjoin_np (threadid, thread_return, abstime)
-     pthread_t threadid;
-     void **thread_return;
-     const struct timespec *abstime;
+pthread_timedjoin_np (
+        pthread_t threadid,
+        void **thread_return,
+        const struct timespec *abstime)
 {
   struct pthread *self;
   struct pthread *pd = (struct pthread *) threadid;
index 904cb52..049cb5e 100644 (file)
@@ -25,9 +25,7 @@
 
 
 int
-pthread_tryjoin_np (threadid, thread_return)
-     pthread_t threadid;
-     void **thread_return;
+pthread_tryjoin_np (pthread_t threadid, void **thread_return)
 {
   struct pthread *self;
   struct pthread *pd = (struct pthread *) threadid;
index 279522d..a2bcc71 100644 (file)
@@ -41,8 +41,7 @@ walker (const void *inodep, const VISIT which, const int depth)
 
 
 int
-sem_close (sem)
-     sem_t *sem;
+sem_close (sem_t *sem)
 {
   int result = 0;
 
index 1fdb7b5..2e612c1 100644 (file)
@@ -22,8 +22,7 @@
 
 
 int
-__new_sem_destroy (sem)
-     sem_t *sem;
+__new_sem_destroy (sem_t *sem)
 {
   /* XXX Check for valid parameter.  */
 
index c03827b..5e6c8df 100644 (file)
@@ -22,9 +22,9 @@
 
 
 int
-__new_sem_getvalue (sem, sval)
-     sem_t *sem;
-     int *sval;
+__new_sem_getvalue (
+     sem_t *sem,
+     int *sval)
 {
   struct sem *isem = (struct sem *) sem;
 
index 0fbdf59..1439bd0 100644 (file)
 
 
 int
-__new_sem_init (sem, pshared, value)
-     sem_t *sem;
-     int pshared;
-     unsigned int value;
+__new_sem_init (
+     sem_t *sem,
+     int pshared,
+     unsigned int value)
 {
   /* Parameter sanity check.  */
   if (__builtin_expect (value > SEM_VALUE_MAX, 0))
index 5f24fd3..e52a08d 100644 (file)
@@ -26,8 +26,7 @@
 
 
 int
-sem_unlink (name)
-     const char *name;
+sem_unlink (const char *name)
 {
   char *fname;
   size_t namelen;
index 5cef8b1..b9528f3 100644 (file)
@@ -28,4 +28,5 @@
   ((uintptr_t) (_address) - (_adj) < (uintptr_t) (_jmpbuf)[JB_SP] - (_adj))
 
 /* We use the normal lobngjmp for unwinding.  */
+extern __typeof(longjmp) __libc_longjmp attribute_noreturn;
 #define __libc_unwind_longjmp(buf, val) __libc_longjmp (buf, val)
index da859cc..a6b1cf4 100644 (file)
@@ -29,8 +29,7 @@
 
 
 int
-pthread_spin_lock (lock)
-     pthread_spinlock_t *lock;
+pthread_spin_lock (pthread_spinlock_t *lock)
 {
   __asm__ ("\n"
        "1:\t" LOCK_PREFIX "decl %0\n\t"
index db9dc4d..1f4136e 100644 (file)
@@ -38,10 +38,10 @@ struct _condvar_cleanup_buffer
 };
 
 int
-__pthread_cond_timedwait (cond, mutex, abstime)
-     pthread_cond_t *cond;
-     pthread_mutex_t *mutex;
-     const struct timespec *abstime;
+__pthread_cond_timedwait (
+     pthread_cond_t *cond,
+     pthread_mutex_t *mutex,
+     const struct timespec *abstime)
 {
   struct _pthread_cleanup_buffer buffer;
   struct _condvar_cleanup_buffer cbuffer;
index b0fe694..79245b7 100644 (file)
@@ -81,9 +81,9 @@ __condvar_cleanup (void *arg)
 
 
 int
-__pthread_cond_wait (cond, mutex)
-     pthread_cond_t *cond;
-     pthread_mutex_t *mutex;
+__pthread_cond_wait (
+     pthread_cond_t *cond,
+     pthread_mutex_t *mutex)
 {
   struct _pthread_cleanup_buffer buffer;
   struct _condvar_cleanup_buffer cbuffer;
index 0d12fe6..6f66bbb 100644 (file)
 
 
 int
-pthread_sigmask (how, newmask, oldmask)
-     int how;
-     const sigset_t *newmask;
-     sigset_t *oldmask;
+pthread_sigmask (
+     int how,
+     const sigset_t *newmask,
+     sigset_t *oldmask)
 {
   sigset_t local_newmask;
 
index 4d0109c..62082f4 100644 (file)
@@ -21,8 +21,7 @@
 
 
 int
-pthread_spin_destroy (lock)
-     pthread_spinlock_t *lock;
+pthread_spin_destroy (pthread_spinlock_t *lock)
 {
   /* Nothing to do.  */
   return 0;
index b9528f3..71a3582 100644 (file)
@@ -27,6 +27,6 @@
 #define _JMPBUF_UNWINDS_ADJ(_jmpbuf, _address, _adj) \
   ((uintptr_t) (_address) - (_adj) < (uintptr_t) (_jmpbuf)[JB_SP] - (_adj))
 
-/* We use the normal lobngjmp for unwinding.  */
+/* We use the normal longjmp for unwinding.  */
 extern __typeof(longjmp) __libc_longjmp attribute_noreturn;
 #define __libc_unwind_longjmp(buf, val) __libc_longjmp (buf, val)
index 1a060c0..1033ebc 100644 (file)
@@ -173,7 +173,7 @@ extern int __lll_mutex_unlock_wake (int *__futex)
 
 
 #define lll_mutex_timedlock(futex, timeout) \
-  ({ int result, ignore1, ignore2;                                           \
+  ({ int _result, ignore1, ignore2;                                          \
      __asm__ __volatile (LOCK_INSTR "cmpxchgl %1, %3\n\t"                    \
                       "jnz _L_mutex_timedlock_%=\n\t"                        \
                       ".subsection 1\n\t"                                    \
@@ -186,11 +186,11 @@ extern int __lll_mutex_unlock_wake (int *__futex)
                       ".size _L_mutex_timedlock_%=,.-_L_mutex_timedlock_%=\n"\
                       ".previous\n"                                          \
                       "1:"                                                   \
-                      : "=a" (result), "=c" (ignore1), "=&d" (ignore2),      \
+                      : "=a" (_result), "=c" (ignore1), "=&d" (ignore2),      \
                         "=m" (futex)                                         \
                       : "0" (0), "1" (1), "m" (futex), "m" (timeout)         \
                       : "memory");                                           \
-     result; })
+     _result; })
 
 
 #define lll_mutex_unlock(futex) \
index 1044724..8d887e0 100644 (file)
@@ -26,9 +26,9 @@
 
 
 int
-__pthread_kill (threadid, signo)
-     pthread_t threadid;
-     int signo;
+__pthread_kill (
+     pthread_t threadid,
+     int signo)
 {
   struct pthread *pd = (struct pthread *) threadid;
 
index 09a5716..9f02fe3 100644 (file)
@@ -49,10 +49,10 @@ int __no_posix_timers attribute_hidden;
 
 
 int
-timer_create (clock_id, evp, timerid)
-     clockid_t clock_id;
-     struct sigevent *evp;
-     timer_t *timerid;
+timer_create (
+     clockid_t clock_id,
+     struct sigevent *evp,
+     timer_t *timerid)
 {
 # undef timer_create
 # ifndef __ASSUME_POSIX_TIMERS
index 3ebbbce..9b92446 100644 (file)
@@ -39,8 +39,7 @@ static int compat_timer_delete (timer_t timerid);
 
 
 int
-timer_delete (timerid)
-     timer_t timerid;
+timer_delete (timer_t timerid)
 {
 # undef timer_delete
 # ifndef __ASSUME_POSIX_TIMERS
index 4c97f97..7afc5ec 100644 (file)
@@ -38,8 +38,7 @@ static int compat_timer_getoverrun (timer_t timerid);
 
 
 int
-timer_getoverrun (timerid)
-     timer_t timerid;
+timer_getoverrun (timer_t timerid)
 {
 # undef timer_getoverrun
 # ifndef __ASSUME_POSIX_TIMERS
index 3ce0916..31401b1 100644 (file)
@@ -39,9 +39,9 @@ static int compat_timer_gettime (timer_t timerid, struct itimerspec *value);
 
 
 int
-timer_gettime (timerid, value)
-     timer_t timerid;
-     struct itimerspec *value;
+timer_gettime (
+     timer_t timerid,
+     struct itimerspec *value)
 {
 # undef timer_gettime
 # ifndef __ASSUME_POSIX_TIMERS
index 558c63f..8c6ad91 100644 (file)
@@ -41,11 +41,11 @@ static int compat_timer_settime (timer_t timerid, int flags,
 
 
 int
-timer_settime (timerid, flags, value, ovalue)
-     timer_t timerid;
-     int flags;
-     const struct itimerspec *value;
-     struct itimerspec *ovalue;
+timer_settime (
+     timer_t timerid,
+     int flags,
+     const struct itimerspec *value,
+     struct itimerspec *ovalue)
 {
 # undef timer_settime
 # ifndef __ASSUME_POSIX_TIMERS
index 694cbf4..35cd868 100644 (file)
@@ -143,7 +143,7 @@ extern int __lll_mutex_unlock_wait (int *__futex) attribute_hidden;
 
 
 #define lll_mutex_timedlock(futex, timeout) \
-  ({ int result, ignore1, ignore2, ignore3;                                  \
+  ({ int _result, ignore1, ignore2, ignore3;                                 \
      __asm __volatile (LOCK_INSTR "cmpxchgl %2, %4\n\t"                              \
                       "jnz 1f\n\t"                                           \
                       ".subsection 1\n"                                      \
@@ -155,11 +155,11 @@ extern int __lll_mutex_unlock_wait (int *__futex) attribute_hidden;
                       "jmp 2f\n\t"                                           \
                       ".previous\n"                                          \
                       "2:"                                                   \
-                      : "=a" (result), "=&D" (ignore1), "=S" (ignore2),      \
+                      : "=a" (_result), "=&D" (ignore1), "=S" (ignore2),      \
                         "=&d" (ignore3), "=m" (futex)                        \
                       : "0" (0), "2" (1), "m" (futex), "m" (timeout)         \
                       : "memory", "cx", "cc", "r10", "r11");                 \
-     result; })
+     _result; })
 
 
 #define lll_mutex_unlock(futex) \