/[avr-libc]
ViewVC logotype

Revision 2427


Jump to revision: Previous Next
Author: amylaar
Date: Thu May 1 14:06:03 2014 UTC (9 years, 6 months ago)
Changed paths: 18
Log Message:
libstdc++-v3 support:
        * configure.ac (AC_CONFIG_FILES): Add include/sys/Makefile.
        * include/Makefile.am (avr_HEADERS): Add fcntl.h, locale.h, unistd.h.
        (SUBDIRS): Add sys.
        * include/errno.h: Add definitions for error codes required to compile
        libstdc++-v3.
        * include/locale.h, include/unistd.h, include/fcntl.h: New files.
        * include/stdio.h (FILE): Change to a typedef.
        (BUFSIZ, _IONBF): Define.
        (fpos_t): Typedef.
        (fgetpos, fopen, freopen, fdopen, fseek, fsetpos, ftell): Prototype.
        (ftell, fileno, perror, remote, rename, rewind, setbuf): Likewise.
        (setvbuf, tmpfile, tmpnam): Likewise.
        * include/stdlib.h (atexit, system, getenv): Prototype.
        * include/string.h (strcoll, strerror, strxfrm): Prototype.
        * include/sys: New directory.
        * include/time.h (_CLOCKS_PER_SEC_): Declare.
        (CLOCKS_PER_SEC): Define.
        (clock): Declare.
        * libc/stdlib/Files.am (stdlib_a_c_sources): Add atexit.c, getenv.c,
        system.c
        * libc/stdlib/atexit.c: New file.
        * libc/stdlib/getenv.c, * libc/stdlib/system.c: New stub files.

This provides a bit of functionality, but mostly stubs, for hosted features
that we've been missing.  The alternative would be to make avr an outright
unhosted target, but that'd make it harder to test, and would also stop
using some applications that depend on minimal hosted features.

Changed paths:

Path Details
Directorytrunk/avr-libc/ChangeLog modified , text changed
Directorytrunk/avr-libc/configure.ac modified , text changed
Directorytrunk/avr-libc/include/Makefile.am modified , text changed
Directorytrunk/avr-libc/include/errno.h modified , text changed
Directorytrunk/avr-libc/include/fcntl.h added
Directorytrunk/avr-libc/include/locale.h added
Directorytrunk/avr-libc/include/stdio.h modified , text changed
Directorytrunk/avr-libc/include/stdlib.h modified , text changed
Directorytrunk/avr-libc/include/string.h modified , text changed
Directorytrunk/avr-libc/include/sys/ added
Directorytrunk/avr-libc/include/sys/Makefile.am added
Directorytrunk/avr-libc/include/sys/types.h added
Directorytrunk/avr-libc/include/time.h modified , text changed
Directorytrunk/avr-libc/include/unistd.h added
Directorytrunk/avr-libc/libc/stdlib/Files.am modified , text changed
Directorytrunk/avr-libc/libc/stdlib/atexit.c added
Directorytrunk/avr-libc/libc/stdlib/getenv.c added
Directorytrunk/avr-libc/libc/stdlib/system.c added

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.5