Andreas Jaeger [Thu, 21 Nov 2002 11:09:28 +0000 (11:09 +0000)]
* sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
We pass struct ucontext on x86-64.
(GET_PC): Adjust.
(GET_FRAME): Adjust.
(GET_STACK): Adjust.
Ulrich Drepper [Thu, 21 Nov 2002 04:41:14 +0000 (04:41 +0000)]
Improve error message.
Roland McGrath [Thu, 21 Nov 2002 04:10:59 +0000 (04:10 +0000)]
* sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
conditionalize [! DO_VERSIONING] #error.
Roland McGrath [Thu, 21 Nov 2002 03:41:31 +0000 (03:41 +0000)]
* scripts/abilist.awk: Grok function descriptor symbols.
* intl/tst-gettext.c (main): Check return values from setlocale.
Add necessary unsetenv's to make LANG=existing-locale check work.
* intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
so aborted prior runs don't confuse things.
* locale/localeinfo.h (struct locale_data: union locale_data_value):
Use uintptr_t instead of unsigned int for `word' member.
(_NL_CURRENT_WORD): Cast to uint32_t.
* posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
value.
Roland McGrath [Thu, 21 Nov 2002 03:41:16 +0000 (03:41 +0000)]
2002-11-20 Roland McGrath <roland@redhat.com>
* intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
so aborted prior runs don't confuse things.
Ulrich Drepper [Thu, 21 Nov 2002 03:06:21 +0000 (03:06 +0000)]
Update.
* elf/tls-macros.h: Add IA-64 definitions.
Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
Ulrich Drepper [Thu, 21 Nov 2002 00:23:18 +0000 (00:23 +0000)]
Update.
* iconv/Makefile (tests): Add tst-iconv4.
* iconv/tst-iconv4.c: New file.
Ulrich Drepper [Wed, 20 Nov 2002 23:42:04 +0000 (23:42 +0000)]
Update.
* iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
__GCONV_EMPTY_INPUT only if input is really empty. Otherwise
__GCONV_INCOMPLETE_INPUT.
(ucs4le_internal_loop): Likewise.
(ucs4le_internal_loop_unaligned): Likewise.
* iconvdata/unicode.c (PREPARE_LOOP): Likewise.
* iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
* iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
* iconv/loop.c (LOOPFCT): First test for empty input then for full
output buffer.
Ulrich Drepper [Wed, 20 Nov 2002 19:48:07 +0000 (19:48 +0000)]
Update.
2002-11-20 Ulrich Drepper <drepper@redhat.com>
* inet/getnameinfo.c: Use extend_alloca where appropriate.
* sysdeps/posix/getaddrinfo.c: Likewise.
* include/alloca.h (extend_alloca): New define. Based on stack
direction it'll try to append to the previouls allocated buffer.
2002-11-07 Thorsten Kukuk <kukuk@suse.de>
* sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
use the same service for AF_INET and AF_INET6.
2002-11-19 Ulrich Drepper <drepper@redhat.com>
* intl/localealias.c (read_alias_file): Use only about 400 bytes
of stack space instead of 16k.
Ulrich Drepper [Wed, 20 Nov 2002 19:42:37 +0000 (19:42 +0000)]
(extend_alloca): New define. Based on stack direction it'll try to append to the previouls allocated buffer.
Roland McGrath [Wed, 20 Nov 2002 09:41:01 +0000 (09:41 +0000)]
* malloc/arena.c
(ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
nothing if not initialized. Bug report from Marcus Brinkmann
<Marcus.Brinkmann@ruhr-uni-bochum.de>.
Roland McGrath [Wed, 20 Nov 2002 09:40:55 +0000 (09:40 +0000)]
2002-11-18 Wolfram Gloger <wg@malloc.de>
* malloc/arena.c
(ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
nothing if not initialized. Bug report from Marcus Brinkmann
<Marcus.Brinkmann@ruhr-uni-bochum.de>.
Ulrich Drepper [Wed, 20 Nov 2002 04:19:45 +0000 (04:19 +0000)]
(read_alias_file): Use only about 400 bytes of stack space instead of 16k.
Ulrich Drepper [Wed, 20 Nov 2002 01:25:19 +0000 (01:25 +0000)]
Update.
2002-11-19 Ulrich Drepper <drepper@redhat.com>
* Versions (libc:GLIBC_2.0): Remove names of functions which are
not defined in libc.
* Makefile (shared-only-routines): Add weaks.
* weaks.c: Remove functions which are not exported from libc.so.
Ulrich Drepper [Wed, 20 Nov 2002 01:22:19 +0000 (01:22 +0000)]
Remove functions which are not exported from libc.so.
Roland McGrath [Wed, 20 Nov 2002 01:05:35 +0000 (01:05 +0000)]
* posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
sched_setaffinity.
Roland McGrath [Tue, 19 Nov 2002 22:15:00 +0000 (22:15 +0000)]
* configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
`-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
* configure: Regenerated.
Roland McGrath [Tue, 19 Nov 2002 22:14:48 +0000 (22:14 +0000)]
2002-11-19 Roland McGrath <roland@redhat.com>
* configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
`-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
* configure: Regenerated.
Ulrich Drepper [Tue, 19 Nov 2002 19:30:55 +0000 (19:30 +0000)]
Update.
2002-11-19 Ulrich Drepper <drepper@redhat.com>
* include/dlfcn.h: __libc_dlopen is now a macro calling
__libc_dlopen_mode with the extra parameter RTLD_LAZY.
(__libc_dlopen_mode): New prototype.
* elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
new parameter. Store new parameter in mode field of structure passed
to do_dlopen.
(struct do_dlopen_args): Add new field mode.
(do_dlopen): Pass mode from parameter structure to _dl_open.
* sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
Define mcontext_t as a sigcontext.
* manual/crypt.texi (Cryptographic Functions): Mention that
the MD5 one-way algorithm is compatible with BSD's.
Ulrich Drepper [Tue, 19 Nov 2002 19:27:17 +0000 (19:27 +0000)]
__libc_dlopen is now a macro calling __libc_dlopen_mode with the extra parameter RTLD_LAZY. (__libc_dlopen_mode): New prototype.
Roland McGrath [Tue, 19 Nov 2002 09:27:04 +0000 (09:27 +0000)]
* sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
(F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
* sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
Roland McGrath [Tue, 19 Nov 2002 06:41:14 +0000 (06:41 +0000)]
* sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
* sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
Set -mdisable-fpregs for this file.
2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
* sysdeps/unix/sysv/linux/configure.in:
Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
from gcc-3.0 era for backwards compatibility.
* sysdeps/unix/sysv/linux/configure: Regenerate.
* sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
Define mcontext_t as a sigcontext.
* dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
Free memory in `last_result' if it was used.
* resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
Do the parsing inline instead of copying strings and calling
inet_network, and properly skip all alias names not matching the form.
Roland McGrath [Mon, 18 Nov 2002 20:33:23 +0000 (20:33 +0000)]
* manual/pattern.texi (Variable Substitution): Fix # and ## examples.
* manual/pattern.texi (Wordexp Example): Fix sample code.
2002-11-14 Paul Eggert <eggert@twinsun.com>
Roland McGrath [Mon, 18 Nov 2002 20:31:41 +0000 (20:31 +0000)]
2002-11-18 Roland McGrath <roland@redhat.com>
* manual/pattern.texi (Variable Substitution): Fix # and ## examples.
Ulrich Drepper [Mon, 18 Nov 2002 20:25:07 +0000 (20:25 +0000)]
(Wordexp Example): Fix three bugs in the example code, all related to the options parameter.
Ulrich Drepper [Mon, 18 Nov 2002 07:41:51 +0000 (07:41 +0000)]
Update.
2002-11-17 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
childs stack which will be loaded into the %esi register.
* resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
overflow when skipping the question part and when unpacking aliases.
Ulrich Drepper [Mon, 18 Nov 2002 07:41:00 +0000 (07:41 +0000)]
Initialize word in the childs stack which will be loaded into the %esi register.
Roland McGrath [Mon, 18 Nov 2002 04:10:15 +0000 (04:10 +0000)]
2002-11-14 Paul Eggert <eggert@twionsun.com>
* resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
overflow when skipping the question part and when unpacking
aliases.
Roland McGrath [Fri, 15 Nov 2002 23:50:05 +0000 (23:50 +0000)]
* math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
Instead add $(calls:s_%=m_%) to get m_* versions of them all.
Roland McGrath [Fri, 15 Nov 2002 22:51:30 +0000 (22:51 +0000)]
* sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
* sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
2002-11-15 Roland McGrath <roland@redhat.com>
* math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
* Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
(+make-include-of-dep): New canned sequence.
* stdlib/canonicalize.c (__realpath): Check for malloc failure.
From Dmitry V. Levin <ldv@altlinux.org>.
Roland McGrath [Fri, 15 Nov 2002 03:37:24 +0000 (03:37 +0000)]
* sysdeps/generic/errno.c (__libc_errno): Remove alias.
* inet/herrno.c (__libc_h_errno): Likewise.
* resolv/res_libc.c (__libc_res): Likewise.
[USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
(__res_state) [! USE___THREAD]: Don't define as weak.
* csu/Versions: Revert last change.
* resolv/Versions: Revert last change.
* Makerules ($(common-objpfx)%.make): New pattern rule.
* tls.make.c: New file.
* Makefile (distribute): Add it.
Roland McGrath [Fri, 15 Nov 2002 03:36:52 +0000 (03:36 +0000)]
2002-11-14 Roland McGrath <roland@redhat.com>
* sysdeps/generic/errno.c (__libc_errno): Remove alias.
* inet/herrno.c (__libc_h_errno): Likewise.
* resolv/res_libc.c (__libc_res): Likewise.
[USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
(__res_state) [! USE___THREAD]: Don't define as weak.
* csu/Versions: Revert last change.
* resolv/Versions: Revert last change.
Ulrich Drepper [Fri, 15 Nov 2002 00:01:53 +0000 (00:01 +0000)]
Regenerated: autoconf sysdeps/unix/common/configure.in
Ulrich Drepper [Fri, 15 Nov 2002 00:01:40 +0000 (00:01 +0000)]
Regenerated: autoconf sysdeps/unix/sysv/linux/configure.in
Roland McGrath [Thu, 14 Nov 2002 21:23:12 +0000 (21:23 +0000)]
* sysdeps/generic/errno.c [! USE___THREAD]
[HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
with compat_symbol so they are not link-time visible.
[! USE___THREAD] (__libc_errno): New alias for errno.
* csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
Add __libc_errno here.
* inet/herrno.c [USE___THREAD]: Use this conditional
in place of [USE_TLS && HAVE___THREAD].
[! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
(h_errno, _h_errno): Declare these with compat_symbol so they are not
link-time visible.
[! USE___THREAD] (__libc_h_errno): New alias for h_errno.
* resolv/res_libc.c [! USE___THREAD]
[HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
(_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
(__libc_res): Define as alias for _res.
* resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
Add __libc_h_errno and __libc_res here.
2002-11-14 Jakub Jelinek <jakub@redhat.com>
* csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
* resolv/Versions (h_errno, _res): Likewise.
2002-11-14 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 14 Nov 2002 20:26:56 +0000 (20:26 +0000)]
* Makerules (%.dynsym): Remove $(objpfx) from target and dep.
(%.symlist): Likewise.
Roland McGrath [Thu, 14 Nov 2002 20:25:45 +0000 (20:25 +0000)]
2002-11-14 Roland McGrath <roland@redhat.com>
* Makerules (%.dynsym): Remove $(objpfx) from target and dep.
Andreas Schwab [Thu, 14 Nov 2002 10:49:33 +0000 (10:49 +0000)]
* sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Fix unterminated
string.
Andreas Schwab [Thu, 14 Nov 2002 10:49:22 +0000 (10:49 +0000)]
Fix unterminated string.
Roland McGrath [Thu, 14 Nov 2002 04:19:34 +0000 (04:19 +0000)]
[$(subdir) = elf] (tests): Depend on libc.symlist.
(generated, common-generated): Add those files.
Roland McGrath [Thu, 14 Nov 2002 03:59:56 +0000 (03:59 +0000)]
* scripts/abilist.awk: New file.
* Makefile (distribute): Add it.
* Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
(tests): Depend on .symlist file for each $(install-lib.so-versioned).
[! subdir] (tests): Depend on libc.symlist.
(generated): Add those files.
* aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
* configure: Regenerated.
* config.make.in (OBJDUMP): New variable, substituted by configure.
* malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
(mallochook, reallochook): Set them up.
(checkhdr): Check HDR->magic2 value.
(freehook): Reset HDR->magic2.
(memalignhook): New static function.
(old_memalign_hook): New static variable.
(mcheck, reallochook): Set __memalign_hook to memalignhook.
Roland McGrath [Thu, 14 Nov 2002 00:48:38 +0000 (00:48 +0000)]
* sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
for the new TCB.
Roland McGrath [Thu, 14 Nov 2002 00:29:07 +0000 (00:29 +0000)]
2002-11-13 Roland McGrath <roland@redhat.com>
* Examples/ex6.c (main): Improve error reporting.
Andreas Jaeger [Wed, 13 Nov 2002 09:31:08 +0000 (09:31 +0000)]
Update.
2002-11-13 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
attribute.
* sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
Andreas Jaeger [Wed, 13 Nov 2002 09:30:43 +0000 (09:30 +0000)]
Check for visibility attribute.
Roland McGrath [Wed, 13 Nov 2002 04:51:00 +0000 (04:51 +0000)]
2002-11-11 Paul Eggert <eggert@twinsun.com>
* manual/crypt.texi (Cryptographic Functions): Mention that
the MD5 one-way algorithm is compatible with BSD's.
Roland McGrath [Wed, 13 Nov 2002 04:00:16 +0000 (04:00 +0000)]
* posix/regex_internal.c (re_string_skip_chars): Also return the last
wide character.
(re_string_reconstruct): Calculate the context by itself when the
offset points out of the valid range.
(re_string_context_at): Use wide character when MB_CUR_MAX > 1.
* posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
(IS_WIDE_WORD_CHAR): New macro.
(IS_WIDE_NEWLINE): New macro.
Roland McGrath [Tue, 12 Nov 2002 22:02:38 +0000 (22:02 +0000)]
* libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
(_G_IO_NO_BACKWARD_COMPAT): Define it.
Roland McGrath [Tue, 12 Nov 2002 22:02:32 +0000 (22:02 +0000)]
2002-11-12 Roland McGrath <roland@redhat.com>
* libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
(_G_IO_NO_BACKWARD_COMPAT): Define it.
Andreas Jaeger [Tue, 12 Nov 2002 21:43:26 +0000 (21:43 +0000)]
Update.
* sysdeps/x86_64/strchr.S: Don't use one register for two
purposes, this fixes a bug noticed by test-strchr.c.
Andreas Jaeger [Tue, 12 Nov 2002 17:58:02 +0000 (17:58 +0000)]
Update.
2002-11-12 Andreas Jaeger <aj@suse.de>
* sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
correctly.
Andreas Jaeger [Tue, 12 Nov 2002 17:57:51 +0000 (17:57 +0000)]
Fix algorithm to align source pointer correctly.
Roland McGrath [Tue, 12 Nov 2002 08:31:50 +0000 (08:31 +0000)]
* sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
instead of <pt-machine.h>.
[_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
testandset.
From Ian Wienand <ianw@gelato.unsw.edu.au>.
Roland McGrath [Mon, 11 Nov 2002 06:55:22 +0000 (06:55 +0000)]
* libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
Call fputs instead of fwprintf (simpler to follow in debugger).
Roland McGrath [Mon, 11 Nov 2002 02:43:35 +0000 (02:43 +0000)]
* crypt/md5-crypt.c: Doc fix.
Roland McGrath [Mon, 11 Nov 2002 02:34:36 +0000 (02:34 +0000)]
* sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
the beginning of generated target commands.
* csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
dependencies for these in case implicit rule search skipped the
nonexistent source directory.
* sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
files with $(object-suffixes) as targets too.
* Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
and a target for it using $(make-target-directory).
* Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
* sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
* sysdeps/generic/bits/pthreadtypes.h: ... here.
Roland McGrath [Sun, 10 Nov 2002 23:29:38 +0000 (23:29 +0000)]
* sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
l_start == 0 and l_len == 1 as we do l_len == 0.
Roland McGrath [Sun, 10 Nov 2002 23:22:51 +0000 (23:22 +0000)]
* sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
* sysdeps/generic/bits/pthreadtypes.h: ... here.
Roland McGrath [Sun, 10 Nov 2002 23:22:35 +0000 (23:22 +0000)]
2002-11-10 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
* sysdeps/generic/bits/pthreadtypes.h: ... here.
Ulrich Drepper [Sun, 10 Nov 2002 23:17:14 +0000 (23:17 +0000)]
Update.
2002-11-10 Ulrich Drepper <drepper@redhat.com>
* po/da.po: Update from translation team.
* sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
error in range calculation.
Ulrich Drepper [Sun, 10 Nov 2002 23:15:50 +0000 (23:15 +0000)]
Update from translation team.
Roland McGrath [Sun, 10 Nov 2002 22:19:28 +0000 (22:19 +0000)]
* config.make.in (includedir): New variable, substituted by configure.
Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
* Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
Roland McGrath [Sun, 10 Nov 2002 22:19:23 +0000 (22:19 +0000)]
2002-11-10 Roland McGrath <roland@redhat.com>
* config.make.in (includedir): New variable, substituted by configure.
Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
* Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
Andreas Jaeger [Sun, 10 Nov 2002 11:10:49 +0000 (11:10 +0000)]
Update.
* sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
REG_OLDMASK and REG_CR2 to synch with kernel header.
(NGREG): Increase.
Andreas Jaeger [Sun, 10 Nov 2002 11:06:51 +0000 (11:06 +0000)]
Update.
2002-11-10 Andreas Jaeger <aj@suse.de>
* nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
aliasing problem.
* nss/getXXbyYY_r.c (INTERNAL): Likewise.
* nss/getnssent_r.c (__nss_getent_r): Likewise.
(__nss_setent): Likewise.
(__nss_getent_r): Likewise.
* inet/getnetgrent_r.c (innetgr): Likewise.
(__internal_setnetgrent_reuse): Likewise.
(internal_getnetgrent_r): Likewise.
* inet/ether_hton.c (ether_hostton): Likewise.
* inet/ether_ntoh.c (ether_ntohost): Likewise.
* sunrpc/netname.c (netname2user): Likewise.
* sunrpc/publickey.c (getpublickey): Likewise.
(getsecretkey): Likewise.
Andreas Jaeger [Sun, 10 Nov 2002 11:06:36 +0000 (11:06 +0000)]
* nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
aliasing problem.
* nss/getXXbyYY_r.c (INTERNAL): Likewise.
* nss/getnssent_r.c (__nss_getent_r): Likewise.
(__nss_setent): Likewise.
(__nss_getent_r): Likewise.
* inet/getnetgrent_r.c (innetgr): Likewise.
(__internal_setnetgrent_reuse): Likewise.
(internal_getnetgrent_r): Likewise.
* inet/ether_hton.c (ether_hostton): Likewise.
* inet/ether_ntoh.c (ether_ntohost): Likewise.
* sunrpc/netname.c (netname2user): Likewise.
* sunrpc/publickey.c (getpublickey): Likewise.
(getsecretkey): Likewise.
Roland McGrath [Sat, 9 Nov 2002 23:10:46 +0000 (23:10 +0000)]
2002-11-09 Marcus Brinkmann <marcus@gnu.org>
* sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
error in range calculation.
Roland McGrath [Sat, 9 Nov 2002 00:36:21 +0000 (00:36 +0000)]
* string/test-strspn.c (do_test): Ensure zero termination.
* string/test-strpbrk.c (do_test): Likewise.
* string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
* string/test-strncpy.c (stupid_strncpy): Likewise.
* string/test-stpncpy.c (stupid_stpncpy): Likewise.
2002-10-08 Roland McGrath <roland@redhat.com>
* string/test-string.h (test_init): Fill BUF1 and BUF2 with
nonzero characters.
2002-09-22 H.J. Lu <hjl@gnu.org>
* sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
only if __NR_mmap2 is defined.
* sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
* sysdeps/unix/sysv/linux/mmap64.c: ... here.
* sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
* sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
Roland McGrath [Fri, 8 Nov 2002 22:39:08 +0000 (22:39 +0000)]
* posix/bug-regex13.c (tests): Add new test.
Roland McGrath [Fri, 8 Nov 2002 22:10:01 +0000 (22:10 +0000)]
* string/test-strchr.c (stupid_strchr): New function.
(do_random_tests): Make sure the string is zero terminated.
* string/test-strpbrk.c (stupid_strpbrk): New function.
(do_random_tests): Make sure the string is zero terminated.
* string/test-strcmp.c (stupid_strcmp): New function.
(do_random_tests): Make sure the strings are zero terminated.
* string/test-strspn.c (stupid_strspn): New function.
(simple_strspn): Rename rej argument to acc.
(do_random_tests): Make sure the string is zero terminated.
* string/test-strcspn.c (stupid_strcspn): New function.
* string/test-strncpy.c (stupid_strncpy): New function.
* string/test-stpncpy.c (stupid_stpncpy): New function.
* string/test-strncmp.c (stupid_strncmp): New function.
(do_random_tests): Make sure the strings are zero terminated.
* string/test-string.h (impl_t): Change test into long.
(IMPL): Add __attribute__((aligned (sizeof (void *)))).
Roland McGrath [Fri, 8 Nov 2002 17:11:02 +0000 (17:11 +0000)]
* sysdeps/ia64/elf/configure.in: Add TLS check.
From Ian Wienand <ianw@cse.unsw.edu.au>.
* sysdeps/ia64/elf/configure: Regenerated.
2002-11-07 Roland McGrath <roland@redhat.com>
* libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
place of _IO_new_do_write.
[_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
#undef before versioned_symbol use.
* string/test-string.h (test_init): Fill BUF1 and BUF2 with nonzero
characters.
Roland McGrath [Fri, 8 Nov 2002 02:20:41 +0000 (02:20 +0000)]
* configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
* configure: Regenerated.
* config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
* sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
(RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
_dl_fini via gp-relative relocations.
* sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
* elf/tls-macros.h: Add alpha versions.
* sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
* sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
* sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
* sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
* sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
Kill argument registers across the inline syscall.
* sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
* linuxthreads/sysdeps/alpha/tls.h: New file.
* sysdeps/alpha/dl-tls.h: New file.
Roland McGrath [Thu, 7 Nov 2002 22:28:16 +0000 (22:28 +0000)]
* sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
(gmon_initializer): New function.
(.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
__gmon_start__ here. Call it from gmon_initializer() instead.
2002-03-12 H.J. Lu <hjl@gnu.org>
* elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
tst-array2, and tst-array3.
[$(have-initfini-array) = yes] (tests-static): Add tst-array3.
[$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
($(objpfx)tst-array1.out): New target.
($(objpfx)tst-array2): Likewise.
($(objpfx)tst-array2.out): Likewise.
($(objpfx)tst-array3.out): Likewise.
* elf/tst-array1.c: New file.
* elf/tst-array1.exp: Likewise.
* elf/tst-array2.c: Likewise.
* elf/tst-array2dep.c: Likewise.
* elf/tst-array2.exp: Likewise.
* elf/tst-array3.c: Likewise.
Roland McGrath [Thu, 7 Nov 2002 20:47:27 +0000 (20:47 +0000)]
* elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
Don't add L->l_addr to array entry values.
Roland McGrath [Thu, 7 Nov 2002 19:15:01 +0000 (19:15 +0000)]
* string/test-string.h: New file.
* string/test-strlen.c: New file.
* string/test-string.h: New file.
* string/test-strcmp.c: New file.
* string/test-strchr.c: New file.
* string/test-strrchr.c: New file.
* string/test-strcpy.c: New file.
* string/test-stpcpy.c: New file.
* string/test-strncpy.c: New file.
* string/test-stpncpy.c: New file.
* string/test-strpbrk.c: New file.
* string/test-strcspn.c: New file.
* string/test-strspn.c: New file.
* string/test-strcat.c: New file.
* string/test-strncmp.c: New file.
* string/test-memchr.c: New file.
* string/test-memcmp.c: New file.
* string/test-memset.c: New file.
* string/test-memcpy.c: New file.
* string/test-mempcpy.c: New file.
* string/test-memmove.c: New file.
* string/Makefile (strop-tests): New variable.
(tests): Add strop-tests.
(distribute): Add test-string.h.
Roland McGrath [Wed, 6 Nov 2002 22:14:54 +0000 (22:14 +0000)]
* sysdeps/unix/sysv/linux/mips/configure.in: File removed.
* sysdeps/unix/sysv/linux/mips/configure: Likewise.
Roland McGrath [Wed, 6 Nov 2002 22:14:25 +0000 (22:14 +0000)]
2002-11-06 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/mips/configure.in: File removed.
* sysdeps/unix/sysv/linux/mips/configure: Likewise.
Ulrich Drepper [Wed, 6 Nov 2002 20:36:47 +0000 (20:36 +0000)]
Update.
2002-11-06 Ulrich Drepper <drepper@redhat.com>
* posix/regcomp.c: Use tabs instead of spaces.
* posix/regexec.c: Likewise.
* posix/regex_internal.h: Likewise.
* posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
Ulrich Drepper [Wed, 6 Nov 2002 19:57:50 +0000 (19:57 +0000)]
Update.
2002-11-06 Jakub Jelinek <jakub@redhat.com>
* posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
here.
(regcomp): Don't set can_be_null here.
(re_comp): Clear whole re_comp_buf with the exception of fastmap.
(re_compile_internal): Clear can_be_null, set regs_allocated.
* posix/regcomp.c (re_set_fastmap): New function.
(re_compile_fastmap_iter): Use it. Remove redundant type ==
COMPLEX_BRACKET check.
* posix/regexec.c (re_search_internal): Optimize searching with
fastmap. Call re_string_reconstruct even if match_first is
smaller than raw_mbs_idx.
2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
* posix/regcomp (free_dfa_content): Use free_state.
* posix/regex_internal.c (re_string_realloc_buffers): Don't edit
pointers in case that realloc failed.
(re_node_set_merge): Likewise.
(register_state): Likewise.
(create_newstate_common): Invoke memory release functions in case of
error conditions.
(create_ci_newstate): Likewise.
(create_cd_newstate): Likewise.
(free_state): New function.
* posix/regexec.c (re_search_internal): Invoke memory release
functions in case of error conditions.
(sift_states_backward): Likewise.
(merge_state_array): Likewise.
(add_epsilon_src_nodes): Likewise.
(sub_epsilon_src_nodes): Likewise.
(search_subexp): Likewise.
(sift_states_bkref): Likewise.
(transit_state_sb): Likewise.
(transit_state_mb): Likewise.
(transit_state_bkref_loop): Likewise.
(group_nodes_into_DFAstates): Likewise.
(push_fail_stack): Don't edit pointers in case that realloc failed.
(extend_buffers): Likewise.
(match_ctx_add_entry): Likewise.
Ulrich Drepper [Wed, 6 Nov 2002 19:23:35 +0000 (19:23 +0000)]
(free_dfa_content): Use free_state.
Roland McGrath [Wed, 6 Nov 2002 18:36:10 +0000 (18:36 +0000)]
2002-11-06 Thorsten Kukuk <kukuk@suse.de>
* locales/tl_PH: Fix typo: Philipines -> Philippines.
Roland McGrath [Wed, 6 Nov 2002 08:54:06 +0000 (08:54 +0000)]
* configure.in: Add checks on as and ld for binutils 2.13 or later.
* configure: Regenerated.
Roland McGrath [Wed, 6 Nov 2002 08:54:01 +0000 (08:54 +0000)]
2002-11-06 Roland McGrath <roland@redhat.com>
* configure.in: Add checks on as and ld for binutils 2.13 or later.
* configure: Regenerated.
Ulrich Drepper [Wed, 6 Nov 2002 08:34:35 +0000 (08:34 +0000)]
Update.
2002-11-06 Ulrich Drepper <drepper@redhat.com>
* posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
If re_compile_internal failed free fastmap buffer.
(free_dfa_content): Broken out of regfree function. Frees all dfa
related data.
(regfree): Add free_dfa_content.
(re_compile_internal): If any of the called functions fails free
all dfa related memory.
Ulrich Drepper [Wed, 6 Nov 2002 06:12:13 +0000 (06:12 +0000)]
Update.
2002-11-05 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
warnings from the kernel headers.
Ulrich Drepper [Wed, 6 Nov 2002 04:49:03 +0000 (04:49 +0000)]
Update.
* elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
which happens at the beginning so that we can unload modules in
__libc_freeres.
Ulrich Drepper [Wed, 6 Nov 2002 04:37:00 +0000 (04:37 +0000)]
(do_release_all): Undo last change.
Roland McGrath [Wed, 6 Nov 2002 03:19:51 +0000 (03:19 +0000)]
* sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
From Johannes Stezenbach <js@convergence.de>.
Roland McGrath [Wed, 6 Nov 2002 02:53:58 +0000 (02:53 +0000)]
* sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
#errlist-compat magic comment to give 123 as size.
(libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
(libc: GLIBC_2.2): ... here.
(libc: GLIBC_2.3): Likewise.
Roland McGrath [Wed, 6 Nov 2002 02:53:24 +0000 (02:53 +0000)]
2002-11-05 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
#errlist-compat magic comment to give 123 as size.
(libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
(libc: GLIBC_2.2): ... here.
(libc: GLIBC_2.3): Likewise.
Ulrich Drepper [Wed, 6 Nov 2002 01:59:46 +0000 (01:59 +0000)]
Update.
2002-11-05 Ulrich Drepper <drepper@redhat.com>
* iconv/gconv_dl.c (do_release_all): Call __libc_dlclose as many
times as we opened the module.
Ulrich Drepper [Wed, 6 Nov 2002 01:58:35 +0000 (01:58 +0000)]
(do_release_all): Call __libc_dlclose as many times as we opened the module.
Roland McGrath [Wed, 6 Nov 2002 00:08:36 +0000 (00:08 +0000)]
* sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
under [__USE_MISC || _ASM].
* elf/elf.h: Remove the obsolete SH TLS relocations.
Roland McGrath [Wed, 6 Nov 2002 00:08:14 +0000 (00:08 +0000)]
2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* elf/elf.h: Remove the obsolete SH TLS relocations.
* sysdeps/sh/bits/setmp.h (JB_SIZE): Define only
under [__USE_MISC || _ASM].
Ulrich Drepper [Tue, 5 Nov 2002 21:06:51 +0000 (21:06 +0000)]
Update.
2002-11-05 Ulrich Drepper <drepper@redhat.com>
* posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
s_pwrite64, s_ftruncate, s_truncate): Re-add.
Ulrich Drepper [Tue, 5 Nov 2002 19:58:06 +0000 (19:58 +0000)]
Update.
2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
__NR_pread64 and __NR_pwrite64.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
and __NR_pwrite64.
Revert change to use INLINE_SYSCALL.
* sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
INLINE_SYSCALL.
* sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
Update clobber list and add a comment about the syscall ABI.
Ulrich Drepper [Tue, 5 Nov 2002 19:21:56 +0000 (19:21 +0000)]
Update.
2002-11-05 Jakub Jelinek <jakub@redhat.com>
* iconv/gconv_dl.c (free_mem): Clear loaded.
* locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
cleanup if any.
* sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
Ulrich Drepper [Tue, 5 Nov 2002 08:43:05 +0000 (08:43 +0000)]
Update.
2002-11-05 Ulrich Drepper <drepper@redhat.com>
* libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
as old code without locking. _IO_seekoff calls this function after
locking the stream.
* libio/ioseekpos.c: Likewise for _IO_seekpos.
* libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
prototypes.
* libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
of _IO_seekoff_internal.
(_IO_rewind): Likewise.
* libio/ioftell.c: Likewise.
* libio/ftello.c: Likewise.
* libio/ftello64.c: Likewise.
* libio/iofgetpos.c: Likewise.
* libio/iofgetpos64.c: Likewise.
* libio/oldiofgetpos.c: Likewise.
* libio/oldiofgetpos64.c: Likewise.
* libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
_IO_seekpos_internal.
* libio/iofsetpos64.c: Likewise.
* libio/oldiofsetpos.c: Likewise.
* libio/oldiofsetpos64.c: Likewise.
* libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
_wide_data->_IO_read_end if adjustment can be made in the current
buffer.
Ulrich Drepper [Tue, 5 Nov 2002 07:29:40 +0000 (07:29 +0000)]
(_IO_wfile_seekoff): Don't modify _offset and _wide_data->_IO_read_end if adjustment can be made in the current buffer.
Roland McGrath [Tue, 5 Nov 2002 03:03:24 +0000 (03:03 +0000)]
* sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
* sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
Remove these, no longer used.
2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
syscall stubs.
* sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
* sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
and __NR_pread.
* sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
and __NR_pwrite.
* sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2002-11-03 Roland McGrath <roland@redhat.com>
* sysdeps/generic/ldsodefs.h (struct rtld_global): New member
`_dl_tls_static_used'.
* sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
(__libc_setup_tls): Initialize it. Let the initial value of
_dl_tls_static_size indicate some surplus space in the computed value.
* elf/dl-open.c (_dl_tls_static_size): New variable.
* sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
_dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
* elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
(CHECK_STATIC_TLS): Use it.
* elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
closed objects occupied a trailing contiguous chunk of static TLS area.
2002-10-18 Bruno Haible <bruno@clisp.org>
* charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.