freebsd-nq/lib/libc/stdio
Peter Wemm 9b8ff47f40 Take advantage of the current libc sizeof(FILE) breakage (__sF[]) and
try a hopefully more robust stdin/stdout/stderr.  This costs an indirect
pointer fetch, but saves us from changes in 'FILE'.  The __stdin stuff
is there to not pollute application name space if the application does
not use <stdio.h> and also in case something depended on the current
behavior where stdin etc was a #define.

Reviewed by:	eischen, dillon
2001-02-12 02:50:30 +00:00
..
_flock_stub.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
asprintf.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
clrerr.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
fclose.3 Use Fx macro wherever possible. 2000-11-14 11:20:58 +00:00
fclose.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
fdopen.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
feof.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
ferror.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
ferror.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
fflush.3 Use `Er' variable to define first column width in ERRORS section. 2000-05-06 12:07:59 +00:00
fflush.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
fgetc.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
fgetln.3 Use `Er' variable to define first column width in ERRORS section. 2000-05-06 12:07:59 +00:00
fgetln.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
fgetpos.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
fgets.3 Use `Er' variable to define first column width in ERRORS section. 2000-05-06 12:07:59 +00:00
fgets.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
fileno.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
findfp.c Take advantage of the current libc sizeof(FILE) breakage (__sF[]) and 2001-02-12 02:50:30 +00:00
flags.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
floatio.h
fopen.3 Better documentation of append mode. This should have gone in -current 2000-09-22 12:55:36 +00:00
fopen.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
fprintf.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
fpurge.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
fputc.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
fputs.3 Use `Er' variable to define first column width in ERRORS section. 2000-05-06 12:07:59 +00:00
fputs.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
fread.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
fread.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
freopen.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
fscanf.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
fseek.3 mdoc(7) police: use canonical form of .Dd macro. 2000-12-11 15:15:20 +00:00
fseek.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
fsetpos.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
ftell.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
funopen.3 Use `Er' variable to define first column width in ERRORS section. 2000-05-06 12:07:59 +00:00
funopen.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
fvwrite.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
fvwrite.h
fwalk.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
fwrite.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
getc.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
getc.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
getchar.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
gets.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
getw.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
glue.h
local.h Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
makebuf.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
Makefile.inc $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
mktemp.3 Update the documentation to describe the new mktemp() family behaviour. 2000-11-19 10:21:32 +00:00
mktemp.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
perror.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
printf.3 mdoc(7) police: mark LC_NUMERIC with .Dv. 2001-02-10 10:26:52 +00:00
printf.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
putc.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
putc.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
putchar.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
puts.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
putw.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
refill.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
remove.3 According to the susv2 man pages I have, remove(3) should act as 2000-08-28 15:45:42 +00:00
remove.c According to the susv2 man pages I have, remove(3) should act as 2000-08-28 15:45:42 +00:00
rewind.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
rget.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
scanf.3 mdoc(7) police: mark LC_NUMERIC with .Dv. 2001-02-10 10:26:52 +00:00
scanf.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
setbuf.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
setbuf.c
setbuffer.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
setvbuf.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
snprintf.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
sprintf.c libc MT-safety, part 2. 2001-02-11 22:06:43 +00:00
sscanf.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
stdio.3 mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
stdio.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
tempnam.c Remove UNSAFE_WARN ifdef for mktemp warning (never defined) 1999-10-24 11:57:24 +00:00
tmpfile.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
tmpnam.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
tmpnam.c Remove UNSAFE_WARN ifdef for mktemp warning (never defined) 1999-10-24 11:57:24 +00:00
ungetc.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
ungetc.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
vasprintf.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
vfprintf.c Take decimal point from locale instead of hardcoded '.' (SUSv2) 2001-02-10 06:25:33 +00:00
vfscanf.c Use decimal point from localeconv() instead of hardcoded '.' (SUSv2) 2001-02-10 05:46:05 +00:00
vprintf.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
vscanf.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
vsnprintf.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
vsprintf.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
vsscanf.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
wbuf.c Remove _THREAD_SAFE and make libc thread-safe by default by 2001-01-24 13:01:12 +00:00
wsetup.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00