Jeff Johnston
6cb0c05514
2005-01-20 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/time/strftime.c (strftime): Change %r and %x to be compliant
to POSIX standard for "C" locale. Allow %E and %O modifiers
to be ignored as long as they precede valid specifiers according
to POSIX.
2005-01-20 19:56:27 +00:00
Jeff Johnston
524298079c
2005-01-19 Shaun Jackman <sjackman@gmail.com>
...
* libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
environment variable is set.
2005-01-20 17:31:04 +00:00
Jeff Johnston
f693170ab3
2005-01-19 Shaun Jackman <sjackman@gmail.com>
...
* tzset_r.c (_tzname): Add a comma.
2005-01-19 16:44:42 +00:00
Aldy Hernandez
464d01bf6e
* libc/machine/powerpc/vfprintf.c: Use _REENT when calling
...
_VFPRINTF_R.
2005-01-18 17:08:55 +00:00
Jeff Johnston
7cd6e35969
Fix typo.
2005-01-10 16:24:12 +00:00
Jeff Johnston
f7a74742e6
2005-01-07 Paul Brook <paul@codesourcery.com>
...
* configure.in: Add test for .init_array.
* configure: Regenerate.
* newlib.hin: Add HAVE_INITFINI_ARRAY.
* libc/misc/Makefile.am: Add init.c
* libc/misc/Makefile.in: Regenerate.
* libc/misc/init.c: New file.
* libc/sys/arm/crt0.S: Call __libc_{init,fini}_array instead of
_init/_fini if they exist.
2005-01-07 18:04:39 +00:00
Jeff Johnston
8fa6cb9a5d
2005-01-06 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdlib/strtod.c (_strtod_r): Add NaN support.
* (strtof): Ditto.
* libc/stdio/vfscanf.c (__svfscanf_r): Ditto.
* Makefile.am (MATHOBJS_IN_LIBC): Add s_nan and sf_nan
functions for use by strtod and strtof.
* Makefile.in: Regenerated.
2005-01-06 23:31:56 +00:00
Jeff Johnston
034a3909ae
2005-01-06 Hans-Peter Nilsson <hp@axis.com>
...
* libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
bit-test in combination with NULL test.
2005-01-06 20:10:56 +00:00
Jeff Johnston
5cc3f59253
Add missing ChangeLog entry for 1.13.0 release.
...
2004-12-17 Jeff Johnston <jjohnstn@redhat.com>
* NEWS: Update with 1.13.0 info.
* README: Ditto.
* acinclude.m4: Change version number to 1.13.0.
* aclocal.m4: Regenerated.
* configure: Ditto.
* 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.13.
2005-01-06 20:05:37 +00:00
Jeff Johnston
9918ea2da9
2005-01-06 Hans-Peter Nilsson <hp@axis.com>
...
* README: Fix typo of LGPL. Change "license" to "copyright".
2005-01-06 19:38:30 +00:00
Jeff Johnston
a9c42bde0b
2004-12-17 Jeff Johnston <jjohnstn@redhat.com>
...
* NEWS: Update with 1.13.0 info.
* README: Ditto.
* acinclude.m4: Change version number to 1.13.0.
* aclocal.m4: Regenerated.
* configure: Ditto.
* doc/aclocal.m4: Ditto.
* doc/configure: Ditto.
* iconvdata/aclocal.m4: Ditto.
* iconvdata/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.13.
2004-12-17 22:48:16 +00:00
Jeff Johnston
d8ae996c41
2004-12-17 Christian Groessler <chris@groessler.org>
...
* libc/machine/z8k/memcmp.S: New file.
* libc/machine/z8k/memcpy.S: Ditto.
* libc/machine/z8k/memmove.S: Ditto.
* libc/machine/z8k/memset.S: Ditto.
* libc/machine/z8k/Makefile.am: Add new files.
* libc/machine/z8k/Makefile.in: Regenerated.
* libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002
part. Implement Z8002 stdcall version.
2004-12-17 20:17:13 +00:00
Jeff Johnston
82673116e1
2004-12-13 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/fread.c (fread): For unbuffered I/O, attempt
a low-level read if we don't get the full amount of bytes so
EOF or error flags will be set.
2004-12-13 19:42:16 +00:00
Jeff Johnston
0082d4cf57
2004-12-09 Alex Mogilnikov <alx@intellectronika.ru>
...
* libc/time/tzset_r (_tzset_r): Properly skip over
'/' when it is detected.
2004-12-09 21:36:48 +00:00
Jeff Johnston
3b54b74f3a
2004-12-08 Alex Mogilnikov <alx@intellectronika.ru>
...
* libc/time/tzset_r (_tzset_r): Fix loop.
2004-12-08 18:12:28 +00:00
Jeff Johnston
4b30e15471
2004-12-08 Alex Mogilnikov <alx@intellectronika.ru>
...
* libc/time/mktm_r (_mktm_r): Fix overflow calculation for
m_day.
(__tzcalc_limits): Fix reference to month array to be zero-based.
2004-12-08 17:54:38 +00:00
Jeff Johnston
465eab2eb4
2004-12-07 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate,
and usleep.
2004-12-07 18:54:28 +00:00
Jeff Johnston
a2b1a849d1
2004-12-03 Jeff Johnston <jjohnstn@redhat.com>
...
* Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any
libgcc dependencies.
(libm_la_LDFLAGS): Ditto.
* Makefile.in: Regenerated.
2004-12-03 23:46:28 +00:00
Jeff Johnston
c80a17311c
2004-12-03 Shaun Jackman <sjackman@gmail.com>
...
* libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix
our link to use readlink so as to preserve any relative link created
by install-toollibLIBRARIES.
* libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
2004-12-03 21:20:15 +00:00
Jeff Johnston
70e9da4249
2004-12-02 Shaun Jackman <sjackman@gmail.com>
...
* libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines
time_t before including sys/stat.h, which uses it.
* libc/sys/linux/sys/stat.h: Include <sys/types.h> and
<linux/time.h> just prior to definition of __KERNEL__ so as to
allow building on Debian Linux where otherwise, mktime would
be redefined.
2004-12-02 19:30:56 +00:00
Jeff Johnston
a330d85a45
2004-11-26 Paul Brook <paul@codesourcery.com>
...
* libc/sys/arm/crt0.S (_start): Add .cantunwind annotation.
2004-11-26 16:42:10 +00:00
Jeff Johnston
9aa189be83
2004-11-24 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/stdlib.h (putenv, _putenv_r): Change to remove
const for value string parameter to match Single Unix and glibc.
* libc/stdlib/putenv.c: Ditto.
* libc/stdlib/putenv_r.c: Ditto.
2004-11-24 22:34:47 +00:00
Jeff Johnston
c41a1cb7d8
2004-11-24 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/stdlib.h (putenv, _putenv_r): Change to remove
const for value string parameter.
* libc/stdlib/putenv.c: Ditto.
* libc/stdlib/putenv_r.c: Ditto.
2004-11-24 22:34:15 +00:00
Jeff Johnston
16ac96ee69
2004-11-24 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/Makefile.am: Fix missing vfscanf.
* libc/stdio/Makefile.in: Regenerated.
2004-11-24 22:31:05 +00:00
Jeff Johnston
3bf091476a
2004-11-23 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/stdio.h: Add new iprintf and iscanf variants. Also
do some reordering.
* libc/machine/powerpc/vfscanf.c: Remove __sccl function.
* libc/stdio/Makefile.am: Add support for new iprintf and iscanf
family functions.
* libc/stdio/Makefile.in: Regenerated.
* libc/stdio/fiprintf.c: Remove doc to siprintf.c.
* libc/stdio/iprintf.c: Ditto.
* libc/stdio/local.h (__svfiscanf_r): New prototype.
* libc/stdio/siprintf.c: Add docs for various iprintf family functions.
* libc/stdio/sniprintf.c: Move docs to siprintf.c.
* libc/stdio/stdio.tex: Add new functions.
* libc/stdio/vfscanf.c: Split out __sccl function to separate
file and add special name defines so this file can be used
to build vfiscanf.o.
* libc/stdio/asiprintf.c: New file.
* libc/stdio/fiscanf.c: Ditto.
* libc/stdio/iscanf.c: Ditto.
* libc/stdio/sccl.c: Ditto.
* libc/stdio/siscanf.c: Ditto.
* libc/stdio/vasiprintf.c: Ditto.
* libc/stdio/viprintf.c: Ditto.
* libc/stdio/viscanf.c: Ditto.
* libc/stdio/vsiprintf.c: Ditto.
* libc/stdio/vsiscanf.c: Ditto.
* libc/stdio/vsniprintf.c: Ditto.
2004-11-24 00:45:41 +00:00
Jeff Johnston
0f0fcb042a
2004-11-19 Shaun Jackman <sjackman@gmail.com>
...
* libc/include/stdio.h: Add sniprintf.
* libc/stdio/Makefile.am: Add sniprintf.c.
* libc/stdio/Makefile.in: Regenerated.
* libc/stdio/sniprintf.c: New file.
* libc/stdio/stdio.tex: Add sniprintf.
2004-11-20 01:42:35 +00:00
Christopher Faylor
1f8f7e2d54
* libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin. Clear EOF
...
flag if successful.
2004-11-17 17:02:10 +00:00
Christopher Faylor
334ba104fe
tweak wording
2004-10-28 15:55:22 +00:00
Christopher Faylor
b08d08c7c4
* libc/include/sys/signal.h: Move <signal.h> include to bottom of file so that
...
all relevant definitions have been handled for use in the include.
2004-10-28 15:06:47 +00:00
Jeff Johnston
65b1964f1a
2004-10-26 Jason Tishler <jason@tishler.net>
...
* libc/stdio/fread.c (fread): Fix return value for unbuffered
fread.
2004-10-26 18:21:09 +00:00
Jeff Johnston
6382b7e379
Fix date typo.
2004-10-25 17:56:05 +00:00
Jeff Johnston
06b5ef6e7d
2001-10-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
...
* libc/include/machine/setjmp.h: Add AVR support.
* libc/sys/rtems/crt0.S [__AVR__]: Add __stack.
2004-10-25 17:53:19 +00:00
Jeff Johnston
73131c2d20
2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/signal.h: If <signal.h> didn't include
this header file, include <signal.h> to account for
applications that take advantage that the two header
files are the same in glibc.
2004-10-08 17:40:57 +00:00
Jeff Johnston
1185687a7b
2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
...
* configure.host: Add support for crx.
* libc/include/machine/ieeefp.h: Ditto.
* libc/include/machine/setjmp.h: Ditto.
* libc/machine/crx/Makefile.am: New file.
* libc/machine/crx/configure.in: Ditto.
* libc/machine/crx/setjmp.S: Ditto.
* libc/machine/crx/getenv.c: Ditto.
* libc/machine/crx/aclocal.m4: Generate.
* libc/machine/crx/configure: Ditto.
* libc/machine/crx/Makefile.in: Ditto.
* libc/machine/crx/sys/asm.h: New file.
* libc/machine/crx/sys/libh.h: Ditto.
* libc/machine/crx/sys/syscall.h: Ditto.
2004-10-05 19:44:24 +00:00
Jeff Johnston
423152ed0a
2004-10-05 Jeff Johnston <jjohnstn@redhat.com>
...
* Makefile.am (stmp-targ-include): Support sys header files
from machine directories.
* Makefile.in: Regenerated.
2004-10-05 19:34:25 +00:00
Jeff Johnston
3ea9de7644
2004-10-04 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/vfscanf.c (__svfscanf_r): For int conversions,
count skipped zero characters as part of the nread count for %n.
* libc/machine/powerpc/vfscanf.c: Ditto.
2004-10-04 17:51:50 +00:00
Jeff Johnston
2a6e122363
2004-09-24 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/local.h: Include <stdlib.h>.
2004-09-24 16:03:46 +00:00
Corinna Vinschen
d163f2fc83
* libc/stdio/fread.c (fread): Include <malloc.h>.
2004-09-24 09:13:11 +00:00
Jeff Johnston
602de58268
2004-09-22 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/fread.c (fread): For non-space-optimized case,
add special code for unbuffered files to use user buffer and
only require one low-level system read.
2004-09-22 21:22:07 +00:00
Ian Lance Taylor
32e73f4dd0
* libc/machine/xscale/setjmp.S: New file, copied from
...
libc/machine/arm/setjmp.S.
* libc/machine/xscale/Makefile.am (lib_a_SOURCES): Add setjmp.S.
* libc/machine/xscale/Makefile.in: Regenerate.
2004-09-21 18:41:02 +00:00
Jeff Johnston
ed6859b8f0
2004-09-16 Antony King <antony.king@st.com>
...
* libc/include/sys/lock.h: Replaced empty {} with (0) to conform
with locking API.
* libc/include/sys/stdio.h: (_flockfile)[!_SINGLE_THREAD]: Add
check for__SSTR in _flags and if set, skip lock request.
(_funlockfile)[!SINGLE_THREAD]: Ditto.
* libc/stdio/local.h (CHECK_INIT): Added check that _REENT is
not NULL.
* libc/stdio/siprintf.c (siprintf, _siprintf_r): Added missing
initialisation of _file to -1 in local FILE.
* libc/stdio/snprintf.c (snprintf, _snprintf_r): Ditto.
* libc/stdio/sscanf.c (sscanf, _sscanf_r): Ditto.
* libc/stdio/vsnprintf.c (vsnprintf, _vsnprintf_r): Ditto.
* libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
* libc/stdio/sscanf.c (sscanf, _sscanf_r): Added __SSTR flag to
_flags in local FILE to prevent locking.
* libc/stdio/vsscanf.c (_vsscanf_r): Ditto.
2004-09-16 21:30:51 +00:00
Jeff Johnston
7a0f696676
2004-09-16 Antony King <antony.king@st.com>
...
* libc/stdio/fwalk.c (_fwalk): Remove check for _GLOBAL_REENT
and only walk the reentrancy parameter.
(_fwalk_reent): Ditto.
* libc/stdlib/exit.c: Remove out of date _REENT_ONLY check.
2004-09-16 21:26:51 +00:00
Jeff Johnston
c77672c0fd
2004-09-16 Antony King <antony.king@st.com>
...
* libc/stdio64/freopen64.c: Remove casting of fp lock to
_LOCK_RECURSIVE_T.
2004-09-16 21:18:50 +00:00
Jeff Johnston
5c44c2e546
2004-09-16 Antony King <antony.king@st.com>
...
* libc/time/tzlock.c: Add default stubs that use generic
locking code.
2004-09-16 21:16:59 +00:00
Jeff Johnston
14613e5e74
2004-09-16 Antony King <antony.king@st.com>
...
* libc/ctype/ctype.tex: Added missing documentation.
* libc/stdio/stdio.tex Ditto.
* libc/stdlib/stdlib.tex Ditto.
* libc/string/strings.tex Ditto.
* libc/time/time.tex: Ditto.
* libc/stdio/setbuffer.c: Removed setlinebuf documentation.
2004-09-16 21:15:14 +00:00
Jeff Johnston
181cb05147
2004-09-15 Corinna Vinschen <vinschen@redhat.com>
...
* libc/reent/impure.c (reent_data): Define as alias to impure_data
when building for Cygwin.
* libc/include/sys/reent.h (_GLOBAL_REENT): Revert definition to
_global_impure_ptr.
2004-09-15 21:44:39 +00:00
Jeff Johnston
51d4a7eae1
2004-09-15 Jeff Johnston <jjohnstn@redhat.com>
...
* configure.host: Reverting 2004-09-14 change as fix has occurred on
Cygwin side.
* configure.in: Ditto.
* libc/configure.in: Ditto.
* libc/sys/configure.in: Ditto.
* configure: Ditto.
* libc/configure: Ditto.
* libc/sys/configure: Ditto.
* libc/include/sys/reent.h: Ditto.
* libc/stdlib/__atexit.c: Ditto.
* libc/stdlib/__call_atexit.c: Ditto.
* libc/stdlib/cxa_atexit.c: Ditto.
* libc/stdlib/cxa_finalize.c: Ditto.
* libc/sys/cygwin/Makefile.am: Removed again.
* libc/sys/cygwin/Makefile.in: Ditto.
* libc/sys/cygwin/aclocal.m4: Ditto.
* libc/sys/cygwin/configure: Ditto.
* libc/sys/cygwin/configure.in: Ditto.
* libc/sys/cygwin/dummy.c: Ditto.
* libc/sys/cygwin/sys/reent.h: Ditto.
2004-09-15 20:50:08 +00:00
Jeff Johnston
98650d2fa2
2004-09-14 Jeff Johnston <jjohnstn@redhat.com>
...
* configure.host: Add Cygwin sys directory.
* configure.in: Do not set CRT0 for cygwin.
* libc/configure.in: Ditto.
* libc/sys/configure.in: Ditto.
* configure: Regenerated.
* libc/configure: Ditto.
* libc/sys/configure: Ditto.
* libc/include/sys/reent.h: Add __REENT_HAS_CXA_SUPPORT flag.
* libc/stdlib/__atexit.c: Keep cxa support protected by new
__REENT_HAS_CXA_SUPPORT flag.
* libc/stdlib/__call_atexit.c: Ditto.
* libc/stdlib/cxa_atexit.c: Ditto.
* libc/stdlib/cxa_finalize.c: Ditto.
* libc/sys/cygwin/Makefile.am: New file.
* libc/sys/cygwin/Makefile.in: Ditto.
* libc/sys/cygwin/aclocal.m4: Ditto.
* libc/sys/cygwin/configure: Ditto.
* libc/sys/cygwin/configure.in: Ditto.
* libc/sys/cygwin/dummy.c: Ditto.
* libc/sys/cygwin/sys/reent.h: Ditto. This file is stabilized
version of reent.h.
2004-09-14 18:12:53 +00:00
Jeff Johnston
d4c8e53b22
2004-09-13 Artem B. Bityuckiy <dedekind@oktetlabs.ru>
...
* libc/iconv/iconv.tex: Updated with new content.
* libc/iconv/lib/iconvnls.c: Reference ICONV_DEFAULT_NLSPATH
instead of NLS_DEFAULT_NLSPATH.
* libc/iconv/lib/iconvnls.h: Fix typo.
* libc/include/sys/iconvnls.h: New file.
2004-09-13 17:10:20 +00:00
Jeff Johnston
0c8593cf11
2004-09-09 Paul Brook <paul@codesourcery.com>
...
* libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle
and _is_cxa.
(struct _atexit): Add _next when _REENT_SMALL.
(struct _reent): Add _atexit0 when _REENT_SMALL.
(_REENT_INIT_PTR): Adjust.
* libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and
__call_exit.c.
(EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c.
* libc/stdlib/Makefile.in: Regenerate.
* libc/stdlib/__atexit.c: New file.
* libc/stdlib/__call_atexit.c: New file.
* libc/stdlib/atexit.h: Remove old definitions. Add new.
* libc/stdlib/atexit.c (atexit): Use __register_exitproc.
* libc/stdlib/cxa_atexit.c: New file.
* libc/stdlib/cxa_finalize.c: New file.
* libc/stdlib/exit.c (exit): Use __call_exitprocs.
* libc/stdlib/on_exit.c (on_exit): Use __register_exitproc.
2004-09-09 Jeff Johnston <jjohnstn@redhat.com>
* libc/reent/reent.c [_REENT_SMALL]: Fix reference to
_on_exit_args_ptr.
2004-09-09 19:46:54 +00:00