newlib-cygwin/newlib/libc/stdio64
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
..
Makefile.am 2006-05-01 Jeff Johnston <jjohnstn@redhat.com> 2006-05-01 22:01:07 +00:00
Makefile.in * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
dummy.c 2002-08-26 Jeff Johnston <jjohnstn@redhat.com> 2002-08-26 18:56:09 +00:00
fdopen64.c * libc/stdio64/local64.h: Delete, move contents to... 2007-05-01 23:03:36 +00:00
fgetpos64.c 2005-02-07 Antony King <antony.king@st.com> 2005-02-08 01:33:19 +00:00
fopen64.c * libc/stdio64/local64.h: Delete, move contents to... 2007-05-01 23:03:36 +00:00
freopen64.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
fseeko64.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
fsetpos64.c 2003-08-22 Jeff Johnston <jjohnstn@redhat.com> 2003-08-22 18:52:25 +00:00
ftello64.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
stdio64.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
stdio64.tex 2002-07-17 Jeff Johnston <jjohnstn@redhat.com> 2002-07-17 23:25:44 +00:00
tmpfile64.c * stdio/tmpfile.c: Include <sys/stat.h>. 2007-05-17 12:10:29 +00:00