Corinna Vinschen
556b13a0c2
* libc/stdio/nano-vfprintf_i.c (_printf_i): Use LONGINT when void* is
...
larger than an int.
2014-11-20 14:05:28 +00:00
Corinna Vinschen
308186a134
* libc/sys/rtems/sys/syslimits.h (NGROUPS_MAX): Adjust value so
...
that NGROUPS is even.
2014-11-20 14:03:17 +00:00
Corinna Vinschen
3dce84ad07
* libc/stdlib/strtod.c (sulp): Cast to int32_t to avoid overflow.
...
* libc/time/gmtime_r.c (DAYS_PER_*_YEARS): Convert to long constants
to avoid overflow.
2014-11-12 09:10:22 +00:00
Richard Earnshaw
fbb8f1a2c7
* libc/machine/aarch64/strcpy.S: New file.
...
* 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-10 14:57:37 +00:00
Jeff Johnston
85907fe082
2014-11-06 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* 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.
2014-11-06 17:45:14 +00:00
Corinna Vinschen
97e2f27aa1
* libc/stdio/nano-vfprintf_i.c (_printf_i): Use Newlib approach to
...
handle string that might be not nul-terminated.
* testsuite/newlib.stdio/nulprintf.c: New test.
2014-11-06 11:08:14 +00:00
Jon TURNEY
e7ebfb119e
2014-10-29 Jon Turney <jon.turney@dronecode.org.uk>
...
* libc/include/string.h: Correct guard for strcasecmp().
2014-10-30 11:25:17 +00:00
Corinna Vinschen
963545173c
Remove accidentally added Change Log entry
2014-10-29 15:23:31 +00:00
Corinna Vinschen
28e1bd0159
* libc/stdio/vfprintf.c (_VFPRINTF_R): Remove unnecessary comparison.
2014-10-29 11:06:42 +00:00
Corinna Vinschen
8134be8ac2
* libc/include/sys/unistd.h (sethostname): Declare if
...
requested.
2014-10-27 14:35:46 +00:00
Corinna Vinschen
2a126568ad
* libc/time/gmtime_r.c (gmtime_r): Remove dead code.
2014-10-20 07:30:17 +00:00
Corinna Vinschen
ec2a57f476
* libc/unix/getcwd.c (getcwd): Close directory also in case of an error.
2014-10-16 15:00:59 +00:00
Corinna Vinschen
7a84e9c4bc
* libc/include/_ansi.h: _LONG_LONG_TYPE definition removed.
...
* 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-10 14:43:19 +00:00
Jeff Johnston
50f799240e
2014-10-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* 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.
2014-10-09 15:57:50 +00:00
Corinna Vinschen
633cf9b5dd
* libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned
...
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-09 12:24:56 +00:00
Steve Ellcey
ca86eee8de
2014-10-08 Steve Ellcey <sellcey@mips.com>
...
* 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.
2014-10-08 22:29:52 +00:00
Corinna Vinschen
da77c6d1e5
* libc/include/string.h (ffsl): Declare as GNU function.
...
(ffsll): Ditto.
2014-10-08 21:04:59 +00:00
Jeff Johnston
99eb60455b
2014-09-17 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/features.h: Add __NEWLIB__ and
__NEWLIB_MINOR__ macros.
2014-09-17 22:20:16 +00:00
Jeff Johnston
ad9ed96b6b
2014-09-17 Joel Sherrill <joel.sherrill@oarcorp.com>
...
Thomas Uhle <thomas.uhle@eas.iis.fraunhofer.de>
* libc/include/string.h: Correct guard for strnlen().
2014-09-16 19:59:01 +00:00
Jeff Johnston
3158e7d674
2014-09-15 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/time/month_lengths.c: Fix to define __month_lengths.
2014-09-15 16:05:37 +00:00
Jeff Johnston
78a52749b2
2014-09-12 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/time/tzcalc_limits.c: Fix __months_lengths reference.
2014-09-12 21:41:46 +00:00
Jeff Johnston
43b3310bc9
2014-09-12 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/time/month_lengths.c: Actually add file this time.
* libc/time/tzcalc_limits.c: Ditto.
2014-09-12 16:38:10 +00:00
Jeff Johnston
c9dded6775
2014-09-11 Freddie Chopin <freddie_chopin@op.pl>
...
* 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-11 21:55:01 +00:00
Jeff Johnston
1c5ab1f862
2014-09-08 Freddie Chopin <freddie_chopin@op.pl>
...
* libc/machine/arm/Makefile.am: Fix typo.
* libc/machine/arm/Makefile.in: Regenerated.
2014-09-08 18:57:52 +00:00
Jeff Johnston
c8a01afd97
2014-09-05 Hale Wang <hale.wang@arm.com>
...
* 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.
2014-09-05 17:26:42 +00:00
Corinna Vinschen
e7565f1088
* libc/stdio/findfp.c (_cleanup_r): Call _fflush_r when configuration
...
option "--enable-lite-exit" is in effect. Refactor the code.
2014-09-05 09:42:15 +00:00
Corinna Vinschen
1ec7de7271
* libc/stdio/fwalk.c (_fwalk_reent): Remove redundant test.
2014-09-05 09:31:32 +00:00
Corinna Vinschen
a015d9b507
Add missing libc/machine/arm/aeabi_memcpy.c file
2014-09-05 08:42:45 +00:00
Corinna Vinschen
9adec6fd79
* libc/time/mktm_r.c (_mktm_r): Optimize speed.
2014-09-04 09:47:14 +00:00
Corinna Vinschen
7d407cb678
Add missing libc/machine/arm/aeabi_memcpy-armv7a.S file
2014-09-04 08:27:35 +00:00
Corinna Vinschen
f9bafa4640
* libc/time/clock.c (clock): Fix warnings about signed-unsigned
...
comparisons.
* libc/time/strftime.c (strftime): Likewise.
* libc/time/strptime.c (match_string): Fix warning about discarding
'restrict' qualifier from pointer target type.
2014-09-04 08:27:03 +00:00
Corinna Vinschen
4a9103c410
* libc/machine/arm/aeabi_memcpy.c: New file.
...
* libc/machine/arm/aeabi_memcpy-armv7a.S: New file.
* libc/machine/arm/Makefile.am: Add dependencies.
* libc/machine/arm/Makefile.in: Regenerated.
2014-09-04 08:23:23 +00:00
DJ Delorie
dd48219ba9
* libc/include/math.h (frexpl): Remove parameter name.
2014-08-27 19:27:03 +00:00
Richard Earnshaw
59c3d5a1a4
* libc/machine/aarch64/memchr.S: Add check for zero-sized buffer.
2014-08-19 10:44:44 +00:00
Corinna Vinschen
d5fd6aeb6d
* libc/include/sys/signal.h: Declare sigaltstack for RTEMS only.
2014-08-18 18:18:10 +00:00
Jeff Johnston
6811cfb0b9
2014-08-18 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/config.h[__m68k__]: Set _READ_WRITE_RETURN_TYPE
to _ssize_t to match underlying code in libgloss.
2014-08-18 16:43:42 +00:00
Joel Sherrill
81c17949f0
2014-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libc/include/string.h: Improve language and OS standard guards.
2014-08-18 14:18:10 +00:00
Joel Sherrill
6042d39486
2014-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libc/include/sys/signal.h: Add sigaltstack() support.
2014-08-18 14:03:35 +00:00
Corinna Vinschen
f703e6aa08
* libc/stdio/findfp.c (std): Don't inline when optimizing for code size.
2014-08-14 08:33:00 +00:00
Jon TURNEY
a4a96eb436
* libc/include/math.h: Also define M_PI etc. if _XOPEN_SOURCE is
...
defined appropriately.
2014-08-04 21:32:37 +00:00
Eric Blake
ada456dcfe
headers: properly decorate attributes
...
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.
2014-08-01 15:44:51 +00:00
Corinna Vinschen
db0378d50f
* libc/string/strerror.c: Fix documentation so makedoc doesn't
...
stumble over a sole EAGAIN.
2014-07-30 08:02:12 +00:00
Anthony Green
0a0f33e501
Add moxiebox support.
2014-07-27 14:37:10 +00:00
Joel Sherrill
e4994e769e
2014-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libc/include/sys/time.h: Add prototype for adjtime() and
wrap it and settimeofday() prototype with __BSD_VISIBLE.
2014-07-22 19:30:00 +00:00
Corinna Vinschen
cdd7651698
Fix missing generated files
2014-07-17 18:43:55 +00:00
Corinna Vinschen
81fd6210c0
* configure.host: Remove or16 and or32 targets and add or1k.
...
* 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.
2014-07-17 18:43:05 +00:00
Corinna Vinschen
e2b585c12c
* libc/include/sys/errno.h: Fix comments.
...
* libc/string/strerror.c: Fix documentation.
(_strerror_r): Handle ENETRESET, EILSEQ, ENODATA, ECONNRESET,
EADDRNOTAVAIL, EOVERFLOW. Fix strings for EMFILE and EDOM.
2014-07-14 13:40:17 +00:00
Richard Earnshaw
87375c75b3
[aarch64] Add memchr.
...
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-11 09:10:50 +00:00
Richard Earnshaw
7bd00a0bef
2014-07-07 Pavel Pisa <pisa@cmp.felk.cvut.cz>
...
Richard Earnshaw <rearnsha@arm.com>
* libc/machine/arm/memchr.S (.arch): Require revision ARMv6t2.
2014-07-07 13:58:35 +00:00
Corinna Vinschen
2ccbe5129d
* configure.in (--enable-newlib-nano-formatted-io): Set to "no"
...
by default.
* configure: Regenerated.
2014-07-07 13:15:55 +00:00
Jeff Johnston
d34336767e
2014-07-04 Bin Cheng <bin.cheng@arm.com>
...
* 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.
2014-07-04 17:21:45 +00:00
Corinna Vinschen
4491d189ae
* libc/argz/envz_merge.c (envz_merge): Fix memory leak (Cygwin Coverity
...
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).
2014-06-23 20:21:54 +00:00
Richard Earnshaw
deda48a9fb
* libc/machine/aarch64/strchrnul.S: New file.
...
* libc/machine/aarch64/strchrnul-stub.c: New file.
* libc/machine/aarch64/Makefile.am: Add them to build list.
* libc/machine/aarch64/Makefile.in: Regenerated.
2014-06-11 10:42:54 +00:00
Richard Earnshaw
5efd066df2
* libc/machine/aarch64/strchr.S: New file
...
* libc/machine/aarch64/strchr-stub.c: New file
* libc/machine/aarch64/Makefile.am: Add them to build list.
* libc/machine/aarch64/Makefile.in: Regenerated.
2014-06-10 14:04:31 +00:00
DJ Delorie
d043b4c527
* configure.host (default_newlib_nano_malloc): New.
...
(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.
2014-06-10 03:09:35 +00:00
Corinna Vinschen
e9eef8ec14
* libc/machine/sparc/setjmp.S (longjmp): Use register g1 instead of g6.
2014-05-15 13:14:25 +00:00
Corinna Vinschen
a265e7269f
* libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS when double
...
options is not __RL78_64BIT_DOUBLES__.
2014-05-14 11:33:24 +00:00
Corinna Vinschen
c57ccec649
* libc/include/stdint.h (WCHAR_MIN): Copy definition from wchar.h.
...
(WCHAR_MAX): Ditto.
* libc/include/wchar.h (WCHAR_MIN): Add comment.
(WCHAR_MAX): Ditto.
2014-05-12 17:02:11 +00:00
Corinna Vinschen
7bc7b551f5
* libc/include/stdio.h (tempnam): Declare as __BSD_VISIBLE or
...
__XSI_VISIBLE or if __POSIX_VISIBLE >= 200112.
2014-05-09 14:25:32 +00:00
Corinna Vinschen
783e4d51e2
* libc/include/stdio.h (fcloseall): Declare as __GNU_VISIBLE only.
...
(renameat): Drop explicit __CYGWIN__ dependency.
2014-05-09 08:42:39 +00:00
Corinna Vinschen
7e9b678464
* libc/include/stdio.h: Declare various C99 printf/scanf functions for
...
C++11, too.
2014-05-05 12:53:47 +00:00
Richard Earnshaw
742e729664
* libc/machine/arm/strcmp-arm-tiny.S: New file.
...
* 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.
2014-04-22 12:16:22 +00:00
Corinna Vinschen
a6e73f9505
* libc/sys/rtems/sys/cpuset.h (CPU_SET_S): Add const qualifier.
...
(CPU_SET): Likewise.
2014-04-14 14:08:26 +00:00
DJ Delorie
0f05e4b24f
* libc/machine/rl78/setjmp.S: Add RL78/G10 support.
2014-04-09 21:35:43 +00:00
Jeff Johnston
d3925b72d5
2014-04-04 Ashish Kapania <akapania@ti.com>
...
* 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.
2014-04-04 21:40:59 +00:00
Richard Earnshaw
31eade549d
* libc/machine/arm/acle-compat.h: New file.
...
* libc/machine/arm/arm_asm.h: Use it.
2014-03-27 13:26:39 +00:00
Jeff Johnston
b7f5fb36f1
2014-03-21 Maciej W. Rozycki <macro@codesourcery.com>
...
* 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 21:27:29 +00:00
Jeff Johnston
7f6278bc08
2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>
...
* libc/machine/nds32/configure: Regenerated.
* libc/machine/nds32/configure.in: Add AC_NOEXECUTABLES.
2014-03-21 21:15:15 +00:00
Jeff Johnston
ef073b8f82
2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>
...
* 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 21:09:46 +00:00
Jeff Johnston
c18decccef
2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>
...
* libc/machine/nds32/setjmp.S: Keep jmp_buff sync with GDB.
2014-03-21 20:28:57 +00:00
Jeff Johnston
5805cb1f8c
2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>
...
* libc/machine/nds32/setjmp.S: Optimize.
2014-03-21 20:09:10 +00:00
Corinna Vinschen
0b3ad39364
* libc/include/stdlib.h (strtold): Define if _HAVE_LONG_DOUBLE is
...
defined.
* libc/stdlib/strtold.c (strtold): Ditto. Call strtod on systems
with long double == double, _strtold otherwise.
2014-03-07 20:06:54 +00:00
Corinna Vinschen
d5b32c8fad
* libc/include/time.h (__TM_GMTOFF): Remove Cygwin-specific definition.
...
(__TM_ZONE): Ditto.
2014-03-05 12:49:40 +00:00
Corinna Vinschen
07be216aab
* libc/include/time.h (__TM_GMTOFF): Define on Cygwin.
...
(__TM_ZONE): Ditto.
(struct tm): Add __TM_GMTOFF and __TM_ZONE members if they are defined.
2014-03-05 12:43:12 +00:00
Corinna Vinschen
17ff765184
* libc/include/machine/_default_types.h: Define unsigned type using
...
signed type macros in case unsigned type macros are not available.
2014-03-04 08:05:39 +00:00
Corinna Vinschen
6480b2ae76
* libm/complex/complex.tex: Fix wrong syntax in documentation.
...
* libm/math/math.tex: Ditto.
2014-02-20 18:59:10 +00:00
Corinna Vinschen
23c0f21594
* libc/stdio/open_memstream.c (internal_open_memstream_r): Initialize
...
c->pos to 0.
2014-02-20 13:32:34 +00:00
Jeff Johnston
35dcecc6db
2014-02-11 Joey Ye <joey.ye@arm.com>
...
* libc/sys/arm/syscalls.c (_sbrk): Define as weak symbols.
(_read, _write): Ditto.
2014-02-11 19:54:30 +00:00
Corinna Vinschen
ab7165e43b
* libc/include/pwd.h: Include <sys/cdefs.h>.
...
* libc/include/grp.h: Ditto.
2014-02-09 20:02:17 +00:00
Jeff Johnston
d581a24a36
2014-02-04 Matthias Braun <matze@braunis.de>
...
* libm/mathfp/sf_numtest.c: Fix NaN/Inf detection logic.
2014-02-04 20:49:53 +00:00
Corinna Vinschen
ae691ac535
* libc/include/setjmp.h (longjmp): Fix copy/paste error.
2014-01-20 17:23:41 +00:00
Corinna Vinschen
5e66ab7852
* libc/include/setjmp.h (longjmp): Mark "noreturn" when building with
...
GCC.
2014-01-19 09:38:34 +00:00
Corinna Vinschen
93012a1d0d
* libc/include/pwd.h: Use __foo_VISIBLE macros from sys/cdefs.h.
...
(setpassent): Declare.
2014-01-17 14:54:31 +00:00
Corinna Vinschen
ad1a102dd6
* libc/include/sys/_default_fcntl.h (LOCK_SH): Define.
...
(LOCK_EX): Likewise.
(LOCK_NB): Likewise.
(LOCK_UN): Likewise.
(flock): Declare.
2014-01-17 10:57:54 +00:00
Corinna Vinschen
7a7e4d4d95
Introduce _STDIO_BSD_SEMANTICS flag to switch fclose/exit file flushing
...
semantics from POSIX to BSD.
* libc/stdio/fclose.c (_fclose_r): Conditionalize file flushing on
_STDIO_BSD_SEMANTICS. Call __sflush_r rather than _fflush_r. Add
comment.
* libc/stdio/fflush.c (__sflushw_r): New function, only available
if _STDIO_BSD_SEMANTICS is defined.
* libc/stdio/findfp.c (_cleanup_r): Call _fwalk_reent rather than
_fwalk. Conditionalize cleanup function call on _STDIO_BSD_SEMANTICS.
Add comments. Add FIXME.
* libc/stdio/local.h (__sflushw_r): Declare if _STDIO_BSD_SEMANTICS is
defined.
2014-01-17 10:55:32 +00:00
Jeff Johnston
439f4e7a87
2014-01-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/include/sys/_default_fcntl.h (AT_FDCWD): Define according
to POSIX.
(AT_EACCESS): Likewise.
(AT_SYMLINK_NOFOLLOW): Likewise.
(AT_SYMLINK_FOLLOW): Likewise.
(AT_REMOVEDIR): Likewise.
(openat): Declare according to POSIX.
* libc/include/stdio.h (renameat): Likewise.
* libc/include/sys/stat.h (fchmodat): Likewise.
(fstatat): Likewise.
(mkdirat): Likewise.
(mkfifoat): Likewise.
(mknodat): Likewise.
(utimensat): Likewise.
(futimens): Likewise.
* libc/include/sys/unistd.h (faccessat): Likewise.
(fchownat): Likewise.
(linkat): Likewise.
(readlinkat): Likewise.
(symlinkat): Likewise.
(unlinkat): Likewise.
2014-01-06 20:59:38 +00:00
Jeff Johnston
0707f1df6c
2014-01-06 Mike Frysinger <vapier@gentoo.org>
...
* libc/search/hash.c (hash_delete): Change __uint32_t to u_int.
(hash_get): Likewise.
(hash_put): Likewise.
(hash_seq): Likewise.
(hash_sync): Likewise.
Also fix former ChangeLog entry to be 2014.
2014-01-06 19:50:33 +00:00
Jeff Johnston
60ea042c37
2013-01-06 Mike Frysinger <vapier@gentoo.org>
...
* libc/ctype/jp2uc.c: Include string.h.
2014-01-06 19:30:50 +00:00
Jeff Johnston
5ac847c629
2013-12-23 Jeff Johnston <jjohnstn@redhat.com>
...
* NEWS: Update with 2.1.0 info.
* README: Ditto.
* acinclude.m4: Change version number to 2.1.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.1
2013-12-23 20:45:10 +00:00
Jeff Johnston
b153931f18
2013-12-22 JF Bastien <jfb@chromium.org>
...
* libc/include/limits.h: Define LLONG_MIN, LLONG_MAX and ULLONG_MAX
for C++11 too.
* libc/include/stdlib.h: Define struct lldiv_t, _Exit, atoll, llabs
and lldiv for C99 and C++11. Move wcstold to wchar.h.
* libc/include/wchar.h: Define WCHAR_MIN and WCHAR_MAX according to
__WCHAR_UNSIGNED__ if it is provided, and correct the limit when
unsigned (to 32 all-1 bits, not 31). Define FILE as in stdio.h.
Move wcstold from stdlib.h here.
2013-12-23 19:21:07 +00:00
Nick Clifton
57cfbb7bbf
* configure.host (newlib_cflags): Use -Os, -ffunction-sections and
...
-fdata-sections for RL78.
2013-12-20 10:27:49 +00:00
Corinna Vinschen
281924766d
* libc/stdio/vfwscanf.c (__SVFWSCANF_R): Fix fetching decimal_point in
...
!_MB_CAPABLE as well as in !__HAVE_LOCALE_INFO_EXTENDED__ case.
2013-12-19 18:50:00 +00:00
Corinna Vinschen
0fcafd1535
Fix ChangeLog entry
2013-12-19 09:50:19 +00:00
Corinna Vinschen
576b7804d6
* vfscanf.c (BUF): Change definition to take multibyte decimal point
...
into account.
(__SVFSCANF_R): Handle radix char language-dependent
per POSIX.
(__SVFWSCANF_R): Ditto.
2013-12-18 19:23:33 +00:00
Jeff Johnston
10e4d79a19
2013-12-10 Jeff Johnston <jjohnstn@redhat.com>
...
* acconfig.h: Add _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL.
* newlib.hin: Ditto.
* configure: Regenerate.
* configure.in: Add setting of _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL.
* libc/string/local.h: Add check for _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL
and set __inhibit_loop_to_libcall macro appropriately.
* libc/string/memmove.c: Use __inhibit_loop_to_libcall macro in
function declaration.
* libc/string/memset.c: Ditto.
2013-12-10 18:57:30 +00:00
Corinna Vinschen
a6a307d8c2
* libc/sys/rtems/include/limits.h: Update page size to match
...
libc/sys/rtems/machine/param.h.
2013-12-10 09:20:37 +00:00
Corinna Vinschen
f4fc6b0663
* libc/sys/rtems/sys/cpuset.h: Use __inline instead of inline.
2013-12-03 16:07:33 +00:00
Corinna Vinschen
9bd3bcc642
* libc/include/machine/_default_types.h: Move extern "C" after
...
header includes. Include <sys/features.h> for
__GNUC_PREREQ__().
(__u?int.*_t): Define via GCC provided __U?INT.*_TYPE__ if
available.
(__intptr_t): Define.
(__uintptr_t): Likewise.
* libc/include/stdint.h: Include <machine/_default_types.h>
instead of <_ansi.h>.
(u?int.*_t): Define via __u?int.*_t provided by
<machine/_default_types.h>.
(u?int_fast.*_t): Define via GCC provided
__U?INT_FAST.*_TYPE__ if available.
(U?INT.*(MIN|MAX)): Define via GCC provided __U?INT.*(MIN|MAX)__
if available.
(U?INT.*_C): Define via GCC provided __U?INT.*_C if available.
* libc/include/sys/cdefs.h: Use <machine/_default_types.h>
instead of <stdint.h>.
* libc/sys/rtems/sys/cpuset.h: Likewise.
* libc/sys/rtems/machine/_types.h: Include <stdint.h> for
FreeBSD compatibility.
2013-12-03 16:04:41 +00:00
Joel Sherrill
a534dfd26e
2013-11-29 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/include/pthread.h (pthread_cleanup_push): Delete prototype
and add macro of the same name.
(pthread_cleanup_pop): Likewise.
(_pthread_cleanup_context): Define.
(_pthread_cleanup_push): Likewise.
(_pthread_cleanup_pop): Likewise.
(pthread_cleanup_push_defer_np): Define if _GNU_SOURCE is defined.
(pthread_cleanup_pop_restore_np): Likewise.
(_pthread_cleanup_push_defer): Likewise.
(_pthread_cleanup_pop_restore): Likewise.
2013-11-29 23:35:34 +00:00
Joel Sherrill
62c28b76ac
2013-11-29 Jennifer Averett <jennifer.averett@oarcorp.com>
...
* libc/include/pthread.h (pthread_attr_setaffinity_np):
Add pthread SMP affinity attributes to methods to RTEMS for
compatibility with GNU/Linux.
(pthread_attr_getaffinity_np): Likewise.
(pthread_setaffinity_np): Likewise.
(pthread_getaffinity_np): Likewise.
(pthread_getattr_np): Add for GNU/Linux compatibility.
* libc/include/sys/types.h: Add cpuset to pthread_attr_t for RTEMS.
* libc/include/sys/cdefs.h (_GNU_SOURCE): Defining _GNU_SOURCE
turns on all _XXX_VISBLE feature flags.
2013-11-29 23:14:57 +00:00