2000-02-18 03:39:52 +08:00
|
|
|
## Process this file with automake to generate Makefile.in
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
|
|
|
|
|
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
|
|
|
|
|
2002-08-27 02:56:09 +08:00
|
|
|
GENERAL_SOURCES = \
|
2007-05-04 10:55:16 +08:00
|
|
|
clearerr.c \
|
|
|
|
fclose.c \
|
|
|
|
fdopen.c \
|
|
|
|
feof.c \
|
|
|
|
ferror.c \
|
|
|
|
fflush.c \
|
|
|
|
fgetc.c \
|
|
|
|
fgetpos.c \
|
|
|
|
fgets.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
fileno.c \
|
2007-05-04 10:55:16 +08:00
|
|
|
findfp.c \
|
|
|
|
fiprintf.c \
|
|
|
|
flags.c \
|
|
|
|
fopen.c \
|
|
|
|
fprintf.c \
|
|
|
|
fputc.c \
|
|
|
|
fputs.c \
|
|
|
|
fread.c \
|
|
|
|
freopen.c \
|
|
|
|
fscanf.c \
|
|
|
|
fiscanf.c \
|
|
|
|
fseek.c \
|
|
|
|
fsetpos.c \
|
|
|
|
ftell.c \
|
|
|
|
fvwrite.c \
|
|
|
|
fwalk.c \
|
|
|
|
fwrite.c \
|
|
|
|
getc.c \
|
|
|
|
getchar.c \
|
2002-05-09 03:11:22 +08:00
|
|
|
getc_u.c \
|
|
|
|
getchar_u.c \
|
2002-06-22 02:29:23 +08:00
|
|
|
getdelim.c \
|
|
|
|
getline.c \
|
2007-05-04 10:55:16 +08:00
|
|
|
gets.c \
|
|
|
|
iprintf.c \
|
|
|
|
iscanf.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
makebuf.c \
|
2007-05-04 10:55:16 +08:00
|
|
|
perror.c \
|
|
|
|
printf.c \
|
|
|
|
putc.c \
|
|
|
|
putchar.c \
|
2002-05-09 03:11:22 +08:00
|
|
|
putc_u.c \
|
|
|
|
putchar_u.c \
|
2007-05-04 10:55:16 +08:00
|
|
|
puts.c \
|
|
|
|
refill.c \
|
|
|
|
remove.c \
|
|
|
|
rename.c \
|
|
|
|
rewind.c \
|
|
|
|
rget.c \
|
|
|
|
scanf.c \
|
|
|
|
sccl.c \
|
|
|
|
setbuf.c \
|
|
|
|
setbuffer.c \
|
|
|
|
setlinebuf.c \
|
|
|
|
setvbuf.c \
|
|
|
|
siprintf.c \
|
|
|
|
siscanf.c \
|
2004-11-20 09:42:35 +08:00
|
|
|
sniprintf.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
snprintf.c \
|
2007-05-04 10:55:16 +08:00
|
|
|
sprintf.c \
|
|
|
|
sscanf.c \
|
|
|
|
stdio.c \
|
|
|
|
tmpfile.c \
|
|
|
|
tmpnam.c \
|
|
|
|
ungetc.c \
|
2007-04-05 02:32:49 +08:00
|
|
|
vdiprintf.c \
|
2005-10-12 07:59:32 +08:00
|
|
|
vdprintf.c \
|
2007-05-04 10:55:16 +08:00
|
|
|
viprintf.c \
|
2004-11-24 08:45:41 +08:00
|
|
|
viscanf.c \
|
2007-05-04 10:55:16 +08:00
|
|
|
vprintf.c \
|
2001-04-21 06:50:51 +08:00
|
|
|
vscanf.c \
|
2007-05-04 10:55:16 +08:00
|
|
|
vsiprintf.c \
|
2004-11-24 08:45:41 +08:00
|
|
|
vsiscanf.c \
|
2000-02-18 03:39:52 +08:00
|
|
|
vsnprintf.c \
|
2004-11-24 08:45:41 +08:00
|
|
|
vsniprintf.c \
|
2007-05-04 10:55:16 +08:00
|
|
|
vsprintf.c \
|
2001-04-21 06:50:51 +08:00
|
|
|
vsscanf.c \
|
2007-05-04 10:55:16 +08:00
|
|
|
wbuf.c \
|
2007-04-05 02:32:49 +08:00
|
|
|
wsetup.c
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2002-08-27 02:56:09 +08:00
|
|
|
## The following are EL/IX level 2 interfaces
|
|
|
|
if ELIX_LEVEL_1
|
2007-05-04 10:55:16 +08:00
|
|
|
ELIX_2_SOURCES =
|
2002-08-27 02:56:09 +08:00
|
|
|
else
|
2007-05-04 10:55:16 +08:00
|
|
|
ELIX_2_SOURCES = \
|
2006-05-02 06:01:07 +08:00
|
|
|
asiprintf.c \
|
|
|
|
asprintf.c \
|
|
|
|
fcloseall.c \
|
2007-05-04 10:55:16 +08:00
|
|
|
fseeko.c \
|
|
|
|
ftello.c \
|
2006-05-02 06:01:07 +08:00
|
|
|
getw.c \
|
2007-05-04 10:55:16 +08:00
|
|
|
mktemp.c \
|
|
|
|
putw.c \
|
2006-05-02 06:01:07 +08:00
|
|
|
vasiprintf.c \
|
|
|
|
vasprintf.c
|
2002-08-27 02:56:09 +08:00
|
|
|
endif
|
|
|
|
|
2007-05-04 10:55:16 +08:00
|
|
|
## The following are EL/IX level 2 interfaces
|
|
|
|
if ELIX_LEVEL_1
|
|
|
|
ELIX_4_SOURCES =
|
|
|
|
else
|
|
|
|
if ELIX_LEVEL_2
|
|
|
|
ELIX_4_SOURCES =
|
|
|
|
else
|
|
|
|
if ELIX_LEVEL_3
|
|
|
|
ELIX_4_SOURCES =
|
|
|
|
else
|
|
|
|
ELIX_4_SOURCES = \
|
|
|
|
asniprintf.c \
|
|
|
|
asnprintf.c \
|
|
|
|
diprintf.c \
|
|
|
|
dprintf.c \
|
2007-08-03 04:23:06 +08:00
|
|
|
fmemopen.c \
|
Implement funopen, fopencookie.
* libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
Switch to reentrant callbacks.
* libc/include/stdio.h (funopen): Fix declaration.
(fopencookie): Declare.
* libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
(__sseek64, __swrite64): Fix prototypes.
[__SCLE]: Pull in setmode declaration.
* libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
reentrancy.
* libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
(__sseek64, __swrite64): Fix reentrancy.
* libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
reentrancy.
* libc/stdio/ftell.c (_ftell_r): Likewise.
* libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
* libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
* libc/stdio/freopen.c (_freopen_r): Likewise.
* libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
* libc/stdio/refill.c (__srefill_r): Likewise.
* libc/stdio/siscanf.c (eofread): Likewise.
* libc/stdio/sscanf.c (eofread): Likewise.
* libc/stdio/vsiscanf.c (eofread1): Likewise.
* libc/stdio/vsscanf.c (eofread1): Likewise.
* libc/stdio64/freopen64.c (_freopen64_r): Likewise.
* libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
* libc/stdio64/ftello64.c (_ftello64_r): Likewise.
* libc/stdio/fflush.c (fflush): Improve reentrancy, although more
could be fixed.
* libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
* libc/stdio/funopen.c (_funopen_r, funopen): New file.
* libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
new files.
* libc/stdio/Makefile.in: Regenerate.
2007-06-05 02:10:17 +08:00
|
|
|
fopencookie.c \
|
|
|
|
funopen.c \
|
2007-08-03 04:23:06 +08:00
|
|
|
open_memstream.c \
|
2007-05-04 10:55:16 +08:00
|
|
|
vasniprintf.c \
|
|
|
|
vasnprintf.c
|
|
|
|
endif !ELIX_LEVEL_3
|
|
|
|
endif !ELIX_LEVEL_2
|
|
|
|
endif !ELIX_LEVEL_1
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
LIBADD_OBJS = \
|
2008-04-15 05:14:55 +08:00
|
|
|
$(lpfx)svfiprintf.$(oext) $(lpfx)svfprintf.$(oext) \
|
|
|
|
$(lpfx)svfiscanf.$(oext) $(lpfx)svfscanf.$(oext) \
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)vfiprintf.$(oext) $(lpfx)vfprintf.$(oext) \
|
|
|
|
$(lpfx)vfscanf.$(oext) $(lpfx)vfiscanf.$(oext)
|
2001-12-14 07:50:11 +08:00
|
|
|
|
|
|
|
libstdio_la_LDFLAGS = -Xcompiler -nostdlib
|
|
|
|
|
|
|
|
if USE_LIBTOOL
|
|
|
|
noinst_LTLIBRARIES = libstdio.la
|
2007-05-04 10:55:16 +08:00
|
|
|
libstdio_la_SOURCES = $(GENERAL_SOURCES) $(ELIX_2_SOURCES) $(ELIX_4_SOURCES)
|
2006-05-02 06:01:07 +08:00
|
|
|
libstdio_la_LIBADD = $(LIBADD_OBJS)
|
|
|
|
libstdio_la_DEPENDENCIES = $(LIBADD_OBJS)
|
2001-12-14 07:50:11 +08:00
|
|
|
LIB_COMPILE = $(LTCOMPILE)
|
|
|
|
noinst_DATA = objectlist.awk.in
|
|
|
|
else
|
|
|
|
noinst_LIBRARIES = lib.a
|
2007-05-04 10:55:16 +08:00
|
|
|
lib_a_SOURCES = $(GENERAL_SOURCES) $(ELIX_2_SOURCES) $(ELIX_4_SOURCES)
|
2006-05-02 06:01:07 +08:00
|
|
|
lib_a_LIBADD = $(LIBADD_OBJS)
|
2006-04-12 03:02:16 +08:00
|
|
|
lib_a_CFLAGS = $(AM_CFLAGS)
|
2006-05-02 06:01:07 +08:00
|
|
|
lib_a_DEPENDENCIES = $(LIBADD_OBJS)
|
2001-12-18 10:22:55 +08:00
|
|
|
LIB_COMPILE = $(COMPILE)
|
2001-12-14 07:50:11 +08:00
|
|
|
noinst_DATA =
|
|
|
|
endif # USE_LIBTOOL
|
|
|
|
|
|
|
|
include $(srcdir)/../../Makefile.shared
|
|
|
|
|
|
|
|
# This rule is needed so that libtool compiles vfiprintf before vfprintf. Otherwise
|
|
|
|
# libtool moves vfprintf.o and subsequently can't find it.
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)vfprintf.$(oext): vfprintf.c
|
|
|
|
$(LIB_COMPILE) -fshort-enums -c $(srcdir)/vfprintf.c -o $@
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)vfiprintf.$(oext): vfprintf.c
|
2002-08-10 05:12:09 +08:00
|
|
|
$(LIB_COMPILE) -fshort-enums -DINTEGER_ONLY -c $(srcdir)/vfprintf.c -o $@
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2008-04-15 05:14:55 +08:00
|
|
|
$(lpfx)svfprintf.$(oext): vfprintf.c
|
|
|
|
$(LIB_COMPILE) -fshort-enums -DSTRING_ONLY -c $(srcdir)/vfprintf.c -o $@
|
|
|
|
|
|
|
|
$(lpfx)svfiprintf.$(oext): vfprintf.c
|
|
|
|
$(LIB_COMPILE) -fshort-enums -DINTEGER_ONLY -DSTRING_ONLY -c $(srcdir)/vfprintf.c -o $@
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)vfscanf.$(oext): vfscanf.c
|
|
|
|
$(LIB_COMPILE) -c $(srcdir)/vfscanf.c -o $@
|
2004-11-24 08:45:41 +08:00
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)vfiscanf.$(oext): vfscanf.c
|
2004-11-24 08:45:41 +08:00
|
|
|
$(LIB_COMPILE) -DINTEGER_ONLY -c $(srcdir)/vfscanf.c -o $@
|
|
|
|
|
2008-04-15 05:14:55 +08:00
|
|
|
$(lpfx)svfscanf.$(oext): vfscanf.c
|
|
|
|
$(LIB_COMPILE) -DSTRING_ONLY -c $(srcdir)/vfscanf.c -o $@
|
|
|
|
|
|
|
|
$(lpfx)svfiscanf.$(oext): vfscanf.c
|
|
|
|
$(LIB_COMPILE) -DINTEGER_ONLY -DSTRING_ONLY -c $(srcdir)/vfscanf.c -o $@
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
CHEWOUT_FILES = \
|
|
|
|
clearerr.def \
|
2007-05-04 10:55:16 +08:00
|
|
|
diprintf.def \
|
2005-10-12 07:59:32 +08:00
|
|
|
dprintf.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
fclose.def \
|
2002-07-23 07:53:50 +08:00
|
|
|
fcloseall.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
fdopen.def \
|
|
|
|
feof.def \
|
|
|
|
ferror.def \
|
|
|
|
fflush.def \
|
|
|
|
fgetc.def \
|
|
|
|
fgetpos.def \
|
|
|
|
fgets.def \
|
|
|
|
fileno.def \
|
2007-08-03 04:23:06 +08:00
|
|
|
fmemopen.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
fopen.def \
|
Implement funopen, fopencookie.
* libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
Switch to reentrant callbacks.
* libc/include/stdio.h (funopen): Fix declaration.
(fopencookie): Declare.
* libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
(__sseek64, __swrite64): Fix prototypes.
[__SCLE]: Pull in setmode declaration.
* libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
reentrancy.
* libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
(__sseek64, __swrite64): Fix reentrancy.
* libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
reentrancy.
* libc/stdio/ftell.c (_ftell_r): Likewise.
* libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
* libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
* libc/stdio/freopen.c (_freopen_r): Likewise.
* libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
* libc/stdio/refill.c (__srefill_r): Likewise.
* libc/stdio/siscanf.c (eofread): Likewise.
* libc/stdio/sscanf.c (eofread): Likewise.
* libc/stdio/vsiscanf.c (eofread1): Likewise.
* libc/stdio/vsscanf.c (eofread1): Likewise.
* libc/stdio64/freopen64.c (_freopen64_r): Likewise.
* libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
* libc/stdio64/ftello64.c (_ftello64_r): Likewise.
* libc/stdio/fflush.c (fflush): Improve reentrancy, although more
could be fixed.
* libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
* libc/stdio/funopen.c (_funopen_r, funopen): New file.
* libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
new files.
* libc/stdio/Makefile.in: Regenerate.
2007-06-05 02:10:17 +08:00
|
|
|
fopencookie.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
fputc.def \
|
|
|
|
fputs.def \
|
|
|
|
fread.def \
|
|
|
|
freopen.def \
|
|
|
|
fseek.def \
|
|
|
|
fsetpos.def \
|
|
|
|
ftell.def \
|
Implement funopen, fopencookie.
* libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
Switch to reentrant callbacks.
* libc/include/stdio.h (funopen): Fix declaration.
(fopencookie): Declare.
* libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
(__sseek64, __swrite64): Fix prototypes.
[__SCLE]: Pull in setmode declaration.
* libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
reentrancy.
* libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
(__sseek64, __swrite64): Fix reentrancy.
* libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
reentrancy.
* libc/stdio/ftell.c (_ftell_r): Likewise.
* libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
* libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
* libc/stdio/freopen.c (_freopen_r): Likewise.
* libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
* libc/stdio/refill.c (__srefill_r): Likewise.
* libc/stdio/siscanf.c (eofread): Likewise.
* libc/stdio/sscanf.c (eofread): Likewise.
* libc/stdio/vsiscanf.c (eofread1): Likewise.
* libc/stdio/vsscanf.c (eofread1): Likewise.
* libc/stdio64/freopen64.c (_freopen64_r): Likewise.
* libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
* libc/stdio64/ftello64.c (_ftello64_r): Likewise.
* libc/stdio/fflush.c (fflush): Improve reentrancy, although more
could be fixed.
* libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
* libc/stdio/funopen.c (_funopen_r, funopen): New file.
* libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
new files.
* libc/stdio/Makefile.in: Regenerate.
2007-06-05 02:10:17 +08:00
|
|
|
funopen.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
fwrite.def \
|
|
|
|
getc.def \
|
2002-05-09 03:11:22 +08:00
|
|
|
getc_u.def \
|
2007-07-14 01:07:28 +08:00
|
|
|
getchar.def \
|
2002-05-09 03:11:22 +08:00
|
|
|
getchar_u.def \
|
2002-06-22 02:29:23 +08:00
|
|
|
getdelim.def \
|
|
|
|
getline.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
gets.def \
|
2000-03-08 11:42:25 +08:00
|
|
|
getw.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
mktemp.def \
|
2007-08-03 04:23:06 +08:00
|
|
|
open_memstream.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
perror.def \
|
|
|
|
putc.def \
|
2002-05-09 03:11:22 +08:00
|
|
|
putc_u.def \
|
2007-07-14 01:07:28 +08:00
|
|
|
putchar.def \
|
2002-05-09 03:11:22 +08:00
|
|
|
putchar_u.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
puts.def \
|
2000-03-08 11:42:25 +08:00
|
|
|
putw.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
remove.def \
|
|
|
|
rename.def \
|
|
|
|
rewind.def \
|
|
|
|
setbuf.def \
|
2002-05-24 06:05:54 +08:00
|
|
|
setbuffer.def \
|
|
|
|
setlinebuf.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
setvbuf.def \
|
|
|
|
siprintf.def \
|
2004-11-24 08:45:41 +08:00
|
|
|
siscanf.def \
|
2000-02-18 03:39:52 +08:00
|
|
|
sprintf.def \
|
|
|
|
sscanf.def \
|
|
|
|
tmpfile.def \
|
|
|
|
tmpnam.def \
|
2007-07-14 01:07:28 +08:00
|
|
|
ungetc.def \
|
2001-04-21 06:50:51 +08:00
|
|
|
vfprintf.def \
|
2004-11-24 08:45:41 +08:00
|
|
|
vfscanf.def \
|
|
|
|
viprintf.def \
|
|
|
|
viscanf.def
|
2000-02-18 03:39:52 +08:00
|
|
|
|
|
|
|
SUFFIXES = .def
|
|
|
|
|
|
|
|
CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
|
|
|
|
|
|
|
|
.c.def:
|
|
|
|
$(CHEW) < $< > $*.def 2> $*.ref
|
|
|
|
touch stmp-def
|
|
|
|
|
|
|
|
TARGETDOC = ../tmp.texi
|
|
|
|
|
|
|
|
doc: $(CHEWOUT_FILES)
|
|
|
|
cat $(srcdir)/stdio.tex >> $(TARGETDOC)
|
|
|
|
|
|
|
|
CLEANFILES = $(CHEWOUT_FILES) *.ref
|
|
|
|
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)fclose.$(oext): local.h
|
|
|
|
$(lpfx)fdopen.$(oext): local.h
|
|
|
|
$(lpfx)fflush.$(oext): local.h
|
|
|
|
$(lpfx)findfp.$(oext): local.h
|
2007-08-03 04:23:06 +08:00
|
|
|
$(lpfx)fmemopen.$(oext): local.h
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)fopen.$(oext): local.h
|
Implement funopen, fopencookie.
* libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
Switch to reentrant callbacks.
* libc/include/stdio.h (funopen): Fix declaration.
(fopencookie): Declare.
* libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
(__sseek64, __swrite64): Fix prototypes.
[__SCLE]: Pull in setmode declaration.
* libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
reentrancy.
* libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
(__sseek64, __swrite64): Fix reentrancy.
* libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
reentrancy.
* libc/stdio/ftell.c (_ftell_r): Likewise.
* libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
* libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
* libc/stdio/freopen.c (_freopen_r): Likewise.
* libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
* libc/stdio/refill.c (__srefill_r): Likewise.
* libc/stdio/siscanf.c (eofread): Likewise.
* libc/stdio/sscanf.c (eofread): Likewise.
* libc/stdio/vsiscanf.c (eofread1): Likewise.
* libc/stdio/vsscanf.c (eofread1): Likewise.
* libc/stdio64/freopen64.c (_freopen64_r): Likewise.
* libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
* libc/stdio64/ftello64.c (_ftello64_r): Likewise.
* libc/stdio/fflush.c (fflush): Improve reentrancy, although more
could be fixed.
* libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
* libc/stdio/funopen.c (_funopen_r, funopen): New file.
* libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
new files.
* libc/stdio/Makefile.in: Regenerate.
2007-06-05 02:10:17 +08:00
|
|
|
$(lpfx)fopencookie.$(oext): local.h
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)fputs.$(oext): fvwrite.h
|
|
|
|
$(lpfx)fread.$(oext): local.h
|
|
|
|
$(lpfx)freopen.$(oext): local.h
|
|
|
|
$(lpfx)fseek.$(oext): local.h
|
|
|
|
$(lpfx)ftell.$(oext): local.h
|
Implement funopen, fopencookie.
* libc/include/sys/reent.h (struct __sFILE, struct __sFILE64):
Switch to reentrant callbacks.
* libc/include/stdio.h (funopen): Fix declaration.
(fopencookie): Declare.
* libc/stdio/local.h (__sread, __swrite, __sseek, __sclose)
(__sseek64, __swrite64): Fix prototypes.
[__SCLE]: Pull in setmode declaration.
* libc/stdio/stdio.c (__sread, __swrite, __sseek, __sclose): Fix
reentrancy.
* libc/stdio64/stdio64.c (__sseek64_r, __swrite64_r): Delete.
(__sseek64, __swrite64): Fix reentrancy.
* libc/stdio/fseek.c (_fseek_r): Account for overflow, and fix
reentrancy.
* libc/stdio/ftell.c (_ftell_r): Likewise.
* libc/stdio/flags.c (__sflags): Don't lose __SAPP on "a+".
* libc/stdio/fclose.c (_fclose_r): Fix reentrancy.
* libc/stdio/freopen.c (_freopen_r): Likewise.
* libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
* libc/stdio/refill.c (__srefill_r): Likewise.
* libc/stdio/siscanf.c (eofread): Likewise.
* libc/stdio/sscanf.c (eofread): Likewise.
* libc/stdio/vsiscanf.c (eofread1): Likewise.
* libc/stdio/vsscanf.c (eofread1): Likewise.
* libc/stdio64/freopen64.c (_freopen64_r): Likewise.
* libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.
* libc/stdio64/ftello64.c (_ftello64_r): Likewise.
* libc/stdio/fflush.c (fflush): Improve reentrancy, although more
could be fixed.
* libc/stdio/fopencookie.c (_fopencookie_r, fopencookie): New file.
* libc/stdio/funopen.c (_funopen_r, funopen): New file.
* libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Build
new files.
* libc/stdio/Makefile.in: Regenerate.
2007-06-05 02:10:17 +08:00
|
|
|
$(lpfx)funopen.$(oext): local.h
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)fvwrite.$(oext): local.h fvwrite.h
|
|
|
|
$(lpfx)fwalk.$(oext): local.h
|
|
|
|
$(lpfx)fwrite.$(oext): local.h fvwrite.h
|
|
|
|
$(lpfx)iscanf.$(oext): local.h
|
|
|
|
$(lpfx)makebuf.$(oext): local.h
|
2007-08-03 04:23:06 +08:00
|
|
|
$(lpfx)open_memstream.$(oext): local.h
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)puts.$(oext): fvwrite.h
|
|
|
|
$(lpfx)refill.$(oext): local.h
|
|
|
|
$(lpfx)scanf.$(oext): local.h
|
|
|
|
$(lpfx)setbuf.$(oext): local.h
|
|
|
|
$(lpfx)setvbuf.$(oext): local.h
|
|
|
|
$(lpfx)siprintf.$(oext): local.h
|
|
|
|
$(lpfx)sniprintf.$(oext): local.h
|
|
|
|
$(lpfx)sprintf.$(oext): local.h
|
|
|
|
$(lpfx)siscanf.$(oext): local.h
|
|
|
|
$(lpfx)sscanf.$(oext): local.h
|
|
|
|
$(lpfx)stdio.$(oext): local.h
|
2008-04-15 05:14:55 +08:00
|
|
|
$(lpfx)svfiprintf.$(oext): local.h
|
|
|
|
$(lpfx)svfiscanf.$(oext): local.h floatio.h
|
|
|
|
$(lpfx)svfprintf.$(oext): local.h
|
|
|
|
$(lpfx)svfscanf.$(oext): local.h floatio.h
|
2006-05-02 06:01:07 +08:00
|
|
|
$(lpfx)ungetc.$(oext): local.h
|
|
|
|
$(lpfx)vfiprintf.$(oext): local.h
|
|
|
|
$(lpfx)vfprintf.$(oext): local.h
|
|
|
|
$(lpfx)vfiscanf.$(oext): local.h floatio.h
|
|
|
|
$(lpfx)vfscanf.$(oext): local.h floatio.h
|
|
|
|
$(lpfx)viscanf.$(oext): local.h
|
|
|
|
$(lpfx)vscanf.$(oext): local.h
|
|
|
|
$(lpfx)vsniprintf.$(oext): local.h
|
|
|
|
$(lpfx)vsiscanf.$(oext): local.h
|
|
|
|
$(lpfx)vsscanf.$(oext): local.h
|
|
|
|
$(lpfx)wbuf.$(oext): local.h fvwrite.h
|
|
|
|
$(lpfx)wsetup.$(oext): local.h
|