freebsd-skq/lib/libc/net
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
..
addr2ascii.3 Use `Er' variable to define first column width in ERRORS section. 2000-05-06 12:07:59 +00:00
addr2ascii.c
ascii2addr.c
base64.c Add unsigned char cast to ctype macros arg 1999-11-04 04:30:44 +00:00
byteorder.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
ether_addr.c Const'ify parameters to ethers(3) routines as appropriate. 2000-07-18 22:44:52 +00:00
ethers.3 mdoc(7) police: removed history info from the .Os FreeBSD call. 2000-12-14 11:52:05 +00:00
getaddrinfo.3 mdoc(7) police: Nm -> Fn where appropriate. 2000-11-20 14:11:46 +00:00
getaddrinfo.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
gethostbydns.c Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
gethostbyht.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
gethostbyname.3 mdoc(7) police: Ft/Vt now accept punctuation-type arguments. 2001-01-12 15:46:56 +00:00
gethostbynis.c Set h_errno when an error is encountered. 2000-09-10 19:06:05 +00:00
gethostnamadr.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
getifaddrs.3 mdoc(7) police: use canonical form of .Dd macro. 2000-12-11 15:15:20 +00:00
getifaddrs.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
getipnodebyname.3 Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
getnameinfo.3 Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
getnameinfo.c off-by-1 error in string length validation 2000-09-25 23:04:36 +00:00
getnetbydns.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
getnetbyht.c Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
getnetbynis.c Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
getnetent.3 Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
getnetnamadr.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
getproto.c
getprotoent.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
getprotoent.c
getprotoname.c
getservbyname.c
getservbyport.c
getservent.3 Avoid use of direct troff requests in mdoc(7) manual pages. 2000-11-10 17:46:15 +00:00
getservent.c
herror.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
hesiod.3 man(7) -> mdoc(7). 2001-01-12 09:51:45 +00:00
hesiod.c Use issetugid instead of comparing get[ug]id and gete[ug]id. 2000-09-30 17:29:54 +00:00
if_indextoname.3 mention getipnodeby* and get{addr,name}info are not thread-safe. (sync with kame) 2000-08-09 23:16:23 +00:00
ifname.c KAME 4th patch 1999-12-16 18:32:01 +00:00
inet6_option_space.3 mention getipnodeby* and get{addr,name}info are not thread-safe. (sync with kame) 2000-08-09 23:16:23 +00:00
inet6_rthdr_space.3 mention getipnodeby* and get{addr,name}info are not thread-safe. (sync with kame) 2000-08-09 23:16:23 +00:00
inet_addr.c Make this compile with -Wall -Werror 1999-12-27 08:40:40 +00:00
inet_lnaof.c Implement the weak aliases for private entry points in the inet_* 1998-09-02 00:53:17 +00:00
inet_makeaddr.c Implement the weak aliases for private entry points in the inet_* 1998-09-02 00:53:17 +00:00
inet_net_ntop.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
inet_net_pton.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
inet_neta.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
inet_netof.c Implement the weak aliases for private entry points in the inet_* 1998-09-02 00:53:17 +00:00
inet_network.c Add unsigned char cast to ctype macros arg 1999-11-04 04:30:44 +00:00
inet_ntoa.c Implement the weak aliases for private entry points in the inet_* 1998-09-02 00:53:17 +00:00
inet_ntop.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
inet_pton.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
inet.3 Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
ip6opt.c KAME 4th patch 1999-12-16 18:32:01 +00:00
iso_addr.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
iso_addr.c
linkaddr.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
linkaddr.c
Makefile.inc Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
map_v4v6.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
name6.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
ns_addr.c
ns_name.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
ns_netint.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
ns_ntoa.c Fixed printf format errors. 1998-06-30 17:30:22 +00:00
ns_parse.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
ns_print.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
ns_ttl.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
ns.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
nsap_addr.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
nsdispatch.3 Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
nsdispatch.c Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
nslexer.l Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
nsparser.y Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
rcmd.3 mdoc(7) police: Er macro usage cleanup. 2000-11-22 16:02:00 +00:00
rcmd.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
recv.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
res_comp.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
res_config.h Update the resolver parts to bind-8.1.2 level. I have not touched the 1998-06-11 09:03:02 +00:00
res_data.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
res_debug.c Add unsigned char cast to ctype macros arg 1999-11-04 04:30:44 +00:00
res_init.c Fix memory leak. 2000-10-29 16:10:48 +00:00
res_mkquery.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
res_mkupdate.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
res_query.c Add unsigned char cast to ctype macros arg 1999-11-04 04:30:44 +00:00
res_send.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
res_update.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
resolver.3 Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
rthdr.c CMSG_XXX macros alignment fixes to follow RFC2292. 2000-03-03 11:13:12 +00:00
send.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
vars.c KAME 4th patch 1999-12-16 18:32:01 +00:00