summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include
Commit message (Collapse)AuthorAgeFilesLines
* 2010-02-11 Craig Howland <howland@LGSInnovations.com>Jeff Johnston2010-02-111-4/+5
| | | | | * libc/include/machine/ieeefp.h: isfinite macro modified to run faster by only calling fpclassify once instead of possibly twice.
* * libc/include/sys/_default_fcntl.h (O_CLOEXEC): Define as _FNOINHERIT.Corinna Vinschen2010-01-142-0/+9
| | | | | | (F_DUPFD_CLOEXEC): Define for Cygwin. * libc/include/sys/unistd.h (dup3): Define for Cygwin. (pipe2): Ditto.
* 2010-01-11 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>Jeff Johnston2010-01-111-0/+4
| | | | | | | * libc/include/math.h (log2, log2f): Disable macro versions for C++, as they are incompatible with OpenMP/C++ headers. 2
* Fix getsubopt declaration.Eric Blake2009-12-222-3/+4
| | | | | * libc/include/sys/unistd.h (suboptarg, getsubopt): Move... * libc/include/stdlib.h: ...here, to match POSIX for getsubopt.
* 2009-12-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2009-12-171-0/+1
| | | | * libc/include/_syslist.h: Add _mkdir transform.
* 2009-12-17 Jerker Back <jerker.back@gmail.com>Jeff Johnston2009-12-174-19/+21
| | | | | | | | | | | | | | | * libc/include/_ansi.h: Add new _EXFNPTR macro for using with function pointer arguments. * libc/iconv/lib/conv.h: Use _EXFNPTR rather than _EXPARM macro. * libc/iconv/lib/ucsconv.h: Ditto. * libc/include/stdlib.h: Use new _EXFNPTR macro for function pointers. * libc/include/sys/reent.h: Ditto. * libc/include/sys/unistd.h: Ditto. * libc/search/bsearch.c: Ditto. * libc/stdio/fseek.c: Ditto. * libc/stdio64/fseeko64.c: Ditto. * libc/stdlib/atexit.c: Ditto. * libc/stdlib/on_exit.c: Ditto.
* 2009-12-17 Ralf Corsépius <ralf.corsepius@rtems.org>Jeff Johnston2009-12-171-1/+5
| | | | | | * libc/include/machine/ieeefp.h: Rework __IEEE_*_ENDIAN handling. * libc/machine/arm/machine/endian.h: Remove (Conflicts with libc/include/machine/endian.h)
* 2009-12-17 Ralf Corsépius <ralf.corsepius@rtems.org>Jeff Johnston2009-12-171-1/+1
| | | | * libc/include/machine/setjmp.h: Set up _JBLEN #ifdef __m68k__.
* 2009-12-17 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston2009-12-172-15/+20
| | | | | | | * libc/include/pthread.h: Add pthread_atfork, pthread_rwlock_unlock * libc/include/sys/stat.h: Use struct timespec st_*tim, blksize_t st_blksize, blkcnt_t st_blocks. Add st_*time compatibility macros.
* 2009-12-16 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2009-12-161-5/+1
| | | | | | * libc/include/sys/errno.h: Move EHOSTDOWN, EPFNOSUPPORT, and ETOOMANYREFS into general list as they are referenced by OpenGroup and needed by RTEMS.
* 2009-12-10 Conny Marco Menebrocker <c-m-m@gmx.de>Jeff Johnston2009-12-102-0/+11
| | | | | | | | | | | | | | | | | | * configure.host: Add xc16x support. * libc/include/machine/ieeefp.h: Ditto. * libc/include/sys/config.h: Ditto. * libc/machine/configure.in: Ditto. * libc/machine/Makefile.in: Regenerated. * libc/machine/aclocal.m4: Ditto. * libc/machine/configure: Ditto. * libc/machine/xc16x/Makefile.am: New file. * libc/machine/xc16x/Makefile.in: Ditto. * libc/machine/xc16x/aclocal.m4: Ditto. * libc/machine/xc16x/configure: Ditto. * libc/machine/xc16x/configure.in: Ditto. * libc/machine/xc16x/putchar.c: Ditto. * libc/machine/xc16x/puts.c: Ditto. * libc/machine/xc16x/setjmp.S: Ditto.
* Fix some *at declarations.Eric Blake2009-12-083-2/+4
| | | | | | | * libc/include/stdio.h (symlinkat): Move this... * libc/include/sys/_default_fcntl.h (unlinkat): ...and this... * libc/include/sys/unistd.h (symlinkat, unlinkat): ...here, to match POSIX.
* Use NetBSD fix for CVE-2009-0689 security vulnerability.Corinna Vinschen2009-11-231-0/+5
| | | | | | | | * libc/include/sys/reent.h (_Kmax): Define here based on the sizeof size_t, as in latest NetBSD. * libc/reent/reent.c (_reclaim_reent): Use _Kmax rather than constant value 15. * libc/stdlib/mprec.c (_Kmax): Don't define here. Explain why.
* 2009-11-17 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>Jeff Johnston2009-11-171-0/+2
| | | | | * libm/common/fdlibm.h (logb, logbf): Move decls from here... * libc/include/math.h (logb, logbf): ...to here.
* * libc/include/ctype.h (__ctype_lookup): Fix precedence.Eric Blake2009-11-061-1/+1
|
* newlib:Nick Clifton2009-10-262-0/+22
| | | | | | | | | | | | | | | | * configure.host: Add support for RX architecture. * libc/include/machine/ieeefp.h: Likewise. * libc/include/machine/setjmp.h: Likewise. * libc/include/machine/configure.in: Likewise. * libc/include/machine/configure: Regenerate. * libc/machine/rx: New directory. * libc/machine/rx/*: New files to support RX architecture. libgloss: * configure.in: Add support for RX sub-directory. * configure: Regenerate. * rx: New directory. * rx/*: New files to support RX architecture.
* Fix isalpha(0x100000001LL) and friends on 64-bit machines.Eric Blake2009-10-241-13/+21
| | | | | | | * libc/include/ctype.h (__ctype_lookup): New macro. (isalpha, isupper, islower, isdigit, isxdigit, isspace, ispunct) (isalnum, isprint, isgraph, iscntrl, isblank): Use it to fix bug on 64-bit machines.
* 2009-10-16 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2009-10-202-1/+6
| | | | | | | * libc/include/sys/config.h[__CYGWIN__]: Set __USE_XOPEN2K flag if not __STRICT_ANSI__ or stdc version C99 or greater. * libc/include/stdio.h[__STRICT_ANSI__]: Add __USE_XOPEN2K check for fseeko and ftello prototypes.
* * libc/include/wchar.h (struct tm0: Declare as incomplete type.Corinna Vinschen2009-10-151-0/+4
|
* * libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constantsEric Blake2009-10-141-35/+65
| | | | new to POSIX 2008.
* 2009-10-13 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>Jeff Johnston2009-10-131-9/+3
| | | | | | * libc/include/sys/signal.h: Include <sys/types.h> always. [__CYGWIN__, __rtems__]: Define kill first argument as pid_t per standards.
* 2009-10-09 Dave Korn <dave.korn@artimi.com>Jeff Johnston2009-10-091-0/+1
| | | | | * libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when defining struct timeval.
* 2009-10-08 Eric Blake <ebb9@byu.net>Jeff Johnston2009-10-081-0/+2
| | | | | | * libc/include/getopt.h (__getopt_r, __getopt_long_r) (__getopt_long_only_r): Protect declarations, to avoid compiler warning.
* 2009-09-28 Michael Eager <eager@eagercon.com>Jeff Johnston2009-09-284-1/+78
| | | | | | | | | | | | | | | | | | | | | * configure.host: Add microblaze. * libc/include/machine/ieeefp.h [MICROBLAZE]: Define __IEEE_BIG_ENDIAN. * libc/include/machine/setjmp.h [MICROBLAZE]: Define _JBLEN, _JBTYPE. * libc/include/sys/config.h [MICROBLAZE]: Define _REENT_SMALL, _UNIX98_THREAD_MUTEX_ATTRIBUTES. * libc/include/sys/types.h: Treat XMK like rtems, define PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE, PTHREAD_MUTEX_DEFAULT, PTHREAD_STACK_MIN, define stuct pthread_attr_s. * libc/machine/configure.in: Add microblaze. * libc/machine/configure: Add microblaze (not regenerated). * libc/machine/microblaze/configure.in: NEW. * libc/machine/microblaze/configure: Generate. * libc/machine/microblaze/Makefile.am: NEW. * libc/machine/microblaze/Makefile.in: Generate. * libc/machine/microblaze/{abort.c, strcmp.c, strcpy.c, strlen.c, mallocr.c, longjmp.S, setjmp.S}: NEW. * libc/stdlib/mallocr.c [MICROBLAZE]: Don't declare sbrk prototype, mALLOc(): return malloc value.
* * libc/include/sys/unistd.h (execvpe, fexecve) [__CYGWIN__]:Eric Blake2009-09-261-0/+2
| | | | Add declarations.
* * libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]:Eric Blake2009-09-251-0/+2
| | | | Add declarations.
* 2009-09-22 Ralf Corsépius <ralf.corsepius@rtems.org>Jeff Johnston2009-09-221-0/+4
| | | | * libc/include/stdlib.h: Add posix_memalign.
* * libc/include/sys/unistd.h: Declare getpagesize as returning POSIX-mandatedChristopher Faylor2009-09-191-1/+1
| | | | | int. * libc/sys/linux/sys/unistd.h: Ditto.
* iconv: match SUSv3 prototypeEric Blake2009-08-211-3/+3
| | | | | * libc/include/iconv.h (iconv): Match POSIX prototype. * libc/iconv/lib/iconv.c (iconv): Likewise.
* 2009=08-12 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2009-08-121-0/+2
| | | | | | | | | | | | | * libc/stdio/mktemp.c (_gettemp): Do not call _mkdir_r unless HAVE_MKDIR is defined. 2009-08-12 Hans-Peter Nilsson <hp@axis.com> * libc/include/reent.h: Add prototype and definition of _mkdir_r. * libc/reent/Makefile.am (GENERAL_SOURCES): Add mkdirr.c. (CHEWOUT_FILES): Add mkdirr.def. * libc/reent/Makefile.in: Regenerate. * libc/reent/mkdirr.c: New file.
* 2009-07-09 Craig Howland <howland@LGSInnovations.com>Jeff Johnston2009-07-092-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libm/math/ef_scalb.c: Replace isnanf() (pre-C99 function call) with isnan() (C99 macro). * libm/math/wf_log.c: Ditto. * libm/math/wf_j0.c: Ditto. * libm/math/wf_sqrt.c: Ditto. * libm/math/wf_pow.c: Ditto. * libm/math/wf_fmod.c: Ditto. * libm/math/wf_remainder.c: Ditto. * libm/math/wf_scalb.c: Ditto. * libm/math/wf_atanh.c: Ditto. * libm/math/wf_cosh.c: Ditto. * libm/math/wf_acos.c: Ditto. * libm/math/wf_acosh.c: Ditto. * libm/math/wf_jn.c: Ditto. * libm/math/wf_log10.c: Ditto. * libm/math/wf_asin.c: Ditto. * libm/math/wf_j1.c: Ditto. * libm/common/sf_isnan.c: Add #include <ieeefp.h>, fix comment. * libm/common/sf_isinf.c: Add #include <ieeefp.h>, adjust comment to match that from s_isinf.c. * libc/include/machine/ieeefp.h: Simplify isinf and isnan macros to remove un-necessary extension use (in a similar manner to as was recently done in math.h). * libc/include/math.h: Remove isnanf and isinff prototypes (are in ieeefp.h). * libm/machine/spu/sf_isinf.c: Fix comment (remove <math.h>).
* 2009-07-06 Joel Sherrill <joel.sherrill@oarcorp.com>Jeff Johnston2009-07-061-0/+3
| | | | | * libc/include/sys/features.h: Enable UNIX98 mutex attributes for RTEMS.
* Add mkdtemp, mkstemps.Eric Blake2009-07-031-2/+6
| | | | | | | | | | * libc/stdio/mktemp.c: Fix documentation. (_gettemp): Add domkdir and length parameters. Check for insufficient 'X' suffix. Drop cygwin-specific code. (_mkstemp_r, _mktemp_r, mkstemp, mktemp): Adjust clients. (_mkdtemp_r, _mkstemps_r, mkdtemp, mkstemps): New functions. * libc/include/stdlib.h (_mkdtemp_r, _mkstemps_r, mkdtemp) (mkstemps): Declare them.
* Add fpurge.Eric Blake2009-07-031-0/+4
| | | | | | | | | * libc/stdio/fpurge.c (fpurge, _fpurge_r): New file. * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES, fpurge): Build it. * libc/stdio/Makefile.in: Regenerated. * libc/include/stdio.h (fpurge, _fpurge_r): New declarations. * libc/stdio/stdio.tex: Build documentation.
* 2009-06-17 Michael Eager <eager@eagercon.com>Jeff Johnston2009-06-173-1/+71
| | | | | | | * libc/include/pthread.h: Support XMK (Xilinx) BSP, add RTEMS to PTHREAD_MUTEX_NORMAL. * libc/include/sys/features.h: Same. * libc/include/sys/types.h: Same.
* * libc/include/locale.h (struct lconv): Add missing members requiredCorinna Vinschen2009-06-161-0/+6
| | | | | | by POSIX.1-2008. * libc/locale/locale.c (lconv): Initialize new members to default values in "C" locale.
* 2009-06-16 Craig Howland <howland@LGSInnovations.com>Jeff Johnston2009-06-161-15/+11
| | | | | | | * libc/include/math.h: Simplify fpclassify, isinf, isnan, and signbit macros to remove un-necessary extension use. isinf and isnan also changed to use fpclassify. isfinite macro modified to run faster by only calling fpclassify once instead of possibly twice.
* 2009-06-02 Richard Earnshaw <rearnsha@arm.com>Jeff Johnston2009-06-021-5/+0
| | | | | * libc/include/sys/config.h: Remove specification of _REENT_SMALL for thumb2.
* 2009-05-27 Neal H. Walfield <neal@gnu.org>Jeff Johnston2009-05-271-1/+5
| | | | | * libc/include/machine/setjmp.h (sigjmp_buf): Size according to _JBTYPE and the size of sigset_t.
* 2009-05-15 Craig Howland <howland@LGSInnovations.com>Jeff Johnston2009-05-151-14/+40
| | | | | | | | | | | | | | | | | | * configure.in: Add configuration test for long double type existing and set flag _HAVE_LONG_DOUBLE if true. Fix INIT_ARRAY (.init_array) and _LDBL_EQ_DBL tests to not link so that will work with cross-compilers. * configure: Regenerated. * Makefile.in: Ditto. * newlib.hin: Add _HAVE_LONG_DOUBLE flag. * libc/include/math.h: Change non-builtin defines for HUGE_VAL, HUGE_VALF, and HUGE_VALL to be constant expressions. Add definitions for the non-builtin case for INFINITY and NAN. Gate HUGE_VALL and union __ldmath definitions with (new) _HAVE_LONG_DOUBLE. *libm/common/s_infconst.c: Change definitions to use values from float.h instead of non-so-portable integer forms. Mark as being deprecated (because now removed from math.h, are not used anywhere in Newlib, itself).
* Allow gcc warning for toupper even with extended charsets.Eric Blake2009-04-301-6/+17
| | | | | | | * libc/include/ctype.h (toupper, tolower) [_MB_EXTENDED_CHARSETS_ISO]: Allow gcc warning when called with 'char' even when we must call the function for correct behavior. [!_MB_EXTENDED_CHARSETS_ISO]: Fix regression in result type.
* 2009-04-24 Jeff johnston <jjohnstn@redhat.com>Jeff Johnston2009-04-242-7/+7
| | | | | | | | | | | | | * configure.in: Add configuration test for long double equals dbl and set flag _LDBL_EQ_DBL if true. * configure: Regenerated. * newlib.hin: Add _LDBL_EQ_DBL flag. * libc/include/math.h: Use _LDBL_EQ_DBL flag instead of _HAVE_LDBL_MATH. * libc/include/stdlib.h: Use _LDBL_EQ_DBL flag instead of _HAVE_LDBL_STDLIB. * libc/common/local.h: Remove _LDBL_EQ_DBL flag setting. * libc/stdlib/local.h: Ditto.
* 2009-04-24 Joseph Myers <joseph@codesourcery.com>Jeff Johnston2009-04-241-0/+4
| | | | | * libc/include/stdint.h (UINTPTR_MAX): Define to __UINTPTR_MAX__ if __UINTPTR_MAX__ defined.
* Be namespace clean in ctype.h.Eric Blake2009-04-241-22/+22
| | | | | | | * libc/include/ctype.h (_tolower, _toupper, isalpha, isupper) (islower, isdigit, isxdigit, isspace, ispunct, isalnum) (isprint, isgraph, iscntrl, isblank, toupper, tolower) (isascii, toascii): Don't use 'c' as macro parameter name.
* Trigger gcc warning if isFoo macros are called with plain char.Eric Blake2009-04-241-14/+20
| | | | | | | * libc/include/ctype.h (isalpha, isupper, islower, isdigit) (isxdigit, isspace, ispunct, isalnum, isprint, isgraph) (iscntrl, isblank, toupper, tolower): Rewrite to let 'gcc -Wall' warn when user calls macro with a char argument.
* 2009-04-22 Anthony Green <green@moxielogic.com>Jeff Johnston2009-04-222-0/+8
| | | | | | | | | | | | | | * configure.host: Add moxie support. * libc/machine/configure.in: Add moxie support. * libc/machine/configure: Rebuilt. * libc/machine/moxie/aclocal.m4: New file. * libc/machine/moxie/configure: New file. * libc/machine/moxie/configure.in: New file. * libc/machine/moxie/Makefile.am: New file. * libc/machine/moxie/Makefile.in: New file. * libc/machine/moxie/setjmp.S: New file. * libc/include/machine/setjmp.h (_JBLEN): Define for moxie. * libc/include/machine/ieeefp.h: Add moxie support.
* 2009-04-21 Mark Mitchell <mark@codesourcery.com>Jeff Johnston2009-04-212-25/+36
| | | | | | | | | | | | | | * libc/include/_ansi.h: Move C++ defines to top of file. (_NOTHROW): New macro. (_EXFUN_NOTHROW): Likewise. * libc/include/stdlib.h (calloc): Declare with _EXFUN_NOTHROW. (free): Likewise. (malloc): Likewise. (realloc): Likewise. (_malloc_r): Likewise. (_callor_r): Likewise. (_free_r): Likewise. (_realloc_r): Likewise.
* 2009-04-20 Jeff johnston <jjohnstn@redhat.com>Jeff Johnston2009-04-202-7/+7
| | | | | | | * libc/include/math.h: Change _LDBL_EQ_DBL flag usage to be _HAVE_LDBL_MATH. * libc/include/stdlib.h: Change _LDBL_EQ_DBL flag usage to be _HAVE_LDBL_STDLIB.
* 2009-04-17 Jeff johnston <jjohnstn@redhat.com>Jeff Johnston2009-04-171-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/machine/ieeefp.h (_LDBL_EQ_DBL): Remove. * libc/stdlib/local.h (_LDBL_EQ_DBL): Add. * libc/stdlib/strtold.c: Include local.h. * libc/stdlib/wcstold.c: Likewise. * libm/common/atanl.c: Likewise. * libm/common/cosl.c: Likewise. * libm/common/sinl.c: Likewise. * libm/common/modfl.c: Likewise. * libm/common/frexpl.c: Likewise. * libm/common/tanhl.c: Likewise. * libm/common/tanl.c: Likewise. * libm/common/expm1l.c: Likewise. * libm/common/log1pl.c: Likewise. * libm/common/ceill.c: Likewise. * libm/common/fabsl.c: Likewise. * libm/common/floorl.c: Likewise. * libm/common/acosl.c: Likewise. * libm/common/asinl.c: Likewise. * libm/common/atan2l.c: Likewise. * libm/common/coshl.c: Likewise. * libm/common/expl.c: Likewise. * libm/common/fmodl.c: Likewise. * libm/common/hypotl.c: Likewise. * libm/common/ldexpl.c: Likewise. * libm/common/log10l.c: Likewise. * libm/common/logl.c: Likewise. * libm/common/powl.c: Likewise. * libm/common/sqrtl.c: Likewise. * libm/common/copysignl.c: Likewise. * libm/common/ilogbl.c: Likewise. * libm/common/nanl.c: Likewise. * libm/common/cbrtl.c: Likewise. * libm/common/asinhl.c: Likewise. * libm/common/nextafterl.c: Likewise. * libm/common/rintl.c: Likewise. * libm/common/scalbnl.c: Likewise. * libm/common/exp2l.c: Likewise. * libm/common/fdiml.c: Likewise. * libm/common/fmal.c: Likewise. * libm/common/fmaxl.c: Likewise. * libm/common/fminl.c: Likewise. * libm/common/lrintl.c: Likewise. * libm/common/lroundl.c: Likewise. * libm/common/nearbyintl.c: Likewise. * libm/common/remquol.c: Likewise. * libm/common/roundl.c: Likewise. * libm/common/scalblnl.c: Likewise. * libm/common/truncl.c: Likewise. * libm/common/acoshl.c: Likewise. * libm/common/atanhl.c: Likewise. * libm/common/erfcl.c: Likewise. * libm/common/erfl.c: Likewise. * libm/common/lgammal.c: Likewise. * libm/common/remainderl.c: Likewise. * libm/common/tgammal.c: Likewise. * libm/common/sinhl.c: Likewise. * libm/common/llroundl.c: Likewise. * libm/common/llrintl.c: Likewise. * libm/common/local.h: New file with _LDBL_EQ_DBL macro.
* 2009-04-17 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2009-04-172-3/+4
| | | | | | | | * libc/include/machine/ieeefp.h: _LDBL_EQ_DBL check fixed. * libc/include/math.h (llrintl): Declare. * libm/common/llrintl.c: New File. * libm/common/Makefile.am: New File added. * libm/common/Makefile.in: Regenerate.