newlib-cygwin/newlib/libc
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
..
argz * libc/argz/argz_add_sep.c (argz_add_sep): Handle empty string 2007-05-29 07:49:14 +00:00
ctype * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
errno * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
iconv * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
include Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
locale * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
machine * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
misc * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
posix * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
reent * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
search * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
signal * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
stdio Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
stdio64 Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
stdlib Avoid more compiler warnings. 2007-05-29 21:26:59 +00:00
string Avoid more compiler warnings. 2007-05-29 21:26:59 +00:00
sys * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
syscalls * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
time * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
unix * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
Makefile.am * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
Makefile.in * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
aclocal.m4 * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
configure * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
configure.in * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
libc.texinfo 2005-12-18 Jeff Johnston <jjohnstn@redhat.com> 2006-12-18 22:21:56 +00:00
saber import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
sys.tex 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:36:05 +00:00