newlib-cygwin/newlib/libc
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
..
argz * libc/argz/envz_merge.c (envz_merge): Fix memory leak (Cygwin Coverity 2014-06-23 20:21:54 +00:00
ctype * libc/argz/envz_merge.c (envz_merge): Fix memory leak (Cygwin Coverity 2014-06-23 20:21:54 +00:00
errno 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
iconv 2013-11-25 Joel Sherrill <joel.sherrill@oarcorp.com> 2013-11-26 14:38:58 +00:00
include Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
locale * libc/argz/envz_merge.c (envz_merge): Fix memory leak (Cygwin Coverity 2014-06-23 20:21:54 +00:00
machine * libc/machine/aarch64/strcpy.S: Improve handling of short strings. 2014-12-16 15:48:58 +00:00
misc 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
posix * libc/posix/posix_spawn.c: Drop using namespace.h. 2013-11-26 13:51:19 +00:00
reent * libc/reent/reent.c (_reclaim_reent): Free also _misc and 2013-06-24 11:34:03 +00:00
search * libc/include/stdlib.h (__bsd_qsort_r): Declare. 2014-12-05 16:21:04 +00:00
signal 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
stdio Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
stdio64 * libc/include/stdio.h (funopen): Change prototype of 2013-10-23 10:04:43 +00:00
stdlib * libc/stdlib/nano-mallocr.c (ALIGN_TO): Do not assume that 2014-12-16 20:46:25 +00:00
string * libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned 2014-10-09 12:24:56 +00:00
sys * libc/sys/rtems/sys/syslimits.h (NGROUPS_MAX): Adjust value so 2014-11-20 14:03:17 +00:00
syscalls 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
time * libc/time/gmtime_r.c (gmtime_r): Fixed bug in calculations for dates 2014-12-08 11:48:31 +00:00
unix * libc/unix/getcwd.c (getcwd): Close directory also in case of an error. 2014-10-16 15:00:59 +00:00
xdr 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
Makefile.am 2011-01-05 Ralf Corsepius <ralf.corsepius@rtems.org> 2011-01-05 17:18:16 +00:00
Makefile.in 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
aclocal.m4 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
configure 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
configure.in 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
libc.texinfo 2013-12-23 Jeff Johnston <jjohnstn@redhat.com> 2013-12-23 20:45:10 +00:00
saber
sys.tex 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:36:05 +00:00