1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-11 14:10:34 +00:00
freebsd/lib/libc/locale
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
..
ansi.c fix unsigned overflow 1998-10-25 05:06:42 +00:00
big5.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
collate.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
collate.h __collate_substitute() do something non-trivial only for German. For everyone 1999-09-12 21:15:28 +00:00
collcmp.c fix comment 2000-07-07 08:24:50 +00:00
ctype.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
euc.4 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
euc.5 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
euc.c Megre XPG4 code into libc 2000-06-03 12:24:08 +00:00
frune.c
isalnum.3 Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
isalpha.3 Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
isascii.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
isblank.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
iscntrl.3 Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
isctype.c There is a problem in that one cannot use ctype.h at the same time as parts 2000-02-08 07:43:26 +00:00
isdigit.3 Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
isgraph.3 Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
islower.3 Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
isprint.3 Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
ispunct.3 Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
isspace.3 Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
isupper.3 Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
isxdigit.3 Prepare for mdoc(7)NG. 2000-12-29 14:08:20 +00:00
lconv.c
localeconv.c
Makefile.inc $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
mbrune.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
mbrune.c
mskanji.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
multibyte.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
nomacros.c
none.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
rune.3 mdoc(7) police: Er macro usage cleanup. 2000-11-22 16:02:00 +00:00
rune.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
runetype.c Megre XPG4 code into libc 2000-06-03 12:24:08 +00:00
setinvalidrune.c
setlocale.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
setlocale.c Disallow '/' characters in LC_* environment variables which might 2000-09-08 07:29:48 +00:00
setlocale.h Restore PATH_LOCALE functionality using issetugid() call now 1997-04-07 08:54:38 +00:00
setrunelocale.c Megre XPG4 code into libc 2000-06-03 12:24:08 +00:00
table.c Megre XPG4 code into libc 2000-06-03 12:24:08 +00:00
toascii.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
tolower.3 Describe agrument range correctly, according to multibyte(3) 2000-07-03 13:03:15 +00:00
tolower.c Megre XPG4 code into libc 2000-06-03 12:24:08 +00:00
toupper.3 Describe agrument range correctly, according to multibyte(3) 2000-07-03 13:03:15 +00:00
toupper.c Megre XPG4 code into libc 2000-06-03 12:24:08 +00:00
utf2.4 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
utf2.5 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
utf2.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00