external/glibc.git
22 years ago* sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
Roland McGrath [Wed, 7 Aug 2002 22:14:40 +0000 (22:14 +0000)]
* sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,

unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
Reported by Jakub Jelinek  <jakub@redhat.com>.

22 years ago2002-08-07 Jakub Jelinek <jakub@redhat.com>
Roland McGrath [Wed, 7 Aug 2002 19:32:54 +0000 (19:32 +0000)]
2002-08-07  Jakub Jelinek  <jakub@redhat.com>

        * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
division.

* include/getopt.h: Put private decls inside [_GETOPT_H].

22 years ago* include/getopt.h: But private decls inside [_GETOPT_H].
Roland McGrath [Tue, 6 Aug 2002 21:10:50 +0000 (21:10 +0000)]
* include/getopt.h: But private decls inside [_GETOPT_H].

Use libc_hidden_proto for getopt_long, getopt_long_only.
* posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
Add libc_hidden_def.

* sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
Define as a macro for __dl_iterate_phdr.

* inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
made static.  Add __ name as a strong alias.
(internal_endnetgrent): Likewise.
(internal_getnetgrent_r): Likewise.

22 years ago* locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
Roland McGrath [Tue, 6 Aug 2002 08:40:20 +0000 (08:40 +0000)]
* locale/Versions (libc: GLIBC_2.3): Add all the *_l functions

with no __ prefix.
* locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
* ctype/ctype.h [__USE_GNU]: Add declarations and macros for
all *_l functions with no __ prefix.
* wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
* ctype/ctype_l.c: Likewise.
* locale/nl_langinfo.c: Likewise.
* string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
* stdlib/stdlib.h [__USE_GNU]: Likewise.
* wcsmbs/wchar.h [__USE_GNU]: Likewise.
* wctype/wctype.h [__USE_GNU]: Likewise.
* string/strcoll_l.c (strcoll_l): Define as weak alias.
* string/strxfrm_l.c (strxfrm_l): Define as weak alias.
* sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
* sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
* stdlib/strtod_l.c (strtod_l): Define as weak alias.
* stdlib/strtof_l.c (strtof_l): Define as weak alias.
* stdlib/strtold_l.c (strtold_l): Define as weak alias.
* wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
(__wcscasecmp_l): Add libc_hidden_def.
* wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
(__wcsncasecmp_l): Add libc_hidden_def.
* wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
* wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
* wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
* wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
* wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
* sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
* sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
* sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
* sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
* sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
* sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
* wctype/wctrans_l.c (wctrans_l) Define as weak alias.
* wctype/towctrans_l.c (towctrans_l) Define as weak alias.
* wctype/wctype_l.c (wctype_l) Define as weak alias.

22 years ago* include/rpc/auth.h: Use libc_hidden_proto for getnetname,
Roland McGrath [Tue, 6 Aug 2002 06:09:28 +0000 (06:09 +0000)]
* include/rpc/auth.h: Use libc_hidden_proto for getnetname,

netname2user, host2netname, user2netname, key_gendes.
* sunrpc/netname.c: Add libc_hidden_def.
* sunrpc/key_call.c: Likewise.

* include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
freeaddrinfo.
* inet/getnameinfo.c: Add libc_hidden_def.
* sysdeps/generic/getaddrinfo.c: Likewise.
* sysdeps/posix/getaddrinfo.c: Likewise.

* include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
* wcsmbs/wmemchr.c: Add libc_hidden_def.
* wcsmbs/wmemset.c: Add libc_hidden_def.

* include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
(index, rindex): Define as macros for strchr, strrchr.

* string/envz.c (envz_strip): index -> strchr

* include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
* sunrpc/rpc_prot.c: Add libc_hidden_def.

* include/wchar.h: Use libc_hidden_proto for mbrtowc.
* wcsmbs/mbrtowc.c: Add libc_hidden_weak.

22 years ago* include/stdlib.h: Use libc_hidden_proto for wctomb.
Roland McGrath [Tue, 6 Aug 2002 05:10:45 +0000 (05:10 +0000)]
* include/stdlib.h: Use libc_hidden_proto for wctomb.

* stdlib/wctomb.c: Add libc_hidden_def.

* include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
* resolv/herror.c: Likewise.
* inet/rcmd.c: Add libc_hidden_def.
* inet/ruserpass.c: Likewise.
* inet/getnetgrent_r.c: Likewise.

* include/rpc/auth.h: Use libc_hidden_proto for getnetname,
netname2user, host2netname, user2netname.
* sunrpc/netname.c: Add libc_hidden_def.

* include/rpc/svc.h: Use libc_hidden_proto for svc_register,
svc_unregister, remove *_internal decls.  Use libc_hidden_proto
for svcerr_auth, svcerr_noprog, svcerr_progvers.
* sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
libc_hidden_def.
(svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
* sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.

22 years ago* sysdeps/posix/system.c (do_system): New function, guts broken out of
Roland McGrath [Tue, 6 Aug 2002 04:30:03 +0000 (04:30 +0000)]
* sysdeps/posix/system.c (do_system): New function, guts broken out of

__libc_system.
(__libc_system): Call it, putting just the line == NULL test here.

* include/libc-symbols.h (__hidden_proto): Add extern keywords so
variables work right.

* elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
* elf/dl-close.c (_dl_close): Likewise.

* include/netinet/in.h: Use libc_hidden_proto for bindresvport,
in6addr_any, in6addr_loopback.  Remove decls for
bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
* sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
* sunrpc/svc_tcp.c (svctcp_create): Likewise.
* sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
* sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
* inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
* sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
in6addr_loopback.
* inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.

* include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
ether_aton_r.
* inet/ether_aton_r.c: Add libc_hidden_def.
* inet/ether_ntoa_r.c: Likewise.

* include/rpc/auth.h: Use libc_hidden_proto for getnetname,
netname2user, host2netname.
* sunrpc/netname.c: Add libc_hidden_def.

* include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
rexec_af, rresvport_af, ruserok_af.
* inet/rcmd.c: Add libc_hidden_def.
* inet/getnetgrent_r.c: Likewise.

22 years ago* include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
Roland McGrath [Tue, 6 Aug 2002 01:23:32 +0000 (01:23 +0000)]
* include/rpc/svc.h: Use libc_hidden_proto for xprt_register,

xprt_unregister.
* sunrpc/svc.c: Add libc_hidden_def.
* include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
pmap_set, pmap_unset.
* sunrpc/pmap_clnt.c: Add libc_hidden_def.
* sunrpc/pm_getport.c: Likewise.
* include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
* sunrpc/publickey.c: Add libc_hidden_def.

22 years ago2002-08-05 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 6 Aug 2002 01:23:20 +0000 (01:23 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

* include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
xprt_unregister.
* sunrpc/svc.c: Add libc_hidden_def.
* include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
pmap_set, pmap_unset.
* sunrpc/pmap_clnt.c: Add libc_hidden_def.
* sunrpc/pm_getport.c: Likewise.
* include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
* sunrpc/publickey.c: Add libc_hidden_def.

22 years agoUpdate.
Ulrich Drepper [Tue, 6 Aug 2002 01:00:59 +0000 (01:00 +0000)]
Update.

2002-08-05  Ulrich Drepper  <drepper@redhat.com>

* elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
the other memset call in this function.

* sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
at correct index.  Clear BSS region now that memalign is used.

* include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
wcspbrk): Add libc_hidden_proto.
* time/strftime.c (my_strftime): Add libc_hidden_def.
(strftime): Remove libc_hidden_def.
* wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
* wcsmbs/wcspbrk.c (wcspbrk): Likewise.
* wcsmbs/wcsspn.c (wcsspn): Likewise.
* wcsmbs/wcscmp.c (wcscmp): Likewise.
* wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
* wcsmbs/wcscoll.c (wcscoll): Likewise.

* include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
__rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
__rpc_thread_createerr): Add libc_hidden_proto.
* sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
__rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
__rpc_thread_createerr): Add libc_hidden_def.

* include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
* sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
clnt_perror, clnt_sperror): Add libc_hidden_def.
* sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.

* include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
libc_hidden_proto.
* sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
* sunrpc/des_soft.c (des_setparity): Likewise.

* include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
Add libc_hidden_proto.
* sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
Add libc_hidden_def.

22 years ago(_dl_allocate_tls_init): Store dtv pointer at correct index. Clear BSS region now...
Ulrich Drepper [Tue, 6 Aug 2002 00:51:51 +0000 (00:51 +0000)]
(_dl_allocate_tls_init): Store dtv pointer at correct index.  Clear BSS region now that memalign is used.

22 years ago* include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
Roland McGrath [Mon, 5 Aug 2002 22:47:19 +0000 (22:47 +0000)]
* include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.

* sysdeps/generic/uname.c: Add libc_hidden_def.
* sysdeps/mach/hurd/uname.c: Likewise.

22 years ago2002-08-05 Jakub Jelinek <jakub@redhat.com>
Roland McGrath [Mon, 5 Aug 2002 22:11:14 +0000 (22:11 +0000)]
2002-08-05  Jakub Jelinek  <jakub@redhat.com>

        * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
        wcspbrk): Add libc_hidden_proto.
        * time/strftime.c (my_strftime): Add libc_hidden_def.
        (strftime): Remove libc_hidden_def.
        * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
        * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
        * wcsmbs/wcsspn.c (wcsspn): Likewise.
        * wcsmbs/wcscmp.c (wcscmp): Likewise.
        * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
        * wcsmbs/wcscoll.c (wcscoll): Likewise.

        * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
        __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
        __rpc_thread_createerr): Add libc_hidden_proto.
        * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
        __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
        __rpc_thread_createerr): Add libc_hidden_def.

        * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
        clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
        * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
        clnt_perror, clnt_sperror): Add libc_hidden_def.
        * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.

        * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
        libc_hidden_proto.
        * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
        * sunrpc/des_soft.c (des_setparity): Likewise.

        * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
        Add libc_hidden_proto.
        * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
        Add libc_hidden_def.

22 years ago* sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
Roland McGrath [Mon, 5 Aug 2002 18:56:19 +0000 (18:56 +0000)]
* sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member

`bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
* elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
* sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
old data, abandoning the original memory allocated by rtld at startup,
instead of calling realloc normally.

22 years ago2002-08-05 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 5 Aug 2002 18:56:03 +0000 (18:56 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
`bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
* elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
* sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
old data, abandoning the original memory allocated by rtld at startup,
instead of calling realloc normally.

22 years agoUpdate.
Ulrich Drepper [Mon, 5 Aug 2002 17:30:31 +0000 (17:30 +0000)]
Update.

2002-08-05  Ulrich Drepper  <drepper@redhat.com>

* po/fr.po: Update from translation team.

22 years agoUpdate from translation team.
Ulrich Drepper [Mon, 5 Aug 2002 16:56:10 +0000 (16:56 +0000)]
Update from translation team.

22 years ago* sysdeps/unix/make-syscalls.sh: If the syscall name field is -
Roland McGrath [Mon, 5 Aug 2002 06:58:03 +0000 (06:58 +0000)]
* sysdeps/unix/make-syscalls.sh: If the syscall name field is -

then generate a dummy module under the given name, obeying the
normal rules for the "caller" field.

22 years ago* sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
Roland McGrath [Mon, 5 Aug 2002 06:38:00 +0000 (06:38 +0000)]
* sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop

actually iterate over the elements.  Fix typo p_type -> p_vaddr.

* include/pthread.h: Don't declare __pthread_initialize_minimal as
weak here; we declare it weak or strong in the one place we use it.
* sysdeps/generic/libc-start.c: ... which is here.
Don't make the decl weak if [USE_TLS], since static programs need TLS
setup even when single-threaded.

22 years ago* stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
Roland McGrath [Mon, 5 Aug 2002 04:59:44 +0000 (04:59 +0000)]
* stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.

22 years ago* elf/Makefile (test-srcs): Add $(modules-names) to it.
Roland McGrath [Mon, 5 Aug 2002 04:58:18 +0000 (04:58 +0000)]
* elf/Makefile (test-srcs): Add $(modules-names) to it.

(CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
all these variables.

22 years ago2002-08-04 Roland McGrath <roland@frob.com>
Roland McGrath [Mon, 5 Aug 2002 04:58:03 +0000 (04:58 +0000)]
2002-08-04  Roland McGrath  <roland@frob.com>

* elf/Makefile (test-srcs): Add $(modules-names) to it.
(CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
all these variables.

22 years agoUpdate.
Ulrich Drepper [Mon, 5 Aug 2002 03:28:59 +0000 (03:28 +0000)]
Update.

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

* include/stdio.h: Don't define macro magic to redirect function
calls if _ISOMAC is defined.

* sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
ldouble asin tests.

22 years agoDon't define macro magic to redirect function calls if _ISOMAC is defined.
Ulrich Drepper [Mon, 5 Aug 2002 02:21:23 +0000 (02:21 +0000)]
Don't define macro magic to redirect function calls if _ISOMAC is defined.

22 years ago* stdlib/lrand48_r.c: Add libc_hidden_def.
Roland McGrath [Mon, 5 Aug 2002 02:19:15 +0000 (02:19 +0000)]
* stdlib/lrand48_r.c: Add libc_hidden_def.

* sysdeps/unix/sysv/irix4/setpriority.c: Likewise.

22 years agoAdd epsilons for inlined ldouble asin tests.
Ulrich Drepper [Mon, 5 Aug 2002 02:19:08 +0000 (02:19 +0000)]
Add epsilons for inlined ldouble asin tests.

22 years ago2002-08-04 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 5 Aug 2002 02:18:42 +0000 (02:18 +0000)]
2002-08-04  Roland McGrath  <roland@redhat.com>

* stdlib/lrand48_r.c: Add libc_hidden_def.

22 years ago(_dl_deallocate_tls): Free it with free instead of munmap.
Roland McGrath [Mon, 5 Aug 2002 01:30:42 +0000 (01:30 +0000)]
(_dl_deallocate_tls): Free it with free instead of munmap.

22 years ago* sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
Roland McGrath [Mon, 5 Aug 2002 01:28:17 +0000 (01:28 +0000)]
* sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the

TCB with __libc_memalign instead of mmap.
(_dl_deallocate_tls): Free it with free instad of munmap.

22 years ago* Makerules (cpp-srcs-left): When setting this to run
Roland McGrath [Mon, 5 Aug 2002 01:21:25 +0000 (01:21 +0000)]
* Makerules (cpp-srcs-left): When setting this to run

cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
words.  Combine the two loops into one on the concatenated list,
including those as well as $(test-srcs).

* elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
since we align here with optimally minimal waste anyway.
(malloc): Just call that.

* sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
the right variable.

* elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
to compute memory location for l_tls_initimage.
* elf/rtld.c (_dl_start): Likewise.
* sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.

* libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
because the .d file is generated in the non-shared case and
so fails to catch them otherwise.

* sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
split out of _dl_allocate_tls.
(_dl_allocate_tls_init): Likewise.
(_dl_allocate_tls): Call those.
* sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
* elf/rtld.c (dl_main): Call them separately instead of calling
_dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
is finished, so that the initializer data has been relocated before we
copy it into the main thread's TLS block.

* sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
loop conditions, prevented the last used module from being initialized.

22 years ago2002-08-04 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 5 Aug 2002 01:20:52 +0000 (01:20 +0000)]
2002-08-04  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
split out of _dl_allocate_tls.
(_dl_allocate_tls_init): Likewise.
(_dl_allocate_tls): Call those.
* sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
* elf/rtld.c (dl_main): Call them separately instead of calling
_dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
is finished, so that the initializer data has been relocated before we
copy it into the main thread's TLS block.
* sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
loop conditions, prevented the last used module from being initialized.

22 years agoUpdate.
Ulrich Drepper [Mon, 5 Aug 2002 00:43:00 +0000 (00:43 +0000)]
Update.

2002-08-04  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
if glob resp. globfree are not macros.
* sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
* sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
Add libc_hidden_ver.
* sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
libc_hidden_def.
* sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
instead of libc_hidden_weak.
* sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
libc_hidden_ver instead of libc_hidden_def.
* sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
libc_hidden_ver instead of libc_hidden_def.
(wcstoll, wcstoq): Remove libc_hidden_weak.
* sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
libc_hidden_ver.
* sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
libc_hidden_ver.
* sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
libc_hidden_ver.
* sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
libc_hidden_ver.

22 years agoUpdate.
Ulrich Drepper [Sun, 4 Aug 2002 23:32:14 +0000 (23:32 +0000)]
Update.

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

* stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
to access _sys_siglist.
* string/strsignal.c: Likewise.
* sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
* sysdeps/gnu/siglist.c: Likewise.
* sysdeps/unix/siglist.c: Likewise.
* sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.

* libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.

* libio/wfileops.c: Add missing INTUSE for _IO_file_close.

* intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
alias and use it.
* intl/bindtextdom.c: Use _nl_default_dirname_internal.

* include/netinet/in.h: Add declaration of in6addr_loopback_internal.
* inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
* sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.

* include/time.h: Add libc_hidden_proto for __gmtime_r.
* time/gmtime.c (__gmtime_r): Add libc_hidden_def.

* iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
and __gconv_get_cache respectively.
* iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
defined static.  Change all users.
(__gconv_get_cache): New function.
* iconv/gconv_db.c (__gconv_get_modules_db): New function.
(__gconv_get_alias_db): New function.
* iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
(__conv_modules_db): Likewise.
Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
and __gconv_get_alias_db.
* iconv/iconv_prog.c: Use the new functions instead of accessing the
variables.

* include/stdlib.h: Add prototype and libc_hidden_proto for
__default_morecore.
* sysdeps/generic/morecore.c: Include <stdlib.h>.

* malloc/obstack.c: Remove fputs macro.

* malloc/mtrace.c: Remove fopen macro.

22 years agoUpdate.
Ulrich Drepper [Sun, 4 Aug 2002 20:54:20 +0000 (20:54 +0000)]
Update.

2002-08-04  Jakub Jelinek  <jakub@redhat.com>

* manual/debug.texi: Fix spelling to programmatically.
Reported by <hayastan132@hotmail.com>.

* include/libio.h: Add libc_hidden_proto for __uflow.
* include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
fgetpos to _IO_* names.
Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
* include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
putwc_unlocked, vswscanf.
* libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
* libio/fileno.c: Use <stdio.h> and libc_hidden_def.
* libio/fseek.c: Likewise.
* libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
not fopencookie.
* libio/genops.c (__uflow): Add libc_hidden_def.
* libio/iofflush_u.c (fflush_unlocked): Likewise.
* libio/iofgets_u.c (fgets_unlocked): Likewise.
* libio/iofputs_u.c (fputs_unlocked): Likewise.
* libio/iofputws_u.c (fputws_unlocked): Likewise.
* libio/iofread_u.c (fread_unlocked): Likewise.
* libio/iofwrite_u.c (fwrite_unlocked): Likewise.
* libio/iovswscanf.c (vswscanf): Likewise.
* libio/putwc_u.c (putwc_unlocked): Likewise.
* libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
* malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
* malloc/mtrace.c: Likewise.

* sunrpc/clnt_perr.c: Remove fputs macro.
* sunrpc/svc_simple.c: Likewise.
* sunrpc/svc_tcp.c: Likewise.
* sunrpc/svc_udp.c: Likewise.
* sunrpc/xdr_rec.c: Likewise.
* sunrpc/xdr_ref.c: Likewise.

* iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
iconv_prog, linereader, and charmap-dir.
* locale/Makefile: Likewise for locale and charmap-dir.
* malloc/Makefile: Likewise for memusagestat.
* nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
* sunrpc/Makefile: Likewise for rpc_main.
* sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
* timezone/Makefile: Likewise for zic.

* stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.

22 years agoUpdate.
Ulrich Drepper [Sun, 4 Aug 2002 09:27:27 +0000 (09:27 +0000)]
Update.

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

* elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
* elf/dl-close.c (_dl_close): Add libc_hidden_def.
* elf/dl-open.c (_dl_open): Add libc_hidden_def.
* include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
_dl_close.

* include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
__wunderflow.
* libio/genops.c (__underflow): Add libc_hidden_def.
* libio/wgenops.c (__wuflow): Likewise.
(__wunderflow): Likewise.

* include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
* malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.

* include/stdio.h: Add libc_hidden_proto for __vfscanf.
* stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.

* include/string.h: Add libc_hidden_proto for __strverscmp.
* string/strverscmp.c (__strverscmp): Add libc_hidden_def.

* include/unistd.h: Add libc_hidden_proto for __sysconf.
* sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
* sysdeps/posix/sysconf.c: Likewise.
* sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
* sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.

* include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
__iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
__iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
__iswxdigit_l, __towlower_l, __towupper_l.
* wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
* wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.

* include/sys/wait.h: Add libc_hidden_proto for __xmknod.
* sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
* sysdeps/mach/hurd/xmknod.c: Likewise.
* sysdeps/unix/xmknod.c: Likewise.
* sysdeps/unix/sysv/linux/xmknod.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
* sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.

* sunrpc/svc.c: Add missing INTUSE for _authenticate.

22 years agoAdd libc_hidden_def.
Ulrich Drepper [Sun, 4 Aug 2002 09:05:47 +0000 (09:05 +0000)]
Add libc_hidden_def.

22 years ago* include/sys/resource.h: Use libc_hidden_proto for getpriority,
Roland McGrath [Sun, 4 Aug 2002 03:50:21 +0000 (03:50 +0000)]
* include/sys/resource.h: Use libc_hidden_proto for getpriority,

setpriority.
* sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
* sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
* sysdeps/mach/hurd/setpriority.c: Likewise.
* sysdeps/mach/hurd/getpriority.c: Likewise.
* sysdeps/generic/setpriority.c: Likewise.
* sysdeps/generic/getpriority.c: Likewise.

* include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
* malloc/mcheck.c: Add libc_hidden_def.

* include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
* misc/hsearch_r.c: Add libc_hidden_def.

* include/fnmatch.h: Use libc_hidden_proto for fnmatch.
* posix/fnmatch.c: Add libc_hidden_weak.

22 years ago* include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
Roland McGrath [Sun, 4 Aug 2002 03:30:56 +0000 (03:30 +0000)]
* include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,

execl, execle, execlp, execvp, getpid, getsid.
* sysdeps/generic/alarm.c: Add libc_hidden_def.
* sysdeps/unix/alarm.c: Likewise.
* posix/confstr.c: Likewise.
* posix/execvp.c: Likewise.
* posix/execlp.c: Likewise.
* posix/execle.c: Likewise.
* posix/execl.c: Likewise.
* sysdeps/generic/getsid.c: Likewise.
* sysdeps/mach/hurd/getsid.c: Likewise.
* sysdeps/generic/getpid.c: Add libc_hidden_weak.
* sysdeps/mach/hurd/getpid.c: Likewise.

* include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
qecvt_r, qfcvt_r, lrand48_r.
* misc/efgcvt_r.c: Add libc_hidden_def.

* include/wordexp.h: Use libc_hidden_proto for wordfree.
* sysdeps/generic/wordexp.c: Add libc_hidden_def.

* include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
* locale/nl_langinfo.c: Add libc_hidden_def.

* include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
* sysdeps/generic/glob.c: Add libc_hidden_def.
* sysdeps/generic/glob64.c: Likewise.
* sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.

22 years ago2002-08-02 Roland McGrath <roland@redhat.com>
Roland McGrath [Sun, 4 Aug 2002 03:25:12 +0000 (03:25 +0000)]
2002-08-02  Roland McGrath  <roland@redhat.com>

* sysdeps/pthread/bits/libc-tsd.h (enum __libc_tsd_key_t):
Add _LIBC_TSD_KEY_LOCALE.
* manager.c (pthread_start_thread) [!(USE_TLS && HAVE___THREAD)]:
Call __uselocale to initialize our per-thread locale pointer to
the global one.
* pthread.c (__pthread_initialize_minimal): Likewise.

22 years agoUpdate.
Ulrich Drepper [Sun, 4 Aug 2002 03:18:18 +0000 (03:18 +0000)]
Update.

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

* sysdeps/pthread/bits/libc-tsd.h: Add _LIBC_TSD_KEY_LOCALE.

22 years agoAdd _LIBC_TSD_KEY_LOCALE.
Ulrich Drepper [Sun, 4 Aug 2002 03:17:32 +0000 (03:17 +0000)]
Add _LIBC_TSD_KEY_LOCALE.

22 years ago* locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
Roland McGrath [Sun, 4 Aug 2002 02:32:32 +0000 (02:32 +0000)]
* locale/nl_langinfo.c: Use _NL_CURRENT_DATA.

* elf/Makefile (CFLAGS-vismod2.c): New variable.

22 years ago* locale/setlocale.c (_nl_current_names): Variable moved ...
Roland McGrath [Sun, 4 Aug 2002 01:41:55 +0000 (01:41 +0000)]
* locale/setlocale.c (_nl_current_names): Variable moved ...

* locale/localename.c (_nl_current_names): ... here, new file.
Make it global, with attribute_hidden.
* locale/localeinfo.h: Declare it.
* locale/Makefile (aux): Add localename.
* locale/localename.c (__current_locale_name): New function.
* include/locale.h (__current_locale_name): Declare it.
* intl/dcigettext.c (guess_category_value): Use that instead of
calling setlocale.

* locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
[__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
[__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
* locale/newlocale.c: Add alias to __ name.
* locale/duplocale.c: Likewise.
* locale/freelocale.c: Likewise.
* locale/uselocale.c: New file.
* locale/Makefile (routines): Add it.
* locale/Versions (libc: GLIBC_2.3): New set.
Add newlocale, duplocale, freelocale, uselocale.
(libc: GLIBC_PRIVATE): Add __uselocale.

* locale/localeinfo.h [SHARED]
(_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
(_NL_CURRENT_DATA): Define using that.
(_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
(_NL_CURRENT_DEFINE): Define to empty.
[! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
conditionalized on this.
* locale/xlocale.c (NL_C_INTIIALIZER): New macro,
taking initializer of _nl_C_locobj.
[SHARED] (_nl_global_locale): New variable, using that initializer.
(_nl_C_locobj): Use new macro for initialzier.
* locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
[! SHARED] (CATEGORY_USED): New macro.
[SHARED] (CATEGORY_USED, _nl_C): New macros.
(setdata, setlocale): Use that macro instead of examining _nl_current.
(setdata): Set the slot in _nl_global_locale.
Conditionalize setting of _nl_current on [! SHARED].
* locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
declaration as an extern.
* locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.

* include/locale.h: Use libc_hidden_proto for setlocale.
* locale/setlocale.c: Add libc_hidden_def.

* locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.

22 years ago* include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
Roland McGrath [Sun, 4 Aug 2002 01:29:29 +0000 (01:29 +0000)]
* include/search.h: Use libc_hidden_proto for hsearch_r, lfind.

* misc/hsearch_r.c: Add libc_hidden_def.
* misc/lsearch.c: Likewise.

* include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
endttyent.
* misc/getttyent.c: Add libc_hidden_def.

* include/mcheck.h: Use libc_hidden_proto for mcheck.
* malloc/mcheck.c: Add libc_hidden_def.

* include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
* include/argz.h: Use libc_hidden_proto for argz_delete.
* string/argz-delete.c: Add libc_hidden_def.
* string/envz.c: Likewise.  Use <envz.h>, not "envz.h".

* sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
HIDDEN_JUMPTARGET for _exit.
* sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
* sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
* sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
* sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.

* include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
[__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
[__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
* sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.

* include/stdlib.h: Use libc_hidden_proto for abort,
__strtof_internal, __strtod_internal, __strtold_internal,
__strtol_internal, __strtoll_internal, __strtoul_internal,
__strtoull_internal. __strtof_l_internal, __strtod_l_internal,
__strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
__strtoul_l_internal, __strtoull_l_internal.
* include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
__wcstod_internal, __wcstold_internal, __wcstol_internal,
__wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
__wcsncasecmp_l.
* sysdeps/generic/abort.c: Add libc_hidden_def.
* stdlib/strtod.c: Likewise.
* sysdeps/generic/strtol.c: Likewise.
* sysdeps/wordsize-64/strtol.c: Likewise.
* sysdeps/wordsize-64/wcstol.c: Likewise.
* sysdeps/wordsize-64/wcstol_l.c: Likewise.

22 years ago2002-08-03 Roland McGrath <roland@redhat.com>
Roland McGrath [Sun, 4 Aug 2002 01:28:11 +0000 (01:28 +0000)]
2002-08-03  Roland McGrath  <roland@redhat.com>

* sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
HIDDEN_JUMPTARGET for _exit.
* sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
* sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
* sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
* sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.

22 years agoUpdate.
Ulrich Drepper [Sun, 4 Aug 2002 01:28:09 +0000 (01:28 +0000)]
Update.

* include/string.h: Use libc_hidden_proto for __stpcpy.
* sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
* sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
* sysdeps/generic/stpcpy.c: Likewise.
* sysdeps/i386/stpcpy.S: Likewise.
* sysdeps/i386/i586/stpcpy.S: Likewise.
* sysdeps/powerpc/stpcpy.S: Likewise.
* sysdeps/sparc/sparc32/stpcpy.S: Likewise.
* sysdeps/sparc/sparc64/stpcpy.S: Likewise.

22 years ago2002-08-03 Roland McGrath <roland@redhat.com>
Roland McGrath [Sun, 4 Aug 2002 01:28:06 +0000 (01:28 +0000)]
2002-08-03  Roland McGrath  <roland@redhat.com>

* include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
* include/argz.h: Use libc_hidden_proto for argz_delete.
* string/argz-delete.c: Add libc_hidden_def.
* string/envz.c: Likewise.  Use <envz.h>, not "envz.h".

22 years ago2002-08-03 Roland McGrath <roland@redhat.com>
Roland McGrath [Sun, 4 Aug 2002 01:28:04 +0000 (01:28 +0000)]
2002-08-03  Roland McGrath  <roland@redhat.com>

* include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
[__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
[__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
* sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.

22 years ago(__stpcpy): Add libc_hidden_def.
Ulrich Drepper [Sun, 4 Aug 2002 01:22:11 +0000 (01:22 +0000)]
(__stpcpy): Add libc_hidden_def.

22 years ago* sysdeps/posix/raise.c: Likewise.
Roland McGrath [Sat, 3 Aug 2002 22:46:42 +0000 (22:46 +0000)]
* sysdeps/posix/raise.c: Likewise.

* sysdeps/generic/raise.c: Likewise.

22 years ago* include/stdlib.h: Use libc_hidden_proto for qsort.
Roland McGrath [Sat, 3 Aug 2002 22:26:33 +0000 (22:26 +0000)]
* include/stdlib.h: Use libc_hidden_proto for qsort.

* stdlib/msort.c: Add libc_hidden_def.

* include/utime.h: Use libc_hidden_proto for utime.
* sysdeps/generic/utime.c: Add libc_hidden_def.
* sysdeps/unix/utime.c: Likewise.

* sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
* sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
* sysdeps/posix/sprofil.c (__sprofil): Likewise.
* shadow/lckpwdf.c (__lckpwdf): Likewise (both).
* sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember

* include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
and __libc_current_sigrtmax.
* signal/sigismem.c: Add libc_hidden_def.
* signal/sigfillset.c: Likewise.
* signal/sigempty.c: Likewise.
* sysdeps/generic/sigpause.c (__sigpause): Likewise.
* sysdeps/posix/sigpause.c (__sigpause): Likewise.
* sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.

22 years ago2002-08-03 Roland McGrath <roland@redhat.com>
Roland McGrath [Sat, 3 Aug 2002 22:26:02 +0000 (22:26 +0000)]
2002-08-03  Roland McGrath  <roland@redhat.com>

* include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
and __libc_current_sigrtmax.
* signal/sigismem.c: Add libc_hidden_def.
* signal/sigfillset.c: Likewise.
* signal/sigempty.c: Likewise.
* sysdeps/generic/sigpause.c (__sigpause): Likewise.
* sysdeps/posix/sigpause.c (__sigpause): Likewise.
* sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.

22 years agoUpdate.
Ulrich Drepper [Sat, 3 Aug 2002 21:19:56 +0000 (21:19 +0000)]
Update.

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

* include/string.h: Use libc_hidden_proto for __strcasecmp_l,
__strncasecmp_l, __strdup, __strndup, __strerror_r.
* sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
libc_hidden_def.
* string/strdup.c (__strdup): Likewise.
* string/strndup.c (__strndup): Likewise.
* sysdeps/generic/_strerror.c (__strerror_r): Likewise.
* sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.

22 years agoUpdate.
Ulrich Drepper [Sat, 3 Aug 2002 19:46:32 +0000 (19:46 +0000)]
Update.

* include/libio.h: New file.
* libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
* libio/iolibio.h: #include <libio.h>, not "libio.h".
* sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
* sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
* sysdeps/unix/common/syscalls.list: Likewise.
* sysdeps/unix/inet/syscalls.list: Likewise.
* sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/syscalls.list: Likewise.
* sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
* sysdeps/unix/syscalls.list: Likewise.

2002-08-03  Jakub Jelinek  <jakub@redhat.com>
the arguments is big enough to cause an overflow.

22 years agoUpdate.
Ulrich Drepper [Sat, 3 Aug 2002 18:59:41 +0000 (18:59 +0000)]
Update.

2002-08-03  Jakub Jelinek  <jakub@redhat.com>
    Ulrich Drepper  <drepper@redhat.com>

* malloc/malloc.c (public_cALLOc): Only divide if at least one of
arguments is big enough to cause an overflow.

22 years agoUpdate.
Ulrich Drepper [Sat, 3 Aug 2002 18:43:13 +0000 (18:43 +0000)]
Update.

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

* assert/assert.c: Use hidden_def not INTDEF.

2002-08-03  Jakub Jelinek  <jakub@redhat.com>

* include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
not defined.

22 years agoOptimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is not defined.
Ulrich Drepper [Sat, 3 Aug 2002 18:40:18 +0000 (18:40 +0000)]
Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is not defined.

22 years ago* include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
Roland McGrath [Sat, 3 Aug 2002 12:59:33 +0000 (12:59 +0000)]
* include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.

* include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
verr, verrx.
* include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
* misc/syslog.c: Add libc_hidden_def.
* misc/err.c: Likewise.
* stdlib/exit.c: Likewise.
* stdlib/bsearch.c: Likewise.
* sysdeps/generic/getenv.c: Likewise.

22 years ago* include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
Roland McGrath [Sat, 3 Aug 2002 12:09:37 +0000 (12:09 +0000)]
* include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].

* sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
libc_hidden_weak for every system call symbol defined.

* include/time.h: Use libc_hidden_proto for time, asctime, mktime,
timelocal, localtime, strftime.
* time/asctime.c: Add libc_hidden_def.
* time/mktime.c: Likewise.
* time/localtime.c: Likewise.
* time/strftime.c: Likewise.
* time/strptime.c: Likewise.
* sysdeps/generic/time.c: Likewise.
* sysdeps/unix/time.c: Likewise.
* sysdeps/unix/sysv/i386/time.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.

* include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
inet_makeaddr, inet_netof, inet_addr, __inet_addr.
* resolv/inet_ntop.c: Likewise.
* resolv/inet_pton.c: Likewise.
* inet/inet_mkadr.c: Add libc_hidden_def.
* inet/inet_netof.c: Likewise.
* resolv/inet_addr.c: Likewise.

* include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
clauses from conditionals for now.  Will have to be fixed later
for older compilers.

22 years ago* sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
Roland McGrath [Sat, 3 Aug 2002 08:42:47 +0000 (08:42 +0000)]
* sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.

* include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
* sunrpc/rpc_thread.c: Define it without static.

22 years ago2002-08-03 Roland McGrath <roland@redhat.com>
Roland McGrath [Sat, 3 Aug 2002 08:42:02 +0000 (08:42 +0000)]
2002-08-03  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.

22 years agoUpdate.
Ulrich Drepper [Sat, 3 Aug 2002 07:02:10 +0000 (07:02 +0000)]
Update.

2002-08-02  Ulrich Drepper  <drepper@redhat.com>

* configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
broken alias attribute handling.
* config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.

* assert/assert.c (__assert_fail): Fix typo in comment.

* include/rpc/rpc.h: Declare __libc_tsd_RPC_VARS if USE_TLS &&
HAVE___THREAD.
* sunrpc/rpc_thread.c: Don't define __libc_tsd_RPC_VARS as static
if USE_TLS && HAVE___THREAD.
* sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.

2002-08-02  Jakub Jelinek  <jakub@redhat.com>

* assert/assert.c (__assert_fail): Remove undef.
Replace INTDEF with libc_hidden_def.
* assert/__assert.c (__assert): Remove INTUSE.
* elf/dl-minimal.c (__assert_fail): Replace INTDEF with
libc_hidden_weak.
* include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
libm_hiden_ver): Define.
* include/assert.h (__assert_fail_internal): Remove.
(__assert_fail): Add prototype.  Add hidden_proto.
* include/libc-internal.h (__libc_freeres, __profile_frequency): Add
libc_hidden_proto.
* include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
(__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
* include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
Add libc_hidden_proto.
* include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
__fcntl): Add libc_hidden_proto.  Remove macros.
(__open_internal, __fcntl_internal): Remove.
* libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
* malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
* nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
libc_hiden_proto.
* nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
libc_hidden_def.
* sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
Add libc_hidden_def.
* sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
* sysdeps/generic/open.c (__open): Remove undef.
Add libc_hidden_def.  Remove INTDEF.
* sysdeps/generic/fcntl.c (__fcntl): Remove undef.
Add libc_hidden_def.
* sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
* sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
* sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
* sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
(__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
(__libc_fcntl): Add libc_hidden_def.
* sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
(__open): Remove INTDEF2.  Add libc_hidden_weak.
(__libc_open): Add libc_hidden_def.
* sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
* sysdeps/standalone/open.c (__open): Add libc_hidden_def.
* sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
Add libc_hidden_def.
* sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
Add libc_hidden_def.
* sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
undef.
(__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
(__libc_fcntl): Add libc_hidden_def.
* sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
__getpgid_internal, __chown_internal): Remove.
(__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
__GI___sched_setscheduler, __GI___select, __GI___setpgid,
__GI___chown): Add.
* sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
__getpid_internal, __open_internal, __write_internal): Remove.
(__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
__GI___chown, __GI___close, __GI___dup2, __GI___getpid,
__GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
__GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
* wcsmbs/mbrlen.c (__mbrlen): Remove undef.
Replace INTDEF with libc_hidden_def.
* wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
* catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
* catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
* elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
* include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
Add libc_hidden_proto.
* include/sys/poll.h (__poll): Add libc_hidden_proto.
* include/sys/select.h (__select): Likewise.
* include/sys/socket.h (__send): Likewise.
* include/sys/statfs.h (__statfs): Likewise.
* include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
__getpid, __getpgid, __setpgid, __close, __read, __write,
__getpagesize, __sbrk): Likewise.
(__chown_internal, __dup2_internal, __getpid_internal,
__getpgid_internal, __close_internal, __write_internal,
__getpagesize_internal): Remove.
(__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
Remove macros.
* include/printf.h (__printf_fp): Add libc_hidden_proto.
* include/sched.h (__sched_setscheduler): Likewise.
* include/resolv.h (__res_ninit, __res_randomid): Likewise.
* include/stdlib.h (__secure_getenv): Likewise.
* include/signal.h (__sigaction, __sigsuspend): Likewise.
* inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
* inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
* inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
* inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
* inet/getnetent_r.c (NSS_attribute_hidden): Remove.
* inet/getproto_r.c (NSS_attribute_hidden): Remove.
* inet/getprtent_r.c (NSS_attribute_hidden): Remove.
* inet/getprtname_r.c (NSS_attribute_hidden): Remove.
* inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
* inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
* inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
* inet/getservent_r.c (NSS_attribute_hidden): Remove.
* inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
* inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
* inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
* inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
* inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
* inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
* libio/genops.c (__overflow): Add libc_hidden_def.
* libio/iovdprintf.c: Remove libio.h include.
* libio/libioP.h (libc_hidden_proto, libc_hidden_def,
libc_hidden_weak): Define to nothing if not defined.
(__overflow, __woverflow): Add libc_hidden_proto.
* libio/wgenops.c (__woverflow): Add libc_hidden_def.
* nss/getXXent_r.c (NSS_attribute_hidden): Remove.
(DB_LOOKUP_FCT): Add libc_hidden_proto.
* nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
(DB_LOOKUP_FCT): Add libc_hidden_proto.
* nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
and libc_hidden_def.
* nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
* posix/bsd-getpgrp.c (__getpgid_internal): Remove.
(__getpgid): Add libc_hidden_proto.
(__bsd_getpgrp): Remove INTUSE.
* resolv/res_init.c (__res_ninit, __res_randomid): Add
libc_hidden_def.
* shadow/getspent_r.c (NSS_attribute_hidden): Remove.
* shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
* stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
* stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
* stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
* sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
__rpc_thread_createerr): Add libc_hidden_def.
* sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
libc_hidden_def.
* sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
* sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
* sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
* sysdeps/generic/chown.c (__chown): Likewise.
* sysdeps/generic/close.c (__close): Likewise.
* sysdeps/generic/dup2.c (__dup2): Likewise.
* sysdeps/generic/pipe.c (__pipe): Likewise.
* sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
* sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
* sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
* sysdeps/generic/read.c (__libc_read): Likewise.
(__read): Add libc_hidden_weak.
* sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
* sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
* sysdeps/generic/select.c (__select): Likewise.
* sysdeps/generic/send.c (__send): Likewise.
* sysdeps/generic/setpgid.c (__setpgid): Likewise.
* sysdeps/generic/sigaction.c (__sigaction): Likewise.
* sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
* sysdeps/generic/statfs.c (__statfs): Likewise.
* sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
* sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
* sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
Remove undef and INTDEF.
* sysdeps/generic/getpgid.c (__getpgid): Likewise.
* sysdeps/generic/getpid.c (__getpid): Likewise.
* sysdeps/generic/write.c (__libc_write): Likewise.
(__write): Add libc_hidden_weak.  Remove undef and INTDEF.
* sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
* sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
* sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
* sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
* sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
Remove undef and INTDEF.
* sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
* sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
* sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
* sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
* sysdeps/mach/hurd/write.c (__libc_write): Likewise.
(__write): Add libc_hidden_weak.  Remove undef and INTDEF.
* sysdeps/mach/hurd/pipe.c: Include unistd.h.
(__pipe): Add libc_hidden_def.
* sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
libc_hidden_weak.
* sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
* sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
* sysdeps/mach/hurd/read.c (__libc_read): Likewise.
(__read): Add libc_hidden_weak.
* sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
(__libc_pwrite64): Add libc_hidden_def.
* sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
* sysdeps/mach/hurd/select.c (__select): Likewise.
* sysdeps/mach/hurd/send.c (__send): Likewise.
* sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
* sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
* sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
* sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
* sysdeps/posix/dup2.c: Likewise.
Remove undef and INTDEF.
* sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
* sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
(__pwrite64): Add libc_hidden_weak.
* sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
* sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
* sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
* sysdeps/standalone/close.c (__close): Likewise.
* sysdeps/standalone/write.c (__libc_write): Likewise.
(__write): Add libc_hidden_weak.
* sysdeps/standalone/read.c (__read): Likewise.
(__libc_read): Add libc_hidden_def.
* sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
* sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
* sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
* sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
* sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
* sysdeps/unix/bsd/poll.c (__poll): Likewise.
* sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
* sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
* sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
__GI___sigaction): Add.
* sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
* sysdeps/unix/inet/syscalls.list (__GI___send): Add.
* sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
* sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
* sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
__GI___setpgid): Add.
* sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
Remove undef and INTDEF.
* sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
* sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
* sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
* sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
* sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
* sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
* sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
* sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
* sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
* sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
* sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
* sysdeps/unix/sysv/aix/select.c (__select): Likewise.
* sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
* sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
* sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
__GI___statfs, __GI___send): Add.
* sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
libc_hidden_ver resp. libc_hidden_def.
* sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
libc_hidden_def.
* sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
Likewise.  Remove undef and INTDEF.
* sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
* sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
__GI___statfs, __GI___send): Add.
* sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
libc_hidden_def.
* sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
Likewise.
* sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
* sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
libc_hidden_ver resp. libc_hidden_def.
* sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
__GI___send): Add.
* sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
Add libc_hidden_weak.
* sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
Add libc_hidden_def.
* sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
* sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
libc_hidden_weak.
* sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
resp. libc_hidden_def.
* sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
libc_hidden_weak.
* sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
INTDEF.
* sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
Likewise.  Remove undef.
* sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
libc_hidden_weak.
* sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
* sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
libc_hidden_weak.
* sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
libc_hidden_def.
* sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
Likewise.  Remove undef and INTDEF.
* sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
libc_hidden_def.
* sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
libc_hidden_weak.
* sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
libc_hidden_def.
* sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
(__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
* sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
libc_hidden_weak.
* sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
Add libc_hidden_def.
* sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
__GI___statfs): Add.
* sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
libc_hidden_weak.
* sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
* sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
Remove undef and INTDEF.
* sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
* sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
libc_hidden_def.
* sysdeps/unix/sysv/linux/send.S (__send): Likewise.
* sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
libc_hidden_weak.
* sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
libc_hidden_def.
* sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
* sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
* sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
Add.
* sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
libc_hidden_def.  Remove undef and INTDEF.
* sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
* sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
libc_hidden_def.
* sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
* sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
* sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
* sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
Remove undef and INTDEF.
* configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
broken visibility attribute handling.
* config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.

2002-08-02  Ulrich Drepper  <drepper@redhat.com>

22 years ago(HAVE_BROKEN_ALIAS_ATTRIBUTE): Add. (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
Ulrich Drepper [Sat, 3 Aug 2002 06:06:26 +0000 (06:06 +0000)]
(HAVE_BROKEN_ALIAS_ATTRIBUTE): Add. (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.

22 years ago* sunrpc/rpc_thread.c: Define it without static.
Roland McGrath [Sat, 3 Aug 2002 05:56:37 +0000 (05:56 +0000)]
* sunrpc/rpc_thread.c: Define it without static.

22 years ago2002-08-02 Roland McGrath <roland@redhat.com>
Roland McGrath [Sat, 3 Aug 2002 05:54:35 +0000 (05:54 +0000)]
2002-08-02  Roland McGrath  <roland@redhat.com>

* sysdeps/i386/tls.h (TLS_DO_SET_THREAD_AREA): Add missing \s.

22 years agoUpdate.
Ulrich Drepper [Sat, 3 Aug 2002 05:51:04 +0000 (05:51 +0000)]
Update.

* pthread.c: Declare _errno, _h_errno, and _res unless we use TLS
internally.

22 years agoDeclare _errno, _h_errno, and _res unless we use TLS internally.
Ulrich Drepper [Sat, 3 Aug 2002 05:47:52 +0000 (05:47 +0000)]
Declare _errno, _h_errno, and _res unless we use TLS internally.

22 years ago2002-08-02 Roland McGrath <roland@redhat.com>
Roland McGrath [Sat, 3 Aug 2002 05:08:17 +0000 (05:08 +0000)]
2002-08-02  Roland McGrath  <roland@redhat.com>

* include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
* sunrpc/rpc_thread.c: Define it without static.

22 years ago* include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
Roland McGrath [Sat, 3 Aug 2002 05:03:14 +0000 (05:03 +0000)]
* include/rpc/rpc.h: Declare RPC_VARS tsd as extern.

22 years agoRevert unintended bogons in last commit.
Roland McGrath [Sat, 3 Aug 2002 04:56:15 +0000 (04:56 +0000)]
Revert unintended bogons in last commit.

22 years ago(__assert_fail): Fix typo in comment.
Ulrich Drepper [Sat, 3 Aug 2002 03:54:03 +0000 (03:54 +0000)]
(__assert_fail): Fix typo in comment.

22 years agoUpdate.
Ulrich Drepper [Sat, 3 Aug 2002 03:53:28 +0000 (03:53 +0000)]
Update.

2002-08-02  Ulrich Drepper  <drepper@redhat.com>

* cancel.c (__pthread_perform_cleanup) [USE_TLS && HAVE___THREAD]:
Don't use p_libc_specific element in thread descriptor.

22 years ago(gethostbyaddr): Shut up the compiler.
Ulrich Drepper [Sat, 3 Aug 2002 03:40:54 +0000 (03:40 +0000)]
(gethostbyaddr): Shut up the compiler.

22 years ago* elf/Makefile ($(objpfx)interp.os): Depend on config.make,
Roland McGrath [Fri, 2 Aug 2002 21:50:12 +0000 (21:50 +0000)]
* elf/Makefile ($(objpfx)interp.os): Depend on config.make,

since it sets the variables we use in a -D switch.

22 years ago* posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
Roland McGrath [Fri, 2 Aug 2002 21:16:39 +0000 (21:16 +0000)]
* posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.

On 32-bit platforms they are the same; on 64-bit platforms ssize_t
matches long int, not int.

22 years ago* locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
Roland McGrath [Fri, 2 Aug 2002 21:04:15 +0000 (21:04 +0000)]
* locale/localeinfo.h (_NL_CURRENT_DATA): New macro.

* wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
* locale/lc-ctype.c (_nl_postload_ctype): Likewise.
* wctype/wctrans.c (wctrans): Likewise.
* wctype/wctype.c (__wctype): Likewise.
* intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.

22 years ago2002-08-02 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 2 Aug 2002 21:04:06 +0000 (21:04 +0000)]
2002-08-02  Roland McGrath  <roland@redhat.com>

* locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
* wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
* locale/lc-ctype.c (_nl_postload_ctype): Likewise.
* wctype/wctrans.c (wctrans): Likewise.
* wctype/wctype.c (__wctype): Likewise.
* intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.

22 years agoUpdate.
Ulrich Drepper [Fri, 2 Aug 2002 20:32:21 +0000 (20:32 +0000)]
Update.

* locale/iso-639.def: Add entries for Venda and Nothern Sotho.
Reported by Dwayne Bailey <dwayne@obsidian.co.za>.

22 years agoUpdate.
Ulrich Drepper [Fri, 2 Aug 2002 20:17:36 +0000 (20:17 +0000)]
Update.

2002-08-02  Ulrich Drepper  <drepper@redhat.com>

* resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
previous patch.

2002-06-29  Todd Fries  <todd@openbsd.org>

* resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.

22 years agoUpdate.
Ulrich Drepper [Fri, 2 Aug 2002 19:59:19 +0000 (19:59 +0000)]
Update.

2002-08-02  Jakub Jelinek  <jakub@redhat.com>

* include/errno.h: Don't include tls.h if _ISOMAC is defined.

22 years agoDon't include tls.h if _ISOMAC is defined.
Ulrich Drepper [Fri, 2 Aug 2002 19:58:24 +0000 (19:58 +0000)]
Don't include tls.h if _ISOMAC is defined.

22 years ago* resolv/resolv.h (_res): Define macro unconditionally.
Roland McGrath [Fri, 2 Aug 2002 03:37:41 +0000 (03:37 +0000)]
* resolv/resolv.h (_res): Define macro unconditionally.

[! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
* include/resolv.h: ... here.
[USE_TLS && HAVE___THREAD] (_res): #undef it and declare
as a __thread variable.
* resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
a __thread variable instead of a global.
* resolv/res_data.c [_LIBC]: Don't #undef _res.

* include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
time we test it.

* intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.

* malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
decls of memset and memcpy.

* sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
* sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.

* elf/dl-load.c (_dl_map_object_from_fd): Comment fix.

* sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
(__libc_tsd_define): Define using __thread.

* sunrpc/rpc_thread.c: Use __libc_tsd_define.
(__rpc_thread_variables): Use __libc_tsd_get.
(__rpc_thread_destroy): Use __libc_tsd_get instead of calling
__rpc_thread_variables, which might allocate what we're about to free.

* inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
thread-local variable.
* resolv/netdb.h (h_errno): Define macro unconditionally.
[_LIBC] (__set_h_errno): Macro moved to ...
* include/netdb.h: ... here.
[USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
[USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
[! _LIBC_REENTRANT]: #undef h_errno here.

* include/errno.h: Protect from multiple inclusion.

* misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
before defining them, since Linux's <linux/posix_types.h> might have
defined them.

2002-08-01  Roland McGrath  <roland@redhat.com>
2002-07-31  Roland McGrath  <roland@redhat.com>
2002-07-31  Roland McGrath  <roland@redhat.com>

22 years ago* sysdeps/pthread/bits/libc-tsd.h: Include <tls.h>.
Roland McGrath [Fri, 2 Aug 2002 03:32:24 +0000 (03:32 +0000)]
* sysdeps/pthread/bits/libc-tsd.h: Include <tls.h>.

[USE_TLS && HAVE___THREAD]: Just include the sysdeps/generic file,
which does the right thing when __thread support is available.
* descr.h (struct _pthread_descr_struct) [USE_TLS && HAVE___THREAD]:
Omit `p_libc_specific', `p_errnop', `p_errno', `p_h_errnop',
`p_h_errno', `p_resp', and `p_res' members.
* pthread.c (__pthread_initialize_minimal) [USE_TLS && HAVE___THREAD]:
Don't initialize `p_errnop' and `p_h_errnop' members.
(__pthread_reset_main_thread): Likewise.
(__pthread_initialize_manager): Likewise.
* manager.c (__pthread_manager, pthread_handle_create): Likewise.
* pthread.c (pthread_initialize) [USE_TLS && HAVE___THREAD]:
Don't initialize `p_resp' member.
(__pthread_reset_main_thread): Likewise.
* manager.c (pthread_handle_create): Likewise.
* specific.c (libc_internal_tsd_set, libc_internal_tsd_get):
Conditionalize these on [!(USE_TLS && HAVE___THREAD)].
* errno.c [USE_TLS && HAVE___THREAD]
(__h_errno_location, __res_state): Don't define these at all.

* sysdeps/i386/tls.h (INSTALL_DTV): Add parens around arguments!
(INSTALL_NEW_DTV, GET_DTV): Likewise.
* sysdeps/sh/tls.h (INSTALL_DTV, INSTALL_NEW_DTV, GET_DTV): Likewise.

* weaks.c: Don't include <errno.h> here.

2002-08-01  Roland McGrath  <roland@redhat.com>

* sysdeps/i386/tls.h (TLS_DO_MODIFY_LDT): New macro, broken out of
TLS_INIT_TP.
(TLS_DO_SET_THREAD_AREA): New macro, uses thread_set_area syscall.
(TLS_SETUP_GS_SEGMENT): New macro, try one or the other or both.
(TLS_INIT_TP): Use that.

22 years ago2002-08-01 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 2 Aug 2002 03:30:17 +0000 (03:30 +0000)]
2002-08-01  Roland McGrath  <roland@redhat.com>

* sysdeps/i386/tls.h (TLS_DO_MODIFY_LDT): New macro, broken out of
TLS_INIT_TP.
(TLS_DO_SET_THREAD_AREA): New macro, uses thread_set_area syscall.
(TLS_SETUP_GS_SEGMENT): New macro, try one or the other or both.
(TLS_INIT_TP): Use that.

22 years agoUpdate.
Ulrich Drepper [Fri, 2 Aug 2002 01:43:32 +0000 (01:43 +0000)]
Update.

2002-08-02  Jakub Jelinek  <jakub@redhat.com>

* malloc/malloc.c (public_cALLOc): Check for overflow on
multiplication.
* sunrpc/xdr_array.c (xdr_array): Likewise.
* sunrpc/rpc/types.h (mem_free): Add comment.
Patch by Solar Designer <solar@openwall.com>.

2002-08-02  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_SET_THREAD_AREA_SYSCALL): Define.

* libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
* libio/Makefile (headers): Add bits/sys_errlist.h to the list.
* sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
declare sys_errlist and sys_nerr.
* sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does

22 years ago(xdr_array): Check for overflow on multiplication.
Ulrich Drepper [Fri, 2 Aug 2002 01:33:11 +0000 (01:33 +0000)]
(xdr_array): Check for overflow on multiplication.

22 years ago* libio/fileops.c (_IO_file_sync_mmap): New function.
Roland McGrath [Fri, 2 Aug 2002 01:29:37 +0000 (01:29 +0000)]
* libio/fileops.c (_IO_file_sync_mmap): New function.

(_IO_file_jumps_mmap): Use it.
(_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
repeat the stat check and resize the mapped buffer as necessary.

2002-07-31  Roland McGrath  <roland@frob.com>

* libio/fileops.c (decide_maybe_mmap): New static function.
Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
mmap the file contents.  Then switch the jump tables to the mmap
tables if it worked, or the vanilla file tables if not.
(_IO_file_underflow_maybe_mmap): New function.
(_IO_file_seekoff_maybe_mmap): New function.
(_IO_file_xsgetn_maybe_mmap): New function.
(_IO_file_jumps_maybe_mmap): New variable, jump table using those.
* libio/libioP.h: Declare those.
* libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
(_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
* libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
If the stream is read-only, set its jump tables to those new ones.
* libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
We need the tables set before _IO_file_attach.

* libio/tst-mmap-eofsync.c: New file.
* libio/tst-mmap-fflushsync.c: New file.
* libio/bug-mmap-fflush.c: New file.
* libio/tst-mmap2-eofsync.c: New file.
* libio/Makefile (tests): Add them.

* libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
_IO_file_underflow_mmap fails, it already set the appropriate bit.

22 years ago2002-07-31 Roland McGrath <roland@frob.com>
Roland McGrath [Fri, 2 Aug 2002 01:27:53 +0000 (01:27 +0000)]
2002-07-31  Roland McGrath  <roland@frob.com>

* libio/fileops.c (decide_maybe_mmap): New static function.
Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
mmap the file contents.  Then switch the jump tables to the mmap
tables if it worked, or the vanilla file tables if not.
(_IO_file_underflow_maybe_mmap): New function.
(_IO_file_seekoff_maybe_mmap): New function.
(_IO_file_xsgetn_maybe_mmap): New function.
(_IO_file_jumps_maybe_mmap): New variable, jump table using those.
* libio/libioP.h: Declare those.
* libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
(_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
* libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
If the stream is read-only, set its jump tables to those new ones.
* libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
We need the tables set before _IO_file_attach.

22 years ago(public_cALLOc): Check for overflow on multiplication.
Ulrich Drepper [Fri, 2 Aug 2002 01:27:46 +0000 (01:27 +0000)]
(public_cALLOc): Check for overflow on multiplication.

22 years ago(DO_MODIFY_LDT): Move from INIT_THREAD_SELF. (INIT_THREAD_SELF): Use sys_thread_area...
Ulrich Drepper [Fri, 2 Aug 2002 01:11:43 +0000 (01:11 +0000)]
(DO_MODIFY_LDT): Move from INIT_THREAD_SELF. (INIT_THREAD_SELF): Use sys_thread_area syscall instead if available. (FREE_THREAD): Avoid modify_ldt if using GDT.

22 years ago2002-07-31 Jeff Bailey <jbailey@gnu.org>
Roland McGrath [Wed, 31 Jul 2002 23:30:24 +0000 (23:30 +0000)]
2002-07-31  Jeff Bailey  <jbailey@gnu.org>

        * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
Declarations moved to <bits/sys_errlist.h>.  Include that file.
        * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
        * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
        declare sys_errlist and sys_nerr.
        * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
provide declarations.

22 years ago* elf/rtld.c (dl_main): Fix typo in error message.
Roland McGrath [Wed, 31 Jul 2002 23:16:57 +0000 (23:16 +0000)]
* elf/rtld.c (dl_main): Fix typo in error message.

2002-07-31  Roland McGrath  <roland@frob.com>

22 years ago* sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
Roland McGrath [Wed, 31 Jul 2002 23:16:05 +0000 (23:16 +0000)]
* sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,

__xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
sysdeps/mach/hurd/dl-sysdep.c change.

22 years ago2002-07-31 Roland McGrath <roland@frob.com>
Roland McGrath [Wed, 31 Jul 2002 23:15:21 +0000 (23:15 +0000)]
2002-07-31  Roland McGrath  <roland@frob.com>

* sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
__xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
sysdeps/mach/hurd/dl-sysdep.c change.

22 years agoUpdate.
Ulrich Drepper [Sun, 28 Jul 2002 22:43:25 +0000 (22:43 +0000)]
Update.

* sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
-r`/build/include for kernel headers.

22 years agoUpdate.
Ulrich Drepper [Sun, 28 Jul 2002 19:04:09 +0000 (19:04 +0000)]
Update.

2002-07-28  Ulrich Drepper  <drepper@redhat.com>

* po/fi.po: New file.

22 years agoUpdate.
Ulrich Drepper [Sat, 27 Jul 2002 08:47:23 +0000 (08:47 +0000)]
Update.

2002-07-15  Alexandre Oliva  <aoliva@redhat.com>

* configure.in (static_nss): Set to `yes' if --disable-shared.

2002-07-23  Bruno Haible  <bruno@clisp.org>

* intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
is set.

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

* sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
* sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
arguments.

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

* sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
alias.

2002-07-21  Bruno Haible  <bruno@clisp.org>

* intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
* intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
trans_sysdep_tab_offset.
(struct sysdep_segment): New type.
(struct sysdep_string): New type.
(SEGMENTS_END): New macro.
* intl/gettextP.h (struct sysdep_string_desc): New type.
(struct loaded_domain): New fields malloced, n_sysdep_strings,
orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
orig_tab, trans_tab, hash_tab to const pointers because they point
into read-only memory.
* intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
(PRI*): Define fallback values.
(get_sysdep_segment_value): New function.
(_nl_load_domain): Distinguish major and minor revision parts. Add
support for minor revision 1 with system dependent strings.
(_nl_unload_domain): Also free the 'malloced' field.
* intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
now done in loadmsgcat.c. Add support for system dependent strings.

22 years agoUpdate.
Ulrich Drepper [Sat, 27 Jul 2002 08:28:46 +0000 (08:28 +0000)]
Update.

2002-07-16  Stepan Kasal  <kasal@math.cas.cz>

* posix/bug-regex7.c: New file.
* posix/bug-regex8.c: New file.
* posix/Makefile (tests): Add bug-regex7 and bug-regex8.

2002-07-16  Stepan Kasal  <kasal@math.cas.cz>

* posix/bug-regex4.c (main): Fix typos.
* posix/bug-regex6.c (main): Likewise.

* posix/bug-regex6.c (main): Fix warnings.

* stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is

22 years agoUpdate.
Ulrich Drepper [Sat, 27 Jul 2002 08:20:17 +0000 (08:20 +0000)]
Update.

2002-07-27  Ulrich Drepper  <drepper@redhat.com>

* iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.

* iconv/iconv_prog.c (main): Improve error message for the cases
where -t and/or -f parameter are missing.

2002-07-10  Stepan Kasal  <kasal@math.cas.cz>

* posix/regexec.c (re_match): Reorganize to remove duplicate code.
(re_search): Likewise.
(re_match_2): Likewise.
(re_search_2): Likewise.
(re_search_stub): New function.
(re_search_2_stub): New function.
* regcomp.c (re_compile_pattern): Typo in a comment fixed.

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

* posix/regex_internal.h: Add new member STOP to struct re_string_t.
(re_string_eoi): Use STOP instead of LEN.
* posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
(re_string_construct): Likewise.
(re_string_reconstruct): Adjust pstr->stop like pstr->len.
* posix/regexec.c (re_search_internal): Add a new argument STOP
so that it can handle the argument STOP of re_search_2 and re_match_2
correctly.
(regexec): Adapt to new I/F of re_search_internal.
(re_search_stub): Likewise.

22 years agoUpdate.
Ulrich Drepper [Thu, 25 Jul 2002 19:35:04 +0000 (19:35 +0000)]
Update.

* sunrpc/clnt_gen.c: Don't include <sys/errno.h>.