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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

* sysdeps/generic/raise.c: Likewise.

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

* stdlib/msort.c: Add libc_hidden_def.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

* po/fi.po: New file.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

* iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.

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

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

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

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

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

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

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

22 years agoUpdate.
Ulrich Drepper [Thu, 25 Jul 2002 08:29:34 +0000 (08:29 +0000)]
Update.

* elf/dl-minimal.c: Remove definition of __assert_perror_fail.

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

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

* sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
* sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
of __divdi3.

* sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
* sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
* sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
alias for adjtimex syscall.

* elf/dl-minimal.c: Define __assert_fail_internal.
* assert/assert.c: Likewise.
* include/assert.h: Define __assert_file macro if !SHARED and not
NOT_IN_libc.

* iconv/Makefile: Define NOT_IN_libc for objects in standalone
programs.
* locale/Makefile: Likewise.
* nscd/Makefile: Likewise.
* catgets/Makefile: Likewise.

succesful seek call.  Simplify error checking.

22 years agoUpdate.
Ulrich Drepper [Thu, 25 Jul 2002 01:30:57 +0000 (01:30 +0000)]
Update.

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

* libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
compute current position.

* stdio-common/tst-fseek.c (main): Improve error messages.

* libio/tst-freopen.c (main): Remove unused variable.

* libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
succesful seek call.  Simply error checking.

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

* config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
* sysdeps/ia64/fpu/libm_support.h: Likewise.

22 years ago(_IO_file_seekoff_mmap): Set fp->_offset after succesful seek call. Simply error...
Ulrich Drepper [Thu, 25 Jul 2002 00:48:18 +0000 (00:48 +0000)]
(_IO_file_seekoff_mmap): Set fp->_offset after succesful seek call. Simply error checking.

22 years ago* hurd/hurdsig.c (_hurdsig_getenv): Always return null if
Roland McGrath [Wed, 24 Jul 2002 23:05:17 +0000 (23:05 +0000)]
* hurd/hurdsig.c (_hurdsig_getenv): Always return null if

__libc_enable_secure is set.

22 years agoAdded <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
Roland McGrath [Wed, 24 Jul 2002 22:56:44 +0000 (22:56 +0000)]
Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.

This implementation supports only IPv4.
* inet/ifaddrs.h: New file.
* sysdeps/generic/ifaddrs.c: New file.
* sysdeps/gnu/ifaddrs.c: New file.
* inet/test-ifaddrs.c: New file.
* inet/Makefile (routines): Add ifaddrs.
(headers): Add ifaddrs.h here.
(tests): Add test-ifaddrs.
* inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.

* resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
socket call to get an AF_INET socket, instead of using __opensock.
The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.

* sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
if not -1 use it instead of calling __opensock.
* sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
* sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
* resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.

* sysdeps/mach/hurd/ifreq.h: New file.
* sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
* sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
* resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.

22 years ago* libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
Roland McGrath [Wed, 24 Jul 2002 22:54:53 +0000 (22:54 +0000)]
* libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,

which gets moved around.  Calculate size of mmap'd buffer instead.

22 years agoCosmetic edits.
Roland McGrath [Wed, 24 Jul 2002 19:26:31 +0000 (19:26 +0000)]
Cosmetic edits.

22 years agoUpdate.
Ulrich Drepper [Wed, 24 Jul 2002 17:39:23 +0000 (17:39 +0000)]
Update.

2002-07-24  Philip Blundell  <philb@gnu.org>

* sysdeps/unix/arm/brk.S: Improve schedule.
* sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
efficient instruction.
(__socket): Optimize return sequence.

* locale/hashval.h: Make more self-contained by defining LONG_BITS.

22 years agoUpdate.
Ulrich Drepper [Wed, 24 Jul 2002 11:51:16 +0000 (11:51 +0000)]
Update.

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

* sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
sockets on old kernels.

22 years agoUpdate.
Ulrich Drepper [Wed, 24 Jul 2002 11:18:48 +0000 (11:18 +0000)]
Update.

2002-07-22  Philip Blundell  <philb@gnu.org>

* sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
alias.

22 years agoUpdate.
Ulrich Drepper [Wed, 24 Jul 2002 10:44:53 +0000 (10:44 +0000)]
Update.

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

* locale/hashval.h: Make more self-containedby defining LONG_BITS.
* locale/programs/simple-hash.c: Remove LONG_BITS definition.

* locale/programs/locarchive.c (add_locale_to_archive): Correct
test to detect duplicate locales.

* libio/fileops.c (_IO_new_file_seekoff): Fail if relative
position would be before beginning of file.
(_IO_file_seekoff_mmap): Likewise.
* libio/Makefile (tests): Add bug-fseek.
* libio/bug-fseek.c: New file.

* intl/explodename.c: Remove support for CEN-style locale variables.
It was never used and shouldn't be since it's not portable.
* intl/finddomain.c: Likewise.
* intl/l10nflist.c: Likewise.
* intl/loadinfo.h: Likewise.
* locale/findlocale.c: Likewise.

22 years agoRemove support for CEN-style locale variables. It was never used and shouldn't be...
Ulrich Drepper [Wed, 24 Jul 2002 10:07:08 +0000 (10:07 +0000)]
Remove support for CEN-style locale variables. It was never used and shouldn't be since it's not portable.

22 years ago* libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
Roland McGrath [Wed, 24 Jul 2002 09:35:24 +0000 (09:35 +0000)]
* libio/fileops.c (_IO_file_seekoff_mmap): When just examining the

position, calculate it to take into account an active pushback buffer.

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

22 years ago2002-07-24 Roland McGrath <roland@frob.com>
Roland McGrath [Wed, 24 Jul 2002 09:34:59 +0000 (09:34 +0000)]
2002-07-24  Roland McGrath  <roland@frob.com>

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

22 years agoMoved to misc/sys.
Ulrich Drepper [Tue, 23 Jul 2002 23:19:44 +0000 (23:19 +0000)]
Moved to misc/sys.

22 years agoUpdate.
Ulrich Drepper [Tue, 23 Jul 2002 23:12:01 +0000 (23:12 +0000)]
Update.

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

* sysdeps/generic/libc-tls.c: New file.
* csu/Makefile (routines): Add libc-tls.
(static-only-routines): Add libc-tls.
* elf/dl-support.c (_dl_phdr): New variable.
(_dl_phnum): New variable.
(_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
* sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
for !SHARED.  First look through auxiliary vector.  If TLS always
call __pthread_initialize_minimal.

* sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
in mmap call is never zero.

22 years ago(_dl_phdr): New variable. (_dl_phnum): New variable. (_dl_aux_init): Initialize _dl_p...
Ulrich Drepper [Tue, 23 Jul 2002 22:59:19 +0000 (22:59 +0000)]
(_dl_phdr): New variable. (_dl_phnum): New variable. (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.

22 years agoFix whitespace.
Andreas Jaeger [Tue, 23 Jul 2002 19:36:49 +0000 (19:36 +0000)]
Fix whitespace.

22 years agoUpdate.
Andreas Jaeger [Tue, 23 Jul 2002 19:36:35 +0000 (19:36 +0000)]
Update.

2002-07-23  Andreas Jaeger  <aj@suse.de>

* sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
* sysdeps/x86_64/fpu/s_copysignf.S: Likewise.

22 years agoUse optimized version.
Andreas Jaeger [Tue, 23 Jul 2002 19:36:20 +0000 (19:36 +0000)]
Use optimized version.

22 years agoUpdate.
Ulrich Drepper [Tue, 23 Jul 2002 00:37:27 +0000 (00:37 +0000)]
Update.

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

* Makefile: Actually creat tst-signal.out file when running the test.

22 years agopdate.
Ulrich Drepper [Tue, 23 Jul 2002 00:31:41 +0000 (00:31 +0000)]
pdate.

* libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
creation and removal of the temp file.

22 years agoUpdate.
Ulrich Drepper [Mon, 22 Jul 2002 22:25:20 +0000 (22:25 +0000)]
Update.

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

* libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
file creation.
* test-skeleton.c (create_temp_file): New function.

22 years ago(create_temp_file): New function.
Ulrich Drepper [Mon, 22 Jul 2002 22:18:27 +0000 (22:18 +0000)]
(create_temp_file): New function.

22 years agoUpdate.
Andreas Jaeger [Mon, 22 Jul 2002 11:21:37 +0000 (11:21 +0000)]
Update.

2002-07-22  Andreas Jaeger  <aj@suse.de>

* sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
local label.

22 years ago(elf_machine_load_address): Use local label.
Andreas Jaeger [Mon, 22 Jul 2002 11:21:26 +0000 (11:21 +0000)]
(elf_machine_load_address): Use local label.

22 years ago* wcsmbs/Makefile (strtox-CFLAGS): New variable,
Roland McGrath [Mon, 22 Jul 2002 04:39:52 +0000 (04:39 +0000)]
* wcsmbs/Makefile (strtox-CFLAGS): New variable,

put -I../include before -I../stdlib so we get the right errno.h et al.
(CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
(CFLAGS-wcstof.c): Likewise.
(CFLAGS-wcstold.c): Likewise.
(CFLAGS-wcstod_l.c): Likewise.
(CFLAGS-wcstof_l.c): Likewise.
(CFLAGS-wcstold_l.c): Likewise.

22 years ago* sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
Roland McGrath [Mon, 22 Jul 2002 03:54:50 +0000 (03:54 +0000)]
* sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.

22 years ago2002-07-19 Roland McGrath <roland@frob.com>
Roland McGrath [Mon, 22 Jul 2002 03:54:21 +0000 (03:54 +0000)]
2002-07-19  Roland McGrath  <roland@frob.com>

* sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.

22 years ago(Hooks for Malloc): Correct order of arguments for __memalign_hook.
Ulrich Drepper [Mon, 22 Jul 2002 00:57:09 +0000 (00:57 +0000)]
(Hooks for Malloc): Correct order of arguments for __memalign_hook.

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

* sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
__ASSUME_AT_XID is defined.
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
for 2.4.1 and up.
* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
of AT_UID, AT_EUID, AT_GID, and AT_EGID.

22 years agoUpdate.
Ulrich Drepper [Sat, 20 Jul 2002 16:19:49 +0000 (16:19 +0000)]
Update.

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

* wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
(CFLAGS-wcstof.c): Likewise.
(CFLAGS-wcstold.c): Likewise.
(CFLAGS-wcstod_l.c): Likewise.
(CFLAGS-wcstof_l.c): Likewise.
(CFLAGS-wcstold_l.c): Likewise.

22 years agoUpdate.
Ulrich Drepper [Sat, 20 Jul 2002 04:01:22 +0000 (04:01 +0000)]
Update.

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

* resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
__priority_which_t): Always typedef to int for C++.

22 years agoUpdate.
Ulrich Drepper [Sat, 20 Jul 2002 01:14:41 +0000 (01:14 +0000)]
Update.

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

* configure.in: Add test for __thread support in compiler.
* config.h.in: Add HAVE___THREAD.
* Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
* include/sys/errno.h: Moved to...
* stdlib/sys/errno.h: ...here.  New file.
* stdlib/errno.h: New file.  Moved from...
* include/errno.h: ...here.  Changed into an internal header defining
libc-local things like __set_errno.
* stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
bits/errno.h.
* elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
either.
* elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
from...
(_dl_start_final): ...here.  Add code to initialize tls elements from
bootstrap_map.
* sysdeps/generic/errno-loc.c: Define errno as thread-local variable
if USE_TLS && HAVE___THREAD.
* sysdeps/generic/bits/errno.h: Remove __set_errno definition.
* sysdeps/mach/hurd/bits/errno.h: Likewise.
* sysdeps/standalone/arm/bits/errno.h: Likewise.
* sysdeps/standalone/bits/errno.h: Likewise.
* sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
* sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
* sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
* sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
* sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
* sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
* sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
* sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
use GL(dl_rtld_map), use map parameter.
* sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
* sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
USE_TLS && HAVE___THREAD.
* sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
definitions.  If USE_TLS && HAVE___THREAD store errooor value using
TLS code sequence.
* sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.

* sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
* sysdeps/unix/sysv/linux/grantpt.c: Likewise.
* sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
* sysdeps/unix/sysv/linux/msgctl.c: Likewise.
* sysdeps/unix/sysv/linux/readv.c: Likewise.
* sysdeps/unix/sysv/linux/writev.c: Likewise.

22 years agoUpdate.
Ulrich Drepper [Wed, 17 Jul 2002 23:44:03 +0000 (23:44 +0000)]
Update.

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

* sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
MS_INVALIDATE values.

22 years agoUpdate.
Ulrich Drepper [Wed, 17 Jul 2002 20:44:55 +0000 (20:44 +0000)]
Update.

2002-07-17  Andreas Schwab  <schwab@suse.de>
    Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
* sysdeps/unix/sysv/linux/pwrite.c: Likewise.
* sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
* sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.

22 years agoUpdate.
Ulrich Drepper [Wed, 17 Jul 2002 00:34:35 +0000 (00:34 +0000)]
Update.

2002-07-01  H.J. Lu  <hjl@gnu.org>

* elf/circleload1.c (load_dso): Call "circlemod1" and check
return value.

* elf/circlemod1.c (circlemod1): Return int.
* elf/circlemod2.c (circlemod2): Likewise.
* elf/circlemod2a.c (circlemod2): Likewise.
* elf/circlemod3.c (circlemod3): Likewise.
(circlemod3a): A new function.

22 years agoUpdate.
Ulrich Drepper [Wed, 17 Jul 2002 00:03:55 +0000 (00:03 +0000)]
Update.

* catgets/tst-catgets.c (main): Don't expect results for
untranslated messages.

* math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
(CPPFLAGS-test-idouble.c): Likewise.
(CPPFLAGS-test-ildouble.c): Likewise.

22 years agoUpdate.
Ulrich Drepper [Tue, 16 Jul 2002 20:18:42 +0000 (20:18 +0000)]
Update.

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

* locales/th_TH: Change tel_dom_fmt.
Patch by Theppitak Karoonboonyanan <thep@links.nectec.or.th>.

22 years agoUpdate.
Ulrich Drepper [Tue, 16 Jul 2002 18:15:34 +0000 (18:15 +0000)]
Update.

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

* glibcbug.in: Fix little typo.  Remove STDIO.

* config.h.in: Fail if __FAST_MATH__ is defined.