summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2009-12-09 16:53:57 -0800
committerAustin Foxley <austinf@cetoncorp.com>2009-12-09 16:53:57 -0800
commit8ebd4b8855981462a03f5930a1f8d712c021190f (patch)
tree5dc072f6ecb41940b6f6c7bac2d690c9dd6a8030
parent641e7e36ad0a9b2899b04f256c5b243ada7da279 (diff)
nptl: fix old style function declerations
also fix a few shadowed local warnings Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
-rw-r--r--libpthread/nptl/cleanup_compat.c14
-rw-r--r--libpthread/nptl/cleanup_defer_compat.c14
-rw-r--r--libpthread/nptl/pthreadP.h7
-rw-r--r--libpthread/nptl/pthread_atfork.c8
-rw-r--r--libpthread/nptl/pthread_attr_destroy.c3
-rw-r--r--libpthread/nptl/pthread_attr_getdetachstate.c4
-rw-r--r--libpthread/nptl/pthread_attr_getguardsize.c4
-rw-r--r--libpthread/nptl/pthread_attr_getinheritsched.c6
-rw-r--r--libpthread/nptl/pthread_attr_getschedparam.c6
-rw-r--r--libpthread/nptl/pthread_attr_getschedpolicy.c6
-rw-r--r--libpthread/nptl/pthread_attr_getscope.c6
-rw-r--r--libpthread/nptl/pthread_attr_getstack.c8
-rw-r--r--libpthread/nptl/pthread_attr_getstackaddr.c6
-rw-r--r--libpthread/nptl/pthread_attr_getstacksize.c6
-rw-r--r--libpthread/nptl/pthread_attr_init.c3
-rw-r--r--libpthread/nptl/pthread_attr_setdetachstate.c4
-rw-r--r--libpthread/nptl/pthread_attr_setguardsize.c4
-rw-r--r--libpthread/nptl/pthread_attr_setinheritsched.c6
-rw-r--r--libpthread/nptl/pthread_attr_setschedparam.c6
-rw-r--r--libpthread/nptl/pthread_attr_setschedpolicy.c6
-rw-r--r--libpthread/nptl/pthread_attr_setscope.c6
-rw-r--r--libpthread/nptl/pthread_attr_setstack.c8
-rw-r--r--libpthread/nptl/pthread_attr_setstackaddr.c6
-rw-r--r--libpthread/nptl/pthread_attr_setstacksize.c6
-rw-r--r--libpthread/nptl/pthread_barrier_destroy.c3
-rw-r--r--libpthread/nptl/pthread_barrier_init.c8
-rw-r--r--libpthread/nptl/pthread_barrierattr_destroy.c3
-rw-r--r--libpthread/nptl/pthread_barrierattr_getpshared.c6
-rw-r--r--libpthread/nptl/pthread_barrierattr_init.c3
-rw-r--r--libpthread/nptl/pthread_barrierattr_setpshared.c6
-rw-r--r--libpthread/nptl/pthread_cancel.c3
-rw-r--r--libpthread/nptl/pthread_cond_destroy.c3
-rw-r--r--libpthread/nptl/pthread_cond_init.c6
-rw-r--r--libpthread/nptl/pthread_condattr_destroy.c3
-rw-r--r--libpthread/nptl/pthread_condattr_getclock.c6
-rw-r--r--libpthread/nptl/pthread_condattr_getpshared.c6
-rw-r--r--libpthread/nptl/pthread_condattr_init.c3
-rw-r--r--libpthread/nptl/pthread_condattr_setclock.c6
-rw-r--r--libpthread/nptl/pthread_condattr_setpshared.c6
-rw-r--r--libpthread/nptl/pthread_detach.c3
-rw-r--r--libpthread/nptl/pthread_equal.c4
-rw-r--r--libpthread/nptl/pthread_exit.c3
-rw-r--r--libpthread/nptl/pthread_getattr_np.c6
-rw-r--r--libpthread/nptl/pthread_getschedparam.c8
-rw-r--r--libpthread/nptl/pthread_getspecific.c3
-rw-r--r--libpthread/nptl/pthread_join.c4
-rw-r--r--libpthread/nptl/pthread_key_create.c6
-rw-r--r--libpthread/nptl/pthread_key_delete.c3
-rw-r--r--libpthread/nptl/pthread_mutex_destroy.c3
-rw-r--r--libpthread/nptl/pthread_mutex_init.c6
-rw-r--r--libpthread/nptl/pthread_mutex_lock.c3
-rw-r--r--libpthread/nptl/pthread_mutex_timedlock.c6
-rw-r--r--libpthread/nptl/pthread_mutex_trylock.c3
-rw-r--r--libpthread/nptl/pthread_mutex_unlock.c9
-rw-r--r--libpthread/nptl/pthread_mutexattr_destroy.c3
-rw-r--r--libpthread/nptl/pthread_mutexattr_getpshared.c6
-rw-r--r--libpthread/nptl/pthread_mutexattr_gettype.c6
-rw-r--r--libpthread/nptl/pthread_mutexattr_init.c3
-rw-r--r--libpthread/nptl/pthread_mutexattr_setpshared.c6
-rw-r--r--libpthread/nptl/pthread_mutexattr_settype.c6
-rw-r--r--libpthread/nptl/pthread_rwlock_destroy.c3
-rw-r--r--libpthread/nptl/pthread_rwlock_init.c6
-rw-r--r--libpthread/nptl/pthread_rwlock_tryrdlock.c3
-rw-r--r--libpthread/nptl/pthread_rwlock_trywrlock.c3
-rw-r--r--libpthread/nptl/pthread_rwlockattr_destroy.c3
-rw-r--r--libpthread/nptl/pthread_rwlockattr_getkind_np.c6
-rw-r--r--libpthread/nptl/pthread_rwlockattr_getpshared.c6
-rw-r--r--libpthread/nptl/pthread_rwlockattr_init.c3
-rw-r--r--libpthread/nptl/pthread_rwlockattr_setkind_np.c6
-rw-r--r--libpthread/nptl/pthread_rwlockattr_setpshared.c6
-rw-r--r--libpthread/nptl/pthread_setcancelstate.c6
-rw-r--r--libpthread/nptl/pthread_setcanceltype.c6
-rw-r--r--libpthread/nptl/pthread_setconcurrency.c3
-rw-r--r--libpthread/nptl/pthread_setschedparam.c8
-rw-r--r--libpthread/nptl/pthread_setschedprio.c4
-rw-r--r--libpthread/nptl/pthread_setspecific.c6
-rw-r--r--libpthread/nptl/pthread_timedjoin.c8
-rw-r--r--libpthread/nptl/pthread_tryjoin.c4
-rw-r--r--libpthread/nptl/sem_close.c3
-rw-r--r--libpthread/nptl/sem_destroy.c3
-rw-r--r--libpthread/nptl/sem_getvalue.c6
-rw-r--r--libpthread/nptl/sem_init.c8
-rw-r--r--libpthread/nptl/sem_unlink.c3
-rw-r--r--libpthread/nptl/sysdeps/i386/jmpbuf-unwind.h1
-rw-r--r--libpthread/nptl/sysdeps/i386/pthread_spin_lock.c3
-rw-r--r--libpthread/nptl/sysdeps/pthread/pthread_cond_timedwait.c8
-rw-r--r--libpthread/nptl/sysdeps/pthread/pthread_cond_wait.c6
-rw-r--r--libpthread/nptl/sysdeps/pthread/pthread_sigmask.c8
-rw-r--r--libpthread/nptl/sysdeps/pthread/pthread_spin_destroy.c3
-rw-r--r--libpthread/nptl/sysdeps/sparc/sparc32/jmpbuf-unwind.h2
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h6
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/pthread_kill.c6
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/timer_create.c8
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/timer_delete.c3
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/timer_getoverr.c3
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/timer_gettime.c6
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/timer_settime.c10
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h6
98 files changed, 234 insertions, 282 deletions
diff --git a/libpthread/nptl/cleanup_compat.c b/libpthread/nptl/cleanup_compat.c
index a25b397f9..77d714f7f 100644
--- a/libpthread/nptl/cleanup_compat.c
+++ b/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;
diff --git a/libpthread/nptl/cleanup_defer_compat.c b/libpthread/nptl/cleanup_defer_compat.c
index a0ed6da88..8fd9b5415 100644
--- a/libpthread/nptl/cleanup_defer_compat.c
+++ b/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;
diff --git a/libpthread/nptl/pthreadP.h b/libpthread/nptl/pthreadP.h
index 45222f45e..61d59f601 100644
--- a/libpthread/nptl/pthreadP.h
+++ b/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;
diff --git a/libpthread/nptl/pthread_atfork.c b/libpthread/nptl/pthread_atfork.c
index 491362e19..5e9b35284 100644
--- a/libpthread/nptl/pthread_atfork.c
+++ b/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);
diff --git a/libpthread/nptl/pthread_attr_destroy.c b/libpthread/nptl/pthread_attr_destroy.c
index cae7ca0b1..f9e446a5c 100644
--- a/libpthread/nptl/pthread_attr_destroy.c
+++ b/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;
diff --git a/libpthread/nptl/pthread_attr_getdetachstate.c b/libpthread/nptl/pthread_attr_getdetachstate.c
index 502cfa4f1..db0720e7a 100644
--- a/libpthread/nptl/pthread_attr_getdetachstate.c
+++ b/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;
diff --git a/libpthread/nptl/pthread_attr_getguardsize.c b/libpthread/nptl/pthread_attr_getguardsize.c
index e1d0ed624..6fc3e6af1 100644
--- a/libpthread/nptl/pthread_attr_getguardsize.c
+++ b/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;
diff --git a/libpthread/nptl/pthread_attr_getinheritsched.c b/libpthread/nptl/pthread_attr_getinheritsched.c
index f47bf7147..3ff304094 100644
--- a/libpthread/nptl/pthread_attr_getinheritsched.c
+++ b/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;
diff --git a/libpthread/nptl/pthread_attr_getschedparam.c b/libpthread/nptl/pthread_attr_getschedparam.c
index 0ff0c0c4f..82b237198 100644
--- a/libpthread/nptl/pthread_attr_getschedparam.c
+++ b/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;
diff --git a/libpthread/nptl/pthread_attr_getschedpolicy.c b/libpthread/nptl/pthread_attr_getschedpolicy.c
index 8364f3be0..7b8f1deb6 100644
--- a/libpthread/nptl/pthread_attr_getschedpolicy.c
+++ b/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;
diff --git a/libpthread/nptl/pthread_attr_getscope.c b/libpthread/nptl/pthread_attr_getscope.c
index b6aa5a213..9b05ffaea 100644
--- a/