newlib/newlib/libc/include
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
..
machine * newlib/libc/include/machine/setjmp.h: Add FPU support. 2014-12-15 13:32:17 +00:00
rpc * libc/include/locale.h (NULL): Fetch definition via stddef.h. 2012-11-01 11:51:12 +00:00
sys * libc/include/sys/signal.h [__SPU__] (kill): Declare. 2014-12-04 09:15:50 +00:00
_ansi.h * libc/include/_ansi.h: _LONG_LONG_TYPE definition removed. 2014-10-10 14:43:19 +00:00
_syslist.h 2009-12-17 Jeff Johnston <jjohnstn@redhat.com> 2009-12-17 21:08:04 +00:00
alloca.h 2006-12-13 Joel Schopp <jschopp@austin.ibm.com> 2006-12-13 23:01:21 +00:00
ar.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
argz.h * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len 2007-05-23 16:36:23 +00:00
assert.h * libc/include/assert.h (static_assert): Define. 2012-10-16 19:00:30 +00:00
complex.h * libc/include/complex.h: Fix "/*" within comment warning. 2012-01-09 22:46:34 +00:00
ctype.h * libc/include/ctype.h (__ctype_lookup): Fix precedence. 2009-11-06 03:27:19 +00:00
dirent.h * libc/include/dirent.h: Protect against multiple inclusion. 2001-11-30 17:26:47 +00:00
envlock.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
envz.h * libc/argz: New directory. 2002-06-14 20:51:09 +00:00
errno.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
fastmath.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
fcntl.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
fnmatch.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
getopt.h * newlib/libc/include/getopt.h (struct option): name field should be 2013-11-13 09:09:45 +00:00
glob.h 2013-11-21 Julio Gutierrez <jgutleyva@gmail.com> 2013-11-21 17:04:57 +00:00
grp.h * libc/include/pwd.h: Include <sys/cdefs.h>. 2014-02-09 20:02:17 +00:00
iconv.h 2013-11-20 Daniel Ramirez <javamonn@gmail.com> 2013-11-20 13:39:36 +00:00
ieeefp.h 2007-04-26 Patrick Mansfield <patmans@us.ibm.com> 2007-04-26 19:23:37 +00:00
inttypes.h 2014-12-03 Jeff Johnston <jjohnstn@redhat.com> 2014-12-03 20:25:09 +00:00
langinfo.h * libc/include/langinfo.h: Fix #endif positioning. 2010-04-30 14:58:28 +00:00
libgen.h 2005-04-08 Jeff Johnston <jjohnstn@redhat.com> 2005-04-08 20:48:40 +00:00
limits.h 2013-12-22 JF Bastien <jfb@chromium.org> 2013-12-23 19:21:07 +00:00
locale.h * libc/include/locale.h (NULL): Fetch definition via stddef.h. 2012-11-01 11:51:12 +00:00
malloc.h * libc/include/malloc.h (struct mallinfo): Convert type of all members 2013-02-26 14:25:13 +00:00
math.h 2014-12-15 Jonathan Roelofs <jonathan@codesourcery.com> 2014-12-15 20:50:23 +00:00
newlib.h 2002-08-28 Jeff Johnston <jjohnstn@redhat.com> 2002-08-28 23:42:53 +00:00
paths.h 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-10-15 17:34:23 +00:00
pthread.h 2013-11-29 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-11-29 23:35:34 +00:00
pwd.h * libc/include/pwd.h: Include <sys/cdefs.h>. 2014-02-09 20:02:17 +00:00
reent.h Port newlib to x86_64-pc-cygwin. 2013-04-23 09:42:25 +00:00
regdef.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
regex.h 2013-11-20 Chirayu Desai <chirayudesai1@gmail.com> 2013-11-20 16:25:50 +00:00
sched.h 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com> 2010-04-01 18:33:37 +00:00
search.h 2013-11-20 Daniel Ramirez <javamonn@gmail.com> 2013-11-20 18:22:27 +00:00
setjmp.h * libc/include/setjmp.h (longjmp): Fix copy/paste error. 2014-01-20 17:23:41 +00:00
signal.h * libc/include/signal.h (psignal): Declare. 2011-05-04 11:26:22 +00:00
spawn.h * libc/include/spawn.h (posix_spawn_file_actions_destroy): Fix typo 2013-11-25 17:23:30 +00:00
stdatomic.h 2013-09-12 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-09-12 22:05:43 +00:00
stdint.h 2014-10-09 Sebastian Huber <sebastian.huber@embedded-brains.de> 2014-10-09 15:57:50 +00:00
stdio.h Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
stdio_ext.h * libc/include/stdio.h (__SNLK): Define. 2014-12-15 18:22:56 +00:00
stdlib.h * libc/include/stdlib.h (__itoa): Declare prototype. 2014-12-16 10:55:17 +00:00
string.h 2014-10-29 Jon Turney <jon.turney@dronecode.org.uk> 2014-10-30 11:25:17 +00:00
strings.h * libc/include/strings.h: Don't include locale.h. 2010-12-08 10:28:40 +00:00
tar.h 2007-08-03 Ralf Corsepius <ralf.corsepius@rtems.org> 2007-08-03 21:03:40 +00:00
termios.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
tgmath.h * libc/include/sys/features.h (__GNUC_PREREQ): Define. Use 2012-10-16 18:45:24 +00:00
time.h * libc/include/time.h (__TM_GMTOFF): Remove Cygwin-specific definition. 2014-03-05 12:49:40 +00:00
unctrl.h * libc/include/sys/config.h: define __IMPORT appropriately 2000-08-01 20:51:51 +00:00
unistd.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
utime.h 2002-07-04 Jeff Johnston <jjohnstn@redhat.com> 2002-07-04 22:51:08 +00:00
utmp.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
wchar.h Implement BSD/GNU unlocked stdio extensions. 2014-12-18 14:55:21 +00:00
wctype.h 2002-11-06 Kazuhiro Fujieda <fujieda@jaist.ac.jp> 2002-11-07 00:44:31 +00:00
wordexp.h 2013-11-23 Bryan Dunsmore <dunsmoreb@gmail.com> 2013-11-23 22:39:34 +00:00