acadia-newlib/newlib/libc/include
Eric Blake 17c61d6a2c 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-04 18:10:17 +00:00
..
machine 2007-04-26 Patrick Mansfield <patmans@us.ibm.com> 2007-04-26 19:23:37 +00:00
sys Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
_ansi.h
_syslist.h
alloca.h
ar.h
argz.h * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len 2007-05-23 16:36:23 +00:00
assert.h
ctype.h
dirent.h
envz.h
errno.h
fastmath.h
fcntl.h
getopt.h
grp.h
iconv.h
ieeefp.h 2007-04-26 Patrick Mansfield <patmans@us.ibm.com> 2007-04-26 19:23:37 +00:00
inttypes.h
langinfo.h
libgen.h
limits.h * libc/include/limits.h (NL_ARGMAX): Define a default value. 2007-04-24 16:01:15 +00:00
locale.h
malloc.h
math.h 2007-05-17 Yaakov Selkowitz <yselkowitz <at> users.sourceforge.net> 2007-05-17 18:50:57 +00:00
newlib.h
paths.h
process.h
pthread.h
pwd.h
reent.h
regdef.h
search.h
setjmp.h
signal.h
stdint.h
stdio.h Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
stdlib.h
string.h
termios.h
time.h
unctrl.h
unistd.h
utime.h
utmp.h
wchar.h
wctype.h