summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include
Commit message (Collapse)AuthorAgeFilesLines
* * libc/include/sys/features.h (__GNUC_PREREQ): Define. UseCorinna Vinschen2012-10-166-14/+27
| | | | | | | 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-09-26 Ian Bolton <ian.bolton@arm.com>Jeff Johnston2012-09-264-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* bi-endian support for moxie.Anthony Green2012-09-131-0/+4
|
* Throughout, run newlib with -Wall -Werror option and fix bugs andCorinna Vinschen2012-08-086-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Allow building of Cygwin using Mingw64 SDK headers:Corinna Vinschen2012-07-063-5/+5
| | | | | | | | * 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.
* * libc/include/sys/types.h: Don't use the same preprocessor guard for time_t,Christopher Faylor2012-06-261-1/+4
| | | | | timespec, and itimerspec. Add a separate guard specifically for timespec and always unconditionally define itimerspec.
* * libc/include/string.h (memrchr): Declare.Corinna Vinschen2012-05-101-0/+1
| | | | | | | * 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-03-09 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2012-03-091-1/+1
| | | | | | | | | | | * 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-02-21 Jeremy Bennett <jeremy.bennett@embecosm.com>Jeff Johnston2012-02-212-0/+11
| | | | | | | | | | | | | 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.
* * libc/include/_ansi.h (_ELIDABLE_INLINE): Fix C99 mode.Eric Blake2012-02-091-10/+13
|
* * libc/include/inttypes.h: Redefine pointer type macros.Corinna Vinschen2012-02-071-8/+8
|
* * libc/include/tgmath.h: New header.Yaakov Selkowitz2012-01-121-0/+185
|
* * libc/include/sys/unistd.h [__CYGWIN__] (get_current_dir_name):Yaakov Selkowitz2012-01-091-0/+3
| | | | Declare.
* * libc/include/complex.h: Fix "/*" within comment warning.Yaakov Selkowitz2012-01-091-1/+1
|
* * libc/include/process.h: Remove Cygwin-only header.Corinna Vinschen2012-01-091-37/+0
|
* [libgloss]DJ Delorie2011-11-292-0/+12
| | | | | | | | | | | | | * 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.
* * libc/include/process.h: Remove exec family function declarations.Corinna Vinschen2011-08-192-10/+6
| | | | | Add comment. * libc/include/sys/unistd.h (execlpe): Declare for Cygwin.
* 2011-08-01 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2011-08-011-34/+38
| | | | | | * libc/include/sys/types.h: XML and RTEMS define _UNIX98_THREAD_MUTEX_ATTRIBUTES and can use the standard definitions. This avoids redefinition warnings.
* * libc/include/time.h [_POSIX_CLOCK_SELECTION] (clock_nanosleep):Yaakov Selkowitz2011-07-202-1/+17
| | | | | | Declare. * libc/include/sys/features.h [__CYGWIN__] (_POSIX_CLOCK_SELECTION): Define.
* * libc/include/sys/unistd.h (_CS_XBS5_WIDTH_RESTRICTED_ENVS): Define.Yaakov Selkowitz2011-07-201-1/+2
| | | | (_CS_V6_ENV): Fix definition.
* 2011-06-09 Yaakov Selkowitz <yselkowitz@...>Jeff Johnston2011-06-101-0/+14
| | | | | * libc/include/string.h (strdupa): New macro function. (strndupa): New macro function.
* strerror: allow user hook to comply with POSIX rulesEric Blake2011-05-251-0/+3
| | | | | | | | | | | * libc/string/strerror.c (strerror): Split body into... (_strerror_r): ...new reentrant function. * libc/string/u_strerr.c (_user_strerror): Update signature. * libc/include/stdio.h (_strerror_r): New prototype. * libc/posix/collate.c (__collate_err): Adjust callers. * libc/stdio/perror.c (_perror_r): Likewise. * libc/string/strerror_r.c (strerror_r): Likewise. * libc/string/xpg_strerror_r.c (__xpg_strerror_r): Likewise.
* * libc/include/stdio_ext.h: New header.Yaakov Selkowitz2011-05-191-0/+22
| | | | * libc/stdio/fpurge.c [!__rtems__] (__fpurge): New function.
* * libc/include/time.h (CLOCK_PROCESS_CPUTIME_ID): Rename fromYaakov Selkowitz2011-05-162-4/+4
| | | | | | | CLOCK_PROCESS_CPUTIME. (CLOCK_THREAD_CPUTIME_ID): Rename from CLOCK_THREAD_CPUTIME. * libc/include/sys/features.h [__CYGWIN__] (_POSIX_CPUTIME): Define. (_POSIX_THREAD_CPUTIME): Define.
* * libc/include/sys/features.h (_POSIX_THREAD_ATTR_STACKADDR): DefineCorinna Vinschen2011-05-151-1/+1
| | | | to 200112L for Cygwin.
* * libc/include/signal.h (psignal): Declare.Yaakov Selkowitz2011-05-041-0/+1
| | | | | | | | | | | * libc/sys/linux/psignal.c: Move from here... * libc/signal/psignal.c: ... to here. Document. * libc/sys/linux/Makefile.am (GENERAL_SOURCES): Move psignal.c from here... * libc/signal/Makefile.am (LIB_SOURCES): ... to here. (CHEWOUT_FILES): Add psignal.def. * libc/sys/linux/Makefile.in: Regenerate. * libc/signal/Makefile.in: Ditto. * libc/signal/signal.tex: Add references to psignal.
* * libc/include/sys/features.h [__CYGWIN__] (_POSIX_SPIN_LOCKS): Define.Yaakov Selkowitz2011-05-022-2/+2
| | | | | * libc/include/sys/types.h: Cygwin provides its own pthread_spinlock_t typedef.
* * libc/include/sys/signal.h (_sig_func_ptr): Define with int parameterCorinna Vinschen2011-04-191-1/+2
| | | | per POSIX. Explain in comment.
* * libc/include/string.h (strchrnul): Declare.Corinna Vinschen2011-03-281-0/+1
| | | | | | * libc/string/strchrnul.c: New file. * libc/string/Makefile.am (ELIX_2_SOURCES): Add strchrnul.c. * libc/string/Makefile.in: Regenerate.
* * libc/include/string.h: Include sys/cdefs.h.Corinna Vinschen2011-03-031-0/+1
|
* * libc/include/sys/cdefs.h (__CONCAT1): Define.Corinna Vinschen2011-03-032-1/+22
| | | | | | | | | (__CONCAT): Define. (__STRING): Define. (__XSTRING): Define. (__ASMNAME): Define. * libc/include/string.h (strerror_r): Use __ASMNAME to take target specific label prefixes into account.
* strerror_r: provide POSIX implementationEric Blake2011-02-101-1/+14
| | | | | | | | | | | * libc/include/string.h (strerror_r): Update declaration. * libc/string/strerror.c (strerror): Update documentation. * libc/string/strerror_r.c (strerror_r): Always return NUL-terminated string; don't overwrite too-short buf. * libc/string/xpg_strerror_r.c (__xpg_strerror_r): Implement POSIX variant. * libc/string/Makefile.am (GENERAL_SOURCES): Build new file. * libc/string/Makefile.in: Regenerate.
* * libc/include/sys/features.h: Define __STDC_ISO_10646__ for Cygwin.Corinna Vinschen2011-01-272-0/+9
| | | | * libc/include/wchar.h: Include features.h.
* * libc/include/sys/types.h (ulong): Add typedef.Corinna Vinschen2011-01-151-0/+1
|
* * libc/include/linux/sys/signal.h (sig_t): Move from here...Corinna Vinschen2011-01-121-0/+1
| | | | * libc/include/signal.h (sig_t): ...to here.
* * libc/include/string.h: Make strsignal() available unconditionally.Corinna Vinschen2011-01-101-1/+1
|
* cygwin:Christopher Faylor2010-12-261-0/+2
| | | | | | | | | | | | * cygwin.din: Export program_invocation_name and program_invocation_short_name. * dcrt0.cc: Set program_invocation*name to correct values, based on argv[0]. * globals.cc (program_invocation_name): Define. (program_invocation_short_name): Ditto newlib: * libc/include/sys/errno.h (program_invocation_name): Declare. (program_invocation_short_name): Ditto.
* * include/sys/types.h: Add #if defined(__rtems__) aroundCorinna Vinschen2010-12-082-2/+13
| | | | | | | | pthread_attr_t.guardsize. * include/pthread.h: Add pthread_attr_setstack, pthread_attr_getstack, pthread_attr_getguardsize, pthread_attr_setguardsize. * include/sys/types.h (pthread_attr_t): Add guardsize.
* * libc/include/strings.h: Don't include locale.h.Corinna Vinschen2010-12-081-1/+0
|
* strings.h: avoid namespace pollutionEric Blake2010-12-081-1/+1
| | | | | * libc/include/strings.h: Don't declare removed functions when requesting POSIX 2008 compliance.
* 2010-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>Jeff Johnston2010-12-071-0/+36
| | | | * libc/include/strings.h: New (split-out from string.h).
* * libc/include/math.h: Missing from previous checkin.Corinna Vinschen2010-12-031-5/+5
|
* 2010-12-02 Jayant Sonar jayant.sonar@kpitcummins.comJeff Johnston2010-12-023-0/+28
| | | | | | | | | | | | | | | | | | | | | Kaushik Phatak kaushik.phatak@kpitcummins.com * configure.host: Add CR16 support. * libc/include/machine/ieeefp.h: Ditto. * libc/include/machine/setjmp.h: Ditto. * libc/include/sys/config.h: Ditto. * libc/machine/configure.in: Ditto * libc/machine/configure: Regenerated * libc/machine/cr16/aclocal.m4: New. * libc/machine/cr16/configure.in: New * libc/machine/cr16/configure: New * libc/machine/cr16/getenv.c: New * libc/machine/cr16/Makefile.am: New * libc/machine/cr16/Makefile.in: New * libc/machine/cr16/setjmp.S: New * libc/machine/cr16/sys/asm.h: New * libc/machine/cr16/sys/libh.h: New * libc/machine/cr16/sys/syscall.h: New
* * libc/include/sys/types.h: Add _mode_t for __rtems__.Corinna Vinschen2010-11-161-1/+5
| | | | | | * libc/sys/rtems/machine/_types.h: Provide _mode_t, _fpos_t, _off_t. Add _ssize_t for 64bit sparc. Let arm, i386, m68k, mips, PPC, sparc use 64bit _off_t, _fpos_t.
* 2010-10-14 Craig Howland <howland@LGSInnovations.com>Jeff Johnston2010-10-141-2/+0
| | | | | * libc/include/math.h: Delete cabs() and cabs() prototypes (c.f. 2010-10-08 change by Corinna).
* 2010-10-08 Bernd Schmidt <bernds@codesourcery.com>Jeff Johnston2010-10-092-0/+12
| | | | | | | | | | | | | | Joseph Myers <joseph@codesourcery.com> * configure.host: Handle tic6x targets. * libc/include/machine/ieeefp.h: Define endianness for C6X. * libc/include/machine/setjmp.h: Add __TMS320C6X__ case. * libc/machine/configure.in: Handle tic6x targets. * libc/machine/configure: Regenerate. * libc/machine/tic6x/Makefile.am, libc/machine/tic6x/configure.in, libc/machine/tic6x/setjmp.S: New. * libc/machine/tic6x/Makefile.in, libc/machine/tic6x/aclocal.m4, libc/machine/tic6x/configure: New (generated).
* * libc/include/sys/unistd.h: Declare getsid, setegid, seteuid for RTEMS.Corinna Vinschen2010-10-081-2/+2
|
* * libc/include/complex.h: New complex header.Corinna Vinschen2010-10-081-0/+124
| | | | | | | | | * libm/common/fdlibm.h: Added ifdef _COMPLEX_H. * libm/complex/*: New complex functions imported from NetBSD. * libm/Makefile.am: Added complex subdir. * libm/Makefile.in: Regenerate. * libm/configure.in: Added complex subdir. * libm/configure: Regenerate.
* * libc/include/sys/dir.h: New BSD-compatibility header.Yaakov Selkowitz2010-08-111-0/+10
|
* * libc/include/sys/features.h: Define _POSIX_MONOTONIC_CLOCK for Cygwin.Corinna Vinschen2010-08-091-1/+1
|