summaryrefslogtreecommitdiffstats
path: root/newlib/libc
Commit message (Collapse)AuthorAgeFilesLines
* * libc/include/stdlib.h (__bsd_qsort_r): Declare.Yaakov Selkowitz2014-12-056-43/+203
| | | | | | | | | | | | | | (qsort_r): Declare. * libc/search/Makefile.am (ELIX_2_SOURCES): Rename from ELIX_SOURCES. (ELIX_4_SOURCES): Define. Add bsd_qsort_r.c and qsort_r.c. (libsearch_la_SOURCES): Adapt accordingly. (lib_a_SOURCES): Adapt accordingly. (CHEWOUT_FILES): Add qsort_r.def. * libc/search/Makefile.in: Regenerate. * libc/search/bsd_qsort_r.c: New file. * libc/search/qsort.c: Update from FreeBSD HEAD. Adapt for both BSD and GNU qsort_r flavors. * libc/search/qsort_r.c: New file.
* * libc/include/sys/signal.h [__SPU__] (kill): Declare.Corinna Vinschen2014-12-041-2/+5
|
* 2014-12-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-12-031-11/+39
| | | | | | * libc/include/inttypes.h: Only enable the 8-bit scanning macros if _WANT_IO_C99_FORMATS is defined by configuration. Add comment on why.
* * libc/include/machine/setjmp.h [__mips__]: Remove __mips_fpr == 64Corinna Vinschen2014-11-282-6/+42
| | | | | | | from the 64-bit _JBTYPE definition. * libc/machine/mips/setjmp.S: Re-work the o32 FP64 support to match the now one-and-only supported o32 FP64 ABI extension. Also support o32 FPXX.
* * libc/machine/arm/strcmp-armv6m.S: New file.Corinna Vinschen2014-11-264-50/+163
| | | | | | * libc/machine/arm/strcmp.S: Add new wrapper. * libc/machine/arm/Makefile.am: Add dependencies. * libc/machine/arm/Makefile.in: Regenerated.
* * libc/include/sys/_default_fcntl.h: Move all Cygwin-specific openCorinna Vinschen2014-11-251-16/+12
| | | | | flags from Cygwin's fcntl.h here. Remove check for WIN32. Remove Windows-specific macros.
* 2014-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2014-11-241-0/+2
| | | | | * libc/include/sys/resource.h: Add prototype for getrusage() to <sys/resource.h>
* * libc/stdio/nano-vfprintf_i.c (_printf_i): Use LONGINT when void* isCorinna Vinschen2014-11-201-1/+3
| | | | larger than an int.
* * libc/sys/rtems/sys/syslimits.h (NGROUPS_MAX): Adjust value soCorinna Vinschen2014-11-201-1/+1
| | | | that NGROUPS is even.
* * libc/stdlib/strtod.c (sulp): Cast to int32_t to avoid overflow.Corinna Vinschen2014-11-122-5/+5
| | | | | * libc/time/gmtime_r.c (DAYS_PER_*_YEARS): Convert to long constants to avoid overflow.
* * libc/machine/aarch64/strcpy.S: New file.Richard Earnshaw2014-11-104-3/+274
| | | | | | * libc/machine/aarch64/strcpy-stub.S: New file. * libc/machine/aarch64/Makefile.am (lib_a_SOURCES): Add new files. * libc/machine/aarch64/Makefile.in: Regenerate.
* 2014-11-06 Joel Sherrill <joel.sherrill@oarcorp.com>Jeff Johnston2014-11-061-6/+6
| | | | | | | * configure.in: Add autoconf test to determine size of uintptr_t. * newlib.hin: Add new autoconf feature variables. * libc/include/inttypes.h: Use new feature variables. * configure: Regenerate.
* * libc/stdio/nano-vfprintf_i.c (_printf_i): Use Newlib approach toCorinna Vinschen2014-11-061-9/+9
| | | | | handle string that might be not nul-terminated. * testsuite/newlib.stdio/nulprintf.c: New test.
* 2014-10-29 Jon Turney <jon.turney@dronecode.org.uk>Jon TURNEY2014-10-301-1/+1
| | | | * libc/include/string.h: Correct guard for strcasecmp().
* * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove unnecessary comparison.Corinna Vinschen2014-10-291-4/+2
|
* * libc/include/sys/unistd.h (sethostname): Declare ifCorinna Vinschen2014-10-271-0/+3
| | | | requested.
* * libc/time/gmtime_r.c (gmtime_r): Remove dead code.Corinna Vinschen2014-10-201-5/+0
|
* * libc/unix/getcwd.c (getcwd): Close directory also in case of an error.Corinna Vinschen2014-10-161-1/+4
|
* * libc/include/_ansi.h: _LONG_LONG_TYPE definition removed.Corinna Vinschen2014-10-103-15/+32
| | | | | | * libc/include/math.h: _LONG_LONG_TYPE replaced by "long long". Guards for C99 and C++11 functions fixed. * libc/include/stdlib.h: Guards for C99 and C++11 functions fixed.
* 2014-10-09 Sebastian Huber <sebastian.huber@embedded-brains.de>Jeff Johnston2014-10-093-34/+40
| | | | | | | | | | | | | | | * libc/include/stdint.h: Include <sys/_intsup.h>. (__STDINT_EXP): Delete. (__have_long32): Likewise. (__have_long64): Likewise. (__have_longlong64): Likewise. * libc/include/sys/_intsup.h: New file. (__STDINT_EXP): Move from libc/include/stdint.h. (__have_long32): Likewise. (__have_long64): Likewise. (__have_longlong64): Likewise. * libc/include/inttypes.h: Include <sys/_intsup.h>. (__INTTYPES_EXP): Delete and use __STDINT_EXP() instead.
* * libc/string/memccpy.c (memccpy): Fix warning about signed-unsignedCorinna Vinschen2014-10-098-9/+15
| | | | | | | | | | | | | | | comparison * libc/string/memchr.c (memchr): Ditto. * libc/string/memrchr.c (memrchr): Ditto. * libc/string/memset.c: (memset): Ditto. * libc/string/rawmemchr.c (rawmemchr): Ditto. * libc/string/local.h (__locale_cjk_lang): Fix "function declaration isn't a prototype" warning. * libc/string/strcasestr.c (strcasestr): Ditto. * libc/string/u_strerr.c (_user_strerror): Fix "unused parameter" warnings. * libc/string/rawmemchr.c (rawmemchr): Fix comment type "// ..." -> "/* ... */".
* 2014-10-08 Steve Ellcey <sellcey@mips.com>Steve Ellcey2014-10-084-79/+269
| | | | | | | | * newlib/libc/machine/mips/strcmp.c: Remove. * newlib/libc/machine/mips/strcmp.S: New. * newlib/libc/machine/mips/Makefile.am (lib_a_SOURCES): Replace strcmp.c with strcmp.S * newlib/libc/machine/mips/Makefile.in: Regenerate.
* * libc/include/string.h (ffsl): Declare as GNU function.Corinna Vinschen2014-10-081-0/+5
| | | | (ffsll): Ditto.
* 2014-09-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-09-171-0/+6
| | | | | * libc/include/sys/features.h: Add __NEWLIB__ and __NEWLIB_MINOR__ macros.
* 2014-09-17 Joel Sherrill <joel.sherrill@oarcorp.com>Jeff Johnston2014-09-161-1/+2
| | | | | | Thomas Uhle <thomas.uhle@eas.iis.fraunhofer.de> * libc/include/string.h: Correct guard for strnlen().
* 2014-09-15 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-09-151-4/+4
| | | | * libc/time/month_lengths.c: Fix to define __month_lengths.
* 2014-09-12 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-09-121-1/+1
| | | | * libc/time/tzcalc_limits.c: Fix __months_lengths reference.
* 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.