History log of /netbsd-src/lib/libc/thread-stub/thread-stub.c (Results 1 – 25 of 32)
Revision Date Author Comments
# 8fa3a2c6 23-Sep-2024 christos <christos@NetBSD.org>

Add weak aliases for methods used by the new jemalloc. Co-opt the mutex
catchall for now for it.


# 388550b0 19-Apr-2022 rillig <rillig@NetBSD.org>

lib: remove CONSTCOND comment

Since 2021-01-31, lint doesn't need it anymore for the common pattern of
'do ... while (0)'.


# 8e29352f 06-Feb-2021 jdolecek <jdolecek@NetBSD.org>

change libc sched_yield() stub to actually still call the syscall
instead of doing nothing when app is not linked with pthread; this matches
other systems

suggested by Mateusz Guzik in:
http://mail-

change libc sched_yield() stub to actually still call the syscall
instead of doing nothing when app is not linked with pthread; this matches
other systems

suggested by Mateusz Guzik in:
http://mail-index.netbsd.org/tech-kern/2020/07/19/msg026620.html

show more ...


# e4e4859d 14-Jan-2020 kamil <kamil@NetBSD.org>

Adjust the error return value of pthread_sigmask for !libpthread usage

Instead of returning -1, return errno on error.

Catch up after the fix in libpthread by Andrew Doran in 2008
in lib/libpthread

Adjust the error return value of pthread_sigmask for !libpthread usage

Instead of returning -1, return errno on error.

Catch up after the fix in libpthread by Andrew Doran in 2008
in lib/libpthread/pthread_misc.c r.1.9.

It's an open question whether this function shall be used without linked
in the POSIX thread library.

Detected by Bruno Haible (GNU) and documented in gnulib in commit
"pthread_sigmask: Avoid test failure on NetBSD 8.0. " r. 4d16a83b0c1fcb6c.

show more ...


# 939c050d 05-Mar-2019 christos <christos@NetBSD.org>

Transfer all the keys that were created in the libc stub implementation
to the pthread tsd implementation when the main thread is created.
This corrects a problem where a process created keys before

Transfer all the keys that were created in the libc stub implementation
to the pthread tsd implementation when the main thread is created.
This corrects a problem where a process created keys before libpthread
was loaded (either from the libc constructor or because libpthread
was dlopened later). This fixes a problem with jemalloc which creates
keys in the constructor.

show more ...


# 3b2abf0b 31-Oct-2016 kamil <kamil@NetBSD.org>

Add CHECK_NOT_THREADED() in __libc_mutexattr_settype_stub()

This makes this function consistent with __libc_mutex_catchall_stub()
and others in the same group.

Approved by <christos>.


# 8265b841 28-May-2013 christos <christos@NetBSD.org>

mark __libc_thr_exit_stub dead here too


# eb3cdf87 27-Apr-2013 joerg <joerg@NetBSD.org>

Provide stubs for pthread_detach/pthread_join.


# 5dd13d5b 12-Apr-2013 joerg <joerg@NetBSD.org>

Weak alias directly to the catchall stub and don't strong alias twice.


# 644dcf79 05-Apr-2013 christos <christos@NetBSD.org>

split init and errno to a separate file. No point in growing rtld 10K.


# 71d484f9 21-Mar-2013 christos <christos@NetBSD.org>

- Allow libpthread to be dlopened again, by providing libc stubs to libpthread.
- Fail if the dlopened libpthread does pthread_create(). From manu@
- Discussed at length in the mailing lists; approve

- Allow libpthread to be dlopened again, by providing libc stubs to libpthread.
- Fail if the dlopened libpthread does pthread_create(). From manu@
- Discussed at length in the mailing lists; approved by core@
- This was chosen as the least intrusive patch that will provide
the necessary functionality.
XXX: pullup to 6

show more ...


# 67f518f4 16-Sep-2011 joerg <joerg@NetBSD.org>

Use __dead


# c984f259 30-Jan-2009 ad <ad@NetBSD.org>

Make threaded programs die correctly:

kill(getpid(), SIGFOO) -> raise(SIGFOO)


# ce099b40 28-Apr-2008 martin <martin@NetBSD.org>

Remove clause 3 and 4 from TNF licenses


# b31749e7 14-Dec-2007 christos <christos@NetBSD.org>

add fw decl.


# b76677ed 14-Dec-2007 christos <christos@NetBSD.org>

fix obvious bogon [can't alias symbol to itself]


# 4084ca7f 27-Nov-2007 ad <ad@NetBSD.org>

Add thr_curcpu(), pthread_curcpu_np().


# 095b25e7 14-Nov-2007 drochner <drochner@NetBSD.org>

Add pthread_equal() to libc stubs; this makes a lot of sense for
threadsafe libraries implementing own locking functions.
Ride on yesterday's minor version bumps.


# ec4d182d 13-Nov-2007 ad <ad@NetBSD.org>

- stack_protector.c doesn't really belong under sys/. Add a new directory
for misc support routines and put it there.
- Add a libc constructor. Use this to initialize threading and the
stack prot

- stack_protector.c doesn't really belong under sys/. Add a new directory
for misc support routines and put it there.
- Add a libc constructor. Use this to initialize threading and the
stack protector stuff. libpthread cannot be initialized safely using
its own constructor because libc and libpthread are deeply intertwined.
PR bin/37347

show more ...


# 03256c6e 29-Nov-2005 christos <christos@NetBSD.org>

WARNS=4


# 88c3eadb 12-Jun-2005 lukem <lukem@NetBSD.org>

Add missing __RCSID()


# 9ae878eb 14-Dec-2004 nathanw <nathanw@NetBSD.org>

Fix the __libc_thr_yield_stub() signature.


# 50df45f4 13-Dec-2004 nathanw <nathanw@NetBSD.org>

The __libc_thr_yield_stub() for scched_yield() should return int (and
a 0), not void.


# 08c663a3 06-Dec-2004 nathanw <nathanw@NetBSD.org>

Implement __libc_thr_sigsetmask_stub() in terms of sigprocmask(),
instead of having a dummy function.


# d271509d 18-Jul-2003 nathanw <nathanw@NetBSD.org>

Add a stub for setcancelstate().


12