From 86c3dbc6445ff1bbd72c43ce46dd9f84d80e890e Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 31 Oct 2015 11:20:52 +0100 Subject: Do not use __thread as parameter name That is the TLS qualifier. * include/pthread/pthread.h (pthread_getattr_np, pthread_cancel, pthread_kill, pthread_getcpuclockid, pthread_getschedparam, pthread_setschedparam, pthread_setschedprio): Use __thr as parameter name instead of __thread. --- include/pthread/pthread.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/pthread/pthread.h b/include/pthread/pthread.h index 8bc20f5..f0d080a 100644 --- a/include/pthread/pthread.h +++ b/include/pthread/pthread.h @@ -184,7 +184,7 @@ extern int pthread_attr_setstacksize (pthread_attr_t *__attr, /* Initialize thread attribute *ATTR with attributes corresponding to the already running thread THREAD. It shall be called on an uninitialized ATTR and destroyed with pthread_attr_destroy when no longer needed. */ -extern int pthread_getattr_np (pthread_t __thread, pthread_attr_t *__attr); +extern int pthread_getattr_np (pthread_t __thr, pthread_attr_t *__attr); #endif @@ -598,7 +598,7 @@ extern int pthread_setcanceltype (int __type, int *__oldtype); #define PTHREAD_CANCELED ((void *) -1) /* Cancel THEAD. */ -extern int pthread_cancel (pthread_t __thread); +extern int pthread_cancel (pthread_t __thr); /* Add an explicit cancelation point. */ extern void pthread_testcancel (void); @@ -712,29 +712,29 @@ extern int pthread_atfork (void (*__prepare) (void), void (*__parent) (void), /* Signals (should be in ). */ /* Send signal SIGNO to thread THREAD. */ -extern int pthread_kill (pthread_t __thread, int __signo); +extern int pthread_kill (pthread_t __thr, int __signo); /* Time. */ #ifdef __USE_XOPEN2K /* Return the thread cpu clock. */ -extern int pthread_getcpuclockid (pthread_t __thread, __clockid_t *__clock); +extern int pthread_getcpuclockid (pthread_t __thr, __clockid_t *__clock); #endif /* Scheduling. */ /* Return thread THREAD's scheduling paramters. */ -extern int pthread_getschedparam (pthread_t __thread, int *__restrict __policy, +extern int pthread_getschedparam (pthread_t __thr, int *__restrict __policy, struct sched_param *__restrict __param); /* Set thread THREAD's scheduling paramters. */ -extern int pthread_setschedparam (pthread_t __thread, int __policy, +extern int pthread_setschedparam (pthread_t __thr, int __policy, const struct sched_param *__param); /* Set thread THREAD's scheduling priority. */ -extern int pthread_setschedprio (pthread_t __thread, int __prio); +extern int pthread_setschedprio (pthread_t __thr, int __prio); #ifdef __USE_GNU /* Yield the processor to another thread or process. -- cgit v1.2.3