summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include
Commit message (Collapse)AuthorAgeFilesLines
* 2015-01-14 Joel Sherrill <joel.sherrill@oarcorp.com>Jeff Johnston2015-01-141-0/+3
| | | | * libc/include/sys/unistd.h [__BSD_VISIBLE]: Add issetugid() prototype.
* * configure.host: Add extra system for OpenRISC baremetalCorinna Vinschen2015-01-141-0/+4
| | | | | | | | | | | | | * 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
* 2014-12-26 Freddie Chopin <freddie_chopin@op.pl>Jeff Johnston2015-01-051-2/+2
| | | | * libc/include/sys/features.h: update newlib version and copyright year
* Implement BSD/GNU unlocked stdio extensions.Yaakov Selkowitz2014-12-182-2/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * libc/include/stdlib.h (__itoa): Declare prototype.Corinna Vinschen2014-12-161-0/+6
| | | | | | | | | | (__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-15 Jonathan Roelofs <jonathan@codesourcery.com>Jeff Johnston2014-12-151-0/+5
| | | | | | | | | | | | * 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
* * libc/include/stdio.h (__SNLK): Define.Yaakov Selkowitz2014-12-152-1/+6
| | | | | | | | | | | | | | | * 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.
* * newlib/libc/include/machine/setjmp.h: Add FPU support.Corinna Vinschen2014-12-151-3/+10
| | | | * newlib/libc/machine/nds32/setjmp.S: Add FPU support.
* * libc/include/stdlib.h: Include sys/cdefs.h to avoid undefinedCorinna Vinschen2014-12-151-0/+1
| | | | __ASMNAME.
* 2014-12-12 Stefan Wallentowitz <stefan.wallentowitz@tum.de>Jeff Johnston2014-12-121-1/+1
| | | | | | * configure.host: or1knd support, OpenRISC without delay slot * libc/include/machine/setjmp.h: Add or1knd * libc/machine/or1k/setjmp.S: Optional delay slot
* * libc/include/stdio.h: Fix type signature of __sfeof and __sferrorCorinna Vinschen2014-12-111-2/+2
| | | | (and thus feof and ferror) for C++.
* * libc/include/stdio_ext.h: Rename __fwriteable to __fwritable.Yaakov Selkowitz2014-12-111-2/+14
| | | | | | | | | | [!__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.
* * libc/include/stdio_ext.h: Remove excess "inline".Corinna Vinschen2014-12-101-7/+7
|
* * libc/include/stdlib.h (__bsd_qsort_r): Declare.Yaakov Selkowitz2014-12-051-0/+16
| | | | | | | | | | | | | | (qsort_r): Declare. * libc/search/Makefile.am (ELIX_2_SOURCES): Rename from ELIX_SOURCES. (ELIX_4_SOURCES): Define. Add bsd_qsort_r.c and qsort_r.c. (libsearch_la_SOURCES): Adapt accordingly. (lib_a_SOURCES): Adapt accordingly. (CHEWOUT_FILES): Add qsort_r.def. * libc/search/Makefile.in: Regenerate. * libc/search/bsd_qsort_r.c: New file. * libc/search/qsort.c: Update from FreeBSD HEAD. Adapt for both BSD and GNU qsort_r flavors. * libc/search/qsort_r.c: New file.
* * libc/include/sys/signal.h [__SPU__] (kill): Declare.Corinna Vinschen2014-12-041-2/+5
|
* 2014-12-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-12-031-11/+39
| | | | | | * libc/include/inttypes.h: Only enable the 8-bit scanning macros if _WANT_IO_C99_FORMATS is defined by configuration. Add comment on why.
* * libc/include/machine/setjmp.h [__mips__]: Remove __mips_fpr == 64Corinna Vinschen2014-11-281-1/+1
| | | | | | | from the 64-bit _JBTYPE definition. * libc/machine/mips/setjmp.S: Re-work the o32 FP64 support to match the now one-and-only supported o32 FP64 ABI extension. Also support o32 FPXX.
* * libc/include/sys/_default_fcntl.h: Move all Cygwin-specific openCorinna Vinschen2014-11-251-16/+12
| | | | | flags from Cygwin's fcntl.h here. Remove check for WIN32. Remove Windows-specific macros.
* 2014-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2014-11-241-0/+2
| | | | | * libc/include/sys/resource.h: Add prototype for getrusage() to <sys/resource.h>
* 2014-11-06 Joel Sherrill <joel.sherrill@oarcorp.com>Jeff Johnston2014-11-061-6/+6
| | | | | | | * configure.in: Add autoconf test to determine size of uintptr_t. * newlib.hin: Add new autoconf feature variables. * libc/include/inttypes.h: Use new feature variables. * configure: Regenerate.
* 2014-10-29 Jon Turney <jon.turney@dronecode.org.uk>Jon TURNEY2014-10-301-1/+1
| | | | * libc/include/string.h: Correct guard for strcasecmp().
* * libc/include/sys/unistd.h (sethostname): Declare ifCorinna Vinschen2014-10-271-0/+3
| | | | requested.
* * libc/include/_ansi.h: _LONG_LONG_TYPE definition removed.Corinna Vinschen2014-10-103-15/+32
| | | | | | * libc/include/math.h: _LONG_LONG_TYPE replaced by "long long". Guards for C99 and C++11 functions fixed. * libc/include/stdlib.h: Guards for C99 and C++11 functions fixed.
* 2014-10-09 Sebastian Huber <sebastian.huber@embedded-brains.de>Jeff Johnston2014-10-093-34/+40
| | | | | | | | | | | | | | | * libc/include/stdint.h: Include <sys/_intsup.h>. (__STDINT_EXP): Delete. (__have_long32): Likewise. (__have_long64): Likewise. (__have_longlong64): Likewise. * libc/include/sys/_intsup.h: New file. (__STDINT_EXP): Move from libc/include/stdint.h. (__have_long32): Likewise. (__have_long64): Likewise. (__have_longlong64): Likewise. * libc/include/inttypes.h: Include <sys/_intsup.h>. (__INTTYPES_EXP): Delete and use __STDINT_EXP() instead.
* * libc/include/string.h (ffsl): Declare as GNU function.Corinna Vinschen2014-10-081-0/+5
| | | | (ffsll): Ditto.
* 2014-09-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-09-171-0/+6
| | | | | * libc/include/sys/features.h: Add __NEWLIB__ and __NEWLIB_MINOR__ macros.
* 2014-09-17 Joel Sherrill <joel.sherrill@oarcorp.com>Jeff Johnston2014-09-161-1/+2
| | | | | | Thomas Uhle <thomas.uhle@eas.iis.fraunhofer.de> * libc/include/string.h: Correct guard for strnlen().
* * libc/include/math.h (frexpl): Remove parameter name.DJ Delorie2014-08-271-1/+1
|
* * libc/include/sys/signal.h: Declare sigaltstack for RTEMS only.Corinna Vinschen2014-08-181-1/+2
|
* 2014-08-18 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-08-181-0/+4
| | | | | * libc/include/sys/config.h[__m68k__]: Set _READ_WRITE_RETURN_TYPE to _ssize_t to match underlying code in libgloss.
* 2014-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2014-08-181-34/+51
| | | | * libc/include/string.h: Improve language and OS standard guards.
* 2014-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2014-08-181-3/+39
| | | | * libc/include/sys/signal.h: Add sigaltstack() support.
* * libc/include/math.h: Also define M_PI etc. if _XOPEN_SOURCE isJon TURNEY2014-08-041-3/+12
| | | | defined appropriately.
* headers: properly decorate attributesEric Blake2014-08-013-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2014-07-221-0/+3
| | | | | * libc/include/sys/time.h: Add prototype for adjtime() and wrap it and settimeofday() prototype with __BSD_VISIBLE.
* * configure.host: Remove or16 and or32 targets and add or1k.Corinna Vinschen2014-07-172-1/+6
| | | | | | | | * 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.
* * libc/include/sys/errno.h: Fix comments.Corinna Vinschen2014-07-141-19/+19
| | | | | | * libc/string/strerror.c: Fix documentation. (_strerror_r): Handle ENETRESET, EILSEQ, ENODATA, ECONNRESET, EADDRNOTAVAIL, EOVERFLOW. Fix strings for EMFILE and EDOM.
* * 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/include/stdlib.h (strtold): Define if _HAVE_LONG_DOUBLE isCorinna Vinschen2014-03-071-2/+2
| | | | | | 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/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.