@@ -301,22 +301,10 @@ libc {
GLIBC_PRIVATE {
__libc_alloca_cutoff;
__pthread_total;
- ___pthread_self;
- __pthread_alloc;
- __pthread_block;
- __pthread_block_intr;
__pthread_create;
- __pthread_init_thread;
- __pthread_default_attr;
__pthread_attr_init;
- __pthread_attr_getstacksize;
- __pthread_attr_getstackaddr;
__pthread_attr_getstack;
__pthread_attr_setstacksize;
- __pthread_attr_setstackaddr;
- __pthread_attr_setstack;
- __pthread_dealloc;
- __pthread_dealloc_finish;
__pthread_setcancelstate;
__pthread_enable_asynccancel;
__pthread_disable_asynccancel;
@@ -327,16 +315,11 @@ libc {
__pthread_cond_signal;
__pthread_cond_timedwait;
__pthread_cond_wait;
- __pthread_condattr_init;
- __pthread_default_condattr;
- __pthread_destroy_specific;
__pthread_exit;
__pthread_getspecific;
__pthread_initialize_minimal;
__pthread_join;
__pthread_key_delete;
- __pthread_max_threads;
- __pthread_mutex_checklocked;
__pthread_mutex_destroy;
__pthread_mutex_init;
__pthread_mutex_lock;
@@ -348,21 +331,7 @@ libc {
__pthread_mutexattr_settype;
__pthread_once;
__pthread_setspecific;
- __pthread_setup;
- __pthread_sigstate_init;
- __pthread_sigstate;
- __pthread_sigstate_destroy;
__pthread_sigmask;
- __pthread_stack_alloc;
- __pthread_startup;
- __pthread_testcancel;
- __pthread_timedblock;
- __pthread_timedblock_intr;
- __pthread_thread_alloc;
- __pthread_thread_start;
- __pthread_thread_terminate;
- __pthread_wakeup;
- __thread_set_pcsptp;
}
}
@@ -31,7 +31,6 @@
/* The size of the thread ID lookup table. */
int __pthread_max_threads;
-libc_hidden_data_def (__pthread_max_threads)
/* List of thread structures corresponding to free thread IDs. */
struct __pthread *__pthread_free_threads;
@@ -203,4 +202,3 @@ retry:
*pthread = new;
return 0;
}
-libc_hidden_def (__pthread_alloc)
@@ -56,7 +56,6 @@ __pthread_dealloc (struct __pthread *pthread)
__pthread_enqueue (&__pthread_free_threads, pthread);
__pthread_mutex_unlock (&__pthread_free_threads_lock);
}
-libc_hidden_def (__pthread_dealloc)
/* Confirm deallocation of the thread structure for PTHREAD. */
void
@@ -71,4 +70,3 @@ __pthread_dealloc_finish (struct __pthread *pthread)
which reads this variable. */
pthread->terminated = TRUE;
}
-libc_hidden_def (__pthread_dealloc_finish)
@@ -39,7 +39,6 @@ __pthread_testcancel (void)
__pthread_exit (PTHREAD_CANCELED);
}
-libc_hidden_def (__pthread_testcancel)
versioned_symbol (libc, __pthread_testcancel, pthread_testcancel, GLIBC_2_43);
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_43)
@@ -26,7 +26,6 @@ __pthread_attr_getstackaddr (const pthread_attr_t *attr, void **stackaddr)
*stackaddr = attr->__stackaddr;
return 0;
}
-libc_hidden_def (__pthread_attr_getstackaddr)
versioned_symbol (libc, __pthread_attr_getstackaddr, pthread_attr_getstackaddr, GLIBC_2_41);
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_41)
@@ -26,7 +26,6 @@ __pthread_attr_getstacksize (const pthread_attr_t *attr, size_t * stacksize)
*stacksize = attr->__stacksize;
return 0;
}
-libc_hidden_def (__pthread_attr_getstacksize)
versioned_symbol (libc, __pthread_attr_getstacksize, pthread_attr_getstacksize, GLIBC_2_41);
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_41)
@@ -47,7 +47,6 @@ __pthread_attr_setstack (pthread_attr_t *attr, void *stackaddr, size_t stacksize
return 0;
}
-libc_hidden_def (__pthread_attr_setstack)
versioned_symbol (libc, __pthread_attr_setstack, pthread_attr_setstack, GLIBC_2_41);
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_41)
@@ -26,7 +26,6 @@ __pthread_attr_setstackaddr (pthread_attr_t *attr, void *stackaddr)
attr->__stackaddr = stackaddr;
return 0;
}
-libc_hidden_def (__pthread_attr_setstackaddr)
versioned_symbol (libc, __pthread_attr_setstackaddr, pthread_attr_setstackaddr, GLIBC_2_41);
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_41)
@@ -37,4 +37,3 @@ struct __pthread_attr __pthread_default_attr = {
__contentionscope: PTHREAD_SCOPE_SYSTEM,
__schedpolicy: SCHED_OTHER
};
-libc_hidden_data_def (__pthread_default_attr)
@@ -25,4 +25,3 @@ const struct __pthread_condattr __pthread_default_condattr = {
__pshared: PTHREAD_PROCESS_PRIVATE,
__clock: CLOCK_REALTIME
};
-libc_hidden_data_def (__pthread_default_condattr)
@@ -28,7 +28,6 @@ __pthread_condattr_init (pthread_condattr_t *attr)
*attr = __pthread_default_condattr;
return 0;
}
-libc_hidden_def (__pthread_condattr_init)
versioned_symbol (libc, __pthread_condattr_init, pthread_condattr_init, GLIBC_2_21);
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_21)
@@ -101,4 +101,3 @@ __pthread_destroy_specific (struct __pthread *thread)
memset (&thread->static_thread_specifics, 0,
sizeof (thread->static_thread_specifics));
}
-libc_hidden_def (__pthread_destroy_specific)
@@ -174,7 +174,6 @@ extern int __pthread_concurrency;
/* The size of the thread ID lookup table. */
extern int __pthread_max_threads;
-libc_hidden_proto (__pthread_max_threads)
#define __pthread_getid(thread) \
({ struct __pthread *__t = NULL; \
@@ -206,7 +205,6 @@ extern int __pthread_create_internal (struct __pthread **__restrict pthread,
/* Allocate a new thread structure and a pthread thread ID (but not a
kernel thread or a stack). THREAD has one reference. */
extern int __pthread_alloc (struct __pthread **thread);
-libc_hidden_proto (__pthread_alloc)
/* Deallocate the content of the thread structure. This is the dual of
__pthread_alloc (N.B. it does not call __pthread_stack_dealloc nor
@@ -215,17 +213,14 @@ libc_hidden_proto (__pthread_alloc)
to call __pthread_dealloc_finish when it is really finished with using
THREAD. */
extern void __pthread_dealloc (struct __pthread *thread);
-libc_hidden_proto (__pthread_dealloc)
/* Confirm deallocating the thread structure. Before calling this
the structure will not be reused yet. */
extern void __pthread_dealloc_finish (struct __pthread *pthread);
-libc_hidden_proto (__pthread_dealloc_finish)
/* Allocate a stack of size STACKSIZE. The stack base shall be
returned in *STACKADDR. */
extern int __pthread_stack_alloc (void **stackaddr, size_t stacksize);
-libc_hidden_proto (__pthread_stack_alloc)
/* Deallocate the stack STACKADDR of size STACKSIZE. */
extern void __pthread_stack_dealloc (void *stackaddr, size_t stacksize);
@@ -238,16 +233,13 @@ extern int __pthread_setup (struct __pthread *__restrict thread,
void *),
void *(*start_routine) (void *),
void *__restrict arg);
-libc_hidden_proto (__pthread_setup)
/* Allocate a kernel thread (and any miscellaneous system dependent
resources) for THREAD; it must not be placed on the run queue. */
extern int __pthread_thread_alloc (struct __pthread *thread);
-libc_hidden_proto (__pthread_thread_alloc)
/* Start THREAD making it eligible to run. */
extern int __pthread_thread_start (struct __pthread *thread);
-libc_hidden_proto (__pthread_thread_start)
/* Terminate the kernel thread associated with THREAD, and deallocate its
stack as well as any other kernel resource associated with it.
@@ -261,34 +253,27 @@ libc_hidden_proto (__pthread_thread_start)
has started, no other thread can terminate it, so that thread-local
variables created by that thread are correctly released. */
extern void __pthread_thread_terminate (struct __pthread *thread);
-libc_hidden_proto (__pthread_thread_terminate)
/* Called by a thread just before it calls the provided start
routine. */
extern void __pthread_startup (void);
-libc_hidden_proto (__pthread_startup)
/* Block THREAD. */
extern void __pthread_block (struct __pthread *thread);
-libc_hidden_proto (__pthread_block)
/* Block THREAD until *ABSTIME is reached. */
extern error_t __pthread_timedblock (struct __pthread *__restrict thread,
const struct timespec *__restrict abstime,
clockid_t clock_id);
-libc_hidden_proto (__pthread_timedblock)
/* Block THREAD with interrupts. */
extern error_t __pthread_block_intr (struct __pthread *thread);
-libc_hidden_proto (__pthread_block_intr)
/* Block THREAD until *ABSTIME is reached, with interrupts. */
extern error_t __pthread_timedblock_intr (struct __pthread *__restrict thread,
const struct timespec *__restrict abstime,
clockid_t clock_id);
-libc_hidden_proto (__pthread_timedblock_intr)
/* Wakeup THREAD. */
extern void __pthread_wakeup (struct __pthread *thread);
-libc_hidden_proto (__pthread_wakeup)
/* Perform a cancelation. The CANCEL_LOCK member of the given thread must
be locked before calling this function, which must unlock it. */
@@ -302,34 +287,28 @@ extern error_t __pthread_init_specific (struct __pthread *thread);
/* Call the destructors on all of the thread specific data in THREAD.
THREAD must be the calling thread. */
extern void __pthread_destroy_specific (struct __pthread *thread);
-libc_hidden_proto (__pthread_destroy_specific)
/* Initialize newly create thread *THREAD's signal state data
structures. */
extern error_t __pthread_sigstate_init (struct __pthread *thread);
-libc_hidden_proto (__pthread_sigstate_init)
/* Destroy the signal state data structures associated with thread
*THREAD. */
extern void __pthread_sigstate_destroy (struct __pthread *thread);
-libc_hidden_proto (__pthread_sigstate_destroy)
/* Modify thread *THREAD's signal state. */
extern error_t __pthread_sigstate (struct __pthread *__restrict thread, int how,
const sigset_t *__restrict set,
sigset_t *__restrict oset,
int clear_pending);
-libc_hidden_proto (__pthread_sigstate)
/* If supported, check that MUTEX is locked by the caller. */
extern int __pthread_mutex_checklocked (pthread_mutex_t *mtx);
-libc_hidden_proto (__pthread_mutex_checklocked)
/* Default thread attributes. */
extern struct __pthread_attr __pthread_default_attr;
-libc_hidden_proto (__pthread_default_attr)
/* Default barrier attributes. */
extern const struct __pthread_barrierattr __pthread_default_barrierattr;
@@ -339,7 +318,6 @@ extern const struct __pthread_rwlockattr __pthread_default_rwlockattr;
/* Default condition attributes. */
extern const struct __pthread_condattr __pthread_default_condattr;
-libc_hidden_proto (__pthread_default_condattr)
/* Semaphore encoding.
See nptl implementation for the details. */
@@ -22,4 +22,3 @@ void
__pthread_startup (void)
{
}
-libc_hidden_def (__pthread_startup)
@@ -202,21 +202,16 @@ int __pthread_attr_setdetachstate (pthread_attr_t *attr,
int detachstate);
int __pthread_attr_getstackaddr (const pthread_attr_t *__restrict __attr,
void **__restrict __stackaddr);
-libc_hidden_proto (__pthread_attr_getstackaddr)
int __pthread_attr_setstackaddr (pthread_attr_t *__attr, void *__stackaddr);
-libc_hidden_proto (__pthread_attr_setstackaddr)
int __pthread_attr_getstacksize (const pthread_attr_t *__restrict __attr,
size_t *__restrict __stacksize);
-libc_hidden_proto (__pthread_attr_getstacksize)
int __pthread_attr_setstacksize (pthread_attr_t *__attr, size_t __stacksize);
libc_hidden_proto (__pthread_attr_setstacksize)
int __pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr,
size_t __stacksize);
-libc_hidden_proto (__pthread_attr_setstack)
int __pthread_attr_getstack (const pthread_attr_t *, void **, size_t *);
libc_hidden_proto (__pthread_attr_getstack)
void __pthread_testcancel (void);
-libc_hidden_proto (__pthread_testcancel)
int __pthread_attr_init (pthread_attr_t *attr);
int __pthread_condattr_init (pthread_condattr_t *attr);
int __pthread_getschedparam (pthread_t thread_id, int *policy,
@@ -248,7 +243,7 @@ libc_hidden_proto (__pthread_spin_unlock)
libc_hidden_proto (__pthread_self)
libc_hidden_proto (__pthread_attr_init)
-libc_hidden_proto (__pthread_condattr_init)
+
libc_hidden_proto (__pthread_get_cleanup_stack)
libc_hidden_proto (__pthread_create)
@@ -51,4 +51,3 @@ __pthread_block (struct __pthread *thread)
assert_perror (err);
RETURN(0);
}
-libc_hidden_def (__pthread_block)
@@ -45,4 +45,3 @@ __pthread_stack_alloc (void **stackaddr, size_t stacksize)
err = EAGAIN;
return err;
}
-libc_hidden_def (__pthread_stack_alloc)
@@ -92,4 +92,3 @@ __pthread_thread_alloc (struct __pthread *thread)
return 0;
}
-libc_hidden_def (__pthread_thread_alloc)
@@ -51,4 +51,3 @@ __pthread_thread_start (struct __pthread *thread)
return 0;
}
-libc_hidden_def (__pthread_thread_start)
@@ -91,4 +91,3 @@ __pthread_thread_terminate (struct __pthread *thread)
/* We are out of luck. */
assert_perror (err);
}
-libc_hidden_def (__pthread_thread_terminate)
@@ -69,4 +69,3 @@ __pthread_timedblock (struct __pthread *thread,
assert_perror (err);
return 0;
}
-libc_hidden_def (__pthread_timedblock)
@@ -35,4 +35,3 @@ __pthread_wakeup (struct __pthread *thread)
0, MACH_PORT_NULL);
assert_perror (err);
}
-libc_hidden_def (__pthread_wakeup)
@@ -50,4 +50,3 @@ __pthread_mutex_checklocked (pthread_mutex_t *mtxp)
return ret;
}
-libc_hidden_def (__pthread_mutex_checklocked)
@@ -24,7 +24,5 @@
struct __pthread __pthread_init_thread = {
.thread = 1,
};
-libc_hidden_def (__pthread_init_thread)
__thread struct __pthread *___pthread_self = &__pthread_init_thread;
-libc_hidden_tls_def (___pthread_self)
@@ -26,4 +26,3 @@ __pthread_sigstate_destroy (struct __pthread *thread)
{
_hurd_sigstate_delete (thread->kernel_thread);
}
-libc_hidden_def (__pthread_sigstate_destroy)
@@ -43,5 +43,3 @@ __pthread_sigstate_init (struct __pthread *thread)
return 0;
}
-
-libc_hidden_def (__pthread_sigstate_init)
@@ -31,4 +31,3 @@ __pthread_sigstate (struct __pthread *thread, int how,
return __sigthreadmask (_hurd_thread_sigstate (thread->kernel_thread),
how, set, oset, clear_pending);
}
-libc_hidden_def (__pthread_sigstate)
@@ -33,9 +33,7 @@
mach_msg_header_t wakeupmsg;
extern __thread struct __pthread *___pthread_self;
-libc_hidden_tls_proto (___pthread_self)
extern struct __pthread __pthread_init_thread;
-libc_hidden_proto (__pthread_init_thread)
#ifdef DEBUG
#define _pthread_self() \
@@ -69,6 +67,5 @@ __pthread_stack_dealloc (void *stackaddr, size_t stacksize)
extern int __thread_set_pcsptp (thread_t thread,
int set_pc, void *pc,
int set_sp, void *sp, int set_tp, void *tp);
-libc_hidden_proto (__thread_set_pcsptp)
#endif /* pt-sysdep.h */
@@ -81,4 +81,3 @@ __thread_set_pcsptp (thread_t thread,
return 0;
}
-libc_hidden_def (__thread_set_pcsptp)
@@ -98,4 +98,3 @@ __pthread_setup (struct __pthread *thread,
return 0;
}
-libc_hidden_def (__pthread_setup)
@@ -77,4 +77,3 @@ __thread_set_pcsptp (thread_t thread,
return 0;
}
-libc_hidden_def (__thread_set_pcsptp)
@@ -91,4 +91,3 @@ __pthread_setup (struct __pthread *thread,
return 0;
}
-libc_hidden_def (__pthread_setup)