diff options
Diffstat (limited to 'nptl')
58 files changed, 58 insertions, 148 deletions
diff --git a/nptl/cleanup_compat.c b/nptl/cleanup_compat.c index d4e96ae..51de3e2 100644 --- a/nptl/cleanup_compat.c +++ b/nptl/cleanup_compat.c @@ -38,9 +38,7 @@ 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/nptl/old_pthread_cond_broadcast.c b/nptl/old_pthread_cond_broadcast.c index 77d49e1..da3d112 100644 --- a/nptl/old_pthread_cond_broadcast.c +++ b/nptl/old_pthread_cond_broadcast.c @@ -25,8 +25,7 @@ #if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_3_2) int -__pthread_cond_broadcast_2_0 (cond) - pthread_cond_2_0_t *cond; +__pthread_cond_broadcast_2_0 (pthread_cond_2_0_t *cond) { if (cond->cond == NULL) { diff --git a/nptl/old_pthread_cond_destroy.c b/nptl/old_pthread_cond_destroy.c index 90b140e..49fb052 100644 --- a/nptl/old_pthread_cond_destroy.c +++ b/nptl/old_pthread_cond_destroy.c @@ -23,8 +23,7 @@ #if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_3_2) int -__pthread_cond_destroy_2_0 (cond) - pthread_cond_2_0_t *cond; +__pthread_cond_destroy_2_0 (pthread_cond_2_0_t *cond) { /* Free the memory which was eventually allocated. */ free (cond->cond); diff --git a/nptl/old_pthread_cond_signal.c b/nptl/old_pthread_cond_signal.c index 062fa71..87aa8d7 100644 --- a/nptl/old_pthread_cond_signal.c +++ b/nptl/old_pthread_cond_signal.c @@ -25,8 +25,7 @@ #if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_3_2) int -__pthread_cond_signal_2_0 (cond) - pthread_cond_2_0_t *cond; +__pthread_cond_signal_2_0 (pthread_cond_2_0_t *cond) { if (cond->cond == NULL) { diff --git a/nptl/old_pthread_cond_wait.c b/nptl/old_pthread_cond_wait.c index 418a865..9884756 100644 --- a/nptl/old_pthread_cond_wait.c +++ b/nptl/old_pthread_cond_wait.c @@ -25,9 +25,7 @@ #if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_3_2) int -__pthread_cond_wait_2_0 (cond, mutex) - pthread_cond_2_0_t *cond; - pthread_mutex_t *mutex; +__pthread_cond_wait_2_0 (pthread_cond_2_0_t *cond, pthread_mutex_t *mutex) { if (cond->cond == NULL) { diff --git a/nptl/pt-raise.c b/nptl/pt-raise.c index c0f16e9..41f32c7 100644 --- a/nptl/pt-raise.c +++ b/nptl/pt-raise.c @@ -22,8 +22,7 @@ int -raise (sig) - int sig; +raise (int sig) { /* This is what POSIX says must happen. */ return pthread_kill (pthread_self (), sig); diff --git a/nptl/pthread_barrier_destroy.c b/nptl/pthread_barrier_destroy.c index 985d718..3193c2e 100644 --- a/nptl/pthread_barrier_destroy.c +++ b/nptl/pthread_barrier_destroy.c @@ -22,8 +22,7 @@ int -pthread_barrier_destroy (barrier) - pthread_barrier_t *barrier; +pthread_barrier_destroy (pthread_barrier_t *barrier) { struct pthread_barrier *ibarrier; int result = EBUSY; diff --git a/nptl/pthread_barrier_wait.c b/nptl/pthread_barrier_wait.c index 2b34e30..44b44a0 100644 --- a/nptl/pthread_barrier_wait.c +++ b/nptl/pthread_barrier_wait.c @@ -25,8 +25,7 @@ /* Wait on barrier. */ int -__pthread_barrier_wait (barrier) - pthread_barrier_t *barrier; +__pthread_barrier_wait (pthread_barrier_t *barrier) { struct pthread_barrier *ibarrier = (struct pthread_barrier *) barrier; int result = 0; diff --git a/nptl/pthread_barrierattr_destroy.c b/nptl/pthread_barrierattr_destroy.c index e953fab..5c2f257 100644 --- a/nptl/pthread_barrierattr_destroy.c +++ b/nptl/pthread_barrierattr_destroy.c @@ -20,8 +20,7 @@ int -pthread_barrierattr_destroy (attr) - pthread_barrierattr_t *attr; +pthread_barrierattr_destroy (pthread_barrierattr_t *attr) { /* Nothing to do. */ diff --git a/nptl/pthread_barrierattr_init.c b/nptl/pthread_barrierattr_init.c index 70a00b0..3ef164c 100644 --- a/nptl/pthread_barrierattr_init.c +++ b/nptl/pthread_barrierattr_init.c @@ -20,8 +20,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; diff --git a/nptl/pthread_barrierattr_setpshared.c b/nptl/pthread_barrierattr_setpshared.c index eeaee5d..8a57baa 100644 --- a/nptl/pthread_barrierattr_setpshared.c +++ b/nptl/pthread_barrierattr_setpshared.c @@ -22,9 +22,7 @@ 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; diff --git a/nptl/pthread_cond_broadcast.c b/nptl/pthread_cond_broadcast.c index 881d098..7f8c2dd 100644 --- a/nptl/pthread_cond_broadcast.c +++ b/nptl/pthread_cond_broadcast.c @@ -29,8 +29,7 @@ int -__pthread_cond_broadcast (cond) - pthread_cond_t *cond; +__pthread_cond_broadcast (pthread_cond_t *cond) { LIBC_PROBE (cond_broadcast, 1, cond); diff --git a/nptl/pthread_cond_destroy.c b/nptl/pthread_cond_destroy.c index 410e52d..bf4cfce 100644 --- a/nptl/pthread_cond_destroy.c +++ b/nptl/pthread_cond_destroy.c @@ -23,8 +23,7 @@ int -__pthread_cond_destroy (cond) - pthread_cond_t *cond; +__pthread_cond_destroy (pthread_cond_t *cond) { int pshared = (cond->__data.__mutex == (void *) ~0l) ? LLL_SHARED : LLL_PRIVATE; diff --git a/nptl/pthread_cond_init.c b/nptl/pthread_cond_init.c index ce954c7..fa62b66 100644 --- a/nptl/pthread_cond_init.c +++ b/nptl/pthread_cond_init.c @@ -22,9 +22,7 @@ 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; diff --git a/nptl/pthread_cond_signal.c b/nptl/pthread_cond_signal.c index ba32f40..d01784f 100644 --- a/nptl/pthread_cond_signal.c +++ b/nptl/pthread_cond_signal.c @@ -29,8 +29,7 @@ int -__pthread_cond_signal (cond) - pthread_cond_t *cond; +__pthread_cond_signal (pthread_cond_t *cond) { int pshared = (cond->__data.__mutex == (void *) ~0l) ? LLL_SHARED : LLL_PRIVATE; diff --git a/nptl/pthread_condattr_destroy.c b/nptl/pthread_condattr_destroy.c index 55621c1..d295637 100644 --- a/nptl/pthread_condattr_destroy.c +++ b/nptl/pthread_condattr_destroy.c @@ -20,8 +20,7 @@ int -__pthread_condattr_destroy (attr) - pthread_condattr_t *attr; +__pthread_condattr_destroy (pthread_condattr_t *attr) { /* Nothing to be done. */ return 0; diff --git a/nptl/pthread_condattr_getclock.c b/nptl/pthread_condattr_getclock.c index 020d21a..dcce72a 100644 --- a/nptl/pthread_condattr_getclock.c +++ b/nptl/pthread_condattr_getclock.c @@ -20,9 +20,7 @@ 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_NWAITERS_SHIFT) - 1)); diff --git a/nptl/pthread_condattr_getpshared.c b/nptl/pthread_condattr_getpshared.c index c4d9917..dd1337b 100644 --- a/nptl/pthread_condattr_getpshared.c +++ b/nptl/pthread_condattr_getpshared.c @@ -20,9 +20,7 @@ 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; diff --git a/nptl/pthread_condattr_init.c b/nptl/pthread_condattr_init.c index 5ecc5f6..d004788 100644 --- a/nptl/pthread_condattr_init.c +++ b/nptl/pthread_condattr_init.c @@ -21,8 +21,7 @@ int -__pthread_condattr_init (attr) - pthread_condattr_t *attr; +__pthread_condattr_init (pthread_condattr_t *attr) { memset (attr, '\0', sizeof (*attr)); diff --git a/nptl/pthread_condattr_setpshared.c b/nptl/pthread_condattr_setpshared.c index a015403..bb92df9 100644 --- a/nptl/pthread_condattr_setpshared.c +++ b/nptl/pthread_condattr_setpshared.c @@ -21,9 +21,7 @@ #include <futex-internal.h> int -pthread_condattr_setpshared (attr, pshared) - pthread_condattr_t *attr; - int pshared; +pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared) { int err = futex_supports_pshared (pshared); if (err != 0) diff --git a/nptl/pthread_detach.c b/nptl/pthread_detach.c index aa735f6..ef58126 100644 --- a/nptl/pthread_detach.c +++ b/nptl/pthread_detach.c @@ -22,8 +22,7 @@ int -pthread_detach (th) - pthread_t th; +pthread_detach (pthread_t th) { struct pthread *pd = (struct pthread *) th; diff --git a/nptl/pthread_equal.c b/nptl/pthread_equal.c index 69f4c1b..5c174e2 100644 --- a/nptl/pthread_equal.c +++ b/nptl/pthread_equal.c @@ -20,9 +20,7 @@ int -__pthread_equal (thread1, thread2) - pthread_t thread1; - pthread_t thread2; +__pthread_equal (pthread_t thread1, pthread_t thread2) { return thread1 == thread2; } diff --git a/nptl/pthread_getcpuclockid.c b/nptl/pthread_getcpuclockid.c index 33f9f7f..7308296 100644 --- a/nptl/pthread_getcpuclockid.c +++ b/nptl/pthread_getcpuclockid.c @@ -22,9 +22,7 @@ int -pthread_getcpuclockid (threadid, clockid) - pthread_t threadid; - clockid_t *clockid; +pthread_getcpuclockid (pthread_t threadid, clockid_t *clockid) { struct pthread *pd = (struct pthread *) threadid; diff --git a/nptl/pthread_getspecific.c b/nptl/pthread_getspecific.c index 0bee354..537aab7 100644 --- a/nptl/pthread_getspecific.c +++ b/nptl/pthread_getspecific.c @@ -21,8 +21,7 @@ void * -__pthread_getspecific (key) - pthread_key_t key; +__pthread_getspecific (pthread_key_t key) { struct pthread_key_data *data; diff --git a/nptl/pthread_key_delete.c b/nptl/pthread_key_delete.c index bd9b4a2..6de200c 100644 --- a/nptl/pthread_key_delete.c +++ b/nptl/pthread_key_delete.c @@ -22,8 +22,7 @@ int -pthread_key_delete (key) - pthread_key_t key; +pthread_key_delete (pthread_key_t key) { int result = EINVAL; diff --git a/nptl/pthread_mutex_consistent.c b/nptl/pthread_mutex_consistent.c index b8dbe03..a67cca3 100644 --- a/nptl/pthread_mutex_consistent.c +++ b/nptl/pthread_mutex_consistent.c @@ -21,8 +21,7 @@ int -pthread_mutex_consistent (mutex) - pthread_mutex_t *mutex; +pthread_mutex_consistent (pthread_mutex_t *mutex) { /* Test whether this is a robust mutex with a dead owner. */ if ((mutex->__data.__kind & PTHREAD_MUTEX_ROBUST_NORMAL_NP) == 0 diff --git a/nptl/pthread_mutex_destroy.c b/nptl/pthread_mutex_destroy.c index f6089df..d2c1bb8 100644 --- a/nptl/pthread_mutex_destroy.c +++ b/nptl/pthread_mutex_destroy.c @@ -23,8 +23,7 @@ int -__pthread_mutex_destroy (mutex) - pthread_mutex_t *mutex; +__pthread_mutex_destroy (pthread_mutex_t *mutex) { LIBC_PROBE (mutex_destroy, 1, mutex); diff --git a/nptl/pthread_mutex_getprioceiling.c b/nptl/pthread_mutex_getprioceiling.c index 43c35fb..7d6c5a1 100644 --- a/nptl/pthread_mutex_getprioceiling.c +++ b/nptl/pthread_mutex_getprioceiling.c @@ -22,9 +22,7 @@ int -pthread_mutex_getprioceiling (mutex, prioceiling) - const pthread_mutex_t *mutex; - int *prioceiling; +pthread_mutex_getprioceiling (const pthread_mutex_t *mutex, int *prioceiling) { if (__builtin_expect ((mutex->__data.__kind & PTHREAD_MUTEX_PRIO_PROTECT_NP) == 0, 0)) diff --git a/nptl/pthread_mutexattr_destroy.c b/nptl/pthread_mutexattr_destroy.c index 28ca5fb..f5fa6db 100644 --- a/nptl/pthread_mutexattr_destroy.c +++ b/nptl/pthread_mutexattr_destroy.c @@ -20,8 +20,7 @@ int -__pthread_mutexattr_destroy (attr) - pthread_mutexattr_t *attr; +__pthread_mutexattr_destroy (pthread_mutexattr_t *attr) { return 0; } diff --git a/nptl/pthread_mutexattr_getprotocol.c b/nptl/pthread_mutexattr_getprotocol.c index 9914829..0b38b80 100644 --- a/nptl/pthread_mutexattr_getprotocol.c +++ b/nptl/pthread_mutexattr_getprotocol.c @@ -21,9 +21,7 @@ int -pthread_mutexattr_getprotocol (attr, protocol) - const pthread_mutexattr_t *attr; - int *protocol; +pthread_mutexattr_getprotocol (const pthread_mutexattr_t *attr, int *protocol) { const struct pthread_mutexattr *iattr; diff --git a/nptl/pthread_mutexattr_getpshared.c b/nptl/pthread_mutexattr_getpshared.c index 92840ef..0c1b4f1 100644 --- a/nptl/pthread_mutexattr_getpshared.c +++ b/nptl/pthread_mutexattr_getpshared.c @@ -20,9 +20,7 @@ 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; diff --git a/nptl/pthread_mutexattr_getrobust.c b/nptl/pthread_mutexattr_getrobust.c index 5115e1e..85713e4 100644 --- a/nptl/pthread_mutexattr_getrobust.c +++ b/nptl/pthread_mutexattr_getrobust.c @@ -20,9 +20,7 @@ int -pthread_mutexattr_getrobust (attr, robustness) - const pthread_mutexattr_t *attr; - int *robustness; +pthread_mutexattr_getrobust (const pthread_mutexattr_t *attr, int *robustness) { const struct pthread_mutexattr *iattr; diff --git a/nptl/pthread_mutexattr_gettype.c b/nptl/pthread_mutexattr_gettype.c index 0bf2c82..7b910f5 100644 --- a/nptl/pthread_mutexattr_gettype.c +++ b/nptl/pthread_mutexattr_gettype.c @@ -20,9 +20,7 @@ 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; diff --git a/nptl/pthread_mutexattr_init.c b/nptl/pthread_mutexattr_init.c index 92206b0..28bbb34 100644 --- a/nptl/pthread_mutexattr_init.c +++ b/nptl/pthread_mutexattr_init.c @@ -21,8 +21,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)); diff --git a/nptl/pthread_mutexattr_setprioceiling.c b/nptl/pthread_mutexattr_setprioceiling.c index fcd4190..6928e50 100644 --- a/nptl/pthread_mutexattr_setprioceiling.c +++ b/nptl/pthread_mutexattr_setprioceiling.c @@ -23,9 +23,7 @@ int -pthread_mutexattr_setprioceiling (attr, prioceiling) - pthread_mutexattr_t *attr; - int prioceiling; +pthread_mutexattr_setprioceiling (pthread_mutexattr_t *attr, int prioceiling) { /* See __init_sched_fifo_prio. */ if (atomic_load_relaxed (&__sched_fifo_min_prio) == -1 diff --git a/nptl/pthread_mutexattr_setprotocol.c b/nptl/pthread_mutexattr_setprotocol.c index b6bb92b..42542cc 100644 --- a/nptl/pthread_mutexattr_setprotocol.c +++ b/nptl/pthread_mutexattr_setprotocol.c @@ -22,9 +22,7 @@ int -pthread_mutexattr_setprotocol (attr, protocol) - pthread_mutexattr_t *attr; - int protocol; +pthread_mutexattr_setprotocol (pthread_mutexattr_t *attr, int protocol) { if (protocol != PTHREAD_PRIO_NONE && protocol != PTHREAD_PRIO_INHERIT diff --git a/nptl/pthread_mutexattr_setpshared.c b/nptl/pthread_mutexattr_setpshared.c index 62fd168..ce9233f 100644 --- a/nptl/pthread_mutexattr_setpshared.c +++ b/nptl/pthread_mutexattr_setpshared.c @@ -22,9 +22,7 @@ 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; diff --git a/nptl/pthread_mutexattr_setrobust.c b/nptl/pthread_mutexattr_setrobust.c index 54d3624..7a89f2f 100644 --- a/nptl/pthread_mutexattr_setrobust.c +++ b/nptl/pthread_mutexattr_setrobust.c @@ -21,9 +21,7 @@ int -pthread_mutexattr_setrobust (attr, robustness) - pthread_mutexattr_t *attr; - int robustness; +pthread_mutexattr_setrobust (pthread_mutexattr_t *attr, int robustness) { if (robustness != PTHREAD_MUTEX_STALLED_NP && __builtin_expect (robustness != PTHREAD_MUTEX_ROBUST_NP, 0)) diff --git a/nptl/pthread_mutexattr_settype.c b/nptl/pthread_mutexattr_settype.c index c6bd5a6..993c5f0 100644 --- a/nptl/pthread_mutexattr_settype.c +++ b/nptl/pthread_mutexattr_settype.c @@ -21,9 +21,7 @@ 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; diff --git a/nptl/pthread_rwlock_destroy.c b/nptl/pthread_rwlock_destroy.c index 7faf0c3..ac90e71 100644 --- a/nptl/pthread_rwlock_destroy.c +++ b/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) { LIBC_PROBE (rwlock_destroy, 1, rwlock); diff --git a/nptl/pthread_rwlockattr_destroy.c b/nptl/pthread_rwlockattr_destroy.c index 3e2e26d..67eaf5f 100644 --- a/nptl/pthread_rwlockattr_destroy.c +++ b/nptl/pthread_rwlockattr_destroy.c @@ -20,8 +20,7 @@ int -pthread_rwlockattr_destroy (attr) - pthread_rwlockattr_t *attr; +pthread_rwlockattr_destroy (pthread_rwlockattr_t *attr) { /* Nothing to do. For now. */ diff --git a/nptl/pthread_rwlockattr_getkind_np.c b/nptl/pthread_rwlockattr_getkind_np.c index 972bd56..c87ee47 100644 --- a/nptl/pthread_rwlockattr_getkind_np.c +++ b/nptl/pthread_rwlockattr_getkind_np.c @@ -20,9 +20,7 @@ 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; diff --git a/nptl/pthread_rwlockattr_getpshared.c b/nptl/pthread_rwlockattr_getpshared.c index 528dc84..6708f22 100644 --- a/nptl/pthread_rwlockattr_getpshared.c +++ b/nptl/pthread_rwlockattr_getpshared.c @@ -20,9 +20,7 @@ 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; diff --git a/nptl/pthread_rwlockattr_init.c b/nptl/pthread_rwlockattr_init.c index 33b060a..f5bf865 100644 --- a/nptl/pthread_rwlockattr_init.c +++ b/nptl/pthread_rwlockattr_init.c @@ -20,8 +20,7 @@ int -pthread_rwlockattr_init (attr) - pthread_rwlockattr_t *attr; +pthread_rwlockattr_init (pthread_rwlockattr_t *attr) { struct pthread_rwlockattr *iattr; diff --git a/nptl/pthread_rwlockattr_setkind_np.c b/nptl/pthread_rwlockattr_setkind_np.c index 4293c12..6ef8266 100644 --- a/nptl/pthread_rwlockattr_setkind_np.c +++ b/nptl/pthread_rwlockattr_setkind_np.c @@ -21,9 +21,7 @@ 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; diff --git a/nptl/pthread_rwlockattr_setpshared.c b/nptl/pthread_rwlockattr_setpshared.c index 0369209..a368b99 100644 --- a/nptl/pthread_rwlockattr_setpshared.c +++ b/nptl/pthread_rwlockattr_setpshared.c @@ -22,9 +22,7 @@ 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; diff --git a/nptl/pthread_setcancelstate.c b/nptl/pthread_setcancelstate.c index c8bc8b8..b21c7d2 100644 --- a/nptl/pthread_setcancelstate.c +++ b/nptl/pthread_setcancelstate.c @@ -22,9 +22,7 @@ int -__pthread_setcancelstate (state, oldstate) - int state; - int *oldstate; +__pthread_setcancelstate (int state, int *oldstate) { volatile struct pthread *self; diff --git a/nptl/pthread_setcanceltype.c b/nptl/pthread_setcanceltype.c index 11eff86..79c11d7 100644 --- a/nptl/pthread_setcanceltype.c +++ b/nptl/pthread_setcanceltype.c @@ -22,9 +22,7 @@ int -__pthread_setcanceltype (type, oldtype) - int type; - int *oldtype; +__pthread_setcanceltype (int type, int *oldtype) { if (type < PTHREAD_CANCEL_DEFERRED || type > PTHREAD_CANCEL_ASYNCHRONOUS) return EINVAL; diff --git a/nptl/pthread_setconcurrency.c b/nptl/pthread_setconcurrency.c index 5b03af6..149c934 100644 --- a/nptl/pthread_setconcurrency.c +++ b/nptl/pthread_setconcurrency.c @@ -25,8 +25,7 @@ int __concurrency_level; int -pthread_setconcurrency (level) - int level; +pthread_setconcurrency (int level) { if (level < 0) return EINVAL; diff --git a/nptl/pthread_setschedprio.c b/nptl/pthread_setschedprio.c index b628822..e513b8f 100644 --- a/nptl/pthread_setschedprio.c +++ b/nptl/pthread_setschedprio.c @@ -25,9 +25,7 @@ int -pthread_setschedprio (threadid, prio) - pthread_t threadid; - int prio; +pthread_setschedprio (pthread_t threadid, int prio) { struct pthread *pd = (struct pthread *) threadid; diff --git a/nptl/pthread_setspecific.c b/nptl/pthread_setspecific.c index a9cf26c..89dba71 100644 --- a/nptl/pthread_setspecific.c +++ b/nptl/pthread_setspecific.c @@ -22,9 +22,7 @@ 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; diff --git a/nptl/pthread_spin_destroy.c b/nptl/pthread_spin_destroy.c index 0d41f44..e777a8e 100644 --- a/nptl/pthread_spin_destroy.c +++ b/nptl/pthread_spin_destroy.c @@ -20,8 +20,7 @@ int -pthread_spin_destroy (lock) - pthread_spinlock_t *lock; +pthread_spin_destroy (pthread_spinlock_t *lock) { /* Nothing to do. */ return 0; diff --git a/nptl/pthread_tryjoin.c b/nptl/pthread_tryjoin.c index 3305844..337654d 100644 --- a/nptl/pthread_tryjoin.c +++ b/nptl/pthread_tryjoin.c @@ -24,9 +24,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; diff --git a/nptl/sem_close.c b/nptl/sem_close.c index 7f1df14..c29efb8 100644 --- a/nptl/sem_close.c +++ b/nptl/sem_close.c @@ -40,8 +40,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; diff --git a/nptl/sem_destroy.c b/nptl/sem_destroy.c index c74bbd0..08840fe 100644 --- a/nptl/sem_destroy.c +++ b/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. */ diff --git a/nptl/sem_init.c b/nptl/sem_init.c index bd1b592..22cd61e 100644 --- a/nptl/sem_init.c +++ b/nptl/sem_init.c @@ -64,10 +64,7 @@ versioned_symbol (libpthread, __new_sem_init, sem_init, GLIBC_2_1); #if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1) int attribute_compat_text_section -__old_sem_init (sem, pshared, value) - sem_t *sem; - int pshared; - unsigned int value; +__old_sem_init (sem_t *sem, int pshared, unsigned int value) { /* Parameter sanity check. */ if (__glibc_unlikely (value > SEM_VALUE_MAX)) diff --git a/nptl/sigaction.c b/nptl/sigaction.c index 2858da5..ca3a4e7 100644 --- a/nptl/sigaction.c +++ b/nptl/sigaction.c @@ -29,10 +29,7 @@ int -__sigaction (sig, act, oact) - int sig; - const struct sigaction *act; - struct sigaction *oact; +__sigaction (int sig, const struct sigaction *act, struct sigaction *oact) { if (__glibc_unlikely (sig == SIGCANCEL || sig == SIGSETXID)) { diff --git a/nptl/unregister-atfork.c b/nptl/unregister-atfork.c index 6d08ed7..43c5457 100644 --- a/nptl/unregister-atfork.c +++ b/nptl/unregister-atfork.c @@ -24,8 +24,7 @@ void -__unregister_atfork (dso_handle) - void *dso_handle; +__unregister_atfork (void *dso_handle) { /* Check whether there is any entry in the list which we have to remove. It is likely that this is not the case so don't bother |