History log of /netbsd-src/lib/libpthread/pthread_compat.c (Results 1 – 7 of 7)
Revision Date Author Comments
# 7adb4107 12-Feb-2022 riastradh <riastradh@NetBSD.org>

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 t

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.)

show more ...


# 93e0a207 08-Dec-2017 kre <kre@NetBSD.org>

Revert last 2 updates - these are, of course, not needed at all...


# 4ebaec0f 08-Dec-2017 kre <kre@NetBSD.org>

This time do _lwp_park() timeout unconsting correctly not just compilably.


# 85d957d4 08-Dec-2017 kre <kre@NetBSD.org>

Deal with more lwp_park() timestamp unconsting


# cdce479a 31-Jan-2014 christos <christos@NetBSD.org>

remove compatibility code for handling CLOCK_MONOTONIC and handle it in the
syscall directly.


# fdc51b51 08-Oct-2008 ad <ad@NetBSD.org>

Adjust the compat stuff slightly so that the changes are mostly self
contained (Makefile, pthread_compat.c).


# 844fcfc9 29-Sep-2008 ad <ad@NetBSD.org>

make PTHREAD__COMPAT=1

Builds a libpthread that can be dropped into a NetBSD 2/3/4 chroot.

This makes threading work in the chroot when using a NetBSD 5 kernel, no
other modifications required.