summaryrefslogtreecommitdiffstats
path: root/newlib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 2014-09-12 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-09-122-0/+91
| | | | | * libc/time/month_lengths.c: Actually add file this time. * libc/time/tzcalc_limits.c: Ditto.
* 2014-09-11 Freddie Chopin <freddie_chopin@op.pl>Jeff Johnston2014-09-116-294/+228
| | | | | | | | | | | | | | | | | | * libc/time/month_lengths.c: New file with __month_lengths array (previously mon_lengths array in mktm_r.c) * libc/time/tzcalc_limits.c: New file with __tzcalc_limits() from mktm_r.c * libc/time/lcltime_r.c (localtime_r): Simplify by changing call to _mktm_r() with call to gmtime_r() and code moved from _mktm_r() which was used to do time zone adjustments * libc/time/gmtime_r.c (gmtime_r): Simplify by moving all relevant code from _mktm_r(), breaking all dependencies on time zone related functions * libc/time/mktm_r.c: Delete file * libc/time/local.h: Update accordingly - remove declaration of _mktm_r(), add declaration of __month_lengths[] * libc/time/Makefile.am: Modify accordingly. * libc/time/Makefile.in: Regenerate.
* 2014-09-08 Freddie Chopin <freddie_chopin@op.pl>Jeff Johnston2014-09-082-7/+7
| | | | | * libc/machine/arm/Makefile.am: Fix typo. * libc/machine/arm/Makefile.in: Regenerated.
* 2014-09-05 Hale Wang <hale.wang@arm.com>Jeff Johnston2014-09-0510-123/+551
| | | | | | | | | | | | | * libc/machine/arm/memchr.S: Clean up the wrapper. * libc/machine/arm/memcpy.S: Likewise. * libc/machine/arm/memchr-stub.c: Delete this redundant file. * libc/machine/arm/memcpy-stub.c: Likewise. * libc/machine/arm/strcmp.S: Add speed-preferred wrapper. * libc/machine/arm/strlen.S: Likewise. * libc/machine/arm/Makefile.am: Add dependencies. * libc/machine/arm/Makefile.in: Regenerated. * libc/machine/arm/configure.in: Add dependencies. * libc/machine/arm/configure: Regenerated.
* * libc/stdio/findfp.c (_cleanup_r): Call _fflush_r when configurationCorinna Vinschen2014-09-051-4/+9
| | | | option "--enable-lite-exit" is in effect. Refactor the code.
* * libc/stdio/fwalk.c (_fwalk_reent): Remove redundant test.Corinna Vinschen2014-09-051-5/+2
|
* Add missing libc/machine/arm/aeabi_memcpy.c fileCorinna Vinschen2014-09-051-0/+64
|
* * libc/time/mktm_r.c (_mktm_r): Optimize speed.Corinna Vinschen2014-09-041-16/+34
|
* Add missing libc/machine/arm/aeabi_memcpy-armv7a.S fileCorinna Vinschen2014-09-041-0/+286
|
* * libc/time/clock.c (clock): Fix warnings about signed-unsignedCorinna Vinschen2014-09-043-5/+5
| | | | | | | comparisons. * libc/time/strftime.c (strftime): Likewise. * libc/time/strptime.c (match_string): Fix warning about discarding 'restrict' qualifier from pointer target type.
* * libc/machine/arm/aeabi_memcpy.c: New file.Corinna Vinschen2014-09-042-3/+18
| | | | | | * libc/machine/arm/aeabi_memcpy-armv7a.S: New file. * libc/machine/arm/Makefile.am: Add dependencies. * libc/machine/arm/Makefile.in: Regenerated.
* * libc/include/math.h (frexpl): Remove parameter name.DJ Delorie2014-08-271-1/+1
|
* * libc/machine/aarch64/memchr.S: Add check for zero-sized buffer.Richard Earnshaw2014-08-191-0/+6
|
* * libc/include/sys/signal.h: Declare sigaltstack for RTEMS only.Corinna Vinschen2014-08-181-1/+2
|
* 2014-08-18 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-08-181-0/+4
| | | | | * libc/include/sys/config.h[__m68k__]: Set _READ_WRITE_RETURN_TYPE to _ssize_t to match underlying code in libgloss.
* 2014-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2014-08-181-34/+51
| | | | * libc/include/string.h: Improve language and OS standard guards.
* 2014-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2014-08-181-3/+39
| | | | * libc/include/sys/signal.h: Add sigaltstack() support.
* * libc/stdio/findfp.c (std): Don't inline when optimizing for code size.Corinna Vinschen2014-08-141-0/+4
|
* * libc/include/math.h: Also define M_PI etc. if _XOPEN_SOURCE isJon TURNEY2014-08-041-3/+12
| | | | defined appropriately.
* headers: properly decorate attributesEric Blake2014-08-0117-64/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Found by: find -name '*.h' |xargs grep -i 'attribute.*(([a-z]' For an example of the type of bugs this causes, try compiling this valid C11 program (it's valid because 'noreturn' is reserved for use in the user namespace unless you include <stdnoreturn.h>): $ cat foo.c #define noreturn __attribute__((noreturn)) #include <stdlib.h> $ gcc -c -o foo.o -Wall foo.c In file included from /usr/include/stdlib.h:11:0, from foo.c:2: foo.c:1:18: error: expected ')' before '__attribute__' #define noreturn __attribute__((noreturn)) ^ /usr/include/stdlib.h:66:28: error: expected ',' or ';' before ')' token _VOID _EXFUN(abort,(_VOID) _ATTRIBUTE ((noreturn))); ^ * libc/machine/spu/spu_timer_internal.h: Decorate attribute names with __, for namespace safety. * libc/machine/xscale/machine/profile.h: Likewise. * libc/include/stdlib.h: Likewise. * libc/include/_ansi.h: Likewise. * libc/include/sys/unistd.h: Likewise. * libc/sys/linux/linuxthreads/libc-symbols.h: Likewise. * libc/sys/linux/linuxthreads/internals.h: Likewise. * libc/sys/linux/machine/i386/weakalias.h: Likewise. * libc/sys/linux/machine/i386/dl-procinfo.h: Likewise. * libc/sys/linux/machine/i386/dl-machine.h: Likewise. * libc/sys/linux/libc-symbols.h: Likewise. * libc/sys/linux/iconv/gconv_charset.h: Likewise. * libc/sys/linux/include/resolv.h: Likewise. * libc/sys/linux/sys/unistd.h: Likewise. * libc/sys/linux/dl/atomicity.h: Likewise. * libc/sys/linux/dl/dynamic-link.h: Likewise. * libc/sys/linux/dl/ldsodefs.h: Likewise.
* * libc/string/strerror.c: Fix documentation so makedoc doesn'tCorinna Vinschen2014-07-301-1/+1
| | | | stumble over a sole EAGAIN.
* 2014-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2014-07-221-0/+3
| | | | | * libc/include/sys/time.h: Add prototype for adjtime() and wrap it and settimeofday() prototype with __BSD_VISIBLE.
* * configure.host: Remove or16 and or32 targets and add or1k.Corinna Vinschen2014-07-1710-3/+6632
| | | | | | | | * libc/include/machine/ieeefp.h: Replace or32 with or1k. * libc/machine/configure.in: Add or1k subdirectory. * libc/machine/or1k/configure.in: New file. * libc/machine/or1k/Makefile.am: New file. * libc/machine/or1k/setjmp.S: New file.
* * libc/include/sys/errno.h: Fix comments.Corinna Vinschen2014-07-142-36/+93
| | | | | | * libc/string/strerror.c: Fix documentation. (_strerror_r): Handle ENETRESET, EILSEQ, ENODATA, ECONNRESET, EADDRNOTAVAIL, EOVERFLOW. Fix strings for EMFILE and EDOM.
* [aarch64] Add memchr.Richard Earnshaw2014-07-114-6/+222
| | | | | | | | | 2014-07-11 K�vin Petit <kevin.petit@arm.com> * libc/machine/aarch64/memchr.S: New file. * libc/machine/aarch64/memchr-stub.c: New file. * libc/machine/aarch64/Makefile.am: Add the new files. * libc/machine/aarch64/Makefile.in: Regenerated.
* 2014-07-07 Pavel Pisa <pisa@cmp.felk.cvut.cz>Richard Earnshaw2014-07-071-1/+3
| | | | | | Richard Earnshaw <rearnsha@arm.com> * libc/machine/arm/memchr.S (.arch): Require revision ARMv6t2.
* 2014-07-04 Bin Cheng <bin.cheng@arm.com>Jeff Johnston2014-07-0430-221/+3424
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * README (--enable-newlib-nano-formatted-io): Describe. * acconfig.h (_NANO_FORMATTED_IO): Undef. * newlib.hin (_NANO_FORMATTED_IO): Undef. * configure.in (--enable-newlib-nano-formatted-io): New option. * configure: Regenerated. * libc/configure.in (--enable-newlib-nano-formatted-io): New option. * libc/configure: Regenerated. * libc/stdio/Makefile.am (NEWLIB_NANO_FORMATTED_IO): Support new configuration option. * libc/stdio/Makefile.in: Regenerated. * libc/stdio/asnprintf.c (_asniprintf_r, asniprintf): Use _NANO_FORMATTED_IO to declare alias prototypes. * libc/stdio/asprintf.c (_asiprintf_r, asiprintf): Ditto. * libc/stdio/dprintf.c (_diprintf_r, diprintf): Ditto. * libc/stdio/fprintf.c (_fiprintf_r, fiprintf): Ditto. * libc/stdio/fscanf.c (fiscanf, _fiscanf_r): Ditto. * libc/stdio/printf.c (_iprintf_r, iprintf): Ditto. * libc/stdio/scanf.c (iscanf, _iscanf_r): Ditto. * libc/stdio/snprintf.c (_sniprintf_r, sniprintf): Ditto. * libc/stdio/sprintf.c (_siprintf_r, siprintf): Ditto. * libc/stdio/sscanf.c (siscanf, _siscanf_r): Ditto. * libc/stdio/vasnprintf.c (_vasniprintf_r, vasniprintf): Ditto. * libc/stdio/vasprintf.c (vasiprintf, _vasiprintf_r): Ditto. * libc/stdio/vdprintf.c (_vdiprintf_r, vdiprintf): Ditto. * libc/stdio/vprintf.c (viprintf, _viprintf_r): Ditto. * libc/stdio/vscanf.c (viscanf, _viscanf_r): Ditto. * libc/stdio/vsnprintf.c (vsniprintf, _vsniprintf_r): Ditto. * libc/stdio/vsprintf.c (vsiprintf, _vsiprintf_r): Ditto. * libc/stdio/vsscanf.c (vsiscanf, _vsiscanf_r): Ditto. * libc/stdio/nano-vfprintf.c: New file. * libc/stdio/nano-vfprintf_float.c: New file. * libc/stdio/nano-vfprintf_i.c: New file. * libc/stdio/nano-vfprintf_local.h: New file. * libc/stdio/nano-vfscanf.c: New file. * libc/stdio/nano-vfscanf_float.c: New file. * libc/stdio/nano-vfscanf_i.c: New file. * libc/stdio/nano-vfscanf_local.h: New file.
* * libc/argz/envz_merge.c (envz_merge): Fix memory leak (Cygwin CoverityCorinna Vinschen2014-06-233-2/+4
| | | | | | | | Scan CID 60023). * libc/ctype/iswalpha.c (iswalpha): Add bounds check to avoid out-of-bounds read from utf8 tables (CID 59949). * libc/locale/ldpart.c (__part_load_locale): Add 1 byte to size of lbuf. Write NUL into the last byte to accommodate split_lines (CID 60047).
* * libc/machine/aarch64/strchrnul.S: New file.Richard Earnshaw2014-06-114-3/+199
| | | | | | * libc/machine/aarch64/strchrnul-stub.c: New file. * libc/machine/aarch64/Makefile.am: Add them to build list. * libc/machine/aarch64/Makefile.in: Regenerated.
* * libc/machine/aarch64/strchr.S: New fileRichard Earnshaw2014-06-104-3/+213
| | | | | | * libc/machine/aarch64/strchr-stub.c: New file * libc/machine/aarch64/Makefile.am: Add them to build list. * libc/machine/aarch64/Makefile.in: Regenerated.
* * configure.host (default_newlib_nano_malloc): New.DJ Delorie2014-06-102-19/+21
| | | | | | | | | | | (msp430): Set it. * configure.in (newlib_nano_malloc): Leave unset if not set by the user. * configure: Regenerate. * libc/configure.in (NEWLIB_NANO_MALLOC): Set after running configure.host. (newlib_nano_malloc): Leave unset if not set by the user. * libc/configure: Regenerate.
* * libc/machine/sparc/setjmp.S (longjmp): Use register g1 instead of g6.Corinna Vinschen2014-05-151-4/+4
|
* * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS when doubleCorinna Vinschen2014-05-141-0/+2
| | | | options is not __RL78_64BIT_DOUBLES__.
* * libc/include/stdint.h (WCHAR_MIN): Copy definition from wchar.h.Corinna Vinschen2014-05-122-2/+19
| | | | | | (WCHAR_MAX): Ditto. * libc/include/wchar.h (WCHAR_MIN): Add comment. (WCHAR_MAX): Ditto.
* * libc/include/stdio.h (tempnam): Declare as __BSD_VISIBLE orCorinna Vinschen2014-05-091-1/+3
| | | | __XSI_VISIBLE or if __POSIX_VISIBLE >= 200112.
* * libc/include/stdio.h (fcloseall): Declare as __GNU_VISIBLE only.Corinna Vinschen2014-05-091-2/+4
| | | | (renameat): Drop explicit __CYGWIN__ dependency.
* * libc/include/stdio.h: Declare various C99 printf/scanf functions forCorinna Vinschen2014-05-051-1/+1
| | | | C++11, too.
* * libc/machine/arm/strcmp-arm-tiny.S: New file.Richard Earnshaw2014-04-229-741/+1843
| | | | | | | | | | | | | * libc/machine/arm/strcmp-armv4.S: New file. * libc/machine/arm/strcmp-armv4t.S: New file. * libc/machine/arm/strcmp-armv6.S: New file. * libc/machine/arm/strcmp-armv7.S: New file. * libc/machine/arm/strcmp-armv7m.S: New file. * libc/machine/arm/strcmp.S: Replace with wrapper for various implementations. * libc/machine/arm/Makefile.am (strcmp.o, strcmp.obj): Add dependencies. * libc/machine/arm/Makefile.in: Regenerated.
* * libc/sys/rtems/sys/cpuset.h (CPU_SET_S): Add const qualifier.Corinna Vinschen2014-04-141-2/+2
| | | | (CPU_SET): Likewise.
* * libc/machine/rl78/setjmp.S: Add RL78/G10 support.DJ Delorie2014-04-091-0/+21
|
* 2014-04-04 Ashish Kapania <akapania@ti.com>Jeff Johnston2014-04-0410-3/+6436
| | | | | | | | | | | * configure.host (sys_dir, newlib_cflags): Set sys_dir to tirtos and use -D__DYNAMIC_REENT__ and -DMALLOC_PROVIDED compiler options for TIRTOS target. * libc/stdio/local.h (_STDIO_CLOSE_PER_REENT_STD_STREAMS): Change #ifdef to not define this macro when __tirtos__ is defined. * libc/sys/tirtos : Add support for TIRTOS. * libc/sys/tirtos/Makefile.am, libc/sys/tirtos/lock.c: New files. * libc/sys/tirtos/configure.in, libc/sys/tirtos/include/sys/lock.h: Ditto.
* * libc/machine/arm/acle-compat.h: New file.Richard Earnshaw2014-03-272-19/+201
| | | | * libc/machine/arm/arm_asm.h: Use it.
* 2014-03-21 Maciej W. Rozycki <macro@codesourcery.com>Jeff Johnston2014-03-212-2/+59
| | | | | | | | | | | | | | * libc/stdlib/gd_qnan.h (f_QNAN, d_QNAN0, d_QNAN1): Add MIPS versions. (ld_QNAN0, ld_QNAN1, ld_QNAN2, ld_QNAN3): Don't define for MIPS. (ldus_QNAN0, ldus_QNAN1, ldus_QNAN2, ldus_QNAN3, ldus_QNAN4): Likewise. * libc/stdlib/ldtoa.c (nan113, nan64, nan53, nan24): Add MIPS versions. (enan): Handle legacy MIPS payloads. * libm/common/s_nan.c (nan): Use __builtin_nan if supported by the compiler. * libm/common/sf_nan.c (nanf): Likewise.
* 2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>Jeff Johnston2014-03-212-0/+79
| | | | | * libc/machine/nds32/configure: Regenerated. * libc/machine/nds32/configure.in: Add AC_NOEXECUTABLES.
* 2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>Jeff Johnston2014-03-214-6/+1017
| | | | | | | | * libc/machine/nds32/Makefile.am: Use C code implemented memcpy, memset for 'ISA V3M'. * libc/machine/nds32/Makefile.in: Generated. * libc/machine/nds32/configure: Generated. * libc/machine/nds32/configure.in: Detect IS_NDS32_ISA_V3M.
* 2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>Jeff Johnston2014-03-211-11/+13
| | | | * libc/machine/nds32/setjmp.S: Keep jmp_buff sync with GDB.
* 2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>Jeff Johnston2014-03-211-5/+4
| | | | * libc/machine/nds32/setjmp.S: Optimize.
* * libc/include/stdlib.h (strtold): Define if _HAVE_LONG_DOUBLE isCorinna Vinschen2014-03-072-4/+10
| | | | | | defined. * libc/stdlib/strtold.c (strtold): Ditto. Call strtod on systems with long double == double, _strtold otherwise.
* * libc/include/time.h (__TM_GMTOFF): Remove Cygwin-specific definition.Corinna Vinschen2014-03-051-10/+0
| | | | (__TM_ZONE): Ditto.
* * libc/include/time.h (__TM_GMTOFF): Define on Cygwin.Corinna Vinschen2014-03-051-0/+16
| | | | | (__TM_ZONE): Ditto. (struct tm): Add __TM_GMTOFF and __TM_ZONE members if they are defined.