diff options
author | davidxu <davidxu@FreeBSD.org> | 2008-04-02 08:53:18 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2008-04-02 08:53:18 +0000 |
commit | d00a98a4e8175ee4d7b1667493169cc971186183 (patch) | |
tree | d61a47e63d4222c222a99adeabe39889fa24ca45 | |
parent | aa2019ec007907a475ce729885d3253520cef345 (diff) | |
download | FreeBSD-src-d00a98a4e8175ee4d7b1667493169cc971186183.zip FreeBSD-src-d00a98a4e8175ee4d7b1667493169cc971186183.tar.gz |
Add pthread_setaffinity_np and pthread_getaffinity_np to libc namespace.
-rw-r--r-- | lib/libc/include/namespace.h | 2 | ||||
-rw-r--r-- | lib/libc/include/un-namespace.h | 2 | ||||
-rw-r--r-- | lib/libthr/thread/thr_private.h | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/include/namespace.h b/lib/libc/include/namespace.h index 63b09fd..22c3f64 100644 --- a/lib/libc/include/namespace.h +++ b/lib/libc/include/namespace.h @@ -132,6 +132,7 @@ #define pthread_detach _pthread_detach #define pthread_equal _pthread_equal #define pthread_exit _pthread_exit +#define pthread_getaffinity_np _pthread_getaffinity_np #define pthread_getconcurrency _pthread_getconcurrency #define pthread_getcpuclockid _pthread_getcpuclockid #define pthread_getprio _pthread_getprio @@ -182,6 +183,7 @@ #define pthread_rwlockattr_setpshared _pthread_rwlockattr_setpshared #define pthread_self _pthread_self #define pthread_set_name_np _pthread_set_name_np +#define pthread_setaffinity_np _pthread_setaffinity_np #define pthread_setcancelstate _pthread_setcancelstate #define pthread_setcanceltype _pthread_setcanceltype #define pthread_setconcurrency _pthread_setconcurrency diff --git a/lib/libc/include/un-namespace.h b/lib/libc/include/un-namespace.h index ae19d7b..64d1676 100644 --- a/lib/libc/include/un-namespace.h +++ b/lib/libc/include/un-namespace.h @@ -113,6 +113,7 @@ #undef pthread_detach #undef pthread_equal #undef pthread_exit +#undef pthread_getaffinity_np #undef pthread_getconcurrency #undef pthread_getcpuclockid #undef pthread_getprio @@ -163,6 +164,7 @@ #undef pthread_rwlockattr_setpshared #undef pthread_self #undef pthread_set_name_np +#undef pthread_setaffinity_np #undef pthread_setcancelstate #undef pthread_setcanceltype #undef pthread_setconcurrency diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h index 95affc1..4f61b19 100644 --- a/lib/libthr/thread/thr_private.h +++ b/lib/libthr/thread/thr_private.h @@ -668,8 +668,6 @@ int _schedparam_to_rtp(int policy, const struct sched_param *param, void _thread_bp_create(void); void _thread_bp_death(void); int _sched_yield(void); -int _pthread_getaffinity_np(pthread_t, size_t, cpuset_t *); -int _pthread_setaffinity_np(pthread_t, size_t, const cpuset_t *); /* #include <fcntl.h> */ #ifdef _SYS_FCNTL_H_ |