NetBSD/lib/libpthread
riastradh 7adb41074d libpthread: Move namespacing include to top of .c files.
Stuff like libc's namespace.h, or atomic_op_namespace.h, which does
namespacing tricks like `#define atomic_cas_uint _atomic_cas_uint',
has to go at the top of each .c file.  If it goes in the middle, it
might be too late to affect the declarations, and result in compile
errors.

I tripped over this by including <sys/atomic.h> in mips
<machine/lock.h>.

(Maybe we should create a new pthread_namespace.h file for the
purpose, but this'll do for now.)
2022-02-12 14:59:32 +00:00
..
arch Revert previous: 2020-04-11 09:15:23 +00:00
Makefile Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da) 2019-11-11 22:44:56 +00:00
README
TODO
affinity.3
call_once.3 Fix some typos, improve wording. 2019-04-27 10:57:11 +00:00
call_once.c Drop error path from C11 call_once 2019-04-24 21:41:15 +00:00
cnd.3 Fix some typos, improve wording. 2019-04-27 10:57:11 +00:00
cnd.c Add a complete C11 threads(3) implementation 2019-04-24 11:43:19 +00:00
mtx.3 Fix some typos, improve wording. 2019-04-27 10:57:11 +00:00
mtx.c Add a complete C11 threads(3) implementation 2019-04-24 11:43:19 +00:00
pthread.3
pthread.c libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
pthread.h
pthread_attr.3
pthread_attr.c libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
pthread_attr_get_np.3
pthread_attr_getdetachstate.3
pthread_attr_getguardsize.3
pthread_attr_getinheritsched.3
pthread_attr_getname_np.3
pthread_attr_getschedparam.3
pthread_attr_getscope.3
pthread_attr_getstack.3
pthread_attr_setcreatesuspend_np.3
pthread_barrier.3
pthread_barrier.c libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
pthread_barrierattr.3
pthread_cancel.3
pthread_cancelstub.c libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
pthread_cleanup_push.3
pthread_compat.c libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
pthread_cond.3
pthread_cond.c libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
pthread_condattr.3
pthread_create.3
pthread_curcpu_np.3
pthread_detach.3
pthread_equal.3
pthread_exit.3
pthread_getcpuclockid.3
pthread_getcpuclockid.c libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
pthread_getname_np.3
pthread_getspecific.3
pthread_int.h libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
pthread_join.3
pthread_key_create.3
pthread_kill.3
pthread_lock.c libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
pthread_makelwp.h
pthread_makelwp_netbsd.c libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
pthread_misc.c libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
pthread_mutex.3 s/sucess/success/ in comment. 2019-12-27 09:45:26 +00:00
pthread_mutex.c libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
pthread_mutexattr.3
pthread_once.3
pthread_once.c libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
pthread_queue.h
pthread_rwlock.3
pthread_rwlock.c libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
pthread_rwlockattr.3
pthread_schedparam.3
pthread_self.3
pthread_sigmask.3
pthread_specific.c libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
pthread_spin.3
pthread_spin.c libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
pthread_suspend_np.3
pthread_testcancel.3
pthread_tsd.c libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
pthread_types.h Use __pthread_volatile for ptc_waiters (Greg A. Woods) 2021-03-10 15:05:11 +00:00
res_state.c libpthread: Move namespacing include to top of .c files. 2022-02-12 14:59:32 +00:00
shlib_version Bump the libpthread(3) minor number to 4 2019-04-24 13:01:52 +00:00
thrd.3 Fix some typos, improve wording. 2019-04-27 10:57:11 +00:00
thrd.c Switch back _Noreturn to __dead in C11 threads 2019-09-10 22:34:19 +00:00
threads.3 Fix some typos, improve wording. 2019-04-27 10:57:11 +00:00
threads.h Switch back _Noreturn to __dead in C11 threads 2019-09-10 22:34:19 +00:00
tss.3 Fix some typos, improve wording. 2019-04-27 10:57:11 +00:00
tss.c Drop bogus _DIAGASSERT that don't even compile. 2019-12-15 22:32:29 +00:00

README

$NetBSD: README,v 1.7 2017/02/08 03:44:41 kamil Exp $

Due to limitations in the current pthread implementation, makecontext(3)
and sigaltstack(2) should not be used in programs which link against
libpthread (whether threads are used or not). This has been noted in the
makecontext(3), sigaltstack(2), and pthread(3) man pages.