Remove symbols not in libpthread (libc_r).
authorHasso Tepper <hasso@estpak.ee>
Sat, 30 May 2009 17:56:26 +0000 (20:56 +0300)
committerHasso Tepper <hasso@estpak.ee>
Sat, 30 May 2009 17:59:22 +0000 (20:59 +0300)
Pthread stubs must not have symbols which are not in the libpthread.
Unbreaks a hell of lot things in the pkgsrc.

lib/libc/gen/_pthread_stubs.c

index 1e5e5af..6a191a6 100644 (file)
@@ -49,7 +49,6 @@ WR(stub_zero, pthread_atfork);
 WR(stub_zero, pthread_attr_destroy);
 WR(stub_zero, pthread_attr_get_np);
 WR(stub_zero, pthread_attr_getdetachstate);
-WR(stub_zero, pthread_attr_getguardsize);
 WR(stub_zero, pthread_attr_getinheritsched);
 WR(stub_zero, pthread_attr_getschedparam);
 WR(stub_zero, pthread_attr_getschedpolicy);
@@ -60,7 +59,6 @@ WR(stub_zero, pthread_attr_getstacksize);
 WR(stub_zero, pthread_attr_init);
 WR(stub_zero, pthread_attr_setcreatesuspend_np);
 WR(stub_zero, pthread_attr_setdetachstate);
-WR(stub_zero, pthread_attr_setguardsize);
 WR(stub_zero, pthread_attr_setinheritsched);
 WR(stub_zero, pthread_attr_setschedparam);
 WR(stub_zero, pthread_attr_setschedpolicy);
@@ -68,13 +66,6 @@ WR(stub_zero, pthread_attr_setscope);
 WR(stub_zero, pthread_attr_setstack);
 WR(stub_zero, pthread_attr_setstackaddr);
 WR(stub_zero, pthread_attr_setstacksize);
-WR(stub_zero, pthread_barrier_destroy);
-WR(stub_zero, pthread_barrier_init);
-WR(stub_zero, pthread_barrier_wait);
-WR(stub_zero, pthread_barrierattr_destroy);
-WR(stub_zero, pthread_barrierattr_getpshared);
-WR(stub_zero, pthread_barrierattr_init);
-WR(stub_zero, pthread_barrierattr_setpshared);
 WR(stub_zero, pthread_cancel);
 WR(stub_zero, pthread_cleanup_pop);
 WR(stub_zero, pthread_cleanup_push);
@@ -85,11 +76,7 @@ WR(stub_zero, pthread_cond_signal);
 WR(stub_zero, pthread_cond_timedwait);
 WR(stub_zero, pthread_cond_wait);
 WR(stub_zero, pthread_condattr_destroy);
-WR(stub_zero, pthread_condattr_getclock);
-WR(stub_zero, pthread_condattr_getpshared);
 WR(stub_zero, pthread_condattr_init);
-WR(stub_zero, pthread_condattr_setclock);
-WR(stub_zero, pthread_condattr_setpshared);
 WR(stub_zero, pthread_detach);
 WR(stub_true, pthread_equal);
 WR(stub_exit, pthread_exit);
@@ -108,7 +95,6 @@ WR(stub_zero, pthread_mutex_getprioceiling);
 WR(stub_zero, pthread_mutex_init);
 WR(stub_zero, pthread_mutex_lock);
 WR(stub_zero, pthread_mutex_setprioceiling);
-WR(stub_zero, pthread_mutex_timedlock);
 WR(stub_zero, pthread_mutex_trylock);
 WR(stub_zero, pthread_mutex_unlock);
 WR(stub_zero, pthread_mutexattr_destroy);
@@ -129,8 +115,6 @@ WR(stub_zero, pthread_resume_np);
 WR(stub_zero, pthread_rwlock_destroy);
 WR(stub_zero, pthread_rwlock_init);
 WR(stub_zero, pthread_rwlock_rdlock);
-WR(stub_zero, pthread_rwlock_timedrdlock);
-WR(stub_zero, pthread_rwlock_timedwrlock);
 WR(stub_zero, pthread_rwlock_tryrdlock);
 WR(stub_zero, pthread_rwlock_trywrlock);
 WR(stub_zero, pthread_rwlock_unlock);
@@ -154,7 +138,6 @@ WR(stub_zero, pthread_suspend_np);
 WR(stub_zero, pthread_switch_add_np);
 WR(stub_zero, pthread_switch_delete_np);
 WR(stub_zero, pthread_testcancel);
-WR(stub_zero, pthread_timedjoin_np);
 WR(stub_zero, pthread_yield);
 WR(stub_zero, sched_yield);
 WR(stub_zero, sem_close);