summaryrefslogtreecommitdiffstats
path: root/newlib
Commit message (Collapse)AuthorAgeFilesLines
* 2011-08-22 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-08-227-4/+19
| | | | | | | | | | | | | * libc/string/index.c: Include <strings.h> for "index". * libc/string/rindex.c: Include <strings.h> for "rindex". * libc/string/strcasecmp.c: Include <strings.h> for "strcasecmp". Don't include <string.h>. * libc/string/strncasecmp.c: Include <strings.h> for "strncasecmp". Don't include <string.h>. * libc/string/bzero.c: Include <strings.h> for "bzero". Don't include <string.h> * libc/misc/ffs.c: Include <strings.h> for "ffs". Don't include <_ansi.h>.
* 2011-08-19 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-08-202-95/+72
| | | | | | | | * libc/sys/rtems/crt0.c: Rework RTEMS_STUB macro. Include <unistd.h>. Remove C++-style comments. Remove hppa, a29k. Add clock_gettime, gettimeofday, sched_yield.
* 2011-08-19 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-08-197-0/+21
| | | | | | | | | * libc/stdio/vasiprintf.c: Include "local.h" for "_svfiprintf_r". * libc/stdio/vasprintf.c Include "local.h" for "_svfprintf_r". * libc/stdio/vsiprintf.c: Include "local.h" for "_svfiprintf_r". * libc/stdio/vsniprintf.c: Include "local.h" for "_svfiprintf_r". * libc/stdio/vsnprintf.c: Include "local.h" for "_svfprintf_r" * libc/stdio/vsprintf.c: Include "local.h" for "_svfprintf_r"
* 2011-08-19 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-08-195-0/+11
| | | | | | | * libc/string/bcmp.c: Include <strings.h> for "bcmp". * libc/string/bcopy.c: Include <strings.h> for "bcopy". * libc/string/strcasestr.c: Include <strings.h> for "strncasecmp". * libc/time/strptime.c: Include <strings.h> for "strncasecmp".
* * libc/include/process.h: Remove exec family function declarations.Corinna Vinschen2011-08-193-10/+12
| | | | | Add comment. * libc/include/sys/unistd.h (execlpe): Declare for Cygwin.
* * libc/time/mktime.c (validate_structure): Account for tm_mon possiblyCorinna Vinschen2011-08-192-6/+13
| | | | | being given as negative. (mktime): Set tm_isdst=0 when !daylight.
* 2011-08-01 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2011-08-012-34/+44
| | | | | | * libc/include/sys/types.h: XML and RTEMS define _UNIX98_THREAD_MUTEX_ATTRIBUTES and can use the standard definitions. This avoids redefinition warnings.
* * ChangeLog: Fix my name's spelling.Ralf Corsepius2011-07-261-8/+8
|
* 2011-07-26 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-07-262-1/+6
| | | | | * libc/sys/rtems/sys/dirent.h (scandir): Add const to "select" parameter.
* 2011-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-07-252-3/+8
| | | | | * libc/iconv/iconv.tex: Rename node "Introduction" into "Introduction to iconv".
* * libc/include/time.h [_POSIX_CLOCK_SELECTION] (clock_nanosleep):Yaakov Selkowitz2011-07-203-1/+24
| | | | | | 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-202-1/+7
| | | | (_CS_V6_ENV): Fix definition.
* * libc/locale/lmessages.c (_C_messages_locale):Corinna Vinschen2011-07-192-3/+8
| | | | Move __HAVE_LOCALE_INFO_EXTENDED__ before codeset.
* * libc/reent/sbrkr.c: Define _sbrk_r independently of the definitionCorinna Vinschen2011-07-192-3/+6
| | | | of MALLOC_PROVIDED.
* 2011-07-15 Yufeng Zhang <yufeng.zhang@arm.com>Jeff Johnston2011-07-154-9/+85
| | | | | | | | | | | | | * libc/stdio/vfwprintf.c (wcvt): Add a new parameter len of type int. *length is set to the value of (rev - digits) regardless of whether _MB_CAPABLE is defined or not. Replace BUF with len in calling _mbsnrtowcs_r and also in the loop where _MB_CAPABLE is not defined. (_VFWPRINTF_R): Call wcvt with an extra argument. Call wcvt again with allocated new buffer if buf is not large enough for the conversion. * testsuite/newlib.stdio/stdio.exp: New. * testsuite/newlib.stdio/swprintf.c: Likewise.
* * libc/stdio/fscanf.c (fscanf): Call _vfscanf_r instead of __svfscanf_rCorinna Vinschen2011-07-155-8/+21
| | | | | | | | | | | | to make sure CHECK_INIT is called. (_fscanf_r): Ditto. * /libc/stdio/scanf.c (scanf): Ditto. (_scanf_r): Ditto. * libc/stdio/fwscanf.c (fwscanf): Call _vfwscanf_r instead of __svfwscanf_r to make sure CHECK_INIT is called. (_fwscanf_r): Ditto. * libc/stdio/wscanf.c (wscanf): Ditto. (_wscanf_r): Ditto.
* * libm/complex/cacos.c: Use temporaries and correct sequencingCorinna Vinschen2011-07-132-2/+17
| | | | error in previous reordering change.
* * libc/time/mktime.c (mktime): Lock global timezone info whileCorinna Vinschen2011-06-272-0/+9
| | | | accessing it.
* * libc/time/asctime_r.c (asctime_r): Replace call to sprintf with callCorinna Vinschen2011-06-144-5/+15
| | | | | | to siprintf. * libc/time/strftime.c: Define snprintf to sniprintf in multibyte case. * libc/time/tzset_r.c: Define sscanf to siscanf.
* libgloss:Joseph Myers2011-06-144-85/+13
| | | | | | | | | | | | | | | * configure.in: Don't handle strongarm, ep9312 and xscale target names. * configure: Regenerate. * libnosys/configure.in: Don't handle strongarm and thumb target names. * libnosys/configure: Regenerate. newlib: * configure.host: Don't handle ep9312, strongarm, xscale and thumb target names. * libc/machine/configure.in: Don't handle xscale target names. * libc/machine/configure: Regenerate.
* * libc/time/tzset_r.c (tzset_r): Correct behavior for changing fromCorinna Vinschen2011-06-142-1/+11
| | | | | non-GMT to GMT, when un-setting TZ. Set _timezone and _daylight even if no DST is given in TZ.
* printf: set errno for read-only streamEric Blake2011-06-145-15/+26
| | | | | | | * libc/stdio/wsetup.c (__swsetup_r): Set errno on failure. * libc/stdio/fvwrite.c (__sfvwrite_r): Simplify. * libc/stdio/wbuf.c (__swbuf_r): Likewise. * libc/stdio/local.h (cantwrite): Adjust comment.
* 2011-06-09 Yaakov Selkowitz <yselkowitz@...>Jeff Johnston2011-06-102-0/+19
| | | | | * libc/include/string.h (strdupa): New macro function. (strndupa): New macro function.
* * v8500/sbrk.c (_sbrk): Tidy code.Nick Clifton2011-05-272-19/+17
| | | | | | | Base start of heap on the "heap_start" symbol. * libc/sys/sysnecv850/sbrk.c (_sbrk): Tidy code. Base start of heap on the "heap_start" symbol.
* fix changelog typoEric Blake2011-05-251-1/+1
|
* * libc/string/strerror.c (_strerror_r): Report "Success" for 0.Eric Blake2011-05-252-0/+10
|
* strerror: allow user hook to comply with POSIX rulesEric Blake2011-05-258-27/+73
| | | | | | | | | | | * 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-193-0/+50
| | | | * libc/stdio/fpurge.c [!__rtems__] (__fpurge): New function.
* * Makefile.am (install-data-local): Fix condition and rm call.Corinna Vinschen2011-05-193-4/+9
| | | | * Makefile.in: Regenerate.
* * libc/include/time.h (CLOCK_PROCESS_CPUTIME_ID): Rename fromYaakov Selkowitz2011-05-163-4/+12
| | | | | | | 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/stdlib/strtod.c (_strtod_r): Fix nf/nd counts to not exceedCorinna Vinschen2011-05-162-8/+15
| | | | DBL_DIG.
* * libc/include/sys/features.h (_POSIX_THREAD_ATTR_STACKADDR): DefineCorinna Vinschen2011-05-152-1/+6
| | | | to 200112L for Cygwin.
* * libc/time/strptime.c (strptime): Fill in tm_yday when all of tm_year,Corinna Vinschen2011-05-122-0/+87
| | | | | tm_mon and tm_mday are updated. Fill in tm_mon, tm_mday and tm_wday when both of tm_year and tm_yday are updated.
* * libc/time/strptime.c (first_day): Actually return the wdayCorinna Vinschen2011-05-122-2/+7
| | | | of the first day of the year.
* * libc/locale/lmessages.c (_C_messages_locale): Add missing comma.Corinna Vinschen2011-05-102-1/+5
|
* * libc/include/signal.h (psignal): Declare.Yaakov Selkowitz2011-05-0410-50/+100
| | | | | | | | | | | * 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/locale/lmessages.h (__messages_load_locale): Declare. RemoveCorinna Vinschen2011-05-043-13/+24
| | | | | | | | | accidental declaration of __numeric_load_locale. * libc/locale/locale.c: Include timelocal.h to get declaration of __time_load_locale. (__set_locale_from_locale_alias): Fix return type. (__locale_msgcharset): Avoid compiler warnings. (_localeconv_r): Ditto.
* Cygwin-specific patch from Andy Koppe:Corinna Vinschen2011-05-042-7/+13
| | | | | | | * libc/locale/locale.c (current_categories): On Cygwin, set LC_CTYPE to C.UTF-8 to match initial __wctomb and __mbtowc settings. (lc_ctype_charset): On Cygwin, initialize to "UTF-8". (loadlocale): Remove unused Cygwin-specifc code.
* * libc/include/sys/features.h [__CYGWIN__] (_POSIX_SPIN_LOCKS): Define.Yaakov Selkowitz2011-05-023-2/+8
| | | | | * 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-192-1/+7
| | | | per POSIX. Explain in comment.
* strchrnul: avoid segvEric Blake2011-04-152-3/+5
| | | | * libc/string/strchrnul.c (strchrnul): Fix strchrnul.
* Check in strchrnul.c file missing in previous checkinCorinna Vinschen2011-03-281-0/+49
|
* * libc/include/string.h (strchrnul): Declare.Corinna Vinschen2011-03-284-2/+19
| | | | | | * libc/string/strchrnul.c: New file. * libc/string/Makefile.am (ELIX_2_SOURCES): Add strchrnul.c. * libc/string/Makefile.in: Regenerate.
* * libc/machine/frv/setjmp.S: Fix typo in .size directive.Nick Clifton2011-03-232-1/+5
|
* * libc/sys/sysnecv850/trap.S (___trap0): Fix errno handling.Kevin Buettner2011-03-218-11/+45
| | | | | | | | * libc/sys/sysnecv850/rename.c: New file. * libc/sys/sysnecv850/Makefile.am (lib_a_SOURCES): Add rename.c * libc/sys/sysnecv850/Makefile.in: Regenerate. * libc/sys/sysnecv850/fstat.c (_fstat): Invoke trap for SYS_fstat. * libc/sys/sysnecv850/unlink.c (_unlink): Invoke trap for SYS_unlink.
* * libc/include/string.h: Include sys/cdefs.h.Corinna Vinschen2011-03-032-0/+5
|
* * libc/include/sys/cdefs.h (__CONCAT1): Define.Corinna Vinschen2011-03-033-1/+32
| | | | | | | | | (__CONCAT): Define. (__STRING): Define. (__XSTRING): Define. (__ASMNAME): Define. * libc/include/string.h (strerror_r): Use __ASMNAME to take target specific label prefixes into account.
* 2011-03-01 Aaron Landwehr <snaphat@gmail.com>Jeff Johnston2011-03-013-2/+7
| | | | | * libm/complex/cproj.c: Fix typo. * libm/complex/cprojf.c: Ditto.
* * libc/stdio/fmemopen.c (fmemopen): Fix EINVAL condition. Avoid SEGVCorinna Vinschen2011-02-222-2/+7
| | | | if incoming buffer is NULL.
* strerror_r: provide POSIX implementationEric Blake2011-02-107-13/+115
| | | | | | | | | | | * 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.