acadia-newlib/newlib/libc/include
Jeff Johnston 0751f22675 2008-12-10 Corinna Vinschen <corinna@vinschen.de>
Implement basic wide char stdio functionality, based on FreeBSD.
        * libc/include/stdio.h (__SORD): Define.
        (__SWID): Define.
        * libc/include/wchar.h: Add declarations for new wide char functions.
        (getwc): Define as macro.
        (getwchar): Ditto.
        (putwc): Ditto.
        (putwchar): Ditto.
        * libc/include/sys/reent.h (struct __sFILE): Add _mbstate member.
        (struct __sFILE64): Ditto.
        * libc/stdio/Makefile.am (ELIX_4_SOURCES): Add fgetwc.c, fgetws.c,
        fputwc.c, fputws.c, fwide.c, getwc.c, getwchar.c, putwc.c, putwchar.c
        and ungetwc.c.
        (CHEWOUT_FILES): Add fgetwc.def, fgetws.def, fputwc.def, fputws.def,
        fwide.def, getwc.def, getwchar.def, putwc.def, putwchar.def and
        ungetwc.def.
        Add header dependency rules for the new files.
        * libc/stdio/Makefile.in: Regenerate.
        * libc/stdio/fgetwc.c: New file, implementing fgetwc and _fgetwc_r.
        * libc/stdio/fgetws.c: New file, implementing fgetws and _fgetws_r.
        * libc/stdio/findfp.c (std): Initialize FILE's _mbstate member.
        (__sfmoreglue): Ditto.
        * libc/stdio/fputs.c (_fputs_r): Set stream orientation.
        * libc/stdio/fputwc.c: New file, implementing fputwc and _fputwc_r.
        * libc/stdio/fputws.c: New file, implementing fputws and _fputws_r.
        * libc/stdio/fread.c (_fread_r): Set stream orientation.
        * libc/stdio/freopen.c (_freopen_r): Reset stream orientation.  Reset
        _mbstate.
        * libc/stdio/fseek.c (_fseek_r): Reset _mbstate.
        * libc/stdio/fwide.c: New file, implementing fwide and _fwide_r.
        * libc/stdio/fwrite.c (_fwrite_r): Set stream orientation.
        * libc/stdio/getwc.c: New file, implementing getwc and _getwc_r.
        * libc/stdio/getwchar.c: New file, implementing getwchar and
        _getwchar_r.
        * libc/stdio/local.h (ORIENT): New macro.
        * libc/stdio/puts.c (_puts_r): Set stream orientation.
        * libc/stdio/putwc.c: New file, implementing putwc and _putwc_r.
        * libc/stdio/putwchar.c: New file, implementing putwchar and
        _putwchar_r.
        * libc/stdio/refill.c (__srefill_r): Set stream orientation.
        * libc/stdio/stdio.tex: Add documentation for new functions.
        * libc/stdio/ungetc.c (_ungetc_r): Set stream orientation.
        * libc/stdio/ungetwc.c: New file, implementing ungetwc and _ungetwc_r.
        * libc/stdio/vfscanf.c (__SVFSCANF_R): Set stream orientation.
        * libc/stdio/wbuf.c (__swbuf_r): Ditto.
2008-12-10 23:43:12 +00:00
..
machine * libc/include/machine/setjmp.h (_longjmp): Define as function on 2008-06-21 18:48:45 +00:00
sys 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
_ansi.h 2008-04-23 Ken Werner <ken.werner@de.ibm.com> 2008-04-23 23:10:54 +00:00
_syslist.h 2008-01-03 Jeff Johnston <jjohnstn@redhat.com> 2008-01-03 22:33:37 +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 2008-07-17 Jeff Johnston <jjohnstn@redhat.com> 2008-07-17 20:56:51 +00:00
ctype.h Fix typo and make C99 check the same as is used in math.h 2008-10-15 20:49:56 +00:00
dirent.h
envlock.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
envz.h
errno.h
fastmath.h
fcntl.h
fnmatch.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
getopt.h 2008-03-07 Jeff Johnston <jjohnstn@redhat.com> 2008-03-07 18:16:35 +00:00
glob.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
grp.h
iconv.h
ieeefp.h 2007-04-26 Patrick Mansfield <patmans@us.ibm.com> 2007-04-26 19:23:37 +00:00
inttypes.h
langinfo.h
libgen.h
limits.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
locale.h
malloc.h
math.h 2008-04-23 Ken Werner <ken.werner@de.ibm.com> 2008-04-23 23:10:54 +00:00
newlib.h
paths.h
process.h
pthread.h 2008-11-19 Ralf Corsepius <ralf.corsepius@rtems.org> 2008-11-19 17:02:34 +00:00
pwd.h
reent.h 2008-11-24 Craig Howland <howland@LGSInnovations.com> 2008-11-24 21:27:33 +00:00
regdef.h
regex.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00
sched.h 2007-09-21 Patrick Mansfield <patmans@us.ibm.com> 2007-09-21 21:02:15 +00:00
search.h
setjmp.h
signal.h
stdint.h 2008-12-10 Joseph Myers <joseph@codesourcery.com> 2008-12-10 21:27:58 +00:00
stdio.h 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
stdlib.h 2008-11-19 Jeff Johnston <jjohnstn@redhat.com> 2008-11-19 20:56:22 +00:00
string.h Per Posix, strsignal returns non-const char*. 2008-06-18 15:27:41 +00:00
tar.h 2007-08-03 Ralf Corsepius <ralf.corsepius@rtems.org> 2007-08-03 21:03:40 +00:00
termios.h
time.h 2008-10-16 Joel Sherrill <joel.sherrill@oarcorp.com> 2008-10-16 21:53:58 +00:00
unctrl.h
unistd.h
utime.h
utmp.h
wchar.h 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
wctype.h
wordexp.h 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:03:42 +00:00