Corinna Vinschen
87865f4c9a
* fvwrite.c (__sfvwrite_r): Set __SMBF flag to avoid double free in
...
fclose. Enhance comment.
2011-12-20 09:06:58 +00:00
Jeff Johnston
e7c65aae83
2011-12-19 Jeff Johnston <jjohnstn@redhat.com>
...
* NEWS: Update with 1.20.0 info.
* README: Ditto.
* acinclude.m4: Change version number to 1.20.0.
* aclocal.m4: Regenerated.
* configure: Ditto.
* Makefile.in: Regenerated.
* doc/aclocal.m4: Ditto.
* doc/configure: Ditto.
* libc/*/aclocal.m4: Ditto.
* libc/*/configure: Ditto.
* libc/libc.texinfo: Ditto.
* libm/*/aclocal.m4: Ditto.
* libm/*/configure: Ditto.
* libm/libm.texinfo: Ditto.
* libc/sys/linux/shared.ld: Add VERS_1.20
2011-12-19 22:03:51 +00:00
Jeff Johnston
e480bc80c3
2011-12-13 Richard Earnshaw <rearnsha@arm.com>
...
Thomas Klein <th.r.klein@web.de>
* libc/sys/arm/crt0.S: Manually set the target architecture
when compiling for Thumb1 on EABI targets.
Don't use SWI on M-profile cores.
Avoid v6-only Thumb-1 MOV instruction.
2011-12-13 22:40:45 +00:00
Corinna Vinschen
74e0bcfc0f
* libc/time/strftime.c (get_era_info): Fix off-by-one error in month
...
calculation.
2011-12-12 10:48:29 +00:00
Corinna Vinschen
a88d73b52b
* libc/iconv/Makefile.am (stmp-def): Use $(MAKE) rather than make.
...
* libc/iconv/Makefile.in: Regenerate.
2011-12-06 10:45:05 +00:00
DJ Delorie
d1fc77322f
[libgloss]
...
* 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.
2011-11-29 06:33:49 +00:00
Corinna Vinschen
d84f3e29fb
* libc/iconv/ccs/Makefile.am: Add missing backslash.
...
* libc/iconv/ccs/Makefile.in: Regenerate.
2011-11-08 15:46:42 +00:00
Nick Clifton
d6f6573a5f
* libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memchr-stub.c,
...
memchr.S.
* libc/machine/arm/arm_asm.h: Add ifdef to allow it to be included
in .S files.
* libc/machine/arm/memchr-stub.c: New file - just selects what to
compile.
* libc/machine/arm/memchr.S: New file - ARMv6t2/v7 version.
* libc/machine/arm/Makefile.am (lib_a_SOURCES): Add strlen-armv7.S.
* libc/machine/arm/strlen-armv7.S: New file.
* libc/machine/arm/strlen.c: Add ifdef optimised code so it isn't
for v7 or 6t2.
* libc/machine/arm/Makefile.in: Regenerate.
2011-10-18 11:35:17 +00:00
Corinna Vinschen
f13f2da4ee
* libc/time/mktm_r.c: (__tzcalc_limits) Fix Julian day calculation.
...
* libc/time/mktime.c: (mktime) Fix tm_yday, tm_mday updating when
timezone causes roll over.
2011-10-11 11:28:05 +00:00
Nick Clifton
eefc33184a
oops - fix typo in previous delta.
2011-10-11 09:29:56 +00:00
Nick Clifton
fa5c739c6e
oops - omitted from previous delta.
2011-10-11 07:38:33 +00:00
Nick Clifton
f9a3814899
* libc/sys/arm/crt0.S: Synchronise with libgloss version.
...
* libc/sys/arm/arm.h: Imported from libgloss.
2011-10-10 13:00:25 +00:00
Nick Clifton
de0ae33544
* libc/machine/arm/memcpy.S: Fix unaligned access copying.
2011-10-04 16:02:25 +00:00
Nick Clifton
341bf73d6d
* libc/machine/arm/memcpy.S: New file. Contains a hand coded
...
memcpy function optimized for the cortex-a15.
* libc/machine/arm/memcpy-stub.c: New file.
* libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memcpy-stub.c,
memcpy.S.
* libc/machine/arm/Makefile.in: Regenerate.
2011-09-29 13:28:50 +00:00
Corinna Vinschen
477215fe7d
* libc/time/mktm_r.c (_mktm_r): Fix previous fix.
2011-08-26 07:23:42 +00:00
Corinna Vinschen
c9e60624d3
* libc/time/mktm_r.c (_mktm_r): Fix computing tm_year.
2011-08-24 13:38:32 +00:00
Ralf Corsepius
1c5c40f638
2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* libc/stdlib/putenv_r.c: Use "strchr" instead of obsolete "index".
* libc/stdlib/setenv_r.c: Use "memcpy" instead of obsolete "bcopy".
2011-08-23 12:03:55 +00:00
Ralf Corsepius
da344d0ea9
2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* libc/misc/ffs.c, libc/string/bcmp.c, libc/string/bcopy.c,
libc/string/bzero.c, libc/string/index.c, libc/string/rindex.c,
libc/string/strcasecmp.c, libc/string/strncasecmp.c:
Let synopsis reference "#include <strings.h>".
2011-08-23 12:01:51 +00:00
Ralf Corsepius
0792b19670
2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* libc/posix/regexec.c: Define "nope" only #ifndef NDEBUG.
* libc/stdio/vfscanf.c: Define "state" only #ifdef _MB_CAPABLE.
* libc/string/wcwidth.c: Include <wctypes.h> for "iswprint" and
"iswcntrl".
2011-08-23 11:59:56 +00:00
Ralf Corsepius
74c92a62fe
2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* libc/sys/rtems/include/limits.h: Compute SSIZE_MAX based on
__SIZE_MAX__, __SIZEOF_SIZE_T__ and __CHAR_BIT__.
2011-08-23 05:51:04 +00:00
Ralf Corsepius
f3e873f250
2011-08-22 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* 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-22 16:49:37 +00:00
Ralf Corsepius
fe9bdaedff
2011-08-19 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* 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-20 05:34:22 +00:00
Ralf Corsepius
34dc27f95d
2011-08-19 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* 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 17:00:32 +00:00
Ralf Corsepius
af8a9163c3
2011-08-19 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* 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".
2011-08-19 16:58:20 +00:00
Corinna Vinschen
e8fdf15a75
* libc/include/process.h: Remove exec family function declarations.
...
Add comment.
* libc/include/sys/unistd.h (execlpe): Declare for Cygwin.
2011-08-19 14:29:34 +00:00
Corinna Vinschen
6648762916
* libc/time/mktime.c (validate_structure): Account for tm_mon possibly
...
being given as negative.
(mktime): Set tm_isdst=0 when !daylight.
2011-08-19 14:14:18 +00:00
Joel Sherrill
529aa781b6
2011-08-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/include/sys/types.h: XML and RTEMS define
_UNIX98_THREAD_MUTEX_ATTRIBUTES and can use the standard
definitions. This avoids redefinition warnings.
2011-08-01 17:22:18 +00:00
Ralf Corsepius
ce108cc83c
2011-07-26 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* libc/sys/rtems/sys/dirent.h (scandir):
Add const to "select" parameter.
2011-07-26 04:04:45 +00:00
Ralf Corsepius
7d4b10de81
2011-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* libc/iconv/iconv.tex: Rename node "Introduction" into
"Introduction to iconv".
2011-07-25 12:41:38 +00:00
Yaakov Selkowitz
792c8bcff2
* libc/include/time.h [_POSIX_CLOCK_SELECTION] (clock_nanosleep):
...
Declare.
* libc/include/sys/features.h [__CYGWIN__] (_POSIX_CLOCK_SELECTION):
Define.
2011-07-20 19:41:15 +00:00
Yaakov Selkowitz
00900ab098
* libc/include/sys/unistd.h (_CS_XBS5_WIDTH_RESTRICTED_ENVS): Define.
...
(_CS_V6_ENV): Fix definition.
2011-07-20 01:14:50 +00:00
Corinna Vinschen
dfbfc68a5b
* libc/locale/lmessages.c (_C_messages_locale):
...
Move __HAVE_LOCALE_INFO_EXTENDED__ before codeset.
2011-07-19 19:24:45 +00:00
Corinna Vinschen
c9c2b42229
* libc/reent/sbrkr.c: Define _sbrk_r independently of the definition
...
of MALLOC_PROVIDED.
2011-07-19 07:23:09 +00:00
Jeff Johnston
7890be6e7d
2011-07-15 Yufeng Zhang <yufeng.zhang@arm.com>
...
* 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.
2011-07-15 17:20:16 +00:00
Corinna Vinschen
c842ff73e7
* libc/stdio/fscanf.c (fscanf): Call _vfscanf_r instead of __svfscanf_r
...
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.
2011-07-15 08:04:17 +00:00
Corinna Vinschen
7e055fdf39
* libc/time/mktime.c (mktime): Lock global timezone info while
...
accessing it.
2011-06-27 10:13:11 +00:00
Corinna Vinschen
aee3f8fb6f
* libc/time/asctime_r.c (asctime_r): Replace call to sprintf with call
...
to siprintf.
* libc/time/strftime.c: Define snprintf to sniprintf in multibyte case.
* libc/time/tzset_r.c: Define sscanf to siscanf.
2011-06-14 14:31:59 +00:00
Joseph Myers
25fa7e5ad6
libgloss:
...
* 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.
2011-06-14 13:40:48 +00:00
Corinna Vinschen
9bc99decb7
* libc/time/tzset_r.c (tzset_r): Correct behavior for changing from
...
non-GMT to GMT, when un-setting TZ. Set _timezone and _daylight even
if no DST is given in TZ.
2011-06-14 07:50:40 +00:00
Eric Blake
4226571d7a
printf: set errno for read-only stream
...
* 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-14 03:56:05 +00:00
Jeff Johnston
38e356f0e4
2011-06-09 Yaakov Selkowitz <yselkowitz@...>
...
* libc/include/string.h (strdupa): New macro function.
(strndupa): New macro function.
2011-06-10 18:30:38 +00:00
Nick Clifton
747a0a5205
* v8500/sbrk.c (_sbrk): Tidy code.
...
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.
2011-05-27 10:46:48 +00:00
Eric Blake
c65167c86e
* libc/string/strerror.c (_strerror_r): Report "Success" for 0.
2011-05-25 21:05:11 +00:00
Eric Blake
4805b60ccf
strerror: allow user hook to comply with POSIX rules
...
* 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.
2011-05-25 18:41:10 +00:00
Yaakov Selkowitz
831826db94
* libc/include/stdio_ext.h: New header.
...
* libc/stdio/fpurge.c [!__rtems__] (__fpurge): New function.
2011-05-19 07:21:42 +00:00
Yaakov Selkowitz
64a5e8a9a3
* libc/include/time.h (CLOCK_PROCESS_CPUTIME_ID): Rename from
...
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.
2011-05-16 22:35:10 +00:00
Corinna Vinschen
f783f223cb
* libc/stdlib/strtod.c (_strtod_r): Fix nf/nd counts to not exceed
...
DBL_DIG.
2011-05-16 13:34:06 +00:00
Corinna Vinschen
aaded2f90e
* libc/include/sys/features.h (_POSIX_THREAD_ATTR_STACKADDR): Define
...
to 200112L for Cygwin.
2011-05-15 18:50:52 +00:00
Corinna Vinschen
4d1bf2fbb8
* libc/time/strptime.c (strptime): Fill in tm_yday when all of tm_year,
...
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.
2011-05-12 13:41:22 +00:00
Corinna Vinschen
7bb76e751b
* libc/time/strptime.c (first_day): Actually return the wday
...
of the first day of the year.
2011-05-12 12:43:43 +00:00
Corinna Vinschen
94335e0842
* libc/locale/lmessages.c (_C_messages_locale): Add missing comma.
2011-05-10 16:37:14 +00:00
Yaakov Selkowitz
307b0a5d4b
* libc/include/signal.h (psignal): Declare.
...
* 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.
2011-05-04 11:26:22 +00:00
Corinna Vinschen
f737a4edba
* libc/locale/lmessages.h (__messages_load_locale): Declare. Remove
...
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.
2011-05-04 08:54:34 +00:00
Corinna Vinschen
6e16da9dec
Cygwin-specific patch from Andy Koppe:
...
* 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.
2011-05-04 08:45:17 +00:00
Yaakov Selkowitz
5f555b0bd3
* libc/include/sys/features.h [__CYGWIN__] (_POSIX_SPIN_LOCKS): Define.
...
* libc/include/sys/types.h: Cygwin provides its own pthread_spinlock_t
typedef.
2011-05-02 16:05:06 +00:00
Corinna Vinschen
060e5c9785
* libc/include/sys/signal.h (_sig_func_ptr): Define with int parameter
...
per POSIX. Explain in comment.
2011-04-19 08:02:59 +00:00
Eric Blake
0fbf39cc9f
strchrnul: avoid segv
...
* libc/string/strchrnul.c (strchrnul): Fix strchrnul.
2011-04-15 20:26:05 +00:00
Corinna Vinschen
cb840afddf
Check in strchrnul.c file missing in previous checkin
2011-03-28 14:52:17 +00:00
Corinna Vinschen
43ff4129ce
* libc/include/string.h (strchrnul): Declare.
...
* libc/string/strchrnul.c: New file.
* libc/string/Makefile.am (ELIX_2_SOURCES): Add strchrnul.c.
* libc/string/Makefile.in: Regenerate.
2011-03-28 14:51:28 +00:00
Nick Clifton
bf77fa00b7
* libc/machine/frv/setjmp.S: Fix typo in .size directive.
2011-03-23 11:01:05 +00:00
Kevin Buettner
3b60b701b1
* libc/sys/sysnecv850/trap.S (___trap0): Fix errno handling.
...
* 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.
2011-03-21 22:11:14 +00:00
Corinna Vinschen
4b43b20be8
* libc/include/string.h: Include sys/cdefs.h.
2011-03-03 11:11:41 +00:00
Corinna Vinschen
977cd4175e
* libc/include/sys/cdefs.h (__CONCAT1): Define.
...
(__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-03 10:37:09 +00:00
Corinna Vinschen
d9db1bc555
* libc/stdio/fmemopen.c (fmemopen): Fix EINVAL condition. Avoid SEGV
...
if incoming buffer is NULL.
2011-02-22 15:38:14 +00:00
Eric Blake
7c10a76dec
strerror_r: provide POSIX implementation
...
* 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.
2011-02-10 16:48:18 +00:00
Corinna Vinschen
656df313e0
* libc/stdio/fclose.c: Only use sfp lock to guard non-atomic
...
changes of flags and fp lock.
* libc/stdio/freopen.c: Ditto.
* libc/stdio/freopen64.c: Ditto.
* libc/stdio/fgetc.c: Revert change from 2009-04-24, remove sfp locks
which guard entire function to avoid potential deadlocks when using
stdio functions in multiple thraeds.
* libc/stdio/fgets.c: Ditto.
* libc/stdio/fgetwc.c: Ditto.
* libc/stdio/fgetws.c: Ditto.
* libc/stdio/fread.c: Ditto.
* libc/stdio/fseek.c: Ditto.
* libc/stdio/getc.c: Ditto.
* libc/stdio/getdelim.c: Ditto.
* libc/stdio/gets.c: Ditto.
* libc/stdio/vfscanf.c: Ditto.
* libc/stdio/vfwscanf.c: Ditto.
* libc/stdio/fflush.c (_fflush_r): Split out core functionality into
new function __sflush_r. Just lock file and call __sflush_r from here.
* libc/stdio/fwalk.c (_fwalk): Remove static helper function and move
functionality back into main function. Don't walk a file with flags
value of 1. Add comment.
(_fwalk_reent): Ditto.
* libc/stdio/local.h (__sflush_r): Declare.
* libc/stdio/refill.c (__srefill): Before calling fwalk, set flags
value to 1 so this file pointer isn't walked. Revert flags afterwards
and call __sflush_r for this fp if necessary. Add comments.
2011-01-28 10:49:11 +00:00
Corinna Vinschen
7cc6d7cfc6
* libc/include/sys/features.h: Define __STDC_ISO_10646__ for Cygwin.
...
* libc/include/wchar.h: Include features.h.
2011-01-27 11:55:01 +00:00
Corinna Vinschen
d6d9c269e4
* libc/include/sys/types.h (ulong): Add typedef.
2011-01-15 09:26:16 +00:00
Corinna Vinschen
7971c2a29c
* libc/include/linux/sys/signal.h (sig_t): Move from here...
...
* libc/include/signal.h (sig_t): ...to here.
2011-01-12 11:49:28 +00:00
Corinna Vinschen
1991358fe5
* libc/machine/mips/strlen.c (strlen): Add delay slot for R3000.
2011-01-10 12:11:55 +00:00
Corinna Vinschen
84ca64afa6
* libc/include/string.h: Make strsignal() available unconditionally.
2011-01-10 10:59:42 +00:00
Jeff Johnston
a81dfe76fe
2011-01-07 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/sys/rtems/crt0.c: Adjust free() and calloc() to match their
public decls.
2011-01-07 19:27:33 +00:00
Jeff Johnston
c0e3c29150
2011-01-05 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/stdio/open_memstream.c (internal_open_memstream_r):
Don't limit c->max to 64*1024 on targets with SIZE_MAX < 64*1024.
2011-01-05 17:38:42 +00:00
Jeff Johnston
f559c264a9
2011-01-05 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/xdr/xdr.c: Fix typos in #errors.
2011-01-05 17:23:01 +00:00
Jeff Johnston
973929f99e
2011-01-05 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/xdr/xdr_private.h: Include <stdint.h>
* libc/xdr/xdr_rec.c: Include limits.h
2011-01-05 17:21:23 +00:00
Jeff Johnston
a8b560b15d
2011-01-05 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/Makefile.am (SUBDEFS): Remove redundant posix/stmp-def.
* libc/Makefile.in: Regenerate.
2011-01-05 17:18:16 +00:00
Jeff Johnston
c35ba525fc
2011-01-05 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libc/configure.in: Remove redundant posix_dir processing.
* libc/configure: Regenerate.
2011-01-05 17:13:24 +00:00
Christopher Faylor
589e430baa
cygwin:
...
* 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.
2010-12-26 21:11:38 +00:00
Jeff Johnston
321b046c80
2010-12-16 Jeff Johnston <jjohnstn@redhat.com>
...
* NEWS: Update with 1.19.0 info.
* README: Ditto.
* MAINTAINERS: Update.
* acinclude.m4: Change version number to 1.19.0.
* aclocal.m4: Regenerated.
* configure: Ditto.
* Makefile.am: Fix stmp-targ-include target.
* Makefile.in: Regenerated.
* doc/aclocal.m4: Ditto.
* doc/configure: Ditto.
* libc/*/aclocal.m4: Ditto.
* libc/*/configure: Ditto.
* libc/libc.texinfo: Ditto.
* libm/*/aclocal.m4: Ditto.
* libm/*/configure: Ditto.
* libm/libm.texinfo: Ditto.
* libc/sys/linux/shared.ld: Add VERS_1.19
2010-12-16 21:59:17 +00:00
Corinna Vinschen
f8afe40f49
* include/sys/types.h: Add #if defined(__rtems__) around
...
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.
2010-12-08 14:44:06 +00:00
Corinna Vinschen
a406e79b02
* libc/include/strings.h: Don't include locale.h.
2010-12-08 10:28:40 +00:00
Eric Blake
1dfc6c9535
strings.h: avoid namespace pollution
...
* libc/include/strings.h: Don't declare removed functions when
requesting POSIX 2008 compliance.
2010-12-08 02:47:14 +00:00
Jeff Johnston
c317cb34b1
2010-12-07 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdlib/strtod.c(_strtod_r): Fix code to handle case whereby
_DOUBLE_IS_32BITS is set and DBL_DIGS is 6 instead of 15.
2010-12-07 21:26:45 +00:00
Jeff Johnston
1d1dde068c
2010-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* libc/include/strings.h: New (split-out from string.h).
2010-12-07 17:31:26 +00:00
Corinna Vinschen
fd4515030c
* libc/include/math.h: Missing from previous checkin.
2010-12-03 16:08:48 +00:00
Jeff Johnston
874a87f8cd
2010-12-02 Jayant Sonar jayant.sonar@kpitcummins.com
...
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
2010-12-02 19:30:47 +00:00
Corinna Vinschen
ce386bafb7
* libc/locale/locale.c (loadlocale): Recognise the "cjknarrow"
...
modifier on "C.<charset>" locales too.
2010-11-19 10:02:36 +00:00
Corinna Vinschen
617dc68bfe
* libc/locale/locale.c (loadlocale): Fix width of CJK ambigous
...
characters to 1 for singlebyte charsets and 2 for non-Unicode
multibyte charsets. Change documentation accordingly.
2010-11-18 11:02:53 +00:00
Corinna Vinschen
2988dfa72b
* libc/machine/i386/setjmp.S (longjmp): Per POSIX, return 1 if second
...
argument is 0.
2010-11-16 17:52:21 +00:00
Corinna Vinschen
f43dea8084
* libc/include/sys/types.h: Add _mode_t for __rtems__.
...
* 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-11-16 17:29:39 +00:00
Jeff Johnston
9ef039777b
2010-10-27 Maurice Baijens <maurice.baijens@ellips.nl>
...
* libc/stdlib/strtol.c: Make sure signed characters are not
sign-extended when converted to int and passed to ctype macros.
* libc/stdlib/strtoul.c: Ditto.
* libc/stdlib/strtoll_r.c: Ditto.
* libc/stdlib/strtoull_r.c: Ditto.
2010-10-27 19:06:10 +00:00
Jeff Johnston
9f2ecfff1c
2010-10-14 Craig Howland <howland@LGSInnovations.com>
...
* libc/include/math.h: Delete cabs() and cabs() prototypes
(c.f. 2010-10-08 change by Corinna).
2010-10-14 20:14:33 +00:00
Jeff Johnston
1571d0a51f
2010-10-08 Bernd Schmidt <bernds@codesourcery.com>
...
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).
2010-10-09 02:33:30 +00:00
Corinna Vinschen
339814ba6f
* libc/include/sys/unistd.h: Declare getsid, setegid, seteuid for RTEMS.
2010-10-08 15:28:49 +00:00
Corinna Vinschen
5af2a793bc
* libc/include/complex.h: New complex header.
...
* 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.
2010-10-08 10:35:14 +00:00
Corinna Vinschen
c725984f70
* lib/str-two-way.h (two_way_long_needle): Avoid bug with long
...
periodic needle having false positive. Affects memmem, strstr,
strcasestr.
2010-10-06 09:29:35 +00:00
Jeff Johnston
60376287eb
2010-09-21 Craig Howland <howland@LGSInnovations.com>
...
* libc/string/memcpy.c: Do not assign size_t parameter to int.
Use parameter directly, instead.
* libc/string/memccpy.c: Likewise.
* libc/string/mempcpy.c: Likewise.
* libc/string/memmove.c: Likewise.
2010-09-22 03:15:07 +00:00
Kevin Buettner
b88e4203a9
* libc/sys/sysnecv850/Makefile.am (lib_a_SOURCES): Provide an
...
empty definition.
* libc/sys/sysnecv850/Makefile: Regenerate.
2010-09-09 14:54:24 +00:00
Corinna Vinschen
04c82a9ba0
* libc/posix/opendir.c (opendir): Fix potential memory leak.
2010-08-25 10:44:47 +00:00
Yaakov Selkowitz
7aba919b5e
* libc/include/sys/dir.h: New BSD-compatibility header.
2010-08-11 18:14:54 +00:00