Symbol: pthread_self
lib/libc/thread-stub/thread-stub.c
100
if (thread == pthread_self())
lib/libc/thread-stub/thread-stub.c
109
if (thread == pthread_self())
lib/libpthread/pthread.c
136
__strong_alias(__libc_thr_self,pthread_self)
lib/libpthread/pthread.c
1447
return pthread_self()->pt_is_main;
lib/libpthread/pthread.h
54
pthread_t pthread_self(void);
lib/libpthread/pthread_cond.c
250
self = pthread_self();
lib/libpthread/pthread_cond.c
298
self = pthread_self();
lib/libpthread/thrd.c
100
return pthread_self();
regress/sys/kern/latency1/latency1.c
116
if (pthread_setschedparam(pthread_self(), SCHED_FIFO, &sp)) {
regress/sys/kern/latency2/latency2.c
130
if (pthread_setschedparam(pthread_self(), SCHED_FIFO, &sp)) {
regress/sys/kern/select/select.c
118
printf("[%p] select start to=%lu\n", (void *)pthread_self(),
regress/sys/kern/select/select.c
124
(void *)pthread_self(), ret);
regress/sys/kern/select/select.c
132
(void *)pthread_self(), ret);
regress/sys/kern/select/select.c
138
(void *)pthread_self(), ret);
regress/sys/kern/select/select.c
148
(void *)pthread_self(), fd);
regress/sys/kern/select/select.c
152
(void *)pthread_self());
regress/sys/kern/select/select.c
169
(void *)pthread_self(), ret, nfd);
regress/sys/kern/select/select.c
69
printf("[%p] write %d\n", (void *)pthread_self(), fd);
sbin/iscsid/iscsid_main.c
568
main_thread = pthread_self();
tests/dev/audio/audiotest.c
672
pthread_setname_np(pthread_self(), "main", NULL);
tests/dev/audio/audiotest.c
711
pthread_setname_np(pthread_self(), "consumer", NULL);
tests/dev/audio/audiotest.c
712
pthread_detach(pthread_self());
tests/lib/libc/setjmp/t_threadjmp.c
110
myself = pthread_self();
tests/lib/libc/setjmp/t_threadjmp.c
127
ATF_REQUIRE(myself == pthread_self());
tests/lib/libc/setjmp/t_threadjmp.c
137
ATF_REQUIRE(myself == pthread_self());
tests/lib/libc/setjmp/t_threadjmp.c
141
ATF_REQUIRE(myself == pthread_self());
tests/lib/libc/setjmp/t_threadjmp.c
145
ATF_REQUIRE(myself == pthread_self());
tests/lib/libc/setjmp/t_threadjmp.c
96
ATF_REQUIRE(myself == pthread_self());
tests/lib/libc/sys/t_ptrace_lwp_wait.h
100
pthread_setname_np(pthread_self(), "thread %d",
tests/lib/libc/sys/t_ptrace_lwp_wait.h
46
pthread_setname_np(pthread_self(), "thread %d",
tests/lib/libc/sys/t_ptrace_threads_wait.h
716
pthread_kill(pthread_self(), sigval);
tests/lib/libpthread/h_cancel.c
47
pthread_cancel(pthread_self());
tests/lib/libpthread/h_resolv.c
136
pthread_t self = pthread_self();
tests/lib/libpthread/h_resolv.c
97
pthread_t self = pthread_self();
tests/lib/libpthread/t_cancellation.c
1030
RZ(pthread_cancel(pthread_self()));
tests/lib/libpthread/t_cancellation.c
1391
RZ(pthread_getname_np(pthread_self(), name, sizeof(name)));
tests/lib/libpthread/t_cancellation.c
1392
RZ(pthread_setname_np(pthread_self(), "%s", name));
tests/lib/libpthread/t_cancellation.c
984
RZ(pthread_cancel(pthread_self())); /* cancel */
tests/lib/libpthread/t_join.c
156
ATF_REQUIRE(pthread_getattr_np(pthread_self(), &attr) == 0);
tests/lib/libpthread/t_join.c
79
caller = pthread_self();
tests/lib/libpthread/t_kill.c
120
mainthread = pthread_self();
tests/lib/libpthread/t_kill.c
130
self = pthread_self();
tests/lib/libpthread/t_kill.c
85
self = pthread_self();
tests/lib/libpthread/t_mutex.c
136
printf("2: Second thread (%p). Count is %ld\n", pthread_self(), count);
tests/lib/libpthread/t_mutex.c
169
printf("1: Thread %p\n", pthread_self());
tests/lib/libpthread/t_mutex.c
192
printf("2: Second thread (%p). Count is %ld\n", pthread_self(), count);
tests/lib/libpthread/t_mutex.c
224
printf("1: Thread %p\n", pthread_self());
tests/lib/libpthread/t_name.c
54
pthread_t self = pthread_self();
tests/lib/libpthread/t_name.c
76
pthread_t thr, self = pthread_self();
tests/lib/libpthread/t_sem.c
146
pthread_t self = pthread_self();
tests/lib/libpthread/t_sigalarm.c
91
pthread_t self = pthread_self();
tests/lib/libpthread/t_sigmask.c
139
thr_usr1 = pthread_self();
tests/lib/libpthread/t_sigmask.c
148
thr_usr2 = pthread_self();
tests/lib/libpthread/t_stack.c
280
pthread_t t = pthread_self();
tests/lib/libpthread/t_stack.c
328
pthread_t t = pthread_self();
tests/lib/libpthread/t_stack.c
80
RZ(pthread_getattr_np(pthread_self(), &attr));
tests/lib/libpthread/t_swapcontext.c
59
nself = (void *)pthread_self();
tests/lib/libpthread/t_swapcontext.c
76
oself = (void *)pthread_self();
usr.sbin/nfsd/nfsd.c
128
pthread_setname_np(pthread_self(), "slave", NULL);
usr.sbin/nfsd/nfsd.c
552
pthread_setname_np(pthread_self(), "master", NULL);