newlib-cygwin/newlib/libc
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
..
argz 2008-11-27 Craig Howland <howland@LGSInnovations.com> 2008-11-27 20:45:37 +00:00
ctype 2008-10-15 Craig Howland <howland@LGSInnovations.com> 2008-10-15 20:36:26 +00:00
errno * configure: Regenerate for new libtool. 2008-09-29 15:40:48 +00:00
iconv * configure: Regenerate for new libtool. 2008-09-29 15:40:48 +00:00
include 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
locale 2008-11-24 Craig Howland <howland@LGSInnovations.com> 2008-11-24 21:27:33 +00:00
machine 2008-11-27 Ken Werner <ken.werner@de.ibm.com> 2008-11-27 20:57:46 +00:00
misc * configure: Regenerate for new libtool. 2008-09-29 15:40:48 +00:00
posix 2008-11-27 Ralf Corsepius <ralf.corsepius@rtems.org> 2008-11-27 21:01:40 +00:00
reent 2008-11-24 Craig Howland <howland@LGSInnovations.com> 2008-11-24 21:27:33 +00:00
search 2008-11-24 Jeff Johnston <jjohnstn@redhat.com> 2008-11-24 21:16:06 +00:00
signal * configure: Regenerate for new libtool. 2008-09-29 15:40:48 +00:00
stdio 2008-12-10 Corinna Vinschen <corinna@vinschen.de> 2008-12-10 23:43:12 +00:00
stdio64 * libc/include/stdio.h (__SMOD): Remove definition of unused flag. 2008-11-24 17:15:43 +00:00
stdlib 2008-11-27 Craig Howland <howland@LGSInnovations.com> 2008-11-27 20:45:37 +00:00
string 2008-10-02 Jeff Johnston <jjohnstn@redhat.com> 2008-10-02 20:12:34 +00:00
sys 2008-11-28 Jeff Johnston <jjohnstn@redhat.com> 2008-11-28 17:15:47 +00:00
syscalls * configure: Regenerate for new libtool. 2008-09-29 15:40:48 +00:00
time 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
unix 2008-11-18 Joel Sherrill <joel.sherrill@oarcorp.com> 2008-11-18 22:55:06 +00:00
Makefile.am * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
Makefile.in * configure: Regenerate for new libtool. 2008-09-29 15:40:48 +00:00
aclocal.m4 * configure: Regenerate for new libtool. 2008-09-29 15:40:48 +00:00
configure * configure: Regenerate for new libtool. 2008-09-29 15:40:48 +00:00
configure.in * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
libc.texinfo 2008-08-27 Sandra Loosemore <sandra@codesourcery.com> 2008-08-27 21:32:02 +00:00
saber import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
sys.tex 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:36:05 +00:00