newlib-cygwin/newlib/libc/stdio
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 Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
Makefile.in Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
asiprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
asniprintf.c Allow zero size with non-null buf in *asnprintf. 2007-05-09 19:27:30 +00:00
asnprintf.c Allow zero size with non-null buf in *asnprintf. 2007-05-09 19:27:30 +00:00
asprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
clearerr.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
diprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
dprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
fclose.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
fcloseall.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
fdopen.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
feof.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
ferror.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
fflush.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
fgetc.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
fgetpos.c 2005-02-07 Antony King <antony.king@st.com> 2005-02-08 01:33:19 +00:00
fgets.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
fileno.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
findfp.c * libc/stdio64/local64.h: Delete, move contents to... 2007-05-01 23:03:36 +00:00
fiprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
fiscanf.c 2004-11-23 Jeff Johnston <jjohnstn@redhat.com> 2004-11-24 00:45:41 +00:00
flags.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
floatio.h 2000-12-06 Jeff Johnston <jjohnstn@redhat.com> 2000-12-06 23:50:11 +00:00
fopen.c 2004-06-11 Antony King <antony.king@st.com> 2004-06-11 20:37:10 +00:00
fopencookie.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
fprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
fputc.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
fputs.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
fread.c 2007-03-15 Eric Blake <ebb9@byu.net> 2007-03-15 18:40:48 +00:00
freopen.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
fscanf.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
fseek.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
fseeko.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
fsetpos.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
ftell.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
ftello.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
funopen.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
fvwrite.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
fvwrite.h 2007-03-15 Eric Blake <ebb9@byu.net> 2007-03-15 18:40:48 +00:00
fwalk.c 2004-09-16 Antony King <antony.king@st.com> 2004-09-16 21:26:51 +00:00
fwrite.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
getc.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
getc_u.c 2006-06-14 Jeff Johnston <jjohnstn@redhat.com> 2006-06-14 20:49:11 +00:00
getchar.c 2006-06-14 Jeff Johnston <jjohnstn@redhat.com> 2006-06-14 20:49:11 +00:00
getchar_u.c 2006-06-14 Jeff Johnston <jjohnstn@redhat.com> 2006-06-14 20:49:11 +00:00
getdelim.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
getline.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
gets.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
getw.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:21:08 +00:00
iprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
iscanf.c 2005-02-07 Antony King <antony.king@st.com> 2005-02-08 01:33:19 +00:00
local.h Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
makebuf.c * libc/stdio64/local64.h: Delete, move contents to... 2007-05-01 23:03:36 +00:00
mktemp.c * libc/stdio64/local64.h: Delete, move contents to... 2007-05-01 23:03:36 +00:00
perror.c 2005-02-07 Antony King <antony.king@st.com> 2005-02-08 01:33:19 +00:00
printf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
putc.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
putc_u.c 2006-06-14 Jeff Johnston <jjohnstn@redhat.com> 2006-06-14 20:49:11 +00:00
putchar.c 2006-06-14 Jeff Johnston <jjohnstn@redhat.com> 2006-06-14 20:49:11 +00:00
putchar_u.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
puts.c 2006-06-14 Jeff Johnston <jjohnstn@redhat.com> 2006-06-14 20:49:11 +00:00
putw.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:21:08 +00:00
refill.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
remove.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
rename.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
rewind.c * libc/stdio/rewind.c (rewind): Fix regression of 2003-08-22. 2007-05-25 17:05:09 +00:00
rget.c 2006-06-15 Corinna Vinschen <corinna@vinschen.de> 2006-06-15 16:08:09 +00:00
scanf.c 2005-02-07 Antony King <antony.king@st.com> 2005-02-08 01:33:19 +00:00
sccl.c 2004-11-23 Jeff Johnston <jjohnstn@redhat.com> 2004-11-24 00:45:41 +00:00
setbuf.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
setbuffer.c 2004-09-16 Antony King <antony.king@st.com> 2004-09-16 21:15:14 +00:00
setlinebuf.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
setvbuf.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
siprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
siscanf.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
sniprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
snprintf.c 2007-03-15 Eric Blake <ebb9@byu.net> 2007-03-15 18:40:48 +00:00
sprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
sscanf.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
stdio.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
stdio.tex 2005-10-11 Shaun Jackman <sjackman@gmail.com> 2005-10-11 23:59:32 +00:00
tmpfile.c * stdio/tmpfile.c: Include <sys/stat.h>. 2007-05-17 12:10:29 +00:00
tmpnam.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 20:01:55 +00:00
ungetc.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
vasiprintf.c 2007-04-04 Eric Blake <ebb9@byu.net> 2007-04-04 18:32:49 +00:00
vasniprintf.c Allow zero size with non-null buf in *asnprintf. 2007-05-09 19:27:30 +00:00
vasnprintf.c Allow zero size with non-null buf in *asnprintf. 2007-05-09 19:27:30 +00:00
vasprintf.c 2007-04-04 Eric Blake <ebb9@byu.net> 2007-04-04 18:32:49 +00:00
vdiprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
vdprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
vfieeefp.h 2004-05-25 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-05-26 00:19:14 +00:00
vfprintf.c * libc/stdio/vfprintf.c (_VFPRINTF_R): Populate 'ox' when 2007-05-27 14:19:15 +00:00
vfscanf.c * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't truncate %p when 2007-05-24 04:25:18 +00:00
viprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
viscanf.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:38:59 +00:00
vprintf.c 2005-02-07 Antony King <antony.king@st.com> 2005-02-08 01:33:19 +00:00
vscanf.c 2005-02-07 Antony King <antony.king@st.com> 2005-02-08 01:33:19 +00:00
vsiprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
vsiscanf.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
vsniprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
vsnprintf.c 2007-04-04 Eric Blake <ebb9@byu.net> 2007-04-04 18:32:49 +00:00
vsprintf.c 2007-04-04 Eric Blake <ebb9@byu.net> 2007-04-04 18:32:49 +00:00
vsscanf.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
wbuf.c 2007-03-15 Eric Blake <ebb9@byu.net> 2007-03-15 18:40:48 +00:00
wsetup.c 2007-03-15 Eric Blake <ebb9@byu.net> 2007-03-15 18:40:48 +00:00