summaryrefslogtreecommitdiffstats
path: root/lib/libc/include
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2006-03-05 18:10:28 +0000
committerdeischen <deischen@FreeBSD.org>2006-03-05 18:10:28 +0000
commite586a0042e10fd3b8cd186195c3363e8a99ef63c (patch)
treee6564232c43be20321cd3a1bb8dd416991b7d132 /lib/libc/include
parent182ee5abd3c41001929cb318f8df6696fb4f4ac4 (diff)
downloadFreeBSD-src-e586a0042e10fd3b8cd186195c3363e8a99ef63c.zip
FreeBSD-src-e586a0042e10fd3b8cd186195c3363e8a99ef63c.tar.gz
Add some more pthread stubs so that librt can use them.
The thread jump table has been resorted, so you need to keep libc, libpthread, and libthr in sync. Submitted by: xu
Diffstat (limited to 'lib/libc/include')
-rw-r--r--lib/libc/include/libc_private.h37
-rw-r--r--lib/libc/include/namespace.h29
2 files changed, 63 insertions, 3 deletions
diff --git a/lib/libc/include/libc_private.h b/lib/libc/include/libc_private.h
index 0959c6c..cd5769e 100644
--- a/lib/libc/include/libc_private.h
+++ b/lib/libc/include/libc_private.h
@@ -70,23 +70,51 @@ extern int __isthreaded;
* libraries that reference it (libc_r, libpthread).
*/
typedef enum {
+ PJT_ATFORK,
+ PJT_ATTR_DESTROY,
+ PJT_ATTR_GETDETACHSTATE,
+ PJT_ATTR_GETGUARDSIZE,
+ PJT_ATTR_GETINHERITSCHED,
+ PJT_ATTR_GETSCHEDPARAM,
+ PJT_ATTR_GETSCHEDPOLICY,
+ PJT_ATTR_GETSCOPE,
+ PJT_ATTR_GETSTACKADDR,
+ PJT_ATTR_GETSTACKSIZE,
+ PJT_ATTR_INIT,
+ PJT_ATTR_SETDETACHSTATE,
+ PJT_ATTR_SETGUARDSIZE,
+ PJT_ATTR_SETINHERITSCHED,
+ PJT_ATTR_SETSCHEDPARAM,
+ PJT_ATTR_SETSCHEDPOLICY,
+ PJT_ATTR_SETSCOPE,
+ PJT_ATTR_SETSTACKADDR,
+ PJT_ATTR_SETSTACKSIZE,
+ PJT_CANCEL,
+ PJT_CLEANUP_POP,
+ PJT_CLEANUP_PUSH,
PJT_COND_BROADCAST,
PJT_COND_DESTROY,
PJT_COND_INIT,
PJT_COND_SIGNAL,
+ PJT_COND_TIMEDWAIT,
PJT_COND_WAIT,
+ PJT_DETACH,
+ PJT_EQUAL,
+ PJT_EXIT,
PJT_GETSPECIFIC,
+ PJT_JOIN,
PJT_KEY_CREATE,
PJT_KEY_DELETE,
+ PJT_KILL,
PJT_MAIN_NP,
+ PJT_MUTEXATTR_DESTROY,
+ PJT_MUTEXATTR_INIT,
+ PJT_MUTEXATTR_SETTYPE,
PJT_MUTEX_DESTROY,
PJT_MUTEX_INIT,
PJT_MUTEX_LOCK,
PJT_MUTEX_TRYLOCK,
PJT_MUTEX_UNLOCK,
- PJT_MUTEXATTR_DESTROY,
- PJT_MUTEXATTR_INIT,
- PJT_MUTEXATTR_SETTYPE,
PJT_ONCE,
PJT_RWLOCK_DESTROY,
PJT_RWLOCK_INIT,
@@ -96,8 +124,11 @@ typedef enum {
PJT_RWLOCK_UNLOCK,
PJT_RWLOCK_WRLOCK,
PJT_SELF,
+ PJT_SETCANCELSTATE,
+ PJT_SETCANCELTYPE,
PJT_SETSPECIFIC,
PJT_SIGMASK,
+ PJT_TESTCANCEL,
PJT_MAX
} pjt_index_t;
diff --git a/lib/libc/include/namespace.h b/lib/libc/include/namespace.h
index f369a75..c6e22cc 100644
--- a/lib/libc/include/namespace.h
+++ b/lib/libc/include/namespace.h
@@ -81,14 +81,40 @@
#define nanosleep _nanosleep
#define open _open
#define poll _poll
+#define pthread_atfork _pthread_atfork
+#define pthread_attr_destroy _pthread_attr_destroy
+#define pthread_attr_getdetachstate _pthread_attr_getdetachstate
+#define pthread_attr_getguardsize _pthread_attr_getguardsize
+#define pthread_attr_getstackaddr _pthread_attr_getstackaddr
+#define pthread_attr_getstacksize _pthread_attr_getstacksize
+#define pthread_attr_getinheritsched _pthread_attr_getinheritsched
+#define pthread_attr_getschedparam _pthread_attr_getschedparam
+#define pthread_attr_getschedpolicy _pthread_attr_getschedpolicy
+#define pthread_attr_getscope _pthread_attr_getscope
+#define pthread_attr_init _pthread_attr_init
+#define pthread_attr_setdetachstate _pthread_attr_setdetachstate
+#define pthread_attr_setguardsize _pthread_attr_setguardsize
+#define pthread_attr_setstackaddr _pthread_attr_setstackaddr
+#define pthread_attr_setstacksize _pthread_attr_setstacksize
+#define pthread_attr_setinheritsched _pthread_attr_setinheritsched
+#define pthread_attr_setschedparam _pthread_attr_setschedparam
+#define pthread_attr_setschedpolicy _pthread_attr_setschedpolicy
+#define pthread_attr_setscope _pthread_attr_setscope
+#define pthread_cancel _pthread_cancel
+#define pthread_cleanup_pop _pthread_cleanup_pop
+#define pthread_cleanup_push _pthread_cleanup_push
#define pthread_cond_broadcast _pthread_cond_broadcast
#define pthread_cond_destroy _pthread_cond_destroy
#define pthread_cond_init _pthread_cond_init
#define pthread_cond_signal _pthread_cond_signal
#define pthread_cond_timedwait _pthread_cond_timedwait
#define pthread_cond_wait _pthread_cond_wait
+#define pthread_detach _pthread_detach
+#define pthread_equal _pthread_equal
#define pthread_exit _pthread_exit
#define pthread_getspecific _pthread_getspecific
+#define pthread_join _pthread_join
+#define pthread_kill _pthread_kill
#define pthread_key_create _pthread_key_create
#define pthread_key_delete _pthread_key_delete
#define pthread_main_np _pthread_main_np
@@ -109,8 +135,11 @@
#define pthread_rwlock_trywrlock _pthread_rwlock_trywrlock
#define pthread_rwlock_unlock _pthread_rwlock_unlock
#define pthread_self _pthread_self
+#define pthread_setcancelstate _pthread_setcancelstate
+#define pthread_setcanceltype _pthread_setcanceltype
#define pthread_setspecific _pthread_setspecific
#define pthread_sigmask _pthread_sigmask
+#define pthread_testcancel _pthread_testcancel
#define read _read
#define readv _readv
#define recvfrom _recvfrom
OpenPOWER on IntegriCloud