aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gen/_thread_init.c
Commit message (Collapse)AuthorAgeFilesLines
* libc: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-251-1/+3
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326193
* Turn off default generation of userland dot symbols on powerpc64 now thatNathan Whitehorn2011-02-181-1/+1
| | | | | | | | we have a binutils that supports it. Kernel dot symbols remain on to assist DDB. Notes: svn path=/head/; revision=218824
* The 64-bit PowerPC ABI implemented in binutils 2.15 requires some specialNathan Whitehorn2010-07-101-1/+2
| | | | | | | | | | | | | | quirks for weak-symbol handling. Text symbols require also marking weak the special dot-symbol associated with the function, and data symbols require that you not do that. To fix this, provide a hacked __weak_reference for powerpc64, and define a new __weak_reference_data for the single weak data symbol in base. Revert after: binutils 2.17 import Obtained from: projects/ppc64 Notes: svn path=/head/; revision=209876
* Add prototype for libc internal interfaces.Xin LI2010-03-311-0/+2
| | | | Notes: svn path=/head/; revision=205997
* Fix SCM ID's.David E. O'Brien2002-02-011-2/+3
| | | | Notes: svn path=/head/; revision=90039
* To be consistent, use the __weak_reference macro from <sys/cdefs.h>Daniel Eischen2001-04-101-2/+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 Notes: svn path=/head/; revision=75368
* Remove _THREAD_SAFE and make libc thread-safe by default byDaniel Eischen2001-01-241-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=71579
* This stub has not been required by libc for a long time. Nuke it.John Birrell1997-05-031-37/+0
| | | | Notes: svn path=/head/; revision=25398
* Obtained from: uthreads packageJulian Elischer1996-01-221-0/+37
Notes: svn path=/head/; revision=13549