newlib-cygwin/newlib/libc/stdio
Yaakov Selkowitz 968738f9b1 Implement BSD/GNU unlocked stdio extensions.
* libc/include/stdio.h (clearerr_unlocked, feof_unlocked,
ferror_unlocked, fflush_unlocked, fgetc_unlocked, fgets_unlocked,
fileno_unlocked, fputc_unlocked, fputs_unlocked, fread_unlocked,
fwrite_unlocked): Declare.
* libc/include/wchar.h (fgetwc_unlocked, fgetws_unlocked,
fputwc_unlocked, fputws_unlocked, getwc_unlocked, getwchar_unlocked,
putwc_unlocked, putwchar_unlocked): Declare.
* libc/stdio/Makefile.am (ELIX_4_SOURCES): Add clearerr_u.c,
feof_u.c, ferror_u.c, fflush_u.c, fgetc_u.c, fgets_u.c, fgetwc_u.c,
fgetws_u.c, fileno_u.c, fputc_u.c, fputs_u.c, fputwc_u.c, fputws_u.c,
fread_u.c, fwrite_u.c, getwc_u.c, getwchar_u.c, putwc_u.c, putwchar_u.c.
Add necessary dependencies.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio/clearerr.c: Document unlocked variant.
* libc/stdio/clearerr_u.c: New file.
* libc/stdio/feof.c: Document unlocked variant.
* libc/stdio/feof_u.c: New file.
* libc/stdio/ferror.c: Document unlocked variant.
* libc/stdio/ferror_u.c: New file.
* libc/stdio/fflush.c: Add __IMPL_UNLOCKED__ overrides.
Document unlocked variants.
* libc/stdio/fflush_u.c: New file.
* libc/stdio/fgetc.c: Document unlocked variants.
* libc/stdio/fgetc_u.c: New file.
* libc/stdio/fgets.c: Add __IMPL_UNLOCKED__ overrides.
Document unlocked variants.
* libc/stdio/fgets_u.c: New file.
* libc/stdio/fgetwc.c: Document unlocked variants.
(__fgetwc): Make non-static.
* libc/stdio/fgetwc_u.c: New file.
* libc/stdio/fgetws.c: Add __IMPL_UNLOCKED__ overrides.
Document unlocked variants.
* libc/stdio/fgetws_u.c: New file.
* libc/stdio/fileno.c: Document unlocked variant.
* libc/stdio/fileno_u.c: New file.
* libc/stdio/fputc.c: Document unlocked variants.
* libc/stdio/fputc_u.c: New file.
* libc/stdio/fputs.c: Add __IMPL_UNLOCKED__ overrides.
Document unlocked variants.
* libc/stdio/fputs_u.c: New file.
* libc/stdio/fputwc.c: Document unlocked variants.
(__fputwc): Make non-static.
* libc/stdio/fputwc_u.c: New file.
* libc/stdio/fputws.c: Add __IMPL_UNLOCKED__ overrides.
Document unlocked variants.
* libc/stdio/fputws_u.c: New file.
* libc/stdio/fread.c: Add __IMPL_UNLOCKED__ overrides.
Document unlocked variants.
* libc/stdio/fread_u.c: New file.
* libc/stdio/fwrite.c: Add __IMPL_UNLOCKED__ overrides.
Document unlocked variants.
* libc/stdio/fwrite_u.c: New file.
* libc/stdio/getwc_u.c: New file.
* libc/stdio/getwchar.c: Document unlocked variants.
* libc/stdio/getwchar_u.c: New file.
* libc/stdio/local.h: Define locking macros as empty ifdef
__IMPL_UNLOCKED__.
(__fgetwc, __fputwc): Declare.
* libc/stdio/putwc_u.c: New file.
* libc/stdio/putwchar.c: Document unlocked variants.
* libc/stdio/putwchar_u.c: New file.
2014-12-18 14:55:21 +00:00
..
Makefile.am Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
Makefile.in Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
asiprintf.c Throughout, run newlib with -Wall -Werror option and fix bugs and 2012-08-08 11:04:18 +00:00
asniprintf.c 2008-12-11 Craig Howland <howland@LGSInnovations.com> 2008-12-11 17:27:56 +00:00
asnprintf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
asprintf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
clearerr.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
clearerr_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
diprintf.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
dprintf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
fclose.c Introduce _STDIO_BSD_SEMANTICS flag to switch fclose/exit file flushing 2014-01-17 10:55:32 +00:00
fcloseall.c
fdopen.c * libc/stdio/local.h (_newlib_flockfile_start): New macro to 2012-05-30 08:58:42 +00:00
feof.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
feof_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
ferror.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
ferror_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fflush.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fflush_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fgetc.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fgetc_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fgetpos.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
fgets.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fgets_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fgetwc.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fgetwc_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fgetws.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fgetws_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fileno.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fileno_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
findfp.c * libc/stdio/findfp.c (_cleanup_r): Call _fflush_r when configuration 2014-09-05 09:42:15 +00:00
fiprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
fiscanf.c
flags.c * libc/stdio/flags.c (__sflags): Guard against using O_BINARY on systems which 2012-08-23 04:19:59 +00:00
floatio.h
fmemopen.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
fopen.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
fopencookie.c * libc/include/stdio.h (funopen): Change prototype of 2013-10-23 10:04:43 +00:00
fprintf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
fpurge.c * libc/stdio/local.h (_newlib_flockfile_start): New macro to 2012-05-30 08:58:42 +00:00
fputc.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fputc_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fputs.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fputs_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fputwc.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fputwc_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fputws.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fputws_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fread.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fread_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
freopen.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
fscanf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
fseek.c * libc/include/sys/reent.h (__sFILE): Change type of _offset 2012-11-29 16:28:30 +00:00
fseeko.c 2013-04-10 Bin Cheng <bin.cheng@arm.com> 2013-04-10 18:47:46 +00:00
fsetlocking.c * libc/include/stdio.h (__SNLK): Define. 2014-12-15 18:22:56 +00:00
fsetpos.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
ftell.c * libc/include/sys/reent.h (__sFILE): Change type of _offset 2012-11-29 16:28:30 +00:00
ftello.c * libc/include/sys/reent.h (__sFILE): Change type of _offset 2012-11-29 16:28:30 +00:00
funopen.c * libc/include/stdio.h (funopen): Change prototype of 2013-10-23 10:04:43 +00:00
fvwrite.c * libc/stdio/fvwrite.c: Allow writing in larger chunks for fully 2013-11-04 14:18:44 +00:00
fvwrite.h * libc/stdio/fvwrite.h: change type of uio_resid from int to size_t to 2013-10-31 10:35:54 +00:00
fwalk.c * libc/stdio/fwalk.c (_fwalk_reent): Remove redundant test. 2014-09-05 09:31:32 +00:00
fwide.c * libc/stdio/local.h (_newlib_flockfile_start): New macro to 2012-05-30 08:58:42 +00:00
fwprintf.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
fwrite.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fwrite_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
fwscanf.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
getc.c 2013-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-04-29 21:06:23 +00:00
getc_u.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
getchar.c 2013-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-04-29 21:06:23 +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/local.h (_newlib_flockfile_start): New macro to 2012-05-30 08:58:42 +00:00
getline.c
gets.c * libc/stdio/local.h (_newlib_flockfile_start): New macro to 2012-05-30 08:58:42 +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
getwc_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
getwchar.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
getwchar_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
iprintf.c Add support for asnprintf, and improve *printf documentation. 2007-05-04 02:55:16 +00:00
iscanf.c
local.h Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
makebuf.c 2013-04-10 Bin Cheng <bin.cheng@arm.com> 2013-04-10 18:47:46 +00:00
mktemp.c Throughout, run newlib with -Wall -Werror option and fix bugs and 2012-08-08 11:04:18 +00:00
nano-vfprintf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
nano-vfprintf_float.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
nano-vfprintf_i.c * libc/stdio/nano-vfprintf_i.c (_printf_i): Use LONGINT when void* is 2014-11-20 14:05:28 +00:00
nano-vfprintf_local.h 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
nano-vfscanf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
nano-vfscanf_float.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
nano-vfscanf_i.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
nano-vfscanf_local.h 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
open_memstream.c * libc/stdio/open_memstream.c (internal_open_memstream_r): Initialize 2014-02-20 13:32:34 +00:00
perror.c strerror: allow user hook to comply with POSIX rules 2011-05-25 18:41:10 +00:00
printf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
putc.c 2013-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-04-29 21:06:23 +00:00
putc_u.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
putchar.c 2013-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-04-29 21:06:23 +00:00
putchar_u.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
puts.c * acconfig.h (_FVWRITE_IN_STREAMIO): Undefine. 2013-03-27 09:38:39 +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
putwc_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
putwchar.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
putwchar_u.c Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +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 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
sccl.c
setbuf.c 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> 2013-11-18 17:28:06 +00:00
setbuffer.c
setlinebuf.c
setvbuf.c 2013-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-04-29 21:06:23 +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 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
sprintf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
sscanf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
stdio.c * libc/include/stdio.h (funopen): Change prototype of 2013-10-23 10:04:43 +00:00
stdio.tex * stdio.tex: Add menu entries for __fsetlocking and stdio_ext. 2014-12-18 10:08:09 +00:00
stdio_ext.c * stdio.tex: Add menu entries for __fsetlocking and stdio_ext. 2014-12-18 10:08:09 +00:00
swprintf.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
swscanf.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
tmpfile.c * stdio/tmpfile.c: Include <sys/stat.h>. 2007-05-17 12:10:29 +00:00
tmpnam.c
ungetc.c * libc/stdio/local.h (_newlib_flockfile_start): New macro to 2012-05-30 08:58:42 +00:00
ungetwc.c 2013-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-04-29 21:06:23 +00:00
vasiprintf.c Throughout, run newlib with -Wall -Werror option and fix bugs and 2012-08-08 11:04:18 +00:00
vasniprintf.c 2008-12-11 Craig Howland <howland@LGSInnovations.com> 2008-12-11 17:27:56 +00:00
vasnprintf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
vasprintf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
vdiprintf.c 2008-03-07 Jeff Johnston <jjohnstn@redhat.com> 2008-03-07 16:45:04 +00:00
vdprintf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
vfieeefp.h * libc/stdio/vfieeefp.h (ldieee): Fix typo. 2013-04-08 09:34:35 +00:00
vfprintf.c * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove unnecessary comparison. 2014-10-29 11:06:42 +00:00
vfscanf.c * vfscanf.c (BUF): Change definition to take multibyte decimal point 2013-12-18 19:23:33 +00:00
vfwprintf.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
vfwscanf.c * libc/stdio/vfwscanf.c (__SVFWSCANF_R): Fix fetching decimal_point in 2013-12-19 18:50:00 +00:00
viprintf.c 2013-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-04-29 21:06:23 +00:00
viscanf.c 2013-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-04-29 21:06:23 +00:00
vprintf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
vscanf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
vsiprintf.c 2011-08-19 Ralf Corsépius <ralf.corsepius@rtems.org> 2011-08-19 17:00:32 +00:00
vsiscanf.c * libc/include/wchar.h (fwscanf, swscanf, vfwscanf, vswscanf, vwscanf, 2009-03-11 11:53:22 +00:00
vsniprintf.c 2011-08-19 Ralf Corsépius <ralf.corsepius@rtems.org> 2011-08-19 17:00:32 +00:00
vsnprintf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
vsprintf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
vsscanf.c 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
vswprintf.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
vswscanf.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
vwprintf.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
vwscanf.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
wbuf.c printf: set errno for read-only stream 2011-06-14 03:56:05 +00:00
wprintf.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
wscanf.c 2013-11-26 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-26 17:21:01 +00:00
wsetup.c printf: set errno for read-only stream 2011-06-14 03:56:05 +00:00