external/glibc.git
21 years ago* inet/test-ifaddrs.c (main: addr_string): Handle null SA.
Roland McGrath [Tue, 26 Nov 2002 03:29:06 +0000 (03:29 +0000)]
* inet/test-ifaddrs.c (main: addr_string): Handle null SA.

Grok AF_LINK if defined.
From Momchil Velikov <velco@fadata.bg>.

* sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
brdaddr, or dstaddr, just set those pointers to null and don't fail.
Reported by Momchil Velikov <velco@fadata.bg>.

* sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
is > sizeof IFR->ifa_addr, advance past the whole longer length.
(__ifreq): Count up NIFS that way too.
Reported by Momchil Velikov <velco@fadata.bg>.

* sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.

21 years ago2002-11-25 Roland McGrath <roland@frob.com>
Roland McGrath [Tue, 26 Nov 2002 03:20:30 +0000 (03:20 +0000)]
2002-11-25  Roland McGrath  <roland@frob.com>

* sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.

21 years agoUpdate.
Ulrich Drepper [Tue, 26 Nov 2002 02:22:06 +0000 (02:22 +0000)]
Update.

2002-11-25  Ulrich Drepper  <drepper@redhat.com>

* iconv/Makefile (tests): Remove tst-iconv4.c
* iconv/tst-iconv4.c: Moved to...
* iconvdata/tst-iconv4.c: ...here.  New file.
* iconvdata/Makefile (tests): Add tst-iconv4.  Add dependencies.

21 years ago(tests): Remove tst-iconv4.c
Ulrich Drepper [Tue, 26 Nov 2002 02:17:06 +0000 (02:17 +0000)]
(tests): Remove tst-iconv4.c

21 years ago* sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
Roland McGrath [Tue, 26 Nov 2002 01:56:36 +0000 (01:56 +0000)]
* sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>

and <fpu_control.h>.

21 years ago2002-11-25 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 26 Nov 2002 01:56:30 +0000 (01:56 +0000)]
2002-11-25  Roland McGrath  <roland@redhat.com>

* sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
and <fpu_control.h>.

21 years agoUpdate.
Ulrich Drepper [Mon, 25 Nov 2002 01:53:29 +0000 (01:53 +0000)]
Update.

2002-11-24  Ulrich Drepper  <drepper@redhat.com>

* elf/elf.h (EM_ST19): Fix typo.

21 years ago(EM_ST19): Fix typo.
Ulrich Drepper [Mon, 25 Nov 2002 01:47:15 +0000 (01:47 +0000)]
(EM_ST19): Fix typo.

21 years ago* include/errno.h (__set_errno): Define as errno = val
Roland McGrath [Mon, 25 Nov 2002 00:14:23 +0000 (00:14 +0000)]
* include/errno.h (__set_errno): Define as errno = val

unconditionally.

21 years ago* sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
Roland McGrath [Sun, 24 Nov 2002 23:56:47 +0000 (23:56 +0000)]
* sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.

* sysdeps/posix/writev.c: Likewise.
From Momchil Velikov <velco@fadata.bg>.

* elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
calling *GL(dl_error_catch_tsd) for a thread-local location.
* elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
(dl_main): Same for GL(dl_error_catch_tsd) initialization.
* elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].

* libio/iofflush.c: Add libc_hidden_def.
* libio/iofwrite.c: Likewise.
* sysdeps/generic/sigtimedwait.c: Likewise.
* sysdeps/generic/sigwaitinfo.c: Likewise.
* sysdeps/posix/sigwait.c: Likewise.
Reported by Momchil Velikov <velco@fadata.bg>.

* inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
to match <arpa/inet.h> declaration.
* inet/inet_netof.c (inet_netof): Likewise.
* inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
Reported by Momchil Velikov <velco@fadata.bg>.

21 years ago* configure.in: Skip AUTOCONF check under --without-cvs.
Roland McGrath [Sun, 24 Nov 2002 23:11:32 +0000 (23:11 +0000)]
* configure.in: Skip AUTOCONF check under --without-cvs.

* configure: Regenerated.

* posix/Makefile (headers): Add bits/pthreadtypes.h.
* sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
* sysdeps/unix/sysv/linux/Dist: Remove it from the list.

21 years ago2002-11-24 Roland McGrath <roland@redhat.com>
Roland McGrath [Sun, 24 Nov 2002 23:11:14 +0000 (23:11 +0000)]
2002-11-24  Roland McGrath  <roland@redhat.com>

* configure.in: Skip AUTOCONF check under --without-cvs.
* configure: Regenerated.

21 years ago* sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
Andreas Schwab [Sun, 24 Nov 2002 19:41:50 +0000 (19:41 +0000)]
* sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall

with six arguments.

21 years agoSupport inline syscall with six arguments.
Andreas Schwab [Sun, 24 Nov 2002 19:41:42 +0000 (19:41 +0000)]
Support inline syscall with six arguments.

21 years agoUpdate.
Ulrich Drepper [Sun, 24 Nov 2002 18:41:22 +0000 (18:41 +0000)]
Update.

2002-11-19  Jim Meyering  <jim@meyering.net>

* time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
as `static'.
* time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.

21 years ago(__mon_yday, __mktime_internal) [!_LIBC]: Declare as `static'.
Ulrich Drepper [Sun, 24 Nov 2002 18:37:56 +0000 (18:37 +0000)]
(__mon_yday, __mktime_internal) [!_LIBC]: Declare as `static'.

21 years agoRegenerated: autoconf sysdeps/generic/configure.in
Andreas Schwab [Sun, 24 Nov 2002 17:39:51 +0000 (17:39 +0000)]
Regenerated: autoconf  sysdeps/generic/configure.in

21 years agoRegenerated: autoconf sysdeps/unix/configure.in
Andreas Schwab [Sun, 24 Nov 2002 17:39:46 +0000 (17:39 +0000)]
Regenerated: autoconf  sysdeps/unix/configure.in

21 years ago* scripts/abilist.awk: Avoid strtonum function, not there in mawk.
Roland McGrath [Sun, 24 Nov 2002 01:54:06 +0000 (01:54 +0000)]
* scripts/abilist.awk: Avoid strtonum function, not there in mawk.

Just produce hex output for datum sizes.

21 years ago* elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
Roland McGrath [Sat, 23 Nov 2002 21:34:23 +0000 (21:34 +0000)]
* elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.

Reported by Luca Barbieri <ldb@ldb.ods.org>.

21 years ago2002-11-23 Roland McGrath <roland@redhat.com>
Roland McGrath [Sat, 23 Nov 2002 21:34:16 +0000 (21:34 +0000)]
2002-11-23  Roland McGrath  <roland@redhat.com>

* elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
Reported by Luca Barbieri <ldb@ldb.ods.org>.

21 years ago__unused3, and __unused4 fields.
Andreas Schwab [Fri, 22 Nov 2002 16:16:26 +0000 (16:16 +0000)]
__unused3, and __unused4 fields.

21 years ago* sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
Roland McGrath [Fri, 22 Nov 2002 05:23:51 +0000 (05:23 +0000)]
* sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)

[__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
and __unused3 fields.
* sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
[__WORDSIZE == 32]: Only PPC32 requires __unused1
and __unused2 fields.
* sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
[__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
__unused3,\ 3and __unused4 fields.

21 years ago2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
Roland McGrath [Fri, 22 Nov 2002 05:05:02 +0000 (05:05 +0000)]
2002-11-20  Steven Munroe  <sjmunroe@us.ibm.com>

* csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
obtain lowest address for profiling in __monstartup call.
* sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
$(calls) $(calls:=f) $(long-c-$(long-double-fcts)).

2002-11-21  Roland McGrath  <roland@frob.com>

* sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
__libc_multiple_libcs here.  Call __setfpucw.

21 years ago* sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
Roland McGrath [Fri, 22 Nov 2002 04:23:05 +0000 (04:23 +0000)]
* sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set

__libc_multiple_libcs here.  Call __setfpucw.

* locale/localeinfo.h (struct locale_data): Revert last change.

21 years ago* sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
Roland McGrath [Fri, 22 Nov 2002 01:27:01 +0000 (01:27 +0000)]
* sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.

From Ian Wienand <ianw@gelato.unsw.edu.au>.

* sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
__NR_pread64 if not defined.
(__NR_pwrite): Define to __NR_pwrite64 if not defined.
From Ian Wienand <ianw@gelato.unsw.edu.au>.

21 years ago2002-11-21 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 22 Nov 2002 01:26:53 +0000 (01:26 +0000)]
2002-11-21  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
From Ian Wienand <ianw@gelato.unsw.edu.au>.

21 years agoUpdate.
Ulrich Drepper [Fri, 22 Nov 2002 00:41:16 +0000 (00:41 +0000)]
Update.

* elf/Makefile (tests): Don't run test-arrayX tests for now.

21 years agoUpdate.
Ulrich Drepper [Fri, 22 Nov 2002 00:09:11 +0000 (00:09 +0000)]
Update.

2002-11-21  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
* sysdeps/unix/sysv/linux/i386/clone.S: Add support for
CLONE_CHILD_*TID flags.

21 years agoAdd support for CLONE_CHILD_*TID flags.
Ulrich Drepper [Fri, 22 Nov 2002 00:01:03 +0000 (00:01 +0000)]
Add support for CLONE_CHILD_*TID flags.

21 years ago* sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
Andreas Jaeger [Thu, 21 Nov 2002 11:09:39 +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.

21 years ago* sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
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.

21 years agoImprove error message.
Ulrich Drepper [Thu, 21 Nov 2002 04:41:14 +0000 (04:41 +0000)]
Improve error message.

21 years ago* sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
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.

21 years ago* scripts/abilist.awk: Grok function descriptor symbols.
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.

21 years ago2002-11-20 Roland McGrath <roland@redhat.com>
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.

21 years agoUpdate.
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>.

21 years agoUpdate.
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.

21 years agoUpdate.
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.

21 years agoUpdate.
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.

21 years ago(extend_alloca): New define. Based on stack direction it'll try to append to the...
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.

21 years ago* malloc/arena.c
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>.

21 years ago2002-11-18 Wolfram Gloger <wg@malloc.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>.

21 years ago(read_alias_file): Use only about 400 bytes of stack space instead of 16k.
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.

21 years agoUpdate.
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.

21 years agoRemove 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.

21 years ago* posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
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.

21 years ago* configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
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.

21 years ago2002-11-19 Roland McGrath <roland@redhat.com>
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.

21 years agoUpdate.
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.

21 years ago__libc_dlopen is now a macro calling __libc_dlopen_mode with the extra parameter...
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.

21 years ago* sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
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.

21 years ago* sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
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.

21 years ago* manual/pattern.texi (Variable Substitution): Fix # and ## examples.
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>

21 years ago2002-11-18 Roland McGrath <roland@redhat.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.

21 years ago(Wordexp Example): Fix three bugs in the example code, all related to the options...
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.

21 years agoUpdate.
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.

21 years agoInitialize word in the childs stack which will be loaded into the %esi register.
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.

21 years ago2002-11-14 Paul Eggert <eggert@twionsun.com>
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.

21 years ago* math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
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.

21 years ago* sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
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>.

21 years ago* sysdeps/generic/errno.c (__libc_errno): Remove alias.
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.

21 years ago2002-11-14 Roland McGrath <roland@redhat.com>
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.

21 years agoRegenerated: autoconf sysdeps/unix/common/configure.in
Ulrich Drepper [Fri, 15 Nov 2002 00:01:53 +0000 (00:01 +0000)]
Regenerated: autoconf  sysdeps/unix/common/configure.in

21 years agoRegenerated: autoconf sysdeps/unix/sysv/linux/configure.in
Ulrich Drepper [Fri, 15 Nov 2002 00:01:40 +0000 (00:01 +0000)]
Regenerated: autoconf  sysdeps/unix/sysv/linux/configure.in

21 years ago* sysdeps/generic/errno.c [! USE___THREAD]
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>

21 years ago* Makerules (%.dynsym): Remove $(objpfx) from target and dep.
Roland McGrath [Thu, 14 Nov 2002 20:26:56 +0000 (20:26 +0000)]
* Makerules (%.dynsym): Remove $(objpfx) from target and dep.

(%.symlist): Likewise.

21 years ago2002-11-14 Roland McGrath <roland@redhat.com>
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.

21 years ago* sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Fix unterminated
Andreas Schwab [Thu, 14 Nov 2002 10:49:33 +0000 (10:49 +0000)]
* sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Fix unterminated

string.

21 years agoFix unterminated string.
Andreas Schwab [Thu, 14 Nov 2002 10:49:22 +0000 (10:49 +0000)]
Fix unterminated string.

21 years ago[$(subdir) = elf] (tests): Depend on libc.symlist.
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.

21 years ago* scripts/abilist.awk: New file.
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.

21 years ago* sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
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.

21 years ago2002-11-13 Roland McGrath <roland@redhat.com>
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.

21 years agoUpdate.
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.

21 years agoCheck for visibility attribute.
Andreas Jaeger [Wed, 13 Nov 2002 09:30:43 +0000 (09:30 +0000)]
Check for visibility attribute.

21 years ago2002-11-11 Paul Eggert <eggert@twinsun.com>
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.

21 years ago* posix/regex_internal.c (re_string_skip_chars): Also return the last
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.

21 years ago* libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
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.

21 years ago2002-11-12 Roland McGrath <roland@redhat.com>
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.

21 years agoUpdate.
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.

21 years agoUpdate.
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.

21 years agoFix 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.

21 years ago* sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
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>.

22 years ago* libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
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).

22 years ago* crypt/md5-crypt.c: Doc fix.
Roland McGrath [Mon, 11 Nov 2002 02:43:35 +0000 (02:43 +0000)]
* crypt/md5-crypt.c: Doc fix.

22 years ago* sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
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.

22 years ago* sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
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.

22 years ago* sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
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.

22 years ago2002-11-10 Roland McGrath <roland@redhat.com>
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.

22 years agoUpdate.
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.

22 years agoUpdate from translation team.
Ulrich Drepper [Sun, 10 Nov 2002 23:15:50 +0000 (23:15 +0000)]
Update from translation team.

22 years ago* config.make.in (includedir): New variable, substituted by configure.
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).

22 years ago2002-11-10 Roland McGrath <roland@redhat.com>
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).

22 years agoUpdate.
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.

22 years agoUpdate.
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.

22 years ago* nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
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.

22 years ago2002-11-09 Marcus Brinkmann <marcus@gnu.org>
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.

22 years ago* string/test-strspn.c (do_test): Ensure zero termination.
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,

22 years ago* posix/bug-regex13.c (tests): Add new test.
Roland McGrath [Fri, 8 Nov 2002 22:39:08 +0000 (22:39 +0000)]
* posix/bug-regex13.c (tests): Add new test.