diff options
author | jkim <jkim@FreeBSD.org> | 2011-02-07 21:26:46 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2011-02-07 21:26:46 +0000 |
commit | 365538a229a5a42c6c4aed58dcfbc8e8228a66df (patch) | |
tree | d3de8dc8a5660a541622ab9f21ef998d3f86dfa0 /lib/libc | |
parent | d8708af48420e2edefa6527dd71ac07b1c5353eb (diff) | |
download | FreeBSD-src-365538a229a5a42c6c4aed58dcfbc8e8228a66df.zip FreeBSD-src-365538a229a5a42c6c4aed58dcfbc8e8228a66df.tar.gz |
Introduce a non-portable function pthread_getthreadid_np(3) to retrieve
calling thread's unique integral ID, which is similar to AIX function of
the same name. Bump __FreeBSD_version to note its introduction.
Reviewed by: kib
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/include/namespace.h | 1 | ||||
-rw-r--r-- | lib/libc/include/un-namespace.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/include/namespace.h b/lib/libc/include/namespace.h index 6ba8bab..1e00030 100644 --- a/lib/libc/include/namespace.h +++ b/lib/libc/include/namespace.h @@ -137,6 +137,7 @@ #define pthread_getprio _pthread_getprio #define pthread_getschedparam _pthread_getschedparam #define pthread_getspecific _pthread_getspecific +#define pthread_getthreadid_np _pthread_getthreadid_np #define pthread_join _pthread_join #define pthread_key_create _pthread_key_create #define pthread_key_delete _pthread_key_delete diff --git a/lib/libc/include/un-namespace.h b/lib/libc/include/un-namespace.h index 00f0df2..9c9ce97 100644 --- a/lib/libc/include/un-namespace.h +++ b/lib/libc/include/un-namespace.h @@ -118,6 +118,7 @@ #undef pthread_getprio #undef pthread_getschedparam #undef pthread_getspecific +#undef pthread_getthreadid_np #undef pthread_join #undef pthread_key_create #undef pthread_key_delete |