Browse Source

nptl: fix old style function declerations

also fix a few shadowed local warnings

Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Austin Foxley 14 years ago
parent
commit
8ebd4b8855
98 changed files with 234 additions and 282 deletions
  1. 7 7
      libpthread/nptl/cleanup_compat.c
  2. 7 7
      libpthread/nptl/cleanup_defer_compat.c
  3. 3 4
      libpthread/nptl/pthreadP.h
  4. 4 4
      libpthread/nptl/pthread_atfork.c
  5. 1 2
      libpthread/nptl/pthread_attr_destroy.c
  6. 1 3
      libpthread/nptl/pthread_attr_getdetachstate.c
  7. 1 3
      libpthread/nptl/pthread_attr_getguardsize.c
  8. 3 3
      libpthread/nptl/pthread_attr_getinheritsched.c
  9. 3 3
      libpthread/nptl/pthread_attr_getschedparam.c
  10. 3 3
      libpthread/nptl/pthread_attr_getschedpolicy.c
  11. 3 3
      libpthread/nptl/pthread_attr_getscope.c
  12. 4 4
      libpthread/nptl/pthread_attr_getstack.c
  13. 3 3
      libpthread/nptl/pthread_attr_getstackaddr.c
  14. 3 3
      libpthread/nptl/pthread_attr_getstacksize.c
  15. 1 2
      libpthread/nptl/pthread_attr_init.c
  16. 1 3
      libpthread/nptl/pthread_attr_setdetachstate.c
  17. 1 3
      libpthread/nptl/pthread_attr_setguardsize.c
  18. 3 3
      libpthread/nptl/pthread_attr_setinheritsched.c
  19. 3 3
      libpthread/nptl/pthread_attr_setschedparam.c
  20. 3 3
      libpthread/nptl/pthread_attr_setschedpolicy.c
  21. 3 3
      libpthread/nptl/pthread_attr_setscope.c
  22. 4 4
      libpthread/nptl/pthread_attr_setstack.c
  23. 3 3
      libpthread/nptl/pthread_attr_setstackaddr.c
  24. 3 3
      libpthread/nptl/pthread_attr_setstacksize.c
  25. 1 2
      libpthread/nptl/pthread_barrier_destroy.c
  26. 4 4
      libpthread/nptl/pthread_barrier_init.c
  27. 1 2
      libpthread/nptl/pthread_barrierattr_destroy.c
  28. 3 3
      libpthread/nptl/pthread_barrierattr_getpshared.c
  29. 1 2
      libpthread/nptl/pthread_barrierattr_init.c
  30. 3 3
      libpthread/nptl/pthread_barrierattr_setpshared.c
  31. 1 2
      libpthread/nptl/pthread_cancel.c
  32. 1 2
      libpthread/nptl/pthread_cond_destroy.c
  33. 3 3
      libpthread/nptl/pthread_cond_init.c
  34. 1 2
      libpthread/nptl/pthread_condattr_destroy.c
  35. 3 3
      libpthread/nptl/pthread_condattr_getclock.c
  36. 3 3
      libpthread/nptl/pthread_condattr_getpshared.c
  37. 1 2
      libpthread/nptl/pthread_condattr_init.c
  38. 3 3
      libpthread/nptl/pthread_condattr_setclock.c
  39. 3 3
      libpthread/nptl/pthread_condattr_setpshared.c
  40. 1 2
      libpthread/nptl/pthread_detach.c
  41. 1 3
      libpthread/nptl/pthread_equal.c
  42. 1 2
      libpthread/nptl/pthread_exit.c
  43. 3 3
      libpthread/nptl/pthread_getattr_np.c
  44. 4 4
      libpthread/nptl/pthread_getschedparam.c
  45. 1 2
      libpthread/nptl/pthread_getspecific.c
  46. 1 3
      libpthread/nptl/pthread_join.c
  47. 3 3
      libpthread/nptl/pthread_key_create.c
  48. 1 2
      libpthread/nptl/pthread_key_delete.c
  49. 1 2
      libpthread/nptl/pthread_mutex_destroy.c
  50. 3 3
      libpthread/nptl/pthread_mutex_init.c
  51. 1 2
      libpthread/nptl/pthread_mutex_lock.c
  52. 3 3
      libpthread/nptl/pthread_mutex_timedlock.c
  53. 1 2
      libpthread/nptl/pthread_mutex_trylock.c
  54. 4 5
      libpthread/nptl/pthread_mutex_unlock.c
  55. 1 2
      libpthread/nptl/pthread_mutexattr_destroy.c
  56. 3 3
      libpthread/nptl/pthread_mutexattr_getpshared.c
  57. 3 3
      libpthread/nptl/pthread_mutexattr_gettype.c
  58. 1 2
      libpthread/nptl/pthread_mutexattr_init.c
  59. 3 3
      libpthread/nptl/pthread_mutexattr_setpshared.c
  60. 3 3
      libpthread/nptl/pthread_mutexattr_settype.c
  61. 1 2
      libpthread/nptl/pthread_rwlock_destroy.c
  62. 3 3
      libpthread/nptl/pthread_rwlock_init.c
  63. 1 2
      libpthread/nptl/pthread_rwlock_tryrdlock.c
  64. 1 2
      libpthread/nptl/pthread_rwlock_trywrlock.c
  65. 1 2
      libpthread/nptl/pthread_rwlockattr_destroy.c
  66. 3 3
      libpthread/nptl/pthread_rwlockattr_getkind_np.c
  67. 3 3
      libpthread/nptl/pthread_rwlockattr_getpshared.c
  68. 1 2
      libpthread/nptl/pthread_rwlockattr_init.c
  69. 3 3
      libpthread/nptl/pthread_rwlockattr_setkind_np.c
  70. 3 3
      libpthread/nptl/pthread_rwlockattr_setpshared.c
  71. 3 3
      libpthread/nptl/pthread_setcancelstate.c
  72. 3 3
      libpthread/nptl/pthread_setcanceltype.c
  73. 1 2
      libpthread/nptl/pthread_setconcurrency.c
  74. 4 4
      libpthread/nptl/pthread_setschedparam.c
  75. 1 3
      libpthread/nptl/pthread_setschedprio.c
  76. 3 3
      libpthread/nptl/pthread_setspecific.c
  77. 4 4
      libpthread/nptl/pthread_timedjoin.c
  78. 1 3
      libpthread/nptl/pthread_tryjoin.c
  79. 1 2
      libpthread/nptl/sem_close.c
  80. 1 2
      libpthread/nptl/sem_destroy.c
  81. 3 3
      libpthread/nptl/sem_getvalue.c
  82. 4 4
      libpthread/nptl/sem_init.c
  83. 1 2
      libpthread/nptl/sem_unlink.c
  84. 1 0
      libpthread/nptl/sysdeps/i386/jmpbuf-unwind.h
  85. 1 2
      libpthread/nptl/sysdeps/i386/pthread_spin_lock.c
  86. 4 4
      libpthread/nptl/sysdeps/pthread/pthread_cond_timedwait.c
  87. 3 3
      libpthread/nptl/sysdeps/pthread/pthread_cond_wait.c
  88. 4 4
      libpthread/nptl/sysdeps/pthread/pthread_sigmask.c
  89. 1 2
      libpthread/nptl/sysdeps/pthread/pthread_spin_destroy.c
  90. 1 1
      libpthread/nptl/sysdeps/sparc/sparc32/jmpbuf-unwind.h
  91. 3 3
      libpthread/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h
  92. 3 3
      libpthread/nptl/sysdeps/unix/sysv/linux/pthread_kill.c
  93. 4 4
      libpthread/nptl/sysdeps/unix/sysv/linux/timer_create.c
  94. 1 2
      libpthread/nptl/sysdeps/unix/sysv/linux/timer_delete.c
  95. 1 2
      libpthread/nptl/sysdeps/unix/sysv/linux/timer_getoverr.c
  96. 3 3
      libpthread/nptl/sysdeps/unix/sysv/linux/timer_gettime.c
  97. 5 5
      libpthread/nptl/sysdeps/unix/sysv/linux/timer_settime.c
  98. 3 3
      libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h

+ 7 - 7
libpthread/nptl/cleanup_compat.c

@@ -22,10 +22,10 @@
 
 
 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;
 

+ 7 - 7
libpthread/nptl/cleanup_defer_compat.c

@@ -21,10 +21,10 @@
 
 
 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;
 

+ 3 - 4
libpthread/nptl/pthreadP.h

@@ -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;

+ 4 - 4
libpthread/nptl/pthread_atfork.c

@@ -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);

+ 1 - 2
libpthread/nptl/pthread_attr_destroy.c

@@ -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;
 

+ 1 - 3
libpthread/nptl/pthread_attr_getdetachstate.c

@@ -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;
 

+ 1 - 3
libpthread/nptl/pthread_attr_getguardsize.c

@@ -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;
 

+ 3 - 3
libpthread/nptl/pthread_attr_getinheritsched.c

@@ -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;
 

+ 3 - 3
libpthread/nptl/pthread_attr_getschedparam.c

@@ -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;
 

+ 3 - 3
libpthread/nptl/pthread_attr_getschedpolicy.c

@@ -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;
 

+ 3 - 3
libpthread/nptl/pthread_attr_getscope.c

@@ -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;
 

+ 4 - 4
libpthread/nptl/pthread_attr_getstack.c

@@ -22,10 +22,10 @@
 
 
 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;
 

+ 3 - 3
libpthread/nptl/pthread_attr_getstackaddr.c

@@ -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;
 

+ 3 - 3
libpthread/nptl/pthread_attr_getstacksize.c

@@ -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;
 

+ 1 - 2
libpthread/nptl/pthread_attr_init.c

@@ -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;
 

+ 1 - 3
libpthread/nptl/pthread_attr_setdetachstate.c

@@ -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;
 

+ 1 - 3
libpthread/nptl/pthread_attr_setguardsize.c

@@ -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;
 

+ 3 - 3
libpthread/nptl/pthread_attr_setinheritsched.c

@@ -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;
 

+ 3 - 3
libpthread/nptl/pthread_attr_setschedparam.c

@@ -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;

+ 3 - 3
libpthread/nptl/pthread_attr_setschedpolicy.c

@@ -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;
 

+ 3 - 3
libpthread/nptl/pthread_attr_setscope.c

@@ -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;
 

+ 4 - 4
libpthread/nptl/pthread_attr_setstack.c

@@ -24,10 +24,10 @@
 
 
 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;
 

+ 3 - 3
libpthread/nptl/pthread_attr_setstackaddr.c

@@ -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;
 

+ 3 - 3
libpthread/nptl/pthread_attr_setstacksize.c

@@ -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;
 

+ 1 - 2
libpthread/nptl/pthread_barrier_destroy.c

@@ -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;

+ 4 - 4
libpthread/nptl/pthread_barrier_init.c

@@ -23,10 +23,10 @@
 
 
 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;
 

+ 1 - 2
libpthread/nptl/pthread_barrierattr_destroy.c

@@ -21,8 +21,7 @@
 
 
 int
-pthread_barrierattr_destroy (attr)
-     pthread_barrierattr_t *attr;
+pthread_barrierattr_destroy (pthread_barrierattr_t *attr)
 {
   /* Nothing to do.  */
 

+ 3 - 3
libpthread/nptl/pthread_barrierattr_getpshared.c

@@ -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;
 

+ 1 - 2
libpthread/nptl/pthread_barrierattr_init.c

@@ -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;
 

+ 3 - 3
libpthread/nptl/pthread_barrierattr_setpshared.c

@@ -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;
 

+ 1 - 2
libpthread/nptl/pthread_cancel.c

@@ -26,8 +26,7 @@
 
 
 int
-pthread_cancel (th)
-     pthread_t th;
+pthread_cancel (pthread_t th)
 {
   volatile struct pthread *pd = (volatile struct pthread *) th;
 

+ 1 - 2
libpthread/nptl/pthread_cond_destroy.c

@@ -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);

+ 3 - 3
libpthread/nptl/pthread_cond_init.c

@@ -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;
 

+ 1 - 2
libpthread/nptl/pthread_condattr_destroy.c

@@ -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;

+ 3 - 3
libpthread/nptl/pthread_condattr_getclock.c

@@ -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));

+ 3 - 3
libpthread/nptl/pthread_condattr_getpshared.c

@@ -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;
 

+ 1 - 2
libpthread/nptl/pthread_condattr_init.c

@@ -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));
 

+ 3 - 3
libpthread/nptl/pthread_condattr_setclock.c

@@ -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.  */

+ 3 - 3
libpthread/nptl/pthread_condattr_setpshared.c

@@ -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))

+ 1 - 2
libpthread/nptl/pthread_detach.c

@@ -23,8 +23,7 @@
 
 
 int
-pthread_detach (th)
-     pthread_t th;
+pthread_detach (pthread_t th)
 {
   struct pthread *pd = (struct pthread *) th;
 

+ 1 - 3
libpthread/nptl/pthread_equal.c

@@ -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;
 }

+ 1 - 2
libpthread/nptl/pthread_exit.c

@@ -22,8 +22,7 @@
 
 
 void
-__pthread_exit (value)
-     void *value;
+__pthread_exit (void* value)
 {
   THREAD_SETMEM (THREAD_SELF, result, value);
 

+ 3 - 3
libpthread/nptl/pthread_getattr_np.c

@@ -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;

+ 4 - 4
libpthread/nptl/pthread_getschedparam.c

@@ -24,10 +24,10 @@
 
 
 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;
 

+ 1 - 2
libpthread/nptl/pthread_getspecific.c

@@ -22,8 +22,7 @@
 
 
 void *
-__pthread_getspecific (key)
-     pthread_key_t key;
+__pthread_getspecific (pthread_key_t key)
 {
   struct pthread_key_data *data;
 

+ 1 - 3
libpthread/nptl/pthread_join.c

@@ -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;

+ 3 - 3
libpthread/nptl/pthread_key_create.c

@@ -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;

+ 1 - 2
libpthread/nptl/pthread_key_delete.c

@@ -23,8 +23,7 @@
 
 
 int
-pthread_key_delete (key)
-     pthread_key_t key;
+pthread_key_delete (pthread_key_t key)
 {
   int result = EINVAL;
 

+ 1 - 2
libpthread/nptl/pthread_mutex_destroy.c

@@ -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;

+ 3 - 3
libpthread/nptl/pthread_mutex_init.c

@@ -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;
 

+ 1 - 2
libpthread/nptl/pthread_mutex_lock.c

@@ -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));
 

+ 3 - 3
libpthread/nptl/pthread_mutex_timedlock.c

@@ -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;

+ 1 - 2
libpthread/nptl/pthread_mutex_trylock.c

@@ -23,8 +23,7 @@
 
 
 int
-__pthread_mutex_trylock (mutex)
-     pthread_mutex_t *mutex;
+__pthread_mutex_trylock (pthread_mutex_t *mutex)
 {
   pid_t id;
 

+ 4 - 5
libpthread/nptl/pthread_mutex_unlock.c

@@ -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);
 }

+ 1 - 2
libpthread/nptl/pthread_mutexattr_destroy.c

@@ -21,8 +21,7 @@
 
 
 int
-__pthread_mutexattr_destroy (attr)
-     pthread_mutexattr_t *attr;
+__pthread_mutexattr_destroy (pthread_mutexattr_t *attr)
 {
   return 0;
 }

+ 3 - 3
libpthread/nptl/pthread_mutexattr_getpshared.c

@@ -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;
 

+ 3 - 3
libpthread/nptl/pthread_mutexattr_gettype.c

@@ -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;
 

+ 1 - 2
libpthread/nptl/pthread_mutexattr_init.c

@@ -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));

+ 3 - 3
libpthread/nptl/pthread_mutexattr_setpshared.c

@@ -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;
 

+ 3 - 3
libpthread/nptl/pthread_mutexattr_settype.c

@@ -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;
 

+ 1 - 2
libpthread/nptl/pthread_rwlock_destroy.c

@@ -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;

+ 3 - 3
libpthread/nptl/pthread_rwlock_init.c

@@ -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;
 

+ 1 - 2
libpthread/nptl/pthread_rwlock_tryrdlock.c

@@ -23,8 +23,7 @@
 
 
 int
-__pthread_rwlock_tryrdlock (rwlock)
-     pthread_rwlock_t *rwlock;
+__pthread_rwlock_tryrdlock (pthread_rwlock_t *rwlock)
 {
   int result = EBUSY;
 

+ 1 - 2
libpthread/nptl/pthread_rwlock_trywrlock.c

@@ -23,8 +23,7 @@
 
 
 int
-__pthread_rwlock_trywrlock (rwlock)
-     pthread_rwlock_t *rwlock;
+__pthread_rwlock_trywrlock (pthread_rwlock_t *rwlock)
 {
   int result = EBUSY;
 

+ 1 - 2
libpthread/nptl/pthread_rwlockattr_destroy.c

@@ -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.  */
 

+ 3 - 3
libpthread/nptl/pthread_rwlockattr_getkind_np.c

@@ -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;
 

+ 3 - 3
libpthread/nptl/pthread_rwlockattr_getpshared.c

@@ -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;
 

+ 1 - 2
libpthread/nptl/pthread_rwlockattr_init.c

@@ -21,8 +21,7 @@
 
 
 int
-pthread_rwlockattr_init (attr)
-     pthread_rwlockattr_t *attr;
+pthread_rwlockattr_init (pthread_rwlockattr_t *attr)
 {
   struct pthread_rwlockattr *iattr;
 

+ 3 - 3
libpthread/nptl/pthread_rwlockattr_setkind_np.c

@@ -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;
 

+ 3 - 3
libpthread/nptl/pthread_rwlockattr_setpshared.c

@@ -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;
 

+ 3 - 3
libpthread/nptl/pthread_setcancelstate.c

@@ -23,9 +23,9 @@
 
 
 int
-__pthread_setcancelstate (state, oldstate)
-     int state;
-     int *oldstate;
+__pthread_setcancelstate (
+     int state,
+     int *oldstate)
 {
   volatile struct pthread *self;
 

+ 3 - 3
libpthread/nptl/pthread_setcanceltype.c

@@ -23,9 +23,9 @@
 
 
 int
-__pthread_setcanceltype (type, oldtype)
-     int type;
-     int *oldtype;
+__pthread_setcanceltype (
+     int type,
+     int *oldtype)
 {
   volatile struct pthread *self;
 

+ 1 - 2
libpthread/nptl/pthread_setconcurrency.c

@@ -26,8 +26,7 @@ int __concurrency_level;
 
 
 int
-pthread_setconcurrency (level)
-     int level;
+pthread_setconcurrency (int level)
 {
   if (level < 0)
     return EINVAL;

+ 4 - 4
libpthread/nptl/pthread_setschedparam.c

@@ -25,10 +25,10 @@
 
 
 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;
 

+ 1 - 3
libpthread/nptl/pthread_setschedprio.c

@@ -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;
 

+ 3 - 3
libpthread/nptl/pthread_setspecific.c

@@ -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;

+ 4 - 4
libpthread/nptl/pthread_timedjoin.c

@@ -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;

+ 1 - 3
libpthread/nptl/pthread_tryjoin.c

@@ -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;

+ 1 - 2
libpthread/nptl/sem_close.c

@@ -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;
 

+ 1 - 2
libpthread/nptl/sem_destroy.c

@@ -22,8 +22,7 @@
 
 
 int
-__new_sem_destroy (sem)
-     sem_t *sem;
+__new_sem_destroy (sem_t *sem)
 {
   /* XXX Check for valid parameter.  */
 

+ 3 - 3
libpthread/nptl/sem_getvalue.c

@@ -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;
 

+ 4 - 4
libpthread/nptl/sem_init.c

@@ -24,10 +24,10 @@
 
 
 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))

+ 1 - 2
libpthread/nptl/sem_unlink.c

@@ -26,8 +26,7 @@
 
 
 int
-sem_unlink (name)
-     const char *name;
+sem_unlink (const char *name)
 {
   char *fname;
   size_t namelen;

+ 1 - 0
libpthread/nptl/sysdeps/i386/jmpbuf-unwind.h

@@ -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)

+ 1 - 2
libpthread/nptl/sysdeps/i386/pthread_spin_lock.c

@@ -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"

+ 4 - 4
libpthread/nptl/sysdeps/pthread/pthread_cond_timedwait.c

@@ -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;

+ 3 - 3
libpthread/nptl/sysdeps/pthread/pthread_cond_wait.c

@@ -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;

+ 4 - 4
libpthread/nptl/sysdeps/pthread/pthread_sigmask.c

@@ -24,10 +24,10 @@
 
 
 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;
 

+ 1 - 2
libpthread/nptl/sysdeps/pthread/pthread_spin_destroy.c

@@ -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;

+ 1 - 1
libpthread/nptl/sysdeps/sparc/sparc32/jmpbuf-unwind.h

@@ -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)

+ 3 - 3
libpthread/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h

@@ -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) \

+ 3 - 3
libpthread/nptl/sysdeps/unix/sysv/linux/pthread_kill.c

@@ -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;
 

+ 4 - 4
libpthread/nptl/sysdeps/unix/sysv/linux/timer_create.c

@@ -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

+ 1 - 2
libpthread/nptl/sysdeps/unix/sysv/linux/timer_delete.c

@@ -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

+ 1 - 2
libpthread/nptl/sysdeps/unix/sysv/linux/timer_getoverr.c

@@ -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

+ 3 - 3
libpthread/nptl/sysdeps/unix/sysv/linux/timer_gettime.c

@@ -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

+ 5 - 5
libpthread/nptl/sysdeps/unix/sysv/linux/timer_settime.c

@@ -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

+ 3 - 3
libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h

@@ -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) \