kopensolaris-gnu/glibc.git
17 years ago2002-08-07 Roland McGrath <roland@redhat.com>
roland [Thu, 8 Aug 2002 04:58:30 +0000 (04:58 +0000)]
2002-08-07  Roland McGrath  <roland@redhat.com>

* sysdeps/i386/tls.h (TLS_DO_MODIFY_LDT): Add an extra argument with
an "m" constraint to the asm so the compiler knows LDT_ENTRY was used.

17 years agoUpdate.
drepper [Thu, 8 Aug 2002 04:48:50 +0000 (04:48 +0000)]
Update.

17 years ago(get_null_defines): Treat NOT_IN_libc special. It is known to be defined.
drepper [Thu, 8 Aug 2002 04:44:47 +0000 (04:44 +0000)]
(get_null_defines): Treat NOT_IN_libc special.  It is known to be defined.

17 years agoDefine index and rindex only if _ISOMAC is not defined.
drepper [Thu, 8 Aug 2002 04:43:55 +0000 (04:43 +0000)]
Define index and rindex only if _ISOMAC is not defined.

17 years agoUpdate.
drepper [Thu, 8 Aug 2002 04:16:54 +0000 (04:16 +0000)]
Update.

17 years agoInclude <errno.h>.
drepper [Thu, 8 Aug 2002 04:13:38 +0000 (04:13 +0000)]
Include <errno.h>.

17 years agoUpdate.
drepper [Thu, 8 Aug 2002 03:35:15 +0000 (03:35 +0000)]
Update.

17 years agoInclude <errno.h>.
drepper [Thu, 8 Aug 2002 03:31:34 +0000 (03:31 +0000)]
Include <errno.h>.

17 years ago.
roland [Thu, 8 Aug 2002 02:01:41 +0000 (02:01 +0000)]
.

17 years ago2002-08-07 Roland McGrath <roland@redhat.com>
roland [Thu, 8 Aug 2002 02:01:31 +0000 (02:01 +0000)]
2002-08-07  Roland McGrath  <roland@redhat.com>

* resolv/res_debug.c (latlon2ul): Add const to argument type, and use
it internally.
(precsize_aton): Likewise.

17 years ago.
roland [Thu, 8 Aug 2002 01:33:05 +0000 (01:33 +0000)]
.

17 years ago2002-08-07 Roland McGrath <roland@redhat.com>
roland [Thu, 8 Aug 2002 01:32:52 +0000 (01:32 +0000)]
2002-08-07  Roland McGrath  <roland@redhat.com>

* locale/newlocale.c (__newlocale): Use a bit mask instead of a second
loop to notice missing categories in a composite name.

17 years ago2002-08-07 Roland McGrath <roland@redhat.com>
roland [Thu, 8 Aug 2002 01:32:50 +0000 (01:32 +0000)]
2002-08-07  Roland McGrath  <roland@redhat.com>

* locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.

17 years ago2002-08-07 Roland McGrath <roland@redhat.com>
roland [Thu, 8 Aug 2002 01:32:48 +0000 (01:32 +0000)]
2002-08-07  Roland McGrath  <roland@redhat.com>

* inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
the static symbols added in the last change (doofus is me).

17 years agoUpdate.
drepper [Wed, 7 Aug 2002 23:08:10 +0000 (23:08 +0000)]
Update.

17 years agoAdd tests for one or both parameters being zero.
drepper [Wed, 7 Aug 2002 23:06:11 +0000 (23:06 +0000)]
Add tests for one or both parameters being zero.

17 years ago.
roland [Wed, 7 Aug 2002 22:14:40 +0000 (22:14 +0000)]
.

17 years ago2002-08-07 Roland McGrath <roland@redhat.com>
roland [Wed, 7 Aug 2002 22:14:15 +0000 (22:14 +0000)]
2002-08-07  Roland McGrath  <roland@redhat.com>

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

17 years ago.
roland [Wed, 7 Aug 2002 19:32:54 +0000 (19:32 +0000)]
.

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

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

17 years ago.
roland [Tue, 6 Aug 2002 21:10:50 +0000 (21:10 +0000)]
.

17 years ago2002-08-06 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 21:10:37 +0000 (21:10 +0000)]
2002-08-06  Roland McGrath  <roland@redhat.com>

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

17 years ago2002-08-06 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 21:10:35 +0000 (21:10 +0000)]
2002-08-06  Roland McGrath  <roland@redhat.com>

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

17 years ago2002-08-06 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 21:10:33 +0000 (21:10 +0000)]
2002-08-06  Roland McGrath  <roland@redhat.com>

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

17 years ago.
roland [Tue, 6 Aug 2002 08:40:20 +0000 (08:40 +0000)]
.

17 years ago2002-08-06 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 08:39:56 +0000 (08:39 +0000)]
2002-08-06  Roland McGrath  <roland@redhat.com>

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

17 years ago.
roland [Tue, 6 Aug 2002 06:09:28 +0000 (06:09 +0000)]
.

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 06:09:09 +0000 (06:09 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

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

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 06:09:00 +0000 (06:09 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

* 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/wchar.h: Use libc_hidden_proto for mbrtowc.
* wcsmbs/mbrtowc.c: Add libc_hidden_weak.

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 06:08:48 +0000 (06:08 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

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

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 06:08:38 +0000 (06:08 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

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

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 06:08:25 +0000 (06:08 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

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

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 06:08:16 +0000 (06:08 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

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

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 06:08:07 +0000 (06:08 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

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

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 06:07:59 +0000 (06:07 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

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

17 years ago.
roland [Tue, 6 Aug 2002 05:10:45 +0000 (05:10 +0000)]
.

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 05:10:35 +0000 (05:10 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

* include/stdlib.h: Use libc_hidden_proto for wctomb.
* stdlib/wctomb.c: Add libc_hidden_def.

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 05:10:33 +0000 (05:10 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

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

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 05:10:30 +0000 (05:10 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

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

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 05:10:27 +0000 (05:10 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

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

17 years ago.
roland [Tue, 6 Aug 2002 04:30:03 +0000 (04:30 +0000)]
.

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 04:29:45 +0000 (04:29 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

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

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 04:29:44 +0000 (04:29 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

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

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 04:29:41 +0000 (04:29 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

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

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 04:29:40 +0000 (04:29 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

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

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 04:29:38 +0000 (04:29 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

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

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 04:29:36 +0000 (04:29 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

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

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [Tue, 6 Aug 2002 04:29:32 +0000 (04:29 +0000)]
2002-08-05  Roland McGrath  <roland@redhat.com>

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

17 years ago.
roland [Tue, 6 Aug 2002 01:23:32 +0000 (01:23 +0000)]
.

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [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.

17 years agoUpdate.
drepper [Tue, 6 Aug 2002 01:00:59 +0000 (01:00 +0000)]
Update.

17 years ago(_dl_start): Don't use memset. Use same tricks as for the other
drepper [Tue, 6 Aug 2002 00:55:24 +0000 (00:55 +0000)]
(_dl_start): Don't use memset.  Use same tricks as for the other
memset call in this function.

17 years ago(_dl_allocate_tls_init): Store dtv pointer at correct index. Clear
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.

17 years ago.
roland [Mon, 5 Aug 2002 22:47:19 +0000 (22:47 +0000)]
.

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

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

17 years ago.
roland [Mon, 5 Aug 2002 22:11:14 +0000 (22:11 +0000)]
.

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

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

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

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

17 years ago2002-08-05 Jakub Jelinek <jakub@redhat.com>
roland [Mon, 5 Aug 2002 22:10:59 +0000 (22:10 +0000)]
2002-08-05  Jakub Jelinek  <jakub@redhat.com>

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

17 years ago2002-08-05 Jakub Jelinek <jakub@redhat.com>
roland [Mon, 5 Aug 2002 22:10:58 +0000 (22:10 +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.

17 years ago2002-08-05 Jakub Jelinek <jakub@redhat.com>
roland [Mon, 5 Aug 2002 22:10:54 +0000 (22:10 +0000)]
2002-08-05  Jakub Jelinek  <jakub@redhat.com>

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

17 years ago(dl_main): fix typo in last change
roland [Mon, 5 Aug 2002 19:03:29 +0000 (19:03 +0000)]
(dl_main): fix typo in last change

17 years ago.
roland [Mon, 5 Aug 2002 18:56:19 +0000 (18:56 +0000)]
.

17 years ago2002-08-05 Roland McGrath <roland@redhat.com>
roland [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.

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

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

17 years ago.
roland [Mon, 5 Aug 2002 06:58:03 +0000 (06:58 +0000)]
.

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

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

17 years ago.
roland [Mon, 5 Aug 2002 06:38:00 +0000 (06:38 +0000)]
.

17 years ago2002-08-04 Roland McGrath <roland@redhat.com>
roland [Mon, 5 Aug 2002 06:37:31 +0000 (06:37 +0000)]
2002-08-04  Roland McGrath  <roland@redhat.com>

* sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
actually iterate over the elements.  Fix typo p_type -> p_vaddr.

17 years ago2002-08-04 Roland McGrath <roland@redhat.com>
roland [Mon, 5 Aug 2002 06:37:29 +0000 (06:37 +0000)]
2002-08-04  Roland McGrath  <roland@redhat.com>

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

17 years ago.
roland [Mon, 5 Aug 2002 04:59:44 +0000 (04:59 +0000)]
.

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

* stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.

17 years ago.
roland [Mon, 5 Aug 2002 04:58:18 +0000 (04:58 +0000)]
.

17 years ago2002-08-04 Roland McGrath <roland@frob.com>
roland [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.

17 years agoUpdate.
drepper [Mon, 5 Aug 2002 03:28:59 +0000 (03:28 +0000)]
Update.

17 years agoDon't define macro magic to redirect function calls if _ISOMAC is defined.
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.

17 years ago.
roland [Mon, 5 Aug 2002 02:19:15 +0000 (02:19 +0000)]
.

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

17 years ago2002-08-04 Roland McGrath <roland@redhat.com>
roland [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.

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

* 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/unix/sysv/irix4/setpriority.c: Likewise.
* sysdeps/mach/hurd/setpriority.c: Likewise.
* sysdeps/mach/hurd/getpriority.c: Likewise.
* sysdeps/generic/setpriority.c: Likewise.
* sysdeps/generic/getpriority.c: Likewise.

17 years ago.
roland [Mon, 5 Aug 2002 01:30:42 +0000 (01:30 +0000)]
.

17 years ago.
roland [Mon, 5 Aug 2002 01:28:17 +0000 (01:28 +0000)]
.

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

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

17 years ago.
roland [Mon, 5 Aug 2002 01:21:25 +0000 (01:21 +0000)]
.

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

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

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

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

17 years ago2002-08-04 Roland McGrath <roland@redhat.com>
roland [Mon, 5 Aug 2002 01:21:04 +0000 (01:21 +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.

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

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

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

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

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

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

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

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

17 years ago2002-08-04 Roland McGrath <roland@redhat.com>
roland [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.

17 years agoUpdate.
drepper [Mon, 5 Aug 2002 00:43:00 +0000 (00:43 +0000)]
Update.

17 years ago(__wcstoull_internal): Add libc_hidden_ver.
drepper [Mon, 5 Aug 2002 00:33:51 +0000 (00:33 +0000)]
(__wcstoull_internal): Add libc_hidden_ver.

17 years ago(____strtoull_l_internal): Add libc_hidden_ver.
drepper [Mon, 5 Aug 2002 00:33:34 +0000 (00:33 +0000)]
(____strtoull_l_internal): Add libc_hidden_ver.

17 years ago(__strtoull_internal): Add libc_hidden_ver.
drepper [Mon, 5 Aug 2002 00:33:20 +0000 (00:33 +0000)]
(__strtoull_internal): Add libc_hidden_ver.

17 years ago(____strtoll_l_internal): Add libc_hidden_ver.
drepper [Mon, 5 Aug 2002 00:33:06 +0000 (00:33 +0000)]
(____strtoll_l_internal): Add libc_hidden_ver.

17 years ago(__wcstoll_internal): Use libc_hidden_ver instead of libc_hidden_def.
drepper [Mon, 5 Aug 2002 00:32:48 +0000 (00:32 +0000)]
(__wcstoll_internal): Use libc_hidden_ver instead of libc_hidden_def.
(wcstoll, wcstoq): Remove libc_hidden_weak.

17 years ago(__strtoll_internal): Use libc_hidden_ver instead of libc_hidden_def.
drepper [Mon, 5 Aug 2002 00:32:31 +0000 (00:32 +0000)]
(__strtoll_internal): Use libc_hidden_ver instead of libc_hidden_def.