newlib-cygwin/newlib/libc/stdio
Corinna Vinschen 656df313e0 * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic
changes of flags and fp lock.
	* libc/stdio/freopen.c: Ditto.
	* libc/stdio/freopen64.c: Ditto.
	* libc/stdio/fgetc.c: Revert change from 2009-04-24, remove sfp locks
	which guard entire function to avoid potential deadlocks when using
	stdio functions in multiple thraeds.
	* libc/stdio/fgets.c: Ditto.
	* libc/stdio/fgetwc.c: Ditto.
	* libc/stdio/fgetws.c: Ditto.
	* libc/stdio/fread.c: Ditto.
	* libc/stdio/fseek.c: Ditto.
	* libc/stdio/getc.c: Ditto.
	* libc/stdio/getdelim.c: Ditto.
	* libc/stdio/gets.c: Ditto.
	* libc/stdio/vfscanf.c: Ditto.
	* libc/stdio/vfwscanf.c: Ditto.

	* libc/stdio/fflush.c (_fflush_r): Split out core functionality into
	new function __sflush_r.  Just lock file and call __sflush_r from here.
	* libc/stdio/fwalk.c (_fwalk): Remove static helper function and move
	functionality back into main function. Don't walk a file with flags
	value of 1.  Add comment.
	(_fwalk_reent): Ditto.
	* libc/stdio/local.h (__sflush_r): Declare.
	* libc/stdio/refill.c (__srefill): Before calling fwalk, set flags
	value to 1 so this file pointer isn't walked.  Revert flags afterwards
	and call __sflush_r for this fp if necessary.  Add comments.
2011-01-28 10:49:11 +00:00
..
Makefile.am Add fpurge. 2009-07-03 11:58:04 +00:00
Makefile.in 2010-12-16 Jeff Johnston <jjohnstn@redhat.com> 2010-12-16 21:59:17 +00:00
asiprintf.c Fix 2008-04-14 regression in asprintf(ptr,""). 2008-04-30 02:47:14 +00:00
asniprintf.c 2008-12-11 Craig Howland <howland@LGSInnovations.com> 2008-12-11 17:27:56 +00:00
asnprintf.c 2008-11-24 Craig Howland <howland@LGSInnovations.com> 2008-11-24 22:08:02 +00:00
asprintf.c 2008-04-14 Jeff Johnston <jjohnstn@redhat.com> 2008-04-14 21:14:55 +00:00
clearerr.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
diprintf.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
dprintf.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
fclose.c * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic 2011-01-28 10:49:11 +00:00
fcloseall.c
fdopen.c More POSIX stream corner cases. 2007-07-31 20:49:40 +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 * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic 2011-01-28 10:49:11 +00:00
fgetc.c * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic 2011-01-28 10:49:11 +00:00
fgetpos.c 2005-02-07 Antony King <antony.king@st.com> 2005-02-08 01:33:19 +00:00
fgets.c * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic 2011-01-28 10:49:11 +00:00
fgetwc.c * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic 2011-01-28 10:49:11 +00:00
fgetws.c * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic 2011-01-28 10:49:11 +00:00
fileno.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
findfp.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
fiprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
fiscanf.c
flags.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
floatio.h
fmemopen.c Implement fmemopen and open_memstream. 2007-08-02 20:23:06 +00:00
fopen.c
fopencookie.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
fprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
fpurge.c Add fpurge. 2009-07-03 11:58:04 +00:00
fputc.c 2006-09-26 Jeff Johnston <jjohnstn@redhat.com> 2006-09-26 21:22:19 +00:00
fputs.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
fputwc.c * libc/stdio/fputwc.c: Fix typo in man page info. 2009-02-16 15:04:34 +00:00
fputws.c 2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org> 2008-12-12 17:21:08 +00:00
fread.c * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic 2011-01-28 10:49:11 +00:00
freopen.c * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic 2011-01-28 10:49:11 +00:00
fscanf.c
fseek.c * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic 2011-01-28 10:49:11 +00:00
fseeko.c
fsetpos.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
ftell.c Fix ftell bug after ungetc. 2008-03-04 02:22:36 +00:00
ftello.c
funopen.c Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
fvwrite.c Fix fflush issues. 2007-07-13 20:37:53 +00:00
fvwrite.h 2007-03-15 Eric Blake <ebb9@byu.net> 2007-03-15 18:40:48 +00:00
fwalk.c * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic 2011-01-28 10:49:11 +00:00
fwide.c 2009-01-05 Craig Howland <howland@LGSInnovations.com> 2009-01-05 19:08:03 +00:00
fwprintf.c * libc/include/stdio.h (__VALIST): Guard against multiple definition. 2009-03-06 09:55:52 +00:00
fwrite.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
fwscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
getc.c * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic 2011-01-28 10:49:11 +00:00
getc_u.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
getchar.c 2006-06-14 Jeff Johnston <jjohnstn@redhat.com> 2006-06-14 20:49:11 +00:00
getchar_u.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
getdelim.c * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic 2011-01-28 10:49:11 +00:00
getline.c
gets.c * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic 2011-01-28 10:49:11 +00:00
getw.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:21:08 +00:00
getwc.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
getwchar.c 2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org> 2008-12-12 17: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 * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic 2011-01-28 10:49:11 +00:00
makebuf.c 2008-01-03 Jeff Johnston <jjohnstn@redhat.com> 2008-01-03 22:33:37 +00:00
mktemp.c Add mkostemp and mkostemps. 2010-07-19 18:21:11 +00:00
open_memstream.c 2011-01-05 Ralf Corsepius <ralf.corsepius@rtems.org> 2011-01-05 17:38:42 +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 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
putchar.c 2006-06-14 Jeff Johnston <jjohnstn@redhat.com> 2006-06-14 20:49:11 +00:00
putchar_u.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
puts.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
putw.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:21:08 +00:00
putwc.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
putwchar.c 2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org> 2008-12-12 17:21:08 +00:00
refill.c * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic 2011-01-28 10:49:11 +00:00
remove.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
rename.c 2007-09-18 Jeff Johnston <jjohnstn@redhat.com> 2007-09-18 19:32:43 +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 2008-03-11 Jeff Johnston <jjohnstn@redhat.com> 2008-03-11 19:13:30 +00:00
scanf.c 2005-02-07 Antony King <antony.king@st.com> 2005-02-08 01:33:19 +00:00
sccl.c
setbuf.c
setbuffer.c
setlinebuf.c
setvbuf.c Fix fflush issues. 2007-07-13 20:37:53 +00:00
siprintf.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
siscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
sniprintf.c 2008-04-14 Jeff Johnston <jjohnstn@redhat.com> 2008-04-14 21:14:55 +00:00
snprintf.c 2008-04-14 Jeff Johnston <jjohnstn@redhat.com> 2008-04-14 21:14:55 +00:00
sprintf.c * libc/stdio/swprintf.c (_swprintf_r, swprintf): 2009-03-12 10:27:10 +00:00
sscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
stdio.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
stdio.tex Add fpurge. 2009-07-03 11:58:04 +00:00
swprintf.c * libc/stdio/swprintf.c (_swprintf_r, swprintf): 2009-03-12 10:27:10 +00:00
swscanf.c * libc/stdio/swscanf.c: Some documentation corrections. 2009-03-12 14:30:28 +00:00
tmpfile.c * stdio/tmpfile.c: Include <sys/stat.h>. 2007-05-17 12:10:29 +00:00
tmpnam.c
ungetc.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
ungetwc.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
vasiprintf.c 2008-04-14 Jeff Johnston <jjohnstn@redhat.com> 2008-04-14 21:14:55 +00:00
vasniprintf.c 2008-12-11 Craig Howland <howland@LGSInnovations.com> 2008-12-11 17:27:56 +00:00
vasnprintf.c 2008-11-24 Craig Howland <howland@LGSInnovations.com> 2008-11-24 21:27:33 +00:00
vasprintf.c 2008-04-14 Jeff Johnston <jjohnstn@redhat.com> 2008-04-14 21:14:55 +00:00
vdiprintf.c 2008-03-07 Jeff Johnston <jjohnstn@redhat.com> 2008-03-07 16:45:04 +00:00
vdprintf.c 2008-03-07 Jeff Johnston <jjohnstn@redhat.com> 2008-03-07 16:45:04 +00:00
vfieeefp.h 2007-08-31 Antony King <antony.king@st.com> 2007-08-31 21:21:27 +00:00
vfprintf.c * libc/stdio/vfprintf.c (_VFPRINTF_R): Drop printing a redundant 2010-02-15 16:10:28 +00:00
vfscanf.c * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic 2011-01-28 10:49:11 +00:00
vfwprintf.c Extend locale support to maintain wide char values of native strings 2010-04-28 09:59:37 +00:00
vfwscanf.c * libc/stdio/fclose.c: Only use sfp lock to guard non-atomic 2011-01-28 10:49:11 +00:00
viprintf.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
viscanf.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +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 2008-04-14 Jeff Johnston <jjohnstn@redhat.com> 2008-04-14 21:14:55 +00:00
vsiscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
vsniprintf.c 2008-04-14 Jeff Johnston <jjohnstn@redhat.com> 2008-04-14 21:14:55 +00:00
vsnprintf.c Fix 2008-04-14 regression in asprintf(ptr,""). 2008-04-30 02:47:14 +00:00
vsprintf.c 2008-04-14 Jeff Johnston <jjohnstn@redhat.com> 2008-04-14 21:14:55 +00:00
vsscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
vswprintf.c * libc/stdio/swprintf.c (_swprintf_r, swprintf): 2009-03-12 10:27:10 +00:00
vswscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
vwprintf.c * libc/include/stdio.h (__VALIST): Guard against multiple definition. 2009-03-06 09:55:52 +00:00
vwscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
wbuf.c 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
wprintf.c * libc/include/stdio.h (__VALIST): Guard against multiple definition. 2009-03-06 09:55:52 +00:00
wscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
wsetup.c 2007-03-15 Eric Blake <ebb9@byu.net> 2007-03-15 18:40:48 +00:00