summaryrefslogtreecommitdiffstats
path: root/newlib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 2013-04-29 Freddie Chopin <freddie_chopin@op.pl>Jeff Johnston2013-04-291-2/+2
| | | | | | * libc/libc.texinfo: Fix @ references and change ifinfo to be ifnottexinfo. * libm/libm.texinfo: Ditto.
* 2013-04-25 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-04-252-0/+14
| | | | | * libc/stdio/local.h (_STDIO_CLOSE_PER_REENT_STD_STREAMS): New define. * libc/stdio/findfp.c (_STDIO_CLOSE_PER_REENT_STD_STREAMS): Use define.
* * libc/stdlib/strtod.c: Manual update to latest algorithm from NetBSD.Corinna Vinschen2013-04-241-38/+117
|
* Port newlib to x86_64-pc-cygwin.Corinna Vinschen2013-04-235-19/+43
| | | | | | | | | | | * libc/include/sys/features.h: Redefine compilation environment definitions for Cygwin to cover 64 bit Cygwin. * libc/ctype/ctype_.c (_ctype_): Fix definition for 64 bit Cygwin. * libc/include/machine/setjmp.h: Change definition of _JBLEN to allow different values for 32 bit and 64 bit Cygwin. * libc/include/reent.h (stat64): Define as stat under Cygwin, instead of as __stat64. Undef stat64 if not building Newlib. * libc/include/sys/stat.h (stat64): Define as stat under Cygwin.
* * libc/include/sys/cdefs.h: Align with latest FreeBSD file header.Corinna Vinschen2013-04-222-48/+533
| | | | * libc/include/sys/features.h (__GNUC_PREREQ__): Define.
* * newlib/libc/search/hash.c: Revert patch from 2012-08-08.Corinna Vinschen2013-04-191-3/+3
|
* * libc/sys/rtems/sys/queue.h: Delete file.Corinna Vinschen2013-04-163-571/+285
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/sys/cdefs.h (__containerof): New define. (__DEQUALIFY): Likewise. * libc/include/sys/queue.h (TRACEBUF_INITIALIZER): Likewise. (TRACEBUF): Likewise. (LIST_FOREACH_SAFE): Likewise. (LIST_PREV): Likewise. (LIST_SWAP): Likewise. (QMD_LIST_CHECK_HEAD): Likewise. (QMD_LIST_CHECK_NEXT): Likewise. (QMD_LIST_CHECK_PREV): Likewise. (QMD_SAVELINK): Likewise. (QMD_TAILQ_CHECK_HEAD): Likewise. (QMD_TAILQ_CHECK_NEXT): Likewise. (QMD_TAILQ_CHECK_PREV): Likewise. (QMD_TAILQ_CHECK_TAIL): Likewise. (QMD_TRACE_ELEM): Likewise. (QMD_TRACE_HEAD): Likewise. (SLIST_FOREACH_PREVPTR): Likewise. (SLIST_FOREACH_SAFE): Likewise. (SLIST_REMOVE_AFTER): Likewise. (SLIST_SWAP): Likewise. (STAILQ_FOREACH_SAFE): Likewise. (STAILQ_REMOVE_AFTER): Likewise. (STAILQ_SWAP): Likewise. (TAILQ_FOREACH_REVERSE_SAFE): Likewise. (TAILQ_FOREACH_SAFE): Likewise. (TAILQ_SWAP): Likewise. (TRASHIT): Likewise. (SLIST_REMOVE): Use SLIST_REMOVE_AFTER(). (STAILQ_LAST): Use __containerof(). (STAILQ_REMOVE): Use STAILQ_REMOVE_AFTER().
* 2013-04-12 Will Newton <will.newton@linaro.org>Jeff Johnston2013-04-122-402/+604
| | | | | | | * libc/machine/arm/memcpy-stub.c: Use generic memcpy if unaligned access is not enabled. * libc/machine/arm/memcpy.S: Faster memcpy implementation for Cortex A15 cores using NEON and VFP if available.
* * acconfig.h (_WCHAR_ORIENT): UndefCorinna Vinschen2013-04-126-133/+227
| | | | | | | | | | | | | | * newlib.hin (_WCHAR_ORIENT): Undef * configure.in (--enable-newlib-wchar-orient): New option. * configure: Regenerated. * libc/configure.in (--enable-newlib-wchar-orient): New option. * libc/configure: Regenerated. * libc/stdio/Makefile.am (NEWLIB_WIDE_ORIENT): Use. * libc/stdio/Makefile.in: Regenerated. * libc/stdio/local.h (ORIENT): Use _WCHAR_ORIENT to control the definition. Add alternative definition. * libc/stdio/vfprintf.c (__sfputs_r, __sprint_r): Use _WCHAR_ORIENT to control the wide char output.
* Revert to original patchCorinna Vinschen2013-04-111-4/+4
|
* * libc/include/stdlib.h (strtof, strtoll, strtoull, strtold): AlsoCorinna Vinschen2013-04-111-4/+4
| | | | prototype if C++11 or later.
* 2013-04-10 Bin Cheng <bin.cheng@arm.com>Jeff Johnston2013-04-104-0/+14
| | | | | | | | | | | | * acconfig.h (_FSEEK_OPTIMIZATION): Undef * newlib.hin (_FSEEK_OPTIMIZATION): Undef * configure.in (--disable-newlib-fseek-optimization): New option. * configure: Regenerated. * libc/stdio/fflush.c (__sflush_r): Use _FSEEK_OPTIMIZATION to control fseek optimization. * libc/stdio/fseeko.c (_fseeko_r): Ditto. * libc/stdio/makebuf.c (__smakebuf_r): Ditto. * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
* * libc/stdio/vfieeefp.h (ldieee): Fix typo.Matthew Gretton-Dann2013-04-081-1/+1
|
* * libc/posix/scandir.c (DIRSIZ): Use offsetof instead of magicCorinna Vinschen2013-04-021-2/+3
| | | | number.
* * acconfig.h (_FVWRITE_IN_STREAMIO): Undefine.Corinna Vinschen2013-03-276-10/+293
| | | | | | | | | | | | | | | | * newlib.hin (_FVWRITE_IN_STREAMIO): Undefine. * configure.in (--disable-newlib-fvwrite-in-streamio): New option. * configure: Regenerated. * libc/stdio/fputs.c (_fputs_r): Use _FVWRITE_IN_STREAMIO to control __sfvwrite_r. Add alternative implementation. * libc/stdio/fputws.c (_fputws_r): Ditto. * libc/stdio/fwrite.c (_fwrite_r): Ditto. * libc/stdio/puts.c (_puts_r): Ditto. * libc/stdio/vfprintf.c (__ssputs_r, __sfputs_r): New function. (_VFPRINTF_R): Use _FVWRITE_IN_STREAMIO to control vector buffer. (__SPRINT): Use _FVWRITE_IN_STREAMIO to control macro definition. * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Use _FVWRITE_IN_STREAMIO to control vector buffer.
* 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-03-264-12/+17
| | | | | | | | | * libc/stdio/local.h (_STDIO_WITH_THREAD_CANCELLATION_SUPPORT): New define. * libc/stdio/fclose.c: Use _STDIO_WITH_THREAD_CANCELLATION_SUPPORT. * libc/stdio/freopen.c: Likewise. * libc/stdio64/freopen64.c: Likewise.
* * newlib/libc/stdio/findfp.c (glue_with_file): New.Corinna Vinschen2013-03-151-9/+13
| | | | (__sfmoreglue): Use glue_with_file to avoid alignment problems.
* * libc/include/machine/setjmp.h (sigjmp_buf): Fix definition ofCorinna Vinschen2013-02-281-1/+2
| | | | sigjmp_buf size if _JBTYPE is defined.
* * libc/include/malloc.h (struct mallinfo): Convert type of all membersCorinna Vinschen2013-02-261-10/+10
| | | | to size_t to match all targets.
* * libc/include/sys/_types.h (_ssize_t): Define as signed equivalent ofCorinna Vinschen2013-02-211-0/+9
| | | | size_t with GCC.
* * libc/machine/mips/memcpy.S: Fix USE_PREFETCH check.Corinna Vinschen2013-02-191-2/+5
|
* * crt0.S: Add recognition of the e3v5 architecture variant.Nick Clifton2013-02-011-2/+2
|
* 2013-01-22 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2013-01-221-1/+8
| | | | | * libc/include/pthread.h: Add PTHREAD_RWLOCK_INITIALIZER. Fix typo on PTHREAD_COJND_INITIALIZER.
* 2013-01-17 Marcus Shawcroft <marcus.shawcroft@linaro.org>Marcus Shawcroft2013-01-171-12/+19
| | | | | | * libc/machine/aarch64/strncmp.S: Correct arithmetic for argument N values close to the maximum representable value in an unsigned 64 bit value.
* 2013-01-17 Marcus Shawcroft <marcus.shawcroft@linaro.org>Marcus Shawcroft2013-01-171-11/+28
| | | | | | * libc/machine/aarch64/strnlen.S: Correct arithmetic for argument N values close to the maximum representable value in an unsigned 64 bit value.
* * libc/sys/sysnecv850/crt0.S (_start): Enable FPU for theNick Clifton2013-01-151-0/+12
| | | | | V850e2v3. * v850/crt0.S (_start): Enable FPU for the V850e2v3.
* * libc/include/string.h: Fix preprocessor expressions usingCorinna Vinschen2013-01-121-2/+2
| | | | _XOPEN_SOURCE.
* * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Add code to correctly handleCorinna Vinschen2013-01-111-8/+30
| | | | | 's' format specifier on not _MB_CAPABLE targets. Fix a formatting glitch in _MB_CAPABLE enabled code. Add a missing 'L' specifier.
* 2013-01-10 Marcus Shawcroft <marcus.shawcroft@linaro.org>Marcus Shawcroft2013-01-104-5/+218
| | | | | | | | * libc/machine/aarch64/Makefile.am (lib_a_SOURCES): Add memcmp-stub.c and memcmp.S * libc/machine/aarch64/Makefile.in: Regenerated. * libc/machine/aarch64/memcmp-stub.c: New file. * libc/machine/aarch64/memcmp.S: New file.
* 2013-01-10 Marcus Shawcroft <marcus.shawcroft@linaro.org>Marcus Shawcroft2013-01-104-2/+219
| | | | | | | | * libc/machine/aarch64/Makefile.am (lib_a_SOURCES): Add strnlen-stub.c and strnlen.S * libc/machine/aarch64/Makefile.in: Regenerated. * libc/machine/aarch64/strnlen-stub.c: New file. * libc/machine/aarch64/strnlen.S: New file.
* 2013-01-10 Marcus Shawcroft <marcus.shawcroft@linaro.org>Marcus Shawcroft2013-01-104-2/+184
| | | | | | | | * libc/machine/aarch64/Makefile.am (lib_a_SOURCES): Add strlen.S and strlen-stub.c. * libc/machine/aarch64/Makefile.in: Regenerated. * libc/machine/aarch64/strlen-stub.c: New file. * libc/machine/aarch64/strlen.S: New file.
* 2013-01-10 Marcus Shawcroft <marcus.shawcroft@linaro.org>Marcus Shawcroft2013-01-104-2/+378
| | | | | | | | * libc/machine/aarch64/Makefile.am (lib_a_SOURCES): Add memmove.S and memmove-stub.c. * libc/machine/aarch64/Makefile.in: Regenerated. * libc/machine/aarch64/memmove-stub.c: New file. * libc/machine/aarch64/memmove.S: New file.
* 2013-01-10 Marcus Shawcroft <marcus.shawcroft@linaro.org>Marcus Shawcroft2013-01-104-9/+276
| | | | | | | | * libc/machine/aarch64/Makefile.am (lib_a_SOURCES): Re-ordered. Add strncmp.S and strncmp-stub.c. * libc/machine/aarch64/Makefile.in: Regenerated. * libc/machine/aarch64/strncmp-stub.c: New file. * libc/machine/aarch64/strncmp.S: New file.
* 2013-01-10 Marcus Shawcroft <marcus.shawcroft@linaro.org>Marcus Shawcroft2013-01-108-4/+764
| | | | | | | | | | | | | * libc/machine/aarch64/Makefile.am (lib_a_SOURCES): Add memcpy.c memcpy-stub.c memset.S memset-stub.c strcmp.S strcmp-stub.c. * libc/machine/aarch64/Makefile.in: Regenerated. * libc/machine/aarch64/memcpy-stub.c: New file. * libc/machine/aarch64/memcpy.S: New file. * libc/machine/aarch64/memset-stub.c: New file. * libc/machine/aarch64/memset.S: New file. * libc/machine/aarch64/strcmp.S: New file. * libc/machine/aarch64/strcmp-stub.c: New file.
* 2013-01-07 Steve Ellcey <sellcey@mips.com>Jeff Johnston2013-01-071-2/+2
| | | | * libc/machine/mips/memcpy.S (memcpy): Check if _MIPS_SIM is set.
* 2012-12-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2012-12-20271-4453/+9383
| | | | | | | | | | | | | | | | | | * NEWS: Update with 2.0.0 info. * README: Ditto. * acinclude.m4: Change version number to 2.0.0. * aclocal.m4: Regenerated. * configure: Ditto. * Makefile.in: Regenerated. * doc/aclocal.m4: Ditto. * doc/configure: Ditto. * libc/*/aclocal.m4: Ditto. * libc/*/configure: Ditto. * libc/libc.texinfo: Ditto. * libm/*/aclocal.m4: Ditto. * libm/*/configure: Ditto. * libm/libm.texinfo: Ditto. * libc/sys/linux/shared.ld: Add VERS_2.0
* * libc/stdlib/strtod.c (_strtod_r): Revert change from 2011-05-16.Corinna Vinschen2012-12-191-10/+8
|
* 2012-12-18 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2012-12-181-3/+0
| | | | * libc/include/math.h: Remove the log2f macro.
* 2012-12-18 Craig Howland <howland@LGSInnovations.com>Jeff Johnston2012-12-181-4/+30
| | | | | * libc/include/math.h: Add recognition of values 1 and 2 for FLT_EVAL_METHOD.
* * libc/stdio/puts.c (_puts_r): Fix typo in previous patch. Add localCorinna Vinschen2012-12-181-5/+6
| | | | variable fp for better readability.
* 2012-12-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2012-12-171-2/+8
| | | | | * libc/stdio/puts.c: Add fp locking and use _stdout_r macro to refer to the stream rather than stdout.
* 2012-12-14 Yufeng Zhang <yufeng.zhang@arm.com>Jeff Johnston2012-12-141-0/+37
| | | | | * libc/machine/aarch64/machine/_types.h: New file; define _ssize_t as long.
* 2012-12-11 Steve Ellcey <sellcey@mips.com>Jeff Johnston2012-12-115-212/+784
| | | | | | | | * libc/machine/mips/memcpy.c: Remove. * libc/machine/mips/memcpy.S: New. * libc/machine/mips/Makefile.am (lib_a_CCASFLAGS): Add -D_COMPILING_NEWLIB. (lib_a_CFLAGS): Ditto.
* * libc/machine/arm/strcmp.S (compute_return_value): Fix return value.Corinna Vinschen2012-11-301-1/+11
| | | | * testsuite/newlib.string/strcmp-1.c (main): Add new test cases.
* * libc/include/sys/reent.h (__sFILE): Change type of _offsetCorinna Vinschen2012-11-295-332/+491
| | | | | | | | | | from int to _off_t. * libc/stdio/ftell.c: Use _ftello_r(). * libc/stdio/ftello.c: Copy implementation from previous _ftell_r(). * libc/stdio/fseek.c: Use _fseeko_r(). * libc/stdio/fseeko.c: Copy implementation from previous _fseek_r().
* * libc/include/inttypes.h: Add and use __INTTYPES_EXP().Corinna Vinschen2012-11-261-2/+12
|
* 2012-11-12 Steve Ellcey <sellcey@mips.com>Steve Ellcey2012-11-122-9/+435
| | | | | | * libc/machine/mips/machine/asm.h: New. * libc/machine/mips/machine/regdef.h: Update register definitions for different ABI's.
* * libc/include/sys/time.h: Avoid guarding other than timeval declaration withChristopher Faylor2012-11-121-20/+19
| | | | _TIMEVAL_DEFINED. Move timeval related macros under _TIMEVAL_DEFINED control.
* * libc/include/locale.h (NULL): Fetch definition via stddef.h.Corinna Vinschen2012-11-017-27/+12
| | | | | | | | | * libc/include/stdio.h (NULL): Ditto. * libc/include/stdlib.h (NULL): Ditto. * libc/include/string.h (NULL): Ditto. * libc/include/wchar.h (NULL): Ditto. * libc/include/rpc/types.h (NULL): Ditto. * libc/include/time.h (NULL): Ditto. Include stddef.h earlier.
* Minor optimization and bug fix for moxie.Anthony Green2012-10-271-1/+1
|