diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-31 14:41:37 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-31 14:41:37 +0000 |
commit | 8c2b377d28710215838741cd9778c8e7229ebf26 (patch) | |
tree | d24bddc26b796f7665f10720a0c5242f0f968541 /libpthread/linuxthreads/internals.h | |
parent | da6cf3047ecad6e3f2483932134640a77a2c3556 (diff) |
s/IS_IN_linuxthreads/IS_IN_libpthread/, some prototypes, correct Makefile.in, disable __res_state, unavailable in resolv.h
Diffstat (limited to 'libpthread/linuxthreads/internals.h')
-rw-r--r-- | libpthread/linuxthreads/internals.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libpthread/linuxthreads/internals.h b/libpthread/linuxthreads/internals.h index b2625c761..0f797b353 100644 --- a/libpthread/linuxthreads/internals.h +++ b/libpthread/linuxthreads/internals.h @@ -372,7 +372,7 @@ extern pthread_t __pthread_self (void); extern pthread_descr __pthread_thread_self (void); extern pthread_descr __pthread_self_stack (void) attribute_hidden; extern int __pthread_equal (pthread_t thread1, pthread_t thread2); -extern void __pthread_exit (void *retval); +extern void __pthread_exit (void *retval) attribute_noreturn; extern int __pthread_getschedparam (pthread_t thread, int *policy, struct sched_param *param); extern int __pthread_setschedparam (pthread_t thread, int policy, @@ -382,11 +382,11 @@ extern int __pthread_setcanceltype (int type, int * oldtype); extern void __pthread_restart_old(pthread_descr th); extern void __pthread_suspend_old(pthread_descr self); -extern int __pthread_timedsuspend_old(pthread_descr self, const struct timespec *abs); +extern int __pthread_timedsuspend_old(pthread_descr self, const struct timespec *abstime); extern void __pthread_restart_new(pthread_descr th); extern void __pthread_suspend_new(pthread_descr self); -extern int __pthread_timedsuspend_new(pthread_descr self, const struct timespec *abs); +extern int __pthread_timedsuspend_new(pthread_descr self, const struct timespec *abstime); extern void __pthread_wait_for_restart_signal(pthread_descr self); @@ -528,7 +528,9 @@ weak_extern (__pthread_thread_self) # define __manager_thread __pthread_manager_threadp #endif -extern inline __attribute__((always_inline)) pthread_descr +extern __always_inline pthread_descr +check_thread_self (void); +extern __always_inline pthread_descr check_thread_self (void) { pthread_descr self = thread_self (); |