diff options
author | deischen <deischen@FreeBSD.org> | 2002-11-13 18:12:09 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2002-11-13 18:12:09 +0000 |
commit | bf8788517dc3dbb62a46b61b9a2e31a4ba2d3dd4 (patch) | |
tree | 17bf495d45d13c8027b110379dd80aa876f77940 /lib/libc/include/un-namespace.h | |
parent | f737ca00a463d77a4a5c24d8108a16f68b2a2f66 (diff) | |
download | FreeBSD-src-bf8788517dc3dbb62a46b61b9a2e31a4ba2d3dd4.zip FreeBSD-src-bf8788517dc3dbb62a46b61b9a2e31a4ba2d3dd4.tar.gz |
Use a jump table (a la Solaris) for pthread routines with default
entries in the table being stubs. While I'm here, add macros to
auto-generate the stubs. A conforming threads library can override
the stub routines by filling in the jump table.
Add some entries to namespace.h and sync un-namespace.h to it.
Also add a comment to remind folks to update un-namespace.h
when changing namespace.h.
Diffstat (limited to 'lib/libc/include/un-namespace.h')
-rw-r--r-- | lib/libc/include/un-namespace.h | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/lib/libc/include/un-namespace.h b/lib/libc/include/un-namespace.h index 3b21900..2809e0d 100644 --- a/lib/libc/include/un-namespace.h +++ b/lib/libc/include/un-namespace.h @@ -60,9 +60,18 @@ #undef listen #undef nanosleep #undef open +#undef poll +#undef pthread_cond_broadcast +#undef pthread_cond_destroy +#undef pthread_cond_init +#undef pthread_cond_signal +#undef pthread_cond_timedwait +#undef pthread_cond_wait +#undef pthread_exit #undef pthread_getspecific #undef pthread_key_create #undef pthread_key_delete +#undef pthread_main_np #undef pthread_mutex_destroy #undef pthread_mutex_init #undef pthread_mutex_lock @@ -72,8 +81,16 @@ #undef pthread_mutexattr_destroy #undef pthread_mutexattr_settype #undef pthread_once +#undef pthread_rwlock_destroy +#undef pthread_rwlock_init +#undef pthread_rwlock_rdlock +#undef pthread_rwlock_wrlock +#undef pthread_rwlock_tryrdlock +#undef pthread_rwlock_trywrlock +#undef pthread_rwlock_unlock #undef pthread_self #undef pthread_setspecific +#undef pthread_sigmask #undef read #undef readv #undef recvfrom @@ -100,14 +117,6 @@ #undef msync #undef nfssvc #undef pause -#undef poll -#undef pthread_rwlock_destroy -#undef pthread_rwlock_init -#undef pthread_rwlock_rdlock -#undef pthread_rwlock_tryrdlock -#undef pthread_rwlock_trywrlock -#undef pthread_rwlock_unlock -#undef pthread_rwlock_wrlock #undef pthread_rwlockattr_init #undef pthread_rwlockattr_destroy #undef sched_yield |