freebsd-nq/lib
Daniel Eischen d201fe46e3 Remove _THREAD_SAFE and make libc thread-safe by default by
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
2001-01-24 13:01:12 +00:00
..
compat add libxpg4 2000-06-14 14:38:11 +00:00
csu Add rcsid's. 2001-01-04 10:37:25 +00:00
libalias mdoc(7) police: use the new feature of the An macro. 2000-11-22 08:47:35 +00:00
libatm Replace beforeinstall target with new variables used by .mk system. 2000-01-14 07:57:47 +00:00
libbind Build more components to get named to build. 1999-11-30 04:40:54 +00:00
libc Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
libc_r Force strong references to several pthread_* functions which are weakly 2001-01-06 06:07:52 +00:00
libcalendar mdoc(7) police: fixed broken references. 2001-01-16 11:52:00 +00:00
libcam mdoc(7) police: removed history info from the .Os FreeBSD call. 2000-12-14 11:52:05 +00:00
libcom_err Replace beforeinstall target with new variables used by .mk system. 2000-01-14 07:57:47 +00:00
libcompat Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
libcrypt Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
libdevstat Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
libdisk Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
libedit Prepare for mdoc(7)NG. 2001-01-16 09:08:22 +00:00
libfetch mdoc(7) police: fixed broken references. 2001-01-16 11:52:00 +00:00
libform Install manpages, including appropriate MLINKS. 2000-12-05 12:38:23 +00:00
libftpio Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
libgnumalloc $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
libio Add `_PATH_DEVZERO'. 2000-12-09 09:35:55 +00:00
libipsec Fix typo: ispec -> ipsec 2001-01-01 23:26:16 +00:00
libipx Introduce .Lb macro to libipx library manpage 2000-04-22 16:01:01 +00:00
libisc Build the ISC library as libisc. This library comes as part of the 2000-10-24 20:10:25 +00:00
libkse Force strong references to several pthread_* functions which are weakly 2001-01-06 06:07:52 +00:00
libkvm Add a new item to kinfo_proc: ki_sflag to mirror p_sflag. 2001-01-24 12:49:52 +00:00
libm Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
libmd mdoc(7) police: removed history info from the .Os FreeBSD call. 2000-12-14 11:52:05 +00:00
libmenu Install manpages, including appropriate MLINKS. 2000-12-05 12:38:23 +00:00
libncp Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
libncurses Add some missing functions in MLINKS. Link assume_default_colors.3 2000-12-05 12:40:14 +00:00
libnetgraph mdoc(7) police: removed history info from the .Os FreeBSD call. 2000-12-14 11:52:05 +00:00
libopie Add some extra functions adapted from OpenBSD, in preparation for 2000-05-15 04:20:54 +00:00
libpam Use a unified libgcc rather than a seperate one for threaded and 2001-01-06 18:59:46 +00:00
libpanel Install manpages, including appropriate MLINKS. 2000-12-05 12:38:23 +00:00
libpcap Don't try to compile in INET6 support when NOINET6 is defined. 2000-04-15 20:45:52 +00:00
libposix1e o When returning NULL, return (NULL) instead of return (0). 2001-01-17 02:40:39 +00:00
libpthread Force strong references to several pthread_* functions which are weakly 2001-01-06 06:07:52 +00:00
libradius Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
libresolv
librpcsvc $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
libskey man(7) -> mdoc(7). 2001-01-12 18:01:17 +00:00
libsmdb Add a MAINTAINER= line so people know who to blame 2000-10-26 23:02:36 +00:00
libsmutil Add a MAINTAINER= line so people know who to blame 2000-10-26 23:02:36 +00:00
libss Add `_PATH_DEVZERO'. 2000-12-09 09:35:55 +00:00
libstand mdoc(7) police: removed leading whitespaces that are not inside 2001-01-19 14:15:40 +00:00
libtacplus Use Fx macro wherever possible. 2000-11-14 11:20:58 +00:00
libtelnet $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
libusb mdoc(7) police: use certified section headers wherever possible. 2000-11-17 11:44:16 +00:00
libusbhid mdoc(7) police: use certified section headers wherever possible. 2000-11-17 11:44:16 +00:00
libutil Prepare for mdoc(7)NG. 2001-01-16 09:08:22 +00:00
libvgl Protect against multiple inclusion. 2001-01-24 09:06:42 +00:00
libwrap Replace strtok with strsep (strtok is not allowed in libraries) 2000-08-30 06:26:42 +00:00
libxpg4 Bump major to preserve 3.x binaries compatibility 2000-06-13 00:41:38 +00:00
liby $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
libz Add appropriate defines to use snprintf/vsnprintf instead of 2000-12-06 01:49:08 +00:00
msun Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
ncurses Add some missing functions in MLINKS. Link assume_default_colors.3 2000-12-05 12:40:14 +00:00
Makefile Merge into a single US-exportable libcrypt, which only provides 2000-12-28 10:32:02 +00:00
Makefile.inc