Corinna Vinschen
5a97e28f6a
* libc/include/stdio.h (FILE): Protect typedef from redefinition.
...
* libc/include/wchar.h: Ditto.
2015-03-05 17:15:24 +00:00
Joel Sherrill
2387583ee2
2015-02-25 Gedare Bloom <gedare@rtems.org>
...
* libc/include/machine/time.h (_CLOCKS_PER_SEC_): redefine for RTEMS.
2015-03-03 21:53:55 +00:00
Jon TURNEY
67d150ca14
* libc/include/sys/cdefs.h (_GNU_SOURCE): Move check so it has an
...
effect when _XOPEN_SOURCE is also defined.
2015-02-25 15:58:41 +00:00
Nick Clifton
b9e7cd9a84
* libc/include/complex.h (cabsl): Add prototype.
...
(cimagl): Add prototype.
(creall): Add prototype.
* libc/include/ieeefp.h: Include float.h.
(EXT_EXPBITS, EXT_FRACHBITS, EXT_FRACLBITS)
(EXT_EXP_INFNAN. EXT_EXP_BIAS, EXT_FRACBITS): Define.
(struct ieee_ext, union ieee_ext_u): New types for long double
support.
* libc/include/math.h (finitel): Add prototype.
(hypotl): Add prototype.
(sqrtl): Add prototype.
* libm/common/Makefile.am (lsrc): Add sl_finite.c.
* libm/common/Makefile.in: Regenerate.
* libm/common/fdlibm.h (__ieee754_hypotl): Add prototype.
* libm/common/hypotl.c (hypotl): Add implementation for when long
double is larger than double.
* libm/common/sqrtl.c (sqrtl): Likewise.
* libm/common/sl_finite.c: New file. Adds implementation of the
finitel function.
* libm/complex/Makefile.am (lsrc): Define.
(libcomplex_la_SOURCES): Add lsrc.
(lib_a_SOURCES): Add lsrc.
* libm/complex/Makefile.in: Regenerate.
* libm/complex/cabs.c: Add documentation of cabsl function.
* libm/complex/cimag.c: Add documentation of cimagl function.
* libm/complex/creall.c: Add documentation of creall function.
* libm/complex/cabsl.c: New file. Adds implementation of the
cabsl function.
* libm/complex/cimagl.c: New file. Adds implementation of the
cimagl function.
* libm/complex/creall.c: New file. Adds implementation of the
creall function.
* libm/math/Makefile.am (lsrc): Define.
(libmath_la_SOURCES): Add lsrc.
(lib_a_SOURCES): Add lsrc.
* libm/math/Makefile.in: Regenerate.
* libm/math/el_hypot.c: New file. Adds implementation of the
__ieee754_hypotl function.
2015-02-06 16:14:04 +00:00
Corinna Vinschen
f2eb8ca8bf
* libc/include/wchar.h (wcstold): Drop _LDBL_EQ_DBL requirement for
...
declaration.
2015-02-04 11:02:36 +00:00
Corinna Vinschen
3e4183d15b
* libc/include/sys/time.h: #include <sys/cdefs.h> for __BSD_VISIBLE.
2015-01-28 21:03:41 +00:00
Eric Botcazou
bf8f43ae8a
* COPYING.LIBGLOSS: Add Controls and Data Services copyright.
...
* COPYING.NEWLIB: Likewise.
libgloss/
* configure.in: Add Visium support.
* configure: Regenerate.
* visium/: New directory.
newlib/
* configure.host: Add Visium support.
* libc/machine/configure.in: Likewise.
* libc/machine/configure: Regenerate.
* libc/machine/visium/: New directory.
* libc/include/machine/setjmp.h (_JBLEN): Define for Visium.
* libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Likewise.
* libc/include/machine/time.h (_CLOCKS_PER_SEC_): Likewise.
2015-01-21 18:27:47 +00:00
Jeff Johnston
89b6034299
2015-01-14 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libc/include/sys/unistd.h [__BSD_VISIBLE]: Add issetugid() prototype.
2015-01-14 21:19:26 +00:00
Corinna Vinschen
29193dd04c
* configure.host: Add extra system for OpenRISC baremetal
...
* libc/include/sys/config.h: Dynamic reentrancy for or1k sys targets
* libc/sys/or1k/: New system for or1k baremetal
* libc/sys/or1k/Makefile.am: New file
* libc/sys/or1k/Makefile.in: New file
* libc/sys/or1k/aclocal.m4: New file
* libc/sys/or1k/configure.in: New file
* libc/sys/or1k/configure: New file
* libc/sys/or1k/getreent.S: New file
* libc/sys/or1k/mlock.S: New file
* libc/sys/or1k/or1k-asm.S: New file
2015-01-14 09:25:16 +00:00
Jeff Johnston
f0e3a51e9f
2014-12-26 Freddie Chopin <freddie_chopin@op.pl>
...
* libc/include/sys/features.h: update newlib version and copyright year
2015-01-05 17:31:28 +00:00
Yaakov Selkowitz
968738f9b1
Implement BSD/GNU unlocked stdio extensions.
...
* libc/include/stdio.h (clearerr_unlocked, feof_unlocked,
ferror_unlocked, fflush_unlocked, fgetc_unlocked, fgets_unlocked,
fileno_unlocked, fputc_unlocked, fputs_unlocked, fread_unlocked,
fwrite_unlocked): Declare.
* libc/include/wchar.h (fgetwc_unlocked, fgetws_unlocked,
fputwc_unlocked, fputws_unlocked, getwc_unlocked, getwchar_unlocked,
putwc_unlocked, putwchar_unlocked): Declare.
* libc/stdio/Makefile.am (ELIX_4_SOURCES): Add clearerr_u.c,
feof_u.c, ferror_u.c, fflush_u.c, fgetc_u.c, fgets_u.c, fgetwc_u.c,
fgetws_u.c, fileno_u.c, fputc_u.c, fputs_u.c, fputwc_u.c, fputws_u.c,
fread_u.c, fwrite_u.c, getwc_u.c, getwchar_u.c, putwc_u.c, putwchar_u.c.
Add necessary dependencies.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio/clearerr.c: Document unlocked variant.
* libc/stdio/clearerr_u.c: New file.
* libc/stdio/feof.c: Document unlocked variant.
* libc/stdio/feof_u.c: New file.
* libc/stdio/ferror.c: Document unlocked variant.
* libc/stdio/ferror_u.c: New file.
* libc/stdio/fflush.c: Add __IMPL_UNLOCKED__ overrides.
Document unlocked variants.
* libc/stdio/fflush_u.c: New file.
* libc/stdio/fgetc.c: Document unlocked variants.
* libc/stdio/fgetc_u.c: New file.
* libc/stdio/fgets.c: Add __IMPL_UNLOCKED__ overrides.
Document unlocked variants.
* libc/stdio/fgets_u.c: New file.
* libc/stdio/fgetwc.c: Document unlocked variants.
(__fgetwc): Make non-static.
* libc/stdio/fgetwc_u.c: New file.
* libc/stdio/fgetws.c: Add __IMPL_UNLOCKED__ overrides.
Document unlocked variants.
* libc/stdio/fgetws_u.c: New file.
* libc/stdio/fileno.c: Document unlocked variant.
* libc/stdio/fileno_u.c: New file.
* libc/stdio/fputc.c: Document unlocked variants.
* libc/stdio/fputc_u.c: New file.
* libc/stdio/fputs.c: Add __IMPL_UNLOCKED__ overrides.
Document unlocked variants.
* libc/stdio/fputs_u.c: New file.
* libc/stdio/fputwc.c: Document unlocked variants.
(__fputwc): Make non-static.
* libc/stdio/fputwc_u.c: New file.
* libc/stdio/fputws.c: Add __IMPL_UNLOCKED__ overrides.
Document unlocked variants.
* libc/stdio/fputws_u.c: New file.
* libc/stdio/fread.c: Add __IMPL_UNLOCKED__ overrides.
Document unlocked variants.
* libc/stdio/fread_u.c: New file.
* libc/stdio/fwrite.c: Add __IMPL_UNLOCKED__ overrides.
Document unlocked variants.
* libc/stdio/fwrite_u.c: New file.
* libc/stdio/getwc_u.c: New file.
* libc/stdio/getwchar.c: Document unlocked variants.
* libc/stdio/getwchar_u.c: New file.
* libc/stdio/local.h: Define locking macros as empty ifdef
__IMPL_UNLOCKED__.
(__fgetwc, __fputwc): Declare.
* libc/stdio/putwc_u.c: New file.
* libc/stdio/putwchar.c: Document unlocked variants.
* libc/stdio/putwchar_u.c: New file.
2014-12-18 14:55:21 +00:00
Corinna Vinschen
32c96ddd14
* libc/include/stdlib.h (__itoa): Declare prototype.
...
(__utoa): Ditto.
(itoa): Ditto, non-strict-ANSI only.
(utoa): Ditto.
* libc/stdlib/Makefile.am: Add itoa.c and utoa.c.
* libc/stdlib/Makefile.in: Regenerate.
* libc/stdlib/itoa.c: New file.
* libc/stdlib/utoa.c: New file.
2014-12-16 10:55:17 +00:00
Jeff Johnston
705cda717e
2014-12-15 Jonathan Roelofs <jonathan@codesourcery.com>
...
* libc/include/math.h: Add log2l,logbl,nexttowardf,
* nexttoward,nexttowardl
* libm/common/Makefile.am: Reference new files
* libm/common/Makefile.in: Reference new files
* libm/common/log2l.c: New File
* libm/common/logbl.c: Likewise
* libm/common/nexttowardf.c: Likewise
* libm/common/nexttoward.c: Likewise
* libm/common/nexttowardl.c: Likewise
2014-12-15 20:50:23 +00:00
Yaakov Selkowitz
6485fc66f2
* libc/include/stdio.h (__SNLK): Define.
...
* libc/include/stdio_ext.h (FSETLOCKING_QUERY, FSETLOCKING_INTERNAL,
FSETLOCKING_BYCALLER): Define.
(__fsetlocking): Declare.
* libc/stdio/Makefile.am: Build fsetlocking.c.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio/fsetlocking.c: New file.
* libc/stdio/local.h (_newlib_flockfile_start): Make _flockfile
call dependent on __SNLK flag.
(_newlib_flockfile_exit, _newlib_flockfile_end): Ditto for
_funlockfile calls.
Define all locking macros as empty if __SINGLE_THREAD__.
* libc/stdio/stdio.tex: Include fsetlocking.def.
2014-12-15 18:22:56 +00:00
Corinna Vinschen
f5ce72dffc
* newlib/libc/include/machine/setjmp.h: Add FPU support.
...
* newlib/libc/machine/nds32/setjmp.S: Add FPU support.
2014-12-15 13:32:17 +00:00
Corinna Vinschen
601c50292b
* libc/include/stdlib.h: Include sys/cdefs.h to avoid undefined
...
__ASMNAME.
2014-12-15 12:58:19 +00:00
Jeff Johnston
f58bc5991f
2014-12-12 Stefan Wallentowitz <stefan.wallentowitz@tum.de>
...
* configure.host: or1knd support, OpenRISC without delay slot
* libc/include/machine/setjmp.h: Add or1knd
* libc/machine/or1k/setjmp.S: Optional delay slot
2014-12-12 21:14:06 +00:00
Corinna Vinschen
c6332722d9
* libc/include/stdio.h: Fix type signature of __sfeof and __sferror
...
(and thus feof and ferror) for C++.
2014-12-11 17:42:19 +00:00
Yaakov Selkowitz
6f34876e5e
* libc/include/stdio_ext.h: Rename __fwriteable to __fwritable.
...
[!__GNUC__]: Declare real functions for the macros, and make
the macros conditional on !__cplusplus.
* libc/stdio/Makefile.am (ELIX_4_SOURCES): Add stdio_ext.c.
(CHEWOUT_FILES): Add stdio_ext.def.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio/stdio.tex: Include stdio_ext.def.
* libc/stdio/stdio_ext.c: New file.
2014-12-11 16:53:32 +00:00
Corinna Vinschen
2d48118f11
* libc/include/stdio_ext.h: Remove excess "inline".
2014-12-10 09:39:06 +00:00
Yaakov Selkowitz
bf9897549d
* libc/include/stdlib.h (__bsd_qsort_r): Declare.
...
(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.
2014-12-05 16:21:04 +00:00
Corinna Vinschen
a800b3ae9c
* libc/include/sys/signal.h [__SPU__] (kill): Declare.
2014-12-04 09:15:50 +00:00
Jeff Johnston
8c049028d9
2014-12-03 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/inttypes.h: Only enable the 8-bit scanning macros
if _WANT_IO_C99_FORMATS is defined by configuration. Add comment
on why.
2014-12-03 20:25:09 +00:00
Corinna Vinschen
d37bfe1da2
* libc/include/machine/setjmp.h [__mips__]: Remove __mips_fpr == 64
...
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.
2014-11-28 08:47:39 +00:00
Corinna Vinschen
75e2565a57
* libc/include/sys/_default_fcntl.h: Move all Cygwin-specific open
...
flags from Cygwin's fcntl.h here. Remove check for WIN32. Remove
Windows-specific macros.
2014-11-25 11:53:00 +00:00
Joel Sherrill
63d53b9255
2014-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libc/include/sys/resource.h: Add prototype for getrusage()
to <sys/resource.h>
2014-11-24 14:12:32 +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
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
8134be8ac2
* libc/include/sys/unistd.h (sethostname): Declare if
...
requested.
2014-10-27 14:35:46 +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
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
DJ Delorie
dd48219ba9
* libc/include/math.h (frexpl): Remove parameter name.
2014-08-27 19:27:03 +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
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
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
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
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
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
ab7165e43b
* libc/include/pwd.h: Include <sys/cdefs.h>.
...
* libc/include/grp.h: Ditto.
2014-02-09 20:02:17 +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
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
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
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
Jeff Johnston
a00d2722b6
2013-11-26 Matheus Almeida <Matheus.Almeida@imgtec.com>
...
* libc/include/machine/setjmp.h: Add support for __mips_fpr being
64 and treat it the same as if __mips64 is set.
* libc/machine/mips/setjmp.S: Ditto, plus add checks for _MIPS_SIM
being _ABIN32 and _ABI64.
2013-11-26 19:58:19 +00:00
Joel Sherrill
380c9f6165
2013-11-26 Julio Gutierrez <jgutleyva@gmail.com>
...
*libc/include/wchar.h: Add restrict keyword.
*libc/stdio/fgetws.c (fgetws): ditto.
*libc/stdio/fputws.c (fputws): ditto.
*libc/stdio/fwprintf.c (fwprintf): ditto.
*libc/stdio/fwscanf.c (fwscanf): ditto.
*libc/stdio/swprintf.c (swprintf): ditto.
*libc/stdio/swscanf.c (swscanf): ditto.
*libc/stdio/vfwprintf.c (vfwprintf): ditto.
*libc/stdio/vfwscanf.c (vfwscanf): ditto.
*libc/stdio/vswprintf.c (vswprintf): ditto.
*libc/stdio/vswscanf.c (vswscanf): ditto.
*libc/stdio/vwprintf.c (vwprintf): ditto.
*libc/stdio/vwscanf.c (vwscanf): ditto.
*libc/stdio/wprintf.c (wprintf): ditto.
*libc/stdio/wscanf.c (wscanf): ditto.
*libc/stdlib/mbrlen.c (mbrlen): ditto.
*libc/stdlib/mbrtowc.c (mbrtowc): ditto.
*libc/stdlib/mbsnrtowcs.c (mbsnrtowcs): ditto.
*libc/stdlib/mbsrtowcs.c (mbsrtowcs): ditto.
*libc/stdlib/wcrtomb.c (wcrtomb): ditto.
*libc/stdlib/wcsnrtombs.c (wcsnrtombs): ditto.
*libc/stdlib/wcsrtombs.c (wcsrtombs): ditto.
*libc/stdlib/wcstod.c (wcstod): ditto.
*libc/stdlib/wcstol.c (wcstol): ditto.
*libc/stdlib/wcstold.c (wcstold): ditto.
*libc/stdlib/wcstoll.c (wcstoll): ditto.
*libc/stdlib/wcstoul.c (wcstoul): ditto.
*libc/stdlib/wcstoull.c (cstoull): ditto.
*libc/string/wcpcpy.c (wcpcpy): ditto.
*libc/string/wcpncpy.c (wcpncpy): ditto.
*libc/string/wcscat.c (wcscat): ditto.
*libc/string/wcscpy.c (wcscpy): ditto.
*libc/string/wcsncat.c (wcsncat): ditto.
*libc/string/wcsncpy.c (wcsncpy): ditto.
*libc/string/wcsstr.c (wcsstr): ditto.
*libc/string/wcstok.c (wcstok): ditto.
*libc/string/wcsxfrm.c (wcsxfrm): ditto.
*libc/string/wmemcpy.c (wmemcpy): ditto.
2013-11-26 17:21:01 +00:00
Corinna Vinschen
05efdc441d
* libc/include/spawn.h (posix_spawn_file_actions_destroy): Fix typo
...
in function name.
* libc/posix/posix_spawn.c (posix_spawn_file_actions_destroy): Ditto.
2013-11-25 17:23:30 +00:00
Joel Sherrill
d482870337
2013-11-25 Sahil Patnayakuni <sahil.patnayakuni@gmail.com>
...
* libc/include/time.h (time): Add restrict keyword.
* libc/include/wchar.h (wcsftime): Add restrict keyword.
* libc/time/asctime_r.c (asctime_r): Same.
* libc/time/gmtime_r.c (gmtime_r): Same.
* libc/time/lcltime_r.c (lcltime_r): Same.
* libc/time/strftime.c (strftime): Same.
* libc/time/strptime.c (strptime): Same.
* libc/sys/linux/linuxthreads/timer_create.c (timer_create): Same.
* libc/sys/linux/linuxthreads/timer_settime.c (timer_settime): Same.
2013-11-25 13:46:23 +00:00
Joel Sherrill
f68a40cdf9
2013-11-23 Bryan Dunsmore <dunsmoreb@gmail.com>
...
* libc/include/wordexp.h (wordexp): Add restrict keyword.
* libc/posix/wordexp.c (wordexp): Ditto.
2013-11-23 22:39:34 +00:00
Joel Sherrill
9cd69d84ef
2013-11-22 Bryan Dunsmore <dunsmoreb@gmail.com>
...
* libc/include/sys/time.h (gettimeofday): Add restrict keyword.
(setitimer): Likewise.
* libc/sys/rdos/gettod.c (gettimeofday): Likewise.
* libc/sys/rtems/crt0.c (gettimeofday): Likewise.
2013-11-23 01:25:47 +00:00
Joel Sherrill
849fe25d0e
2013-11-22 Chirayu Desai <chirayudesai1@gmail.com>
...
* libc/include/sys/unistd.h (readlink): Add restrict keyword.
(readlinkat): Ditto.
(swab): Ditto.
* libc/sys/rdos/readlink.c (readlink): Ditto.
* libc/string/swab.c (swab): Ditto.
2013-11-22 22:39:51 +00:00
Joel Sherrill
9977fcbc42
2013-11-21 Julio Gutierrez <jgutleyva@gmail.com>
...
* libc/include/glob.h (glob): Add restrict keyword.
* libc/posix/glob.c (glob): Ditto.
2013-11-21 17:04:57 +00:00
Joel Sherrill
32e2cbeeab
2013-11-21 Daniel Ramirez <javamonn@gmail.com>
...
* libc/include/sys/stat.h, libc/sys/linux/sys/stat.h,
libc/sys/m88kbug/syscalls.c, libc/sys/rdos/stat.c,
libc/sys/sparc64/sys/stat.h: Add restrict keyword.
2013-11-21 16:35:47 +00:00
Joel Sherrill
3c7451d8de
2013-11-20 Daniel Ramirez <javamonn@gmail.com>
...
* libc/include/search.h, libc/search/tdelete.c: Add restrict keyword.
2013-11-20 18:22:27 +00:00
Joel Sherrill
ea9d80921f
2013-11-20 Chirayu Desai <chirayudesai1@gmail.com>
...
* libc/include/regex.h, libc/posix/regcomp.c,
libc/posix/regerror.c, libc/posix/regex.3
libc/posix/regexec.c: Add restrict keyword.
2013-11-20 16:25:50 +00:00
Joel Sherrill
a2c4eac5d0
2013-11-20 Daniel Ramirez <javamonn@gmail.com>
...
* libc/iconv/lib/iconv.c, libc/include/iconv.h,
libc/sys/linux/iconv/iconv.c: Add restrict keyword.
2013-11-20 13:39:36 +00:00
Corinna Vinschen
8273b2112f
* libc/include/stdlib.h: Declare realpath only if !__STRICT_ANSI__.
2013-11-20 09:46:39 +00:00
Joel Sherrill
aed5f73fa8
2013-11-18 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libc/include/stdlib.h: Add prototype of realpath().
* libc/sys/linux/realpath.c: Add restrict keyword.
2013-11-19 17:32:24 +00:00
Joel Sherrill
481cb456a4
2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com>
...
* libc/include/stdio.h, libc/machine/powerpc/vfscanf.c,
libc/machine/spu/fgetpos.c, libc/machine/spu/fgets.c,
libc/machine/spu/fopen.c, libc/machine/spu/fputs.c,
libc/machine/spu/fread.c, libc/machine/spu/freopen.c,
libc/machine/spu/fwrite.c, libc/machine/spu/setbuf.c,
libc/machine/spu/vfprintf.c, libc/machine/spu/vfscanf.c,
libc/machine/spu/vsnprintf.c, libc/machine/spu/vsprintf.c,
libc/machine/spu/vsscanf.c, libc/stdio/asnprintf.c,
libc/stdio/asprintf.c, libc/stdio/dprintf.c,
libc/stdio/fgetpos.c, libc/stdio/fgets.c,
libc/stdio/fmemopen.c, libc/stdio/fopen.c,
libc/stdio/fprintf.c, libc/stdio/fputs.c,
libc/stdio/fread.c, libc/stdio/freopen.c,
libc/stdio/fscanf.c, libc/stdio/fwrite.c,
libc/stdio/printf.c, libc/stdio/scanf.c,
libc/stdio/setbuf.c, libc/stdio/snprintf.c,
libc/stdio/sprintf.c, libc/stdio/sscanf.c,
libc/stdio/vdprintf.c, libc/stdio/vprintf.c,
libc/stdio/vscanf.c, libc/stdio/vsnprintf.c,
libc/stdio/vsprintf.c, libc/stdio/vsscanf.c: Add restrict keyword.
2013-11-18 17:28:06 +00:00
Joel Sherrill
8ab08406da
2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com>
...
* libc/include/stdlib.h, libc/stdlib/mbstowcs.c,
libc/stdlib/mbstowcs_r.c, libc/stdlib/mbtowc.c,
libc/stdlib/mbtowc_r.c, libc/stdlib/strtod.c,
libc/stdlib/strtol.c, libc/stdlib/strtold.c,
libc/stdlib/strtoll.c, libc/stdlib/strtoll_r.c,
libc/stdlib/strtoul.c, libc/stdlib/strtoull.c,
libc/stdlib/strtoull_r.c, libc/stdlib/wcstombs.c,
libc/stdlib/wcstombs_r.c: Add restrict keyword.
2013-11-18 17:26:52 +00:00
Marcus Shawcroft
7c62befe16
[AArch64] Provide ftruncate() and truncate() stubs.
2013-11-18 10:04:56 +00:00
Marcus Shawcroft
c709105913
[ARM] Provide ftruncate() and truncate() stubs.
2013-11-18 09:53:46 +00:00
Corinna Vinschen
02365c2064
* newlib/libc/include/getopt.h (struct option): name field should be
...
"const char *".
* newlib/libc/stdlib/getopt.c (getopt_internal): Use fputs()/fputc()
instead of fprintf() to save code space. Fix signed/unsigned
comparison.
2013-11-13 09:09:45 +00:00
Corinna Vinschen
4afcc6ced9
* libc/include/machine/_default_types.h: Revert change from 2013-10-10.
2013-10-30 15:51:13 +00:00
Hans-Peter Nilsson
72a386373e
* libc/include/stdio.h [!__LARGE64_FILES] (funopen): Fix typo
...
in last change.
2013-10-24 01:21:33 +00:00
Corinna Vinschen
0c3d8e5ab5
* libc/include/stdio.h (funopen): Change prototype of
...
__readfn and __writefn parameter to match new definition of
FILE's _read and _write methods.
(_funopen_r): Ditto.
(funopen): Ditto.
(_funopen_r): Ditto.
* libc/include/sys/config.h (_READ_WRITE_BUFSIZE_TYPE) Define
as type int if not already defined. Add comment to explain.
* libc/include/sys/reent.h: Include stddef.h.
(struct __sFILE): Change type of last parameter in declaration
of _read and _write methods to _READ_WRITE_BUFSIZE_TYPE.
(struct __sFILE64): Ditto.
* libc/stdio/local.h (__sread): Declare with last parameter set
to _READ_WRITE_BUFSIZE_TYPE.
(__seofread): Ditto.
(__swrite): Ditto.
(__swrite64): Ditto.
* libc/stdio/fvwrite.c (__sfvwrite_r): Change type of local
variables w and s to _READ_WRITE_RETURN_TYPE.
* libc/stdio/fflush.c (__sflush_r): Change type of local variables
n and t to _READ_WRITE_BUFSIZE_TYPE and _READ_WRITE_RETURN_TYPE.
Add local variables flags to keep _flags value.
* libc/stdio/fmemopen.c (fmemreader): Align to above change.
(fmemwriter): Ditto.
* libc/stdio/fopencookie.c (fcreader): Ditto.
(fcwriter): Ditto.
* libc/stdio/funopen.c (funread): Ditto.
(funwrite): Ditto.
(funreader): Ditto.
(funwriter): Ditto.
* libc/stdio/open_memstream.c (memwriter): Ditto.
* libc/stdio/stdio.c (__sread): Ditto.
(__seofread): Ditto.
(__swrite): Ditto.
* libc/stdio64/stdio64.c (__swrite64): Ditto.
2013-10-23 10:04:43 +00:00
Corinna Vinschen
05b637e340
* libc/include/sys/unistd.h (MAXPATHLEN): Delete.
...
* libc/include/sys/param.h (MAXPATHLEN): Define.
* libc/sys/rtems/sys/param.h (MAXPATHLEN): Likewise.
* libc/unix/getcwd.c: Include <sys/param.h> for MAXPATHLEN.
2013-10-18 08:30:29 +00:00
Joel Sherrill
8635dec1a5
2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/sys/rtems/machine/_types.h (__dev_t): Define.
(__dev_t_defined) Likewise.
* libc/include/sys/_types.h (__dev_t): Delete RTEMS specific
definition.
2013-10-15 17:38:32 +00:00
Joel Sherrill
6a0563a2e3
2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/include/machine/_default_types.h (__int8_t): Define via
<stdint.h> provided type.
(__uint8_t): Likewise.
(__int8_least_t): Likewise.
(__uint8_least_t): Likewise.
(__int16_t): Likewise.
(__uint16_t): Likewise.
(__int16_least_t): Likewise.
(__uint16_least_t): Likewise.
(__int32_t): Likewise.
(__uint32_t): Likewise.
(__int32_least_t): Likewise.
(__uint32_least_t): Likewise.
(__int64_t): Likewise.
(__uint64_t): Likewise.
2013-10-15 17:35:38 +00:00
Joel Sherrill
50588a20d4
2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/include/paths.h (_PATH_DEVNULL): Define.
(_PATH_DEVZERO): Likewise.
2013-10-15 17:34:23 +00:00
Jeff Johnston
c7c1a1ca1b
2013-10-01 Petr Hosek <phosek@chromium.org>
...
* configure.host: Disable new posix_spawn function for all
users of posix dir except Cygwin.
* libc/posix/Makefile.am: Add support for new posix_spawn function.
* libc/posix/Makefile.in: Regenerate.
* libc/posix/posix_spawn.c: New file.
* libc/include/spawn.h: Ditto.
2013-10-01 18:08:46 +00:00
Jeff Johnston
44d6d53977
2013-09-12 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/include/sys/cdefs.h: Synchronize with latest FreeBSD
version.
* libc/include/stdatomic.h: Likewise.
2013-09-12 22:05:43 +00:00
Yaakov Selkowitz
45070312d4
* libc/include/search.h (__compar_fn_t): Add typedef.
...
(tdelete, tfind, tsearch): Use it.
* libc/include/stdlib.h (__compar_fn_t): Add typedef.
(bsearch, qsort): Use it.
2013-09-08 07:11:33 +00:00
Corinna Vinschen
f34670b338
* libc/include/stdio_ext.h (__fbufsize): Define as inline function for
...
gcc, as macro otherwise.
(__freading): Ditto.
(__fwriting): Ditto.
(__freadable): Ditto.
(__fwriteable): Ditto.
(__flbf): Ditto.
(__fpending): Ditto.
2013-08-02 07:52:09 +00:00
Corinna Vinschen
b143d094ee
* libc/sys/linux/include/netdb.h, libc/sys/linux/net/getaddrinfo.c,
...
libc/sys/linux/net/getnameinfo.c: Add restrict keyword to getnameinfo()
and getaddrinfo() to increase standards compliance and match glibc.
* libc/include/string.h, libc/string/memccpy.c, libc/string/memcpy.c,
libc/string/stpcpy.c, libc/string/stpncpy.c, libc/string/strcat.c,
libc/string/strncat.c, libc/string/strncpy.c, libc/string/strtok.c,
libc/string/strtok_r.c, libc/string/strxfrm.c
libc/machine/microblaze/strcpy.c, libc/machine/xscale/memcpy.c,
libc/machine/cris/memcpy.c: Add __restrict to prototype to
increase standards compliance.
2013-07-23 07:05:31 +00:00
Corinna Vinschen
6041792ec6
* configure.host: Change to microblaze*.
...
* libc/include/machine/ieeefp.h: Add __MICROBLAZEEL__.
* libc/machine/microblaze/mb_endian.h: New file.
* newlib/libc/machine/microblaze/strcmp.c: Add little endian support.
* newlib/libc/machine/microblaze/strcpy.c: Likewise.
* newlib/libc/machine/microblaze/strlen.c: Likewise.
* configure.in: Change to microblaze*.
* configure: Regenerate.
* microblaze/xilinx.ld: Remove OUTPUT_FORMAT.
2013-07-16 07:48:53 +00:00
Jeff Johnston
dc0cb474bb
2013-07-09 Sabrina Ni <sabrina@andestech.com>
...
* configure.host (machine_dir, syscall_dir, newlib_cflags):
Add settings for nds32*.
* libc/include/machine/ieeefp.h (IEEE_BIG_ENDIAN, IEEE_LITTLE_ENDIAN):
Ditto.
* libc/include/machine/setjmp.h (JBLEN): Ditto.
* libc/machine/configure.in: Add nds32 subdir.
* libc/machine/configure: Regenerated.
* libc/machine/nds32/Makefile.am: New.
* libc/machine/nds32/Makefile.in: New (autogenerated).
* libc/machine/nds32/aclocal.m4: New (autogenerated).
* libc/machine/nds32/configure.in: New.
* libc/machine/nds32/configure: New (autogenerated).
* libc/machine/nds32/setjmp.S: New.
2013-07-09 19:06:47 +00:00
Corinna Vinschen
9b51cd8c6b
* libc/include/sys/config.h (__DYNAMIC_REENT__): Define for RTEMS.
2013-07-09 13:14:31 +00:00
Yaakov Selkowitz
ddbe02c418
* libc/include/sys/types.h (u_char): Add redefinition guard.
...
(u_short, u_int, u_long, caddr_t, daddr_t): Ditto.
2013-07-05 21:46:10 +00:00
Jeff Johnston
a838011d07
2013-07-02 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/reent.h: Fix typo in comment.
2013-07-02 19:26:20 +00:00
Jeff Johnston
27ad840ea5
2013-06-26 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/stdio.h: Specify std streams always in terms
of _REENT.
* libc/include/wchar.h: Ditto.
* libc/include/sys/reent.h: Remove _RENT_ONLY check around
setting of _REENT macro.
2013-06-26 21:34:16 +00:00
Yaakov Selkowitz
e3928ce48c
* libc/include/string.h (rawmemchr): Declare.
...
* libc/string/Makefile.am (ELIX_4_SOURCES): Add rawmemchr.c.
(CHEWOUT_FILES): Add rawmemchr.def.
* libc/string/Makefile.in: Regenerate.
* libc/string/rawmemchr.c: New file.
2013-06-24 15:11:24 +00:00
Corinna Vinschen
99943e12c8
* libc/include/sys/reent.h (_ATEXIT_INIT_PTR): Remove.
...
(_REENT_INIT_ATEXIT_PTR): Remove.
(_REENT_INIT_PTR): Reduce code size if _REENT_SMALL.
2013-06-24 09:28:32 +00:00
Corinna Vinschen
af9f65e0c4
* libc/include/cdefs.h (__has_extension): New define.
...
(__has_feature): Likewise.
(__has_include): Likewise.
(__has_builtin): Likewise.
* libc/include/stdatomic.h: New.
2013-06-07 09:14:39 +00:00
Corinna Vinschen
742fb38c56
* libc/include/sys/cdefs.h (_Static_assert): Accommodate gcc >= 4.6.
2013-05-22 17:53:07 +00:00
DJ Delorie
2f2a304234
[newlib]
...
* configure.host (msp430): Add.
* libc/include/machine/ieeefp.h: Add MSP430 support.
* libc/include/machine/setjmp.h: Likewise.
* libc/include/sys/config.h: Likewise.
* libc/machine/configure.in (msp430): Add.
* libc/machine/configure: Regenerate.
* libc/machine/msp430: New directory.
[libgloss]
* configure.in (msp430*-*-elf): Add.
* configure: Regenerate.
* msp430: New directory.
2013-05-13 21:39:51 +00:00
Jeff Johnston
1b7ad41e50
2013-05-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/include/sys/config.h (_REENT_GLOBAL_ATEXIT): Define for
RTEMS.
* libc/include/sys/reent.h (_reent): Use _REENT_GLOBAL_ATEXIT.
(_global_atexit): Declare if _REENT_GLOBAL_ATEXIT is defined.
* libc/reent/reent.c (_reclaim_reent): Remove atexit cleanup if
_REENT_GLOBAL_ATEXIT is defined.
(_wrapup_reent): Remove atexit handling if _REENT_GLOBAL_ATEXIT
is defined.
* libc/stdlib/__atexit.c (_global_atexit0): Define if
_REENT_GLOBAL_ATEXIT is defined.
* libc/stdlib/__call_atexit.c (_global_atexit): Define if
_REENT_GLOBAL_ATEXIT is defined.
2013-05-08 23:13:51 +00:00
Jeff Johnston
6bd6954bdc
2013-05-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/include/sys/reent.h (_ATEXIT_INIT): Define.
(_ATEXIT_INIT_PTR): Likewise.
(_REENT_INIT_ATEXIT): Likewise.
(_REENT_INIT_ATEXIT_PTR): Likewise.
(_GLOBAL_ATEXIT): Likewise.
* libc/stdlib/__atexit.c (_GLOBAL_ATEXIT0): Define.
(__register_exitproc): Use _GLOBAL_ATEXIT and _GLOBAL_ATEXIT0.
* libc/stdlib/__call_atexit.c (__call_exitprocs): Likewise.
-
2013-05-07 21:40:10 +00:00
Jeff Johnston
c16862d85b
2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
...
* configure.host (machine_dir, sys_dir, syscall_dir, newlib_cflags):
Add settings for nios2*.
* libc/include/machine/ieeefp.h (IEEE_BIG_ENDIAN, IEEE_LITTLE_ENDIAN):
Likewise.
* libc/include/machine/setjmp.h (JBLEN, JBTYPE): Likewise.
* libc/machine/configure.in: Add nios2 subdir.
* libc/machine/configure: Regenerated.
* libc/machine/nios2/Makefile.am: New.
* libc/machine/nios2/Makefile.in: New (autogenerated).
* libc/machine/nios2/aclocal.m4: New (copied from mips version).
* libc/machine/nios2/configure.in: New.
* libc/machine/nios2/configure: New (autogenerated).
* libc/machine/nios2/setjmp.s: New.
2013-05-06 18:23:09 +00:00
Jeff Johnston
2a55aa79a9
2013-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/include/sys/reent.h (_REENT_INIT_PTR): Reduce code size.
2013-04-29 20:56:05 +00:00
Corinna Vinschen
1875ee55d3
Port newlib to x86_64-pc-cygwin.
...
* 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.
2013-04-23 09:42:25 +00:00
Corinna Vinschen
9770af188f
* libc/include/sys/cdefs.h: Align with latest FreeBSD file header.
...
* libc/include/sys/features.h (__GNUC_PREREQ__): Define.
2013-04-22 10:28:05 +00:00
Corinna Vinschen
7eb805f68d
* libc/sys/rtems/sys/queue.h: Delete file.
...
* 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-16 10:25:16 +00:00
Corinna Vinschen
99e6ee04d6
Revert to original patch
2013-04-11 13:01:08 +00:00
Corinna Vinschen
9b7759ae75
* libc/include/stdlib.h (strtof, strtoll, strtoull, strtold): Also
...
prototype if C++11 or later.
2013-04-11 10:23:05 +00:00
Corinna Vinschen
2d8f1ea62a
* libc/include/machine/setjmp.h (sigjmp_buf): Fix definition of
...
sigjmp_buf size if _JBTYPE is defined.
2013-02-28 16:42:21 +00:00
Corinna Vinschen
c2e3ff288d
* libc/include/malloc.h (struct mallinfo): Convert type of all members
...
to size_t to match all targets.
2013-02-26 14:25:13 +00:00
Corinna Vinschen
7080b36417
* libc/include/sys/_types.h (_ssize_t): Define as signed equivalent of
...
size_t with GCC.
2013-02-21 12:27:11 +00:00
Joel Sherrill
6c3f590cd9
2013-01-22 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libc/include/pthread.h: Add PTHREAD_RWLOCK_INITIALIZER.
Fix typo on PTHREAD_COJND_INITIALIZER.
2013-01-22 21:20:08 +00:00
Corinna Vinschen
38305196bf
* libc/include/string.h: Fix preprocessor expressions using
...
_XOPEN_SOURCE.
2013-01-12 10:55:09 +00:00
Jeff Johnston
17ecab12a8
2012-12-18 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/math.h: Remove the log2f macro.
2012-12-18 22:41:53 +00:00
Jeff Johnston
b060af2264
2012-12-18 Craig Howland <howland@LGSInnovations.com>
...
* libc/include/math.h: Add recognition of values 1 and 2 for
FLT_EVAL_METHOD.
2012-12-18 21:20:51 +00:00
Corinna Vinschen
0772f3f1c1
* libc/include/sys/reent.h (__sFILE): Change type of _offset
...
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().
2012-11-29 16:28:30 +00:00
Corinna Vinschen
7b2d80eb87
* libc/include/inttypes.h: Add and use __INTTYPES_EXP().
2012-11-26 16:26:06 +00:00
Christopher Faylor
86fd769f37
* libc/include/sys/time.h: Avoid guarding other than timeval declaration with
...
_TIMEVAL_DEFINED. Move timeval related macros under _TIMEVAL_DEFINED control.
2012-11-12 15:57:35 +00:00
Corinna Vinschen
de1e3bb2c9
* libc/include/locale.h (NULL): Fetch definition via stddef.h.
...
* 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.
2012-11-01 11:51:12 +00:00
Corinna Vinschen
f9b3628010
* libc/include/sys/signal.h (sigset_t): Don't define when building
...
for Cygwin.
2012-10-26 09:23:46 +00:00
Corinna Vinschen
6f7ae529ad
* libc/include/string.h (strdup, strndup): Declare if not
...
__STRICT_ANSI__ or _XOPEN_SOURCE is defined appropriately.
2012-10-22 15:16:48 +00:00
Corinna Vinschen
e054398980
* libc/include/stdlib.h (strtof, strtoll, strtoull, strtold):Prototype
...
if not __STRICT_ANSI__ or stdc version C99 or greater.
2012-10-22 15:15:21 +00:00
Corinna Vinschen
25742157d7
* libc/include/assert.h (static_assert): Define.
2012-10-16 19:00:30 +00:00
Corinna Vinschen
5eceb3958e
* libc/include/sys/features.h (__GNUC_PREREQ): Define. Use
...
throughout in place of explicit GNUC version checks.
* libc/include/_ansi.h (_NOINLINE): Define.
(_NOINLINE_STATIC): Define.
* libc/stdio/vfprintf.c (__sbprintf): Define _NOINLINE_STATIC.
2012-10-16 18:45:24 +00:00
Jeff Johnston
c3fe5bf771
2012-09-26 Ian Bolton <ian.bolton@arm.com>
...
Jim MacArthur <jim.macarthur@arm.com>
Marcus Shawcroft <marcus.shawcroft@arm.com>
Nigel Stephens <nigel.stephens@arm.com>
Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
Richard Earnshaw <rearnsha@arm.com>
Sofiane Naci <sofiane.naci@arm.com>
Tejas Belagod <tejas.belagod@arm.com>
Yufeng Zhang <yufeng.zhang@arm.com>
* configure.host: Add AArch64.
* libc/include/machine/ieeefp.h: Add AArch64.
* libc/include/machine/setjmp.h: Add AArch64.
* libc/include/machine/time.h: Add AArch64.
* libc/include/sys/config.h: Add AArch64.
* libc/machine/aarch64/Makefile.am: New file.
* libc/machine/aarch64/Makefile.in: Generated.
* libc/machine/aarch64/aclocal.m4: Generated.
* libc/machine/aarch64/configure: Generated.
* libc/machine/aarch64/configure.in: New file.
* libc/machine/aarch64/setjmp.S: New file.
* libc/machine/configure.in: Add AArch64.
* libc/machine/configure: Re-generated.
* libm/machine/aarch64/Makefile.am: New file.
* libm/machine/aarch64/Makefile.in: Generated.
* libm/machine/aarch64/aclocal.m4: Generated.
* libm/machine/aarch64/configure: Generated.
* libm/machine/aarch64/configure.in: New file.
* libm/machine/aarch64/s_ceil.c: New file.
* libm/machine/aarch64/s_floor.c: New file.
* libm/machine/aarch64/s_fma.c: New file.
* libm/machine/aarch64/s_fmax.c: New file.
* libm/machine/aarch64/s_fmin.c: New file.
* libm/machine/aarch64/s_llrint.c: New file.
* libm/machine/aarch64/s_llround.c: New file.
* libm/machine/aarch64/s_lrint.c: New file.
* libm/machine/aarch64/s_lround.c: New file.
* libm/machine/aarch64/s_nearbyint.c: New file.
* libm/machine/aarch64/s_rint.c: New file.
* libm/machine/aarch64/s_round.c: New file.
* libm/machine/aarch64/s_trunc.c: New file.
* libm/machine/aarch64/sf_ceil.c: New file.
* libm/machine/aarch64/sf_floor.c: New file.
* libm/machine/aarch64/sf_fma.c: New file.
* libm/machine/aarch64/sf_fmax.c: New file.
* libm/machine/aarch64/sf_fmin.c: New file.
* libm/machine/aarch64/sf_llrint.c: New file.
* libm/machine/aarch64/sf_llround.c: New file.
* libm/machine/aarch64/sf_lrint.c: New file.
* libm/machine/aarch64/sf_lround.c: New file.
* libm/machine/aarch64/sf_nearbyint.c: New file.
* libm/machine/aarch64/sf_rint.c: New file.
* libm/machine/aarch64/sf_round.c: New file.
* libm/machine/aarch64/sf_trunc.c: New file.
* libm/machine/configure.in: Add AArch64.
* libm/machine/configure: Re-generated.
2012-09-26 20:06:50 +00:00
Anthony Green
af32eb5e28
bi-endian support for moxie.
2012-09-13 23:57:33 +00:00
Corinna Vinschen
1f232abc89
Throughout, run newlib with -Wall -Werror option and fix bugs and
...
compiler warnings found this way.
* libc/stdio/freopen.c (_freopen_r): Fix bug setting _flags.
* libc/include/stdio.h (_rename): Define when building newlib.
* libc/include/sys/signal.h (_kill): Ditto.
* libc/include/sys/stat.h (_mkdir): Ditto.
* libc/include/sys/time.h (_gettimeofday): Ditto.
* libc/include/sys/times.h (_times): Ditto.
* libc/include/sys/wait.h (_wait): Ditto.
* libc/locale/lmessages.c (empty): Don't define for Cygwin.
* libc/locale/lmonetary.c (cnv): Ditto.
* libc/locale/nl_langinfo.c (nl_langinfo): Ditto for variable s.
* libc/posix/collate.c: Throughout cast to avoid compiler warning.
* libc/posix/engine.c (matcher): Initialize dp to avoid compiler
warning.
* libc/posix/glob.c: Disable on Cygwin. Explain why.
* libc/posix/regcomp.c: Fix "uninitialized" compiler warnings.
(dissect): Deliberately silence gcc compiler warning. Add comment to
explain why.
* libc/posix/wordexp.c (wordexp): Remove num_bytes variable since result
is never used.
* libc/posix/popen.c (popen): Ditto for variable last.
* libc/reent/mkdirr.c: Include sys/stat.h.
* libc/reent/renamer.c: Include stdio.h.
* libc/search/hash.c: Throughout use underscored variants of the stat
function family.
(init_hash): Add missing definition for the __USE_INTERNAL_STAT64 case.
* libc/search/hash_bigkey.c (__big_insert): Add parenthesis to avoid
compiler warning.
* libc/search/hash_page.c (overflow_page): Initalize freep to NULL to
avoid compiler warning.
* libc/stdio/asiprintf.c (_asiprintf_r): Cast unsigned char * to char *
to avoid compiler warning.
(asiprintf): Ditto.
* libc/stdio/asprintf.c (_asprintf_r): Ditto.
(asprintf): Ditto.
* libc/stdio/vasiprintf.c (_vasiprintf_r): Ditto.
* libc/stdio/vasprintf.c (_vasprintf_r): Ditto.
* libc/stdio/mktemp.c (_gettemp): Cast to unsigned char in call to
isdigit to avoid compiler warning.
* libc/stdio/vfprintf.c (_VFPRINTF_R): Initialize variables used for
grouping to avoid compiler warning. Only define and set nseps and
nrepeats if they are really used.
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Ditto. Only define state if
it is really used.
* libc/stdio/vfscanf.c (u_char): Revert to be defined as unsigned char.
(__SVFSCANF_R): Cast fmt in call to __mbtowc.
* libc/stdlib/mbtowc_r.c (JIS_state_table): Disable when building
Cygwin.
(JIS_action_table): Ditto.
* libc/stdlib/wctomb_r.c (__utf8_wctomb): Add parenthesis to avoid
compiler warning.
* libc/string/strcasestr.c: Deliberately silence gcc compiler warning.
Add comment to explain why.
* libc/time/strptime.c (strptime): Cast to unsigned char in calls to
isspace to avoid compiler warning.
* libm/math/e_atan2.c (__ieee754_atan2): Add parenthesis to avoid
compiler warning.
* libm/math/e_exp.c (__ieee754_exp): Initialize k to 0 to avoid
compiler warning. Drop setting it to 0 later.
* libm/math/ef_exp.c (__ieee754_expf): Ditto.
* libm/math/e_pow.c (__ieee754_pow): Add braces to avoid compiler
warning.
* libm/math/ef_pow.c (__ieee754_powf): Ditto.
* libm/math/er_lgamma.c (__ieee754_lgamma_r): Initialize nadj to 0 to
avoid compiler warning.
* libm/math/erf_lgamma.c (__ieee754_lgammaf_r): Ditto.
* libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Ditto for variable z.
* libm/common/sf_round.c (roundf): Remove signbit variable since result
is never used.
2012-08-08 11:04:18 +00:00
Corinna Vinschen
0246baaea2
Allow building of Cygwin using Mingw64 SDK headers:
...
* libc/include/sys/time.h: Drop _WINSOCK_H guard. Just use
_TIMEVAL_DEFINED instead.
* libc/include/sys/types.h: Check for _WINSOCKAPI_ along with
_WINSOCK_H.
* libc/include/sys/unistd.h: Ditto.
2012-07-06 10:41:21 +00:00
Christopher Faylor
f804f416f3
* libc/include/sys/types.h: Don't use the same preprocessor guard for time_t,
...
timespec, and itimerspec. Add a separate guard specifically for timespec and
always unconditionally define itimerspec.
2012-06-26 16:03:12 +00:00
Corinna Vinschen
507b172d8d
* libc/include/string.h (memrchr): Declare.
...
* libc/string/Makefile.am (ELIX_4_SOURCES): Add memrchr.c.
(CHEWOUT_FILES): Add memrchr.def.
* libc/string/Makefile.in: Regenerate.
* libc/string/memrchr.c: New file.
2012-05-10 08:34:08 +00:00
Jeff Johnston
eab1d3e125
2012-03-09 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/machine/setjmp-dj.h: Modify license to include
modification in clause as permitted by DJ Delorie.
* libc/machine/arm/access.c: Ditto.
* libc/machine/i386/setjmp.S: Ditto.
* libc/sys/h8300hms/sys/file.h: Ditto.
* libc/sys/linux/machine/i386/setjmp.S: Ditto.
* libc/sys/sysmec/access.c: Ditto.
* libc/sys/sysnecv850/access.c: Ditto.
2012-03-09 20:26:39 +00:00
Jeff Johnston
9edde1d2c4
2012-02-21 Jeremy Bennett <jeremy.bennett@embecosm.com>
...
Alan Lehotsky <apl@alum.mit.edu>
Joern Rennecke <joern.rennecke@embecosm.com>
* configure.host: Add Epiphany support.
* libc/include/machine/ieeefp.h: Likewise.
* libc/include/machine/setjmp.h: Likewise.
* libc/machine/configure.in, libc/sys/configure.in: Likewise.
* libc/machine/configure, libc/sys/configure: Regenerate.
* libc/machine/epiphany, libc/sys/epiphany: New directories.
* NEWS: Mention addition of Epiphany.
2012-02-21 22:34:31 +00:00
Eric Blake
833630b859
* libc/include/_ansi.h (_ELIDABLE_INLINE): Fix C99 mode.
2012-02-09 19:58:33 +00:00
Corinna Vinschen
dd9ee39045
* libc/include/inttypes.h: Redefine pointer type macros.
2012-02-07 16:42:20 +00:00
Yaakov Selkowitz
2af8babd93
* libc/include/tgmath.h: New header.
2012-01-12 11:19:31 +00:00
Yaakov Selkowitz
5ecc040cff
* libc/include/sys/unistd.h [__CYGWIN__] (get_current_dir_name):
...
Declare.
2012-01-09 22:49:20 +00:00
Yaakov Selkowitz
3182cdfaf0
* libc/include/complex.h: Fix "/*" within comment warning.
2012-01-09 22:46:34 +00:00
Corinna Vinschen
4b4391b74d
* libc/include/process.h: Remove Cygwin-only header.
2012-01-09 17:06:20 +00:00
DJ Delorie
d1fc77322f
[libgloss]
...
* configure.in: Add rl78.
* configure: Regenerate.
* rl78: New directory
[newlib]
* configure.host: Add rl78.
* libc/include/machine/ieeefp.h: Add rl78 support.
* libc/include/machine/setjmp.h: Add rl78 support.
* libc/machine/configure.in: Add rl78.
* libc/machine/rl78: New directory.
2011-11-29 06:33:49 +00:00
Corinna Vinschen
e8fdf15a75
* libc/include/process.h: Remove exec family function declarations.
...
Add comment.
* libc/include/sys/unistd.h (execlpe): Declare for Cygwin.
2011-08-19 14:29:34 +00:00
Joel Sherrill
529aa781b6
2011-08-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/include/sys/types.h: XML and RTEMS define
_UNIX98_THREAD_MUTEX_ATTRIBUTES and can use the standard
definitions. This avoids redefinition warnings.
2011-08-01 17:22:18 +00:00
Yaakov Selkowitz
792c8bcff2
* libc/include/time.h [_POSIX_CLOCK_SELECTION] (clock_nanosleep):
...
Declare.
* libc/include/sys/features.h [__CYGWIN__] (_POSIX_CLOCK_SELECTION):
Define.
2011-07-20 19:41:15 +00:00
Yaakov Selkowitz
00900ab098
* libc/include/sys/unistd.h (_CS_XBS5_WIDTH_RESTRICTED_ENVS): Define.
...
(_CS_V6_ENV): Fix definition.
2011-07-20 01:14:50 +00:00
Jeff Johnston
38e356f0e4
2011-06-09 Yaakov Selkowitz <yselkowitz@...>
...
* libc/include/string.h (strdupa): New macro function.
(strndupa): New macro function.
2011-06-10 18:30:38 +00:00