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
Corinna Vinschen
503ff5adc1
* Makefile.am (install-data-local): Fix condition and rm call.
...
* Makefile.in: Regenerate.
2011-05-19 06:04:59 +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
Jeff Johnston
127c3221cd
2011-03-01 Aaron Landwehr <snaphat@gmail.com>
...
* libm/complex/cproj.c: Fix typo.
* libm/complex/cprojf.c: Ditto.
2011-03-01 21:43:15 +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
c3099d3d42
Fix path in ChangeLog entry
2011-02-07 11:36:04 +00:00
Jeff Johnston
42583e8a0b
Fix spelling of Ralf Corsepius' name in ChangeLog.
2011-02-03 22:25:04 +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
5bc054170e
Fix ChangeLog entry
2011-01-13 11:28:14 +00:00
Jeff Johnston
47235a60ab
2011-01-12 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* libm/math/w_tgamma.c: Only build ifndef _DOUBLE_IS_32BITS.
* libm/math/wf_tgamma.c: Map tgamma to tgammaf, ifdef _DOUBLE_IS_32BITS.
2011-01-12 22:25:15 +00:00
Jeff Johnston
0597fe0adc
2011-01-12 Jeff Johnston <jjohnstn@redhat.com>
...
* configure.host: Add noinclude variable to allow specification
of header files to remove from installation.
* acinclude.m4: Provide NO_INCLUDE_LIST variable based on
noinclude variable in configure.host.
* configure: Regenerated.
* Makefile.am: Remove all header files in NO_INCLUDE_LIST.
* Makefile.in: Regenerated.
2011-01-12 22:24:06 +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
33cdc2a420
Fix date
2011-01-10 12:10:18 +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
ebb0c523d7
2011-01-05 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* Makefile.am: Move cleaning targ-include to clean-local.
* Makefile.in: Regenerate.
2011-01-05 22:48:56 +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
Michael Frysinger
af7c827ae9
fix typo in Corinna Vinschen's e-mail address
2010-12-31 05:29:36 +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
Jeff Johnston
8d73754622
2010-12-14 Jeff Johnston <jjohnstn@redhat.com>
...
* Makefile.am: Add support to copy all sub-directories of the
sys/SYS_DIR/include directory, if they contain header files.
* Makefile.in: Regenerated.
2010-12-14 22:35:27 +00:00
Jeff Johnston
23dbdc2aaa
2010-12-08 Jeff Johnston <jjohnstn@redhat.com>
...
* libm/mathfp/sf_logarithm.c: Change isfinitef reference to isfinite.
2010-12-08 23:22:20 +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