History log of /netbsd-src/lib/libpthread/pthread_getcpuclockid.c (Results 1 – 4 of 4)
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 ...


# 20668e14 29-Jan-2020 kamil <kamil@NetBSD.org>

Chack thread->pt_magic with PT_MAGIC promptly

Rearrange some checks to avoid verifying pthread_t after using it.


# 5e0724b3 04-Mar-2017 njoly <njoly@NetBSD.org>

Fix {clock,pthread}_getcpuclockid to return an error number on
failure, to match OpenGroup specifications.


# d394d2a9 23-Apr-2016 christos <christos@NetBSD.org>

Add pthread_getcpuclockid(3)