platform/upstream/glibc.git
21 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.

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

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

21 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).

21 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).

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

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

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

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

21 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,

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

21 years ago* string/test-strchr.c (stupid_strchr): New function.
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 *)))).

21 years ago* sysdeps/ia64/elf/configure.in: Add TLS check.
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.

21 years ago* configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
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.

21 years ago* sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
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.

21 years ago* elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
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.

21 years ago* string/test-string.h: New file.
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.

21 years ago* sysdeps/unix/sysv/linux/mips/configure.in: File removed.
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.

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

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

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

21 years ago(free_dfa_content): Use free_state.
Ulrich Drepper [Wed, 6 Nov 2002 19:23:35 +0000 (19:23 +0000)]
(free_dfa_content): Use free_state.

21 years ago2002-11-06 Thorsten Kukuk <kukuk@suse.de>
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.

21 years ago* configure.in: Add checks on as and ld for binutils 2.13 or later.
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.

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

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

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

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

21 years ago(do_release_all): Undo last change.
Ulrich Drepper [Wed, 6 Nov 2002 04:37:00 +0000 (04:37 +0000)]
(do_release_all): Undo last change.

21 years ago* sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
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>.

21 years ago* sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
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.

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

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

21 years ago(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.

21 years ago* sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
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.

21 years ago2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
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].

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

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

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

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

21 years ago(_IO_wfile_seekoff): Don't modify _offset and _wide_data->_IO_read_end if adjustment...
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.

21 years ago* sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
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.

21 years ago2002-11-03 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 5 Nov 2002 03:01:37 +0000 (03:01 +0000)]
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.

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

* sysdeps/unix/sysv/linux/fexecve.c: New file.

21 years agofexecve implementation for Linux.
Ulrich Drepper [Mon, 4 Nov 2002 19:52:27 +0000 (19:52 +0000)]
fexecve implementation for Linux.

21 years ago* charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
Roland McGrath [Mon, 4 Nov 2002 19:23:01 +0000 (19:23 +0000)]
* charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.

21 years ago2002-10-18 Bruno Haible <bruno@clisp.org>
Roland McGrath [Mon, 4 Nov 2002 19:22:53 +0000 (19:22 +0000)]
2002-10-18  Bruno Haible  <bruno@clisp.org>

* charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.

21 years agoUpdate.
Ulrich Drepper [Mon, 4 Nov 2002 10:33:19 +0000 (10:33 +0000)]
Update.

* libio/bug-wfflush.c (do_test): Using fseek is not allowed when
wide oriented streams are used.

21 years agoUpdate.
Ulrich Drepper [Mon, 4 Nov 2002 10:20:14 +0000 (10:20 +0000)]
Update.

* nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
service hasn't been used [PR libc/4744].

21 years agoUpdate.
Ulrich Drepper [Mon, 4 Nov 2002 09:36:53 +0000 (09:36 +0000)]
Update.

* include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].

21 years agoUpdate.
Ulrich Drepper [Mon, 4 Nov 2002 09:18:22 +0000 (09:18 +0000)]
Update.

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

* manual/examples/dir.c: Don't include <stddef.h>.
* manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.

2002-11-02  H.J. Lu  <hjl@gnu.org>

* stdio-common/reg-printf.c: Include <stddef.h>.

21 years agoUpdate.
Ulrich Drepper [Mon, 4 Nov 2002 07:14:09 +0000 (07:14 +0000)]
Update.

* sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.

21 years agoUpdate.
Ulrich Drepper [Mon, 4 Nov 2002 07:01:23 +0000 (07:01 +0000)]
Update.

* po/ca.po: Update from translation team.
* po/es.po: Likewise.

21 years agoUpdate.
Ulrich Drepper [Sun, 3 Nov 2002 08:52:36 +0000 (08:52 +0000)]
Update.

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

* sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
is defined write out memory map.
* sysdeps/unix/sysv/linux/segfault.c: New file.

21 years ago(catch_segfault): If HAVE_PROC_SELF is defined write out memory map.
Ulrich Drepper [Sun, 3 Nov 2002 08:42:11 +0000 (08:42 +0000)]
(catch_segfault): If HAVE_PROC_SELF is defined write out memory map.

21 years ago* sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
Roland McGrath [Sun, 3 Nov 2002 03:47:57 +0000 (03:47 +0000)]
* sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for

pointers that can alias.
Reported by Daniel Jacobowitz <drow@mvista.com>.

21 years ago* sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
Roland McGrath [Sun, 3 Nov 2002 01:21:26 +0000 (01:21 +0000)]
* sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.

2002-11-02  Roland McGrath  <roland@redhat.com>

21 years ago* manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
Roland McGrath [Sun, 3 Nov 2002 00:59:09 +0000 (00:59 +0000)]
* manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r

description to be clearer and to say that *RESULT is set to ENTRY.

2002-10-30  Jakub Jelinek  <jakub@redhat.com>

* posix/regexec.c (build_trtable): Alloca or malloc dests_node and
dests_ch arrays together.  Alloca or malloc dest_states,
dest_states_word and dest_states_nl arrays together.  Free memory on
error exit.

2002-10-29  Daniel Jacobowitz  <drow@mvista.com>

* crypt/crypt_util.c (__init_des_r): Initialize current_salt
and current_saltbits.

2002-11-02  Roland McGrath  <roland@redhat.com>

21 years ago* stdio-common/reg-printf.c: Include <stdlib.h>.
Roland McGrath [Sun, 3 Nov 2002 00:16:49 +0000 (00:16 +0000)]
* stdio-common/reg-printf.c: Include <stdlib.h>.

21 years ago* sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
Roland McGrath [Sat, 2 Nov 2002 23:13:20 +0000 (23:13 +0000)]
* sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set

caller to EXTRA instead of execve.

21 years ago* sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
Roland McGrath [Sat, 2 Nov 2002 01:53:44 +0000 (01:53 +0000)]
* sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional

in place of [!(USE_TLS && HAVE___THREAD)].
(__errno_location) [! USE___THREAD]: Define as strong, not weak.

21 years ago* sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
Roland McGrath [Fri, 1 Nov 2002 21:49:33 +0000 (21:49 +0000)]
* sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):

New macros.
* sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.

* soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
without defining FP_ROUNDMODE.

21 years ago* sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
Roland McGrath [Fri, 1 Nov 2002 20:48:37 +0000 (20:48 +0000)]
* sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.

(__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
declare_symbol.
* sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
(OLD_SIGLIST_SIZE): Define.
* sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
(OLD_SIGLIST_SIZE): Define.
* sysdeps/unix/sysv/linux/arm/siglist.c: Remove.

21 years ago* sysdeps/ia64/strncpy.S: Fix recovery code.
Roland McGrath [Fri, 1 Nov 2002 20:46:53 +0000 (20:46 +0000)]
* sysdeps/ia64/strncpy.S: Fix recovery code.

21 years ago* include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
Roland McGrath [Fri, 1 Nov 2002 20:44:15 +0000 (20:44 +0000)]
* include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):

New macros.
* elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
text_set_element.
* elf/dl-libc.c (free_mem): Likewise.
* iconv/gconv_conf.c (free_mem): Likewise.
* iconv/gconv_db.c (free_mem): Likewise.
* iconv/gconv_dl.c (free_mem): Likewise.
* iconv/gconv_cache.c (free_mem): Likewise.
* intl/finddomain.c (free_mem): Likewise.
* intl/dcigettext.c (free_mem): Likewise.
* locale/setlocale.c (free_mem): Likewise.
* misc/fstab.c (fstab_free): Likewise.
* nss/nsswitch.c (free_mem): Likewise.
* posix/regcomp.c (free_mem): Likewise.
* resolv/gai_misc.c (free_res): Likewise.
* stdlib/fmtmsg.c (free_mem): Likewise.
* sunrpc/clnt_perr.c (free_mem): Likewise.
* sysdeps/generic/setenv.c (free_mem): Likewise.
* sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
* sysdeps/pthread/aio_misc.c (free_res): Likewise.
* time/tzset.c (free_mem): Likewise.
* malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
* locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
* malloc/set-freeres.c (__libc_freeres): Likewise.

* login/getutent.c: Include stdlib.h instead of stddef.h.
(buffer): Change into pointer to utmp, add libc_freeres_ptr.
(__getutent): Allocate buffer the first time it is run.
* login/getutid.c: Include stdlib.h instead of stddef.h.
(buffer): Change into pointer to utmp, add libc_freeres_ptr.
(__getutid): Allocate buffer the first time it is run.
* login/getutline.c: Include stdlib.h instead of stddef.h.
(buffer): Change into pointer to utmp, add libc_freeres_ptr.
(__getutline): Allocate buffer the first time it is run.
* malloc/mtrace.c (malloc_trace_buffer): Change into char *.
(mtrace): Allocate malloc_trace_buffer.
* resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
* resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
* string/strerror.c: Include libintl.h and errno.h.
(buf): New variable.
(strerror): Only allocate buffer if actually needed (unknown error).
* time/tzfile.c (transitions): Add libc_freeres_ptr.
(freeres): Remove.

2002-10-25  Jakub Jelinek  <jakub@redhat.com>

* include/libc-symbols.h (libc_freeres_ptr): New macro.
* malloc/set-freeres.c (__libc_freeres_ptrs): Define using
symbol_set_define.
(__libc_freeres): Free all pointers in that section.
* Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
commands when creating .lds script.
(LDSEDCMD-c.so): New variable.
* inet/rcmd.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
(rcmd_af): Use strdup to allocate ahostbuf.
* inet/rexec.c (ahostbuf): Change into char *.  Add libc_freeres_ptr.
(rexec_af): Use strdup to allocate ahostbuf.
* stdio-common/reg-printf.c (printf_funcs): Remove.
(__printf_arginfo_table): Change into printf_arginfo_function **.
Add libc_freeres_ptr.
(__register_printf_function): Allocate __printf_arginfo_table
and __printf_function_table the first time it is called.
* stdio-common/printf-parse.h (__printf_arginfo_table): Change into
printf_arginfo_function **.
(parse_one_spec): Add __builtin_expect.
* grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
(free_mem): Remove.
* inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
(free_mem): Remove.
* intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
(string_space, map): Add libc_freeres_ptr.
(free_mem): Remove.
* misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
(free_mem): Remove.
* misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
(free_mem): Remove.
* crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
(buffer): Add libc_freeres_ptr.
(free_mem): Remove for _LIBC.
* nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
(free_mem): Remove.
* nss/getXXent.c (buffer): Add libc_freeres_ptr.
(free_mem): Remove.
* pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
(free_mem): Remove.
* resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
(free_mem): Remove.
* shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
(free_mem): Remove.
* sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
(free_mem): Remove.
* sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
libc_freeres_ptr.
(free_mem): Remove.
* sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
libc_freeres_ptr.
(free_mem): Remove.

2002-10-30  Jakub Jelinek  <jakub@redhat.com>

* malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
instead of duplicating the whole function in libc.

21 years ago* sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
Roland McGrath [Fri, 1 Nov 2002 04:12:30 +0000 (04:12 +0000)]
* sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):

Renamed from __bswap_16 (typo fix).  Reported by <dens@stl.sarov.ru>.

21 years ago2002-10-31 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 1 Nov 2002 04:12:25 +0000 (04:12 +0000)]
2002-10-31  Roland McGrath  <roland@redhat.com>

* sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
Renamed from __bswap_16 (typo fix).  Reported by <dens@stl.sarov.ru>.

21 years ago* sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
Andreas Jaeger [Wed, 30 Oct 2002 18:25:37 +0000 (18:25 +0000)]
* sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each

32bit-predefine when creating .new32 list and -U for each
32bit-predefine when creating .new64 list.
* sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.

21 years ago* sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
Andreas Jaeger [Wed, 30 Oct 2002 18:25:26 +0000 (18:25 +0000)]
* sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each

32bit-predefine when creating .new32 list and -U for each
32bit-predefine when creating .new64 list.
* sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.

21 years ago* sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
Andreas Schwab [Tue, 29 Oct 2002 12:15:08 +0000 (12:15 +0000)]
* sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not

"testrtsig.h".  Reported by Daniel Jacobowitz <dan@debian.org>.

21 years agoInclude <testrtsig.h>, not "testrtsig.h".
Andreas Schwab [Tue, 29 Oct 2002 12:14:53 +0000 (12:14 +0000)]
Include <testrtsig.h>, not "testrtsig.h".

21 years ago* sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
Roland McGrath [Sat, 26 Oct 2002 01:06:33 +0000 (01:06 +0000)]
* sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.

* sysdeps/unix/sysv/linux/configure: Regenerated.

21 years ago* sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
Roland McGrath [Sat, 26 Oct 2002 01:04:06 +0000 (01:04 +0000)]
* sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from

_dl_starting_up decl.

21 years ago* sysdeps/unix/sysv/linux/configure.in: Don't check
Roland McGrath [Fri, 25 Oct 2002 23:38:23 +0000 (23:38 +0000)]
* sysdeps/unix/sysv/linux/configure.in: Don't check

/lib/modules/`uname -r`/build/include for kernel headers if
cross compiling.
* sysdeps/unix/sysv/linux/configure: Regenerated.

21 years ago.
Roland McGrath [Fri, 25 Oct 2002 19:45:33 +0000 (19:45 +0000)]
.

21 years ago* math/math.h (M_LOG2El): Correct the value.
Roland McGrath [Fri, 25 Oct 2002 19:45:27 +0000 (19:45 +0000)]
* math/math.h (M_LOG2El): Correct the value.

From Stephen L Moshier <steve@moshier.net>.

21 years ago* sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
Roland McGrath [Fri, 25 Oct 2002 19:41:31 +0000 (19:41 +0000)]
* sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]

conditional from __libc_multiple_libcs access.  Remove kludge for weak
symbol access with old compilers we no longer support.
* sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
* sysdeps/generic/libc-start.c (__libc_start_main): Likewise.

2002-10-24  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/ldsodefs.h (struct rtld_global): New member
`_dl_tls_static_used'.
(TLS_STATIC_MIN): New macro.
* sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
(__libc_setup_tls): Initialize it.
* sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Likewise.
* 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-25  Roland McGrath  <roland@redhat.com>

21 years ago* sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
Roland McGrath [Fri, 25 Oct 2002 19:15:57 +0000 (19:15 +0000)]
* sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and

implement SV_RESETHAND by translating it to SA_RESETHAND.

21 years ago2002-10-25 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 25 Oct 2002 19:15:51 +0000 (19:15 +0000)]
2002-10-25  Roland McGrath  <roland@redhat.com>

* sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
implement SV_RESETHAND by translating it to SA_RESETHAND.

21 years agoUpdate.
Ulrich Drepper [Fri, 25 Oct 2002 07:54:26 +0000 (07:54 +0000)]
Update.

2002-10-23  Alexandre Oliva  <aoliva@redhat.com>

* elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
type on ELF64 platforms.

21 years agoUpdate.
Ulrich Drepper [Thu, 24 Oct 2002 23:33:28 +0000 (23:33 +0000)]
Update.

* elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.

21 years agoUpdate.
Ulrich Drepper [Thu, 24 Oct 2002 23:06:13 +0000 (23:06 +0000)]
Update.

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

* elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.

21 years agoDefine ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
Ulrich Drepper [Thu, 24 Oct 2002 23:05:02 +0000 (23:05 +0000)]
Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.

21 years ago* elf/dl-misc.c: Include <sysdep.h>.
Roland McGrath [Thu, 24 Oct 2002 19:14:59 +0000 (19:14 +0000)]
* elf/dl-misc.c: Include <sysdep.h>.

(_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.

* sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
* sysdeps/unix/sysv/linux/init-first.c: Not here.
* sysdeps/powerpc/elf/libc-start.c: Or here.
* sysdeps/unix/sysv/aix/libc-start.c: Or here.
* sysdeps/unix/sysv/aix/start-libc.c: Or here.
* sysdeps/unix/sysv/aix/init-first.c: Or here.
* sysdeps/generic/libc-start.c: Or here.
* sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
access with [! SHARED].
* sysdeps/unix/sysv/aix/init-first.c (init): Likewise.

21 years ago* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
Roland McGrath [Thu, 24 Oct 2002 18:49:00 +0000 (18:49 +0000)]
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,

INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
(INLINE_SYSCALL): Use that.
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
(INLINE_SYSCALL): Use that.
* sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
(INLINE_SYSCALL): Use that.
* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
dl-sysdep.h.
(SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
(__INTERNAL_SYSCALL_STRING): Define.
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
dl-sysdep.h.
(SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
(__INTERNAL_SYSCALL_STRING): Define.
* sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
__SYSCALL_STRING to inline_syscall*.
(INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
New macros.
(inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
inline_syscall4, inline_syscall5, inline_syscall6): Add string
argument.

2002-10-24  Roland McGrath  <roland@redhat.com>

* libio/bug-wfflush.c: New file.
* libio/Makefile (tests): Add bug-wfflush.

21 years ago* stdio-common/tst-fphex.c: New file.
Roland McGrath [Thu, 24 Oct 2002 01:15:37 +0000 (01:15 +0000)]
* stdio-common/tst-fphex.c: New file.

* stdio-common/Makefile (tests): Add tst-fphex.
* sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
of WNUMEND.  Fix counting of decimal point in WIDTH.  Print '0' pad
chars always before the value digits.
Reported by James Antill <james.antill@redhat.com>.

21 years ago* posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
Roland McGrath [Thu, 24 Oct 2002 00:22:27 +0000 (00:22 +0000)]
* posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.

(free_mem): New function.
* posix/Makefile (tests): Add bug-regex14.  Add bug-regex14-mem
if not cross compiling.
(generated): Add bug-regex14-mem and bug-regex14.mtrace.
(bug-regex14-ENV): Set.
(bug-regex14-mem): New target.
* posix/bug-regex14.c: New file.

* elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
target, so we don't touch it when the link fails.

21 years ago* libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
Roland McGrath [Wed, 23 Oct 2002 23:50:19 +0000 (23:50 +0000)]
* libio/ftello.c (ftello): Use _IO_off64_t for type of POS.

Check for the result overflowing off_t and fail with EOVERFLOW.
* libio/ioftell.c (_IO_ftell): Likewise.
* libio/iofgetpos.c (_IO_new_fgetpos): Likewise.

* login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
use a temporary timeval on the stack for gettimeofday and copy it.
* login/logout.c (logout): Likewise.
Reported by Steven Munroe <sjmunroe@us.ibm.com>.

* sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
Use __SWORD_TYPE instead of int for member types.
(struct statfs64): Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
* sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
* sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
* sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
* sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.

* sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
* sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
(ST_NODIRATIME): Restore fixed value of 2048.
* sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
* sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.

Rearranged <bits/types.h> definitions to reduce duplication.
* sysdeps/generic/bits/types.h: Rewritten, using macros from
<bits/wordsize.h> and new header <bits/typesizes.h>.
* posix/Makefile (headers): Add bits/typesizes.h here.
* sysdeps/generic/bits/typesizes.h: New file.
* sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
* sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
* sysdeps/mach/hurd/bits/typesizes.h: New file.
* sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
* sysdeps/unix/sysv/linux/bits/types.h: File removed.
* sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
* sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
* sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
* sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
* sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
* posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
<bits/pthreadtypes.h> here, not in <bits/types.h>.
* signal/signal.h: Likewise.

* streams/stropts.h: Include <bits/xtitypes.h>.
* streams/Makefile (headers): Add bits/xtitypes.h here.
* sysdeps/generic/bits/xtitypes.h: New file.
* sysdeps/s390/bits/xtitypes.h: New file.
* sysdeps/ia64/bits/xtitypes.h: New file.
* sysdeps/x86_64/bits/xtitypes.h: New file.

* sysvipc/Makefile (headers): Add bits/ipctypes.h here.
* sysdeps/generic/bits/ipctypes.h: New file.
* sysdeps/mips/bits/ipctypes.h: New file.
* sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
* sysdeps/gnu/bits/msq.h: Likewise.
* sysvipc/sys/ipc.h: Likewise.

2002-10-22  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
* sysdeps/generic/ldsodefs.h (struct rtld_global): New member
`_dl_tls_static_used'.
(TLS_STATIC_MIN): New macro.
* elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
(CHECK_STATIC_TLS): Use it.

21 years ago2002-10-23 Roland McGrath <roland@redhat.com>
Roland McGrath [Wed, 23 Oct 2002 23:48:42 +0000 (23:48 +0000)]
2002-10-23  Roland McGrath  <roland@redhat.com>

* streams/stropts.h: Include <bits/xtitypes.h>.
* streams/Makefile (headers): Add bits/xtitypes.h here.
* sysdeps/generic/bits/xtitypes.h: New file.
* sysdeps/s390/bits/xtitypes.h: New file.
* sysdeps/ia64/bits/xtitypes.h: New file.
* sysdeps/x86_64/bits/xtitypes.h: New file.

21 years agoUpdate.
Ulrich Drepper [Wed, 23 Oct 2002 06:19:14 +0000 (06:19 +0000)]
Update.

2002-10-22  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-load.c (struct filebuf): For buf element to have the
alignment of ElfXX_Ehdr since this is what will be stored in it.

2002-10-19  Art Haas  <ahaas@neosoft.com>

21 years ago(struct filebuf): For buf element to have the alignment of ElfXX_Ehdr since this...
Ulrich Drepper [Wed, 23 Oct 2002 06:18:24 +0000 (06:18 +0000)]
(struct filebuf): For buf element to have the alignment of ElfXX_Ehdr since this is what will be stored in it.

21 years ago* locale/programs/locarchive.c (add_alias): Change locrec_offset arg
Roland McGrath [Tue, 22 Oct 2002 16:11:43 +0000 (16:11 +0000)]
* locale/programs/locarchive.c (add_alias): Change locrec_offset arg

into pointer to locrec_offset.
(add_locale_to_archive): Adjust callers.  Free normalized_name right
before returning, not immediately after add_locale, pass it to
add_alias if not NULL instead of name.  Rename second normalized_name
occurence to nnormalized_codeset_name.

2002-10-21  Andreas Schwab  <schwab@suse.de>

* sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
caller to EXTRA instead of execve, since the latter has a
higher-priority implementation in linuxthreads.

21 years ago* sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
Roland McGrath [Tue, 22 Oct 2002 16:07:15 +0000 (16:07 +0000)]
* sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set

caller to EXTRA instead of execve, since the latter has a
higher-priority implementation in linuxthreads.

21 years ago* locale/programs/locarchive.c (enlarge_archive): Make sure
Roland McGrath [Tue, 22 Oct 2002 15:50:12 +0000 (15:50 +0000)]
* locale/programs/locarchive.c (enlarge_archive): Make sure

string_size is always a multiple of 4.
Reported by Andreas Schwab <schwab@suse.de>.

21 years ago* sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
Roland McGrath [Tue, 22 Oct 2002 06:22:53 +0000 (06:22 +0000)]
* sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static

slotinfo list's len member to the proper size, not just 1.
Initialize static_map.l_tls_initimage.

* elf/dl-open.c (dl_open_worker): Fix loop searching for
dtv_slotinfo_list element containing new modules' l_tls_modid.

* elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
* elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
* elf/Makefile (tests): Add tst-tls9.
(tests-static): Add tst-tls9-static.
(tst-tls9-static-ENV): New variable.
($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.

* elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
modids used by partially loaded modules being closed can't be known.

21 years ago2002-10-21 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 22 Oct 2002 06:22:38 +0000 (06:22 +0000)]
2002-10-21  Roland McGrath  <roland@redhat.com>

* elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
* elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
* elf/Makefile (tests): Add tst-tls9.
(tests-static): Add tst-tls9-static.
(tst-tls9-static-ENV): New variable.
($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.

21 years agoUpdate.
Ulrich Drepper [Mon, 21 Oct 2002 18:19:01 +0000 (18:19 +0000)]
Update.

2002-10-21  Isamu Hasegawa  <isamu@yamato.ibm.com>

* posix/Makefile: Add a test case for the bug reported by Aharon
Robbins <arnold@skeeve.com>.
* posix/bug-regex13.c: New file.
* posix/regcomp.c (peek_token_bracket): Skip the byte already read.

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

* csu/gmon-start.c: Pretty printing.

* configure.in: Replace obsolete AC_OUTPUT syntax with
AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
* aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
* configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
* sysdeps/alpha/elf/configure.in: Likewise.
* sysdeps/i386/elf/configure.in: Likewise.
* sysdeps/mach/hurd/configure.in: Likewise.
* sysdeps/x86_64/elf/configure.in: Likewise.
* sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
* sysdeps/generic/configure.in: Likewise.
* sysdeps/i386/elf/configure.in: Likewise.
* sysdeps/ia64/elf/configure.in: Likewise.
* sysdeps/mach/configure.in: Likewise.
* sysdeps/mach/hurd/configure.in: Likewise.
* sysdeps/unix/configure.in: Likewise.
* sysdeps/unix/common/configure.in: Likewise.
* sysdeps/unix/sysv/aix/configure.in: Likewise.
* sysdeps/unix/sysv/linux/configure.in: Likewise.
* sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
* sysdeps/x86_64/elf/configure.in: Likewise.

21 years agoPretty printing.
Ulrich Drepper [Mon, 21 Oct 2002 17:55:08 +0000 (17:55 +0000)]
Pretty printing.

21 years ago2002-10-19 Art Haas <ahaas@neosoft.com>
Roland McGrath [Sun, 20 Oct 2002 00:21:33 +0000 (00:21 +0000)]
2002-10-19  Art Haas <ahaas@neosoft.com>

* configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
* configure: Regenerated.

21 years ago* configure.in: Call AC_CONFIG_SUBDIRS with empty argument
Roland McGrath [Sat, 19 Oct 2002 20:51:15 +0000 (20:51 +0000)]
* configure.in: Call AC_CONFIG_SUBDIRS with empty argument

and then set $subdirs directly, because the new Autoconf breaks
compatibility in every way imaginable and insists on whining
about usage that worked since the dawn of time.
* configure: Regenerated.