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

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

22 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].

22 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].

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

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

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

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

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

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

22 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>

22 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>

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

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

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

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

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

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

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

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

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

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

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

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

22 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".

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

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

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

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

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

22 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>

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

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

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

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

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

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

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

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

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

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

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

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

22 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>

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

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

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

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

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

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

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

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

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

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

22 years ago* configure: Regenerated (using Autoconf 2.54).
Roland McGrath [Sat, 19 Oct 2002 20:07:18 +0000 (20:07 +0000)]
* configure: Regenerated (using Autoconf 2.54).

* sysdeps/alpha/elf/configure: Likewise.
* sysdeps/generic/configure: Likewise.
* sysdeps/i386/elf/configure: Likewise.
* sysdeps/ia64/elf/configure: Likewise.
* sysdeps/mach/hurd/configure: Likewise.
* sysdeps/mach/configure: Likewise.
* sysdeps/unix/configure: Likewise.
* sysdeps/unix/common/configure: Likewise.
* sysdeps/unix/sysv/aix/configure: Likewise.
* sysdeps/unix/sysv/linux/configure: Likewise.
* sysdeps/unix/sysv/linux/mips/configure: Likewise.
* sysdeps/x86_64/elf/configure: Likewise.

* config.make.in: Nix completely-soft nonsense.
* configure.in: Likewise.  Under --without-fp, use nofpu subdirectory
of machine directories instead of fpu subdirectory.
* sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
* sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
* sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
* sysdeps/powerpc/nofpu/sim-full.c: ... here.
* sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
* sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
* sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
* sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
* sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
* sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
* sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
* sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
* sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
* sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
* sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
* sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
* sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
* sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
* sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
* sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
* sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
* sysdeps/powerpc/nofpu/fegetenv.c: ... here.
* sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
* sysdeps/powerpc/nofpu/fesetenv.c: ... here.
* sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
* sysdeps/powerpc/nofpu/fegetround.c: ... here.
* sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
* sysdeps/powerpc/nofpu/fesetround.c: ... here.
* sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
* sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
* sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
* sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
* sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
* sysdeps/powerpc/nofpu/fenv_const.c: ... here.
* sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
* sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
* sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
* sysdeps/powerpc/nofpu/soft-supp.h: ... here.
* sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
* sysdeps/powerpc/nofpu/Versions: ... here, new file.

2002-10-19  Bruno Haible  <bruno@clisp.org>

* sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.

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

* io/Makefile (routines): Add lchmod.
* io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
* sysdeps/generic/lchmod.c: New file.
* sysdeps/mach/hurd/lchmod.c: New file.
* io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.

22 years ago* configure.in: Remove remaining AC_FD_CC macros, and replace
Roland McGrath [Sat, 19 Oct 2002 00:23:55 +0000 (00:23 +0000)]
* configure.in: Remove remaining AC_FD_CC macros, and replace

AC_FD_MSG with AS_MESSAGE_FD.

22 years ago* sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
Roland McGrath [Fri, 18 Oct 2002 22:37:42 +0000 (22:37 +0000)]
* sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix

typos: VALUE -> FINALADDR.

22 years ago * configure.in: Replace obsolete AC_OUTPUT syntax with
Roland McGrath [Fri, 18 Oct 2002 22:17:48 +0000 (22:17 +0000)]
    * configure.in: Replace obsolete AC_OUTPUT syntax with

        AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.

22 years ago* sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
Roland McGrath [Fri, 18 Oct 2002 22:16:45 +0000 (22:16 +0000)]
* sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)

(inline_syscall_clobbers, inline_syscall0, inline_syscall1)
(inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
(inline_syscall6): Move these macros ...
* sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.

        * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
_AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.

22 years ago* configure.in (libc_link_dests, libc_link_sources): Remove these
Roland McGrath [Fri, 18 Oct 2002 20:55:03 +0000 (20:55 +0000)]
* configure.in (libc_link_dests, libc_link_sources): Remove these

variables and the AC_LINK_FILES call.

* sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
change to put new symbols here instead of in GLIBC_2.2.
* sysdeps/powerpc/Subdirs: Move this file ...
* sysdeps/powerpc/soft-fp/Subdirs: ... here.

22 years ago* sysdeps/generic/bits/time.h: Replaced with contents of the
Roland McGrath [Fri, 18 Oct 2002 20:36:01 +0000 (20:36 +0000)]
* sysdeps/generic/bits/time.h: Replaced with contents of the

sysdeps/unix/sysv/linux/i386/bits/time.h file.  All the following
files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
macros is ok even for architectures that don't now implement them.
* sysdeps/mach/hurd/bits/time.h: File removed.
* sysdeps/unix/sysv/linux/bits/time.h: File removed.
* sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
* sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
* sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
* sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.

22 years ago * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
Roland McGrath [Fri, 18 Oct 2002 20:28:09 +0000 (20:28 +0000)]
    * 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.

22 years ago* configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
Roland McGrath [Fri, 18 Oct 2002 20:08:31 +0000 (20:08 +0000)]
* configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.

22 years ago2002-10-18 Jeff Bailey <jbailey@gnu.org>
Roland McGrath [Fri, 18 Oct 2002 19:38:06 +0000 (19:38 +0000)]
2002-10-18  Jeff Bailey  <jbailey@gnu.org>

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

22 years ago* aclocal.m4: Use just the bits from AS_INIT that are needed for the
Roland McGrath [Fri, 18 Oct 2002 19:18:49 +0000 (19:18 +0000)]
* aclocal.m4: Use just the bits from AS_INIT that are needed for the

GLIBC_PROVIDES.  Use plain comment instead of HEADER-COMMENT so
that it's obvious when extra autoconf machinery is being dragged in.

22 years ago* configure.in: Remove bogus echo included in
Roland McGrath [Fri, 18 Oct 2002 19:09:06 +0000 (19:09 +0000)]
* configure.in: Remove bogus echo included in

2002-10-08  Aldy Hernandez  <aldyh@redhat.com> change.
* configure: Regenerated.

22 years ago* sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
Roland McGrath [Fri, 18 Oct 2002 19:03:55 +0000 (19:03 +0000)]
* sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.

(statfs_filesize_max): New function.
* sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
* sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
statfs_filesize_max.
* sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
* sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
* sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.

22 years agoregenerated
Roland McGrath [Fri, 18 Oct 2002 08:17:43 +0000 (08:17 +0000)]
regenerated

22 years agoRegenerated: autoconf sysdeps/generic/configure.in
Ulrich Drepper [Fri, 18 Oct 2002 05:05:59 +0000 (05:05 +0000)]
Regenerated: autoconf  sysdeps/generic/configure.in

22 years agoUpdate.
Ulrich Drepper [Fri, 18 Oct 2002 05:05:55 +0000 (05:05 +0000)]
Update.

* sysdeps/powerpc/soft-fp/soft-supp.h: New file.

22 years agoInternal support stuff for complete soft float.
Ulrich Drepper [Fri, 18 Oct 2002 04:57:50 +0000 (04:57 +0000)]
Internal support stuff for complete soft float.

22 years ago* configure.in (MIG): Just AC_SUBST it here.
Roland McGrath [Fri, 18 Oct 2002 01:49:07 +0000 (01:49 +0000)]
* configure.in (MIG): Just AC_SUBST it here.

* configure: Regenerated.
* sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
* sysdeps/mach/configure: Regenerated.

* aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
and AC_PROVIDE([_AS_CR_PREPARE]).

22 years ago* aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
Roland McGrath [Fri, 18 Oct 2002 01:13:06 +0000 (01:13 +0000)]
* aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).

Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).

* elf/dl-support.c: Move _dl_tls_* variables to ...
* sysdeps/generic/libc-tls.c: ... here.

* elf/dl-close.c (remove_slotinfo): Take new argument.  If false,
allow IDX to be one past the current last slotinfo entry.
(_dl_close): Pass IMAP->l_init_called for that parameter.

22 years ago2002-10-17 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 18 Oct 2002 01:10:44 +0000 (01:10 +0000)]
2002-10-17  Roland McGrath  <roland@redhat.com>

* elf/dl-close.c (remove_slotinfo): Take new argument.  If false,
allow IDX to be one past the current last slotinfo entry.
(_dl_close): Pass IMAP->l_init_called for that parameter.

22 years agoUpdate.
Ulrich Drepper [Thu, 17 Oct 2002 23:48:55 +0000 (23:48 +0000)]
Update.

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

* aclocal.m4: Fix for autoconf 2.53.
* configure.in: Likewise.  Require autoconf 2.53.

22 years agoUpdate.
Ulrich Drepper [Thu, 17 Oct 2002 23:16:26 +0000 (23:16 +0000)]
Update.

2002-10-08  Richard Henderson  <rth@redhat.com>

* soft-fp/op-4.h: Handle carry correctly in
__FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
__FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
* soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.

2002-10-08  Aldy Hernandez  <aldyh@redhat.com>

* configure.in: Compute completely-soft.
* config.make.in: Make completely-soft available to sub-makes.
* sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
gcc-double-routines.  Add sim-full.c.  Add fenv_const and
fe_nomask to libm-support.
* sysdeps/powerpc/soft-fp/sim-full.c: New file.
* sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
* sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
* sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
* sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
* sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
* sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
* sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
* sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
* sysdeps/powerpc/soft-fp/fegetenv.c: New file.
* sysdeps/powerpc/soft-fp/fesetenv.c: New file.
* sysdeps/powerpc/soft-fp/fegetround.c: New file.
* sysdeps/powerpc/soft-fp/fesetround.c: New file.
* sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
* sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
* sysdeps/powerpc/soft-fp/fenv_const.c: New file.
* sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
* sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
symbols.  Add __sim_disabled_exceptions, __sim_exceptions,
__sim_round_mode.
* sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
* sysdeps/powerpc/soft-float/sfp-machine.h: Define
FP_HANDLE_EXCEPTIONS.
Define FP_ROUNDMODE.
Redefine FP_* macros to correspond to the FE_* bit positions.
Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
Define externs for __sim_exceptions, __sim_disabled_exceptions,
__sim_round_mode, __simulate_exceptions.
* sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
* sysdeps/powerpc/bits/fenv.h: ...to here.

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

* sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
Use __builtin_expect for R_PPC_ADDR24 overflow check.  Fix
R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
__builtin_expect.

22 years ago(__process_machine_rela): Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time...
Ulrich Drepper [Thu, 17 Oct 2002 22:22:42 +0000 (22:22 +0000)]
(__process_machine_rela): Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.  Use __builtin_expect for R_PPC_ADDR24 overflow check.  Fix R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use __builtin_expect.

22 years agotypos
Roland McGrath [Thu, 17 Oct 2002 22:12:14 +0000 (22:12 +0000)]
typos

22 years ago* configure.in: Grok --without-__thread and disable HAVE___THREAD.
Roland McGrath [Thu, 17 Oct 2002 22:07:42 +0000 (22:07 +0000)]
* configure.in: Grok --without-__thread and disable HAVE___THREAD.

* configure: Regenerated.

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

* configure.in: Grok --without-__thread and disable HAVE___THREAD.
* configure: Regenerated.

22 years agoUpdate.
Ulrich Drepper [Thu, 17 Oct 2002 21:51:21 +0000 (21:51 +0000)]
Update.

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

* include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
__libc_res_nsend): New prototypes.
* resolv/res_query.c (QUERYSIZE): Define.
(__libc_res_nquery): Renamed from res_nquery.  Added answerp
argument.  Allocate only QUERYSIZE bytes first, if res_nmkquery
fails use MAXPACKET buffer.  Call __libc_res_nsend instead of
res_nsend, pass answerp.
(res_nquery): Changed into wrapper around __libc_res_nquery.
(__libc_res_nsearch): Renamed from res_nsearch.  Added answerp
argument.  Call __libc_res_nquerydomain and __libc_res_nquery
instead of the non-__libc_ variants, pass them answerp.
(res_nsearch): Changed into wrapper around __libc_res_nsearch.
(__libc_res_nquerydomain): Renamed from res_nquerydomain.
Added answerp argument.  Call __libc_res_nquery instead of
res_nquery, pass answerp.
(res_nquerydomain): Changed into wrapper around
__libc_res_nquerydomain.
* resolv/res_send.c: Include sys/ioctl.h.
(MAXPACKET): Define.
(send_vc): Change arguments.  Reallocate answer buffer if it is
too small.
(send_dg): Likewise.
(__libc_res_nsend): Renamed from res_nsend.  Added ansp argument.
Reallocate answer buffer if it is too small and hooks are in use.
Adjust calls to send_vc and send_dg.
(res_nsend): Changed into wrapper around __libc_res_nsend.
* resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
just 1K answer buffer on the stack, use __libc_res_nsearch instead
of res_nsearch.
(_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
* resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
(_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
* resolv/gethnamaddr.c (gethostbyname2): Likewise.
(gethostbyaddr): Similarly with __libc_res_nquery.
* resolv/Versions (libresolv): Export __libc_res_nquery and
__libc_res_nsearch at GLIBC_PRIVATE.

22 years agoPretty printing.
Ulrich Drepper [Thu, 17 Oct 2002 21:32:59 +0000 (21:32 +0000)]
Pretty printing.

22 years agobefore performing the reloc, not after.
Roland McGrath [Thu, 17 Oct 2002 19:51:49 +0000 (19:51 +0000)]
before performing the reloc, not after.

22 years ago* sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
Roland McGrath [Thu, 17 Oct 2002 19:44:20 +0000 (19:44 +0000)]
* sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS

before performing the reloc, not before.
* sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.

22 years ago2002-10-17 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 17 Oct 2002 19:44:19 +0000 (19:44 +0000)]
2002-10-17  Roland McGrath  <roland@redhat.com>

* sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
before performing the reloc, not before.
* sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.

22 years agoUpdate.
Ulrich Drepper [Thu, 17 Oct 2002 18:04:06 +0000 (18:04 +0000)]
Update.

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

* locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
* locale/programs/linereader.c (lr_open): Likewise.
* locale/programs/charmap-dir.c (charmap_open): Likewise.
* locale/programs/locarchive.c (add_locale_to_archive): Likewise.

22 years agoUpdate.
Ulrich Drepper [Thu, 17 Oct 2002 17:16:53 +0000 (17:16 +0000)]
Update.

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

* posix/bug-regex11.c: Add a test case for the bug reported by
Paolo Bonzini <bonzini@gnu.org>.
* posix/regexec.c (sift_states_bkref): Use correct destination of
the back reference.

22 years agoAdd a test case for the bug reported by Paolo Bonzini <bonzini@gnu.org>.
Ulrich Drepper [Thu, 17 Oct 2002 17:15:06 +0000 (17:15 +0000)]
Add a test case for the bug reported by Paolo Bonzini <bonzini@gnu.org>.

22 years ago* elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
Roland McGrath [Thu, 17 Oct 2002 12:10:17 +0000 (12:10 +0000)]
* elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.

* elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
* sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
Call it after performing TPOFF relocs.
* sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
* sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
* elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).

* elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
when closing a partially-initialized object.

* elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
instead of _dl_fatal_printf when we see PT_TLS.

22 years ago* Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
Roland McGrath [Thu, 17 Oct 2002 09:16:52 +0000 (09:16 +0000)]
* Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))

instead of $(libof-$<).

22 years ago* cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
Roland McGrath [Wed, 16 Oct 2002 22:09:55 +0000 (22:09 +0000)]
* cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.

instead of += to append, to be sure $(lib) gets expanded at defn time.
(libof-$(cpp-src)): New variable, define this instead.
* extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
(lib): Don't use override.
(CPPFLAGS-$(lib)): New variable, put -D's here.
* Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
LIB found by $(libof-*) for basename, target, or source.
* Makerules (CPPFLAGS-nonlib): New variable.
* nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
* locale/Makefile (lib): Likewise.
* sunrpc/Makefile (lib): Likewise.

* sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
* sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
* sysdeps/unix/sysv/linux/pathconf.h: New file.
(statfs_link_max): New function, guts from fpathconf.c.
* sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
* sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
* sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
to use the linux/pathconf.c code by #include rather than duplication.
* sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.

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

* sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
Use __libc_errno only for libc itself.

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

* sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
* sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
* sysdeps/unix/sysv/linux/pathconf.h: New file.
(statfs_link_max): New function, guts from fpathconf.c.
* sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
* sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
* sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
to use the linux/pathconf.c code by #include rather than duplication.
* sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.

22 years agoFix off-by-1 error in argument access.
Andreas Jaeger [Wed, 16 Oct 2002 10:09:27 +0000 (10:09 +0000)]
Fix off-by-1 error in argument access.

22 years agoUpdate.
Andreas Jaeger [Wed, 16 Oct 2002 10:09:14 +0000 (10:09 +0000)]
Update.

2002-10-16  Andreas Jaeger  <aj@suse.de>

* sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.

22 years agoUpdate.
Ulrich Drepper [Wed, 16 Oct 2002 08:57:50 +0000 (08:57 +0000)]
Update.

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

* sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
Use __libc_errno only for libc itself.

22 years agoUpdate.
Ulrich Drepper [Wed, 16 Oct 2002 04:42:33 +0000 (04:42 +0000)]
Update.

* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
Define for 2.4+ kernels.

* sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
are known to have the vfork syscall.  Don't confuse the CPUs
branch prediction unit by jumping to the return address.

22 years agoOptimize for kernels which are known to have the vfork syscall. Don't confuse the...
Ulrich Drepper [Wed, 16 Oct 2002 04:39:59 +0000 (04:39 +0000)]
Optimize for kernels which are known to have the vfork syscall. Don't confuse the CPUs branch prediction unit by jumping to the return address.

22 years agotypo
Roland McGrath [Wed, 16 Oct 2002 03:09:12 +0000 (03:09 +0000)]
typo

and call __libc_utmp_jump_table functions directly, instead of using

22 years ago Jakub Jelinek <jakub@redhat.com>
Roland McGrath [Wed, 16 Oct 2002 03:03:00 +0000 (03:03 +0000)]
Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/Makefile
($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
sparc/Makefile to produce a bi-arch file as needed.
That's now parameterized by the variable $(64bit-predefine).
Use LC_ALL=C for `comm' commands in that rule.
No longer conditional on [$(no_syscall_list_h)].
* sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
(64bit-predefine): New variable.
* sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
* sysdeps/unix/sysv/linux/s390/Makefile: New file.
* sysdeps/unix/sysv/linux/powerpc/Makefile
(64bit-predefine): New variable.

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

* sysdeps/unix/sysv/linux/Makefile
($(objpfx)syscall-%.h $(objpfx)syscall-%.d)

* login/utmp-private.h: Declare __libc_utmp_lock.
* sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
call __libc_utmp_jump_table functions directly, instead of using
__setutent et al.

* sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
* sysdeps/unix/sysv/linux/configure: Regenerated.

22 years ago* sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
Roland McGrath [Wed, 16 Oct 2002 01:03:05 +0000 (01:03 +0000)]
* sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.

(struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
Use int32_t for ll_time.
(struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
Use int32_t instead of long int for ut_session.
Use an anonymous struct with 32-bit fields for ut_tv.
* sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
(struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
here as in utmp.h for `struct utmp'.
* sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
* sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
* sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
* sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
* sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
* sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.

* sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
All the following files were identical or equivalent to it.
* sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
* sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
* sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
* sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
* sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
* sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
* sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
* sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
* sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
* sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.

* sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
Other than the previously incorrect sign of msg_iovlen, this is a
no-op on 32-bit platforms.  On 64-bit platforms it makes this header
match their layouts as well, so the following are now identical to it.
* sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
* sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
* sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
* sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
* sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.