summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/_spinlock_stub.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix SCM ID's.obrien2002-02-011-3/+3
|
* To be consistent, use the __weak_reference macro from <sys/cdefs.h>deischen2001-04-101-3/+4
| | | | | | | | instead of #pragma weak to create weak definitions. This macro is improperly named, though, since a weak definition is not the same thing as a weak reference. Suggested by: bde
* Remove _THREAD_SAFE and make libc thread-safe by default bydeischen2001-01-241-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will pulled in. Use the following convention for system calls wrapped by the threads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_foo Change all libc uses of system calls wrapped by the threads library from foo to _foo. In order to define the prototypes for _foo(), we introduce namespace.h and un-namespace.h (suggested by bde). All files that need to reference these system calls, should include namespace.h before any standard includes, then include un-namespace.h after the standard includes and before any local includes. <db.h> is an exception and shouldn't be included in between namespace.h and un-namespace.h namespace.h will define foo to _foo, and un-namespace.h will undefine foo. Try to eliminate some of the recursive calls to MT-safe functions in libc/stdio in preparation for adding a mutex to FILE. We have recursive mutexes, but would like to avoid using them if possible. Remove uneeded includes of <errno.h> from a few files. Add $FreeBSD$ to a few files in order to pass commitprep. Approved by: -arch
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Implement compile time debug mode for thread locks.jb1998-06-091-5/+5
|
* Stubs are required in libc so that it can be used with libpthreadjb1998-04-291-1/+5
| | | | | (and kernel threads), but weak symbols and non-weak symbols of the same name built into libc_r result in unpredictable linking.
* Stub functions for thread locking with weak symbols so that they arejb1998-03-091-0/+60
only linked when not linking an application against libc_r or libpthread.
OpenPOWER on IntegriCloud