acadia-newlib/newlib/libc/include
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
..
machine 2007-04-26 Patrick Mansfield <patmans@us.ibm.com> 2007-04-26 19:23:37 +00:00
sys Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
_ansi.h 2002-08-27 Jeff Johnston <jjohnstn@redhat.com> 2002-08-27 20:27:35 +00:00
_syslist.h 2005-08-22 Shaun Jackman <sjackman@gmail.com> 2005-08-22 21:13:35 +00:00
alloca.h 2006-12-13 Joel Schopp <jschopp@austin.ibm.com> 2006-12-13 23:01:21 +00:00
ar.h
argz.h * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len 2007-05-23 16:36:23 +00:00
assert.h
ctype.h 2005-03-18 Hans-Peter Nilsson <hp@axis.com> 2005-03-18 17:18:59 +00:00
dirent.h
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
fcntl.h
getopt.h 2006-01-04 Gregory Pietsch <gpietsch@comcast.net> 2006-01-04 21:21:52 +00:00
grp.h * libc/include/grp.h: Declare getgrnam_r and getgrgid_r also on Cygwin. 2004-05-17 16:06:14 +00:00
iconv.h 2004-06-25 Artem B. Bityuckiy <dedekind@oktetlabs.ru> 2004-06-25 20:33:28 +00:00
ieeefp.h 2007-04-26 Patrick Mansfield <patmans@us.ibm.com> 2007-04-26 19:23:37 +00:00
inttypes.h 2005-12-16 Ralf Corsepius <ralf.corsepius@rtems.org> 2005-12-16 19:03:12 +00:00
langinfo.h * libc/include/langinfo.h: New file. 2002-08-23 01:56:05 +00:00
libgen.h 2005-04-08 Jeff Johnston <jjohnstn@redhat.com> 2005-04-08 20:48:40 +00:00
limits.h * libc/include/limits.h (NL_ARGMAX): Define a default value. 2007-04-24 16:01:15 +00:00
locale.h 2002-06-27 Benjamin Kosnik <bkoz@redhat.com> 2002-06-27 23:58:38 +00:00
malloc.h * libc/include/malloc.h: On cygwin, define malloc _r functions as wrapper 2002-08-26 04:33:46 +00:00
math.h 2007-05-17 Yaakov Selkowitz <yselkowitz <at> users.sourceforge.net> 2007-05-17 18:50:57 +00:00
newlib.h 2002-08-28 Jeff Johnston <jjohnstn@redhat.com> 2002-08-28 23:42:53 +00:00
paths.h
process.h * libc/include/process.h: Remove cygwin-only sexec* declarations. Fix spawnve 2002-06-11 02:26:43 +00:00
pthread.h 2006-09-13 Joel Sherrill <joel@oarcorp.com> 2006-09-13 22:09:27 +00:00
pwd.h * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid 2005-02-08 20:55:18 +00:00
reent.h 2003-08-27 Corinna Vinschen <corinna@vinschen.de> 2003-08-27 16:24:57 +00:00
regdef.h
search.h * Makefile.am (LIB_OBJECTLISTS): Add 2002-06-20 19:51:40 +00:00
setjmp.h 2002-06-27 Benjamin Kosnik <bkoz@redhat.com> 2002-06-27 23:58:38 +00:00
signal.h 2002-07-24 Jeff Johnston <jjohnstn@redhat.com> 2002-07-24 18:18:07 +00:00
stdint.h 2006-08-16 Joel Schopp <jschopp@austin.ibm.com> 2006-08-16 21:39:43 +00:00
stdio.h Implement funopen, fopencookie. 2007-06-04 18:10:17 +00:00
stdlib.h * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific file. 2005-12-05 22:15:21 +00:00
string.h * libc/include/string.h: Add cygwin-specific function declaration. 2005-11-08 22:10:33 +00:00
termios.h
time.h * include/time.h: Remove more cygwin-specific stuff. 2005-11-18 15:57:24 +00:00
unctrl.h
unistd.h
utime.h 2002-07-04 Jeff Johnston <jjohnstn@redhat.com> 2002-07-04 22:51:08 +00:00
utmp.h
wchar.h 2003-12-05 Jeff Johnston <jjohnstn@redhat.com> 2003-12-05 20:51:57 +00:00
wctype.h 2002-11-06 Kazuhiro Fujieda <fujieda@jaist.ac.jp> 2002-11-07 00:44:31 +00:00