platform/upstream/glibc.git
22 years ago2002-08-13 Jakub Jelinek <jakub@redhat.com>
Roland McGrath [Tue, 13 Aug 2002 17:17:02 +0000 (17:17 +0000)]
2002-08-13  Jakub Jelinek  <jakub@redhat.com>

        * locale/loadarchive.c (archfname): Add missing slash.

        * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
        * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.

22 years ago* include/sys/wait.h (__waitpid): Add libc_hidden_proto.
Roland McGrath [Tue, 13 Aug 2002 01:08:15 +0000 (01:08 +0000)]
* include/sys/wait.h (__waitpid): Add libc_hidden_proto.

* sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
* sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
* sysdeps/unix/sysv/linux/waitpid.c: Likewise.
* sysdeps/unix/sysv/aix/waitpid.c: Likewise.
* sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
* sysdeps/generic/waitpid.c: Likewise.

* include/net/if.h: New file.  Use libc_hidden_proto
for if_nametoindex and if_indextoname.
* sysdeps/generic/if_index.c: Add libc_hidden_def.
* sysdeps/mach/hurd/if_index.c: Likewise.
* sysdeps/unix/sysv/linux/if_index.c: Likewise.

* include/grp.h (setgroups): Add libc_hidden_proto.
* sysdeps/generic/setgroups.c: Add libc_hidden_def.
* sysdeps/mach/hurd/setgroups.c: Likewise.
* sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
* sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.

22 years ago* include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
Roland McGrath [Tue, 13 Aug 2002 00:24:58 +0000 (00:24 +0000)]
* include/unistd.h (seteuid, setegid): Add libc_hidden_proto.

* sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
* sysdeps/generic/setegid.c (setegid): Likewise.
* sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
* sysdeps/mach/hurd/setegid.c (setegid): Likewise.
* sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
* sysdeps/unix/bsd/setegid.c (setegid): Likewise.
* sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
* sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
* sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
* sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
* sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
* sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
Remove fallback if __ASSUME_SETRESUID_SYSCALL.

* include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
__lxstat_internal, __lxstat64_internal): Remove.
(__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
Add hidden_proto.
* sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
Remove INTDEF where present, remove #undef at the beginning.
* sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
* sysdeps/generic/lxstat.c (__lxstat): Likewise.
* sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
* sysdeps/generic/xstat.c (__xstat): Likewise.
* sysdeps/generic/xstat64.c (__xstat64): Likewise.
* sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
* sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
* sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
* sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
* sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
* sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
* sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
* sysdeps/unix/fxstat.c (__fxstat): Likewise.
* sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
* sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
* sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
* sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
* sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
* sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
* sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
* sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
* sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
* sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
* sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
* sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
* sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
* sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
* sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
* sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
* sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
* sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
* sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
* sysdeps/unix/xstat.c (__xstat): Likewise.

* include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
* sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
* sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
* sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
* sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
* sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
* sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.

* include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
* include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
* sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
* sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
* sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
* sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
* sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
* sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
Likewise.
* sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
* sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
* sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
* sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
* sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
* sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
* sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
* sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.

* include/string.h (strcoll): Add libc_hidden_proto.
* string/strcoll.c (strcoll): Add libc_hidden_def.

* misc/err.c (vwarn): Fix pasto in libc_hidden_def.

22 years ago2002-08-13 Jakub Jelinek <jakub@redhat.com>
Roland McGrath [Tue, 13 Aug 2002 00:22:49 +0000 (00:22 +0000)]
2002-08-13  Jakub Jelinek  <jakub@redhat.com>

* include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
* sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
* sysdeps/generic/setegid.c (setegid): Likewise.
* sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
* sysdeps/mach/hurd/setegid.c (setegid): Likewise.
* sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
* sysdeps/unix/bsd/setegid.c (setegid): Likewise.
* sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
* sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
* sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
* sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
* sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
* sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
Remove fallback if __ASSUME_SETRESUID_SYSCALL.

22 years agoUpdate.
Ulrich Drepper [Mon, 12 Aug 2002 19:50:26 +0000 (19:50 +0000)]
Update.

2002-08-11  Philip Blundell  <philb@gnu.org>

* sysdeps/arm/Makefile: New file.

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

* posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
by another '|', end of regex or enclosing ')', clear branch.
* posix/bug-regex9.c: New test.
* posix/Makefile (tests): Add bug-regex9.

22 years ago(parse_reg_exp): If '|' is immediately followed by another '|', end of regex or enclo...
Ulrich Drepper [Mon, 12 Aug 2002 19:18:45 +0000 (19:18 +0000)]
(parse_reg_exp): If '|' is immediately followed by another '|', end of regex or enclosing ')', clear branch.

22 years ago* sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
Roland McGrath [Mon, 12 Aug 2002 08:48:51 +0000 (08:48 +0000)]
* sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop

start count condition, use TOTAL instead of variable that was never
set.  Fix outer loop termination condition to TOTAL >= after update.

* sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
dl_tls_static_align and dl_tls_static_nelem.

22 years ago* elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
Roland McGrath [Mon, 12 Aug 2002 06:25:47 +0000 (06:25 +0000)]
* elf/tst-tlsmod4.c (in_dso): Insert a random library call before use

of the TLS macros, otherwise the compiler might not have initialized
the PIC register yet when we use the PLT via asm.
* elf/tst-tlsmod3.c (in_dso2): Likewise.
* elf/tst-tlsmod2.c (in_dso): Likewise.

22 years ago* sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
Roland McGrath [Mon, 12 Aug 2002 02:02:20 +0000 (02:02 +0000)]
* sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).

* sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
Evaluate argument exactly once.  Remove __volatile__ from asm's.

* include/unistd.h: Use libc_hidden_proto for getdomainname
and getlogin_r.
* sysdeps/generic/getdomain.c: Add libc_hidden_def.
* sysdeps/mach/hurd/getdomain.c: Likewise.
* sysdeps/unix/getlogin_r.c: Likewise.
* sysdeps/mach/hurd/getlogin_r.c: Likewise.
* sysdeps/generic/getlogin_r.c: Likewise.

* include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
* sunrpc/rtime.c: Add libc_hidden_def.

* include/string.h: Use libc_hidden_proto for basename.
* string/basename.c [_LIBC]: Add libc_hidden_def.

* sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.

* locale/loadarchive.c: munmap -> __munmap throughout.

* include/netdb.h: Use libc_hidden_proto for gai_strerror.
* sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
* sysdeps/generic/gai_strerror.c: Likewise.

22 years ago* include/sys/errno.h: New file.
Roland McGrath [Sun, 11 Aug 2002 22:06:06 +0000 (22:06 +0000)]
* include/sys/errno.h: New file.

* include/signal.h: No libc_hidden_proto for raise,
__libc_current_sigrtmin, __libc_current_sigrtmax.
These need to be overridden by linuxthreads.
* sysdeps/posix/raise.c: Reverted.
* sysdeps/generic/raise.c: Reverted.
* signal/allocrtsig.c: Reverted.

22 years ago* locale/loadarchive.c (LOCALEDIR): Remove debugging defn. Oops.
Roland McGrath [Sun, 11 Aug 2002 20:04:32 +0000 (20:04 +0000)]
* locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.

22 years ago2002-08-10 Roland McGrath <roland@redhat.com>
Roland McGrath [Sat, 10 Aug 2002 23:55:20 +0000 (23:55 +0000)]
2002-08-10  Roland McGrath  <roland@redhat.com>

* locale/loadarchive.c (_nl_archive_subfreeres): New function.
* locale/localeinfo.h: Declare it.
* locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
current locale if it's not in the file list.
Call _nl_archive_subfreeres.
* include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
* wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
towlower, towupper): Add libc_hidden_weak.

22 years ago2002-08-09 Jakub Jelinek <jakub@redhat.com>
Roland McGrath [Sat, 10 Aug 2002 23:54:24 +0000 (23:54 +0000)]
2002-08-09  Jakub Jelinek  <jakub@redhat.com>

* include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
* wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
towlower, towupper): Add libc_hidden_weak.

22 years agoUpdate.
Ulrich Drepper [Sat, 10 Aug 2002 20:05:23 +0000 (20:05 +0000)]
Update.

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

* wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace,
iswxdigit, iswtolower, iswtoupper): Add libc_hidden_def.

22 years ago(iswalpha, iswdigit, iswlower, iswspace, iswxdigit, iswtolower, iswtoupper): Add...
Ulrich Drepper [Sat, 10 Aug 2002 19:59:27 +0000 (19:59 +0000)]
(iswalpha, iswdigit, iswlower, iswspace, iswxdigit, iswtolower, iswtoupper): Add libc_hidden_def.

22 years agoUpdate.
Andreas Jaeger [Sat, 10 Aug 2002 18:12:45 +0000 (18:12 +0000)]
Update.

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

* sysdeps/i386/strchr.S: Add comment.

22 years agoAdd comment.
Andreas Jaeger [Sat, 10 Aug 2002 18:12:27 +0000 (18:12 +0000)]
Add comment.

22 years ago* include/wchar.h (putwc): Use libc_hidden_proto.
Roland McGrath [Sat, 10 Aug 2002 09:24:53 +0000 (09:24 +0000)]
* include/wchar.h (putwc): Use libc_hidden_proto.

* include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
* stdio-common/dprintf.c: Add libc_hidden_def.
* stdio-common/fprintf.c: Likewise.
* stdio-common/sprintf.c: Likewise.
* stdio-common/sscanf.c: Likewise.
* libio/iofwrite.c: Likewise.
* libio/memstream.c: Likewise.
* libio/putwc.c: Likewise.
* stdio-common/perror.c: Likewise.
* sysdeps/posix/remove.c: Likewise.
* sysdeps/generic/remove.c: Likewise.
* libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
* stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.

22 years ago* include/bits/dlfcn.h: New file.
Roland McGrath [Sat, 10 Aug 2002 07:54:55 +0000 (07:54 +0000)]
* include/bits/dlfcn.h: New file.

* elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.

* include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
* include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
* include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
* include/pwd.h (_nss_files_parse_pwent): Likewise.
* include/shadow.h (_nss_files_parse_spent): Likewise.
* include/netdb.h (_nss_files_parse_protoent,
_nss_files_parse_servent, _nss_files_parse_netent): Likewise.
* nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
(LINE_PARSER): Use it.
* nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
* nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.

* include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
* wctype/wcfuncs ((iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
towlower, towupper): Add libc_hidden_weak.

* libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
#endif.

* manual/debug.texi (%MENU%): Remove trailing dot.
Reported by <hayastan132@hotmail.com>.

22 years ago* sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
Roland McGrath [Sat, 10 Aug 2002 06:47:30 +0000 (06:47 +0000)]
* sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek

aliases.
(lseek): Dummy.
* sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
Likewise.

* locale/locarchive.h (struct locrecent): Add `refs' member.

22 years ago* locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
Roland McGrath [Sat, 10 Aug 2002 06:22:37 +0000 (06:22 +0000)]
* locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale

name to find codeset name (if any) and normalize it.  If the
normalized name differs, look up only that in the archive.
* locale/programs/locarchive.c (add_locale_to_archive): If the name
contains a codeset, normalize the codeset store only the normalized
name in the archive.  If not, add an alias containing the locale's
normalized codeset name.  Apply codeset name normalization when
matching entries in the alias file.

* locale/programs/locarchive.c (delete_locales_from_archive): Don't
decrement HEAD->namehash_used here.
(add_locale): Only need to insert name string when name_offset != 0.

* locale/programs/localedef.c (options): Add -A/--alias-file.
(alias_file): New variable.
(parse_opt): Grok -A, set that.
* locale/programs/localedef.h: Declare it.

* locale/programs/locarchive.c (insert_name): New function, broken out
of ...
(add_locale_to_archive): ... here.  Call that.
(add_alias): New function.
(add_locale): New static function, add_locale_to_archive renamed.
(add_locale_to_archive): Call that and use add_alias to add an alias
for the name with codeset if the given name lacks it.
(enlarge_archive): Call add_locale instead of add_locale_to_archive.

* locale/Makefile (routines): Add loadarchive.
* locale/loadarchive.c: New file, started from code by Ulrich Drepper.
(_nl_load_locale_from_archive): New function.
* locale/localeinfo.h: Declare it.
* locale/findlocale.c (_nl_find_locale): If using default locale path,
try _nl_load_locale_from_archive first.

* locale/loadlocale.c (_nl_intern_locale_data): New function,
broken out of _nl_load_locale.
(_nl_load_locale): Call that.
* locale/localeinfo.h: Declare it.
(struct locale_data): Replace member `mmaped' with `alloc', an enum.
(struct locale_data): Remove unused member `options'.
* locale/findlocale.c (_nl_remove_locale): Update uses.
* locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
* locale/C-collate.c: Update initializer.
* locale/C-identification.c: Likewise.
* locale/C-measurement.c: Likewise.
* locale/C-telephone.c: Likewise.
* locale/C-address.c: Likewise.
* locale/C-name.c: Likewise.
* locale/C-paper.c: Likewise.
* locale/C-time.c: Likewise.
* locale/C-numeric.c: Likewise.
* locale/C-monetary.c: Likewise.
* locale/C-messages.c : Likewise.
* locale/C-ctype.c: Likewise.

* locale/hashval.h [! LONGBITS]: Include <limits.h> here and
use CHAR_BIT instead of BITSPERBYTE.

* locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
_nl_unload_locale): Add `internal_function attribute_hidden' to decls.
* locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
(_nl_remove_locale): Likewise.
* locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.

* locale/findlocale.c (_nl_default_locale_path): New variable.
(_nl_find_locale): If LOCALE_PATH is null, default to that.
* locale/localeinfo.h: Declare it.
* locale/setlocale.c (setlocale): Use _nl_default_locale_path
in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
* locale/newlocale.c (__newlocale): Likewise.

* misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
* inet/rexec.c (rexec_af): Add libc_hidden_def.
* sysdeps/generic/morecore.c: Likewise.
* signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
(__libc_current_sigrtmax): Likewise.

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

* locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
* catgets/open_catalog.c (__open_catalog): Likewise.

* locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
from typo INITIAL_NUM_NANES.
(create_archive): Update use.

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

* locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
* catgets/open_catalog.c (__open_catalog): Likewise.

22 years agoUpdate.
Ulrich Drepper [Thu, 8 Aug 2002 22:19:31 +0000 (22:19 +0000)]
Update.

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

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

22 years agosigwait implementation for Linux based in sigtimedwait syscall.
Ulrich Drepper [Thu, 8 Aug 2002 22:13:45 +0000 (22:13 +0000)]
sigwait implementation for Linux based in sigtimedwait syscall.

22 years ago* resolv/netdb.h: Don't declare h_errno as a plain global any more.
Roland McGrath [Thu, 8 Aug 2002 21:17:22 +0000 (21:17 +0000)]
* resolv/netdb.h: Don't declare h_errno as a plain global any more.

22 years ago2002-08-08 Roland McGrath <roland@frob.com>
Roland McGrath [Thu, 8 Aug 2002 21:17:03 +0000 (21:17 +0000)]
2002-08-08  Roland McGrath  <roland@frob.com>

* resolv/netdb.h: Don't declare h_errno as a plain global any more.

22 years agoUpdate.
Ulrich Drepper [Thu, 8 Aug 2002 11:46:51 +0000 (11:46 +0000)]
Update.

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

* sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
else and undefine after including wcstol_l.c.
* sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.

22 years agoUpdate.
Ulrich Drepper [Thu, 8 Aug 2002 09:04:02 +0000 (09:04 +0000)]
Update.

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

* gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.

22 years agoUpdate.
Ulrich Drepper [Thu, 8 Aug 2002 08:14:53 +0000 (08:14 +0000)]
Update.

2002-08-08  Alexandre Oliva  <aoliva@redhat.com>

* configure.in: Make the test for broken_alias_attribute stricter.

22 years agoUpdate.
Ulrich Drepper [Thu, 8 Aug 2002 07:53:36 +0000 (07:53 +0000)]
Update.

2002-05-24  Robert Love  <rml@tech9.net>

* posix/Makefile (routines): Add sched_getaffinity and
sched_setaffinity.
* posix/sched.h: Add declarations for sched_getaffinity and
sched_setaffinity.
* sysdeps/generic/sched_getaffinity.c: New file.
* sysdeps/generic/sched_setaffinity.c: New file.
* sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
sched_setaffinity.

2002-08-06  Andreas Schwab  <schwab@suse.de>

* sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.

22 years agoUpdate.
Ulrich Drepper [Thu, 8 Aug 2002 06:38:19 +0000 (06:38 +0000)]
Update.

* elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
message.

22 years agoUpdate.
Ulrich Drepper [Thu, 8 Aug 2002 05:34:04 +0000 (05:34 +0000)]
Update.

* stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
It is known to be defined.

* include/string.h: Define index and rindex only if _ISOMAC is not
defined.

22 years ago(__linuxthreads_initial_report_events): New variable. (__pthread_initialize_manager...
Ulrich Drepper [Thu, 8 Aug 2002 05:20:04 +0000 (05:20 +0000)]
(__linuxthreads_initial_report_events): New variable. (__pthread_initialize_manager): Use it to initialize p_report_events of initial thread. [TLS]: Store pointer to descriptor of manager in __pthread_handles.

22 years ago* sysdeps/i386/tls.h (TLS_DO_MODIFY_LDT): Add an extra argument with
Roland McGrath [Thu, 8 Aug 2002 04:58:42 +0000 (04:58 +0000)]
* 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.

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

22 years ago(get_null_defines): Treat NOT_IN_libc special. It is known to be defined.
Ulrich 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.

22 years agoUpdate.
Ulrich Drepper [Thu, 8 Aug 2002 04:16:54 +0000 (04:16 +0000)]
Update.

* sysdeps/generic/libc-tls.c: Likewise.

22 years agoUpdate.
Ulrich Drepper [Thu, 8 Aug 2002 03:35:15 +0000 (03:35 +0000)]
Update.

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

* elf/rtld.c: Include <errno.h>.

22 years ago* resolv/res_debug.c (latlon2ul): Add const to argument type, and use
Roland McGrath [Thu, 8 Aug 2002 02:01:41 +0000 (02:01 +0000)]
* resolv/res_debug.c (latlon2ul): Add const to argument type, and use

it internally.
(precsize_aton): Likewise.

22 years ago* inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
Roland McGrath [Thu, 8 Aug 2002 01:33:05 +0000 (01:33 +0000)]
* inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call

the static symbols added in the last change (doofus is me).

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

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

* malloc/tst-calloc.c: Add tests for one or both parameters being zero.

22 years ago2002-08-07 Roland McGrath <roland@redhat.com>
Roland McGrath [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).

22 years agoUpdate.
Ulrich Drepper [Wed, 7 Aug 2002 23:08:10 +0000 (23:08 +0000)]
Update.

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

* malloc/tst-calloc.c: Add tests for one or both parameters being
zero.

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

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

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.