-int pthread_attr_destroy __P((pthread_attr_t *attr));
-int pthread_attr_getdetachstate __P((const pthread_attr_t *attr,
- int *detachstate));
-int pthread_attr_getinheritsched __P((const pthread_attr_t *attr,
- int *inheritsched));
-int pthread_attr_getschedparam __P((const pthread_attr_t *attr,
- struct sched_param *param));
-int pthread_attr_getschedpolicy __P((const pthread_attr_t *attr,
- int *policy));
-int pthread_attr_getstackaddr __P((const pthread_attr_t *attr,
- void **stackaddr));
-int pthread_attr_getstacksize __P((const pthread_attr_t *attr,
- size_t *stacksize));
-int pthread_attr_getstack __P((const pthread_attr_t *attr,
- void **stackaddr, size_t *stacksize));
-int pthread_attr_init __P((pthread_attr_t *attr));
-int pthread_attr_setdetachstate __P((pthread_attr_t *attr,
- int detachstate));
-int pthread_attr_setinheritsched __P((pthread_attr_t *attr,
- int inheritsched));
-int pthread_attr_setschedparam __P((pthread_attr_t *attr,
- const struct sched_param *param));
-int pthread_attr_setschedpolicy __P((pthread_attr_t *attr,
- int policy));
-int pthread_attr_setstackaddr __P((pthread_attr_t *attr,
- void *stackaddr));
-int pthread_attr_setstacksize __P((pthread_attr_t *attr,
- size_t stacksize));
-int pthread_attr_setstack __P((pthread_attr_t *attr,
- void *stackaddr, size_t stacksize));
-int pthread_cancel __P((pthread_t thread));
-int pthread_setcancelstate __P((int state, int *oldstate));
-int pthread_setcanceltype __P((int type, int *oldtype));
-void pthread_testcancel __P((void));
-int pthread_cond_broadcast __P((pthread_cond_t *cond));
-int pthread_cond_destroy __P((pthread_cond_t *cond));
-int pthread_cond_init __P((pthread_cond_t *cond,
- const pthread_condattr_t *attr));
-int pthread_cond_signal __P((pthread_cond_t *cond));
-int pthread_cond_wait __P((pthread_cond_t *cond,
- pthread_mutex_t *mutex));
-int pthread_cond_timedwait __P((pthread_cond_t *cond,
- pthread_mutex_t *mutex,
- const struct timespec *abstime));
-int pthread_condattr_init __P((pthread_condattr_t *attr));
-int pthread_condattr_destroy __P((pthread_condattr_t *attr));
-int pthread_condattr_getpshared __P((const pthread_condattr_t *attr,
- int *pshared));
-int pthread_condattr_setpshared __P((pthread_condattr_t *attr,
- int pshared));
-int pthread_create __P((pthread_t *thread,
- const pthread_attr_t *attr,
- void *(*start_routine)(void *),
- void *arg));
-int pthread_detach __P((pthread_t thread));
-int pthread_equal __P((pthread_t t1,
- pthread_t t2));
-void pthread_exit __P((void *value_ptr));
-int pthread_kill __P((pthread_t, int));
-int pthread_sigmask __P((int, const sigset_t *, sigset_t *));
-int sigwait __P((const sigset_t *, int *));
-int pthread_getschedparam __P((pthread_t thread,
- int *policy,
- struct sched_param *param));
-int pthread_join __P((pthread_t thread,
- void **value_ptr));
-int pthread_mutex_destroy __P((pthread_mutex_t *mutex));
-int pthread_mutex_getprioceiling __P((const pthread_mutex_t *mutex,
- int *prioceiling));
-int pthread_mutex_init __P((pthread_mutex_t *mutex,
- const pthread_mutexattr_t *attr));
-int pthread_mutex_lock __P((pthread_mutex_t *mutex));
-int pthread_mutex_setprioceiling __P((pthread_mutex_t *mutex,
- int prioceiling,
- int *old_prioceiling));
-int pthread_mutex_trylock __P((pthread_mutex_t *mutex));
-int pthread_mutex_unlock __P((pthread_mutex_t *mutex));
-int pthread_mutexattr_destroy __P((pthread_mutexattr_t *attr));
-int pthread_mutexattr_getprioceiling __P((const pthread_mutexattr_t *attr,
- int *prioceiling));
-int pthread_mutexattr_getprotocol __P((const pthread_mutexattr_t *attr,
- int *protocol));
-int pthread_mutexattr_getpshared __P((const pthread_mutexattr_t *attr,
- int *pshared));
-int pthread_mutexattr_gettype __P((const pthread_mutexattr_t *attr,
- int *type));
-int pthread_mutexattr_init __P((pthread_mutexattr_t *attr));
-int pthread_mutexattr_setprioceiling __P((pthread_mutexattr_t *attr,
- int prioceiling));
-int pthread_mutexattr_setprotocol __P((pthread_mutexattr_t *attr,
- int protocol));
-int pthread_mutexattr_settype __P((pthread_mutexattr_t *attr,
- int type));
-int pthread_mutexattr_setpshared __P((pthread_mutexattr_t *attr,
- int pshared));
-int pthread_once __P((pthread_once_t *once_control,
- void (*init_routine)(void)));
-pthread_t pthread_self __P((void));
-int pthread_setschedparam __P((pthread_t thread,
- int policy,
- const struct sched_param *param));
-int pthread_key_create __P((pthread_key_t *key,
- void (*destructor)(void *)));
-int pthread_key_delete __P((pthread_key_t key));
-int pthread_setspecific __P((pthread_key_t key,
- const void *value));
-void *pthread_getspecific __P((pthread_key_t key));
-int pthread_attr_getscope __P((pthread_attr_t *, int *));
-int pthread_attr_setscope __P((pthread_attr_t *, int));
-int pthread_getconcurrency __P((void));
-int pthread_setconcurrency __P((int));
-int pthread_rwlock_destroy __P((pthread_rwlock_t * rwlock));
-int pthread_rwlock_init __P((pthread_rwlock_t * rwlock,
- const pthread_rwlockattr_t *attr));
-int pthread_rwlock_rdlock __P((pthread_rwlock_t *rwlock));
-int pthread_rwlock_tryrdlock __P((pthread_rwlock_t *rwlock));
-int pthread_rwlock_wrlock __P((pthread_rwlock_t *rwlock));
-int pthread_rwlock_trywrlock __P((pthread_rwlock_t *rwlock));
-int pthread_rwlock_unlock __P((pthread_rwlock_t *rwlock));
-int pthread_rwlockattr_init __P((pthread_rwlockattr_t *attr));
-int pthread_rwlockattr_destroy __P((pthread_rwlockattr_t *attr));
-int pthread_rwlockattr_getpshared __P((const pthread_rwlockattr_t *attr,
- int *pshared));
-int pthread_rwlockattr_setpshared __P((pthread_rwlockattr_t *attr,
- int pshared));
-
-#ifndef _POSIX_C_SOURCE
+int pthread_atfork(void (*)(void), void (*)(void),
+ void (*)(void));
+int pthread_attr_destroy(pthread_attr_t *);
+int pthread_attr_getdetachstate(const pthread_attr_t *,
+ int *);
+int pthread_attr_getguardsize(const pthread_attr_t * __restrict,
+ size_t * __restrict);
+int pthread_attr_getinheritsched(const pthread_attr_t * __restrict,
+ int * __restrict);
+int pthread_attr_getschedparam(const pthread_attr_t * __restrict,
+ struct sched_param * __restrict);
+int pthread_attr_getschedpolicy(const pthread_attr_t * __restrict,
+ int * __restrict);
+int pthread_attr_getscope(const pthread_attr_t * __restrict, int * __restrict);
+int pthread_attr_getstack(const pthread_attr_t * __restrict,
+ void ** __restrict, size_t * __restrict);
+int pthread_attr_getstackaddr(const pthread_attr_t * __restrict,
+ void ** __restrict);
+int pthread_attr_getstacksize(const pthread_attr_t * __restrict,
+ size_t * __restrict);
+int pthread_attr_init(pthread_attr_t *);
+int pthread_attr_setdetachstate(pthread_attr_t *,
+ int );
+int pthread_attr_setguardsize(pthread_attr_t *, size_t );
+int pthread_attr_setinheritsched(pthread_attr_t *,
+ int );
+int pthread_attr_setschedparam(pthread_attr_t * __restrict,
+ const struct sched_param * __restrict);
+int pthread_attr_setschedpolicy(pthread_attr_t *,
+ int );
+int pthread_attr_setscope(pthread_attr_t *, int);
+int pthread_attr_setstack(pthread_attr_t *,
+ void *, size_t );
+int pthread_attr_setstackaddr(pthread_attr_t *,
+ void *);
+int pthread_attr_setstacksize(pthread_attr_t *, size_t );
+int pthread_cancel(pthread_t ) __DARWIN_ALIAS(pthread_cancel);
+
+int pthread_cond_broadcast(pthread_cond_t *);
+int pthread_cond_destroy(pthread_cond_t *);
+//Begin-Libc
+#ifndef LIBC_ALIAS_PTHREAD_COND_INIT
+//End-Libc
+int pthread_cond_init(pthread_cond_t * __restrict,
+ const pthread_condattr_t * __restrict) __DARWIN_ALIAS(pthread_cond_init);
+//Begin-Libc
+#else /* LIBC_ALIAS_PTHREAD_COND_INIT */
+int pthread_cond_init(pthread_cond_t * __restrict,
+ const pthread_condattr_t * __restrict) LIBC_ALIAS(pthread_cond_init);
+#endif /* !LIBC_ALIAS_PTHREAD_COND_INIT */
+//End-Libc
+int pthread_cond_signal(pthread_cond_t *);
+//Begin-Libc
+#ifndef LIBC_ALIAS_PTHREAD_COND_TIMEDWAIT
+//End-Libc
+int pthread_cond_timedwait(pthread_cond_t * __restrict,
+ pthread_mutex_t * __restrict,
+ const struct timespec * __restrict) __DARWIN_ALIAS_C(pthread_cond_timedwait);
+//Begin-Libc
+#else /* LIBC_ALIAS_PTHREAD_COND_TIMEDWAIT */
+int pthread_cond_timedwait(pthread_cond_t * __restrict,
+ pthread_mutex_t * __restrict,
+ const struct timespec * __restrict) LIBC_ALIAS_C(pthread_cond_timedwait);
+#endif /* !LIBC_ALIAS_PTHREAD_COND_TIMEDWAIT */
+//End-Libc
+//Begin-Libc
+#ifndef LIBC_ALIAS_PTHREAD_COND_WAIT
+//End-Libc
+int pthread_cond_wait(pthread_cond_t * __restrict,
+ pthread_mutex_t * __restrict) __DARWIN_ALIAS_C(pthread_cond_wait);
+//Begin-Libc
+#else /* LIBC_ALIAS_PTHREAD_COND_WAIT */
+int pthread_cond_wait(pthread_cond_t * __restrict,
+ pthread_mutex_t * __restrict) LIBC_ALIAS_C(pthread_cond_wait);
+#endif /* !LIBC_ALIAS_PTHREAD_COND_WAIT */
+//End-Libc
+int pthread_condattr_destroy(pthread_condattr_t *);
+int pthread_condattr_init(pthread_condattr_t *);
+int pthread_condattr_getpshared(const pthread_condattr_t * __restrict,
+ int * __restrict);
+int pthread_condattr_setpshared(pthread_condattr_t *,
+ int );
+int pthread_create(pthread_t * __restrict,
+ const pthread_attr_t * __restrict,
+ void *(*)(void *),
+ void * __restrict);
+int pthread_detach(pthread_t );
+int pthread_equal(pthread_t ,
+ pthread_t );
+void pthread_exit(void *) __dead2;
+int pthread_getconcurrency(void);
+int pthread_getschedparam(pthread_t , int * __restrict, struct sched_param * __restrict);
+void *pthread_getspecific(pthread_key_t );
+//Begin-Libc
+#ifndef LIBC_ALIAS_PTHREAD_JOIN
+//End-Libc
+int pthread_join(pthread_t , void **) __DARWIN_ALIAS_C(pthread_join);
+//Begin-Libc
+#else /* LIBC_ALIAS_PTHREAD_JOIN */
+int pthread_join(pthread_t , void **) LIBC_ALIAS_C(pthread_join);
+#endif /* !LIBC_ALIAS_PTHREAD_JOIN */
+//End-Libc
+int pthread_key_create(pthread_key_t *, void (*)(void *));
+int pthread_key_delete(pthread_key_t );
+int pthread_mutex_destroy(pthread_mutex_t *);
+int pthread_mutex_getprioceiling(const pthread_mutex_t * __restrict, int * __restrict);
+int pthread_mutex_init(pthread_mutex_t * __restrict, const pthread_mutexattr_t * __restrict);
+int pthread_mutex_lock(pthread_mutex_t *);
+int pthread_mutex_setprioceiling(pthread_mutex_t * __restrict, int, int * __restrict);
+int pthread_mutex_trylock(pthread_mutex_t *);
+int pthread_mutex_unlock(pthread_mutex_t *);
+//Begin-Libc
+#ifndef LIBC_ALIAS_PTHREAD_MUTEXATTR_DESTROY
+//End-Libc
+int pthread_mutexattr_destroy(pthread_mutexattr_t *) __DARWIN_ALIAS(pthread_mutexattr_destroy);
+//Begin-Libc
+#else /* LIBC_ALIAS_PTHREAD_MUTEXATTR_DESTROY */
+int pthread_mutexattr_destroy(pthread_mutexattr_t *) LIBC_ALIAS(pthread_mutexattr_destroy);
+#endif /* !LIBC_ALIAS_PTHREAD_MUTEXATTR_DESTROY */
+//End-Libc
+int pthread_mutexattr_getprioceiling(const pthread_mutexattr_t * __restrict, int * __restrict);
+int pthread_mutexattr_getprotocol(const pthread_mutexattr_t * __restrict, int * __restrict);
+int pthread_mutexattr_getpshared(const pthread_mutexattr_t * __restrict, int * __restrict);
+int pthread_mutexattr_gettype(const pthread_mutexattr_t * __restrict, int * __restrict);
+int pthread_mutexattr_init(pthread_mutexattr_t *);
+int pthread_mutexattr_setprioceiling(pthread_mutexattr_t *, int);
+int pthread_mutexattr_setprotocol(pthread_mutexattr_t *, int);
+int pthread_mutexattr_setpshared(pthread_mutexattr_t *, int );
+int pthread_mutexattr_settype(pthread_mutexattr_t *, int);
+int pthread_once(pthread_once_t *, void (*)(void));
+//Begin-Libc
+#ifndef LIBC_ALIAS_PTHREAD_RWLOCK_DESTROY
+//End-Libc
+int pthread_rwlock_destroy(pthread_rwlock_t * ) __DARWIN_ALIAS(pthread_rwlock_destroy);
+//Begin-Libc
+#else /* LIBC_ALIAS_PTHREAD_RWLOCK_DESTROY */
+int pthread_rwlock_destroy(pthread_rwlock_t * ) LIBC_ALIAS(pthread_rwlock_destroy);
+#endif /* !LIBC_ALIAS_PTHREAD_RWLOCK_DESTROY */
+//End-Libc
+//Begin-Libc
+#ifndef LIBC_ALIAS_PTHREAD_RWLOCK_INIT
+//End-Libc
+int pthread_rwlock_init(pthread_rwlock_t * __restrict, const pthread_rwlockattr_t * __restrict) __DARWIN_ALIAS(pthread_rwlock_init);
+//Begin-Libc
+#else /* LIBC_ALIAS_PTHREAD_RWLOCK_INIT */
+int pthread_rwlock_init(pthread_rwlock_t * __restrict, const pthread_rwlockattr_t * __restrict) LIBC_ALIAS(pthread_rwlock_init);
+#endif /* !LIBC_ALIAS_PTHREAD_RWLOCK_INIT */
+//End-Libc
+//Begin-Libc
+#ifndef LIBC_ALIAS_PTHREAD_RWLOCK_RDLOCK
+//End-Libc
+int pthread_rwlock_rdlock(pthread_rwlock_t *) __DARWIN_ALIAS(pthread_rwlock_rdlock);
+//Begin-Libc
+#else /* LIBC_ALIAS_PTHREAD_RWLOCK_RDLOCK */
+int pthread_rwlock_rdlock(pthread_rwlock_t *) LIBC_ALIAS(pthread_rwlock_rdlock);
+#endif /* !LIBC_ALIAS_PTHREAD_RWLOCK_RDLOCK */
+//End-Libc
+//Begin-Libc
+#ifndef LIBC_ALIAS_PTHREAD_RWLOCK_TRYRDLOCK
+//End-Libc
+int pthread_rwlock_tryrdlock(pthread_rwlock_t *) __DARWIN_ALIAS(pthread_rwlock_tryrdlock);
+//Begin-Libc
+#else /* LIBC_ALIAS_PTHREAD_RWLOCK_TRYRDLOCK */
+int pthread_rwlock_tryrdlock(pthread_rwlock_t *) LIBC_ALIAS(pthread_rwlock_tryrdlock);
+#endif /* !LIBC_ALIAS_PTHREAD_RWLOCK_TRYRDLOCK */
+//End-Libc
+//Begin-Libc
+#ifndef LIBC_ALIAS_PTHREAD_RWLOCK_TRYWRLOCK
+//End-Libc
+int pthread_rwlock_trywrlock(pthread_rwlock_t *) __DARWIN_ALIAS(pthread_rwlock_trywrlock);
+//Begin-Libc
+#else /* LIBC_ALIAS_PTHREAD_RWLOCK_TRYWRLOCK */
+int pthread_rwlock_trywrlock(pthread_rwlock_t *) LIBC_ALIAS(pthread_rwlock_trywrlock);
+#endif /* !LIBC_ALIAS_PTHREAD_RWLOCK_TRYWRLOCK */
+//End-Libc
+//Begin-Libc
+#ifndef LIBC_ALIAS_PTHREAD_RWLOCK_WRLOCK
+//End-Libc
+int pthread_rwlock_wrlock(pthread_rwlock_t *) __DARWIN_ALIAS(pthread_rwlock_wrlock);
+//Begin-Libc
+#else /* LIBC_ALIAS_PTHREAD_RWLOCK_WRLOCK */
+int pthread_rwlock_wrlock(pthread_rwlock_t *) LIBC_ALIAS(pthread_rwlock_wrlock);
+#endif /* !LIBC_ALIAS_PTHREAD_RWLOCK_WRLOCK */
+//End-Libc
+//Begin-Libc
+#ifndef LIBC_ALIAS_PTHREAD_RWLOCK_UNLOCK
+//End-Libc
+int pthread_rwlock_unlock(pthread_rwlock_t *) __DARWIN_ALIAS(pthread_rwlock_unlock);
+//Begin-Libc
+#else /* LIBC_ALIAS_PTHREAD_RWLOCK_UNLOCK */
+int pthread_rwlock_unlock(pthread_rwlock_t *) LIBC_ALIAS(pthread_rwlock_unlock);
+#endif /* !LIBC_ALIAS_PTHREAD_RWLOCK_UNLOCK */
+//End-Libc
+int pthread_rwlockattr_destroy(pthread_rwlockattr_t *);
+int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t * __restrict,
+ int * __restrict);
+int pthread_rwlockattr_init(pthread_rwlockattr_t *);
+int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *,
+ int );
+pthread_t pthread_self(void);
+
+//Begin-Libc
+#ifndef LIBC_ALIAS_PTHREAD_SETCANCELSTATE
+//End-Libc
+int pthread_setcancelstate(int , int *) __DARWIN_ALIAS(pthread_setcancelstate);
+//Begin-Libc
+#else /* LIBC_ALIAS_PTHREAD_SETCANCELSTATE */
+int pthread_setcancelstate(int , int *) LIBC_ALIAS(pthread_setcancelstate);
+#endif /* !LIBC_ALIAS_PTHREAD_SETCANCELSTATE */
+//End-Libc
+//Begin-Libc
+#ifndef LIBC_ALIAS_PTHREAD_SETCANCELTYPE
+//End-Libc
+int pthread_setcanceltype(int , int *) __DARWIN_ALIAS(pthread_setcanceltype);
+//Begin-Libc
+#else /* LIBC_ALIAS_PTHREAD_SETCANCELTYPE */
+int pthread_setcanceltype(int , int *) LIBC_ALIAS(pthread_setcanceltype);
+#endif /* !LIBC_ALIAS_PTHREAD_SETCANCELTYPE */
+//End-Libc
+int pthread_setconcurrency(int);
+int pthread_setschedparam(pthread_t ,
+ int ,
+ const struct sched_param *);
+int pthread_setspecific(pthread_key_t ,
+ const void *);
+void pthread_testcancel(void) __DARWIN_ALIAS(pthread_testcancel);
+
+#if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || defined(_DARWIN_C_SOURCE)