summaryrefslogtreecommitdiffstats
path: root/newlib/libc
Commit message (Collapse)AuthorAgeFilesLines
* * libc/machine/sparc/setjmp.S (longjmp): Use register g1 instead of g6.Corinna Vinschen2014-05-151-4/+4
|
* * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS when doubleCorinna Vinschen2014-05-141-0/+2
| | | | options is not __RL78_64BIT_DOUBLES__.
* * libc/include/stdint.h (WCHAR_MIN): Copy definition from wchar.h.Corinna Vinschen2014-05-122-2/+19
| | | | | | (WCHAR_MAX): Ditto. * libc/include/wchar.h (WCHAR_MIN): Add comment. (WCHAR_MAX): Ditto.
* * libc/include/stdio.h (tempnam): Declare as __BSD_VISIBLE orCorinna Vinschen2014-05-091-1/+3
| | | | __XSI_VISIBLE or if __POSIX_VISIBLE >= 200112.
* * libc/include/stdio.h (fcloseall): Declare as __GNU_VISIBLE only.Corinna Vinschen2014-05-091-2/+4
| | | | (renameat): Drop explicit __CYGWIN__ dependency.
* * libc/include/stdio.h: Declare various C99 printf/scanf functions forCorinna Vinschen2014-05-051-1/+1
| | | | C++11, too.
* * libc/machine/arm/strcmp-arm-tiny.S: New file.Richard Earnshaw2014-04-229-741/+1843
| | | | | | | | | | | | | * libc/machine/arm/strcmp-armv4.S: New file. * libc/machine/arm/strcmp-armv4t.S: New file. * libc/machine/arm/strcmp-armv6.S: New file. * libc/machine/arm/strcmp-armv7.S: New file. * libc/machine/arm/strcmp-armv7m.S: New file. * libc/machine/arm/strcmp.S: Replace with wrapper for various implementations. * libc/machine/arm/Makefile.am (strcmp.o, strcmp.obj): Add dependencies. * libc/machine/arm/Makefile.in: Regenerated.
* * libc/sys/rtems/sys/cpuset.h (CPU_SET_S): Add const qualifier.Corinna Vinschen2014-04-141-2/+2
| | | | (CPU_SET): Likewise.
* * libc/machine/rl78/setjmp.S: Add RL78/G10 support.DJ Delorie2014-04-091-0/+21
|
* 2014-04-04 Ashish Kapania <akapania@ti.com>Jeff Johnston2014-04-0410-3/+6436
| | | | | | | | | | | * configure.host (sys_dir, newlib_cflags): Set sys_dir to tirtos and use -D__DYNAMIC_REENT__ and -DMALLOC_PROVIDED compiler options for TIRTOS target. * libc/stdio/local.h (_STDIO_CLOSE_PER_REENT_STD_STREAMS): Change #ifdef to not define this macro when __tirtos__ is defined. * libc/sys/tirtos : Add support for TIRTOS. * libc/sys/tirtos/Makefile.am, libc/sys/tirtos/lock.c: New files. * libc/sys/tirtos/configure.in, libc/sys/tirtos/include/sys/lock.h: Ditto.
* * libc/machine/arm/acle-compat.h: New file.Richard Earnshaw2014-03-272-19/+201
| | | | * libc/machine/arm/arm_asm.h: Use it.
* 2014-03-21 Maciej W. Rozycki <macro@codesourcery.com>Jeff Johnston2014-03-212-2/+59
| | | | | | | | | | | | | | * libc/stdlib/gd_qnan.h (f_QNAN, d_QNAN0, d_QNAN1): Add MIPS versions. (ld_QNAN0, ld_QNAN1, ld_QNAN2, ld_QNAN3): Don't define for MIPS. (ldus_QNAN0, ldus_QNAN1, ldus_QNAN2, ldus_QNAN3, ldus_QNAN4): Likewise. * libc/stdlib/ldtoa.c (nan113, nan64, nan53, nan24): Add MIPS versions. (enan): Handle legacy MIPS payloads. * libm/common/s_nan.c (nan): Use __builtin_nan if supported by the compiler. * libm/common/sf_nan.c (nanf): Likewise.
* 2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>Jeff Johnston2014-03-212-0/+79
| | | | | * libc/machine/nds32/configure: Regenerated. * libc/machine/nds32/configure.in: Add AC_NOEXECUTABLES.
* 2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>Jeff Johnston2014-03-214-6/+1017
| | | | | | | | * libc/machine/nds32/Makefile.am: Use C code implemented memcpy, memset for 'ISA V3M'. * libc/machine/nds32/Makefile.in: Generated. * libc/machine/nds32/configure: Generated. * libc/machine/nds32/configure.in: Detect IS_NDS32_ISA_V3M.
* 2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>Jeff Johnston2014-03-211-11/+13
| | | | * libc/machine/nds32/setjmp.S: Keep jmp_buff sync with GDB.
* 2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>Jeff Johnston2014-03-211-5/+4
| | | | * libc/machine/nds32/setjmp.S: Optimize.
* * libc/include/stdlib.h (strtold): Define if _HAVE_LONG_DOUBLE isCorinna Vinschen2014-03-072-4/+10
| | | | | | defined. * libc/stdlib/strtold.c (strtold): Ditto. Call strtod on systems with long double == double, _strtold otherwise.
* * libc/include/time.h (__TM_GMTOFF): Remove Cygwin-specific definition.Corinna Vinschen2014-03-051-10/+0
| | | | (__TM_ZONE): Ditto.
* * libc/include/time.h (__TM_GMTOFF): Define on Cygwin.Corinna Vinschen2014-03-051-0/+16
| | | | | (__TM_ZONE): Ditto. (struct tm): Add __TM_GMTOFF and __TM_ZONE members if they are defined.
* * libc/include/machine/_default_types.h: Define unsigned type usingCorinna Vinschen2014-03-041-0/+36
| | | | signed type macros in case unsigned type macros are not available.
* * libc/stdio/open_memstream.c (internal_open_memstream_r): InitializeCorinna Vinschen2014-02-201-0/+1
| | | | c->pos to 0.
* 2014-02-11 Joey Ye <joey.ye@arm.com>Jeff Johnston2014-02-111-3/+3
| | | | | * libc/sys/arm/syscalls.c (_sbrk): Define as weak symbols. (_read, _write): Ditto.
* * libc/include/pwd.h: Include <sys/cdefs.h>.Corinna Vinschen2014-02-092-0/+2
| | | | * libc/include/grp.h: Ditto.
* * libc/include/setjmp.h (longjmp): Fix copy/paste error.Corinna Vinschen2014-01-201-1/+2
|
* * libc/include/setjmp.h (longjmp): Mark "noreturn" when building withCorinna Vinschen2014-01-191-1/+5
| | | | GCC.
* * libc/include/pwd.h: Use __foo_VISIBLE macros from sys/cdefs.h.Corinna Vinschen2014-01-171-2/+10
| | | | (setpassent): Declare.
* * libc/include/sys/_default_fcntl.h (LOCK_SH): Define.Corinna Vinschen2014-01-171-1/+11
| | | | | | | (LOCK_EX): Likewise. (LOCK_NB): Likewise. (LOCK_UN): Likewise. (flock): Declare.
* Introduce _STDIO_BSD_SEMANTICS flag to switch fclose/exit file flushingCorinna Vinschen2014-01-174-6/+36
| | | | | | | | | | | | | | 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-06 Sebastian Huber <sebastian.huber@embedded-brains.de>Jeff Johnston2014-01-064-10/+26
| | | | | | | | | | | | | | | | | | | | | | | | * 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 Mike Frysinger <vapier@gentoo.org>Jeff Johnston2014-01-061-10/+10
| | | | | | | | | | * 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.
* 2013-01-06 Mike Frysinger <vapier@gentoo.org>Jeff Johnston2014-01-061-0/+1
| | | | * libc/ctype/jp2uc.c: Include string.h.
* 2013-12-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2013-12-2388-1117/+1297
| | | | | | | | | | | | | | | | | | * 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-22 JF Bastien <jfb@chromium.org>Jeff Johnston2013-12-233-6/+22
| | | | | | | | | | | * 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.
* * libc/stdio/vfwscanf.c (__SVFWSCANF_R): Fix fetching decimal_point inCorinna Vinschen2013-12-191-5/+6
| | | | !_MB_CAPABLE as well as in !__HAVE_LOCALE_INFO_EXTENDED__ case.
* * vfscanf.c (BUF): Change definition to take multibyte decimal pointCorinna Vinschen2013-12-182-21/+86
| | | | | | | into account. (__SVFSCANF_R): Handle radix char language-dependent per POSIX. (__SVFWSCANF_R): Ditto.
* 2013-12-10 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2013-12-103-0/+19
| | | | | | | | | | | | * 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.
* * libc/sys/rtems/include/limits.h: Update page size to matchCorinna Vinschen2013-12-101-1/+1
| | | | libc/sys/rtems/machine/param.h.
* * libc/sys/rtems/sys/cpuset.h: Use __inline instead of inline.Corinna Vinschen2013-12-031-31/+30
|
* * libc/include/machine/_default_types.h: Move extern "C" afterCorinna Vinschen2013-12-035-156/+245
| | | | | | | | | | | | | | | | | | | | | | | 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-11-29 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-11-291-3/+44
| | | | | | | | | | | | | * 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 Jennifer Averett <jennifer.averett@oarcorp.com>Joel Sherrill2013-11-293-3/+41
| | | | | | | | | | | | | * 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-27 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-11-275-68/+262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/sys/rtems/cpusetalloc.c: New file. * libc/sys/rtems/cpusetfree.c: Likewise. * libc/sys/rtems/Makefile.am (lib_a_SOURCES): Add new files. * libc/sys/rtems/Makefile.in: Regenerate. * libc/sys/rtems/sys/cpuset.h: Delete #if 0 block. Include <stddef.h> for size_t. (_NCPUBITS): Avoid NBBY and assume 8 bits per char. (__cpuset_mask): Use int instead of size_t parameter for Linux compatibility. (__cpuset_index): Likewise. (__cpuset_alloc): Declare. (__cpuset_free): Likewise. (CPU_ALLOC_SIZE): Likewise. (CPU_ALLOC): Define. (CPU_FREE): Likewise. (CPU_ZERO_S): Likewise. (CPU_FILL_S): Likewise. (CPU_SET_S): Likewise. (CPU_CLR_S): Likewise. (CPU_ISSET_S): Likewise. (CPU_COUNT_S): Likewise. (CPU_AND_S): Likewise. (CPU_OR_S): Likewise. (CPU_XOR_S): Likewise. (CPU_NAND_S): Likewise. (CPU_EQUAL_S): Likewise. (CPU_ZERO): Use CPU_ZERO_S(). (CPU_FILL): Use CPU_FILL_S(). (CPU_SET): Use CPU_SET_S(). (CPU_CLR): Use CPU_CLR_S(). (CPU_ISSET): Use CPU_ISSET_S(). (CPU_COUNT): Use CPU_COUNT_S(). (CPU_AND): Use CPU_AND_S(). (CPU_OR): Use CPU_OR_S(). (CPU_XOR): Use CPU_XOR_S(). (CPU_NAND): Use CPU_NAND_S(). (CPU_EQUAL): Use CPU_EQUAL_S(). (CPU_CMP): Delete superfluous const qualifier. (CPU_EMPTY): Likewise.
* * libc/machine/mips/setjmp.S: Fix definition of macro FPR_LAYOUTCorinna Vinschen2013-11-271-0/+1
| | | | for ABI == N32.
* 2013-11-26 Matheus Almeida <Matheus.Almeida@imgtec.com>Jeff Johnston2013-11-262-12/+37
| | | | | | | * 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 Julio Gutierrez <jgutleyva@gmail.com>Joel Sherrill2013-11-2638-218/+275
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *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-25 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2013-11-262-5/+5
| | | | | * libc/iconv/lib/iconv.c, libc/time/strftime.c: Change "restrict<" to "restrict <" to fix formatting.
* * libc/posix/posix_spawn.c: Drop using namespace.h.Corinna Vinschen2013-11-261-2/+0
|
* * libc/posix/posix_spawn.c: Eliminate OS function calls not presentCorinna Vinschen2013-11-261-9/+9
| | | | | | | | | in newlib or Cygwin. (process_spawnattr): Use sigprocmask rather than _sigprocmask. Use sigaction rather than _sigaction. (process_file_actions_entry): Use dup2 rather than _dup2. (do_posix_spawn): Use execvpe rather than _execvpe. Use waitpid rather than _waitpid.
* 2013-11-25 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2013-11-252-5/+5
| | | | | * libc/iconv/lib/iconv.c, libc/time/strftime.c: Change "restrict<" to "restrict <" to fix formatting.
* * libc/include/spawn.h (posix_spawn_file_actions_destroy): Fix typoCorinna Vinschen2013-11-252-2/+2
| | | | | in function name. * libc/posix/posix_spawn.c (posix_spawn_file_actions_destroy): Ditto.