Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160274414
D27389.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D27389.diff
View Options
Index: head/lib/libc/gen/Symbol.map
===================================================================
--- head/lib/libc/gen/Symbol.map
+++ head/lib/libc/gen/Symbol.map
@@ -6,6 +6,7 @@
__xuname;
pthread_atfork;
pthread_attr_destroy;
+ pthread_attr_get_np;
pthread_attr_getdetachstate;
pthread_attr_getguardsize;
pthread_attr_getinheritsched;
Index: head/lib/libc/gen/_pthread_stubs.c
===================================================================
--- head/lib/libc/gen/_pthread_stubs.c
+++ head/lib/libc/gen/_pthread_stubs.c
@@ -59,6 +59,7 @@
static int stub_fail(void);
static int stub_true(void);
static void stub_exit(void);
+static int stub_esrch(void);
#define PJT_DUAL_ENTRY(entry) \
(pthread_func_t)entry, (pthread_func_t)entry
@@ -131,6 +132,7 @@
[PJT_MUTEXATTR_GETROBUST] = {PJT_DUAL_ENTRY(stub_zero)},
[PJT_MUTEXATTR_SETROBUST] = {PJT_DUAL_ENTRY(stub_zero)},
[PJT_GETTHREADID_NP] = {PJT_DUAL_ENTRY(stub_zero)},
+ [PJT_ATTR_GET_NP] = {PJT_DUAL_ENTRY(stub_esrch)},
};
/*
@@ -288,6 +290,7 @@
void *, void *)
STUB_FUNC1(_pthread_cancel_enter, PJT_CANCEL_ENTER, void, int)
STUB_FUNC1(_pthread_cancel_leave, PJT_CANCEL_LEAVE, void, int)
+STUB_FUNC2(pthread_attr_get_np, PJT_ATTR_GET_NP, int, pthread_t, pthread_attr_t *)
static int
stub_zero(void)
@@ -329,4 +332,10 @@
stub_exit(void)
{
exit(0);
+}
+
+static int
+stub_esrch(void)
+{
+ return (ESRCH);
}
Index: head/lib/libc/include/libc_private.h
===================================================================
--- head/lib/libc/include/libc_private.h
+++ head/lib/libc/include/libc_private.h
@@ -177,6 +177,7 @@
PJT_MUTEXATTR_GETROBUST,
PJT_MUTEXATTR_SETROBUST,
PJT_GETTHREADID_NP,
+ PJT_ATTR_GET_NP,
PJT_MAX
} pjt_index_t;
Index: head/lib/libthr/thread/thr_init.c
===================================================================
--- head/lib/libthr/thread/thr_init.c
+++ head/lib/libthr/thread/thr_init.c
@@ -271,6 +271,7 @@
[PJT_MUTEXATTR_GETROBUST] = {DUAL_ENTRY(_thr_mutexattr_getrobust)},
[PJT_MUTEXATTR_SETROBUST] = {DUAL_ENTRY(_thr_mutexattr_setrobust)},
[PJT_GETTHREADID_NP] = {DUAL_ENTRY(_thr_getthreadid_np)},
+ [PJT_ATTR_GET_NP] = {DUAL_ENTRY(_thr_attr_get_np)},
};
static int init_once = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 23, 7:53 PM (11 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34257584
Default Alt Text
D27389.diff (2 KB)
Attached To
Mode
D27389: libc: Add pthread_attr_get_np(3) stub.
Attached
Detach File
Event Timeline
Log In to Comment