summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include
Commit message (Collapse)AuthorAgeFilesLines
* * 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
|
* * libc/include/sys/stat.h: Move all POSIX-defined symbolic constantsCorinna Vinschen2010-08-061-2/+2
| | | | out of `#ifndef _POSIX_SOURCE' guard.
* Add mkostemp and mkostemps.Eric Blake2010-07-191-2/+6
| | | | | | | | | * libc/stdio/mktemp.c (_gettemp): Add parameter, all callers changed. (mkostemp, _mkostemp_r, mkostemps, _mkostemps_r): New interfaces, for ELIX level 4. * libc/include/stdlib.h (mktemp): Avoid namespace issues. (mkostemp, mkostemps): Declare.
* * libc/include/signal.h (sighandler_t): Only define if _POSIX_SOURCECorinna Vinschen2010-07-131-0/+2
| | | | is undefined.
* * libc/include/signal.h (sighandler_t): Add typedef.Corinna Vinschen2010-07-011-0/+1
|
* 2010-06-29 Antony King <antony.king@sr.com>Corinna Vinschen2010-07-011-0/+6
| | | | | | | | | | * libc/ctype/ctype_.c (__ctype_ptr): Reinstate definition (guarded by _NEED_OLD_CTYPE_PTR_DEFINITION) for backwards compatibility with newlib 1.16.0 and earlier. 2010-06-28 Yaakov Selkowitz <yselkowitz@users.sourceforge.net> * libc/include/sys/stat.h: Add ACCESSPERMS, ALLPERMS, and DEFFILEMODE.
* 2010-06-18 Pavel Pisa <ppisa4lists@pikron.com>Jeff Johnston2010-06-182-6/+2
| | | | | | | | * libc/include/machine/ieeefp.h[__arm__][!__VFP_FP__]: Set to __IEEE_BIG_ENDIAN and set __IEEE_BYTES_LITTLE_ENDIAN appropriately based on __ARMEL flag. * libc/include/machine/endian.h: To set byte order to LITTLE_ENDIAN, check for __IEEE_LITTLE_ENDIAN or __IEEE_BYTES_LITTLE_ENDIAN.
* * libc/include/sys/reent.h (_reent): Adjust _REENT_SMALL to beKazu Hirata2010-06-091-5/+6
| | | | | binary compatible with normal layout. (_REENT_INIT): Adjust to match struct layout.
* 2010-06-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2010-06-081-1/+9
| | | | * libc/include/wordexp.h: Add __cplusplus wrapper.
* * libc/include/langinfo.h: Fix #endif positioning.Corinna Vinschen2010-04-301-1/+2
|
* Extend locale support to maintain wide char values of native stringsCorinna Vinschen2010-04-282-95/+267
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if __HAVE_LOCALE_INFO_EXTENDED__ is defined. * libc/include/langinfo.h (enum __nl_item): New type. Define all native values accessible through nl_langinfo. Define previously existing POSIX-compatible values as macros as well. * libc/include/stdlib.h (__mb_cur_max): Drop declaration. (__locale_mb_cur_max): Declare. (MB_CUR_MAX): Re-define calling __locale_mb_cur_max. * libc/locale/Makefile.am (ELIX_SOURCES): Add lctype.c. * libc/locale/Makefile.in: Regenerate. * libc/locale/lctype.c: New file to define and load LC_CTYPE category. * libc/locale/lctype.h: New file, matching header. * libc/locale/lmessages.c (_C_messages_locale): Add default values for wide char members. (__messages_load_locale): Add _C_messages_locale in call to __set_lc_messages_from_win. * libc/locale/lmessages.h (struct lc_messages_T): Add wide char members. * libc/locale/lmonetary.c (_C_monetary_locale): Add default values for wide char members. (__monetary_load_locale): Add _C_monetary_locale in call to __set_lc_monetary_from_win. * libc/locale/lmonetary.h (struct lc_monetary_T): Add wide char members. Add numerical values for international currency formatting per POSIX-1.2008, if __HAVE_LOCALE_INFO_EXTENDED__ is defined. * libc/locale/lnumeric.c (_C_numeric_locale): Add default values for wide char members. (__numeric_load_locale): Add _C_numeric_locale in call to __set_lc_numeric_from_win. * libc/locale/lnumeric.h (struct lc_numeric_T): Add wide char members. * libc/locale/locale.c (loadlocale): Return doing nothing if category locale didn't change. Convert category if chain to switch statement. Call __ctype_load_locale in LC_CTYPE case. (__locale_charset): Add (but disable for now) returning codeset from __get_current_ctype_locale. (__locale_mb_cur_max): Add (but disable for now) returning mb_cur_max from __get_current_ctype_locale. (__locale_msgcharset): Add returning codeset from __get_current_messages_locale. (_localeconv_r): Accommodate int_XXX values. * libc/locale/nl_langinfo.c (nl_ext): New array to define what is to be returned for non-POSIX values. (nl_Langinfo): Return correct codeset for each locale category. Return extended values if __HAVE_LOCALE_INFO_EXTENDED__ is defined. * libc/locale/timelocal.c (_C_time_locale): Add default values for wide char members. (__time_load_locale): Add _C_time_locale in call to __set_lc_time_from_win. * libc/locale/timelocal.h (struct lc_time_T): Add wide char members. * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Use wide char decimal point and thousands_sep if __HAVE_LOCALE_INFO_EXTENDED__ is defined. * libc/time/strftime.c: Rework to accommodate availability of wide char strings in LC_TIME category if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
* 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>Jeff Johnston2010-04-012-20/+105
| | | | | | | | * libc/include/sched.h: Include prototypes for sched_* methods. * libc/include/sys/sched.h: Update to POSIX 1003.1b-2008. Rework constants to allow sharing between RTEMS and Cygwin.
* * libc/include/sys/features.h: Allow for _XOPEN_SOURCE to have anCorinna Vinschen2010-03-171-3/+9
| | | | empty definition. Also add support for values of 500 or less.
* 2010-03-02 Craig Howland <howland@LGSInnovations.com>Jeff Johnston2010-03-022-0/+14
| | | | | | | | * libc/include/sys/features.h: Add POSIX.1-permitted definition of _POSIX_C_SOURCE if not already defined and _XOPEN_SOURCE has an appropriate value. Specifically, check for POSIX.1-2008 & 2001 values. * libc/include/sys/config.h: Add #include <sys/features.h> so that all includes get the new check added to it.
* * libc/xdr/README: Correct grammatical errors.Corinna Vinschen2010-03-022-0/+16
| | | | | | | | | * libc/include/rpc/types.h: Add public types used by RPC implementations. * libc/include/rpc/xdr.h: Add defines used by RPC implementations. * libc/xdr/Makefile.am: Eliminate automake warning. * libc/xdr/Makefile.in: Regenerate.
* Add eXtensible Data Record (XDR) supportCorinna Vinschen2010-03-022-0/+458
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.host: Build libc/xdr only on cygwin. * Makefile.am: Install xdr headers. * libc/configure.in: Support new libc/xdr subdirectory. * libc/Makefile.am: Support new libc/xdr subdirectory. * libc/include/rpc/types.h: New. * libc/include/rpc/xdr.h: New. * libc/xdr/README: New. * libc/xdr/Makefile.am: New. * libc/xdr/dummy.c: New. * libc/xdr/xdr.c: New. * libc/xdr/xdr_array.c: New. * libc/xdr/xdr_float.c: New. * libc/xdr/xdr_float_vax.c: New. * libc/xdr/xdr_mem.c: New. * libc/xdr/xdr_private.c: New. * libc/xdr/xdr_private.h: New. * libc/xdr/xdr_rec.c: New. * libc/xdr/xdr_reference.c: New. * libc/xdr/xdr_sizeof.c: New. * libc/xdr/xdr_stdio.c: New. Regenerate using ac-2.63 and am-1.11.1 * libc/xdr/Makefile.in: New. * Makefile.in: Regenerate. * libc/configure: Regenerate. * libc/Makefile.in: Regenerate. * libc/argz/Makefile.in: Regenerate. * libc/ctype/Makefile.in: Regenerate. * libc/errno/Makefile.in: Regenerate. * libc/iconv/ccs/binary/Makefile.in: Regenerate. * libc/iconv/ccs/Makefile.in: Regenerate. * libc/iconv/ces/Makefile.in: Regenerate. * libc/iconv/lib/Makefile.in: Regenerate. * libc/iconv/Makefile.in: Regenerate. * libc/locale/Makefile.in: Regenerate. * libc/misc/Makefile.in: Regenerate. * libc/posix/Makefile.in: Regenerate. * libc/reent/Makefile.in: Regenerate. * libc/search/Makefile.in: Regenerate. * libc/signal/Makefile.in: Regenerate. * libc/stdio/Makefile.in: Regenerate. * libc/stdio64/Makefile.in: Regenerate. * libc/stdlib/Makefile.in: Regenerate. * libc/string/Makefile.in: Regenerate. * libc/syscalls/Makefile.in: Regenerate. * libc/time/Makefile.in: Regenerate. * libc/unix/Makefile.in: Regenerate.
* * libc/time/strftime.c: Add support for era and alt_digits data fromCorinna Vinschen2010-02-262-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LC_TIME locale category. Conditionalize using _WANT_C99_TIME_FORMATS flag. (STRTOUL): Define differently for building strftime or wcsftime. (STRCPY): Ditto. (STRCHR): Ditto. (STRLEN): Ditto. (CHECK_LENGTH): Define to simplify code. (era_info_t): New type to store era info. (get_era_info): New function to fetch era info matching incoming struct tm. (free_era_info): New function to free era info. (alt_digits_t): New type to store alternative digits. (get_alt_digits): New function to convert alt_digits string into alt_digits_t structure. (free_alt_digits): New function to free alt_digits info. (conv_to_alt_digits): New function to convert unsigned value into alternative digits. (strftime): Conditionalize on _WANT_C99_TIME_FORMATS. If _WANT_C99_TIME_FORMATS is defined, define as just a wrapper function providing era_info and alt_digits pointers and call ... (__strftime): Rename from strftime and make static if _WANT_C99_TIME_FORMATS is defined. Add parameters for era_info and alt_digits pointers. Handle conversion modifiers according to POSIX-1.2008. Redefine %F and %Y according to POSIX. Add default case to allow to bail out on invalid conversion specifiers. * libc/include/sys/config.h: Move Cygwin build flags to Cygwin's config.h. * libc/include/stdio.h: Remove __CYGWIN_USE_BIG_TYPES__ condition.
* * libc/locale/locale.c: Throughout, extensively comment on theCorinna Vinschen2010-02-251-0/+1
| | | | | | | | reason for using __CYGWIN__. (lconv): Remove _CONST entirely. (loadlocale): Guard calls to function loading locale-specific category data with __HAVE_LOCALE_INFO__ rather than __CYGWIN__. * libc/sys/config.h (__HAVE_LOCALE_INFO__): Define for Cygwin.
* 2010-02-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2010-02-231-57/+2
| | | | | * libc/include/sys/types.h: Fix __XMK__ sectioning and remove redundant code section for __XMK__.
* * libc/include/langinfo.h (_NL_TIME_DATE_FMT): Define new nl_itemCorinna Vinschen2010-02-221-0/+3
| | | | | | value for LC_TIME entry date_fmt. (_DATE_FMT): Define "official" GNU name same as _NL_TIME_DATE_FMT. * libc/locale/nl_langinfo.c (nl_langinfo): Add case for _DATE_FMT.
* 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.