The Design and Implementation of the FreeBSD Operating System, Second Edition
[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/ChangeLog.13

Version: -  FREEBSD  -  FREEBSD10  -  FREEBSD9  -  FREEBSD92  -  FREEBSD91  -  FREEBSD90  -  FREEBSD8  -  FREEBSD82  -  FREEBSD81  -  FREEBSD80  -  FREEBSD7  -  FREEBSD74  -  FREEBSD73  -  FREEBSD72  -  FREEBSD71  -  FREEBSD70  -  FREEBSD6  -  FREEBSD64  -  FREEBSD63  -  FREEBSD62  -  FREEBSD61  -  FREEBSD60  -  FREEBSD5  -  FREEBSD55  -  FREEBSD54  -  FREEBSD53  -  FREEBSD52  -  FREEBSD51  -  FREEBSD50  -  FREEBSD4  -  FREEBSD3  -  FREEBSD22  -  cheribsd  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1  -  FREEBSD-LIBC  -  FREEBSD8-LIBC  -  FREEBSD7-LIBC  -  FREEBSD6-LIBC  -  GLIBC27 
SearchContext: -  none  -  3  -  10 

    1 2002-10-03  Richard Henderson  <rth@redhat.com>
    2 
    3         * sysdeps/alpha/stxncpy.S: Don't access memory beyond the source
    4         buffer.
    5         * sysdeps/alpha/alphaev6/stxncpy.S: Likewise.
    6 
    7 2002-10-02  Andreas Jaeger  <aj@suse.de>
    8             Guido Guenther  <agx@sigxcpu.org>
    9 
   10         * sysdeps/mips/fpu/fraiseexcpt.c: Add internal definition.
   11         * sysdeps/mips/fpu/fesetenv.c: Likewise.
   12 
   13 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
   14 
   15         * sysdeps/unix/sysv/linux/net/route.h: Include bits/wordsize.h.
   16         (struct rtentry): Make rt_pad4 6 bytes long if __WORDSIZE == 64.
   17         * sysdeps/unix/sysv/linux/alpha/Dist: Remove net/route.h.
   18         * sysdeps/unix/sysv/linux/alpha/net/route.h: Remove.
   19         * sysdeps/unix/sysv/linux/ia64/Dist: Remove net/route.h.
   20         * sysdeps/unix/sysv/linux/ia64/net/route.h: Remove.
   21         * sysdeps/unix/sysv/linux/s390/Dist: Remove net/route.h.
   22         * sysdeps/unix/sysv/linux/s390/net/route.h: Remove.
   23 
   24 2002-10-03  Ulrich Drepper  <drepper@redhat.com>
   25 
   26         * libio/freopen.c: Don't re-set _wide_data element if the stream
   27         is of old style which didn't have the element.
   28         * libio/freopen64.c: Likewise.
   29 
   30 2002-10-02  Ulrich Drepper  <drepper@redhat.com>
   31 
   32         * sysdeps/unix/sysv/linux/x86_64/Dist: Add bits/utmpx.h.
   33         * sysdeps/unix/sysv/linux/sparc/Dist: Likewise.
   34         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
   35 
   36         * sysdeps/s390/s390-32/initfini.c: Avoid unterminated string literals.
   37         * sysdeps/sh/elf/initfini.c: Likewise.
   38         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
   39         * sysdeps/hppa/elf/initfini.c: Likewise.
   40         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Likewise.
   41 
   42 2002-10-02  Steven Munroe  <sjmunroe@us.ibm.com>
   43             Jakub Jelinek  <jakub@redhat.com>
   44 
   45         * login/programs/utmpdump.c (print_entry): Copy up->ut_tv fields
   46         to struct timeval temp_tv before printing to be 32-/64-bit agnostic.
   47         * sysdeps/powerpc/bits/wordsize.h: Move to...
   48         * sysdeps/powerpc/powerpc32/bits/wordsize.h: ...here.
   49         (__WORDSIZE_COMPAT32): Define.
   50         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
   51         * sysdeps/sparc/sparc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
   52         Define.
   53         * sysdeps/sparc/sparc64/bits/wordsize.h (__WORDSIZE_COMPAT32):
   54         Define.
   55         * sysdeps/s390/bits/wordsize.h: Move to...
   56         * sysdeps/s390/s390-32/bits/wordsize.h: ...here.
   57         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
   58         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Define.
   59         * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: New file.
   60         * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: New file.
   61         * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: New file.
   62         * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: New file.
   63         * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: New file.
   64         * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: New file.
   65 
   66 2002-10-02  Jakub Jelinek  <jakub@redhat.com>
   67 
   68         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix comment typo.
   69         Temporarily enable R_ALPHA_NONE relocs in ld.so.
   70         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Temporarily enable
   71         R_IA64_NONE relocs in ld.so.
   72 
   73 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
   74 
   75         * README.template: Minimum Linux kernel for powerpc64 is 2.4.19.
   76 
   77         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (struct ipc_perm):
   78         Use __uint32_t and __uint64_t for __seq, __pad1, __unused[12] fields
   79         so they are consistent between PPC32 and PPC64.
   80 
   81         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__WORDSIZE != 32]:
   82         (_STAT_VER): Define to _STAT_VER_KERNEL.
   83         (stru stat, struct stat64): Define to match the PPC64 kernel.
   84         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
   85         (libc: GLIBC_2.2): Remove __xstat64, __fxstat64, and __lxstat64.
   86         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: New file.
   87         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fxstat64.c: New file.
   88         * sysdeps/unix/sysv/linux/powerpc/powerpc64/lxstat64.c: New file.
   89         * sysdeps/unix/sysv/linux/powerpc/powerpc64/xstat64.c: New file.
   90         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add kernel_stat.h.
   91 
   92 2002-10-02  Roland McGrath  <roland@redhat.com>
   93 
   94         * sysdeps/unix/sysv/linux/xstatconv.c [STAT_IS_KERNEL_STAT]:
   95         Conditionalize the function definitions on this.
   96         * sysdeps/unix/sysv/linux/xstat.c (__xstat) [STAT_IS_KERNEL_STAT]:
   97         Don't use xstat_conv, just fail if VERS != _STAT_VER_KERNEL.
   98         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat) [STAT_IS_KERNEL_STAT]:
   99         Likewise.
  100         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat) [STAT_IS_KERNEL_STAT]:
  101         Likewise.
  102 
  103 2002-10-02  Ulrich Drepper  <drepper@redhat.com>
  104 
  105         * version.h (VERSION): Bump to 2.3.
  106 
  107         * elf/Makefile (distribute): Add tst-tlsmod1.c, tst-tlsmod2.c,
  108         tst-tlsmod3.c, tst-tlsmod4.c, circlemod1.c, circlemod1a.c,
  109         circlemod2.c, circlemod2a.c, circlemod3.c, circlemod3a.c,
  110         and nodlopenmod2.c.
  111 
  112         * login/Makefile (distribute): Add utmp-equal.h.
  113 
  114         * iconvdata/Makefile (distribute): Add TSCII.precomposed and
  115         TSCII.irreversible.
  116 
  117         * Make-dist (dist): Create .bz2 file.  Add rule to create .bz2 files.
  118         Also distribute xtests sources.
  119 
  120 2002-10-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
  121 
  122         * elf/elf.h: Change TLS ELF relocation numbers.
  123         * elf/tls-macros.h: Fix code sequences for SH TLS_LD and TLS_GD
  124         macros.
  125         * sysdeps/sh/dl-machine.h (dl_machine_rela) [case R_SH_TLS_TPOFF32]:
  126         Use addend.
  127         * sysdeps/sh/elf/initfini.c: Move __fpscr_values to...
  128         * sysdeps/sh/elf/start.S: ...here.
  129 
  130 2002-10-01  Jakub Jelinek  <jakub@redhat.com>
  131 
  132         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h (MINSIGSTKSZ,
  133         SIGSTKSZ): Changed to match kernel.
  134         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h: New file.
  135 
  136 2002-10-01  Carlos O'Donell  <carlos@baldric.uwo.ca>
  137 
  138         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
  139         [__USE_GNU] (F_SETLEASE, F_GETLEASE, F_NOTIFY): New macros.
  140         [__USE_GNU] (DN_ACCESS, DN_MODIFY, DN_CREATE, DN_DELETE, DN_RENAME,
  141         DN_ATTRIB, DN_MULTISHOT): New macros.
  142 
  143 2002-02-08  Randolph Chung  <tausq@debian.org>
  144 
  145         * sysdeps/hppa/elf/start.S: Define __data_start.
  146 
  147 2002-10-01  Isamu Hasegawa  <isamu@yamato.ibm.com>
  148 
  149         * posix/regex_internal.c (re_string_reconstruct): Reset the member
  150         LEN and STOP.
  151         * posix/regexec.c (re_search_stub): Remove incorrect condition of
  152         "range < 0".
  153         Round RANGE in case that it is too small.
  154 
  155 2002-10-01  Roland McGrath  <roland@frob.com>
  156 
  157         * config.h.in (NO_HIDDEN): New #undef.
  158         * include/libc-symbols.h [! NO_HIDDEN]: Add this condition to
  159         nonempty definitions of hidden_proto et al.
  160         * configure.in: Grok --disable-hidden-plt to define NO_HIDDEN.
  161         * configure: Regenerated.
  162         * sysdeps/mach/hurd/configure.in: Always define NO_HIDDEN.
  163         * sysdeps/mach/hurd/configure: Regenerated.
  164 
  165 2002-09-19  David Mosberger  <davidm@hpl.hp.com>
  166 
  167         * sysdeps/ia64/dl-fptr.c (make_fdesc): Load address of "local" via
  168         a 64-bit gp-relative address to enable binaries with large data
  169         sections.
  170 
  171 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
  172 
  173         * stdlib/cxa_finalize.c (__cxa_finalize): Call UNREGISTER_ATFORK
  174         if it is defined.
  175         * posix/Makefile (distribute): Add fork.h.
  176         * sysdeps/generic/fork.h: New file.
  177 
  178 2002-09-29  Bruno Haible  <bruno@clisp.org>
  179 
  180         * sysdeps/generic/utmp_file.c (LOCKING_FAILED): New macro.
  181         (UNLOCK_FILE): Add a label.
  182         (getutent_r_file, internal_getut_r, getutline_r_file, pututline_file,
  183         updwtmp_file): Shut off the alarm clock when locking failed.
  184 
  185 2002-09-30  Isamu Hasegawa  <isamu@yamato.ibm.com>
  186 
  187         * posix/regex_internal.h (re_match_context_t): Add a new member.
  188         (re_fail_stack_ent_t): New structure.
  189         (re_fail_stack_t): Likewise.
  190         * posix/regexec.c (re_search_internal): Use the new member of
  191         re_match_context_t.
  192         Use fail stack only if it has back references and there are plural
  193         matching candidates.
  194         (proceed_next_node): Use fail stack if it is indicated.
  195         (set_regs): Likewise.
  196         (push_fail_stack): New function.
  197         (pop_fail_stack): New function.
  198         (check_dst_limits): Likewise.
  199         (check_dst_limits_calc_pos): Likewise.
  200         (search_subexp): Check the limitations on the top of subexpressions.
  201         (sift_states_bkref): Check the limitations of the destination node.
  202         Reuse the array sctx->sifted_states.
  203 
  204 2002-09-30  Ulrich Drepper  <drepper@redhat.com>
  205 
  206         * stdio-common/printf_fp.c: Shuffle a few lines around to help the
  207         compiler optimizing.  No semantical changes intended.
  208 
  209 2002-09-30  Jakub Jelinek  <jakub@redhat.com>
  210 
  211         * sysdeps/ia64/strncpy.S: Only segfault in .recovery2 if some bits
  212         from the next quad are needed.
  213 
  214 2002-09-30  Roland McGrath  <roland@redhat.com>
  215 
  216         * elf/tls-macros.h (TLS_LD, TLS_GD): Use call insn, not callq.
  217 
  218         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD] [! PIC]:
  219         Use direct-%fs form of TLS access for errno.
  220 
  221         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: File removed, since
  222         the i386 version has all the same asm now.
  223 
  224         * sysdeps/i386/elf/configure.in: Add @GOTNTPOFF and @NTPOFF uses to
  225         the TLS support check.
  226         * sysdeps/i386/elf/configure: Regenerated.
  227 
  228         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE_TLS && HAVE___THREAD]
  229         (SYSCALL_ERROR_HANDLER): Use direct-%gs form of TLS access for errno.
  230 
  231         * sysdeps/unix/i386/sysdep.S (syscall_error)
  232         [USE_TLS && HAVE___THREAD]: Use TLS access for errno.
  233 
  234         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
  235         [USE_TLS && HAVE___THREAD] (SYSCALL_ERROR_HANDLER): Use TLS access.
  236 
  237         * rt/tst-aio7.c (do_test): Don't read from stdin, which could be the
  238         terminal when the test is running in a background job.  Instead, make
  239         a pipe and read from its read half while never writing anything to it.
  240 
  241 2002-09-30  Andreas Jaeger  <aj@suse.de>
  242 
  243         * stdlib/tst-bsearch.c (main): Fix format strings.
  244         * stdio-common/tst-rndseek.c (do_test): Likewise.
  245         * libio/tst_swprintf.c (main): Likewise.
  246         * catgets/tst-catgets.c (main): Likewise.
  247         * libio/tst-fgetws.c (main): Likewise.
  248         * posix/tst-mmap.c (main): Likewise.
  249         * posix/bug-regex12.c (main): Likewise.
  250         * posix/bug-regex11.c (main): Likewise.
  251         * io/tst-getcwd.c (do_test): Likewise.
  252 
  253         * iconvdata/tst-e2big.c (test): Use %td in printf for ptrdiff_t.
  254 
  255         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
  256         Store 4 bytes into errno, not 8 bytes.
  257 
  258 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
  259 
  260         * posix/regexec.c (sift_states_bkref): Remove ret variable.  Use
  261         err instead.
  262 
  263 2002-09-29  Roland McGrath  <roland@redhat.com>
  264 
  265         * test-skeleton.c (timeout_handler): Use WUNTRACED flag in waitpid.
  266         Examine the child's status and print something different if it wasn't
  267         just killed by our SIGKILL.
  268         (main): In the child process call setpgid to put it in its own pgrp.
  269 
  270 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
  271 
  272         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): The return value
  273         semantics for sigtimedwait is different.  Rework the return value
  274         handling and don't pass in a siginfo variable.
  275 
  276 2002-09-29  Roland McGrath  <roland@redhat.com>
  277 
  278         * malloc/malloc.c [! MALLOC_DEBUG] (assert): #undef before defining.
  279 
  280         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.2.6): Add __errno_location.
  281 
  282         * sysdeps/unix/sysv/linux/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]:
  283         Define errno in .tbss.
  284         * sysdeps/unix/x86_64/sysdep.S [USE_TLS && HAVE___THREAD]: Use TLS
  285         access for setting errno.
  286 
  287         * sysdeps/unix/x86_64/sysdep.S: Store 32 bits at errno, not 64 bits.
  288         AFAICT, it was just blind luck that the word following errno in .bss
  289         was just alignment padding and not some other variable to be clobbered.
  290 
  291 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
  292 
  293         * sysdeps/unix/sysv/linux/kernel-features.h
  294         (__ASSUME_SETRESUID_SYSCALL): On the sparc, define to 1, not empty.
  295 
  296 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
  297 
  298         * nss/bug-erange.c (main): Don't fail if /etc/resolv.conf doesn't
  299         exist.
  300 
  301 2002-09-29  Ulrich Drepper  <drepper@redhat.com>
  302 
  303         * nss/Makefile: Move bug-erange from tests to xtests.
  304 
  305 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
  306 
  307         * stdlib/longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
  308 
  309 2002-09-29  Jakub Jelinek  <jakub@redhat.com>
  310 
  311         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall0): Make asm
  312         volatile.
  313         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
  314         inline_syscall5, inline_syscall6): Likewise.
  315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
  316         Likewise.
  317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (INLINE_SYSCALL):
  318         Likewise.
  319 
  320 2002-09-29  Roland McGrath  <roland@redhat.com>
  321 
  322         * configure.in (libc_cv_ranlib_necessary check): Put the .o file in
  323         the archive, not the .c file.
  324         * configure: Regenerated.
  325 
  326 2002-09-29  Roland McGrath  <roland@redhat.com>
  327 
  328         * configure: Regenerated after aclocal.m4 change.
  329 
  330         * sysdeps/x86_64/sysdep.h [HAVE_ELF] (L): Define with .L##name form.
  331         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (L): Don't define it here.
  332 
  333         * sysdeps/generic/dl-lookupcfg.h [USE_TLS] (DL_LOOKUP_RETURNS_MAP):
  334         Define it, because _dl_sym presumes it (for any platform).
  335 
  336         * sysdeps/x86_64/dl-tls.h: New file.
  337 
  338         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add a cast.
  339 
  340         * sysdeps/x86_64/elf/configure.in: New file.
  341         * sysdeps/x86_64/elf/configure: New generated file.
  342 
  343 2002-09-28  Roland McGrath  <roland@redhat.com>
  344 
  345         * elf/rtld.c (_dl_start): Fix conditional for declaring CNT.
  346 
  347         * aclocal.m4 (LIBC_PROG_BINUTILS): Don't clobber $RANLIB with ranlib
  348         before we check it.
  349 
  350 2002-09-28  Ulrich Drepper  <drepper@redhat.com>
  351 
  352         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __syscall_exit
  353         entry point.
  354 
  355 2002-09-28  Jakub Jelinek  <jakub@redhat.com>
  356 
  357         * posix/bug-regex11.c (tests): Add flags field.
  358         (main): Avoid warnings.  Use test[i].flags.  Return nonzero
  359         if any of the tests failed.
  360         * posix/bug-regex12.c: New file.
  361         * posix/Makefile (tests): Add bug-regex12.
  362 
  363 2002-03-02  Thorsten Kukuk  <kukuk@suse.de>
  364 
  365         * sysdeps/unix/nice.c (nice): Use getpriority() for the return value.
  366 
  367 2002-09-28  Jeff Bailey  <jbailey@gnu.org>
  368 
  369         * sysdeps/unix/sysv/sysv4/solaris2/configure.in: Delete.
  370         * sysdeps/unix/sysv/aix/configure.in: Update comment and remove
  371         stdio=libio setting.
  372 
  373 2002-09-28  Roland McGrath  <roland@redhat.com>
  374 
  375         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Use INTUSE for
  376         _dl_signal_error.
  377         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
  378         * sysdeps/powerpc/powerpc64/dl-machine.c
  379         (_dl_reloc_overflow): Likewise.
  380         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
  381         (elf_machine_rela): Likewise.
  382 
  383 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
  384 
  385         * include/libc-symbols.h (__hidden_dot_weak1): Fix typo.  Replace
  386         ASM_GLOBAL_DIRECTIVE with .weak.
  387 
  388 2002-09-28  Andreas Jaeger  <aj@suse.de>
  389 
  390         * sysdeps/unix/sysv/linux/mips/truncate64.c (truncate64): Fix
  391         number of args to syscall.
  392         * sysdeps/unix/sysv/linux/mips/ftruncate64.c (__ftruncate64): Likewise.
  393         Patch by Guido Guenther <agx@sigxcpu.org>.
  394 
  395 2002-09-27  Roland McGrath  <roland@redhat.com>
  396 
  397         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite):
  398         Define these to __NR_pread64, __NR_pwrite64 if not defined.
  399 
  400         * sysdeps/unix/sysv/linux/powerpc/lchown.S
  401         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Use this condition
  402         on chown compatibility symbol; use compat_symbol, not symbol_version.
  403 
  404 2002-09-27  Isamu Hasegawa  <isamu@yamato.ibm.com>
  405 
  406         * posix/regcomp.c (reg_free): Free the debug area.
  407         (re_compile_internal): Allocate debug area for the input string.
  408         (create_initial_state): Check the back references in initial states
  409         if they are really match null string in the initial state.
  410         (parse_reg_exp): Mark the dfa that the dfa can have plural matchings.
  411         (parse_expression): Likewise.
  412         (parse_bracket_exp): Likewise.
  413         * posix/regex_internal.c (re_node_set_intersect): Remove unused
  414         function.
  415         (re_node_set_contains): Change to return the index of node.
  416         * posix/regex_internal.h (re_backref_cache_entry): Change the members.
  417         (re_match_context_t): Likewise.
  418         (struct re_dfa_t): Likewise.
  419         (re_sift_context_t): New structure.
  420         * posix/regexec.c (match_ctx_clear_flag): New function.
  421         (sift_ctx_init): Likewise.
  422         (update_cur_sifted_state): Likewise.
  423         (add_epsilon_src_nodes): Likewise.
  424         (sub_epsilon_src_nodes): Likewise.
  425         (check_subexp_limits): Likewise.
  426         (search_subexp): Likewise.
  427         (sift_states_bkref): Likewise.
  428         (merge_state_array): Likewise.
  429         (sift_states_iter_bkref): Remove unused function.
  430         (add_epsilon_backreference): Remove unused function.
  431         (re_search_internal): Adapt new members and interfaces.
  432         (check_matching): Check the back references in initial states
  433         if they are really match null string in the initial state.
  434         (proceed_next_node): Change the evaluation of back references,
  435         since we have real registers here.
  436         (set_regs): Adapt new interface of proceed_next_node.
  437         (sift_states_backward): Add invocation of update_cur_sifted_state
  438         instead of add_epsilon_backreference.
  439         Add a sentinel to the outermost while loop.
  440         Move the handling of back references to sift_states_bkref function,
  441         since we can't handle some back references (e.g. a back reference
  442         which match NULL string) here.
  443         (transit_state_mb): Handle the new member max_mb_elem_len.
  444         (transit_state_bkref_loop): Move the evaluation of back references to
  445         search_subexp function, since we can't evaluate some back references
  446         (e.g. a back reference which can have plural matchings) here.
  447         (match_ctx_init): Adapt the new member.
  448         (match_ctx_add_entry): Adapt the new members.
  449 
  450 2002-09-25  Alan Modra  <amodra@bigpond.net.au>
  451 
  452         * elf/do-rel.h: Define macro DO_ELF_MACHINE_REL_RELATIVE for
  453         'elf_machine_rel_relative'
  454         (elf_dynamic_do_rel): Call DO_ELF_MACHINE_REL_RELATIVE macro
  455         instead of 'elf_machine_rel_relative'.
  456         * sysdeps/hppa/dl-machine.h:
  457         Define macro DO_ELF_MACHINE_REL_RELATIVE for
  458         'elf_machine_rel_relative' with extra map parameter
  459         required by HPPA.
  460         (elf_machine_rela_relative): Add plt relocation changes.
  461 
  462 2001-11-14  Matthew Wilcox  <willy@debian.org>
  463 
  464         * sysdeps/unix/sysv/linux/hppa/bits/ipc.h: New file.
  465         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: New file.
  466         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: New file.
  467         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: New file.
  468 
  469 2002-09-27  Steven Munroe  <sjmunroe@us.ibm.com>
  470 
  471         * sysdeps/powerpc/powerpc32/Makefile: Fix typo in comment.
  472 
  473         * sysdeps/powerpc/powerpc64/Makefile
  474         [$(build-shared) = yes] (pic-ccflag): Define it.
  475         [$(subdir) = csu] (CFLAGS-initfini.s): Add -fpic here too.
  476 
  477 2002-09-27  Roland McGrath  <roland@redhat.com>
  478 
  479         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Remove
  480         unneeded TLS cases.
  481 
  482 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
  483 
  484         * elf/dl-addr.c (_dl_addr): Set dli_fbase to l_map_start
  485         unconditionally.  Set dli_fname to _dl_argv[0] only for main program.
  486 
  487 2002-09-27  Roland McGrath  <roland@redhat.com>
  488 
  489         * elf/dl-addr.c (_dl_addr): Add a cast.
  490 
  491         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [USE_TLS]: Handle new
  492         TLS relocs R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, and R_X86_64_TPOFF64.
  493 
  494         * elf/elf.h (R_X86_64_DTPMOD64, R_X86_64_DTPOFF64, R_X86_64_TPOFF64,
  495         R_X86_64_TLSGD, R_X86_64_TLSLD, R_X86_64_DTPOFF32,
  496         R_x86_64_GOTTPOFF, R_X86_64_TPOFF32): New macros.
  497         (R_X86_64_NUM): Update the value.
  498 
  499 2002-09-24  Jakub Jelinek  <jakub@redhat.com>
  500 
  501         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_load_address): Don't
  502         rely on *r_offset of R_SPARC_RELATIVE reloc in .got to contain the
  503         addend.
  504         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Use
  505         the same l_addr computation.
  506         * sysdeps/sparc/sparc64/configure.in: Removed.
  507         * sysdeps/sparc/sparc64/configure: Removed.
  508         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Remove.
  509 
  510 2002-09-26  Ulrich Drepper  <drepper@redhat.com>
  511 
  512         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_HASH entry
  513         if necessary.
  514         * elf/dl-lookup.c (_dl_setup_hash): DT_HASH entry is already relocated.
  515         * elf/dl-addr.c (_dl_addr): Use .hash[1] entry to determine end of the
  516         symbol table if necessary.
  517 
  518 2002-09-26  Roland McGrath  <roland@redhat.com>
  519 
  520         * stdlib/longlong.h: Replaced with current version from GCC mainline,
  521         last modified 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>.
  522 
  523 2002-09-25  Andreas Jaeger  <aj@suse.de>
  524 
  525         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add syscall_exit.
  526         Patch by Guido Guenther <agx@sigxcpu.org>.
  527 
  528 2002-09-25  Roland McGrath  <roland@redhat.com>
  529 
  530         * Makeconfig (%.v.i pattern rule): Use $(CPPFLAGS).
  531 
  532 2002-09-24  Ulrich Drepper  <drepper@redhat.com>
  533 
  534         * sysdeps/unix/sysv/linux/configure.in: Recognize nptl add-on name.
  535 
  536 2002-09-24  Roland McGrath  <roland@redhat.com>
  537 
  538         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
  539         __libc_write, __libc_lseek64, to ...
  540         (ld: GLIBC_PRIVATE): ... here.
  541 
  542         * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
  543         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
  544         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
  545         * resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
  546         (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
  547         and _res.
  548         (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.
  549 
  550         * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
  551         New macros for x86-64.
  552 
  553         * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
  554         It was indentical to the linux/bits/time.h file.
  555 
  556         * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.
  557 
  558         * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
  559 
  560 2002-09-23  Ulrich Drepper  <drepper@redhat.com>
  561 
  562         * po/zh_CN.po: New file.
  563 
  564 2002-09-23  Roland McGrath  <roland@redhat.com>
  565 
  566         * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
  567         for gethostname declaration.
  568 
  569         * catgets/open_catalog.c (__open_catalog): Don't use a value type
  570         as the __builtin_expect expression, just the Boolean value.
  571 
  572         * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
  573         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
  574         * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
  575         * iconvdata/tst-loading.c (main): Likewise.
  576         * catgets/tst-catgets.c (main): Likewise.
  577         * stdlib/tst-xpg-basename.c (main): Likewise.
  578         * stdlib/tst-bsearch.c (main): Likewise.
  579         * stdio-common/test-vfprintf.c (main): Likewise.
  580         * stdio-common/tst-rndseek.c (do_test): Likewise.
  581         * libio/tst_swprintf.c (main): Likewise.
  582         * libio/tst-fgetws.c (main): Likewise.
  583         * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
  584         * time/tst-posixtz.c (main): Likewise.
  585         * time/tst-strptime.c (test_tm): Likewise.
  586         * time/tst-strptime.c (main): Likewise.
  587         * time/tst-getdate.c (main): Likewise.
  588         * posix/tst-mmap.c (main): Likewise.
  589         * posix/tst-getaddrinfo.c (do_test): Likewise.
  590         * io/tst-getcwd.c (do_test): Likewise.
  591         * resolv/tst-aton.c (main): Likewise.
  592         * inet/tst-network.c (main): Likewise.
  593         * libio/tst-fgetws.c (main): Likewise.
  594         * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
  595         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
  596         for PTYNO.
  597 
  598         * stdlib/msort.c (qsort): Add a cast to silence warning.
  599         * stdio-common/vfprintf.c (process_string_arg): Likewise.
  600         * libio/oldfileops.c (_IO_old_do_write): Likewise.
  601         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
  602         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
  603         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
  604         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
  605         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
  606         * sysdeps/unix/grantpt.c (grantpt): Likewise.
  607         * libio/tst-widetext.c (main): Likewise.
  608         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
  609         * rt/tst-aio.c (test_file): Likewise.
  610         * rt/tst-aio64.c (test_file): Likewise.
  611         * resolv/tst-aton.c (main): Likewise.
  612 
  613         * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
  614 
  615         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
  616         instead of uint32_t in these macros.
  617 
  618 2002-09-22  Bruno Haible  <bruno@clisp.org>
  619 
  620         * iconv/iconv_prog.c (main): Provide an error message that identifies
  621         the wrong encoding.
  622 
  623         * iconvdata/tscii.c: New file.
  624         * iconvdata/testdata/TSCII: New file.
  625         * iconvdata/testdata/TSCII..UTF8: New file.
  626         * iconvdata/TSCII.precomposed: New file.
  627         * iconvdata/TSCII.irreversible: New file.
  628         * iconvdata/gconv-modules (TSCII): New module.
  629         * iconvdata/Makefile (modules): Add TSCII.
  630         (distribute): Add tscii.c.
  631         * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
  632         buffer size.
  633         * iconvdata/tst-tables.sh: Add TSCII.
  634         * iconvdata/TESTS: Add TSCII.
  635 
  636         Revert 2002-04-18 patch.
  637         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
  638         FROM_DIRECTION): Make the FROM direction stateful again.
  639         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
  640         FROM_DIRECTION): Likewise.
  641 
  642         * iconvdata/tst-e2big.c: New file.
  643         * iconvdata/Makefile (tests): Add tst-e2big.
  644 
  645 2002-09-23  Roland McGrath  <roland@redhat.com>
  646 
  647         * elf/Makefile (test-extras): Define this instead of test-srcs.
  648         * Makerules (all-nonlib): Include $(test-extras) too.
  649 
  650 2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
  651 
  652         * sysdeps/hppa/abort-instr.h: New file.
  653 
  654 2002-09-22  Roland McGrath  <roland@frob.com>
  655 
  656         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
  657 
  658         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
  659 
  660 2002-09-22  Andreas Schwab  <schwab@suse.de>
  661 
  662         * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
  663 
  664         * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
  665         (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
  666         Use GCC builtins.
  667 
  668 2002-09-21  Roland McGrath  <roland@redhat.com>
  669 
  670         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
  671         Correct the value so it covers all platforms, and is computed
  672         from _DL_PLATFORMS_COUNT rather than hard-wired.
  673         From Andrew Suffield <asuffield@debian.org>.
  674 
  675 2002-09-20  Ulrich Drepper  <drepper@redhat.com>
  676 
  677         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
  678         locking when using mount tab file.
  679         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
  680         * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
  681         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
  682 
  683         * elf/dl-init.c (_dl_init): Fix test of the size of the
  684         preinit_array section.
  685         (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
  686         Reported by Brian Cabral <cabral@ikuni.com>.
  687 
  688 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
  689 
  690         * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
  691         * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
  692         specific macros copied from sysdeps/powerpc/sysdep.h.
  693         * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
  694         specific macros.
  695         * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
  696         [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
  697         [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
  698 
  699 2002-09-19  Bruno Haible  <bruno@clisp.org>
  700 
  701         * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
  702         returning.
  703 
  704 2002-09-17  Bruno Haible  <bruno@clisp.org>
  705 
  706         * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
  707         * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
  708         also on platforms with !HAVE_UT_TYPE.
  709         (proc_utmp_eq): Remove function.
  710         (internal_getut_r, pututline_file): Call __utmp_equal instead.
  711 
  712 2002-09-20  Bruno Haible  <bruno@clisp.org>
  713 
  714         * abi-tags: Add support for FreeBSD with ABI OS value 3.
  715         * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
  716 
  717 2002-09-20  Roland McGrath  <roland@redhat.com>
  718 
  719         * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
  720         (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
  721         terms of __WORDSIZE.
  722         * sysdeps/x86_64/gmp-mparam.h: File removed.
  723         * sysdeps/sparc/gmp-mparam.h: File removed.
  724         * sysdeps/mips/mips64/gmp-mparam.h: File removed.
  725         * sysdeps/ia64/gmp-mparam.h: File removed.
  726         * sysdeps/alpha/gmp-mparam.h: File removed.
  727 
  728 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
  729 
  730         * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
  731         load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
  732         casts.  Align __libc_stack_end to 8 bytes.
  733 
  734 2002-09-20  Roland McGrath  <roland@redhat.com>
  735 
  736         * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
  737         instead of asm for lrintf, __lrintf aliases.
  738 
  739         * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
  740         int array for 32-/64-bit compatibility.
  741         From Steven Munroe  <sjmunroe@us.ibm.com>.
  742 
  743 2002-09-17  Bruno Haible  <bruno@clisp.org>
  744 
  745         * sysdeps/generic/ifreq.h (__if_nextreq): New function.
  746         * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
  747         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
  748         * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
  749         for iterating through the list of interfaces.
  750         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
  751 
  752 2002-09-20  Roland McGrath  <roland@redhat.com>
  753 
  754         * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
  755         Reported by Bruno Haible <bruno@clisp.org>.
  756 
  757         * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
  758 
  759         * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
  760         * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
  761         isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
  762 
  763 2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
  764 
  765         * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
  766         * sysdeps/powerpc/bits/wordsize.h: New file.
  767         * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
  768         array to int array for 32-/64-bit compatibility.
  769 
  770 2002-09-20  Roland McGrath  <roland@redhat.com>
  771 
  772         * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
  773 
  774         * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
  775         Reported by Bruno Haible <bruno@clisp.org>.
  776 
  777         * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
  778         before doubling RQ_LEN.
  779         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
  780         Reported by Bruno Haible <bruno@clisp.org>.
  781 
  782 2002-09-18  Bruno Haible  <bruno@clisp.org>
  783 
  784         * login/logout.c (logout): Don't assume ut_time has the same size as
  785         a time_t.
  786         * login/logwtmp.c (logwtmp): Likewise.
  787 
  788         * sysdeps/pthread/configure: New file, moved here from
  789         linuxthreads/sysdeps/unix/sysv/linux/configure.
  790 
  791 2002-09-19  Ulrich Drepper  <drepper@redhat.com>
  792 
  793         * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
  794         (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
  795         Reported by Glen Nakamura <glen@imodulo.com>.
  796 
  797 2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
  798 
  799         * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
  800         thread's sigstate data structure if it has been allocated.
  801 
  802 2002-09-19  Roland McGrath  <roland@redhat.com>
  803 
  804         * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
  805         [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
  806 
  807 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
  808 
  809         * version.h (VERSION): Bump to 2.2.94.
  810 
  811         * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
  812         * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
  813         * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
  814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
  815 
  816         * sysdeps/i386/Makefile: Remove obsolete db2 rules.
  817 
  818         * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
  819 
  820         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
  821 
  822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
  823 
  824 2002-09-19  Jakub Jelinek  <jakub@redhat.com>
  825 
  826         * sysdeps/wordsize-32/Makefile: New file.
  827         * sysdeps/arm/Makefile: Removed.
  828         * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
  829         Don't add divdi3 here.
  830         * sysdeps/m68k/Makefile: Likewise.
  831         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
  832         * sysdeps/sh/Makefile: Likewise.
  833         * sysdeps/s390/s390-32/Makefile: Likewise.
  834 
  835 2002-09-18  Roland McGrath  <roland@redhat.com>
  836 
  837         * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
  838         the __ctype_* compat symbols, so the relocs generated bind to the
  839         right versioned global symbol in the shared object.
  840 
  841         * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
  842         from the value taken from the DT_VERSYM table.
  843         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
  844         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
  845         (RESOLVE_GOTSYM): Likewise.
  846 
  847         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
  848         Add libc_hidden_def.
  849         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
  850         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
  851         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
  852         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
  853         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
  854         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
  855         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
  856         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
  857 
  858 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
  859 
  860         * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
  861 
  862         * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
  863         define sigaction and __sigaction as wrappers around
  864         __libc_sigaction which rejects changing SIGCANCEL.
  865         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
  866 
  867         * sysdeps/unix/sysv/linux/i386/clone.S: Add support for SETTLS and
  868         SETTID/CLEARTID.
  869 
  870         * signal/allocrtsig.c: Move to...
  871         * sysdeps/generic/allocrtsig.c: ...here.  New file.
  872 
  873 2002-09-17  Jakub Jelinek  <jakub@redhat.com>
  874 
  875         * elf/dl-lookup.c (_dl_debug_bindings): Print TLS lookups always.
  876 
  877         * elf/elf.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE,
  878         R_386_TLS_LE): Define.
  879         (R_386_TLS_IE_32, R_386_TLS_LE_32, R_386_TLS_TPOFF32): Update
  880         comments.
  881         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Return
  882         ELF_RTYPE_CLASS_PLT for R_386_TLS_TPOFF.
  883         (elf_machine_rel): Handle R_386_TLS_TPOFF.
  884         (elf_machine_rela): Likewise.
  885         Remove unnecessary RTLD_BOOTSTRAP #ifdefs.
  886 
  887 2002-09-17  Roland McGrath  <roland@redhat.com>
  888 
  889         * malloc/Makefile ($(objpfx)memusagestat.o: sysincludes): Define
  890         file-specific variable override so it compiles properly when using
  891         --with-headers.
  892 
  893 2002-09-17  Steven Munroe  <sjmunroe@us.ibm.com>
  894 
  895         Ported to PowerPC64 running Linux.
  896         * sysdeps/powerpc/powerpc64/Dist: New file.
  897         * sysdeps/powerpc/powerpc64/Implies: New file.
  898         * sysdeps/powerpc/powerpc64/Makefile: New file.
  899         * sysdeps/powerpc/powerpc64/__longjmp.S: New file.
  900         * sysdeps/powerpc/powerpc64/atomicity.h: New file.
  901         * sysdeps/powerpc/powerpc64/backtrace.c: New file.
  902         * sysdeps/powerpc/powerpc64/bp-asm.h: New file.
  903         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: New file.
  904         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: New file.
  905         * sysdeps/powerpc/powerpc64/dl-dtprocnum.h: New file.
  906         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: New file.
  907         * sysdeps/powerpc/powerpc64/dl-machine.c: New file.
  908         * sysdeps/powerpc/powerpc64/dl-machine.h: New file.
  909         * sysdeps/powerpc/powerpc64/memset.S: New file.
  910         * sysdeps/powerpc/powerpc64/ppc-mcount.S: New file.
  911         * sysdeps/powerpc/powerpc64/register-dump.h: New file.
  912         * sysdeps/powerpc/powerpc64/setjmp.S: New file.
  913         * sysdeps/powerpc/powerpc64/stpcpy.S: New file.
  914         * sysdeps/powerpc/powerpc64/strchr.S: New file.
  915         * sysdeps/powerpc/powerpc64/strcmp.S: New file.
  916         * sysdeps/powerpc/powerpc64/strcpy.S: New file.
  917         * sysdeps/powerpc/powerpc64/strlen.S: New file.
  918         * sysdeps/powerpc/powerpc64/elf/bzero.S: New file.
  919         * sysdeps/powerpc/powerpc64/elf/start.S: New file.
  920         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: New file.
  921         * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: New file.
  922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: New File.
  923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: New file.
  924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file.
  925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/glob64.c: New file.
  926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: New file.
  927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: New file.
  928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: New file.
  929 
  930         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
  931         (C_SYMBOL_DOT_NAME): Insure that C_SYMBOL_DOT_NAME works for
  932         various gcc versions.  Dot names required for powerpc64.
  933         [HAVE_ASM_GLOBAL_DOT_NAME] (_weak_extern): Add .weakext '.'ed symbol.
  934         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias): Add .global
  935         C_SYMBOL_DOT_NAME(alias).
  936         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): New macro. Same as
  937         original strong_alias macro.
  938         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Add .weakext/.weak
  939         C_SYMBOL_DOT_NAME(alias).
  940         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Add .symver '.'ed name.
  941         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Add .symver
  942         '.'ed name.
  943         Add comments on libc_hidden_data_def and libc_hidden_data_weak usage.
  944         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_def1): New macro.  Generate
  945         .global C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
  946         (hidden_def): Append hidden_dot_def1 macro to definition.
  947         (hidden_ver): Append hidden_dot_def1 macro to definition.
  948         (hidden_data_def): New macro.  Same as original hidden_def macro.
  949         (hidden_data_ver): New macro.  Same as original hidden_ver macro.
  950         [HAVE_ASM_GLOBAL_DOT_NAME] (hidden_dot_weak1): New macro.  Generate
  951         .weakext C_SYMBOL_DOT_NAME(alias).  Otherwise an empty macro.
  952         (hidden_weak): Append hidden_dot_weak1 macro to definition.
  953         (hidden_data_weak): New macro.  Same as original hidden_weak macro.
  954         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Define as .__GI_name.
  955         Otherwise defined as __GI_name.
  956         (libc_hidden_data_def): New macro.  Use hidden_data_def.
  957         (libc_hidden_data_weak): New macro.  Use hidden_data_weak.
  958         (libc_hidden_data_ver): New macro.  Use hidden_data_ver.
  959         (rtld_hidden_data_def): New macro.  Use hidden_data_def.
  960         (rtld_hidden_data_weak): New macro.  Use hidden_data_weak.
  961         (rtld_hidden_data_ver): New macro.  Use hidden_data_ver.
  962         (libm_hidden_data_def): New macro.  Use hidden_data_def.
  963         (libm_hidden_data_weak): New macro.  Use hidden_data_weak.
  964         (libm_hidden_data_ver): New macro.  Use hidden_data_ver.
  965         * inet/in6_addr.c: Replace libc_hidden_def with libc_hidden_data_def.
  966 
  967 2002-09-17  Ulrich Drepper  <drepper@redhat.com>
  968 
  969         * include/libc-symbols.h: Change *hidden_proto macros to accept
  970         option parameters and pass those to the attribute definition.
  971         * include/unistd.h (_exit): Add __noreturn__ to libc_hidden_proto call.
  972 
  973         * include/unistd.h: Declare __libc_pause.
  974 
  975         * include/sys/socket.h: Declare __libc_send, __libc_recv,
  976         __libc_sendto, __libc_sendmsg, __libc_recvmsg, and __libc_accept.
  977 
  978         * include/unistd.h: Declare __libc_fork.
  979 
  980 2002-09-17  Roland McGrath  <roland@redhat.com>
  981 
  982         * sunrpc/xcrypt.c (passwd2des_internal): Renamed fom passwd2des.
  983         (passwd2des): Define it as an alias.
  984         (xencrypt, xdecrypt): Call passwd2des_internal instead of passwd2des.
  985 
  986 2002-09-12  Bruno Haible  <bruno@clisp.org>
  987 
  988         * include/sys/sysctl.h (__sysctl): Add libc_hidden_proto.
  989         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Add libc_hidden_def.
  990 
  991         * include/rpc/xdr.h (xdrstdio_create): Add libc_hidden_proto.
  992         * sunrpc/xdr_stdio.c (xdrstdio_create): Add libc_hidden_def.
  993 
  994 2002-09-05  Steven Munroe  <sjmunroe@us.ibm.com>
  995 
  996         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc64__]
  997         (__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_STAT64_SYSCALL, __ASSUME_IPC64,
  998         __ASSUME_FCNTL64, __ASSUME_MMAP2_SYSCALL): Don't define these.
  999         PowerPC64 does not have separate 64-bit syscalls.
 1000 
 1001 2002-09-16  Roland McGrath  <roland@redhat.com>
 1002 
 1003         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Add a cast.
 1004 
 1005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
 1006         New macro.
 1007 
 1008         * elf/rtld.c [HP_TIMING_NONAVAIL]: Fix last change for this case.
 1009 
 1010         * include/unistd.h: Uncomment libc_hidden_proto for _exit.
 1011         * sysdeps/mach/hurd/_exit.c: Add libc_hidden_def.
 1012         * sysdeps/generic/_exit.c: Likewise.
 1013 
 1014 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
 1015 
 1016         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Regenerate.
 1017 
 1018         * elf/rtld.c (struct dl_start_final_info): New.
 1019         (_dl_start_final): Change second argument to struct
 1020         dl_start_final_info *.  Set start_time from info.
 1021         (_dl_start): Remove bootstrap_map variable, add info.
 1022         Define bootstrap_map as macro.  If not DONT_USE_BOOTSTRAP_MAP,
 1023         store HP_TIMING_NOW result into info.start_time.
 1024 
 1025 2002-09-16  Andreas Jaeger  <aj@suse.de>
 1026 
 1027         * sysdeps/unix/sysv/linux/_exit.c: Add libc_hidden_def and weak_alias
 1028         to _Exit.
 1029         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
 1030 
 1031 2002-09-15  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
 1032 
 1033         * sysdeps/powerpc/abort-instr.h: New file.
 1034 
 1035 2002-09-14  Ulrich Drepper  <drepper@redhat.com>
 1036 
 1037         * sysdeps/generic/libc-start.c (__libc_start_main): Remove bogus
 1038         comment.
 1039 
 1040         * test-skeleton.c (main): Provide more information in case waitpid
 1041         fails.
 1042 
 1043         * include/unistd.h: Declare __exit_thread.
 1044         * sysdeps/generic/libc-start.c (__libc_start_main): Remove dummy_addr.
 1045         Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
 1046         * sysdeps/unix/sysv/linux/exit-thread.S: New file.
 1047         * sysdeps/unix/sysv/linux/_exit.c: New file.
 1048         * sysdeps/unix/sysv/linux/i386/_exit.S: New file.
 1049         * sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
 1050         Add exit-thread.
 1051 
 1052         * configure.in: Add dl_iterate_phdr to test using -nostdlib.
 1053 
 1054 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
 1055 
 1056         * sysdeps/i386/dl-machine.h (elf_machine_rel)
 1057         (case R_386_TLS_DTPMOD32): Don't use addend.
 1058         [case R_386_TLS_TPOFF32]: Remove redundant SYM_MAP != NULL check.
 1059         (elf_machine_rela): Add support for TLS relocs.
 1060 
 1061 2002-09-14  Roland McGrath  <roland@redhat.com>
 1062 
 1063         * Makefile (manual/%): Add this pattern target to the iconvdata/% rule.
 1064 
 1065 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
 1066 
 1067         * stdlib/longlong.h [_ARCH_PPC && W_TYPE_SIZE!=32]: Add powerpc64
 1068         specific asm macros for multiple percision integer math.
 1069 
 1070 2002-06-04  Steven Munroe  <sjmunroe@us.ibm.com>
 1071 
 1072         * sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
 1073         * elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64.
 1074         Remove per-machine conditionals for FLAG_* cases.
 1075         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file.
 1076         * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file.
 1077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
 1078 
 1079 2002-09-10  Alan Modra <amodra@bigpond.net.au>
 1080 
 1081         * csu/gmon-start.c [!TEXT_START]: Define TEXT_START if not already
 1082         defined in entry.h.
 1083         (__gmon_start__) [!ENTRY_POINT_DECL]: Use TEXT_START macro to obtain
 1084         lowest address for profiling in  __monstartup call.
 1085         * sysdeps/powerpc/powerpc64/elf/entry.h: New file.
 1086 
 1087 2002-09-14  Roland McGrath  <roland@redhat.com>
 1088 
 1089         * sysdeps/unix/sysv/linux/pread.c: __NR_pread64 may be defined
 1090         instead of __NR_pread.
 1091         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
 1092         * sysdeps/unix/sysv/linux/pwrite.c: __NR_pwrite64 may be defined
 1093         instead of __NR_pwrite.
 1094         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
 1095 
 1096 2002-09-13  Roland McGrath  <roland@redhat.com>
 1097 
 1098         * manual/libc.texinfo: @ifinfo -> @ifnottex around copyright notice.
 1099 
 1100 2002-09-13  Andreas Jaeger  <aj@suse.de>
 1101 
 1102         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add readahead
 1103         syscall.  Patch by Guido Guenther <agx@sigxcpu.org>.
 1104 
 1105 2002-09-12  Ulrich Drepper  <drepper@redhat.com>
 1106 
 1107         * elf/elf.h: Correct DT_LOOS and DT_HIOS values.
 1108 
 1109 2002-09-10  Ulrich Drepper  <drepper@redhat.com>
 1110 
 1111         * sysdeps/powerpc/fpu/s_isnan.c: #undef __isnanf and isnanf after
 1112         reading the headers.
 1113 
 1114 2002-09-12  Roland McGrath  <roland@redhat.com>
 1115 
 1116         * elf/rtld.c (_dl_start_final): Move _begin, _end decls outside the fn.
 1117         (_dl_start) [DONT_USE_BOOTSTRAP_MAP]: Use &_begin instead of l_addr to
 1118         find the ELF header.
 1119 
 1120         * elf/rtld.c (dl_main) [USE_TLS]: Adjust l_tls_initimage of main
 1121         executable if needed, in case it's actually a shared object.
 1122 
 1123 2002-09-11  Roland McGrath  <roland@redhat.com>
 1124 
 1125         * elf/dl-load.c (_dl_map_object_from_fd): Use l_addr instead of
 1126         l_map_start to adjust l_tls_initimage.
 1127 
 1128         * nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
 1129         when using h_errno and it's not set to NETDB_INTERNAL.
 1130         * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise.
 1131 
 1132         * Makefile ($(common-objpfx)testrun.sh): New target.
 1133         (others): Depend on it.
 1134         (postclean-generated): Append it.
 1135 
 1136         * nss/bug-erange.c: New file.
 1137         * nss/Makefile (tests): Add it.
 1138 
 1139         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
 1140         instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
 1141 
 1142         * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
 1143         strncmp, keeps the code smaller for a non-performance-critical case.
 1144 
 1145         * sysdeps/generic/dl-environ.c (unsetenv): Rewritten using strncmp,
 1146         no longer wrongly matches arbitrary prefixes of NAME.
 1147         Reported by Jakub Jelinek <jakub@redhat.com>.
 1148 
 1149 2002-09-11  Jakub Jelinek  <jakub@redhat.com>
 1150 
 1151         * posix/bug-regex11.c (tests): New array.
 1152         (main): Rewritten to run more different tests.
 1153 
 1154 2002-09-10  Roland McGrath  <roland@redhat.com>
 1155 
 1156         * nscd/Makefile (CPPFLAGS-nscd, CPPFLAGS-nscd_conf, CPPFLAGS-dbg_log)
 1157         (CPPFLAGS-connections, CPPFLAGS-hstcache): Variables removed.
 1158         Instead, catch all of $(nscd-modules) via cppflags-iterator.mk.
 1159 
 1160         * sysdeps/powerpc/fpu/s_isnan.c: Do macro hackery on __GI___isnanf as
 1161         well so we don't get it declared by include/math.h's hidden_proto.
 1162         Then do hidden_proto for __isnanf locally so hidden_def works right.
 1163 
 1164         * posix/bug-regex5.c (main): Use `union locale_data_value' rather than
 1165         a cast to turn nl_langinfo return value into an integer.
 1166 
 1167 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
 1168 
 1169         * posix/regexec.c (build_trtable): Fix the destination of
 1170         newline to prevent wrong states from overwriting.
 1171         Append break statements to optimization.
 1172 
 1173 2002-09-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
 1174 
 1175         * posix/regcomp.c: Wrap #include wchar.h and wctype.h in #if.
 1176         (build_range_exp): Add castings to strlen invocations.
 1177         (build_collating_symbol): Restore the type of characters from "char"
 1178         to "unsigned char", and supplement castings.
 1179         (build_collating_symbol): Likewise.
 1180         (build_equiv_class): Likewise.
 1181         (build_charclass): Likewise.
 1182         (seek_collating_symbol_entry): Likewise.
 1183         (parse_bracket_exp): Likewise.
 1184         (build_word_op): Supplement a casting.
 1185         * posix/regex_internal.c: Wrap #include wchar.h and wctype.h in #if.
 1186         (re_string_allocate): Fix castings.
 1187         (re_string_construct): Likewise.
 1188         (re_string_construct_common): Likewise.
 1189         (re_string_realloc_buffers): Likewise.
 1190         (build_wcs_buffer): Likewise.
 1191         (build_wcs_upper_buffer): Likewise.
 1192         (re_string_skip_chars): Likewise.
 1193         (re_string_reconstruct): Likewise.
 1194         * posix/regex_internal.h: Restore the type of characters in
 1195         re_string_t and bracket_elem_t from "char" to "unsigned char".
 1196         (re_string_elem_size_at): Fix castings.
 1197         * posix/regexec.c: Wrap #include wchar.h and wctype.h in #if.
 1198         (transit_state_bkref_loop): Restore the type of characters from
 1199         "char" to "unsigned char", and append a cast to "char*" pointer in
 1200         array subscript.
 1201         (check_node_accept_bytes): Likewise.
 1202         (find_collation_sequence_value): Likewise.
 1203 
 1204 2002-09-10  Hartvig Ekner  <hartvige@mips.com>
 1205 
 1206         * sysdeps/mips/memcpy.S: New file.
 1207         * sysdeps/mips/memset.S: New file.
 1208         * sysdeps/mips/fpu/e_sqrt.c:  New file.
 1209         * sysdeps/mips/fpu/e_sqrtf.c: New file.
 1210 
 1211         * fpu/fclrexcpt.c: Cleaned up the FPU exception stuff - was not
 1212         functional before. Also removed all SHLIB_COMPAT stuff.
 1213         * fpu/fegetenv.c: Likewise.
 1214         * fpu/fesetenv.c:: Likewise.
 1215         * fpu/feupdateenv.c: Likewise.
 1216         * fpu/fgetexcptflg.c: Likewise.
 1217         * fpu/fraiseexcpt.c: Likewise.
 1218 
 1219         * sysdeps/mips/fpu/fsetexcptflg.c: New file.
 1220 
 1221 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
 1222 
 1223         * include/math.h (__finite_internal, __finitef_internal,
 1224         __finitel_internal, __isinf_internal, __isnan_internal): Remove.
 1225         (isfinite): Remove.
 1226         (__finite, __isinf, __isnan, __finitef, __isinff, __isnanf, __finitel,
 1227         __isinfl, __isnanl): Add hidden_proto.
 1228         (__fpclassify, __fpclassifyf, __fpclassifyl, __expm1l): Add
 1229         libm_hidden_proto.
 1230         * math/Makefile (libm-calls): Add s_isinf and s_isnan.
 1231         * stdio-common/printf_fp.c (__printf_fp): Remove INTUSE from
 1232         __is{inf,nan} calls.
 1233         * stdio-common/printf_size.c (printf_size): Likewise.
 1234         * sysdeps/generic/printf_fphex.c (__printf_fphex): Likewise.
 1235         * sysdeps/generic/s_ldexp.c (__ldexp): Likewise.
 1236         * sysdeps/generic/s_ldexpf.c (__ldexpf): Likewise.
 1237         * sysdeps/generic/s_ldexpl.c (__ldexpl): Likewise.
 1238         * sysdeps/generic/s_expm1l.c (__expm1l): Add libm_hidden_def.
 1239         * sysdeps/i386/fpu/s_finite.S (__finite_internal): Remove alias.
 1240         (__finite): Add hidden_def.
 1241         * sysdeps/i386/fpu/s_finitef.S (__finitef_internal): Remove alias.
 1242         (__finitef): Add hidden_def.
 1243         * sysdeps/i386/fpu/s_finitel.S (__finitel_internal): Remove alias.
 1244         (__finitel): Add hidden_def.
 1245         * sysdeps/i386/fpu/s_isinfl.c (__isinfl): Remove INTDEF.  Add
 1246         hidden_def.
 1247         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
 1248         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Add
 1249         libm_hidden_def.
 1250         * sysdeps/i386/fpu/s_expm1l.S (__expm1l): Likewise.
 1251         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Remove INTDEF.  Add
 1252         hidden_def.
 1253         * sysdeps/ieee754/dbl-64/s_isinf.c (__isinf): Likewise.
 1254         (__isinfl): Remove INTDEF.
 1255         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Remove INTDEF.  Add
 1256         hidden_def.
 1257         (__isnanl): Remove INTDEF.
 1258         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Add
 1259         libm_hidden_def.
 1260         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Use __sin and __cos
 1261         instead of sin and cos.
 1262         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Remove INTDEF.
 1263         Add hidden_def.
 1264         * sysdeps/ieee754/flt-32/s_isinff.c (__isinff): Likewise.
 1265         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
 1266         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Add
 1267         libm_hidden_def.
 1268         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Remove INTDEF.
 1269         Add hidden_def.
 1270         * sysdeps/ieee754/ldbl-128/s_isinfl.c (__isinfl): Likewise.
 1271         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
 1272         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl): Add
 1273         libm_hidden_def.
 1274         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add
 1275         libm_hidden_def.
 1276         * sysdeps/ieee754/ldbl-96/s_finitel.c (__finitel): Remove INTDEF.
 1277         Add hidden_def.
 1278         * sysdeps/ieee754/ldbl-96/s_isinfl.c (__isinfl): Likewise.
 1279         * sysdeps/ieee754/ldbl-96/s_isnanl.c (__isnanl): Likewise.
 1280         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c (__fpclassifyl): Add
 1281         libm_hidden_def.
 1282         * sysdeps/ia64/fpu/s_finite.S (__finite_internal, __finitef_internal,
 1283         __finitel_internal): Remove aliases.
 1284         (__finite, __finitef, __finitel): Add hidden_def.
 1285         * sysdeps/ia64/fpu/s_isnan.S (__isnan_internal, __isnanf_internal,
 1286         __isnanl_internal): Remove aliases.
 1287         (__isnan, __isnanf, __isnanl): Add hidden_def.
 1288         * sysdeps/ia64/fpu/s_isinf.S (__isinf_internal, __isinff_internal,
 1289         __isinfl_internal): Remove aliases.
 1290         (__isinf, __isinff, __isinfl): Add hidden_def.
 1291         * sysdeps/ia64/fpu/s_fpclassify.S (__fpclassify, __fpclassifyf,
 1292         __fpclassifyl): Add libm_hidden_def.
 1293         * sysdeps/ia64/fpu/s_expm1l.S (__expm1l): Likewise.
 1294         * sysdeps/m68k/s_isinfl.c (__isinfl): Remove INTDEF.  Add hidden_def.
 1295         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Remove.
 1296         (hidden_defx): Define and use.
 1297         * sysdeps/m68k/fpu/s_fpclassifyl.c (__fpclassifyl): Add
 1298         libm_hidden_def.
 1299         * sysdeps/m68k/fpu/s_expm1l.c (__expm1l): Likewise.
 1300         * sysdeps/m68k/s_isnanl.c (__isnanl): Add hidden_def.
 1301         * sysdeps/powerpc/fpu/s_isnan.c (__isnan, __isnanf, __isnanl):
 1302         Remove INTDEF.
 1303         (__isnan, __isnanf): Add hidden_def.
 1304         * sysdeps/x86_64/fpu/s_finitel.S (__finitel_internal): Remove alias.
 1305         (__finitel): Add libm_hidden_def.
 1306         * sysdeps/x86_64/fpu/s_expm1l.S (__expm1l): Likewise.
 1307 
 1308         * include/fenv.h (feraiseexcept, fesetenv): Add libm_hidden_proto.
 1309         * sysdeps/alpha/fpu/fesetenv.c (fesetenv): Add libm_hidden_ver.
 1310         * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
 1311         * sysdeps/arm/fpu/fesetenv.c (fesetenv): Likewise.
 1312         * sysdeps/arm/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
 1313         * sysdeps/generic/fesetenv.c (fesetenv): Likewise.
 1314         * sysdeps/generic/fraiseexcpt.c (feraiseexcept): Likewise.
 1315         * sysdeps/i386/fpu/fesetenv.c (fesetenv): Likewise.
 1316         * sysdeps/i386/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
 1317         * sysdeps/m68k/fpu/fesetenv.c (fesetenv): Likewise.
 1318         * sysdeps/m68k/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
 1319         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Likewise.
 1320         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
 1321         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Likewise.
 1322         * sysdeps/powerpc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
 1323         * sysdeps/sparc/fpu/fesetenv.c (fesetenv): Likewise.
 1324         * sysdeps/sparc/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
 1325         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Add libm_hidden_def.
 1326         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
 1327         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Likewise.
 1328         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
 1329         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
 1330         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
 1331         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
 1332         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
 1333         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Likewise.
 1334         * sysdeps/x86_64/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
 1335 
 1336 2002-09-09  Steven Munroe  <sjmunroe@us.ibm.com>
 1337 
 1338         * elf/elf.h: Add powerpc64 specific elf relocation and dynamic types.
 1339 
 1340 2002-09-09  Jakub Jelinek  <jakub@redhat.com>
 1341 
 1342         * elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
 1343         LD_DEBUG=statistics or LD_TRACE_PRELINKING.
 1344 
 1345 2002-09-09  Ulrich Drepper  <drepper@redhat.com>
 1346 
 1347         * string/stratcliff.c: Some more strncpy tests.
 1348         Patch by Daniel Jacobowitz <drow@mvista.com>.
 1349 
 1350 2002-09-08  Roland McGrath  <roland@redhat.com>
 1351 
 1352         * resolv/resolv.h: Include <sys/types.h> for u_long even in
 1353         the [__need_res_state] case.
 1354         Reported by Bruno Haible <bruno@clisp.org>.
 1355 
 1356 2002-09-04  Bruno Haible  <bruno@clisp.org>
 1357 
 1358         * sysdeps/generic/bits/ustat.h: Comment fix.
 1359         * io/sys/sendfile.h: Comment fix.
 1360         * sysdeps/posix/pread.c: Comment fix.
 1361         * sysdeps/posix/pread64.c: Comment fix.
 1362         * sysdeps/posix/pwrite.c: Comment fix.
 1363         * sysdeps/posix/pwrite64.c: Comment fix.
 1364 
 1365 2002-09-06  Roland McGrath  <roland@redhat.com>
 1366 
 1367         * posix/sys/utsname.h (_UTSNAME_SYSNAME_LENGTH): New macro, defined
 1368         to _UTSNAME_LENGTH if not already defined by <bits/utsname.h>.
 1369         (_UTSNAME_RELEASE_LENGTH, _UTSNAME_VERSION_LENGTH): Likewise.
 1370         (_UTSNAME_MACHINE_LENGTH): Likewise.
 1371         (struct utsname): Use new macros instead of _UTSNAME_LENGTH.
 1372 
 1373 2002-09-06  Ulrich Drepper  <drepper@redhat.com>
 1374 
 1375         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Correct
 1376         test for filesystem type name of mount points.
 1377 
 1378         * include/errno.h: Use errno definition with __thread for now only
 1379         in libc and ld.so.
 1380 
 1381         * test-skeleton.c (main): Improve error message for unexpected
 1382         signal case.
 1383 
 1384 2002-09-05  Roland McGrath  <roland@redhat.com>
 1385 
 1386         * ctype/ctype-info.c: Renamed __ctype_old_* symbols to __ctype_*.
 1387         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
 1388 
 1389 2002-09-05  Jakub Jelinek  <jakub@redhat.com>
 1390 
 1391         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Unlock and return in
 1392         case of failure.
 1393 
 1394 2002-09-04  Bruno Haible  <bruno@clisp.org>
 1395 
 1396         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h (sigset_set_old_mask,
 1397         sigset_get_old_mask): Turn into inline functions.
 1398         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h (sigset_set_old_mask,
 1399         sigset_get_old_mask): Likewise.
 1400         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h (sigset_set_old_mask,
 1401         sigset_get_old_mask): Likewise.
 1402         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Declutter
 1403         syntax.
 1404 
 1405         * elf/readlib.c (process_file): Conditionalize check for QMAGIC.
 1406 
 1407         * sysdeps/generic/_strerror.c (_sys_errlist, _sys_nerr): Remove
 1408         default definitions.
 1409         (__strerror_r): Use _sys_errlist_internal instead of _sys_errlist,
 1410         _sys_nerr_internal instead of _sys_nerr.
 1411 
 1412         * nscd/connections.c (handle_request): Declare CALLER inside #if.
 1413 
 1414 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
 1415 
 1416         * sysdeps/powerpc/__longjmp.S: Moved to...
 1417         * sysdeps/powerpc/powerpc32/__longjmp.S: ...here.
 1418         * sysdeps/powerpc/add_n.S: Moved to...
 1419         * sysdeps/powerpc/powerpc32/add_n.S: ...here.
 1420         * sysdeps/powerpc/addmul_1.S: Moved to...
 1421         * sysdeps/powerpc/powerpc32/addmul_1.S: ...here.
 1422         * sysdeps/powerpc/atomicity.h: Moved to...
 1423         * sysdeps/powerpc/powerpc32/atomicity.h: ...here.
 1424         * sysdeps/powerpc/backtrace.c: Moved to...
 1425         * sysdeps/powerpc/powerpc32/backtrace.c: ...here.
 1426         * sysdeps/powerpc/bp-asm.h: Moved to...
 1427         * sysdeps/powerpc/powerpc32/bp-asm.h: ...here.
 1428         * sysdeps/powerpc/bsd-_setjmp.S: Moved to...
 1429         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: ...here.
 1430         * sysdeps/powerpc/bsd-setjmp.S: Moved to...
 1431         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: ...here.
 1432         * sysdeps/powerpc/dl-machine.c: Moved to...
 1433         * sysdeps/powerpc/powerpc32/dl-machine.c: ...here.
 1434         * sysdeps/powerpc/dl-machine.h: Moved to...
 1435         * sysdeps/powerpc/powerpc32/dl-machine.h: ...here.
 1436         * sysdeps/powerpc/dl-start.S: Moved to...
 1437         * sysdeps/powerpc/powerpc32/dl-start.S: ...here.
 1438         * sysdeps/powerpc/gprrest0.S: Moved to...
 1439         * sysdeps/powerpc/powerpc32/gprrest0.S: ...here.
 1440         * sysdeps/powerpc/gprrest1.S: Moved to...
 1441         * sysdeps/powerpc/powerpc32/gprrest1.S: ...here.
 1442         * sysdeps/powerpc/gprsave0.S: Moved to...
 1443         * sysdeps/powerpc/powerpc32/gprsave0.S: ...here.
 1444         * sysdeps/powerpc/gprsave1.S: Moved to...
 1445         * sysdeps/powerpc/powerpc32/gprsave1.S: ...here.
 1446         * sysdeps/powerpc/lshift.S: Moved to...
 1447         * sysdeps/powerpc/powerpc32/lshift.S: ...here.
 1448         * sysdeps/powerpc/memset.S: Moved to...
 1449         * sysdeps/powerpc/powerpc32/memset.S: ...here.
 1450         * sysdeps/powerpc/mul_1.S: Moved to...
 1451         * sysdeps/powerpc/powerpc32/mul_1.S: ...here.
 1452         * sysdeps/powerpc/ppc-mcount.S: Moved to...
 1453         * sysdeps/powerpc/powerpc32/ppc-mcount.S: ...here.
 1454         * sysdeps/powerpc/register-dump.h: Moved to...
 1455         * sysdeps/powerpc/powerpc32/register-dump.h: ...here.
 1456         * sysdeps/powerpc/rshift.S: Moved to...
 1457         * sysdeps/powerpc/powerpc32/rshift.S: ...here.
 1458         * sysdeps/powerpc/setjmp.S: Moved to...
 1459         * sysdeps/powerpc/powerpc32/setjmp.S: ...here.
 1460         * sysdeps/powerpc/stpcpy.S: Moved to...
 1461         * sysdeps/powerpc/powerpc32/stpcpy.S: ...here.
 1462         * sysdeps/powerpc/strchr.S: Moved to...
 1463         * sysdeps/powerpc/powerpc32/strchr.S: ...here.
 1464         * sysdeps/powerpc/strcmp.S: Moved to...
 1465         * sysdeps/powerpc/powerpc32/strcmp.S: ...here.
 1466         * sysdeps/powerpc/strcpy.S: Moved to...
 1467         * sysdeps/powerpc/powerpc32/strcpy.S: ...here.
 1468         * sysdeps/powerpc/strlen.S: Moved to...
 1469         * sysdeps/powerpc/powerpc32/strlen.S: ...here.
 1470         * sysdeps/powerpc/sub_n.S: Moved to...
 1471         * sysdeps/powerpc/powerpc32/sub_n.S: ...here.
 1472         * sysdeps/powerpc/submul_1.S: Moved to...
 1473         * sysdeps/powerpc/powerpc32/submul_1.S: ...here.
 1474         * sysdeps/powerpc/elf/bzero.S: Moved to...
 1475         * sysdeps/powerpc/powerpc32/elf/bzero.S: ...here.
 1476         * sysdeps/powerpc/elf/start.S: Moved to...
 1477         * sysdeps/powerpc/powerpc32/elf/start.S: ...here.
 1478         * sysdeps/powerpc/fpu/__longjmp.S: Moved to...
 1479         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: ...here.
 1480         * sysdeps/powerpc/fpu/fprrest.S: Moved to...
 1481         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: ...here.
 1482         * sysdeps/powerpc/fpu/fprsave.S: Moved to...
 1483         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: ...here.
 1484         * sysdeps/powerpc/fpu/setjmp.S: Moved to...
 1485         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: ...here.
 1486         * sysdeps/powerpc/fpu/s_copysign.S: Moved to...
 1487         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: ...here.
 1488         * sysdeps/powerpc/fpu/s_copysignf.S: Moved to...
 1489         * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: ...here.
 1490         * sysdeps/unix/sysv/linux/powerpc/brk.S: Moved to...
 1491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: ...here.
 1492         * sysdeps/unix/sysv/linux/powerpc/clone.S: Moved to...
 1493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: ...here.
 1494         * sysdeps/unix/sysv/linux/powerpc/glob64.c: Moved to...
 1495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
 1496         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h: Moved to...
 1497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: ...here.
 1498         * sysdeps/unix/sysv/linux/powerpc/socket.S: Moved to...
 1499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: ...here.
 1500         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Moved to...
 1501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: ...here.
 1502         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Moved to...
 1503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: ...here.
 1504         Support PowerPC64.  Separate powerpc into powerpc/powerpc32 and
 1505         powerpc/powerpc64.
 1506 
 1507 2002-07-29  Steven Munroe  <sjmunroe@us.ibm.com>
 1508 
 1509         * FAQ.in: Add powerpc64 to supported targets list. Also state the
 1510         minimum gcc version is 3.2
 1511         * README: Add powerpc64 to supported targets list.
 1512         * configure.in: Change machine=powerpc to machine=powerpc/powerpc32.
 1513         Add powerpc64 and machine=powerpc/powerpc64.
 1514         (HAVE_ASM_GLOBAL_DOT_NAME): Define if linux*powerpc/powerpc64*.
 1515         * shlib-versions: Set DEFAULT version to 2.2.5 for powerpc64.
 1516         * sysdeps/powerpc/Dist: Remove dl-machine.c, dl-start.S, ppc-mcount.S,
 1517         gprsave1.S, gprsave0.S, gprrest1.S, and gprrest0.S.
 1518         * sysdeps/powerpc/powerpc32/Dist: New file.
 1519         * sysdeps/powerpc/Implies: Remove wordsize-32 and powerpc/soft-fp.
 1520         * sysdeps/powerpc/powerpc32/Implies: New file.
 1521         * sysdeps/powerpc/Makefile(cflags): Remove powerpc32 specific cflags.
 1522         ($(with-fp) = no): Move test to powerpc32/Makefile.
 1523         ($(subdir) = misc): Move to powerpc32/Makefile.
 1524         ($(build-shared) = yes): Move to powerpc32/Makefile.
 1525         ($(subdir) = csu): Move to powerpc32/Makefile.
 1526         (sysdep-rtld-routines): Remove dl-start.  Moved these bits to ...
 1527         * sysdeps/powerpc/powerpc32/Makefile: New file.
 1528         * sysdeps/powerpc/Versions: Remove libgcc functions.
 1529         * sysdeps/powerpc/powerpc32/Versions: New file.
 1530         * sysdeps/powerpc/fpu/Makefile: Remove fprsave and fprrest.
 1531         * sysdeps/powerpc/powerpc32/fpu/Makefile: New file.
 1532         * sysdeps/unix/sysv/linux/configure.in (powerpc*):
 1533         Set arch_minimum_kernel=2.4.19 for powerpc/powerpc64. Also set
 1534         libc_cv_gcc_unwind_find_fde=yes only if !powerpc/powerpc64.
 1535         ($machine): Add powerpc/powerpc64 to if ... | for
 1536         libc_cv_slibdir=/libc64.
 1537         (powerpc*): Set ldd_rewrite_script.
 1538         * sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed: New file.
 1539         * sysdeps/unix/sysv/linux/powerpc/Dist: Remove clone.S.
 1540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: New file.
 1541         Add clone.S.
 1542         * sysdeps/unix/sysv/linux/powerpc/Makefile: Remove oldgetrlimit64.
 1543         * sysdeps/unix/sysv/linux/powerpc/Versions: Remove GLIBC_2.0
 1544         functions.  Remove GLIBC_2.2 functions except getrlimit and
 1545         setrlimit.  Moved them to ...
 1546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: New file.
 1547 
 1548 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
 1549 
 1550         * libio/tst-atime.c: Include <errno.h>.
 1551         (do_test): Only perform fstatvfs check if ST_NOATIME is defined.
 1552 
 1553 2002-09-03  Isamu Hasegawa  <isamu@yamato.ibm.com>
 1554 
 1555         * posix/regcomp.c (regcomp): Append "__restrict" modifier to avoid
 1556         warnings of some compilers.
 1557         (build_collating_symbol): Change the type of characters from
 1558         "unsigned char" to "char", and append a cast to "char*" pointer in
 1559         array subscript.
 1560         (build_collating_symbol): Likewise.
 1561         (build_equiv_class): Likewise.
 1562         (build_charclass): Likewise.
 1563         (re_compile_pattern): Remove incorrect cast.
 1564         (re_compile_fastmap_iter): Change the type of characters from
 1565         "unsigned char" to "char", and append a cast to "char*" pointer
 1566         in array subscript.
 1567         (parse_bracket_exp): Likewise.
 1568         * posix/regex_internal.c (re_string_construct_common): Likewise.
 1569         (re_string_allocate): Likewise.
 1570         (re_string_construct): Likewise.
 1571         (re_string_realloc_buffers): Likewise.
 1572         (build_wcs_buffer): Likewise.
 1573         (re_string_reconstruct): Likewise.
 1574         * posix/regex_internal.h: Change the type of characters in
 1575         re_string_t and bracket_elem_t from "unsigned char" to "char".
 1576         * posix/regexec.c (regexec): Append "__restrict" modifier to avoid
 1577         warnings of some compilers.
 1578         (transit_state_bkref_loop): Change the type of characters from
 1579         "unsigned char" to "char", and append a cast to "char*" pointer in
 1580         array subscript.
 1581         (check_node_accept_bytes): Likewise.
 1582         (find_collation_sequence_value): Likewise.
 1583 
 1584 2002-09-04  Roland McGrath  <roland@redhat.com>
 1585 
 1586         * resolv/nss_dns/dns-network.c (MAXPACKET): Increase minimum value
 1587         from 1024 to 65536, to avoid buffer overrun.
 1588 
 1589 2002-09-03  Gerhard Tonn  <ton@de.ibm.com>
 1590 
 1591         * sysdeps/s390/s390/fpu/libm-test-ulps: Regenerate.
 1592 
 1593 2002-09-04  Ulrich Drepper  <drepper@redhat.com>
 1594 
 1595         * libio/tst-atime.c (do_test): Make sure noatime flag isn't set
 1596         for filesystem.
 1597 
 1598 2002-09-04  Jakub Jelinek  <jakub@redhat.com>
 1599 
 1600         * posix/bug-regex11.c: New test.
 1601         * posix/Makefile (tests): Add bug-regex11.
 1602 
 1603 2002-09-03  Jakub Jelinek  <jakub@redhat.com>
 1604 
 1605         * locale/tst-C_locale.c (run_test): Pass LC_ALL_MASK not LC_ALL to
 1606         newlocale.
 1607 
 1608 2002-09-02  Roland McGrath  <roland@redhat.com>
 1609 
 1610         * sysdeps/powerpc/elf/libc-start.c [! SHARED]: Call
 1611         __pthread_initialize_minimal and __libc_check_standard_fds to
 1612         match the generic version.
 1613 
 1614         * sysdeps/unix/sysv/linux/shmat.c (shmat): Add a cast to avoid a
 1615         warning when INLINE_SYSCALL macro uses the __syscall_ipc function.
 1616 
 1617         * locale/localeconv.c (__localeconv): Cast -1 to char to avoid
 1618         warnings on platorms where char is unsigned.
 1619 
 1620 2002-09-02  Ulrich Drepper  <drepper@redhat.com>
 1621 
 1622         * version.h (VERSION): Bump to 2.2.93.
 1623 
 1624         * sysdeps/unix/sysv/linux/x86_64/Dist: Add __start_context.S.
 1625 
 1626 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
 1627 
 1628         * elf/rtld.c (dl_main): If prelinking succeeded, mark all objects
 1629         as relocated.
 1630 
 1631 2002-09-02  Jack Howarth  <howarth@bromo.msbb.uc.edu>
 1632 
 1633         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
 1634 
 1635 2002-09-02  Jakub Jelinek  <jakub@redhat.com>
 1636 
 1637         * locale/localeinfo.h (struct locale_data): Add private.ctype.
 1638         * wcsmbs/wcsmbsload.h (__wcsmbs_gconv_fcts, __wcsmbs_last_locale,
 1639         __wcsmbs_to_wc, update_conversion_ptrs): Removed.
 1640         (__wcsmbs_gconv_fcts_c, _nl_C_LC_CTYPE): New externs.
 1641         (__wcsmbs_load_conv): Remove const from argument.
 1642         (_nl_cleanup_ctype): New proto.
 1643         (get_gconv_fcts): New function.
 1644         * wcsmbs/wcsmbsload.c (__wcsmbs_last_locale): Removed.
 1645         (__wcsmbs_to_wc): Rename back to...
 1646         (to_wc): ... this.
 1647         (__wcsmbs_gconv_fcts): Rename to...
 1648         (__wcsmbs_gconv_fcts_c): ... this.  Make const.  Use to_wc.
 1649         (lock): Removed.
 1650         (__libc_setlocale_lock): New extern.
 1651         (__wcsmbs_load_conv): Remove const from argument.
 1652         Initialize new_category->private.ctype instead of a global
 1653         variable.
 1654         (__wcsmbs_clone_conv): Use get_gconv_fcts instead of
 1655         update_function_ptrs.  No locking is necessary.
 1656         (_nl_cleanup_ctype): New function.
 1657         * wcsmbs/btowc.c (__btowc): Use get_gconv_fcts instead of
 1658         update_function_ptrs and a global __wcsmbs_gconv_fcts variable.
 1659         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
 1660         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
 1661         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
 1662         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
 1663         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
 1664         * wcsmbs/wctob.c (wctob): Likewise.
 1665         * stdlib/mblen.c (mblen): Likewise.
 1666         * stdlib/mbtowc.c (mbtowc): Likewise.
 1667         * stdlib/wctomb.c (wctomb): Likewise.
 1668         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
 1669         Remove calls to wcsmbs_get_towc_func and wcsmbs_free_funcs.
 1670         * wcsmbs/mbsrtowcs_l.c (wcsmbs_get_towc_func, wcsmbs_free_funcs):
 1671         Removed.
 1672 
 1673 2002-09-02  Roland McGrath  <roland@frob.com>
 1674 
 1675         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Add __fxstat64.
 1676 
 1677 2002-09-01  Roland McGrath  <roland@redhat.com>
 1678 
 1679         * ctype/ctype.h (__ctype_b, __ctype_toupper, __ctype_tolower):
 1680         Variable declarations removed.
 1681         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Declare
 1682         these functions to replace them.
 1683         (__isctype, tolower, toupper, _tolower, _toupper): Use those accessor
 1684         functions plus an indirection rather than the old global variables.
 1685         * include/ctype.h (__isctype, tolower, _tolower, toupper, _toupper):
 1686         Macros removed.
 1687         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): New extern
 1688         inline functions.
 1689         * ctype/ctype-info.c: Revert last reversion back the other way.
 1690         Define tsd vars CTYPE_B, CTYPE_TOLOWER, CTYPE_TOUPPER.
 1691         Define real function versions of include/ctype.h inlines here.
 1692         * ctype/Versions (libc: GLIBC_2.3): Add __ctype_b_loc,
 1693         __ctype_tolower_loc, __ctype_toupper_loc.
 1694         * locale/lc-ctype.c: Revert last reversion back the other way.
 1695         (_nl_postload_ctype): If current thread uses the global locale,
 1696         update its tsd vars.
 1697         * locale/uselocale.c (__uselocale): Update tsd vars from new locale.
 1698         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add CTYPE_B,
 1699         CTYPE_TOLOWER, CTYPE_TOUPPER.
 1700 
 1701         * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_address): New macro.
 1702         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_address): Renamed
 1703         from __libc_tsd_threadvar_location.
 1704         (__libc_tsd_set, __libc_tsd_get): Update uses.
 1705 
 1706 2002-09-01  Ulrich Drepper  <drepper@redhat.com>
 1707 
 1708         * ctype/ctype.h: Undo the patch before the last one.  Put back the
 1709         macro definitions for the standard functions to access the
 1710         classification and mapping arrays.
 1711         * include/ctype.h: Partly revert last patch.  Move the macro
 1712         definitions for the exported functions back to the public header.
 1713         #undef all the macros defined here before redefining.
 1714         * ctype/ctype-info.c: Revert last patch.
 1715         * locale/lc-ctype.c: Revert last patch.
 1716 
 1717         * ctype/Makefile (routines): Add isctype.
 1718         * ctype/Versions (libc): Export isctype and __isctype for GLIBC_2.3.
 1719         * ctype/ctype.h: Add declaration of isctype.
 1720         * include/ctype.h: Declare __isctype.
 1721         * ctype/isctype.c: New file.
 1722 
 1723 2002-09-01  Roland McGrath  <roland@redhat.com>
 1724 
 1725         * sysdeps/generic/libc-tls.c (__pthread_initialize_minimal): Pass
 1726         TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN instead of 0, 1.
 1727 
 1728         * include/getopt.h: Include <features.h> before <posix/getopt.h>.
 1729 
 1730         * locale/findlocale.c (_nl_remove_locale): Don't search in
 1731         _nl_locale_file_list if DATA->alloc is ld_archive.
 1732         Use _nl_unload_locale to do the rest of the work.
 1733 
 1734         * locale/loadarchive.c (_nl_load_locale_from_archive): Set usage_count
 1735         of new structure to UNDELETABLE.
 1736 
 1737         * wctype/wctype.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower,
 1738         iswgraph, iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank,
 1739         towlower, towupper): Macros removed.
 1740         * ctype/ctype.h (__tobody): Put parens around macro argument.
 1741         (__isctype): Macro removed.
 1742         (__ctype_b, __ctype_tolower, __ctype_toupper): Decls removed.
 1743         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
 1744         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
 1745         tolower, toupper): Macros and inlines removed.
 1746         * include/ctype.h [! NOT_IN_libc]
 1747         (isalnum, isalpha, iscntrl, isdigit, islower, isgraph, isprint,
 1748         ispunct, isspace, isupper, isxdigit, isblank, _tolower, _toupper,
 1749         tolower, toupper): Define here instead, using _NL_CURRENT.
 1750         * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Define as macros
 1751         using _NL_CURRENT.
 1752         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Likewise.
 1753         * ctype/ctype-info.c (__ctype_b, __ctype_tolower, __ctype_toupper):
 1754         Renamed these to __ctype_old_*. Define old names only for SHLIB_COMPAT.
 1755         (__ctype32_b, __ctype32_tolower, __ctype32_toupper): Likewise.
 1756         (__ctype32_wctrans, __ctype32_wctrans, __ctype32_width): Removed.
 1757         * locale/lc-ctype.c (_nl_postload_ctype): Use renamed variables,
 1758         conditional on SHLIB_COMPAT.  Don't set removed variables at all.
 1759         * wctype/wcfuncs.c: Use _NL_CURRENT instead of those globals.
 1760         * wcsmbs/wcwidth.h (internal_wcwidth): Likewise.
 1761         * resolv/res_init.c [RESOLVSORT] (sort_mask): Renamed sort_mask_chars.
 1762         (ISSORTMASK): Update use.
 1763         * intl/localealias.c [__GNUC__]: #undef alloca before #define.
 1764         * nss/nss_files/files-XXX.c (last_use): Rename `none' to `nouse'.
 1765         (_nss_files_getENTNAME_r): Likewise.
 1766         * nss/nss_files/files-alias.c (last_use, _nss_files_getaliasent_r):
 1767         Likewise.
 1768 
 1769         * Makerules (all-nonlib): Renamed from all-tests.
 1770         Include $(others) here too.
 1771         * locale/Makefile (CPPFLAGS-locale, CPPFLAGS-localedef,
 1772         CPPFLAGS-ld-ctype, CPPFLAGS-ld-time, CPPFLAGS-ld-numeric,
 1773         CPPFLAGS-ld-monetary, CPPFLAGS-ld-collate, CPPFLAGS-ld-identification,
 1774         CPPFLAGS-charmap, CPPFLAGS-locarchive, CPPFLAGS-linereader,
 1775         CPPFLAGS-charmap-dir): Variables removed.  Instead, catch all
 1776         the program modules via cppflags-iterator.mk.
 1777         * sunrpc/Makefile (CPPFLAGS-rpc_main): Variable removed.
 1778         Instead, catch all rpcgen-objs via cppflags-iterator.mk.
 1779 
 1780 2002-08-31  Roland McGrath  <roland@redhat.com>
 1781 
 1782         * posix/tst-getconf.sh: If no third arg, work with static linking.
 1783 
 1784         * locale/categories.def (LC_TIME): No more _nl_postload_time.
 1785 
 1786         * locale/setlocale.c (_nl_category_postload): Use weak refs only under
 1787         [_NL_CURRENT_INDIRECT].
 1788 
 1789 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
 1790 
 1791         * time/tst-ftime_l.c (main): Also test strftime with uselocale.
 1792 
 1793 2002-08-31  Roland McGrath  <roland@redhat.com>
 1794 
 1795         * locale/newlocale.c (__newlocale): Don't use strdup for names.
 1796         Instead, make the single allocation of the structure larger to hold
 1797         the name strings.
 1798         * locale/duplocale.c (__duplocale): Don't strdup names individually.
 1799         Instead, calculate size for a single allocation and copy into it.
 1800         * locale/freelocale.c (__freelocale): Don't free names individually.
 1801 
 1802         * locale/newlocale.c (__newlocale): Don't leak old data or names.
 1803 
 1804         * locale/xlocale.h (__locale_struct): Move __names member last,
 1805         for binary compatibility.
 1806 
 1807         * locale/duplocale.c (__duplocale): Free names from the right array.
 1808 
 1809         * locale/uselocale.c (__uselocale): Return previous locale when
 1810         setting a new one.
 1811 
 1812         * locale/newlocale.c: Commit changes from 2002-08-30
 1813         batch where I failed to commit this file:
 1814         (__newlocale): Fill in __names array.
 1815 
 1816 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
 1817 
 1818         * sysdeps/gnu/Makefile: Only depend on Versions.v.i for
 1819         errlist-compat.c if versioning==yes.
 1820 
 1821 2002-08-31  Andreas Jaeger  <aj@suse.de>
 1822 
 1823         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Declare
 1824         external functions with hidden attribute.
 1825         (elf_machine_rela): Optimize.
 1826 
 1827         * sysdeps/x86_64/memset.S: New file.
 1828         * sysdeps/x86_64/bzero.S: New file.
 1829         * sysdeps/x86_64/stpcpy.S: New file.
 1830         * sysdeps/x86_64/strcat.S: New file.
 1831         * sysdeps/x86_64/strchr.S: New file.
 1832         * sysdeps/x86_64/strcpy.S: New file.
 1833         * sysdeps/x86_64/strcspn.S: New file.
 1834         * sysdeps/x86_64/strlen.S: New file.
 1835         * sysdeps/x86_64/strpbrk.S: New file.
 1836         * sysdeps/x86_64/strspn.S: New file.
 1837         * sysdeps/x86_64/strcmp.S: New file.
 1838         * sysdeps/x86_64/strtok_r.S: New file.
 1839         * sysdeps/x86_64/strtok.S: New file.
 1840         * sysdeps/x86_64/memcpy.S: New file.
 1841         * sysdeps/x86_64/mempcpy.S: New file.
 1842 
 1843         * sysdeps/x86_64/fpu/s_copysign.S: Fix algorithm.
 1844 
 1845         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for double tests.
 1846 
 1847 2002-08-31  Ulrich Drepper  <drepper@redhat.com>
 1848 
 1849         * stdio-common/Makefile (generated): Add errlist-compat.c.
 1850 
 1851         * locale/Makefile (extra-objs): Add $(localedef-aux:=.o).
 1852 
 1853         * locale/localeinfo.h: Pretty printing.
 1854 
 1855         * stdio-common/vfprintf.c (vfprintf): Remove duplicate ifs in
 1856         form_number handling.
 1857 
 1858 2002-08-31  Andreas Jaeger  <aj@suse.de>
 1859 
 1860         * sysdeps/x86_64/fpu/libm-test-ulps: Add ulps for float and long
 1861         double tests.
 1862 
 1863         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_routines): Add
 1864         __start_context.
 1865 
 1866         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: New file.
 1867 
 1868         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: New file.
 1869 
 1870         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Add defines for
 1871         registers used for passing args.
 1872 
 1873         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Save and restore
 1874         all needed registers.
 1875 
 1876         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Restore all
 1877         registers.
 1878 
 1879         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Save all needed
 1880         registers.
 1881 
 1882 2002-08-30  Ulrich Drepper  <drepper@redhat.com>
 1883 
 1884         * elf/dynamic-link.h (elf_get_dynamic_info): Mark with
 1885         always_inline attribute.
 1886 
 1887 2002-08-30  Roland McGrath  <roland@redhat.com>
 1888 
 1889         * stdlib/tst-setcontext.c (main): If makecontext does nothing,
 1890         presume it's the stub and bail without error.
 1891 
 1892         * nss/getnssent_r.c (__nss_getent_r): Return ENOENT if status is
 1893         neither SUCCESS nor TRYAGAIN (see 2002-08-25 change [PR libc/4259]).
 1894 
 1895         * nss/getnssent_r.c (__nss_getent_r): Set *H_ERRNOP, not global one.
 1896 
 1897         * sysdeps/x86_64/hp-timing.h (HP_TIMING_NOW, HP_TIMING_ACCUM): New
 1898         macros replace the i686 versions for 64-bit mode.
 1899 
 1900         * locale/duplocale.c: Include <string.h>.
 1901 
 1902         * intl/dcigettext.c (DCIGETTEXT) [_LIBC]: Check for bogus CATEGORY.
 1903         [_LIBC] (category_to_name): Don't define the function.  Instead
 1904         define a macro using _nl_category_names.
 1905 
 1906         * locale/xlocale.h (struct __locale_struct): New member `__names'.
 1907         * locale/xlocale.c (_nl_C_locobj): Update initializer.
 1908         * locale/global-locale.c (_nl_global_locale): Likewise.
 1909         * locale/duplocale.c (__duplocale): strdup __names elements.
 1910         * locale/freelocale.c (__freelocale): Free __names elements.
 1911         * locale/localename.c (_nl_current_names): Variable removed.
 1912         (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead.
 1913         * locale/localeinfo.h (_nl_current_names): Removed decl.
 1914         * locale/setlocale.c: Use _nl_global_locale->__names in place of
 1915         _nl_current_names throughout.
 1916 
 1917         * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C).
 1918 
 1919         * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist
 1920         and sys_nerr in the output file.
 1921 
 1922         * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment.
 1923         * scripts/cpp: Just use the environment variable.
 1924 
 1925         * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag.
 1926         * libio/tst-mmap-offend.c (do_test): Likewise.
 1927         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
 1928         * libio/tst-mmap-eofsync.c (do_test): Likewise.
 1929         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
 1930 
 1931         * locale/localename.c: If the current locale is the global locale, use
 1932         _nl_current_names; otherwise use the locale object.
 1933 
 1934 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
 1935 
 1936         * libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
 1937         'm' to enable mmap I/O.
 1938         * libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
 1939         former wasn't used (anymore?).
 1940         (_IO_FLAGS2_MMAP): New define.
 1941         * libio/genops.c (_IO_no_init): Initialize _flags2 field.
 1942         * libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
 1943         _IO_FLAGS2_MMAP bit is set.
 1944         * libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
 1945         Enable mmap-using mode only if 'm' was set.
 1946 
 1947 2002-08-29  Roland McGrath  <roland@frob.com>
 1948 
 1949         * sysdeps/mach/hurd/bits/local_lim.h (NAME_MAX): New macro.
 1950 
 1951         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup: doinit):
 1952         Change argument type from int to intptr_t.
 1953 
 1954         * locale/global-locale.c (__libc_tsd_LOCALE_data): Conditionalize the
 1955         initializer on [! _HURD_THREADVAR_H] (bad kludge).
 1956         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize
 1957         _HURD_THREADVAR_LOCALE slot to &_nl_global_locale.
 1958         * hurd/hurdsig.c (_hurdsig_init): Likewise.  Zero other slots.
 1959 
 1960         * sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
 1961 
 1962         * sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).
 1963 
 1964         * sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.
 1965 
 1966         * include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
 1967         * assert/assert-perr.c: Add libc_hidden_def.
 1968         * elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.
 1969 
 1970         * sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
 1971         found at all.
 1972         * sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
 1973         sys_errlist stuff to ...
 1974         * sysdeps/unix/sysv/linux/Versions: ... here.
 1975 
 1976         * mach/mach.h: Include <features.h>.
 1977 
 1978 2002-08-29  Roland McGrath  <roland@redhat.com>
 1979 
 1980         * elf/dl-runtime.c (IN_DL_RUNTIME): Define this macro first thing.
 1981         * sysdeps/i386/dl-machine.h: Only declare fixup, profile_fixup and
 1982         define ELF_MACHINE_RUNTIME_TRAMPOLINE under #ifdef IN_DL_RUNTIME.
 1983 
 1984         * sysdeps/generic/readelflib.c (process_elf_file): Fix typo.
 1985 
 1986         * iconv/gconv_int.h: Include <stdlib.h> for alloca decl.
 1987         (norm_add_slashes): alloca -> __alloca
 1988 
 1989 2002-08-29  Jakub Jelinek  <jakub@redhat.com>
 1990 
 1991         * stdio-common/vfprintf.c (vfprintf): Add builtin_expect for
 1992         string_malloced, it is unlikely to be set.
 1993         Only call free with non-NULL workspace.
 1994         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Use
 1995         -mcpu=ultrasparc, not only tune for it.
 1996         (ASFLAGS*): Set unconditionally.
 1997 
 1998         * sysdeps/generic/readelflib.c (process_elf_file): Make LOADADDR
 1999         ElfW(Addr).  Don't mask upper 32-bits and lower 12 bits off from
 2000         p_vaddr/p_offset when computing LOADADDR.
 2001 
 2002 2002-08-29  Ulrich Drepper  <drepper@redhat.com>
 2003 
 2004         * version.h (VERSION): Bump to 2.2.92.
 2005 
 2006         * time/Makefile (tst-ftime_l-ENV): New variable.
 2007 
 2008         * iconvdata/ibm870.c: All bytes are now used, no holes anymore.
 2009 
 2010         * localedata/charmaps/IBM870: Add correct mapping for <U017E>,
 2011         <U017A>, <U017D> and <U0179>. Add missing mappings.
 2012         Patch by Antonin Kopecky <akopecky@tajmac-zps.cz>.
 2013 
 2014         * gmon/sys/gmon.h (ARCDENSITY): Bump to 3.
 2015         Define ARCINDEX.  Bump MAXARCS to 1 << 20.
 2016         (struct tostruct): Use ACRINDEX as type for link field.
 2017         (statuc gmonparam): Likewise for froms.
 2018         * gmon/gmon.c (__monstartup): Use currect cast for assignments to
 2019         kcount and froms.
 2020         (write_call_graph): Use correct type for from_index and to_index.
 2021         * gmon/mcount.c: Use correct types for frompcindex and toindex
 2022         variables.
 2023         Patches by Dan Kegel <dank@kegel.com>.
 2024 
 2025         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix code to determine
 2026         canonical name.
 2027 
 2028         * time/strptime.c (ISSPACE): New #define.  Use isspace or
 2029         __isspace_l.  Replace calls to isspace.
 2030         (match_string): Define variant for USE_IN_EXTENDED_LOCALE_MODEL.
 2031 
 2032 2002-08-29  Roland McGrath  <roland@redhat.com>
 2033 
 2034         * string/tst-strxfrm.c: Remove __ from function names.
 2035 
 2036 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
 2037 
 2038         * include/wchar.h: Declare __mbsrtowcs_l.
 2039         * wcsmbs/Makefile (routines): Add mbsrtowcs_l.
 2040         * wcsmbs/mbsrtowcs.c: Add support for compilation with
 2041         USE_IN_EXTENDED_LOCALE_MODEL.
 2042         * wcsmbs/mbsrtowcs_l: New file.
 2043         * wcsmbs/wcsmbsload.c (__wcsmbs_to_wc): Renamed from to_wc.  Don't
 2044         define as static.  Change all uses.
 2045         (__wcsmbs_getfct): Renamed from getfct.  Don't define as static.
 2046         Change all callers.
 2047         * wcsmbs/wcsmbsload.h: Declare __wcsmbs_to_wc and __wcsmbs_getfct.
 2048         * time/strftime.c: When translating for the extended locale model
 2049         use the _l functions.
 2050         * time/Makefile (tests): Add tst-ftime_l.
 2051         * time/tst-ftime_l.c: New file.
 2052 
 2053 2002-08-28  Roland McGrath  <roland@redhat.com>
 2054 
 2055         * locale/findlocale.c [NL_CURRENT_INDIRECT] (_nl_C): New variable.
 2056         * locale/setlocale.c (setlocale) [NL_CURRENT_INDIRECT]: Null return
 2057         from _nl_find_locale ok if for _nl_C_name.
 2058 
 2059         * locale/nl_langinfo.c [NL_CURRENT_INDIRECT]: Use a categories.def
 2060         iterator to refer to each category's _nl_current_LC_FOO symbol, so
 2061         we know they are all linked in.
 2062 
 2063         * NEWS: Added 2.2.6 text from 2.2 branch version.
 2064 
 2065         * time/strptime.c (strptime_internal): Remove spurious const.
 2066 
 2067         * locale/lc-time.c (_nl_init_era_entries, _nl_get_era_entry,
 2068         _nl_select_era_entry): Moved to ...
 2069         * time/era.c: ... here, new file.
 2070         (_nl_init_era_entries, _nl_get_era_entry, _nl_select_era_entry):
 2071         Add internal_function to definitions.  Take an additional argument
 2072         giving the `struct locale_data *' to use.
 2073         * locale/lc-time.c (_get_alt_digit, _nl_get_walt_digit,
 2074         _nl_parse_alt_digit): Moved to ...
 2075         * time/alt_digit.c: ... here, new file.
 2076         * time/lc-time-cleanup.c: New file.
 2077         * locale/lc-time.c (_nl_postload_time, free_mem): Functions removed.
 2078         * locale/localeinfo.h (_nl_postload_time): Remove decl.
 2079         (_nl_cleanup_time): Declare it.
 2080         (_nl_get_era_entry, _nl_select_era_entry): Update decls.
 2081         (_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit): Likewise.
 2082         * time/Makefile (aux): New variable: era, alt_digit, lc-time-cleanup.
 2083         * time/strftime.c: Pass locale data to helper functions.
 2084         * time/strptime.c: Likewise.
 2085 
 2086         * locale/localeinfo.h (struct locale_data): New member `private'
 2087         * locale/loadlocale.c (_nl_intern_locale_data): Initialize it.
 2088         (_nl_unload_locale): Call LOCALE->private.cleanup if it is set.
 2089         * locale/C-collate.c: Update initializer.
 2090         * locale/C-identification.c: Likewise.
 2091         * locale/C-measurement.c: Likewise.
 2092         * locale/C-telephone.c: Likewise.
 2093         * locale/C-address.c: Likewise.
 2094         * locale/C-name.c: Likewise.
 2095         * locale/C-paper.c: Likewise.
 2096         * locale/C-time.c: Likewise.
 2097         * locale/C-numeric.c: Likewise.
 2098         * locale/C-monetary.c: Likewise.
 2099         * locale/C-messages.c : Likewise.
 2100         * locale/C-ctype.c: Likewise.
 2101 
 2102         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL] (_NL_CURRENT_WORD):
 2103         Redefine this too.
 2104 
 2105 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
 2106 
 2107         * sysdeps/generic/ldsodefs.h (__rtld_global_attribute__): Define.
 2108         (_rtld_global): Use it.
 2109 
 2110         * sysdeps/gnu/Dist: Remove errlist-compat.c.
 2111         * sysdeps/gnu/Makefile (errlist-compat.c): Build this file in the
 2112         object directory.  Pass all Versions files to the awk script.
 2113         * sysdeps/gnu/errlist-compat.c: Removed.
 2114         * sysdeps/gnu/errlist.awk: Use #errlist-compat comments from the
 2115         first Versions file in the search path which has them.
 2116         Allow multiple errlist symbol versions to have the same count of
 2117         errors.
 2118         * sysdeps/gnu/errlist-compat.awk: Include <errlist-compat.c> instead
 2119         of "errlist-compat.c".
 2120         * sysdeps/gnu/errlist.c: Regenerated.
 2121         * sysdeps/unix/sysv/linux/mips/Versions (libc): Add #errlist-compat
 2122         comments at GLIBC_2.0, GLIBC_2.1 and GLIBC_2.3.
 2123         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
 2124         (librt): Add aio_cancel and aio_cancel64 as GLIBC_2.3.
 2125         * sysdeps/unix/sysv/linux/hppa/Versions: Likewise.
 2126         * sysdeps/unix/sysv/linux/sparc/Versions: New file.
 2127         * sysdeps/unix/sysv/linux/alpha/bits/errno.h: New file.
 2128         * sysdeps/unix/sysv/linux/hppa/bits/errno.h (ECANCELED): Define to
 2129         ECANCELLED if not defined by kernel headers.
 2130         * sysdeps/unix/sysv/linux/bits/errno.h: Don't redefine ECANCELED if
 2131         already defined by kernel headers.
 2132         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: New file.
 2133         * sysdeps/pthread/aio_cancel.c: Don't include aio.h and its
 2134         aio_cancel64 renaming hack nor provide weak_alias if aio_cancel
 2135         is a macro.
 2136         * Versions.def (GLIBC_2.3) [librt]: Add.
 2137 
 2138         * sysdeps/unix/sysv/linux/alpha/pipe.S: New file.
 2139 
 2140 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
 2141 
 2142         * include/libc-symbols.h [!__ASSEMBLER__] (declare_symbol_1): Add
 2143         missing comma to .type directive.
 2144 
 2145 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
 2146 
 2147         * sysdeps/ia64/elf/configure.in (PI_STATIC_AND_HIDDEN): Define
 2148         unconditionally.
 2149         * sysdeps/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel): New
 2150         check.
 2151         (PI_STATIC_AND_HIDDEN): Define if check succeeded.
 2152 
 2153 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
 2154 
 2155         * locale/loadarchive.c (_nl_load_locale_from_archive): Add fd >= 0
 2156         check to close_and_out close.  Replace return NULL statements where
 2157         fd might be >= 0 with goto close_and_out.  Close the file descriptor
 2158         when it is no longer needed.
 2159 
 2160 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
 2161 
 2162         * sysdeps/s390/s390-64/dl-machine.h: Avoid unescaped newlines in
 2163         string constants.
 2164         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
 2165         * sysdeps/arm/dl-machine.h: Likewise.
 2166         * sysdeps/cris/dl-machine.h: Likewise.
 2167         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
 2168         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
 2169 
 2170 2002-08-28  Roland McGrath  <roland@redhat.com>
 2171 
 2172         * Makeconfig (default_cflags): Revert unintended change.
 2173 
 2174 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
 2175 
 2176         * version.h (VERSION): Bump to 2.2.91.
 2177 
 2178         * configure.in: Disable TLS support by default for now.
 2179 
 2180         * sysdeps/i386/fpu/libm-test-ulps: Adjust ulp for yn for float.
 2181 
 2182         * sysdeps/generic/strtol.c (strtol): Add some more casts to avoid
 2183         warnings.
 2184 
 2185         * stdlib/strtod.c (STRTOF): Correct type in cast of last patch.
 2186 
 2187         * stdlib/fmtmsg.c (fmtmsg): Use correct test for failure of
 2188         fprintf/fwprintf calls.
 2189 
 2190 2002-08-28  Roland McGrath  <roland@redhat.com>
 2191 
 2192         * Makeconfig (run-program-prefix): Fix bogus use of $(findstring ...)
 2193         to use $(filter ...) instead.  Same bug fixed in aix conditionals.
 2194 
 2195         * locale/setlocale.c: Declare postload functions weak.
 2196 
 2197         * elf/tst-tls1-static.c: New file.
 2198         * elf/tst-tls2-static.c: New file.
 2199         * elf/Makefile ($(tests-static):%=$(objfpx)%.o): Remove rule.
 2200 
 2201         Make uselocale support static linking.
 2202         * locale/xlocale.c: Revert changes putting _nl_global_locale here.
 2203         This file again just defines _nl_C_locobj.
 2204         (_nl_C_locobj): Use a categories.def iterator in the initializer.
 2205         * locale/global-locale.c: New file.  Define _nl_global_locale here,
 2206         using all weak references in the initializer.
 2207         * locale/Makefile (aux): Add global-locale.
 2208         * locale/localeinfo.h (_nl_global_locale, _NL_CURRENT_LOCALE): Make
 2209         these unconditional, along with the tsd decl.
 2210         [!SHARED && HAVE___THREAD && HAVE_WEAK_SYMBOLS] (NL_CURRENT_INDIRECT):
 2211         Define it under these conditions.
 2212         [NL_CURRENT_INDIRECT]: Test this instead of [! SHARED].
 2213         Don't declare _nl_current.  Declare _nl_current_LC_FOO as
 2214         `extern __thread struct locale_data *const *'.
 2215         [NL_CURRENT_INDIRECT]
 2216         (_NL_CURRENT_DATA, _NL_CURRENT, _NL_CURRENT_WSTR): Add indirection.
 2217         [NL_CURRENT_INDIRECT] (_NL_CURRENT_DEFINE): Rewritten.  Define
 2218         the thread variable _nl_current_LC_FOO and also a special absolute
 2219         symbol _nl_current_LC_FOO_used.
 2220         * locale/uselocale.c (__uselocale) [NL_CURRENT_INDIRECT]:
 2221         Set each _nl_current_LC_FOO symbol to point into the new locale,
 2222         using weak references to test if _nl_current_LC_FOO_used was linked in.
 2223         * locale/setlocale.c [! SHARED]: Replace this conditional ...
 2224         [NL_CURRENT_INDIRECT]: ... with this one.
 2225         (_nl_current, _nl_C): Variables removed.
 2226         [NL_CURRENT_INDIRECT] (_nl_current_used): New variable, table of
 2227         weak references to _nl_current_LC_FOO_used.
 2228         [NL_CURRENT_INDIRECT] (CATEGORY_USED): Define using that table.
 2229         (free_category): New function, broken out of ...
 2230         (free_mem): ... here.  Call that.
 2231         (free_mem) [NL_CURRENT_INDIRECT]: Use a categories.def iterator
 2232         instead of a loop.
 2233 
 2234         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Don't check for
 2235         PT_LOAD program headers and don't try to relocate PT_TLS's p_vaddr;
 2236         it is already absolute.
 2237 
 2238         * elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally.
 2239         [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static.
 2240         [$(build-static) = yes] (tests-static): New variable.
 2241         ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
 2242 
 2243 2002-08-26  Christoph Hellwig  <hch@lst.de>
 2244 
 2245         * sysdeps/unix/sysv/linux/sys/personality.h: Remark origin, fix
 2246         formating braindamage, add missing PER_HPUX and PER_OSF1 values.
 2247 
 2248 2002-08-28  Ulrich Drepper  <drepper@redhat.com>
 2249 
 2250         * sysdeps/x86_64/Dist: Add _mcount.S and bits/link.h.
 2251 
 2252         * sysdeps/s390/Dist: Add bits/link.h.
 2253 
 2254         * sysdeps/sh/Dist: New file.
 2255 
 2256         * sysdeps/ia64/Dist: Add ia64libgcc.S.
 2257 
 2258         * sysdeps/wordsize-32/Dist: New file.
 2259 
 2260         * sysdeps/unix/sysv/linux/alpha/Dist: Add dl-brk.S.
 2261         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
 2262         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
 2263 
 2264         * sysdeps/unix/sysv/linux/Dist: Add dl-brk.c, dl-sbrk.c, and
 2265         sys/personality.h.
 2266 
 2267         * sysdeps/unix/Dist: Add i386/dl-brk.S, mips/dl-brk.S, and
 2268         sparc/dl-brk.S.
 2269 
 2270         * sysdeps/unix/bsd/Dist: Add vax/dl-brk.S.
 2271 
 2272         * sysdeps/unix/bsd/sun/Dist: New file.
 2273 
 2274         * sysdeps/unix/bsd/osf/Dist: New file.
 2275 
 2276         * sysdeps/unix/bsd/hp/Dist: New file.
 2277 
 2278         * sysdeps/unix/arm/Dist: New file.
 2279 
 2280         * sysdeps/powerpc/Dist: Add divdi3.c and libgcc-compat.S.
 2281 
 2282         * sysdeps/mach/hurd/Dist: Add set-init.c.
 2283 
 2284         * sysdeps/i386/Dist: Add bits/link.h.
 2285 
 2286         * sysdeps/gnu/Dist: Add errlist-compat.c errlist-compat.awk.
 2287 
 2288         * sysdeps/generic/Dist: Add dl-brk.c and dl-sbrk.c.
 2289 
 2290         * locale/Makefile (distribute): Add hashval.h.
 2291 
 2292         * iconvdata/Makefile (distribute): Add tcvn5712-1.c and armscii-8.c.
 2293 
 2294         * sysdeps/unix/sysv/linux/Dist: Remove errlist.h.
 2295 
 2296         * misc/sys/cdefs.h: Define __BEGIN_NAMESPACE_STD, __END_NAMESPACE_STD,
 2297         __USING_NAMESPACE_STD, __BEGIN_NAMESPACE_C99, __END_NAMESPACE_C99, and
 2298         __USING_NAMESPACE_C99 depending on _GLIBCPP_USE_NAMESPACES.
 2299         * ctype/ctype.h: Prepare headers for use in ISO C++ compliant
 2300         implementations.
 2301         * libio/stdio.h: Likewise.
 2302         * locale/locale.h: Likewise.
 2303         * math/math.h: Likewise.
 2304         * math/bits/mathcalls.h: Likewise.
 2305         * setjmp/setjmp.h: Likewise.
 2306         * signal/signal.h: Likewise.
 2307         * stdlib/stdlib.h: Likewise.
 2308         * string/string.h: Likewise.
 2309         * time/time.h: Likewise.
 2310         * wcsmbs/wchar.h: Likewise.
 2311         * wctype/wctype.h: Likewise.
 2312 
 2313 2002-08-28  Roland McGrath  <roland@redhat.com>
 2314 
 2315         * locale/tst-C-locale.c (run_test): Remove __ from function names.
 2316 
 2317 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
 2318             Roland McGrath <roland@redhat.com>
 2319 
 2320         * locale/hashval.h (compute_hashval): Use prototype defn.
 2321         (hashval_t): New macro, defined to unsigned long int
 2322         if not already defined.
 2323         (compute_hashval): Return hashval_t instead of unsigned long int.
 2324         * locale/loadarchive.c (hashval_t): New macro.
 2325         * locale/programs/locarchive.c: Include hashval.h directly instead
 2326         of simple-hash.h.
 2327         (compute_hashval, hashval_t): Define these macros first.
 2328         (insert_name): Use archive_hashval instead of compute_hashval.
 2329         (add_locale, delete_locales_from_archive): Likewise.
 2330 
 2331 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
 2332 
 2333         * locale/programs/locarchive.c (insert_name): Suppress warnings about
 2334         hash collisions if be_quiet.
 2335 
 2336 2002-08-27  Roland McGrath  <roland@redhat.com>
 2337 
 2338         * locale/locale.h (__newlocale, __duplocale, __freelocale,
 2339         __uselocale): Don't declare these any more.
 2340         * include/locale.h (__uselocale): Declare here instead, using __typeof.
 2341 
 2342         * sysdeps/unix/readdir.c: If getdents fails with ENOENT, restore errno
 2343         and treat it as an EOF return.
 2344         * sysdeps/unix/readdir_r.c: Likewise.
 2345 
 2346         * sysdeps/gnu/errlist-compat.awk: Include <bits/wordsize.h> in output.
 2347         From Alexandre Oliva <aoliva@redhat.com>.
 2348         * sysdeps/gnu/errlist-compat.c: Regenerated.
 2349 
 2350 2002-08-27  Brian Youmans  <3diff@gnu.org>
 2351 
 2352         * sysdeps/ieee754/flt-32/e_asinf.c: Modified copying permission
 2353         wording at request of copyright holder Stephen Moshier.
 2354         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
 2355         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
 2356         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
 2357         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
 2358         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
 2359         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
 2360         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
 2361         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
 2362         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
 2363         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
 2364         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
 2365         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
 2366         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
 2367         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
 2368 
 2369 2002-08-28  Jakub Jelinek  <jakub@redhat.com>
 2370 
 2371         * ctype/ctype.h (isascii_l, toascii_l): Define to __*_l counterparts.
 2372         * ctype/ctype-extn.c (isblank_l): Add weak alias.
 2373         * sysdeps/generic/strtol_l.c (strtol_l): Likewise.
 2374         * sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
 2375         * sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
 2376         * sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
 2377         * wctype/iswctype_l.c (iswctype_l): Likewise.
 2378 
 2379 2002-08-27  Roland McGrath  <roland@redhat.com>
 2380 
 2381         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: No libc_hidden_def.
 2382 
 2383         * ctype/ctype.h (__exctype_l): Don't declare __ name.
 2384         * stdlib/stdlib.h: Don't declare __*_l names.
 2385         * include/stdlib.h: Declare them here instead.
 2386         * include/string.h: Don't declare __*_l names.
 2387         * string/string.h: Declare them here instead.
 2388         * time/time.h: Don't declare __*_l names.
 2389         * include/time.h: Declare them here instead.
 2390         * wcsmbs/wchar.h: Don't declare __*_l names.
 2391         * include/wchar.h: Declare them here instead.
 2392         * wctype/wctype.h: Declare iswalnum_l, not __iswalnum_l.
 2393         Don't declare __*_l names.
 2394         * include/wctype.h: Declare them here instead.
 2395         * stdlib/monetary.h: Declare strfmon_l, not __strfmon_l.
 2396         * stdlib/strfmon_l.c (strfmon_l): Define as weak alias.
 2397         * locale/langinfo.h: Don't declare __nl_langinfo_l.
 2398         * include/langinfo.h: Declare it here with __typeof.
 2399 
 2400         * time/strptime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strptime_l
 2401         instead, taking an extra __locale_t argument.
 2402         * time/Makefile (routines): Add strptime_l.
 2403         * time/time.h (__strptime_l, strptime_l): Declare them.
 2404         * time/strptime_l.c: New file.
 2405 
 2406         * time/time.h (__strftime_l, strftime_l): Declare them.
 2407         * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them.
 2408         * time/strftime_l.c: New file.
 2409         * time/wcsftime_l.c: New file.
 2410         * time/Makefile (routines): Add strftime_l, wcsftime_l.
 2411         * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l,
 2412         strftime_l, wcsftime_l.
 2413         * time/strftime.c [USE_IN_EXTENDED_LOCALE_MODEL]: Define __strftime_l
 2414         or __wcsftime_l instead, taking an extra __locale_t argument.
 2415 
 2416         * locale/Versions (libc: GLIBC_PRIVATE): Move __uselocale to ...
 2417         (libc: GLIBC_2.3): ... here.
 2418 
 2419 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
 2420 
 2421         * stdio-common/Makefile: Fix typo in stdio_lim.h installation rule.
 2422 
 2423         * Makefile (distribute): Add LICENSES.
 2424 
 2425         * sysdeps/unix/sysv/linux/x86_64/Dist: Add ucontext_i.h and
 2426         sys/debugreg.h.
 2427 
 2428         * sysdeps/unix/sysv/linux/s390/Dist: Add new/route.h.
 2429 
 2430         * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-brk.S and sys/user.h.
 2431 
 2432         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/user.h.
 2433 
 2434         * sysdeps/unix/sysv/linux/Dist: Add readahead.c.
 2435 
 2436         * sysdeps/mach/hurd/alpha/Dist: New file.
 2437 
 2438         * sysdeps/arm/Dist: Add bits/link.h.
 2439 
 2440         * sunrpc/Makefile: Distribute thrsvc.
 2441 
 2442         * stdio-common/Makefile: Remove more left-overs from old stdio.
 2443 
 2444         * include/linewrap.h: Removed.
 2445 
 2446         * libio/bug-mmap-fflush.c: Rewrite to not touch source directory.
 2447 
 2448         * intl/Makefile (distribute): Add plural-eval.c.
 2449 
 2450 2002-08-27  Roland McGrath  <roland@redhat.com>
 2451 
 2452         * manual/sysinfo.texi (Mount Information): Correct file name to macro
 2453         assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED.
 2454         Say mtab is in either /var/run or /etc.
 2455 
 2456 2002-08-26  Roland McGrath  <roland@redhat.com>
 2457 
 2458         * manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
 2459         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
 2460 
 2461         * sysdeps/gnu/Versions: New file.
 2462         * sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
 2463         _sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
 2464         * sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
 2465         ($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
 2466         * sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
 2467         and _sys_nerr_internal instead of anything else.  Make it include
 2468         "errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
 2469         Make it emit some asm magic if [EMIT_ERR_MAX].
 2470         * sysdeps/gnu/errlist.c: Regenerated.
 2471         * sysdeps/gnu/errlist-compat.awk: New file.
 2472         * sysdeps/gnu/errlist-compat.c: New file (generated).
 2473         * sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
 2474         (_sys_errlist_internal): Define this as a macro for _hurd_errlist.
 2475         (_sys_nerr_internal): Define this is a macro for _hurd_nerr.
 2476         (SYS_ERRLIST, SYS_NERR): Macros removed.
 2477         (sys_nerr, _sys_nerr): Remove these weak aliases.
 2478         * sysdeps/unix/sysv/linux/errlist.c: File removed.
 2479         * sysdeps/unix/sysv/linux/errlist.h: File removed.
 2480         * sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
 2481 
 2482         * include/libc-symbols.h (declare_symbol): New macro.
 2483         * config.h.in (ASM_TYPE_DIRECTIVE_PREFIX): New #undef.
 2484         * configure.in: New check to define it.
 2485         * configure: Regenerated.
 2486 
 2487 2002-08-27  Ulrich Drepper  <drepper@redhat.com>
 2488 
 2489         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.  This
 2490         file isn't distributed.  Add special rules to install bits/stdio_lim.h.
 2491 
 2492         * Make-dist: Remove traces of old stdio.
 2493         * Makeconfig: Likewise.
 2494 
 2495         * locale/Makefile (localedef-aux): New variable.  Only md5
 2496         assigned to it.  These files are not ddistributed in this directory.
 2497 
 2498         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
 2499         * sysdeps/unix/sysv/linux/s390/s390-64/Dist: Remove sys/procfs.h.
 2500         * sysdeps/unix/sysv/linux/s390/s390-32/Dist: Likewise.
 2501 
 2502         * sysdeps/unix/sysv/linux/Dist: Remove sys/sendfile.h.
 2503 
 2504         * nss/getXXbyYY_r.c (REENTRANT_NAME): If no service is available
 2505         set h_errno to NO_RECOVERY [PR libc/4360].
 2506 
 2507 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
 2508 
 2509         * libio/Makefile (tests): Add bug-fopena+.
 2510         * libio/bug-fopena+.c: New file.
 2511         * libio/fileops.c (_IO_file_open): Only set file pointer to end of the
 2512         file for _IO_IS_APPENDING if file isn't opened for reading, too.
 2513 
 2514         * stdio-common/tst-swprintf.c (main): Add casts to avoid warnings.
 2515 
 2516         * locale/xlocale.c: Fix the last change.  The variable still has
 2517         to end in _data.
 2518         * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
 2519         (__libc_tsd_set): Add _data prefix to variable name.
 2520 
 2521 2002-08-26  Roland McGrath  <roland@redhat.com>
 2522 
 2523         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask): Replace
 2524         macro with inline function.
 2525         (sigset_get_old_mask): Likewise.
 2526         * sysdeps/posix/sigblock.c (__sigblock): Update callers.
 2527         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
 2528         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
 2529         * sysdeps/posix/sigvec.c (__sigvec, sigvec_wrapper_handler): Likewise.
 2530         * sysdeps/unix/sysv/aix/sigset-cvt-mask.h
 2531         (sigset_set_old_mask, sigset_get_old_mask): Make these macros return
 2532         values.
 2533         * sysdeps/unix/sysv/linux/sigset-cvt-mask.h: Likewise.
 2534         * sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h: Likewise.
 2535 
 2536 2002-07-06  Bruno Haible  <bruno@clisp.org>
 2537 
 2538         * sysdeps/generic/sigset-cvt-mask.h (sigset_set_old_mask,
 2539         sigset_get_old_mask): Make it work with larger sigset_t.
 2540         * sysdeps/posix/sigblock.c (__sigblock): Use those macros.
 2541         * sysdeps/posix/sigsetmask.c (__sigsetmask): Likewise.
 2542         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
 2543 
 2544 2002-08-26  Roland McGrath  <roland@redhat.com>
 2545 
 2546         * time/sys/time.h [__USE_BSD] (lutimes, futimes): Declare them.
 2547         * manual/filesys.texi (File Times): Document lutimes and futimes.
 2548         * misc/Makefile (routines): Add them.
 2549         * misc/Versions (libc: GLIBC_2.3): Likewise.
 2550         * sysdeps/generic/lutimes.c: New file.
 2551         * sysdeps/generic/futimes.c: New file.
 2552         * sysdeps/mach/hurd/lutimes.c: New file.
 2553         * sysdeps/mach/hurd/futimes.c: New file.
 2554 
 2555         * manual/filesys.texi (File Times): Add explicit note about null
 2556         pointer argument to utimes.
 2557 
 2558 2002-08-26  Roland McGrath  <roland@frob.com>
 2559 
 2560         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Add missing semicolon.
 2561         (__ifreq): Add a cast.  Remove an unused variable.
 2562 
 2563         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
 2564         _HURD_THREADVAR_LOCALE.
 2565 
 2566 2002-08-26  Jakub Jelinek  <jakub@redhat.com>
 2567 
 2568         * posix/regexec.c (re_search_stub): Return correct match length
 2569         if start != 0.
 2570         * posix/bug-regex10.c: New test.
 2571         * posix/Makefile (tests): Add bug-regex10.
 2572 
 2573 2002-08-26  Brian Youmans  <3diff@gnu.org>
 2574 
 2575         * COPYING.LIB: Replaced with fresh copy from
 2576         ftp://ftp.gnu.org/gnu/Licenses/COPYING.LIB-2.1;
 2577         suggested copying permission notice now says version 2.1 instead
 2578         of version 2.
 2579 
 2580         * crypt/crypt.c: Changed copying permission notice to Lesser GPL
 2581         from Library GPL.
 2582         * crypt/crypt_util.c: Likewise.
 2583         * crypt/ufc.c: Likewise.
 2584         * elf/dl-conflict.c: Likewise.
 2585         * elf/dl-iteratephdr.c: Likewise.
 2586         * iconv/iconvconfig.h: Likewise.
 2587         * malloc/arena.c: Likewise.
 2588         * malloc/hooks.c: Likewise.
 2589         * malloc/malloc.c: Likewise.
 2590         * posix/glob/Makefile.ami: Likewise.
 2591         * posix/glob/Makefile.in: Likewise.
 2592         * stdlib/gmp-impl.h: Likewise.
 2593         * stdlib/gmp.h: Likewise.
 2594         * sysdeps/generic/dl-iteratephdr-static.c: Likewise.
 2595         * sysdeps/generic/strnlen.c: Likewise.
 2596         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
 2597         * sysdeps/mach/hurd/recvmsg.c: Likewise.
 2598         * sysdeps/mach/hurd/sendmsg.c: Likewise.
 2599         * sysdeps/mach/hurd/spawni.c: Likewise.
 2600         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
 2601         * sysdeps/mach/powerpc/sysdep.h: Likewise.
 2602         * sysdeps/mach/powerpc/thread_state.h: Likewise.
 2603         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
 2604         * sysdeps/unix/sysv/linux/ia64/dl-iteratephdr-static.c: Likewise.
 2605         * sysdeps/x86_64/gmp-mparam.h: Likewise.
 2606 
 2607         * sysdeps/ieee754/dbl-64/MathLib.h: Corrected version number in
 2608         Lesser GPL copying permission notice from 2 to 2.1.
 2609         * sysdeps/ieee754/dbl-64/asincos.tbl: Likewise.
 2610         * sysdeps/ieee754/dbl-64/atnat.h: Likewise.
 2611         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
 2612         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
 2613         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
 2614         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
 2615         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
 2616         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
 2617         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
 2618         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
 2619         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
 2620         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
 2621         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
 2622         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
 2623         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
 2624         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
 2625         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
 2626         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
 2627         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
 2628         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
 2629         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
 2630         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
 2631         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
 2632         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
 2633         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
 2634         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
 2635         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
 2636         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
 2637         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
 2638         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
 2639         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
 2640         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
 2641         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
 2642         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
 2643         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
 2644         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
 2645         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
 2646         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
 2647         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
 2648         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
 2649         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
 2650         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
 2651         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
 2652         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
 2653         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
 2654         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
 2655         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
 2656         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
 2657         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
 2658         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
 2659         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
 2660         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
 2661         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
 2662         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
 2663         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
 2664 
 2665         * sysdeps/ieee754/flt-32/e_asinf.c: Added copyright notice for Stephen
 2666         Moshier and Lesser GPL copying permission notice, per license from
 2667         Moshier.
 2668         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
 2669         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
 2670         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
 2671         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
 2672         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
 2673         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
 2674         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
 2675         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
 2676         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
 2677         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
 2678         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
 2679         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
 2680         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
 2681         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
 2682 
 2683         * sysdeps/ieee754/ldbl-128/e_j0l.c: Added Lesser GPL copying permission
 2684         notice, per license from copyright holder Stephen Moshier.
 2685         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
 2686         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
 2687         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
 2688         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
 2689         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
 2690         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
 2691         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
 2692         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
 2693         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
 2694 
 2695 2002-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
 2696 
 2697         * sysdeps/sh/Makefile (sysdeps_routines): Add divdi3 in csu dir.
 2698         (shared-only-routines): Likewise.
 2699 
 2700 2002-08-26  Roland McGrath  <roland@redhat.com>
 2701 
 2702         * locale/programs/ld-ctype.c (ctype_read): When given a repertoire
 2703         name of "", store a null pointer instead.
 2704 
 2705         * configure.in (elf): Set to yes for freebsd*, netbsd*.
 2706         * configure: Regenerated.
 2707 
 2708         * locale/xlocale.c [! (USE_TLS && HAVE___THREAD)] (__libc_tsd_LOCALE):
 2709         Initialize this instead of __libc_tsd_LOCALE_data.
 2710 
 2711         * sysdeps/unix/grantpt.c (pts_name): Convert ENOTTY return from
 2712         ptsname_r to EINVAL.
 2713 
 2714         * sysdeps/generic/ptsname.c (__ptsname_r): Return ENOSYS instead of 0.
 2715 
 2716         * rt/Makefile: Revert last change, it was inappropriate to presume aio
 2717         implementations depend on pthreads.
 2718         * rt/tst-aio.c (do_test): Exit happy if first failure is ENOSYS.
 2719         * rt/tst-aio64.c (do_test): Likewise.
 2720         * rt/tst-aio2.c (do_test): Likewise.
 2721         * rt/tst-aio3.c (do_test): Likewise.
 2722         * rt/tst-aio4.c (do_test): Likewise.
 2723         * rt/tst-aio5.c (do_test): Likewise.
 2724         * rt/tst-aio6.c (do_test): Likewise.
 2725         * rt/tst-aio7.c (do_test): Likewise.
 2726 
 2727         * sysdeps/generic/bits/libc-lock.h (__libc_setspecific): Use a cast to
 2728         void so as to avoid compiler warnings.
 2729 
 2730         * libio/oldstdfiles.c [! _IO_MTSAFE_IO] (DEF_STDFILE): Don't define
 2731         _IO_wide_data_FD, which is never used here.
 2732 
 2733         * libio/iofread.c
 2734         [! _IO_MTSAFE_IO] (fread_unlocked): Add libc_hidden_ver defn.
 2735         * libio/iofputs.c [! _IO_MTSAFE_IO] (fputs_unlocked): Likewise.
 2736         * libio/iofgets.c [! _IO_MTSAFE_IO] (fgets_unlocked): Likewise.
 2737 
 2738         * include/resolv.h [! _LIBC_REENTRANT] (_res): #undef it before decl.
 2739         * include/netdb.h [! _LIBC_REENTRANT] (h_errno): Declare normal extern.
 2740 
 2741         * misc/syslog.c (openlog): Conditionalize locking on [_LIBC_REENTRANT].
 2742         (closelog): Likewise.
 2743 
 2744 2002-07-06  Bruno Haible  <bruno@clisp.org>
 2745 
 2746         * sysdeps/alpha/fpu/fpu_control.h: Comment fix.
 2747 
 2748         * sysdeps/unix/sysv/linux/alpha/pipe.S: Moved to ...
 2749         * sysdeps/unix/alpha/pipe.S: ... here.
 2750         * sysdeps/unix/bsd/osf/alpha/pipe.S: File removed.
 2751 
 2752         * sysdeps/unix/i386/brk.S: Rename local label to '.Lhere' in ELF.
 2753 
 2754         * sysdeps/unix/i386/brk.S: Add PSEUDO_END invocation.
 2755         * sysdeps/unix/i386/fork.S: Likewise.
 2756         * sysdeps/unix/i386/pipe.S: Likewise.
 2757         * sysdeps/unix/i386/wait.S: Likewise.
 2758 
 2759         * sysdeps/unix/fork.S: Fix PSEUDO_END argument.
 2760         * sysdeps/unix/arm/fork.S: Likewise.
 2761 
 2762         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Swap DO_CALL
 2763         arguments.
 2764         (DO_CALL): Swap argument order.
 2765         * sysdeps/unix/sysv/linux/hppa/sysdep.h (PSEUDO): Swap DO_CALL
 2766         arguments.
 2767         (DO_CALL): Swap argument order.
 2768         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Swap DO_CALL
 2769         arguments.
 2770         (DO_CALL): Swap argument order.
 2771         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO): Swap DO_CALL
 2772         arguments.
 2773         (DO_CALL): Swap argument order.
 2774         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (PSEUDO): Swap DO_CALL
 2775         arguments.
 2776         (DO_CALL): Swap argument order.
 2777         * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Swap DO_CALL
 2778         arguments.
 2779         (DO_CALL): Swap argument order.
 2780         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Swap DO_CALL
 2781         arguments.
 2782         (DO_CALL): Swap argument order.
 2783 
 2784         * sysdeps/i386/sysdep.h (PSEUDO): Fix syntax error.
 2785         (L): Define right for ELF.
 2786         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Remove definition.
 2787         Now defined in sysdeps/i386/sysdep.h.
 2788 
 2789         * sysdeps/posix/readv.c: Ansify function definition.
 2790         * sysdeps/posix/writev.c: Likewise.
 2791 
 2792         * stdio-common/tst-fseek.c (main): Don't assume that off_t and size_t
 2793         have the same size. Avoid direct cast from size_t to off_t.
 2794 
 2795         * login/tst-utmp.c (simulate_login): Don't leave garbage after the
 2796         nul byte in entry[n].ut_user.
 2797         (simulate_logout): Likewise.
 2798 
 2799         * login/programs/utmpdump.c (print_entry): Test _HAVE_UT_TYPE,
 2800         _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST, instead of assuming the
 2801         existence of corresponding members of 'struct utmp'.
 2802         * login/tst-utmp.c: Trivialize the test if testing 'struct utmp' and
 2803         !_HAVE_UT_TYPE.
 2804 
 2805         * sysdeps/unix/opendir.c (__opendir): If st_blksize is 0 or too small,
 2806         allocate a buffer of at least BUFSIZ bytes, not just of
 2807         sizeof (struct dirent).
 2808 
 2809         * sysdeps/generic/glob.c: Include <limits.h>.
 2810         (NAME_MAX): Define a fallback.
 2811         (glob_in_dir): Allocate enough room for a 'struct dirent64' on the
 2812         stack.
 2813         * posix/tst-dir.c: Include <stddef.h>, for offsetof.
 2814         (main): Allocate enough room for a 'struct dirent64' on the stack.
 2815         * posix/tst-gnuglob.c (my_DIR): Allocate enough room for a
 2816         'struct dirent'.
 2817 
 2818         * sysdeps/unix/sysv/linux/init-first.c: Don't include
 2819         kernel-features.h.
 2820 
 2821         * inet/htontest.c: Include <sys/types.h>.
 2822 
 2823         * sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
 2824 
 2825         * include/sys/sysctl.h: Comment fix.
 2826 
 2827         * elf/rtld.c (_rtld_global) [! _LIBC_REENTRANT]: Don't initialize
 2828         _dl_load_lock.
 2829         * libio/fileno.c (fileno_unlocked): Define regardless of _IO_MTSAFE_IO.
 2830 
 2831         * sysdeps/unix/bsd/bsd4.4/syscalls.list (__sigaltstack): New alias.
 2832 
 2833         * sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
 2834         (__getpeername): New alias.
 2835         (__getsockname): New alias.
 2836         (__socket): New alias.
 2837 
 2838         * sysdeps/unix/common/syscalls.list (getpgid): Remove.
 2839 
 2840         * sysdeps/unix/syscalls.list (__chown_internal): New alias.
 2841         (__fcntl_internal): New alias.
 2842         (__profil): New alias.
 2843 
 2844 2002-08-26  Ulrich Drepper  <drepper@redhat.com>
 2845 
 2846         * nscd/hstcache.c (cache_addhst): Add new parameter saying whether
 2847         entry was for getaddr* lookup or not.  Add only matching cache
 2848         entry.  Change all callers [PR libc/4317].
 2849 
 2850         * libio/wfileops.c (_IO_wfile_seekoff): Set fp->_offset after
 2851         finding the read position [PR libc/4265].
 2852         * libio/Makefile (tests): Add bug-rewind2.
 2853         * libio/bug-rewind2.c: New file.
 2854 
 2855         * libio/bug-rewind.c: Fix creation of temp file.
 2856 
 2857 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
 2858 
 2859         * nss/getXXbyYY_r.c (REENTRANT_NAME): Return ENOENT if status is
 2860         neither SUCCESS nor TRYAGAIN [PR libc/4259].
 2861         * nss/nss_files/files-XXX.c (internal_getent): Don't set *errnop
 2862         to ENOENT if no entry is found.
 2863         * nis/nss_compat/compat-grp.c: Don't set errno in case of lookup
 2864         failure.
 2865         * nis/nss_compat/compat-initgroups.c: Likewise.
 2866         * nis/nss_compat/compat-pwd.c: Likewise.
 2867         * nis/nss_compat/compat-spwd.c: Likewise.
 2868         * nis/nss_nis/nis-alias.c: Likewise.
 2869         * nis/nss_nis/nis-ethers.c: Likewise.
 2870         * nis/nss_nis/nis-grp.c: Likewise.
 2871         * nis/nss_nis/nis-hosts.c: Likewise.
 2872         * nis/nss_nis/nis-initgroups.c: Likewise.
 2873         * nis/nss_nis/nis-netgrp.c: Likewise.
 2874         * nis/nss_nis/nis-network.c: Likewise.
 2875         * nis/nss_nis/nis-proto.c: Likewise.
 2876         * nis/nss_nis/nis-publickey.c: Likewise.
 2877         * nis/nss_nis/nis-pwd.c: Likewise.
 2878         * nis/nss_nis/nis-rpc.c: Likewise.
 2879         * nis/nss_nis/nis-service.c: Likewise.
 2880         * nis/nss_nis/nis-spwd.c: Likewise.
 2881         * resolv/nss_dns/dns-host.c: Likewise.
 2882         * resolv/nss_dns/dns-network.c: Likewise.
 2883         * nis/nss_nisplus/nisplus-alias.c: Save errno around NIS calls.
 2884         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
 2885         * nis/nss_nisplus/nisplus-grp.c: Likewise.
 2886         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
 2887         * nis/nss_nisplus/nisplus-network.c: Likewise.
 2888         * nis/nss_nisplus/nisplus-proto.c: Likewise.
 2889         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
 2890         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
 2891         * nis/nss_nisplus/nisplus-service.c: Likewise.
 2892         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
 2893         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Preserve errno value.
 2894         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
 2895         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Likewise.
 2896         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
 2897 
 2898         * sysdeps/unix/sysv/linux/i386/sigaction.c: Avoid warnings by
 2899         declaring __restore and __restore_rt as hidden (if possible).
 2900 
 2901 2002-08-25  Roland McGrath  <roland@redhat.com>
 2902 
 2903         * manual/llio.texi (Access Modes): Fix typos in O_READ/O_WRITE defns.
 2904 
 2905         * sysdeps/generic/utmp_file.c (LOCK_FILE): Check for error from fcntl.
 2906         (getutent_r_file, internal_getut_r): Updated all callers.
 2907         (getutline_r_file, pututline_file, updwtmp_file): Likewise.
 2908 
 2909 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
 2910 
 2911         * locale/programs/locale.c: Don't print aliases for non-existing
 2912         locales for 'locale -a'.
 2913         Patch by Noah Levitt <nlevitt@columbia.edu> [PR libc/4166].
 2914 
 2915 2002-07-19  H.J. Lu  <hjl@gnu.org>
 2916 
 2917         * sysdeps/unix/sysv/linux/mips/bits/msq.h: New file.
 2918 
 2919 2002-07-16  H.J. Lu  <hjl@gnu.org>
 2920 
 2921         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
 2922         sys/personality.h.
 2923         * sysdeps/unix/sysv/linux/sys/personality.h: New file.
 2924 
 2925 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
 2926 
 2927         * elf/tst-tlsmod1.c (in_dso): Make sure the TLS variable access is
 2928         not moved ahead of the fputs call.
 2929         * elf/tst-tlsmod2.c (in_dso): Likewise.
 2930         * elf/tst-tlsmod3.c (in_dso2): Likewise.
 2931         * elf/tst-tlsmod4.c (in_dso): Likewise.
 2932 
 2933 2002-08-25  Andreas Schwab  <schwab@suse.de>
 2934 
 2935         * elf/dl-reloc.c (_dl_reloc_bad_type): Nul-terminate message.
 2936 
 2937 2002-08-25  Roland McGrath  <roland@redhat.com>
 2938 
 2939         * sysdeps/generic/utmp_file.c (UNLOCK_FILE): Clear alarm before
 2940         resetting handler, to avoid the possibility of a spurious SIGALRM
 2941         delivered to the user's handler.
 2942         Reported by Amit D. Chaudhary <amitc@brocade.com>,
 2943 
 2944         * misc/Makefile (CFLAGS-init-misc.c): Variable removed.  It served to
 2945         set -fkeep-inline-functions, which is not needed for the current file.
 2946 
 2947         * sysdeps/generic/ldsodefs.h: Add attribute_hidden to *_internal decls.
 2948         (_dl_setup_hash): Add attribute_hidden.
 2949         (_dl_sysdep_start, _dl_sysdep_start_cleanup): Likewise.
 2950         (_dl_sysdep_read_whole_file, _dl_dprintf): Likewise.
 2951         (_dl_new_object, _dl_map_object_deps): Likewise.
 2952         (_dl_map_object_deps_internal): Remove decl.
 2953         * elf/rtld.c (__mempcpy, _exit): Redeclare locally as hidden.
 2954 
 2955         * sysdeps/i386/dl-machine.h [PI_STATIC_AND_HIDDEN
 2956         && HAVE_VISIBILITY_ATTRIBUTE && HAVE_HIDDEN
 2957         && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]
 2958         (elf_machine_dynamic, elf_machine_load_address): Rewritten without asm,
 2959         instead relying on the compiler to produce only GOTOFF variable refs.
 2960 
 2961 2002-08-25  Ulrich Drepper  <drepper@redhat.com>
 2962 
 2963         * elf/dl-load.c: Fix typo in comment.  Add a few more __builtin_expect.
 2964 
 2965         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Define as static
 2966         inline to avoid defining it in every file which includes this header.
 2967 
 2968         * elf/rtld.c: Also test for HAVE_VISIBILITY_ATTRIBUTE before
 2969         defining DONT_USE_BOOTSTRAP_MAP.
 2970 
 2971         * libio/tst-freopen.c (main): Use correct formats for __LINE__.
 2972         * libio/tst-mmap-setvbuf.c (main): Likewise.
 2973         * libio/tst-widetext.c (main): Likewise.
 2974 
 2975         * libio/tst-mmap-eofsync.c (do_test): Use correct format in error
 2976         message.
 2977         * libio/tst-mmap-fflushsync.c (do_test): Likewise.
 2978         * libio/tst-mmap2-eofsync.c (do_test): Likewise.
 2979 
 2980         * sysdeps/i386/elf/configure.in: Unconditionally define
 2981         PI_STATIC_AND_HIDDEN.
 2982         * elf/rtld.c (DONT_USE_BOOTSTRAP_MAP): Define only if
 2983         PI_STATIC_AND_HIDDEN is defined as well.
 2984         * config.h.in: Add PI_STATIC_AND_HIDDEN entry.
 2985 
 2986 2002-08-24  Ulrich Drepper  <drepper@redhat.com>
 2987 
 2988         * sysdeps/ia64/bzero.S: Define __bzero as well.
 2989 
 2990         * locale/programs/charmap.c (charmap_new_char): Don't use
 2991         ULONG_MAX as maximum UCS4 value.
 2992 
 2993         * sysdeps/unix/sysv/linux/ia64/sys/user.h: New file.
 2994 
 2995         * sysdeps/generic/strtol.c: We don't need the isascii test in glibc.
 2996 
 2997         * malloc/hooks.c (public_sET_STATe): use size_t as type for i.
 2998         * malloc/malloc.c (mALLINFo): Likewise.
 2999 
 3000         * libio/wstrops.c (_IO_wstr_pbackfail): Use WEOF in comparison.
 3001 
 3002         * libio/wfileops.c (_IO_wfile_overflow): Use EOF not WEOF when
 3003         examining result of _IO_do_flush call.
 3004 
 3005         * stdio-common/vfprintf.c (vfprintf): Use correct type in va_arg.
 3006         Use prec not spec when sizing buffers.
 3007 
 3008         * catgets/open_catalog.c (__open_catalog): Add casts to avoid warnings.
 3009         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
 3010         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
 3011         * stdio-common/vfscanf.c (inchar): Likewise.
 3012         * misc/efgcvt_r.c (fcvt_r): Likewise.
 3013         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
 3014         * elf/readlib.c (process_file): Likewise.
 3015         * elf/sprof.c (load_profdata): Likewise.
 3016         * sysdeps/ia64/hp-timing.h (HP_TIMING_PRINT): Likewise.
 3017         * locale/programs/linereader.c (get_toplvl_escape): Likewise.
 3018         * locale/programs/charmap.c (charmap_read): Likewise.
 3019         * libio/fileops.c: Likewise.
 3020         * libio/fmemopen.c: Likewise.
 3021         * stdlib/strtod.c: Likewise.
 3022         * elf/dl-load.c: Likewise.
 3023         * iconv/iconvconfig.c: Likewise.
 3024         * iconv/iconv_prog.c (process_block): Likewise.
 3025         * elf/rtld.c (dl_main): Likewise.
 3026 
 3027         * sysdeps/unix/sysv/linux/ia64/Makefile: Define _ASM_IA64_CURRENT_H
 3028         macro to calm down the compiler.
 3029 
 3030         * iconv/gconv_cache.c (__gconv_load_cache): Add cast to avoid warning.
 3031 
 3032         * sysdeps/ia64/elf/initfini.c: Don't use newlines embedded in string.
 3033 
 3034         * sysdeps/unix/sysv/linux/i386/sysdep.S: Update comment regarding
 3035         placement of errno definition.
 3036         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
 3037         * sysdeps/unix/sysv/linux/mips/sysdep.S: Likewise.
 3038         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
 3039         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
 3040         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
 3041 
 3042         * resolv/nss_dns/dns-host.c (MAXPACKET): Increase minimum value
 3043         from 1024 to 65536, to avoid buffer overrun.
 3044 
 3045 2002-08-16  Paul Eggert  <eggert@twinsun.com>
 3046 
 3047         * resolv/gethnamaddr.c (MAXPACKET): Increase minimum value
 3048         from 1024 to 65536, to avoid buffer overrun.
 3049         * resolv/res_query.c (MAXPACKET): Likewise.
 3050 
 3051 2002-08-24  Andreas Jaeger  <aj@suse.de>
 3052 
 3053         * sysdeps/unix/sysv/linux/i386/Versions: Remove *xattr syscalls.
 3054 
 3055 2002-08-23  Ulrich Drepper  <drepper@redhat.com>
 3056 
 3057         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Define and initialize
 3058         two52 locally.
 3059         (log2): Likewise.
 3060         * sysdeps/ieee754/dbl-64/upow.h: Remove definition of two52.
 3061         Patch by Simon Gee <simong@agile.tv>.
 3062 
 3063         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf):
 3064         Prefer reading /proc/stat since it is more uniform across
 3065         architectures.
 3066 
 3067         * manual/texinfo.tex: Update to latest official version.
 3068 
 3069         * sysvipc/sys/shm.h: Remove SHMLBA definition.
 3070         * sysdeps/generic/bits/shm.h: Define SHMLBA here.
 3071         * sysdeps/gnu/bits/shm.h: Likewise.
 3072         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
 3073         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
 3074         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
 3075         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
 3076         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
 3077         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
 3078         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
 3079         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Define SHMLBA to 2^20
 3080         since this is what the kernel says.
 3081 
 3082         * misc/sys/xattr.h: Include <sys/types.h> instead of <stddef.h>
 3083         since ssize_t is needed as well.  Replace const with __const.
 3084 
 3085 2002-08-23  Roland McGrath  <roland@redhat.com>
 3086 
 3087         * malloc/hooks.c (__malloc_initialize_hook, __free_hook,
 3088         __malloc_hook, __realloc_hook, __memalign_hook,
 3089         __after_morecore_hook): Variable definitions moved to ...
 3090         * malloc/malloc.c: ... here, so as to be before all references.
 3091 
 3092         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Add a dummy
 3093         global variable reference in an unused asm parameter, to ensure the
 3094         compiler has set up the GOT register before we use it.
 3095 
 3096         * malloc/hooks.c: Move variable definitions ahead of uses.
 3097         * libio/fileops.c: Move versioned_symbol defns ahead of _IO_jump_t
 3098         initializers that make reference to variables they define.
 3099 
 3100 2002-08-23  Andreas Jaeger  <aj@suse.de>
 3101 
 3102         * locale/loadarchive.c: Include <stdlib.h> for prototypes of
 3103         alloca, free, qsort.
 3104 
 3105         * dlfcn/bug-dlsym1-lib1.c (foo): Add prototype to avoid warning.
 3106 
 3107         * sysdeps/ieee754/flt-32/e_jnf.c: Remove unused variable.
 3108         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
 3109 
 3110         * misc/sys/xattr.h: New file, contributed by Christoph Hellwig
 3111         <hch@lst.de>.
 3112         * sysdeps/generic/fgetxattr.c: New file.
 3113         * sysdeps/generic/flistxattr.c: New file.
 3114         * sysdeps/generic/fremovexattr.c: New file.
 3115         * sysdeps/generic/fsetxattr.c: New file.
 3116         * sysdeps/generic/getxattr.c: New file.
 3117         * sysdeps/generic/listxattr.c: New file.
 3118         * sysdeps/generic/lgetxattr.c: New file.
 3119         * sysdeps/generic/llistxattr.c: New file.
 3120         * sysdeps/generic/lremovexattr.c: New file.
 3121         * sysdeps/generic/lsetxattr.c: New file.
 3122         * sysdeps/generic/removexattr.c: New file.
 3123         * sysdeps/generic/setxattr.c: New file.
 3124         * misc/Makefile (headers): Add sys/xattr.h.
 3125         (routines): Add *xattr calls.
 3126         * misc/Versions: Add *xattr calls with version 2.3.
 3127         * sysdeps/unix/sysv/linux/m68k/Versions: Remove *xattr syscalls.
 3128         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
 3129         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
 3130         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
 3131         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
 3132         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
 3133         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
 3134         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
 3135 
 3136 2002-08-22  Steven Munroe  <sjmunroe@us.ibm.com>
 3137 
 3138         * sysdeps/powerpc/elf/libc-start.c
 3139         (__cache_line_size): Declare.
 3140         (__aux_init_cache): New function.
 3141         (__libc_start_main): Change type of `auxvec' parameter to
 3142         `ElfW(auxv_t) *'.  Correct walking of aux vector.  Call
 3143         __aux_init_cache.
 3144         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
 3145         (__cache_line_size): Declare.
 3146         (__aux_init_cache): New function.
 3147         (DL_PLATFORM_INIT): Define.
 3148         * sysdeps/powerpc/memset.S: Define __cache_line_size and use its
 3149         value to select the correct stride for dcbz.
 3150 
 3151 2002-08-22  Andreas Jaeger  <aj@suse.de>
 3152 
 3153         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments of
 3154         shmat.
 3155 
 3156 2002-08-22  Roland McGrath  <roland@redhat.com>
 3157 
 3158         * locale/loadarchive.c (_nl_load_locale_from_archive): Check max file
 3159         position indicated by locrectab against file bounds before rounding to
 3160         page size.  In mapping loop, always set TO before breaking out of
 3161         contiguous range coalescing loop.
 3162 
 3163         * locale/loadarchive.c (_nl_load_locale_from_archive): Use MAP_PRIVATE
 3164         (or MAP_COPY if available) instead of MAP_SHARED.
 3165 
 3166         * scripts/firstversions.awk: When encountering a version newer than
 3167         the specified earliest version, be sure to emit the specified earliest
 3168         version first if any renaming of an older version to that has been.
 3169 
 3170 2002-08-21  Roland McGrath  <roland@redhat.com>
 3171 
 3172         * configure.in: Make GCC version check require 3.[2-9]* and no others.
 3173         * manual/install.texi (Tools for Compilation): Say 3.2 is required.
 3174         (Configuring and compiling): Don't mention older GCC versions any more.
 3175         * INSTALL: Regenerated.
 3176 
 3177         * manual/install.texi (Configuring and compiling, Installation,
 3178         Running make install, Linux): Linux -> GNU/Linux where appropriate.
 3179 
 3180         * elf/rtld.c (_dl_start_final): Move defn before _dl_start so it can
 3181         be inlined.  Declare it with always_inline if [DONT_USE_BOOTSTRAP_MAP]
 3182         and with noinline otherwise.  Remove hack alloca use to prevent
 3183         inlining, we can ask for it explicitly nowadays.
 3184 
 3185         * dlfcn/bug-dlsym1.c: New file.
 3186         * dlfcn/bug-dlsym1-lib1.c, dlfcn/bug-dlsym1-lib2.c: New files.
 3187         * dlfcn/Makefile (distribute): Add them.
 3188         (tests): Add bug-dlsym1 here.
 3189         (modules-names): Add bug-dlsym1-lib1 and bug-dlsym1-lib2 here.
 3190         ($(objpfx)bug-dlsym1, $(objpfx)bug-dlsym1.out): New targets.
 3191         ($(objpfx)bug-dlsym1-lib1.so, $(objpfx)bug-dlsym1-lib2.so): Likewise.
 3192 
 3193 2002-08-21  Ulrich Drepper  <drepper@redhat.com>
 3194 
 3195         * elf/rtld.c (start_time): New global variable.  Moved from _dl_start.
 3196         (DONT_USE_BOOTSTRAP_MAP): Define if we can use non-exported symbols
 3197         before relocation.
 3198         (_dl_start): Don't use local bootstrap_map variable if
 3199         DONT_USE_BOOTSTRAP_MAP is defined.  Use GL(dl_rtld_map).  Don't
 3200         pass bootstrap_map to _dl_start_final in this case either.  Don't
 3201         pass start_time to _dl_start_final ever.
 3202         (_dl_start_final): Don't copy bootstrap_map if DONT_USE_BOOTSTRAP_MAP.
 3203 
 3204         * elf/dl-deps.c (_dl_map_object_deps): Revert patch from 2002-05-28.
 3205         This cripples the scope lists necessary to search for symbols in
 3206         dependencies which are not in the global scope.
 3207 
 3208         * include/setjmp.h (__libc_longjmp): Add declaration.
 3209 
 3210 2002-08-21  Andreas Jaeger  <aj@suse.de>
 3211 
 3212         * sysdeps/x86_64/_mcount.S: Fix assembler.
 3213 
 3214         * sysdeps/unix/sysv/linux/x86_64/Makefile: Generate bits/syscall.h
 3215         with biarch support.
 3216 
 3217 2002-08-21  Andreas Jaeger  <aj@suse.de>
 3218 
 3219         * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Fix it.
 3220 
 3221         * sysdeps/x86_64/Makefile (sysdep_routines): Add _mcount.
 3222 
 3223         * sysdeps/x86_64/machine-gmon.h: New file.
 3224         * sysdeps/x86_64/_mcount.S: New file.
 3225 
 3226 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
 3227 
 3228         * elf/rtld.c (_dl_start): Pass zero to TLS_INIT_TP.  Set
 3229         bootstrap_map.l_tls_tp_initialized to 1 if TLS_INIT_TP was called.
 3230         (_dl_start_final): Copy l_tls_tp_initialized to GL(dl_rtld_map).
 3231         (dl_main): If HAVE___THREAD is not defined pass l_tls_tp_initialized
 3232         to TL_INIT_TP.  Otherwise pass 1.
 3233         * include/link.h (struct link_map): Add l_tls_tp_initialized.
 3234         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass 0 to TL_INIT_TP.
 3235 
 3236 2002-08-15  Jakub Jelinek  <jakub@redhat.com>
 3237 
 3238         * locale/programs/localedef.c (add_to_readlist): Error about
 3239         circular dependencies only if the locale in question hasn't
 3240         been finished.
 3241         * locale/programs/linereader.c (get_string): Pass LC_CTYPE not
 3242         CTYPE_LOCALE to load_locale.
 3243         * locale/programs/locfile.c (locfile_read): Don't include
 3244         unneeded but available locales in locale_mask.
 3245 
 3246         * locale/programs/locarchive.c (enlarge_archive): If quiet, don't
 3247         print any messages about enlarging archive.
 3248 
 3249 2002-08-20  Brian Youmans  <3diff@gnu.org>
 3250 
 3251         * manual/contrib.texi: Removed licenses, added acknowledgements
 3252         for contributions by Intel, IBM, Craig Metz.
 3253         * LICENSES: New file, contains the text of all non-FSF licenses in the
 3254         distribution that require putting the notice in the accompanying
 3255         documentation.
 3256         * README.template, README: Mention LICENSES.
 3257 
 3258         * sysdeps/mach/hurd/net/if_ppp.h: Replaced CMU license with a
 3259         new one modelled on the modern BSD license, per recent letter
 3260         of permission from CMU.
 3261         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
 3262 
 3263         * sysdeps/ieee754/dbl-64/MathLib.h: Changed the copyright holder
 3264         from IBM to FSF, per the recent Software Letter.  Changed the
 3265         distribution terms from GPL to LGPL.
 3266 
 3267         * sysdeps/ieee754/dbl-64/asincos.tbl: Added FSF copyright and
 3268         copying permission notice (Lesser GPL), per recent IBM Software Letter.
 3269         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
 3270         * sysdeps/ieee754/dbl-64/root.tbl: Likewise.
 3271         * sysdeps/ieee754/dbl-64/sincos.tbl: Likewise.
 3272         * sysdeps/ieee754/dbl-64/uatan.tbl: Likewise.
 3273         * sysdeps/ieee754/dbl-64/uexp.tbl: Likewise.
 3274         * sysdeps/ieee754/dbl-64/ulog.tbl: Likewise.
 3275         * sysdeps/ieee754/dbl-64/upow.tbl: Likewise.
 3276         * sysdeps/ieee754/dbl-64/utan.tbl: Likewise.
 3277 
 3278         * sysdeps/ieee754/dbl-64/atnat.h: Changed the copyright holder
 3279         from IBM to FSF, per the recent Software Letter.  Corrected the
 3280         text of the copying permission notice to say Lesser GPL instead
 3281         of GPL in warranty disclaimer paragraph.
 3282         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
 3283         * sysdeps/ieee754/dbl-64/branred.h: Likewise.
 3284         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
 3285         * sysdeps/ieee754/dbl-64/doasin.h: Likewise.
 3286         * sysdeps/ieee754/dbl-64/dosincos.h: Likewise.
 3287         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
 3288         * sysdeps/ieee754/dbl-64/mpa2.h: Likewise.
 3289         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
 3290         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
 3291         * sysdeps/ieee754/dbl-64/mplog.h: Likewise.
 3292         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
 3293         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
 3294         * sysdeps/ieee754/dbl-64/sincos32.h: Likewise.
 3295         * sysdeps/ieee754/dbl-64/uasncs.h: Likewise.
 3296         * sysdeps/ieee754/dbl-64/uexp.h: Likewise.
 3297         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
 3298         * sysdeps/ieee754/dbl-64/upow.h: Likewise.
 3299         * sysdeps/ieee754/dbl-64/urem.h: Likewise.
 3300         * sysdeps/ieee754/dbl-64/uroot.h: Likewise.
 3301         * sysdeps/ieee754/dbl-64/usncs.h: Likewise.
 3302         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
 3303 
 3304         * sysdeps/ieee754/dbl-64/branred.c: Corrected the text of the copying
 3305         permission notice to say Lesser GPL instead of GPL in warranty
 3306         disclaimer paragraph.
 3307         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
 3308         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
 3309         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
 3310         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
 3311         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
 3312         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
 3313         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
 3314         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
 3315         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
 3316         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
 3317         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
 3318         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
 3319         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
 3320         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
 3321         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
 3322         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
 3323         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
 3324         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
 3325         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
 3326         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
 3327         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
 3328         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
 3329         * sysdeps/ieee754/dbl-64/slowpow.c:  Likewise.
 3330 
 3331 2002-08-20  Roland McGrath  <roland@redhat.com>
 3332 
 3333         Fix ABI compatibility with libc compiled with old tools on powerpc.
 3334         Changes contributed by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
 3335         and Jack Howarth <howarth@bromo.med.uc.edu>.
 3336         * sysdeps/powerpc/Makefile [$(have-protected) = yes]
 3337         (CPPFLAGS-divdi3.c, CPPFLAGS-libgcc-compat.S): New variables,
 3338         pass -DHAVE_DOT_HIDDEN for these files.
 3339         * sysdeps/powerpc/Versions (libc: GLIBC_2.0): Added __floatdidf,
 3340         __floatdisf.
 3341         * sysdeps/powerpc/divdi3.c: New file.
 3342         * sysdeps/powerpc/libgcc-compat.S: New file, replacement for ...
 3343         * sysdeps/powerpc/libgcc-compat.c: ... this, file removed.
 3344 
 3345 2002-08-20  Jakub Jelinek  <jakub@redhat.com>
 3346 
 3347         * locale/loadarchive.c (_nl_load_locale_from_archive): Handle
 3348         partially overlapping mappings.  Remove unneeded (char *) casts.
 3349         Never allow duplication of ranges in mapped areas.
 3350 
 3351 2002-08-20  Roland McGrath  <roland@redhat.com>
 3352 
 3353         * elf/Makefile ($(objpfx)ld.so): Separate commands in rule so errors
 3354         can be detected by make.  Reported by H.J. Lu <hjl@gnu.org>.
 3355 
 3356 2002-08-20  Ulrich Drepper  <drepper@redhat.com>
 3357 
 3358         * include/unistd.h: Don't hide _exit.
 3359 
 3360         * elf/rtld.c (_dl_start): Pass extra argument 1 to TLS_INIT_TP.
 3361         (dl_main): Pass extra argument 0 to TLS_INIT_TP.
 3362         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Pass extra
 3363         argument 1 to TLS_INIT_TP.
 3364         * sysdeps/generic/tls.h (TLS_INIT_TP): Describe new parameter.
 3365 
 3366         * sysdeps/generic/dl-tls.c (allocate_dtv): Optimize a bit.
 3367 
 3368         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_tls_static_info.
 3369         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Move dtv
 3370         memory allocation to...
 3371         (allocate_dtv): ...here.  New function.
 3372         (_dl_allocate_tls): Change to take parameter.  If parameter is non-NULL
 3373         call allocate_dtv instead of _dl_allocate_tls_storage.
 3374         (_dl_deallocate_tls): New parameter.  Deallocate TCB only if true.
 3375         (_dl_get_tls_static_info): New function.
 3376         * sysdeps/generic/ldsodefs.h: Adjust prototypes of _dl_allocate_tls
 3377         and _dl_deallocate_tls.  Add prototype for _dl_get_tls_static_info.
 3378 
 3379 2002-08-19  Ulrich Drepper  <drepper@redhat.com>
 3380 
 3381         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
 3382         immediately if result == NULL.
 3383 
 3384 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
 3385 
 3386         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
 3387 
 3388 2002-08-18  Roland McGrath  <roland@frob.com>
 3389 
 3390         * sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
 3391         instead of __file_name_split.
 3392         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
 3393 
 3394         * sysdeps/mach/hurd/dl-sysdep.c
 3395         [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
 3396         [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
 3397 
 3398 2002-08-16  Jakub Jelinek  <jakub@redhat.com>
 3399 
 3400         * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
 3401         in change before last: MAX -> MIN.
 3402 
 3403 2002-08-15  Roland McGrath  <roland@redhat.com>
 3404 
 3405         * libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
 3406         if seek would go past it.
 3407         (mmap_remap_check): If file position is at or past EOF after check,
 3408         leave read pointers at EOF and don't seek.
 3409 
 3410         * libio/tst-mmap-offend.c: New file.
 3411         * libio/Makefile (tests): Add it.
 3412 
 3413         * locale/loadarchive.c (_nl_load_locale_from_archive): Store strdup of
 3414         the name as passed, rather than the name in the archive dictionary.
 3415 
 3416 2002-08-15  Ulrich Drepper  <drepper@redhat.com>
 3417 
 3418         * csu/Makefile: Define elide-routines.os not static-only-routines.
 3419 
 3420         * include/sched.h (__clone): Add varargs at the end.
 3421 
 3422         * elf/rtld.c (_dl_start): Allow TLS_INIT_TP to fail, and stop in that
 3423         case.
 3424         (TLS_INIT_HELPER): If defined, use it.
 3425         * sysdeps/generic/libc-tls.c (TLS_INIT_HELPER): Likewise.
 3426 
 3427 2002-08-15  Roland McGrath  <roland@redhat.com>
 3428 
 3429         * elf/dl-load.c (lose): Remove [!SHARED] conditional from null check
 3430         on L->l_prev; it can happen under rtld --verify too.
 3431 
 3432         * locale/loadarchive.c (_nl_load_locale_from_archive): Don't read the
 3433         header separately, just map an initial window of 2MB from the file
 3434         and remap if that is not large enough to cover the whole header.
 3435 
 3436 2002-08-15  Andreas Jaeger  <aj@suse.de>
 3437 
 3438         * sysdeps/unix/sysv/linux/m68k/Versions: Add *xattr syscalls with
 3439         version 2.3.
 3440         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
 3441         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
 3442         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
 3443         * sysdeps/unix/sysv/linux/x86_64/Versions: Likewise.
 3444         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
 3445         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
 3446         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
 3447         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
 3448         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
 3449         Patch by Andreas Gruenbacher <agruen@suse.de>.
 3450 
 3451         * sysdeps/unix/sysv/linux/syscalls.list: Add *xattr syscalls.
 3452 
 3453 2002-08-14  Roland McGrath  <roland@redhat.com>
 3454 
 3455         * locale/locarchive.h (struct locale_category_data): Give this name to
 3456         the type of locale_data_t's elements.
 3457         * locale/programs/locarchive.c (cmpcategorysize): New static function.
 3458         (add_locale): Use that to sort the categories by size and put all
 3459         those that fit into two pages into the LC_ALL block, instead of
 3460         hard-coding it to do everything but LC_CTYPE and LC_COLLATE.
 3461         (show_archive_content): Detect categories inside LC_ALL block
 3462         directly, instead of hard-coding.
 3463         (oldlocrecentcmp): Compare just on file locations used.
 3464 
 3465 2002-08-14  Jakub Jelinek  <jakub@redhat.com>
 3466 
 3467         * locale/programs/locarchive.c (struct oldlocrecent): New type.
 3468         (oldlocrecentcmp): New function.
 3469         (enlarge_archive): Re-add locales in the order they were added
 3470         to the archive.
 3471         (add_locale): Put all the small locale files together, if the small
 3472         locale file block would occupy less pages if page size aligned, align
 3473         it.
 3474         (show_archive_content): Adjust for locale archives optimized for speed.
 3475 
 3476 2002-08-14  Roland McGrath  <roland@frob.com>
 3477 
 3478         * configure.in: Use "MISSING" as not-found value for MIG.
 3479         * sysdeps/mach/configure.in: Fatal if mig not found.
 3480         * configure, sysdeps/mach/configure: Regenerated.
 3481 
 3482 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
 3483 
 3484         * locale/loadarchive.c (archfname): Add missing slash.
 3485 
 3486         * sysdeps/generic/strtold.c (__strtold_internal): Add libc_hidden_def.
 3487         * wcsmbs/wcstold.c (__wcstold_internal): Add libc_hidden_def.
 3488 
 3489 2002-08-12  Roland McGrath  <roland@redhat.com>
 3490 
 3491         * include/sys/wait.h (__waitpid): Add libc_hidden_proto.
 3492         * sysdeps/unix/sysv/sco3.2.4/waitpid.S: Add libc_hidden_def.
 3493         * sysdeps/unix/sysv/sysv4/waitpid.c: Add libc_hidden_weak.
 3494         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
 3495         * sysdeps/unix/sysv/aix/waitpid.c: Likewise.
 3496         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
 3497         * sysdeps/generic/waitpid.c: Likewise.
 3498 
 3499         * include/net/if.h: New file.  Use libc_hidden_proto
 3500         for if_nametoindex and if_indextoname.
 3501         * sysdeps/generic/if_index.c: Add libc_hidden_def.
 3502         * sysdeps/mach/hurd/if_index.c: Likewise.
 3503         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
 3504 
 3505         * include/grp.h (setgroups): Add libc_hidden_proto.
 3506         * sysdeps/generic/setgroups.c: Add libc_hidden_def.
 3507         * sysdeps/mach/hurd/setgroups.c: Likewise.
 3508         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
 3509         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
 3510 
 3511 2002-08-13  Jakub Jelinek  <jakub@redhat.com>
 3512 
 3513         * include/unistd.h (seteuid, setegid): Add libc_hidden_proto.
 3514         * sysdeps/generic/seteuid.c (seteuid): Add libc_hidden_def.
 3515         * sysdeps/generic/setegid.c (setegid): Likewise.
 3516         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
 3517         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
 3518         * sysdeps/unix/bsd/seteuid.c (seteuid): Likewise.
 3519         * sysdeps/unix/bsd/setegid.c (setegid): Likewise.
 3520         * sysdeps/unix/sysv/aix/seteuid.c (seteuid): Likewise.
 3521         * sysdeps/unix/sysv/aix/setegid.c (setegid): Likewise.
 3522         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
 3523         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c (seteuid): Likewise.
 3524         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c (setegid): Likewise.
 3525         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
 3526         * sysdeps/unix/sysv/linux/setegid.c (setegid): Likewise.
 3527         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
 3528         Remove fallback if __ASSUME_SETRESUID_SYSCALL.
 3529 
 3530         * include/sys/stat.h (__fxstat_internal, __fxstat64_internal,
 3531         __lxstat_internal, __lxstat64_internal): Remove.
 3532         (__fxstat, __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64):
 3533         Add hidden_proto.
 3534         * sysdeps/generic/fxstat.c (__fxstat): Add hidden_def.
 3535         Remove INTDEF where present, remove #undef at the beginning.
 3536         * sysdeps/generic/fxstat64.c (__fxstat64): Likewise.
 3537         * sysdeps/generic/lxstat.c (__lxstat): Likewise.
 3538         * sysdeps/generic/lxstat64.c (__lxstat64): Likewise.
 3539         * sysdeps/generic/xstat.c (__xstat): Likewise.
 3540         * sysdeps/generic/xstat64.c (__xstat64): Likewise.
 3541         * sysdeps/mach/hurd/dl-sysdep.c (__xstat64, __fxstat64): Likewise.
 3542         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
 3543         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
 3544         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
 3545         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
 3546         * sysdeps/mach/hurd/xstat.c (__xstat): Likewise.
 3547         * sysdeps/mach/hurd/xstat64.c (__xstat64): Likewise.
 3548         * sysdeps/unix/fxstat.c (__fxstat): Likewise.
 3549         * sysdeps/unix/common/lxstat.c (__lxstat): Likewise.
 3550         * sysdeps/unix/sysv/aix/fxstat.c (__fxstat): Likewise.
 3551         * sysdeps/unix/sysv/aix/fxstat64.c (__fxstat64): Likewise.
 3552         * sysdeps/unix/sysv/aix/lxstat.c (__lxstat): Likewise.
 3553         * sysdeps/unix/sysv/aix/lxstat64.c (__lxstat64): Likewise.
 3554         * sysdeps/unix/sysv/aix/xstat.c (__xstat): Likewise.
 3555         * sysdeps/unix/sysv/aix/xstat64.c (__xstat64): Likewise.
 3556         * sysdeps/unix/sysv/linux/ia64/fxstat.c (__fxstat): Likewise.
 3557         * sysdeps/unix/sysv/linux/ia64/lxstat.c (__lxstat): Likewise.
 3558         * sysdeps/unix/sysv/linux/ia64/xstat.c (__xstat): Likewise.
 3559         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c (__fxstat): Likewise.
 3560         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c (__lxstat): Likewise.
 3561         * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c (__xstat): Likewise.
 3562         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
 3563         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
 3564         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
 3565         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
 3566         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
 3567         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
 3568         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Likewise.
 3569         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
 3570         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
 3571         * sysdeps/unix/xstat.c (__xstat): Likewise.
 3572 
 3573         * include/sys/statvfs.h (statvfs, fstatvfs): Add libc_hidden_proto.
 3574         * sysdeps/generic/statvfs.c (statvfs): Add libc_hidden_def.
 3575         * sysdeps/generic/fstatvfs.c (fstatvfs): Likewise.
 3576         * sysdeps/mach/hurd/statvfs.c (statvfs): Likewise.
 3577         * sysdeps/mach/hurd/fstatvfs.c (fstatvfs): Likewise.
 3578         * sysdeps/unix/sysv/linux/statvfs.c (statvfs): Likewise.
 3579         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Likewise.
 3580 
 3581         * include/unistd.h (tcgetpgrp): Add libc_hidden_proto.
 3582         * include/termios.h (tcsetattr, cfsetispeed, cfsetospeed): Likewise.
 3583         * sysdeps/generic/tcgetpgrp.c (tcgetpgrp): Add libc_hidden_def.
 3584         * sysdeps/generic/tcsetattr.c (tcsetattr): Likewise.
 3585         * sysdeps/generic/speed.c (cfsetispeed, cfsetospeed): Likewise.
 3586         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c (tcgetpgrp): Likewise.
 3587         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Likewise.
 3588         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfsetispeed, cfsetospeed):
 3589         Likewise.
 3590         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
 3591         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
 3592         * sysdeps/unix/sysv/aix/tcsetattr.c (tcsetattr): Likewise.
 3593         * sysdeps/unix/sysv/aix/speed.c (cfsetispeed, cfsetospeed): Likewise.
 3594         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
 3595         * sysdeps/unix/sysv/linux/speed.c (cfsetispeed, cfsetospeed): Likewise.
 3596         * sysdeps/unix/sysv/tcgetpgrp.c (tcgetpgrp): Likewise.
 3597         * sysdeps/unix/sysv/tcsetattr.c (tcsetattr): Likewise.
 3598 
 3599         * include/string.h (strcoll): Add libc_hidden_proto.
 3600         * string/strcoll.c (strcoll): Add libc_hidden_def.
 3601 
 3602         * misc/err.c (vwarn): Fix pasto in libc_hidden_def.
 3603 
 3604 2002-08-11  Philip Blundell  <philb@gnu.org>
 3605 
 3606         * sysdeps/arm/Makefile: New file.
 3607 
 3608 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
 3609 
 3610         * posix/regcomp.c (parse_reg_exp): If '|' is immediately followed
 3611         by another '|', end of regex or enclosing ')', clear branch.
 3612         * posix/bug-regex9.c: New test.
 3613         * posix/Makefile (tests): Add bug-regex9.
 3614 
 3615 2002-08-12  Roland McGrath  <roland@redhat.com>
 3616 
 3617         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Fix inner loop
 3618         start count condition, use TOTAL instead of variable that was never
 3619         set.  Fix outer loop termination condition to TOTAL >= after update.
 3620 
 3621         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize
 3622         dl_tls_static_align and dl_tls_static_nelem.
 3623 
 3624 2002-08-11  Roland McGrath  <roland@redhat.com>
 3625 
 3626         * elf/tst-tlsmod4.c (in_dso): Insert a random library call before use
 3627         of the TLS macros, otherwise the compiler might not have initialized
 3628         the PIC register yet when we use the PLT via asm.
 3629         * elf/tst-tlsmod3.c (in_dso2): Likewise.
 3630         * elf/tst-tlsmod2.c (in_dso): Likewise.
 3631 
 3632         * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!).
 3633 
 3634         * sysdeps/i386/bits/byteswap.h (__bswap_16, __bswap_32, __bswap_64):
 3635         Evaluate argument exactly once.  Remove __volatile__ from asm's.
 3636 
 3637         * include/unistd.h: Use libc_hidden_proto for getdomainname
 3638         and getlogin_r.
 3639         * sysdeps/generic/getdomain.c: Add libc_hidden_def.
 3640         * sysdeps/mach/hurd/getdomain.c: Likewise.
 3641         * sysdeps/unix/getlogin_r.c: Likewise.
 3642         * sysdeps/mach/hurd/getlogin_r.c: Likewise.
 3643         * sysdeps/generic/getlogin_r.c: Likewise.
 3644 
 3645         * include/rpc/auth_des.h: Use libc_hidden_proto for rtime.
 3646         * sunrpc/rtime.c: Add libc_hidden_def.
 3647 
 3648         * include/string.h: Use libc_hidden_proto for basename.
 3649         * string/basename.c [_LIBC]: Add libc_hidden_def.
 3650 
 3651         * sysdeps/unix/sysv/linux/opensock.c (__opensock): socket -> __socket.
 3652 
 3653         * locale/loadarchive.c: munmap -> __munmap throughout.
 3654 
 3655         * include/netdb.h: Use libc_hidden_proto for gai_strerror.
 3656         * sysdeps/posix/gai_strerror.c: Add libc_hidden_def.
 3657         * sysdeps/generic/gai_strerror.c: Likewise.
 3658 
 3659         * include/sys/errno.h: New file.
 3660 
 3661         * include/signal.h: No libc_hidden_proto for raise,
 3662         __libc_current_sigrtmin, __libc_current_sigrtmax.
 3663         These need to be overridden by linuxthreads.
 3664         * sysdeps/posix/raise.c: Reverted.
 3665         * sysdeps/generic/raise.c: Reverted.
 3666         * signal/allocrtsig.c: Reverted.
 3667 
 3668         * locale/loadarchive.c (LOCALEDIR): Remove debugging defn.  Oops.
 3669 
 3670 2002-08-10  Roland McGrath  <roland@redhat.com>
 3671 
 3672         * locale/loadarchive.c (_nl_archive_subfreeres): New function.
 3673         * locale/localeinfo.h: Declare it.
 3674         * locale/setlocale.c (free_mem): Don't call _nl_unload_locale on the
 3675         current locale if it's not in the file list.
 3676         Call _nl_archive_subfreeres.
 3677 
 3678 2002-08-10  Andreas Jaeger  <aj@suse.de>
 3679 
 3680         * sysdeps/i386/strchr.S: Add comment.
 3681 
 3682 2002-08-10  Roland McGrath  <roland@redhat.com>
 3683 
 3684         * include/wchar.h (putwc): Use libc_hidden_proto.
 3685         * include/stdio.h (dprintf, fprintf, vfprintf, sprintf,
 3686         sscanf, fwrite, perror, remove, rewind, open_memstream): Likewise.
 3687         * stdio-common/dprintf.c: Add libc_hidden_def.
 3688         * stdio-common/fprintf.c: Likewise.
 3689         * stdio-common/sprintf.c: Likewise.
 3690         * stdio-common/sscanf.c: Likewise.
 3691         * libio/iofwrite.c: Likewise.
 3692         * libio/memstream.c: Likewise.
 3693         * libio/putwc.c: Likewise.
 3694         * stdio-common/perror.c: Likewise.
 3695         * sysdeps/posix/remove.c: Likewise.
 3696         * sysdeps/generic/remove.c: Likewise.
 3697         * libio/rewind.c: Likewise.  Use <stdio.h> instead of "stdio.h".
 3698         * stdio-common/vfprintf.c: Add libc_hidden_def.  Include <stdio.h>.
 3699 
 3700 2002-08-09  Jakub Jelinek  <jakub@redhat.com>
 3701 
 3702         * include/wctype.h (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
 3703         towlower, towupper): Add prototypes here too.  Add libc_hidden_proto.
 3704         * wctype/wcfuncs.c (iswalpha, iswdigit, iswlower, iswspace, iswxdigit,
 3705         towlower, towupper): Add libc_hidden_weak.
 3706 
 3707         * include/bits/dlfcn.h: New file.
 3708         * elf/dl-profstub.c (_dl_mcount_wrapper_check): Add libc_hidden_def.
 3709 
 3710         * include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
 3711         * include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
 3712         * include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
 3713         * include/pwd.h (_nss_files_parse_pwent): Likewise.
 3714         * include/shadow.h (_nss_files_parse_spent): Likewise.
 3715         * include/netdb.h (_nss_files_parse_protoent,
 3716         _nss_files_parse_servent, _nss_files_parse_netent): Likewise.
 3717         * nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
 3718         (LINE_PARSER): Use it.
 3719         * nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
 3720         * nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.
 3721 
 3722         * libio/oldiopopen.c: Move #if SHLIB_COMPAT after _IO_HAVE_SYS_WAIT
 3723         #endif.
 3724 
 3725         * manual/debug.texi (%MENU%): Remove trailing dot.
 3726         Reported by <hayastan132@hotmail.com>.
 3727 
 3728         * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek): Add lseek
 3729         aliases.
 3730         (lseek): Dummy.
 3731         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, lseek):
 3732         Likewise.
 3733 
 3734 2002-08-09  Roland McGrath  <roland@redhat.com>
 3735 
 3736         * locale/loadarchive.c (_nl_load_locale_from_archive): Parse locale
 3737         name to find codeset name (if any) and normalize it.  If the
 3738         normalized name differs, look up only that in the archive.
 3739         * locale/programs/locarchive.c (add_locale_to_archive): If the name
 3740         contains a codeset, normalize the codeset store only the normalized
 3741         name in the archive.  If not, add an alias containing the locale's
 3742         normalized codeset name.  Apply codeset name normalization when
 3743         matching entries in the alias file.
 3744 
 3745         * locale/programs/locarchive.c (delete_locales_from_archive): Don't
 3746         decrement HEAD->namehash_used here.
 3747         (add_locale): Only need to insert name string when name_offset != 0.
 3748 
 3749         * locale/programs/localedef.c (options): Add -A/--alias-file.
 3750         (alias_file): New variable.
 3751         (parse_opt): Grok -A, set that.
 3752         * locale/programs/localedef.h: Declare it.
 3753 
 3754         * locale/locarchive.h (struct locrecent): Add `refs' member.
 3755         * locale/programs/locarchive.c (insert_name): New function, broken out
 3756         of ...
 3757         (add_locale_to_archive): ... here.  Call that.
 3758         (add_alias): New function.
 3759         (add_locale): New static function, add_locale_to_archive renamed.
 3760         (add_locale_to_archive): Call that and use add_alias to add an alias
 3761         for the name with codeset if the given name lacks it.
 3762         (enlarge_archive): Call add_locale instead of add_locale_to_archive.
 3763 
 3764         * locale/Makefile (routines): Add loadarchive.
 3765         * locale/loadarchive.c: New file, started from code by Ulrich Drepper.
 3766         (_nl_load_locale_from_archive): New function.
 3767         * locale/localeinfo.h: Declare it.
 3768         * locale/findlocale.c (_nl_find_locale): If using default locale path,
 3769         try _nl_load_locale_from_archive first.
 3770 
 3771         * locale/loadlocale.c (_nl_intern_locale_data): New function,
 3772         broken out of _nl_load_locale.
 3773         (_nl_load_locale): Call that.
 3774         * locale/localeinfo.h: Declare it.
 3775         (struct locale_data): Replace member `mmaped' with `alloc', an enum.
 3776         (struct locale_data): Remove unused member `options'.
 3777         * locale/findlocale.c (_nl_remove_locale): Update uses.
 3778         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
 3779         * locale/C-collate.c: Update initializer.
 3780         * locale/C-identification.c: Likewise.
 3781         * locale/C-measurement.c: Likewise.
 3782         * locale/C-telephone.c: Likewise.
 3783         * locale/C-address.c: Likewise.
 3784         * locale/C-name.c: Likewise.
 3785         * locale/C-paper.c: Likewise.
 3786         * locale/C-time.c: Likewise.
 3787         * locale/C-numeric.c: Likewise.
 3788         * locale/C-monetary.c: Likewise.
 3789         * locale/C-messages.c : Likewise.
 3790         * locale/C-ctype.c: Likewise.
 3791 
 3792         * locale/hashval.h [! LONGBITS]: Include <limits.h> here and
 3793         use CHAR_BIT instead of BITSPERBYTE.
 3794 
 3795         * locale/localeinfo.h (_nl_find_locale, _nl_load_locale,
 3796         _nl_unload_locale): Add `internal_function attribute_hidden' to decls.
 3797         * locale/findlocale.c (_nl_find_locale): Add internal_function to defn.
 3798         (_nl_remove_locale): Likewise.
 3799         * locale/loadlocale.c (_nl_load_locale, _nl_unload_locale): Likewise.
 3800 
 3801         * locale/findlocale.c (_nl_default_locale_path): New variable.
 3802         (_nl_find_locale): If LOCALE_PATH is null, default to that.
 3803         * locale/localeinfo.h: Declare it.
 3804         * locale/setlocale.c (setlocale): Use _nl_default_locale_path
 3805         in place of LOCALEDIR.  If no LOCPATH, pass null to _nl_find_locale.
 3806         * locale/newlocale.c (__newlocale): Likewise.
 3807 
 3808         * misc/err.c (vwarnx, vwarn): Fix typos in libc_hidden_def uses.
 3809         * inet/rexec.c (rexec_af): Add libc_hidden_def.
 3810         * sysdeps/generic/morecore.c: Likewise.
 3811         * signal/allocrtsig.c (__libc_current_sigrtmin): Likewise.
 3812         (__libc_current_sigrtmax): Likewise.
 3813 
 3814 2002-08-08  Roland McGrath  <roland@redhat.com>
 3815 
 3816         * locale/loadlocale.c (_nl_load_locale): Don't use MAP_INHERIT.
 3817         * catgets/open_catalog.c (__open_catalog): Likewise.
 3818 
 3819         * locale/programs/locarchive.c (INITIAL_NUM_NAMES): Renamed
 3820         from typo INITIAL_NUM_NANES.
 3821         (create_archive): Update use.
 3822 
 3823 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
 3824 
 3825         * sysdeps/unix/sysv/linux/sigwait.c: New file.
 3826 
 3827 2002-08-08  Roland McGrath  <roland@frob.com>
 3828 
 3829         * resolv/netdb.h: Don't declare h_errno as a plain global any more.
 3830 
 3831 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
 3832 
 3833         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define to something
 3834         else and undefine after including wcstol_l.c.
 3835         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Similarly.
 3836 
 3837 2002-08-08  Ulrich Drepper  <drepper@redhat.com>
 3838 
 3839         * gmon/gmon.c (write_gmon): Use O_NOFOLLOW in open calls if available.
 3840 
 3841 2002-08-08  Alexandre Oliva  <aoliva@redhat.com>
 3842 
 3843         * configure.in: Make the test for broken_alias_attribute stricter.
 3844 
 3845 2002-05-24  Robert Love  <rml@tech9.net>
 3846 
 3847         * posix/Makefile (routines): Add sched_getaffinity and
 3848         sched_setaffinity.
 3849         * posix/sched.h: Add declarations for sched_getaffinity and
 3850         sched_setaffinity.
 3851         * sysdeps/generic/sched_getaffinity.c: New file.
 3852         * sysdeps/generic/sched_setaffinity.c: New file.
 3853         * sysdeps/unix/sysv/linux/syscalls.list: Add sched_getaffinity and
 3854         sched_setaffinity.
 3855 
 3856 2002-08-06  Andreas Schwab  <schwab@suse.de>
 3857 
 3858         * sysdeps/unix/utime.c: If TIMES is NULL pass it through to utimes.
 3859 
 3860 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
 3861 
 3862         * elf/dl-load.c (_dl_map_object_from_fd): Add missing \n in error
 3863         message.
 3864 
 3865         * stdlib/isomac.c (get_null_defines): Treat NOT_IN_libc special.
 3866         It is known to be defined.
 3867 
 3868         * include/string.h: Define index and rindex only if _ISOMAC is not
 3869         defined.
 3870 
 3871         * elf/rtld.c: Include <errno.h>.
 3872         * sysdeps/generic/libc-tls.c: Likewise.
 3873 
 3874 2002-08-07  Roland McGrath  <roland@redhat.com>
 3875 
 3876         * resolv/res_debug.c (latlon2ul): Add const to argument type, and use
 3877         it internally.
 3878         (precsize_aton): Likewise.
 3879 
 3880         * inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
 3881         the static symbols added in the last change (doofus is me).
 3882 
 3883         * locale/newlocale.c (__newlocale): Use a bit mask instead of a second
 3884         loop to notice missing categories in a composite name.
 3885 
 3886         * locale/locale.h (LC_CTYPE_MASK, LC_NUMERIC_MASK, LC_TIME_MASK,
 3887         LC_COLLATE_MASK, LC_MONETARY_MASK, LC_MESSAGES_MASK, LC_ALL_MASK,
 3888         LC_PAPER_MASK, LC_NAME_MASK, LC_ADDRESS_MASK, LC_TELEPHONE_MASK,
 3889         LC_MEASUREMENT_MASK, LC_IDENTIFICATION_MASK, LC_ALL_MASK): New macros.
 3890 
 3891 2002-08-07  Ulrich Drepper  <drepper@redhat.com>
 3892 
 3893         * malloc/tst-calloc.c: Add tests for one or both parameters being zero.
 3894 
 3895 2002-08-07  Roland McGrath  <roland@redhat.com>
 3896 
 3897         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add to, don't clobber,
 3898         unrelocated initial value for DTPOFF32 and TPOFF32 relocs.
 3899         Reported by Jakub Jelinek  <jakub@redhat.com>.
 3900 
 3901 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
 3902 
 3903         * malloc/malloc.c (public_cALLOc): Check ELEM_SIZE != 0 before
 3904         division.
 3905 
 3906 2002-08-06  Roland McGrath  <roland@redhat.com>
 3907 
 3908         * include/getopt.h: Put private decls inside [_GETOPT_H].
 3909         Use libc_hidden_proto for getopt_long, getopt_long_only.
 3910         * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h".
 3911         Add libc_hidden_def.
 3912 
 3913         * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr):
 3914         Define as a macro for __dl_iterate_phdr.
 3915 
 3916         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name,
 3917         made static.  Add __ name as a strong alias.
 3918         (internal_endnetgrent): Likewise.
 3919         (internal_getnetgrent_r): Likewise.
 3920 
 3921         * locale/Versions (libc: GLIBC_2.3): Add all the *_l functions
 3922         with no __ prefix.
 3923         * locale/langinfo.h [__USE_GNU]: Declare nl_langinfo_l.
 3924         * ctype/ctype.h [__USE_GNU]: Add declarations and macros for
 3925         all *_l functions with no __ prefix.
 3926         * wctype/wcfuncs_l.c: Define weak aliases without __ for all fns.
 3927         * ctype/ctype_l.c: Likewise.
 3928         * locale/nl_langinfo.c: Likewise.
 3929         * string/string.h [__USE_GNU]: Add decls for all *_l fns with no __.
 3930         * stdlib/stdlib.h [__USE_GNU]: Likewise.
 3931         * wcsmbs/wchar.h [__USE_GNU]: Likewise.
 3932         * wctype/wctype.h [__USE_GNU]: Likewise.
 3933         * string/strcoll_l.c (strcoll_l): Define as weak alias.
 3934         * string/strxfrm_l.c (strxfrm_l): Define as weak alias.
 3935         * sysdeps/generic/strcasecmp_l.c (strcasecmp_l): Define as weak alias.
 3936         * sysdeps/generic/strncase_l.c (strncasecmp_l): Define as weak alias.
 3937         * stdlib/strtod_l.c (strtod_l): Define as weak alias.
 3938         * stdlib/strtof_l.c (strtof_l): Define as weak alias.
 3939         * stdlib/strtold_l.c (strtold_l): Define as weak alias.
 3940         * wcsmbs/wcscasecmp_l.c (wcscasecmp_l): Define as weak alias.
 3941         (__wcscasecmp_l): Add libc_hidden_def.
 3942         * wcsmbs/wcsncase_l.c (wcsncasecmp_l): Define as weak alias.
 3943         (__wcsncasecmp_l): Add libc_hidden_def.
 3944         * wcsmbs/wcstof_l.c (wcstof_l): Define as weak alias.
 3945         * wcsmbs/wcstod_l.c (wcstod_l): Define as weak alias.
 3946         * wcsmbs/wcstold_l.c (wcstold_l): Define as weak alias.
 3947         * wcsmbs/wcscoll_l.c (wcscoll_l): Define as weak alias.
 3948         * wcsmbs/wcsxfrm_l.c (wcsxfrm_l): Define as weak alias.
 3949         * sysdeps/generic/wcstol_l.c (wcstol_l): Define as weak alias.
 3950         * sysdeps/generic/wcstoll_l.c (wcstoll_l): Define as weak alias.
 3951         * sysdeps/generic/wcstoul_l.c (wcstoul_l): Define as weak alias.
 3952         * sysdeps/generic/wcstoull_l.c (wcstoull_l): Define as weak alias.
 3953         * sysdeps/wordsize-64/wcstol_l.c (wcstoll_l): Define as weak alias.
 3954         * sysdeps/wordsize-64/wcstoul_l.c (wcstoull_l): Define as weak alias.
 3955         * wctype/wctrans_l.c (wctrans_l) Define as weak alias.
 3956         * wctype/towctrans_l.c (towctrans_l) Define as weak alias.
 3957         * wctype/wctype_l.c (wctype_l) Define as weak alias.
 3958 
 3959 2002-08-05  Roland McGrath  <roland@redhat.com>
 3960 
 3961         * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
 3962         netname2user, host2netname, user2netname, key_gendes.
 3963         * sunrpc/netname.c: Add libc_hidden_def.
 3964         * sunrpc/key_call.c: Likewise.
 3965 
 3966         * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
 3967         freeaddrinfo.
 3968         * inet/getnameinfo.c: Add libc_hidden_def.
 3969         * sysdeps/generic/getaddrinfo.c: Likewise.
 3970         * sysdeps/posix/getaddrinfo.c: Likewise.
 3971 
 3972         * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
 3973         * wcsmbs/wmemchr.c: Add libc_hidden_def.
 3974         * wcsmbs/wmemset.c: Add libc_hidden_def.
 3975 
 3976         * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
 3977         (index, rindex): Define as macros for strchr, strrchr.
 3978 
 3979         * string/envz.c (envz_strip): index -> strchr
 3980 
 3981         * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
 3982         * sunrpc/rpc_prot.c: Add libc_hidden_def.
 3983 
 3984         * include/wchar.h: Use libc_hidden_proto for mbrtowc.
 3985         * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
 3986 
 3987         * include/stdlib.h: Use libc_hidden_proto for wctomb.
 3988         * stdlib/wctomb.c: Add libc_hidden_def.
 3989 
 3990         * include/netdb.h: Use libc_hidden_proto for innetgr, rcmd_af,
 3991         rexec_af, rresvport_af, ruserok_af, iruserok_af, ruserpass, hstrerror.
 3992         * resolv/herror.c: Likewise.
 3993         * inet/rcmd.c: Add libc_hidden_def.
 3994         * inet/ruserpass.c: Likewise.
 3995         * inet/getnetgrent_r.c: Likewise.
 3996 
 3997         * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
 3998         svc_unregister, remove *_internal decls.  Use libc_hidden_proto
 3999         for svcerr_auth, svcerr_noprog, svcerr_progvers.
 4000         * sunrpc/svc.c (svc_register, svc_unregister): Change INTDEF to
 4001         libc_hidden_def.
 4002         (svcerr_auth, svcerr_noprog, svcerr_progvers): Add libc_hidden_def.
 4003         * sunrpc/svc_simple.c (registerrpc): Nix INTUSE for svc_register.
 4004 
 4005         * sysdeps/posix/system.c (do_system): New function, guts broken out of
 4006         __libc_system.
 4007         (__libc_system): Call it, putting just the line == NULL test here.
 4008 
 4009         * include/libc-symbols.h (__hidden_proto): Add extern keywords so
 4010         variables work right.
 4011 
 4012         * elf/dl-open.c (dl_open_worker): Use _ macro instead of gettext.
 4013         * elf/dl-close.c (_dl_close): Likewise.
 4014 
 4015         * include/netinet/in.h: Use libc_hidden_proto for bindresvport,
 4016         in6addr_any, in6addr_loopback.  Remove decls for
 4017         bindresvport_internal, in6addr_any_internal, in6addr_loopback_internal.
 4018         * sunrpc/svc_udp.c (svcudp_bufcreate): Nix INTUSE for bindresvport.
 4019         * sunrpc/svc_tcp.c (svctcp_create): Likewise.
 4020         * sunrpc/clnt_udp.c (clntudp_bufcreate): Likewise.
 4021         * sunrpc/bindrsvprt.c: Change INTDEF to libc_hidden_def.
 4022         * inet/in6_addr.c: Change INTVARDEF to libc_hidden_def.
 4023         * sysdeps/posix/getaddrinfo.c (gaih_inet): Nix INTUSE for
 4024         in6addr_loopback.
 4025         * inet/gethstbyad_r.c (PREPROCESS): Nix INTUSE for in6addr_any.
 4026 
 4027         * include/netinet/ether.h: Use libc_hidden_proto for ether_ntoa_r,
 4028         ether_aton_r.
 4029         * inet/ether_aton_r.c: Add libc_hidden_def.
 4030         * inet/ether_ntoa_r.c: Likewise.
 4031 
 4032         * include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
 4033         xprt_unregister.
 4034         * sunrpc/svc.c: Add libc_hidden_def.
 4035         * include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
 4036         pmap_set, pmap_unset.
 4037         * sunrpc/pmap_clnt.c: Add libc_hidden_def.
 4038         * sunrpc/pm_getport.c: Likewise.
 4039         * include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
 4040         * sunrpc/publickey.c: Add libc_hidden_def.
 4041 
 4042 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
 4043 
 4044         * elf/rtld.c (_dl_start): Don't use memset.  Use same tricks as for
 4045         the other memset call in this function.
 4046 
 4047         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Store dtv pointer
 4048         at correct index.  Clear BSS region now that memalign is used.
 4049 
 4050 2002-08-05  Roland McGrath  <roland@redhat.com>
 4051 
 4052         * include/sys/utsname.h: Use libc_hidden_proto for uname, __uname.
 4053         * sysdeps/generic/uname.c: Add libc_hidden_def.
 4054         * sysdeps/mach/hurd/uname.c: Likewise.
 4055 
 4056 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
 4057 
 4058         * include/wchar.h (wcrtomb, wcscmp, wcsftime, wcsspn, wcschr, wcscoll,
 4059         wcspbrk): Add libc_hidden_proto.
 4060         * time/strftime.c (my_strftime): Add libc_hidden_def.
 4061         (strftime): Remove libc_hidden_def.
 4062         * wcsmbs/wcschr.c (wcschr): Add libc_hidden_def.
 4063         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
 4064         * wcsmbs/wcsspn.c (wcsspn): Likewise.
 4065         * wcsmbs/wcscmp.c (wcscmp): Likewise.
 4066         * wcsmbs/wcrtomb.c (wcrtomb): Add libc_hidden_weak.
 4067         * wcsmbs/wcscoll.c (wcscoll): Likewise.
 4068 
 4069         * include/rpc/rpc.h (__rpc_thread_svc_max_pollfd,
 4070         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
 4071         __rpc_thread_createerr): Add libc_hidden_proto.
 4072         * sunrpc/rpc_thread.c (__rpc_thread_svc_max_pollfd,
 4073         __rpc_thread_svc_pollfd, __rpc_thread_svc_fdset,
 4074         __rpc_thread_createerr): Add libc_hidden_def.
 4075 
 4076         * include/rpc/clnt.h (clnt_sperrno, clnt_spcreateerror,
 4077         clnt_perror, clnt_sperror, _rpc_dtablesize): Add libc_hidden_proto.
 4078         * sunrpc/clnt_perr.c (clnt_sperrno, clnt_spcreateerror,
 4079         clnt_perror, clnt_sperror): Add libc_hidden_def.
 4080         * sunrpc/rpc_dtable.c (_rpc_dtablesize): Likewise.
 4081 
 4082         * include/rpc/des_crypt.h (des_setparity, ecb_crypt, cbc_crypt): Add
 4083         libc_hidden_proto.
 4084         * sunrpc/des_crypt.c (ecb_crypt, cbc_crypt): Add libc_hidden_proto.
 4085         * sunrpc/des_soft.c (des_setparity): Likewise.
 4086 
 4087         * include/rpc/auth.h (key_encryptsession_pk, key_decryptsession_pk):
 4088         Add libc_hidden_proto.
 4089         * sunrpc/key_call.c (key_encryptsession_pk, key_decryptsession_pk):
 4090         Add libc_hidden_def.
 4091 
 4092 2002-08-05  Roland McGrath  <roland@redhat.com>
 4093 
 4094         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace member
 4095         `bool _dl_initial_dtv_malloced' with `void *_dl_initial_dtv'.
 4096         * elf/rtld.c (dl_main): Set it to the new dtv for the main thread.
 4097         * sysdeps/generic/dl-tls.c (__tls_get_addr): When reallocating the
 4098         dtv, check if it matches _dl_initial_dtv; if so, malloc and copy the
 4099         old data, abandoning the original memory allocated by rtld at startup,
 4100         instead of calling realloc normally.
 4101 
 4102 2002-08-05  Ulrich Drepper  <drepper@redhat.com>
 4103 
 4104         * po/fr.po: Update from translation team.
 4105 
 4106 2002-08-04  Roland McGrath  <roland@redhat.com>
 4107 
 4108         * sysdeps/unix/make-syscalls.sh: If the syscall name field is -
 4109         then generate a dummy module under the given name, obeying the
 4110         normal rules for the "caller" field.
 4111 
 4112         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Make the phdr loop
 4113         actually iterate over the elements.  Fix typo p_type -> p_vaddr.
 4114 
 4115         * include/pthread.h: Don't declare __pthread_initialize_minimal as
 4116         weak here; we declare it weak or strong in the one place we use it.
 4117         * sysdeps/generic/libc-start.c: ... which is here.
 4118         Don't make the decl weak if [USE_TLS], since static programs need TLS
 4119         setup even when single-threaded.
 4120 
 4121         * stdlib/isomac.c (fmt): Add -DNOT_IN_libc to the compiler command.
 4122 
 4123         * elf/Makefile (test-srcs): Add $(modules-names) to it.
 4124         (CFLAGS-vismod2.c, CFLAGS-failobj.c, CFLAGS-constload2.c,
 4125         CFLAGS-reldepmod3.c, CFLAGS-reldepmod4.c, CFLAGS-ltglobmod2.c): Remove
 4126         all these variables.
 4127 
 4128 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
 4129 
 4130         * include/stdio.h: Don't define macro magic to redirect function
 4131         calls if _ISOMAC is defined.
 4132 
 4133         * sysdeps/i386/fpu/libm-test-ulps: Add epsilons for inlined
 4134         ldouble asin tests.
 4135 
 4136 2002-08-04  Roland McGrath  <roland@redhat.com>
 4137 
 4138         * stdlib/lrand48_r.c: Add libc_hidden_def.
 4139 
 4140         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Allocate the
 4141         TCB with __libc_memalign instead of mmap.
 4142         (_dl_deallocate_tls): Free it with free instead of munmap.
 4143 
 4144         * Makerules (cpp-srcs-left): When setting this to run
 4145         cppflags-iterator.mk, must append .c to $(tests) and $(xtests)
 4146         words.  Combine the two loops into one on the concatenated list,
 4147         including those as well as $(test-srcs).
 4148 
 4149         * elf/dl-minimal.c (__libc_memalign): Guts of malloc moved here,
 4150         since we align here with optimally minimal waste anyway.
 4151         (malloc): Just call that.
 4152 
 4153         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Set l_tls_offset to
 4154         the right variable.
 4155 
 4156         * elf/dl-load.c (_dl_map_object_from_fd): Use p_vaddr, not p_offset,
 4157         to compute memory location for l_tls_initimage.
 4158         * elf/rtld.c (_dl_start): Likewise.
 4159         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
 4160 
 4161         * libio/oldiopopen.c: Move #include's before #if SHLIB_COMPAT,
 4162         because the .d file is generated in the non-shared case and
 4163         so fails to catch them otherwise.
 4164 
 4165         * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): New function,
 4166         split out of _dl_allocate_tls.
 4167         (_dl_allocate_tls_init): Likewise.
 4168         (_dl_allocate_tls): Call those.
 4169         * sysdeps/generic/ldsodefs.h: Declare them with attribute_hidden.
 4170         * elf/rtld.c (dl_main): Call them separately instead of calling
 4171         _dl_allocate_tls.  Delay _dl_allocate_tls_init until after relocation
 4172         is finished, so that the initializer data has been relocated before we
 4173         copy it into the main thread's TLS block.
 4174 
 4175         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Fix off-by-one error in
 4176         loop conditions, prevented the last used module from being initialized.
 4177 
 4178 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
 4179 
 4180         * sysdeps/generic/glob.c (glob, globfree): Only use libc_hidden_def
 4181         if glob resp. globfree are not macros.
 4182         * sysdeps/gnu/glob64.c (globfree64): Add libc_hidden_def.
 4183         * sysdeps/unix/sysv/linux/alpha/glob.c (glob, globfree, globfree64):
 4184         Add libc_hidden_ver.
 4185         * sysdeps/unix/sysv/linux/i386/glob64.c (globfree64): Add
 4186         libc_hidden_def.
 4187         * sysdeps/wordsize-64/glob.c (globfree64): Use libc_hidden_ver
 4188         instead of libc_hidden_weak.
 4189         * sysdeps/wordsize-64/strtol.c (__strtoll_internal): Use
 4190         libc_hidden_ver instead of libc_hidden_def.
 4191         * sysdeps/wordsize-64/wcstol.c (__wcstoll_internal): Use
 4192         libc_hidden_ver instead of libc_hidden_def.
 4193         (wcstoll, wcstoq): Remove libc_hidden_weak.
 4194         * sysdeps/wordsize-64/strtol_l.c (____strtoll_l_internal): Add
 4195         libc_hidden_ver.
 4196         * sysdeps/wordsize-64/strtoul.c (__strtoull_internal): Add
 4197         libc_hidden_ver.
 4198         * sysdeps/wordsize-64/strtoul_l.c (____strtoull_l_internal): Add
 4199         libc_hidden_ver.
 4200         * sysdeps/wordsize-64/wcstoul.c (__wcstoull_internal): Add
 4201         libc_hidden_ver.
 4202 
 4203 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
 4204 
 4205         * stdio-common/psignal.c: Declare _sys_siglist_internal.  Use USEINT
 4206         to access _sys_siglist.
 4207         * string/strsignal.c: Likewise.
 4208         * sysdeps/generic/siglist.c: Add _sys_siglist_internal alias.
 4209         * sysdeps/gnu/siglist.c: Likewise.
 4210         * sysdeps/unix/siglist.c: Likewise.
 4211         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
 4212 
 4213         * libio/fileops.c: Add missing INTUSEs for _IO_file_jumps.
 4214 
 4215         * libio/wfileops.c: Add missing INTUSE for _IO_file_close.
 4216 
 4217         * intl/dcigettext.c: Define _nl_default_dirname_internal as hidden
 4218         alias and use it.
 4219         * intl/bindtextdom.c: Use _nl_default_dirname_internal.
 4220 
 4221         * include/netinet/in.h: Add declaration of in6addr_loopback_internal.
 4222         * inet/in6_addr.c: Add INTVARDEF for in6addr_loopback.
 4223         * sysdeps/posix/getaddrinfo.c: Use INTUSE for in6addr_loopback access.
 4224 
 4225         * include/time.h: Add libc_hidden_proto for __gmtime_r.
 4226         * time/gmtime.c (__gmtime_r): Add libc_hidden_def.
 4227 
 4228         * iconv/Versions: Replace __gconv_alias_db, __gconv_modules_db,
 4229         and __gconv_cache with __gconv_get_alias_db, __gconv_get_modules_db,
 4230         and __gconv_get_cache respectively.
 4231         * iconv/gconv_cache.c (gconv_cache): Renamed for __gconv_cache and
 4232         defined static.  Change all users.
 4233         (__gconv_get_cache): New function.
 4234         * iconv/gconv_db.c (__gconv_get_modules_db): New function.
 4235         (__gconv_get_alias_db): New function.
 4236         * iconv/gconv_int.h (__gconv_alias_db): Declare as hidden.
 4237         (__conv_modules_db): Likewise.
 4238         Add prototypes for __gconv_get_cache, __gconv_get_modules_db,
 4239         and __gconv_get_alias_db.
 4240         * iconv/iconv_prog.c: Use the new functions instead of accessing the
 4241         variables.
 4242 
 4243         * include/stdlib.h: Add prototype and libc_hidden_proto for
 4244         __default_morecore.
 4245         * sysdeps/generic/morecore.c: Include <stdlib.h>.
 4246 
 4247         * malloc/obstack.c: Remove fputs macro.
 4248 
 4249         * malloc/mtrace.c: Remove fopen macro.
 4250 
 4251 2002-08-04  Jakub Jelinek  <jakub@redhat.com>
 4252 
 4253         * manual/debug.texi: Fix spelling to programmatically.
 4254         Reported by <hayastan132@hotmail.com>.
 4255 
 4256 2002-08-04  Ulrich Drepper  <drepper@redhat.com>
 4257 
 4258         * include/libio.h: Add libc_hidden_proto for __uflow.
 4259         * include/stdio.h: Map fopen, fdopen, fclose, fputs, fsetpos, and
 4260         fgetpos to _IO_* names.
 4261         Add libc_hidden_proto for fileno, fwrite, fseek, fflush_unlocked,
 4262         fread_unlocked, fwrite_unlocked, fgets_unlocked, fputs_unlocked.
 4263         * include/wchar.h: Add libc_hidden_proto for fputws_unlocked,
 4264         putwc_unlocked, vswscanf.
 4265         * libio/iolibio.h: Add libc_hidden_proto for _IO_fputs.
 4266         * libio/fileno.c: Use <stdio.h> and libc_hidden_def.
 4267         * libio/fseek.c: Likewise.
 4268         * libio/fmemopen.c: Include "libioP.h".  Call _IO_fopencookie and
 4269         not fopencookie.
 4270         * libio/genops.c (__uflow): Add libc_hidden_def.
 4271         * libio/iofflush_u.c (fflush_unlocked): Likewise.
 4272         * libio/iofgets_u.c (fgets_unlocked): Likewise.
 4273         * libio/iofputs_u.c (fputs_unlocked): Likewise.
 4274         * libio/iofputws_u.c (fputws_unlocked): Likewise.
 4275         * libio/iofread_u.c (fread_unlocked): Likewise.
 4276         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
 4277         * libio/iovswscanf.c (vswscanf): Likewise.
 4278         * libio/putwc_u.c (putwc_unlocked): Likewise.
 4279         * libio/iofputs.c: Use libc_hidden_def instead of INTDEF.
 4280         * malloc/malloc.c: Redirect fwrite calls to _IO_fwrite.
 4281         * malloc/mtrace.c: Likewise.
 4282 
 4283         * sunrpc/clnt_perr.c: Remove fputs macro.
 4284         * sunrpc/svc_simple.c: Likewise.
 4285         * sunrpc/svc_tcp.c: Likewise.
 4286         * sunrpc/svc_udp.c: Likewise.
 4287         * sunrpc/xdr_rec.c: Likewise.
 4288         * sunrpc/xdr_ref.c: Likewise.
 4289 
 4290         * iconv/Makefile: Add CPPFLAGS definitions with -DNOT_in_libc for
 4291         iconv_prog, linereader, and charmap-dir.
 4292         * locale/Makefile: Likewise for locale and charmap-dir.
 4293         * malloc/Makefile: Likewise for memusagestat.
 4294         * nscd/Makefile: Likewise for nscd, nscd_conf, and dbg_log.
 4295         * sunrpc/Makefile: Likewise for rpc_main.
 4296         * sysdeps/unix/sysv/linux/Makefile: Likewise for lddlibc4.
 4297         * timezone/Makefile: Likewise for zic.
 4298 
 4299         * stdio-common/perror.c: Avoid multiple calls to fileno_unlocked.
 4300 
 4301         * elf/dl-addr.c (_dl_addr): Add libc_hidden_def.
 4302         * elf/dl-close.c (_dl_close): Add libc_hidden_def.
 4303         * elf/dl-open.c (_dl_open): Add libc_hidden_def.
 4304         * include/dlfcn.h: Add libc_hidden_proto for _dl_addr, _dl_open,
 4305         _dl_close.
 4306 
 4307         * include/libio.h: Add libc_hidden_proto for __underflow, __wuflow,
 4308         __wunderflow.
 4309         * libio/genops.c (__underflow): Add libc_hidden_def.
 4310         * libio/wgenops.c (__wuflow): Likewise.
 4311         (__wunderflow): Likewise.
 4312 
 4313         * include/obstack.h: Add libc_hidden_proto for _obstack_newchunk.
 4314         * malloc/obstack.c (_obstack_newchunk): Add libc_hidden_def.
 4315 
 4316         * include/stdio.h: Add libc_hidden_proto for __vfscanf.
 4317         * stdio-common/vfscanf.c (__vfscanf): Add libc_hidden_def.
 4318 
 4319         * include/string.h: Add libc_hidden_proto for __strverscmp.
 4320         * string/strverscmp.c (__strverscmp): Add libc_hidden_def.
 4321 
 4322         * include/unistd.h: Add libc_hidden_proto for __sysconf.
 4323         * sysdeps/generic/sysconf.c (__sysconf): Add libc_hidden_def.
 4324         * sysdeps/posix/sysconf.c: Likewise.
 4325         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
 4326         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
 4327 
 4328         * include/wctype.h: Use libc_hidden_proto for __iswctype, __iswalnum_l,
 4329         __iswalpha_l, __iswblank_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
 4330         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
 4331         __iswxdigit_l, __towlower_l, __towupper_l.
 4332         * wcsmbs/wcstype.c (__iswctype): Use libc_hidden_def.
 4333         * wcsmbs/wcfuncs_l.c: Use libc_hidden_def for all functions.
 4334 
 4335         * include/sys/wait.h: Add libc_hidden_proto for __xmknod.
 4336         * sysdeps/generic/xmknod.c (__xmknod): Add libc_hidden_def.
 4337         * sysdeps/mach/hurd/xmknod.c: Likewise.
 4338         * sysdeps/unix/xmknod.c: Likewise.
 4339         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
 4340         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
 4341         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
 4342 
 4343         * sunrpc/svc.c: Add missing INTUSE for _authenticate.
 4344 
 4345 2002-08-03  Roland McGrath  <roland@redhat.com>
 4346 
 4347         * include/sys/resource.h: Use libc_hidden_proto for getpriority,
 4348         setpriority.
 4349         * sysdeps/unix/sysv/linux/getpriority.c: Add libc_hidden_def.
 4350         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
 4351         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
 4352         * sysdeps/mach/hurd/setpriority.c: Likewise.
 4353         * sysdeps/mach/hurd/getpriority.c: Likewise.
 4354         * sysdeps/generic/setpriority.c: Likewise.
 4355         * sysdeps/generic/getpriority.c: Likewise.
 4356 
 4357         * include/mcheck.h: Use libc_hidden_proto for mcheck_check_all.
 4358         * malloc/mcheck.c: Add libc_hidden_def.
 4359 
 4360         * include/search.h: Use libc_hidden_proto for hcreate_r, hdestroy_r.
 4361         * misc/hsearch_r.c: Add libc_hidden_def.
 4362 
 4363         * include/fnmatch.h: Use libc_hidden_proto for fnmatch.
 4364         * posix/fnmatch.c: Add libc_hidden_weak.
 4365 
 4366         * include/unistd.h: Use libc_hidden_proto for _exit, alarm, confstr,
 4367         execl, execle, execlp, execvp, getpid, getsid.
 4368         * sysdeps/generic/alarm.c: Add libc_hidden_def.
 4369         * sysdeps/unix/alarm.c: Likewise.
 4370         * posix/confstr.c: Likewise.
 4371         * posix/execvp.c: Likewise.
 4372         * posix/execlp.c: Likewise.
 4373         * posix/execle.c: Likewise.
 4374         * posix/execl.c: Likewise.
 4375         * sysdeps/generic/getsid.c: Likewise.
 4376         * sysdeps/mach/hurd/getsid.c: Likewise.
 4377         * sysdeps/generic/getpid.c: Add libc_hidden_weak.
 4378         * sysdeps/mach/hurd/getpid.c: Likewise.
 4379 
 4380         * include/stdlib.h: Use libc_hidden_proto for ecvt_r, fcvt_r,
 4381         qecvt_r, qfcvt_r, lrand48_r.
 4382         * misc/efgcvt_r.c: Add libc_hidden_def.
 4383 
 4384         * include/wordexp.h: Use libc_hidden_proto for wordfree.
 4385         * sysdeps/generic/wordexp.c: Add libc_hidden_def.
 4386 
 4387         * include/langinfo.h: Use libc_hidden_proto for nl_langinfo.
 4388         * locale/nl_langinfo.c: Add libc_hidden_def.
 4389 
 4390         * include/glob.h: Use libc_hidden_proto for glob, globfree, globfree64.
 4391         * sysdeps/generic/glob.c: Add libc_hidden_def.
 4392         * sysdeps/generic/glob64.c: Likewise.
 4393         * sysdeps/wordsize-64/glob.c (globfree64): Add libc_hidden_weak.
 4394 
 4395         * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
 4396 
 4397         * elf/Makefile (CFLAGS-vismod2.c): New variable.
 4398 
 4399         * locale/setlocale.c (_nl_current_names): Variable moved ...
 4400         * locale/localename.c (_nl_current_names): ... here, new file.
 4401         Make it global, with attribute_hidden.
 4402         * locale/localeinfo.h: Declare it.
 4403         * locale/Makefile (aux): Add localename.
 4404         * locale/localename.c (__current_locale_name): New function.
 4405         * include/locale.h (__current_locale_name): Declare it.
 4406         * intl/dcigettext.c (guess_category_value): Use that instead of
 4407         calling setlocale.
 4408 
 4409         * locale/locale.h [__USE_GNU] (locale_t): New type alias of __locale_t.
 4410         [__USE_GNU] (newlocale, duplocale, freelocale, uselocale): New decls.
 4411         [__USE_GNU] (LC_GLOBAL_LOCALE): New macro.
 4412         * locale/newlocale.c: Add alias to __ name.
 4413         * locale/duplocale.c: Likewise.
 4414         * locale/freelocale.c: Likewise.
 4415         * locale/uselocale.c: New file.
 4416         * locale/Makefile (routines): Add it.
 4417         * locale/Versions (libc: GLIBC_2.3): New set.
 4418         Add newlocale, duplocale, freelocale, uselocale.
 4419         (libc: GLIBC_PRIVATE): Add __uselocale.
 4420 
 4421         * locale/localeinfo.h [SHARED]
 4422         (_NL_CURRENT_LOCALE): New macro, defined to fetch a tsd value.
 4423         (_NL_CURRENT_DATA): Define using that.
 4424         (_NL_CURRENT, _NL_CURRENT_WSTR, _NL_CURRENT_WORD): Define using that.
 4425         (_NL_CURRENT_DEFINE): Define to empty.
 4426         [! SHARED]: Decls of _nl_current_CATEGORY and _nl_current
 4427         conditionalized on this.
 4428         * locale/xlocale.c (NL_C_INTIIALIZER): New macro,
 4429         taking initializer of _nl_C_locobj.
 4430         [SHARED] (_nl_global_locale): New variable, using that initializer.
 4431         (_nl_C_locobj): Use new macro for initialzier.
 4432         * locale/setlocale.c [! SHARED] (_nl_current): Conditionalize on this.
 4433         [! SHARED] (CATEGORY_USED): New macro.
 4434         [SHARED] (CATEGORY_USED, _nl_C): New macros.
 4435         (setdata, setlocale): Use that macro instead of examining _nl_current.
 4436         (setdata): Set the slot in _nl_global_locale.
 4437         Conditionalize setting of _nl_current on [! SHARED].
 4438         * locale/findlocale.c [SHARED] (_nl_C): Define as a macro instead of
 4439         declaration as an extern.
 4440         * locale/newlocale.c (__newlocale): Use _nl_C_locobj instead of _nl_C.
 4441 
 4442         * include/locale.h: Use libc_hidden_proto for setlocale.
 4443         * locale/setlocale.c: Add libc_hidden_def.
 4444 
 4445         * locale/setlocale.c (free_mem): Use _NL_CURRENT_DATA.
 4446 
 4447         * include/search.h: Use libc_hidden_proto for hsearch_r, lfind.
 4448         * misc/hsearch_r.c: Add libc_hidden_def.
 4449         * misc/lsearch.c: Likewise.
 4450 
 4451         * include/ttyent.h: Use libc_hidden_proto for getttyent, setttyent,
 4452         endttyent.
 4453         * misc/getttyent.c: Add libc_hidden_def.
 4454 
 4455         * include/mcheck.h: Use libc_hidden_proto for mcheck.
 4456         * malloc/mcheck.c: Add libc_hidden_def.
 4457 
 4458         * include/envz.h: Use libc_hidden_proto for envz_entry, enz_remove.
 4459         * include/argz.h: Use libc_hidden_proto for argz_delete.
 4460         * string/argz-delete.c: Add libc_hidden_def.
 4461         * string/envz.c: Likewise.  Use <envz.h>, not "envz.h".
 4462 
 4463         * sysdeps/unix/sysv/linux/x86_64/clone.S (thread_start): Use
 4464         HIDDEN_JUMPTARGET for _exit.
 4465         * sysdeps/unix/sysv/linux/m68k/clone.S (thread_start): Likewise.
 4466         * sysdeps/unix/sysv/linux/i386/clone.S (thread_start): Likewise.
 4467         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
 4468         * sysdeps/unix/_exit.S (_exit): Add libc_hidden_def.
 4469 
 4470         * include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__].
 4471         [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty.
 4472         [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro.
 4473         * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
 4474 
 4475         * include/stdlib.h: Use libc_hidden_proto for abort,
 4476         __strtof_internal, __strtod_internal, __strtold_internal,
 4477         __strtol_internal, __strtoll_internal, __strtoul_internal,
 4478         __strtoull_internal. __strtof_l_internal, __strtod_l_internal,
 4479         __strtold_l_internal, __strtol_l_internal, __strtoll_l_internal,
 4480         __strtoul_l_internal, __strtoull_l_internal.
 4481         * include/wchar.h: Use libc_hidden_proto for __wcstof_internal,
 4482         __wcstod_internal, __wcstold_internal, __wcstol_internal,
 4483         __wcstoll_internal, __wcstoul_internal, ____wcstof_l_internal,
 4484         ____wcstod_l_internal, ____wcstold_l_internal, ____wcstol_l_internal,
 4485         ____wcstoll_l_internal, ____wcstoul_l_internal, __wcscasecmp_l,
 4486         __wcsncasecmp_l.
 4487         * sysdeps/generic/abort.c: Add libc_hidden_def.
 4488         * stdlib/strtod.c: Likewise.
 4489         * sysdeps/generic/strtol.c: Likewise.
 4490         * sysdeps/wordsize-64/strtol.c: Likewise.
 4491         * sysdeps/wordsize-64/wcstol.c: Likewise.
 4492         * sysdeps/wordsize-64/wcstol_l.c: Likewise.
 4493 
 4494         * include/stdlib.h: Use libc_hidden_proto for qsort.
 4495         * stdlib/msort.c: Add libc_hidden_def.
 4496 
 4497         * include/utime.h: Use libc_hidden_proto for utime.
 4498         * sysdeps/generic/utime.c: Add libc_hidden_def.
 4499         * sysdeps/unix/utime.c: Likewise.
 4500 
 4501         * sysdeps/generic/utmp_file.c (LOCK_FILE): sigemptyset -> __sigemptyset
 4502         * sysdeps/posix/profil.c (__profil): sigfillset -> __sigfillset
 4503         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
 4504         * shadow/lckpwdf.c (__lckpwdf): Likewise (both).
 4505         * sysdeps/posix/spawni.c (__spawni): sigismember -> __sigismember
 4506 
 4507         * include/signal.h: Use libc_hidden_proto for raise, sigemptyset,
 4508         sigfillset, sigismember, __sigpause, __libc_current_sigrtmin,
 4509         and __libc_current_sigrtmax.
 4510         * signal/sigismem.c: Add libc_hidden_def.
 4511         * signal/sigfillset.c: Likewise.
 4512         * signal/sigempty.c: Likewise.
 4513         * sysdeps/generic/sigpause.c (__sigpause): Likewise.
 4514         * sysdeps/posix/sigpause.c (__sigpause): Likewise.
 4515         * sysdeps/unix/bsd/osf/alpha/sigpause.S: Likewise.
 4516         * sysdeps/posix/raise.c: Likewise.
 4517         * sysdeps/generic/raise.c: Likewise.
 4518 
 4519 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
 4520 
 4521         * include/string.h: Use libc_hidden_proto for __stpcpy.
 4522         * sysdeps/alpha/stpcpy.S (__stpcpy): Add libc_hidden_def.
 4523         * sysdeps/alpha/alphaev67/stpcpy.S: Likewise.
 4524         * sysdeps/generic/stpcpy.c: Likewise.
 4525         * sysdeps/i386/stpcpy.S: Likewise.
 4526         * sysdeps/i386/i586/stpcpy.S: Likewise.
 4527         * sysdeps/powerpc/stpcpy.S: Likewise.
 4528         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
 4529         * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
 4530 
 4531         * include/string.h: Use libc_hidden_proto for __strcasecmp_l,
 4532         __strncasecmp_l, __strdup, __strndup, __strerror_r.
 4533         * sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
 4534         libc_hidden_def.
 4535         * string/strdup.c (__strdup): Likewise.
 4536         * string/strndup.c (__strndup): Likewise.
 4537         * sysdeps/generic/_strerror.c (__strerror_r): Likewise.
 4538         * sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
 4539 
 4540 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
 4541 
 4542         * include/libio.h: New file.
 4543         * libio/libioP.h (__overflow, __woverflow): Remove libc_hidden_proto.
 4544         * libio/iolibio.h: #include <libio.h>, not "libio.h".
 4545         * sysdeps/generic/morecore.c (__sbrk): Add libc_hidden_proto.
 4546         * sysdeps/unix/bsd/syscalls.list: Remove all __GI_* aliases.
 4547         * sysdeps/unix/common/syscalls.list: Likewise.
 4548         * sysdeps/unix/inet/syscalls.list: Likewise.
 4549         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
 4550         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
 4551         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
 4552         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
 4553         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
 4554         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
 4555         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
 4556         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
 4557         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
 4558         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: Likewise.
 4559         * sysdeps/unix/syscalls.list: Likewise.
 4560 
 4561 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
 4562             Ulrich Drepper  <drepper@redhat.com>
 4563 
 4564         * malloc/malloc.c (public_cALLOc): Only divide if at least one of
 4565         the arguments is big enough to cause an overflow.
 4566 
 4567 2002-08-03  Ulrich Drepper  <drepper@redhat.com>
 4568 
 4569         * assert/assert.c: Use hidden_def not INTDEF.
 4570 
 4571 2002-08-03  Jakub Jelinek  <jakub@redhat.com>
 4572 
 4573         * include/libc-symbols.h: Optimize if HAVE_BROKEN_ALIAS_ATTRIBUTE is
 4574         not defined.
 4575 
 4576 2002-08-03  Roland McGrath  <roland@redhat.com>
 4577 
 4578         * include/sys/syslog.h: Use libc_hidden_proto for syslog, vsyslog.
 4579         * include/err.h: Use libc_hidden_proto for warn, warnx, vwarn, vwarn,
 4580         verr, verrx.
 4581         * include/stdlib.h: Use libc_hidden_proto for exit, getenv, bsearch.
 4582         * misc/syslog.c: Add libc_hidden_def.
 4583         * misc/err.c: Likewise.
 4584         * stdlib/exit.c: Likewise.
 4585         * stdlib/bsearch.c: Likewise.
 4586         * sysdeps/generic/getenv.c: Likewise.
 4587 
 4588         * include/libc-symbols.h (hidden_weak): Define it for [__ASSEMBLER__].
 4589 
 4590         * sysdeps/unix/make-syscalls.sh: Generate libc_hidden_def or
 4591         libc_hidden_weak for every system call symbol defined.
 4592 
 4593         * include/time.h: Use libc_hidden_proto for time, asctime, mktime,
 4594         timelocal, localtime, strftime.
 4595         * time/asctime.c: Add libc_hidden_def.
 4596         * time/mktime.c: Likewise.
 4597         * time/localtime.c: Likewise.
 4598         * time/strftime.c: Likewise.
 4599         * time/strptime.c: Likewise.
 4600         * sysdeps/generic/time.c: Likewise.
 4601         * sysdeps/unix/time.c: Likewise.
 4602         * sysdeps/unix/sysv/i386/time.S: Likewise.
 4603         * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
 4604 
 4605         * include/arpa/inet.h: Use libc_hidden_proto for inet_ntop, inet_pton.
 4606         inet_makeaddr, inet_netof, inet_addr, __inet_addr.
 4607         * resolv/inet_ntop.c: Likewise.
 4608         * resolv/inet_pton.c: Likewise.
 4609         * inet/inet_mkadr.c: Add libc_hidden_def.
 4610         * inet/inet_netof.c: Likewise.
 4611         * resolv/inet_addr.c: Likewise.
 4612 
 4613         * include/libc-symbols.h: Remove `defined HAVE_BROKEN_ALIAS_ATTRIBUTE'
 4614         clauses from conditionals for now.  Will have to be fixed later
 4615         for older compilers.
 4616 
 4617         * sysdeps/generic/mempcpy.c (__mempcpy): #undef it before defn.
 4618 
 4619 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
 4620 
 4621         * configure.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add check for
 4622         broken alias attribute handling.
 4623         * config.h.in (HAVE_BROKEN_ALIAS_ATTRIBUTE): Add.
 4624 
 4625 2002-08-02  Roland McGrath  <roland@frob.com>
 4626 
 4627         * elf/Makefile ($(objpfx)interp.os): Depend on config.make,
 4628         since it sets the variables we use in a -D switch.
 4629 
 4630 2002-08-02  Roland McGrath  <roland@redhat.com>
 4631 
 4632         * posix/bits/posix1_lim.h (SSIZE_MAX): Define to LONG_MAX, not INT_MAX.
 4633         On 32-bit platforms they are the same; on 64-bit platforms ssize_t
 4634         matches long int, not int.
 4635 
 4636         * locale/localeinfo.h (_NL_CURRENT_DATA): New macro.
 4637         * wcsmbs/wcsmbsload.h (update_conversion_ptrs): Use it.
 4638         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
 4639         * wctype/wctrans.c (wctrans): Likewise.
 4640         * wctype/wctype.c (__wctype): Likewise.
 4641         * intl/loadmsgcat.c (_nl_init_domain_conv): Use _NL_CURRENT.
 4642 
 4643 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
 4644 
 4645         * assert/assert.c (__assert_fail): Fix typo in comment.
 4646 
 4647         * include/rpc/rpc.h: Declare RPC_VARS tsd as extern.
 4648         * sunrpc/rpc_thread.c: Define it without static.
 4649         * sunrpc/Versions [libc] (GLIBC_PRIVATE): Export __libc_tsd_RPC_VARS.
 4650 
 4651 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
 4652 
 4653         * assert/assert.c (__assert_fail): Remove undef.
 4654         Replace INTDEF with libc_hidden_def.
 4655         * assert/__assert.c (__assert): Remove INTUSE.
 4656         * elf/dl-minimal.c (__assert_fail): Replace INTDEF with
 4657         libc_hidden_weak.
 4658         * include/libc-symbols.h (hidden_proto, hidden_def, hidden_weak,
 4659         hidden_ver, libc_hidden_proto, libc_hidden_def, libc_hidden_weak,
 4660         libc_hidden_ver, rtld_hidden_proto, rtld_hidden_def, rtld_hidden_weak,
 4661         rltd_hidden_ver, libm_hidden_proto, libm_hidden_def, libm_hidden_weak,
 4662         libm_hiden_ver): Define.
 4663         * include/assert.h (__assert_fail_internal): Remove.
 4664         (__assert_fail): Add prototype.  Add hidden_proto.
 4665         * include/libc-internal.h (__libc_freeres, __profile_frequency): Add
 4666         libc_hidden_proto.
 4667         * include/wchar.h (__mbrtowc_internal, __mbrlen_internal): Remove.
 4668         (__mbrtowc, __mbrlen): Use libc_hidden_proto.  Remove macros.
 4669         * include/string.h (__mempcpy, __stpncpy, __rawmemchr, __strcasecmp):
 4670         Add libc_hidden_proto.
 4671         * include/fcntl.h (__open64, __libc_open, __libc_fcntl, __open,
 4672         __fcntl): Add libc_hidden_proto.  Remove macros.
 4673         (__open_internal, __fcntl_internal): Remove.
 4674         * libio/iofdopen.c (_IO_fcntl): Remove INTUSE from __fcntl.
 4675         * malloc/set-freeres.c (__libc_freeres): Add libc_hidden_def.
 4676         * nss/nsswitch.h (__nss_database_lookup, __nss_next): Add
 4677         libc_hiden_proto.
 4678         * nss/nsswitch.c (__nss_database_lookup, __nss_next): Add
 4679         libc_hidden_def.
 4680         * sysdeps/generic/mempcpy.c (__mempcpy): Remove undef.
 4681         Add libc_hidden_def.
 4682         * sysdeps/generic/open64.c (__open64): Add libc_hidden_def.
 4683         * sysdeps/generic/open.c (__open): Remove undef.
 4684         Add libc_hidden_def.  Remove INTDEF.
 4685         * sysdeps/generic/fcntl.c (__fcntl): Remove undef.
 4686         Add libc_hidden_def.
 4687         * sysdeps/mach/hurd/fcntl.c (__fcntl): Likewise.
 4688         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Add libc_hidden_def.
 4689         * sysdeps/i386/i686/mempcpy.S (__mempcpy): Likewise.
 4690         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
 4691         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
 4692         (__libc_fcntl): Add libc_hidden_def.
 4693         * sysdeps/mach/hurd/open.c (__libc_open, __open): Remove undef.
 4694         (__open): Remove INTDEF2.  Add libc_hidden_weak.
 4695         (__libc_open): Add libc_hidden_def.
 4696         * sysdeps/posix/open64.c (__open64): Add libc_hidden_weak.
 4697         * sysdeps/standalone/open.c (__open): Add libc_hidden_def.
 4698         * sysdeps/unix/sysv/aix/fcntl.c (__libc_fcntl, __fcntl): Remove undef.
 4699         Add libc_hidden_def.
 4700         * sysdeps/unix/sysv/aix/open.c (__libc_open, __open): Remove undef.
 4701         Add libc_hidden_def.
 4702         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl, __fcntl): Remove
 4703         undef.
 4704         (__fcntl): Remove INTDEF2.  Add libc_hidden_weak.
 4705         (__libc_fcntl): Add libc_hidden_def.
 4706         * sysdeps/unix/sysv/linux/syscalls.list (__fcntl_internal,
 4707         __getpgid_internal, __chown_internal): Remove.
 4708         (__GI___fcntl, __GI___libc_fcntl, __GI___getpgid, __GI___pipe,
 4709         __GI___sched_setscheduler, __GI___select, __GI___setpgid,
 4710         __GI___chown): Add.
 4711         * sysdeps/unix/syscalls.list (__close_internal, __dup2_internal,
 4712         __getpid_internal, __open_internal, __write_internal): Remove.
 4713         (__GI___fcntl, __GI___libc_fcntl, __GI___open, __GI___libc_open,
 4714         __GI___chown, __GI___close, __GI___dup2, __GI___getpid,
 4715         __GI___libc_open, __GI___open, __GI___read, __GI___libc_read,
 4716         __GI___select, __GI___statfs, __GI___write, __GI___libc_write): Add.
 4717         * wcsmbs/mbrlen.c (__mbrlen): Remove undef.
 4718         Replace INTDEF with libc_hidden_def.
 4719         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
 4720         * catgets/catgetsinfo.h (__open_catalog): Add libc_hidden_proto.
 4721         * catgets/open_catalog.c (__open_catalog): Add libc_hidden_def.
 4722         * elf/dl-profile.c (__profile_frequency): Add libc_hidden_proto.
 4723         * include/rpc/rpc.h (__rpc_thread_svc_fdset, __rpc_thread_createerr):
 4724         Add libc_hidden_proto.
 4725         * include/sys/poll.h (__poll): Add libc_hidden_proto.
 4726         * include/sys/select.h (__select): Likewise.
 4727         * include/sys/socket.h (__send): Likewise.
 4728         * include/sys/statfs.h (__statfs): Likewise.
 4729         * include/unistd.h (__pwrite64, __libc_read, __pipe, __chown, __dup2,
 4730         __getpid, __getpgid, __setpgid, __close, __read, __write,
 4731         __getpagesize, __sbrk): Likewise.
 4732         (__chown_internal, __dup2_internal, __getpid_internal,
 4733         __getpgid_internal, __close_internal, __write_internal,
 4734         __getpagesize_internal): Remove.
 4735         (__close, __dup2, __getpagesize, __getpgid, __getpid, __libc_write):
 4736         Remove macros.
 4737         * include/printf.h (__printf_fp): Add libc_hidden_proto.
 4738         * include/sched.h (__sched_setscheduler): Likewise.
 4739         * include/resolv.h (__res_ninit, __res_randomid): Likewise.
 4740         * include/stdlib.h (__secure_getenv): Likewise.
 4741         * include/signal.h (__sigaction, __sigsuspend): Likewise.
 4742         * inet/getaliasent_r.c (NSS_attribute_hidden): Remove.
 4743         * inet/getaliasname_r.c (NSS_attribute_hidden): Remove.
 4744         * inet/getnetbyad_r.c (NSS_attribute_hidden): Remove.
 4745         * inet/getnetbynm_r.c (NSS_attribute_hidden): Remove.
 4746         * inet/getnetent_r.c (NSS_attribute_hidden): Remove.
 4747         * inet/getproto_r.c (NSS_attribute_hidden): Remove.
 4748         * inet/getprtent_r.c (NSS_attribute_hidden): Remove.
 4749         * inet/getprtname_r.c (NSS_attribute_hidden): Remove.
 4750         * inet/getrpcbyname_r.c (NSS_attribute_hidden): Remove.
 4751         * inet/getrpcbynumber_r.c (NSS_attribute_hidden): Remove.
 4752         * inet/getrpcent_r.c (NSS_attribute_hidden): Remove.
 4753         * inet/getservent_r.c (NSS_attribute_hidden): Remove.
 4754         * inet/getsrvbynm_r.c (NSS_attribute_hidden): Remove.
 4755         * inet/getsrvbypt_r.c (NSS_attribute_hidden): Remove.
 4756         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Remove INTUSE.
 4757         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
 4758         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
 4759         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
 4760         * libio/genops.c (__overflow): Add libc_hidden_def.
 4761         * libio/iovdprintf.c: Remove libio.h include.
 4762         * libio/libioP.h (libc_hidden_proto, libc_hidden_def,
 4763         libc_hidden_weak): Define to nothing if not defined.
 4764         (__overflow, __woverflow): Add libc_hidden_proto.
 4765         * libio/wgenops.c (__woverflow): Add libc_hidden_def.
 4766         * nss/getXXent_r.c (NSS_attribute_hidden): Remove.
 4767         (DB_LOOKUP_FCT): Add libc_hidden_proto.
 4768         * nss/getXXbyYY_r.c (NSS_attribute_hidden): Remove.
 4769         (DB_LOOKUP_FCT): Add libc_hidden_proto.
 4770         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add libc_hidden_proto
 4771         and libc_hidden_def.
 4772         * nss/hosts-lookup.c (__nss_hosts_lookup): Remove INTDEF.
 4773         * posix/bsd-getpgrp.c (__getpgid_internal): Remove.
 4774         (__getpgid): Add libc_hidden_proto.
 4775         (__bsd_getpgrp): Remove INTUSE.
 4776         * resolv/res_init.c (__res_ninit, __res_randomid): Add
 4777         libc_hidden_def.
 4778         * shadow/getspent_r.c (NSS_attribute_hidden): Remove.
 4779         * shadow/getspnam_r.c (NSS_attribute_hidden): Remove.
 4780         * stdio-common/printf_fp.c (__printf_fp): Add libc_hidden_def.
 4781         * stdlib/strfmon.c (__printf_fp): Add libc_hidden_proto.
 4782         * stdlib/secure-getenv.c (__secure_getenv): Add libc_hidden_def.
 4783         * sunrpc/rpc_thread.c (__rpc_thread_svc_fdset,
 4784         __rpc_thread_createerr): Add libc_hidden_def.
 4785         * sysdeps/alpha/alphaev67/rawmemchr.S (__rawmemchr): Add
 4786         libc_hidden_def.
 4787         * sysdeps/alpha/alphaev67/stpncpy.S (__stpncpy): Likewise.
 4788         * sysdeps/alpha/rawmemchr.S (__rawmemchr): Likewise.
 4789         * sysdeps/alpha/stpncpy.S (__stpncpy): Likewise.
 4790         * sysdeps/generic/chown.c (__chown): Likewise.
 4791         * sysdeps/generic/close.c (__close): Likewise.
 4792         * sysdeps/generic/dup2.c (__dup2): Likewise.
 4793         * sysdeps/generic/pipe.c (__pipe): Likewise.
 4794         * sysdeps/generic/prof-freq.c (__profile_frequency): Likewise.
 4795         * sysdeps/generic/pwrite64.c (__pwrite64): Likewise.
 4796         * sysdeps/generic/rawmemchr.c (__rawmemchr): Likewise.
 4797         * sysdeps/generic/read.c (__libc_read): Likewise.
 4798         (__read): Add libc_hidden_weak.
 4799         * sysdeps/generic/sbrk.c (__sbrk): Add libc_hidden_def.
 4800         * sysdeps/generic/sched_sets.c (__sched_setscheduler): Likewise.
 4801         * sysdeps/generic/select.c (__select): Likewise.
 4802         * sysdeps/generic/send.c (__send): Likewise.
 4803         * sysdeps/generic/setpgid.c (__setpgid): Likewise.
 4804         * sysdeps/generic/sigaction.c (__sigaction): Likewise.
 4805         * sysdeps/generic/sigsuspend.c (__sigsuspend): Likewise.
 4806         * sysdeps/generic/statfs.c (__statfs): Likewise.
 4807         * sysdeps/generic/stpncpy.c (__stpncpy): Likewise.
 4808         * sysdeps/generic/strcasecmp.c (__strcasecmp): Likewise.
 4809         * sysdeps/generic/getpagesize.c (__getpagesize): Likewise.
 4810         Remove undef and INTDEF.
 4811         * sysdeps/generic/getpgid.c (__getpgid): Likewise.
 4812         * sysdeps/generic/getpid.c (__getpid): Likewise.
 4813         * sysdeps/generic/write.c (__libc_write): Likewise.
 4814         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
 4815         * sysdeps/i386/rawmemchr.S (__rawmemchr): Add libc_hidden_def.
 4816         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
 4817         * sysdeps/m68k/rawmemchr.S (__rawmemchr): Likewise.
 4818         * sysdeps/mach/hurd/chown.c (__chown): Likewise.  Remove INTDEF.
 4819         * sysdeps/mach/hurd/close.c (__close): Add libc_hidden_def.
 4820         Remove undef and INTDEF.
 4821         * sysdeps/mach/hurd/dup2.c (__dup2): Likewise.
 4822         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
 4823         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
 4824         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
 4825         * sysdeps/mach/hurd/write.c (__libc_write): Likewise.
 4826         (__write): Add libc_hidden_weak.  Remove undef and INTDEF.
 4827         * sysdeps/mach/hurd/pipe.c: Include unistd.h.
 4828         (__pipe): Add libc_hidden_def.
 4829         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read, __libc_write): Add
 4830         libc_hidden_weak.
 4831         * sysdeps/mach/hurd/poll.c (__poll): Add libc_hidden_def.
 4832         * sysdeps/mach/hurd/profil.c (__profile_frequency): Likewise.
 4833         * sysdeps/mach/hurd/read.c (__libc_read): Likewise.
 4834         (__read): Add libc_hidden_weak.
 4835         * sysdeps/mach/hurd/pwrite64.c (__pwrite64): Likewise.
 4836         (__libc_pwrite64): Add libc_hidden_def.
 4837         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
 4838         * sysdeps/mach/hurd/select.c (__select): Likewise.
 4839         * sysdeps/mach/hurd/send.c (__send): Likewise.
 4840         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
 4841         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
 4842         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
 4843         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
 4844         * sysdeps/posix/dup2.c: Likewise.
 4845         Remove undef and INTDEF.
 4846         * sysdeps/posix/getpagesize.c (__getpagesize): Likewise.
 4847         * sysdeps/posix/pwrite64.c (__libc_pwrite64): Add libc_hidden_def.
 4848         (__pwrite64): Add libc_hidden_weak.
 4849         * sysdeps/posix/sigsuspend.c (__sigsuspend): Add libc_hidden_def.
 4850         * sysdeps/sparc/sparc64/rawmemchr.S (__rawmemchr): Likewise.
 4851         * sysdeps/sparc/sparc64/stpncpy.S (__stpncpy): Likewise.
 4852         * sysdeps/standalone/close.c (__close): Likewise.
 4853         * sysdeps/standalone/write.c (__libc_write): Likewise.
 4854         (__write): Add libc_hidden_weak.
 4855         * sysdeps/standalone/read.c (__read): Likewise.
 4856         (__libc_read): Add libc_hidden_def.
 4857         * sysdeps/unix/grantpt.c (grantpt): Remove INTUSE.
 4858         * sysdeps/unix/bsd/m68k/pipe.S (__pipe): Add libc_hidden_def.
 4859         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
 4860         * sysdeps/unix/bsd/vax/pipe.S (__pipe): Likewise.
 4861         * sysdeps/unix/bsd/syscalls.list (__GI___getpagesize): Likewise.
 4862         * sysdeps/unix/bsd/poll.c (__poll): Likewise.
 4863         * sysdeps/unix/bsd/sigaction.c (__sigaction): Likewise.
 4864         * sysdeps/unix/bsd/sigsuspend.c (__sigsuspend): Likewise.
 4865         * sysdeps/unix/common/syscalls.list (__GI___getpgid, __GI___setpgid,
 4866         __GI___sigaction): Add.
 4867         * sysdeps/unix/i386/pipe.S (__pipe): Add libc_hidden_def.
 4868         * sysdeps/unix/inet/syscalls.list (__GI___send): Add.
 4869         * sysdeps/unix/mips/pipe.S (__pipe): Add libc_hidden_def.
 4870         * sysdeps/unix/sparc/pipe.S (__pipe): Likewise.
 4871         * sysdeps/unix/sysv/irix4/syscalls.list (__GI___getpgid,
 4872         __GI___setpgid): Add.
 4873         * sysdeps/unix/sysv/aix/chown.c (__chown): Add libc_hidden_def.
 4874         Remove undef and INTDEF.
 4875         * sysdeps/unix/sysv/aix/getpgid.c (__getpgid): Likewise.
 4876         * sysdeps/unix/sysv/aix/write.c (__write, __libc_write): Likewise.
 4877         * sysdeps/unix/sysv/aix/close.c (__close): Add libc_hidden_def.
 4878         * sysdeps/unix/sysv/aix/getpid.c (__getpid): Likewise.
 4879         * sysdeps/unix/sysv/aix/pipe.c (__pipe): Likewise.
 4880         * sysdeps/unix/sysv/aix/read.c (__read, __libc_read): Likewise.
 4881         * sysdeps/unix/sysv/aix/poll.c (__poll): Likewise.
 4882         * sysdeps/unix/sysv/aix/sbrk.c (__sbrk): Likewise.
 4883         * sysdeps/unix/sysv/aix/sigaction.c (__sigaction): Likewise.
 4884         * sysdeps/unix/sysv/aix/sigsuspend.c (__sigsuspend): Likewise.
 4885         * sysdeps/unix/sysv/aix/statfs.c (__statfs): Likewise.
 4886         * sysdeps/unix/sysv/aix/select.c (__select): Likewise.
 4887         * sysdeps/unix/sysv/aix/setpgid.c (__setpgid): Likewise.
 4888         * sysdeps/unix/sysv/linux/alpha/pipe.S (__pipe): Likewise.
 4889         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI___pwrite64,
 4890         __GI___statfs, __GI___send): Add.
 4891         * sysdeps/unix/sysv/linux/alpha/select.S (__select): Add
 4892         libc_hidden_ver resp. libc_hidden_def.
 4893         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend): Add
 4894         libc_hidden_def.
 4895         * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
 4896         Likewise.  Remove undef and INTDEF.
 4897         * sysdeps/unix/sysv/linux/ia64/pipe.S (__pipe): Add libc_hidden_def.
 4898         * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___pwrite64,
 4899         __GI___statfs, __GI___send): Add.
 4900         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction): Add
 4901         libc_hidden_def.
 4902         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend):
 4903         Likewise.
 4904         * sysdeps/unix/sysv/linux/sh/pipe.S (__pipe): Likewise.
 4905         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__chown): Add
 4906         libc_hidden_ver resp. libc_hidden_def.
 4907         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___pwrite64,
 4908         __GI___send): Add.
 4909         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction):
 4910         Add libc_hidden_weak.
 4911         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c (__sigsuspend):
 4912         Add libc_hidden_def.
 4913         * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI___send): Add.
 4914         * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction): Add
 4915         libc_hidden_weak.
 4916         * sysdeps/unix/sysv/linux/i386/chown.c (__chown): Add libc_hidden_ver
 4917         resp. libc_hidden_def.
 4918         * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction): Add
 4919         libc_hidden_weak.
 4920         * sysdeps/unix/sysv/linux/m68k/chown.c (__chown): Likewise.  Remove
 4921         INTDEF.
 4922         * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
 4923         Likewise.  Remove undef.
 4924         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__pwrite64): Add
 4925         libc_hidden_weak.
 4926         * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI___send): Add.
 4927         * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction): Add
 4928         libc_hidden_weak.
 4929         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): Add
 4930         libc_hidden_def.
 4931         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c (__pwrite64): Likewise.
 4932         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c (__getpagesize):
 4933         Likewise.  Remove undef and INTDEF.
 4934         * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__pipe): Add
 4935         libc_hidden_def.
 4936         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction): Add
 4937         libc_hidden_weak.
 4938         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__pipe): Add
 4939         libc_hidden_def.
 4940         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list
 4941         (__GI___pwrite64, __GI___statfs, __GI___select, __GI___send): Add.
 4942         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction): Add
 4943         libc_hidden_weak.
 4944         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c (__sigsuspend):
 4945         Add libc_hidden_def.
 4946         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI___pwrite64,
 4947         __GI___statfs): Add.
 4948         * sysdeps/unix/sysv/linux/x86_64/send.c (__send): Add
 4949         libc_hidden_weak.
 4950         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction): Likewise.
 4951         * sysdeps/unix/sysv/linux/getpagesize.c: Add libc_hidden_def.
 4952         Remove undef and INTDEF.
 4953         * sysdeps/unix/sysv/linux/poll.c (__poll): Add libc_hidden_def.
 4954         * sysdeps/unix/sysv/linux/pwrite64.c (__pwrite64): Add
 4955         libc_hidden_def.
 4956         * sysdeps/unix/sysv/linux/send.S (__send): Likewise.
 4957         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Add
 4958         libc_hidden_weak.
 4959         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Add
 4960         libc_hidden_def.
 4961         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c (__setpgid): Likewise.
 4962         * sysdeps/unix/sysv/sco3.2.4/sigaction.S (__sigaction): Likewise.
 4963         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list (__GI___sigaction):
 4964         Add.
 4965         * sysdeps/unix/sysv/sysv4/__getpgid.c (__getpgid): Add
 4966         libc_hidden_def.  Remove undef and INTDEF.
 4967         * sysdeps/unix/sysv/sysv4/getpgid.c (__getpgid): Likewise.
 4968         * sysdeps/unix/sysv/sysv4/__setpgid.c (__setpgid): Add
 4969         libc_hidden_def.
 4970         * sysdeps/unix/sysv/sysv4/setpgid.c (__setpgid): Likewise.
 4971         * sysdeps/unix/sysv/sysv4/sigaction.c (__sigaction): Likewise.
 4972         * sysdeps/unix/sysv/sigaction.c (__sigaction): Likewise.
 4973         * sysdeps/unix/getpagesize.c (__getpagesize): Add libc_hidden_def.
 4974         Remove undef and INTDEF.
 4975         * configure.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add check for
 4976         broken visibility attribute handling.
 4977         * config.h.in (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
 4978 
 4979 2002-08-02  Ulrich Drepper  <drepper@redhat.com>
 4980 
 4981         * locale/iso-639.def: Add entries for Venda and Nothern Sotho.
 4982         Reported by Dwayne Bailey <dwayne@obsidian.co.za>.
 4983 
 4984         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt
 4985         previous patch.
 4986 
 4987 2002-06-29  Todd Fries  <todd@openbsd.org>
 4988 
 4989         * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails.
 4990 
 4991 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
 4992 
 4993         * include/errno.h: Don't include tls.h if _ISOMAC is defined.
 4994 
 4995 2002-07-30  Roland McGrath  <roland@redhat.com>
 4996 
 4997         * resolv/resolv.h (_res): Define macro unconditionally.
 4998         [! _LIBC_REENTRANT] (_res): Move this conditional decl to ...
 4999         * include/resolv.h: ... here.
 5000         [USE_TLS && HAVE___THREAD] (_res): #undef it and declare
 5001         as a __thread variable.
 5002         * resolv/res_libc.c [USE_TLS && HAVE___THREAD] (_res): Define it as
 5003         a __thread variable instead of a global.
 5004         * resolv/res_data.c [_LIBC]: Don't #undef _res.
 5005 
 5006         * include/errno.h: Include <tls.h> to make sure USE_TLS defined by the
 5007         time we test it.
 5008 
 5009         * intl/loadmsgcat.c [__GNUC__]: #undef alloca before defining it.
 5010 
 5011         * malloc/malloc.c [_LIBC]: Include <string.h> instead of using local
 5012         decls of memset and memcpy.
 5013 
 5014         * sysdeps/generic/sysdep.h (END): Conditionalize on [__ASSEMBLER__].
 5015         * sysdeps/unix/sysv/linux/i386/sysdep.h (L): Likewise.
 5016 
 5017         * elf/dl-load.c (_dl_map_object_from_fd): Comment fix.
 5018 
 5019         * sysdeps/generic/bits/libc-tsd.h [USE_TLS && HAVE___THREAD]
 5020         (__libc_tsd_define): Define using __thread.
 5021 
 5022         * sunrpc/rpc_thread.c: Use __libc_tsd_define.
 5023         (__rpc_thread_variables): Use __libc_tsd_get.
 5024         (__rpc_thread_destroy): Use __libc_tsd_get instead of calling
 5025         __rpc_thread_variables, which might allocate what we're about to free.
 5026 
 5027         * inet/herrno.c [USE_TLS && HAVE___THREAD] (h_errno): Define as a
 5028         thread-local variable.
 5029         * resolv/netdb.h (h_errno): Define macro unconditionally.
 5030         [_LIBC] (__set_h_errno): Macro moved to ...
 5031         * include/netdb.h: ... here.
 5032         [USE_TLS && HAVE___THREAD] (h_errno): Declare __thread variable.
 5033         [USE_TLS && HAVE___THREAD] (__set_h_errno): Define using that.
 5034         [! _LIBC_REENTRANT]: #undef h_errno here.
 5035 
 5036         * include/errno.h: Protect from multiple inclusion.
 5037 
 5038         * misc/sys/select.h (__NFDBITS, __FDELT, __FDMASK): #undef these
 5039         before defining them, since Linux's <linux/posix_types.h> might have
 5040         defined them.
 5041 
 5042 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
 5043 
 5044         * malloc/malloc.c (public_cALLOc): Check for overflow on
 5045         multiplication.
 5046         * sunrpc/xdr_array.c (xdr_array): Likewise.
 5047         * sunrpc/rpc/types.h (mem_free): Add comment.
 5048         Patch by Solar Designer <solar@openwall.com>.
 5049 
 5050 2002-08-02  Jakub Jelinek  <jakub@redhat.com>
 5051 
 5052         * sysdeps/unix/sysv/linux/kernel-features.h
 5053         (__ASSUME_SET_THREAD_AREA_SYSCALL): Define.
 5054 
 5055 2002-08-01  Roland McGrath  <roland@redhat.com>
 5056 
 5057         * libio/fileops.c (_IO_file_sync_mmap): New function.
 5058         (_IO_file_jumps_mmap): Use it.
 5059         (_IO_file_underflow_mmap): Rewritten.  If after EOF or fflush,
 5060         repeat the stat check and resize the mapped buffer as necessary.
 5061 
 5062 2002-07-31  Roland McGrath  <roland@redhat.com>
 5063 
 5064         * libio/fileops.c (decide_maybe_mmap): New static function.
 5065         Code taken from libio/iofopen.c:__fopen_maybe_mmap to try to
 5066         mmap the file contents.  Then switch the jump tables to the mmap
 5067         tables if it worked, or the vanilla file tables if not.
 5068         (_IO_file_underflow_maybe_mmap): New function.
 5069         (_IO_file_seekoff_maybe_mmap): New function.
 5070         (_IO_file_xsgetn_maybe_mmap): New function.
 5071         (_IO_file_jumps_maybe_mmap): New variable, jump table using those.
 5072         * libio/libioP.h: Declare those.
 5073         * libio/wfileops.c (_IO_wfile_underflow_maybe_mmap): New function.
 5074         (_IO_wfile_jumps_maybe_mmap): New variable, jump table using that.
 5075         * libio/iofopen.c (__fopen_maybe_mmap): Don't try to mmap here.
 5076         If the stream is read-only, set its jump tables to those new ones.
 5077         * libio/iofdopen.c (_IO_new_fdopen) [_G_HAVE_MMAP]: Set the initial
 5078         jump tables to the maybe_mmap ones, and don't call __fopen_maybe_mmap.
 5079         We need the tables set before _IO_file_attach.
 5080 
 5081         * libio/tst-mmap-eofsync.c: New file.
 5082         * libio/tst-mmap-fflushsync.c: New file.
 5083         * libio/bug-mmap-fflush.c: New file.
 5084         * libio/tst-mmap2-eofsync.c: New file.
 5085         * libio/Makefile (tests): Add them.
 5086 
 5087         * libio/wfileops.c (_IO_wfile_underflow_mmap): Don't set EOF bit when
 5088         _IO_file_underflow_mmap fails, it already set the appropriate bit.
 5089 
 5090 2002-07-31  Jeff Bailey  <jbailey@gnu.org>
 5091 
 5092         * libio/stdio.h (sys_errlist, sys_nerr, _sys_errlist, _sys_nerr):
 5093         Declarations moved to <bits/sys_errlist.h>.  Include that file.
 5094         * libio/Makefile (headers): Add bits/sys_errlist.h to the list.
 5095         * sysdeps/generic/bits/sys_errlist.h: New file.  This does *not*
 5096         declare sys_errlist and sys_nerr.
 5097         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: New file.  Does
 5098         provide declarations.
 5099 
 5100 2002-07-31  Roland McGrath  <roland@redhat.com>
 5101 
 5102         * elf/rtld.c (dl_main): Fix typo in error message.
 5103 
 5104 2002-07-31  Roland McGrath  <roland@frob.com>
 5105 
 5106         * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): __fxstat -> __fxstat64,
 5107         __xstat -> __xstat64, __lseek -> __libc_lseek64.  Completes 2002-06-09
 5108         sysdeps/mach/hurd/dl-sysdep.c change.
 5109 
 5110 2002-07-28  Ulrich Drepper  <drepper@redhat.com>
 5111 
 5112         * sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname
 5113         -r`/build/include for kernel headers.
 5114 
 5115         * po/fi.po: New file.
 5116 
 5117 2002-07-15  Alexandre Oliva  <aoliva@redhat.com>
 5118 
 5119         * configure.in (static_nss): Set to `yes' if --disable-shared.
 5120 
 5121 2002-07-23  Bruno Haible  <bruno@clisp.org>
 5122 
 5123         * intl/loadmsgcat.c (PRI*): Redefine the macros if PRI_MACROS_BROKEN
 5124         is set.
 5125 
 5126 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
 5127 
 5128         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New file.
 5129         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter
 5130         arguments.
 5131 
 5132 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
 5133 
 5134         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal): Add
 5135         alias.
 5136 
 5137 2002-07-21  Bruno Haible  <bruno@clisp.org>
 5138 
 5139         * intl/libintl.h (__GNU_GETTEXT_SUPPORTED_REVISION): New macro.
 5140         * intl/gettext.h (struct mo_file_header): New fields n_sysdep_segments,
 5141         sysdep_segments_offset, n_sysdep_strings, orig_sysdep_tab_offset,
 5142         trans_sysdep_tab_offset.
 5143         (struct sysdep_segment): New type.
 5144         (struct sysdep_string): New type.
 5145         (SEGMENTS_END): New macro.
 5146         * intl/gettextP.h (struct sysdep_string_desc): New type.
 5147         (struct loaded_domain): New fields malloced, n_sysdep_strings,
 5148         orig_sysdep_tab, trans_sysdep_tab, must_swap_hash_tab. Make fields
 5149         orig_tab, trans_tab, hash_tab to const pointers because they point
 5150         into read-only memory.
 5151         * intl/loadmsgcat.c: Include stdint.h, inttypes.h, hash-string.h.
 5152         (PRI*): Define fallback values.
 5153         (get_sysdep_segment_value): New function.
 5154         (_nl_load_domain): Distinguish major and minor revision parts. Add
 5155         support for minor revision 1 with system dependent strings.
 5156         (_nl_unload_domain): Also free the 'malloced' field.
 5157         * intl/dcigettext.c (_nl_find_msg): Remove test for domain->hash_size,
 5158         now done in loadmsgcat.c. Add support for system dependent strings.
 5159 
 5160 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
 5161 
 5162         * posix/bug-regex7.c: New file.
 5163         * posix/bug-regex8.c: New file.
 5164         * posix/Makefile (tests): Add bug-regex7 and bug-regex8.
 5165 
 5166 2002-07-16  Stepan Kasal  <kasal@math.cas.cz>
 5167 
 5168         * posix/bug-regex4.c (main): Fix typos.
 5169         * posix/bug-regex6.c (main): Likewise.
 5170 
 5171 2002-07-27  Ulrich Drepper  <drepper@redhat.com>
 5172 
 5173         * posix/bug-regex6.c (main): Fix warnings.
 5174 
 5175         * iconvdata/Makefile (CPPFLAGS): Add NOT_IN_libc.
 5176 
 5177         * iconv/iconv_prog.c (main): Improve error message for the cases
 5178         where -t and/or -f parameter are missing.
 5179 
 5180 2002-07-10  Stepan Kasal  <kasal@math.cas.cz>
 5181 
 5182         * posix/regexec.c (re_match): Reorganize to remove duplicate code.
 5183         (re_search): Likewise.
 5184         (re_match_2): Likewise.
 5185         (re_search_2): Likewise.
 5186         (re_search_stub): New function.
 5187         (re_search_2_stub): New function.
 5188         * regcomp.c (re_compile_pattern): Typo in a comment fixed.
 5189 
 5190 2002-07-10  Isamu Hasegawa  <isamu@yamato.ibm.com>
 5191 
 5192         * posix/regex_internal.h: Add new member STOP to struct re_string_t.
 5193         (re_string_eoi): Use STOP instead of LEN.
 5194         * posix/regex_internal.c (re_string_allocate): Initialize pstr->len.
 5195         (re_string_construct): Likewise.
 5196         (re_string_reconstruct): Adjust pstr->stop like pstr->len.
 5197         * posix/regexec.c (re_search_internal): Add a new argument STOP
 5198         so that it can handle the argument STOP of re_search_2 and re_match_2
 5199         correctly.
 5200         (regexec): Adapt to new I/F of re_search_internal.
 5201         (re_search_stub): Likewise.
 5202 
 5203 2002-07-25  Ulrich Drepper  <drepper@redhat.com>
 5204 
 5205         * sunrpc/clnt_gen.c: Don't include <sys/errno.h>.
 5206 
 5207         * elf/dl-minimal.c: Remove definition of __assert_perror_fail.
 5208 
 5209         * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
 5210         * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
 5211         of __divdi3.
 5212 
 5213         * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
 5214         * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
 5215         * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
 5216         alias for adjtimex syscall.
 5217 
 5218         * elf/dl-minimal.c: Define __assert_fail_internal.
 5219         * assert/assert.c: Likewise.
 5220         * include/assert.h: Define __assert_file macro if !SHARED and not
 5221         NOT_IN_libc.
 5222 
 5223         * iconv/Makefile: Define NOT_IN_libc for objects in standalone
 5224         programs.
 5225         * locale/Makefile: Likewise.
 5226         * nscd/Makefile: Likewise.
 5227         * catgets/Makefile: Likewise.
 5228 
 5229 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
 5230 
 5231         * libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
 5232         compute current position.
 5233 
 5234         * stdio-common/tst-fseek.c (main): Improve error messages.
 5235 
 5236         * libio/tst-freopen.c (main): Remove unused variable.
 5237 
 5238         * libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
 5239         succesful seek call.  Simplify error checking.
 5240 
 5241 2002-07-25  Jakub Jelinek  <jakub@redhat.com>
 5242 
 5243         * config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
 5244         * sysdeps/ia64/fpu/libm_support.h: Likewise.
 5245 
 5246 2002-07-19  Roland McGrath  <roland@frob.com>
 5247 
 5248         * hurd/hurdsig.c (_hurdsig_getenv): Always return null if
 5249         __libc_enable_secure is set.
 5250 
 5251 2002-07-24  Roland McGrath  <roland@frob.com>
 5252 
 5253         Added <ifaddrs.h> interface with functions `getifaddrs', `freeifaddrs'.
 5254         This implementation supports only IPv4.
 5255         * inet/ifaddrs.h: New file.
 5256         * sysdeps/generic/ifaddrs.c: New file.
 5257         * sysdeps/gnu/ifaddrs.c: New file.
 5258         * inet/test-ifaddrs.c: New file.
 5259         * inet/Makefile (routines): Add ifaddrs.
 5260         (headers): Add ifaddrs.h here.
 5261         (tests): Add test-ifaddrs.
 5262         * inet/Versions (GLIBC_2.3): New set, add getifaddrs and freeifaddrs.
 5263 
 5264         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
 5265         socket call to get an AF_INET socket, instead of using __opensock.
 5266         The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
 5267 
 5268         * sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
 5269         if not -1 use it instead of calling __opensock.
 5270         * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
 5271         * sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
 5272         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
 5273 
 5274         * sysdeps/mach/hurd/ifreq.h: New file.
 5275         * sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
 5276         * sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
 5277         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
 5278 
 5279         * libio/fileops.c (_IO_file_seekoff_mmap): Don't rely on FP->_offset,
 5280         which gets moved around.  Calculate size of mmap'd buffer instead.
 5281 
 5282 2002-07-24  Philip Blundell  <philb@gnu.org>
 5283 
 5284         * sysdeps/unix/arm/brk.S: Improve schedule.
 5285         * sysdeps/unix/sysv/linux/arm/socket.S (PUSHARGS_1): Use more
 5286         efficient instruction.
 5287         (__socket): Optimize return sequence.
 5288 
 5289 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
 5290 
 5291         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Prefer inet
 5292         sockets on old kernels.
 5293 
 5294 2002-07-22  Philip Blundell  <philb@gnu.org>
 5295 
 5296         * sysdeps/unix/sysv/linux/arm/errlist.c: Remove extra weak alias
 5297         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
 5298         alias.
 5299 
 5300 2002-07-24  Ulrich Drepper  <drepper@redhat.com>
 5301 
 5302         * locale/hashval.h: Make more self-contained by defining LONG_BITS.
 5303         * locale/programs/simple-hash.c: Remove LONG_BITS definition.
 5304 
 5305         * locale/programs/locarchive.c (add_locale_to_archive): Correct
 5306         test to detect duplicate locales.
 5307 
 5308         * libio/fileops.c (_IO_new_file_seekoff): Fail if relative
 5309         position would be before beginning of file.
 5310         (_IO_file_seekoff_mmap): Likewise.
 5311         * libio/Makefile (tests): Add bug-fseek.
 5312         * libio/bug-fseek.c: New file.
 5313 
 5314         * intl/explodename.c: Remove support for CEN-style locale variables.
 5315         It was never used and shouldn't be since it's not portable.
 5316         * intl/finddomain.c: Likewise.
 5317         * intl/l10nflist.c: Likewise.
 5318         * intl/loadinfo.h: Likewise.
 5319         * locale/findlocale.c: Likewise.
 5320 
 5321 2002-07-24  Roland McGrath  <roland@frob.com>
 5322 
 5323         * libio/fileops.c (_IO_file_seekoff_mmap): When just examining the
 5324         position, calculate it to take into account an active pushback buffer.
 5325 
 5326         * libio/Makefile (tests): Add bug-ungetc.
 5327         * libio/bug-ungetc.c: New file.
 5328 
 5329 2002-07-23  Ulrich Drepper  <drepper@redhat.com>
 5330 
 5331         * sysdeps/generic/libc-tls.c: New file.
 5332         * csu/Makefile (routines): Add libc-tls.
 5333         (static-only-routines): Add libc-tls.
 5334         * elf/dl-support.c (_dl_phdr): New variable.
 5335         (_dl_phnum): New variable.
 5336         (_dl_aux_init): Initialize _dl_phdr and _dl_phnum from aux vector.
 5337         * sysdeps/generic/libc-start.c (__libc_start_main): Reorganize code
 5338         for !SHARED.  First look through auxiliary vector.  If TLS always
 5339         call __pthread_initialize_minimal.
 5340 
 5341         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Make sure size argument
 5342         in mmap call is never zero.
 5343 
 5344 2002-07-23  Andreas Jaeger  <aj@suse.de>
 5345 
 5346         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
 5347         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
 5348 
 5349 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
 5350 
 5351         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
 5352         creation and removal of the temp file.
 5353 
 5354         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
 5355         file creation.
 5356         * test-skeleton.c (create_temp_file): New function.
 5357 
 5358 2002-07-22  Andreas Jaeger  <aj@suse.de>
 5359 
 5360         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
 5361         local label.
 5362 
 5363 2002-07-21  Roland McGrath  <roland@frob.com>
 5364 
 5365         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
 5366         put -I../include before -I../stdlib so we get the right errno.h et al.
 5367         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
 5368         (CFLAGS-wcstof.c): Likewise.
 5369         (CFLAGS-wcstold.c): Likewise.
 5370         (CFLAGS-wcstod_l.c): Likewise.
 5371         (CFLAGS-wcstof_l.c): Likewise.
 5372         (CFLAGS-wcstold_l.c): Likewise.
 5373 
 5374 2002-07-19  Roland McGrath  <roland@frob.com>
 5375 
 5376         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
 5377 
 5378 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
 5379 
 5380         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
 5381         __ASSUME_AT_XID is defined.
 5382         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
 5383         for 2.4.1 and up.
 5384         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
 5385         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
 5386 
 5387         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
 5388         (CFLAGS-wcstof.c): Likewise.
 5389         (CFLAGS-wcstold.c): Likewise.
 5390         (CFLAGS-wcstod_l.c): Likewise.
 5391         (CFLAGS-wcstof_l.c): Likewise.
 5392         (CFLAGS-wcstold_l.c): Likewise.
 5393 
 5394 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
 5395 
 5396         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
 5397         __priority_which_t): Always typedef to int for C++.
 5398 
 5399 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
 5400 
 5401         * configure.in: Add test for __thread support in compiler.
 5402         * config.h.in: Add HAVE___THREAD.
 5403         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
 5404         * include/sys/errno.h: Moved to...
 5405         * stdlib/sys/errno.h: ...here.  New file.
 5406         * stdlib/errno.h: New file.  Moved from...
 5407         * include/errno.h: ...here.  Changed into an internal header defining
 5408         libc-local things like __set_errno.
 5409         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
 5410         bits/errno.h.
 5411         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
 5412         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
 5413         either.
 5414         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
 5415         from...
 5416         (_dl_start_final): ...here.  Add code to initialize tls elements from
 5417         bootstrap_map.
 5418         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
 5419         if USE_TLS && HAVE___THREAD.
 5420         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
 5421         * sysdeps/mach/hurd/bits/errno.h: Likewise.
 5422         * sysdeps/standalone/arm/bits/errno.h: Likewise.
 5423         * sysdeps/standalone/bits/errno.h: Likewise.
 5424         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
 5425         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
 5426         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
 5427         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
 5428         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
 5429         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
 5430         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
 5431         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
 5432         use GL(dl_rtld_map), use map parameter.
 5433         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
 5434         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
 5435         USE_TLS && HAVE___THREAD.
 5436         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
 5437         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
 5438         TLS code sequence.
 5439         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
 5440 
 5441         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
 5442         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
 5443         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
 5444         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
 5445         * sysdeps/unix/sysv/linux/readv.c: Likewise.
 5446         * sysdeps/unix/sysv/linux/writev.c: Likewise.
 5447 
 5448 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
 5449 
 5450         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
 5451         MS_INVALIDATE values.
 5452 
 5453 2002-07-17  Andreas Schwab  <schwab@suse.de>
 5454             Ulrich Drepper  <drepper@redhat.com>
 5455 
 5456         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
 5457         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
 5458         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
 5459         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
 5460 
 5461 2002-07-01  H.J. Lu  <hjl@gnu.org>
 5462 
 5463         * elf/circleload1.c (load_dso): Call "circlemod1" and check
 5464         return value.
 5465 
 5466         * elf/circlemod1.c (circlemod1): Return int.
 5467         * elf/circlemod2.c (circlemod2): Likewise.
 5468         * elf/circlemod2a.c (circlemod2): Likewise.
 5469         * elf/circlemod3.c (circlemod3): Likewise.
 5470         (circlemod3a): A new function.
 5471 
 5472 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
 5473 
 5474         * catgets/tst-catgets.c (main): Don't expect results for
 5475         untranslated messages.
 5476 
 5477         * glibcbug.in: Fix little typo.  Remove STDIO.
 5478 
 5479         * config.h.in: Fail if __FAST_MATH__ is defined.
 5480         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
 5481         (CPPFLAGS-test-idouble.c): Likewise.
 5482         (CPPFLAGS-test-ildouble.c): Likewise.
 5483 
 5484 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
 5485 
 5486         * intl/tst-gettext.sh: Pass -f option to msgfmt.
 5487         * intl/tst-gettext.c: Correctly handle untranslated messages in
 5488         positive tests.
 5489 
 5490         * po/de.po: Update from translation team.
 5491 
 5492 2002-07-02  H.J. Lu  <hjl@gnu.org>
 5493 
 5494         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
 5495         use ll/sc.
 5496         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
 5497 
 5498         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
 5499         to 2.4.0 for mips.
 5500 
 5501 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
 5502 
 5503         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
 5504         TLS fail if USE_TLS is not defined.
 5505 
 5506         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
 5507         and adjust state for seek position.  [PR libc/4070]
 5508         * libio/Makefile (tests): Add bug-rewind.
 5509         * libio/bug-rewind.c: New file.
 5510 
 5511 2002-07-12  Philip Blundell  <philb@gnu.org>
 5512 
 5513         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
 5514         (__backtrace): Use it.
 5515         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
 5516 
 5517 2002-07-12  Philip Blundell  <philb@gnu.org>
 5518 
 5519         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
 5520         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
 5521         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
 5522         (elf_machine_rela): Remove unused variable.
 5523 
 5524         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
 5525         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
 5526         define.
 5527 
 5528 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
 5529 
 5530         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
 5531 
 5532 2002-07-14  Andreas Jaeger  <aj@suse.de>
 5533 
 5534         * sysdeps/x86_64/bits/link.h: Add biarch support.
 5535 
 5536 2002-07-13  Andreas Jaeger  <aj@suse.de>
 5537 
 5538         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
 5539         Use correct indices.
 5540         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
 5541 
 5542 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
 5543 
 5544         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
 5545         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
 5546         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
 5547         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
 5548         * sysdeps/s390/s390-32/bits/link.h: Remove.
 5549         * sysdeps/s390/s390-64/bits/link.h: Remove.
 5550         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
 5551         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
 5552         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
 5553         * sysdeps/s390/bits/wordsize.h: New file.
 5554         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
 5555         elfclass.h.
 5556         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
 5557         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
 5558         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
 5559         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
 5560         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
 5561         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
 5562         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
 5563         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
 5564         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
 5565         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
 5566         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
 5567         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
 5568         resource.h.
 5569         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
 5570         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
 5571         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
 5572         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
 5573         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
 5574         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
 5575         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
 5576         sigaction.h.
 5577         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
 5578         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
 5579         siginfo.h.
 5580         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
 5581         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
 5582         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
 5583         socket.h.
 5584         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
 5585         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
 5586         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
 5587         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
 5588         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
 5589         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
 5590         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
 5591         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
 5592         procfs.h.
 5593         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
 5594         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
 5595         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
 5596         ucontext.h.
 5597         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
 5598         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
 5599 
 5600 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
 5601 
 5602         * Versions.def (libc): Add GLIBC_2.3.
 5603         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
 5604         * stdlib/canonicalize.c: Add compatibility version for realpath
 5605         and make new code available in GLIBC_2.3.
 5606 
 5607 2002-07-06  Bruno Haible  <bruno@clisp.org>
 5608 
 5609         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
 5610 
 5611 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
 5612 
 5613         * resolv/res_hconf.c (_res_hconf_init): Move code into new
 5614         function do_init.  Use __libc_once.
 5615         (do_init): New function.
 5616 
 5617         * iconvdata/iso8859-11.h: Removed.
 5618         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
 5619         (distribute): Remove iso8859-11.h.
 5620         * iconvdata/tst-tables.sh: Add ISO-8859-11.
 5621 
 5622         * stdio-common/vfscanf.c (inchar): Restore errno from previous
 5623         underflow operation if c == (W)EOF.
 5624 
 5625 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
 5626 
 5627         * stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
 5628         non-zero, adjust exponent.
 5629         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
 5630         Remove NO_LONG_DOUBLE aliases.
 5631         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
 5632         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
 5633         (__log1pl): Raise divide by zero and invalid exceptions when needed.
 5634         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
 5635         1**y and -1**+-Inf.
 5636         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
 5637         Fix BITS_PER_MP_LIMB 32 extraction.
 5638         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
 5639         exceptions for qNaNs.
 5640         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
 5641         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
 5642         Raise exceptions when needed.  Don't recurse unnecessarily.
 5643         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
 5644         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
 5645         exceptions for qNaNs.
 5646         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
 5647         to fix *quo return value sign.
 5648         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
 5649         case -Inf argument.
 5650         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
 5651 
 5652 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
 5653 
 5654         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
 5655         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
 5656         -DNDEBUG.
 5657 
 5658 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
 5659 
 5660         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
 5661         the result.
 5662 
 5663         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
 5664         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
 5665 
 5666         * Versions.def (libthread_db): Add GLIBC_2.3.
 5667 
 5668 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
 5669 
 5670         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
 5671         new stream if possible.
 5672         * libio/freopen64.c (freopen64): Likewise.
 5673         * libio/Makefile (tests): Add tst-freopen.
 5674         * libio/tst-freopen.c: New file.
 5675 
 5676 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
 5677 
 5678         * libio/stdio.h (obstack_printf): Add format attribute.
 5679         (obstack_vprintf): Likewise.
 5680 
 5681 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
 5682 
 5683         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
 5684         resp. 16 bytes on 32-bit resp. 64-bit platforms.
 5685         (re_charset_t, re_string_t): Reorder structure members for 64-bit
 5686         architectures.
 5687 
 5688 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
 5689 
 5690         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
 5691         (init_dfa): ...here.
 5692 
 5693 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
 5694 
 5695         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
 5696         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
 5697         nodes in parse trees.
 5698         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
 5699         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
 5700         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
 5701         nodes which can epsilon transit.
 5702         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
 5703         to IS_EPSILON_NODE macro.
 5704         * posix/regexec.c (update_regs): New function to update registers
 5705         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
 5706         (proceed_next_node): Use the entities of the nodes to determine
 5707         whether the node can transit to.
 5708         (set_regs): Use update_regs function to update registers.
 5709 
 5710 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
 5711 
 5712         * posix/bug-regex4.c (main): Remove duplicate setlocale.
 5713         * posix/bug-regex6.c: New file.
 5714         * posix/Makefile (tests): Add bug-regex6.
 5715         (bug-regex6-ENV): Set LOCPATH.
 5716 
 5717 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
 5718 
 5719         * Versions.def [libpthread]: Add GLIBC_2.2.6.
 5720         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
 5721 
 5722 2002-07-06  Bruno Haible  <bruno@clisp.org>
 5723 
 5724         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
 5725 
 5726 2002-07-06  Bruno Haible  <bruno@clisp.org>
 5727 
 5728         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
 5729         declarations.
 5730 
 5731         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
 5732 
 5733         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
 5734 
 5735         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
 5736         not _UTSNAME_H.
 5737         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
 5738 
 5739         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
 5740         * sysdeps/generic/bits/ustat.h: Likewise.
 5741 
 5742         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
 5743 
 5744 2002-07-08  Andreas Jaeger  <aj@suse.de>
 5745 
 5746         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
 5747 
 5748 2002-07-08  Andreas Jaeger  <aj@suse.de>
 5749 
 5750         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
 5751 
 5752 2002-07-06  Andreas Jaeger  <aj@suse.de>
 5753 
 5754         * sysdeps/x86_64/fpu/bits/mathinline.h: New file.
 5755         * sysdeps/x86_64/fpu/s_copysign.S: New file.
 5756         * sysdeps/x86_64/fpu/s_copysignf.S: New file.
 5757         * sysdeps/x86_64/fpu/s_copysignl.S: New file.
 5758         * sysdeps/x86_64/fpu/s_finitel.S: New file.
 5759         * sysdeps/x86_64/fpu/s_fmax.S: New file.
 5760         * sysdeps/x86_64/fpu/s_fmaxf.S: New file.
 5761         * sysdeps/x86_64/fpu/s_fmaxl.S: New file.
 5762         * sysdeps/x86_64/fpu/s_fmin.S: New file.
 5763         * sysdeps/x86_64/fpu/s_fminf.S: New file.
 5764         * sysdeps/x86_64/fpu/s_fminl.S: New file.
 5765 
 5766 2002-06-05  Brian Youmans <3diff@gnu.org>
 5767 
 5768         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
 5769         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
 5770         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
 5771         * sysdeps/ia64/fpu/e_asin.S: Likewise.
 5772         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
 5773         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
 5774         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
 5775         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
 5776         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
 5777         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
 5778         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
 5779         * sysdeps/ia64/fpu/e_exp.S: Likewise.
 5780         * sysdeps/ia64/fpu/e_expf.S: Likewise.
 5781         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
 5782         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
 5783         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
 5784         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
 5785         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
 5786         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
 5787         * sysdeps/ia64/fpu/e_log.S: Likewise.
 5788         * sysdeps/ia64/fpu/e_logf.S: Likewise.
 5789         * sysdeps/ia64/fpu/e_pow.S: Likewise.
 5790         * sysdeps/ia64/fpu/e_powf.S: Likewise.
 5791         * sysdeps/ia64/fpu/e_powl.S: Likewise.
 5792         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
 5793         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
 5794         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
 5795         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
 5796         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
 5797         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
 5798         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
 5799         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
 5800         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
 5801         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
 5802         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
 5803         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
 5804         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
 5805         * sysdeps/ia64/fpu/libm_error.c: Likewise.
 5806         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
 5807         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
 5808         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
 5809         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
 5810         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
 5811         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
 5812         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
 5813         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
 5814         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
 5815         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
 5816         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
 5817         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
 5818         * sysdeps/ia64/fpu/s_logb.S: Likewise.
 5819         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
 5820         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
 5821         * sysdeps/ia64/fpu/s_modf.S: Likewise.
 5822         * sysdeps/ia64/fpu/s_modff.S: Likewise.
 5823         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
 5824         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
 5825         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
 5826         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
 5827         * sysdeps/ia64/fpu/s_rint.S: Likewise.
 5828         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
 5829         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
 5830         * sysdeps/ia64/fpu/s_round.S: Likewise.
 5831         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
 5832         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
 5833         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
 5834         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
 5835         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
 5836         * sysdeps/ia64/fpu/s_significand.S: Likewise.
 5837         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
 5838         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
 5839         * sysdeps/ia64/fpu/s_tan.S: Likewise.
 5840         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
 5841         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
 5842         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
 5843         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
 5844         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
 5845         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
 5846         reflect IBM donation of math library to FSF
 5847         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
 5848         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
 5849         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
 5850         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
 5851         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
 5852         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
 5853         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
 5854         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
 5855         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
 5856         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
 5857         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
 5858         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
 5859         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
 5860         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
 5861         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
 5862         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
 5863         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
 5864         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
 5865         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
 5866         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
 5867         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
 5868         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
 5869         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
 5870         * sysdeps/vax/__longjmp.c: Likewise.
 5871         * sysdeps/vax/setjmp.c: Likewise.
 5872         * libio/filedoalloc.c: Fixed BSD copying permission notice to
 5873         remove advertising clause
 5874         * sysdeps/vax/htonl.s: Likewise.
 5875         * sysdeps/vax/htons.s: Likewise.
 5876         * libio/wfiledoalloc.c: Likewise.
 5877         * stdlib/random.c: Likewise.
 5878         * stdlib/random_r.c: Likewise.
 5879         * sysdeps/mach/sys/reboot.h: Likewise.
 5880         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
 5881         * sysdeps/posix/getaddrinfo.c: Likewise.
 5882         * sunrpc/des_impl.c: Updated license permission notice to Lesser
 5883         GPL and corrected pointer to point to the correct license.
 5884 
 5885 2002-07-04  Andreas Jaeger  <aj@suse.de>
 5886 
 5887         * scripts/config.guess: New upstream version.
 5888         * scripts/config.sub: Likewise.
 5889 
 5890 2002-07-02  Andreas Schwab  <schwab@suse.de>
 5891 
 5892         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
 5893         in parallel to bumping up the buffer pointer.
 5894 
 5895 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
 5896 
 5897         * math/libm-test.inc (acos_test): Add missing L suffix for
 5898         expected result.
 5899         (cpow_test): Likewise.
 5900         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
 5901         error for acos (0.0625).
 5902 
 5903 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
 5904 
 5905         * locale/iso-639.def: Add entry for Ganda.
 5906         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
 5907         definition.
 5908         (address_finish): Handle entries with two letter ISO 639 code.
 5909 
 5910         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
 5911         directory if it existed before.
 5912         * iconv/iconvconfig.c: Implement --prefix option.
 5913 
 5914         * math/libm-test.inc (cexp_test): Add missing L suffix for
 5915         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
 5916         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
 5917         1.25 i).
 5918 
 5919 2002-05-29  H.J. Lu  <hjl@gnu.org>
 5920 
 5921         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
 5922         is turned on.
 5923 
 5924 2002-05-28  H.J. Lu  <hjl@gnu.org>
 5925 
 5926         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
 5927         are not dlopened on the dependency list of a dlopened object.
 5928 
 5929 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
 5930 
 5931         * elf/dl-lookup.c (add_dependency): It is not necessary to add
 5932         dependencies if they are created between objects which are created
 5933         while processing RTLD_NOW for objects loaded as part of the same
 5934         dlopen call.
 5935 
 5936 2002-06-14  H.J. Lu  <hjl@gnu.org>
 5937 
 5938         * elf/Makefile (tests): Add circleload1.
 5939         (modules-names): Add circlemod1, circlemod2, circlemod3,
 5940         circlemod1a, circlemod2a and circlemod3a.
 5941         ($(objpfx)circleload1): New target.
 5942         ($(objpfx)circleload1.out): Likewise.
 5943         ($(objpfx)circlemod1.so): Likewise.
 5944         ($(objpfx)circlemod2.so): Likewise.
 5945         ($(objpfx)circlemod1a.so): Likewise.
 5946         ($(objpfx)circlemod2a.so): Likewise.
 5947         * elf/circleload1.c: New file.
 5948         * elf/circlemod1.c: New file.
 5949         * elf/circlemod1a.c: New file.
 5950         * elf/circlemod2.c: New file.
 5951         * elf/circlemod2a.c: New file.
 5952         * elf/circlemod3.c: New file.
 5953         * elf/circlemod3a.c: New file.
 5954 
 5955 2002-06-18  Amos Waterland  <apw@us.ibm.com>
 5956 
 5957         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
 5958         file descriptor.
 5959         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
 5960         add check for fd not open for writing.
 5961 
 5962         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
 5963         completed element(s) and do not suspend thread if so.  Patch
 5964         heavily modified by drepper.
 5965 
 5966         * rt/tst-aio7.c: New file.  Regression test for problems which the
 5967         above three changes fix.
 5968         * rt/Makefile (tests): Add tst-aio7.
 5969 
 5970 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
 5971 
 5972         * rt/tst-aio6.c: Fix comment.
 5973 
 5974         * catgets/gencat.c (read_input_file): Handle more than one slash
 5975         at end of line correctly [PR libc/3926].
 5976         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
 5977 
 5978         * catgets/sample.SJIS: Add test case for above bug.
 5979         * catgets/test-gencat.c: Adjust test code.
 5980         * catgets/test-gencat.sh: Adjust expected results.
 5981 
 5982         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
 5983         to skip relative relocations.
 5984         Patch by Geoff Keating <geoffk@redhat.com>.
 5985 
 5986 2002-05-26  Bruno Haible  <bruno@clisp.org>
 5987 
 5988         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
 5989         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
 5990         All callers changed.
 5991         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
 5992         STANDARD_FROM_LOOP_ERR_HANDLER.
 5993         (utf8_internal_loop): Likewise.
 5994         (ucs2_internal_loop): Likewise.
 5995         (internal_ucs2_loop): Perform error handling like in
 5996         STANDARD_FROM_LOOP_ERR_HANDLER.
 5997         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
 5998         in STANDARD_FROM_LOOP_ERR_HANDLER.
 5999         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
 6000         handling.
 6001         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
 6002         in STANDARD_FROM_LOOP_ERR_HANDLER.
 6003         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
 6004         handling.
 6005         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
 6006         in STANDARD_FROM_LOOP_ERR_HANDLER.
 6007         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
 6008         handling.
 6009         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
 6010         STANDARD_FROM_LOOP_ERR_HANDLER.
 6011         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
 6012         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
 6013         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
 6014         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
 6015         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
 6016         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
 6017         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
 6018         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
 6019         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
 6020         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
 6021         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
 6022         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
 6023         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
 6024         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
 6025         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
 6026         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
 6027         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
 6028         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
 6029         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
 6030         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
 6031         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
 6032         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
 6033         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
 6034         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
 6035         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
 6036         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
 6037         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
 6038         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
 6039         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
 6040         an error, still set result = __GCONV_ILLEGAL_INPUT.
 6041         (BODY for TO_LOOP): Likewise.
 6042         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
 6043         STANDARD_FROM_LOOP_ERR_HANDLER.
 6044         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
 6045         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
 6046         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
 6047         handling.
 6048         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
 6049         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
 6050         STANDARD_FROM_LOOP_ERR_HANDLER.
 6051         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
 6052         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
 6053         STANDARD_FROM_LOOP_ERR_HANDLER.
 6054         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
 6055         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
 6056         STANDARD_FROM_LOOP_ERR_HANDLER.
 6057         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
 6058         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
 6059         STANDARD_FROM_LOOP_ERR_HANDLER.
 6060         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
 6061         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
 6062         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
 6063         handling.
 6064         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
 6065         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
 6066         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
 6067         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
 6068 
 6069 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
 6070 
 6071         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
 6072         labels in assembler instructions.
 6073 
 6074 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
 6075 
 6076         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
 6077         not enough content is available.
 6078         * libio/tst-eof.c: New file.
 6079         * libio/Makefile (tests): Add tst-eof.
 6080 
 6081         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
 6082         update atime.
 6083         * libio/tst-atime.c: New file.
 6084         * libio/Makefile (tests): Add tst-atime.
 6085 
 6086         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
 6087         handling of overly long words.
 6088 
 6089 2002-06-25  Andreas Jaeger  <aj@suse.de>
 6090 
 6091         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
 6092         to not use 32-bit pc relative relocations.
 6093         (elf_machine_dynamic): Likewise.
 6094 
 6095 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
 6096 
 6097         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
 6098         (__GETDENTS): Check for failed getdents64 syscall.
 6099         * dirent/Makefile (tests): Add bug-readdir1.
 6100         * dirent/bug-readdir1.c: New file.
 6101 
 6102 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
 6103 
 6104         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
 6105         lookups.
 6106         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
 6107         code.  Print TLS modid and offset for modules containing PT_TLS
 6108         segments.
 6109 
 6110 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
 6111 
 6112         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
 6113         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
 6114         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
 6115         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
 6116 
 6117 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
 6118 
 6119         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
 6120         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
 6121         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
 6122         * nss/getXXent_r.c (NEW, NEW1): Define.
 6123         (NEW (REENTRANT_GETNAME)): Strong alias to
 6124         INTERNAL (REENTRANT_GETNAME).
 6125         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
 6126 
 6127 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
 6128 
 6129         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
 6130         (_IO_file_jumps_mmap): Use it.
 6131         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
 6132         * libio/libioP.h: Remove _IO_wdefault_setbuf and
 6133         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
 6134         prototype.
 6135         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
 6136         (_IO_wfile_jumps_mmap): Don't use it anymore.
 6137         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
 6138         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
 6139         _IO_wdefault_setbuf.
 6140         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
 6141         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
 6142         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
 6143 
 6144 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
 6145 
 6146         * libio/Makefile (tests): Add tst-mmap-setvbuf.
 6147         * libio/tst-mmap-setvbuf.c: New test.
 6148 
 6149 2002-06-21  Andreas Jaeger  <aj@suse.de>
 6150 
 6151         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
 6152 
 6153 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
 6154 
 6155         * include/unistd.h (__fork_internal): Remove.
 6156         (__fork): Don't define to __fork_internal.
 6157         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
 6158         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
 6159         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
 6160         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
 6161         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
 6162 
 6163 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
 6164 
 6165         * po/hr.po: New file.
 6166 
 6167 2002-06-11  Wolfram Gloger  <wg@malloc.de>
 6168 
 6169         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
 6170         Reported by Michael Meissner <meissner@redhat.com>.
 6171 
 6172 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
 6173 
 6174         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
 6175         Patch by Hans Boehm <hans_boehm@hp.com>.
 6176 
 6177 2002-06-20  Andreas Jaeger  <aj@suse.de>
 6178 
 6179         * math/libm-test.inc: Use exact values as input parameters,
 6180         compute output parameters with 36 digits for 128-bit long doubles.
 6181         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
 6182         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
 6183         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
 6184 
 6185 2002-06-13  Stephen L Moshier  <steve@moshier.net>
 6186 
 6187         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
 6188         argument or result is subnormal.
 6189 
 6190 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
 6191 
 6192         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
 6193         quotient.
 6194         * sysdeps/i386/fpu/s_remquof.S: Likewise.
 6195         * sysdeps/i386/fpu/s_remquol.S: Likewise.
 6196 
 6197         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
 6198 
 6199 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
 6200 
 6201         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
 6202         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
 6203         Reported by Peter A. Buhr.
 6204 
 6205 2002-06-15  Roland McGrath  <roland@frob.com>
 6206 
 6207         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
 6208         warning.
 6209 
 6210         * sysdeps/mach/hurd/getcwd.c
 6211         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
 6212 
 6213         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
 6214         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
 6215 
 6216         * sysdeps/alpha/divrem.h: Use local label instead of global one for
 6217         jump to local subroutine.
 6218 
 6219 2002-06-14  Roland McGrath  <roland@frob.com>
 6220 
 6221         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
 6222         * sysdeps/mach/hurd/Makeconfig: ... here.
 6223 
 6224 2002-06-13  Andreas Schwab  <schwab@suse.de>
 6225 
 6226         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
 6227         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
 6228         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
 6229 
 6230 2002-06-13  Roland McGrath  <roland@frob.com>
 6231 
 6232         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
 6233         * hurd/hurdstartup.c (_hurd_startup): Likewise.
 6234         Use intptr_t instead of int for argc in stack layout.
 6235         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
 6236         (_dl_init_first): Likewise.
 6237         (_hurd_stack_setup): Likewise.
 6238         (init1): Add a cast.
 6239         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
 6240 
 6241         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
 6242         argument to pfinet_siocgifconf RPC.
 6243 
 6244 2002-06-13  Andreas Schwab  <schwab@suse.de>
 6245 
 6246         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
 6247         expansion order.
 6248 
 6249 2002-06-12  Roland McGrath  <roland@frob.com>
 6250 
 6251         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
 6252         if already defined.
 6253         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
 6254         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
 6255 
 6256 2002-06-11  Roland McGrath  <roland@frob.com>
 6257 
 6258         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
 6259         file on [!RTLD_STAT64].
 6260         * sysdeps/mach/hurd/fxstat64.c: Likewise.
 6261 
 6262         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
 6263         (__fdopen): Use INTUSE.
 6264         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
 6265 
 6266         * stdio-common/tmpfile64.c: File removed.
 6267         * sysdeps/generic/tmpfile64.c: New file.
 6268         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
 6269         if not already defined.
 6270         (tmpfile): Use it in place of __GT_FILE.
 6271 
 6272         * include/unistd.h: Declare __chown_internal.
 6273 
 6274         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
 6275         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
 6276 
 6277 2002-06-09  Roland McGrath  <roland@frob.com>
 6278 
 6279         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
 6280         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
 6281         value of HURD_INTERFACE_VERSION >= 20020609.
 6282         * sysdeps/mach/hurd/configure: Regenerated.
 6283         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
 6284         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
 6285         convert a struct stat64 into a struct stat and return 0 or -1
 6286         with errno set to EOVERFLOW.
 6287         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
 6288         for struct statfs64 to struct statfs.
 6289         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
 6290         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
 6291         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
 6292         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
 6293         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
 6294         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
 6295         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
 6296         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
 6297         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
 6298         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
 6299         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
 6300         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
 6301         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
 6302         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
 6303         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
 6304         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
 6305         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
 6306         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
 6307         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
 6308         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
 6309         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
 6310         Use struct stat64 for io_stat argument.
 6311         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
 6312         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
 6313         to io_seek.
 6314         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
 6315         * hurd/fd-write.c (_hurd_fd_write): Likewise.
 6316         * hurd/hurd/fd.h: Update decls.
 6317         * sysdeps/mach/hurd/getcwd.c
 6318         (_hurd_canonicalize_directory_name_internal): Use ino64_t
 6319         and struct dirent64.
 6320         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
 6321         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
 6322         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
 6323         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
 6324 
 6325 2002-06-08  Roland McGrath  <roland@frob.com>
 6326 
 6327         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
 6328         instead of unsigned long int for __allocation and __size members.
 6329 
 6330 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
 6331 
 6332         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
 6333         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
 6334         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
 6335         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
 6336 
 6337 2002-06-07  Roland McGrath  <roland@frob.com>
 6338 
 6339         * sysdeps/mach/hurd/bits/environments.h: File removed.
 6340 
 6341 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
 6342 
 6343         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
 6344         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
 6345         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
 6346         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
 6347         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
 6348         (sendfile64): Likewise.
 6349         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
 6350         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
 6351         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
 6352         Likewise.
 6353         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
 6354 
 6355         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
 6356         already defined.
 6357 
 6358 2002-06-04  Bruno Haible  <bruno@clisp.org>
 6359 
 6360         * sysdeps/cris/stackinfo.h: New file.
 6361 
 6362         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
 6363         to an integer type before performing bit operations on it.
 6364 
 6365 2002-06-05  Roland McGrath  <roland@frob.com>
 6366 
 6367         * sysdeps/generic/sendfile.c: Include <errno.h>.
 6368         * sysdeps/generic/sendfile64.c: Likewise.
 6369 
 6370         * io/Makefile (routines): Add sendfile and sendfile64.
 6371         (headers): Add sys/sendfile.h to the list.
 6372         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
 6373         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
 6374         * io/sys/sendfile.h: ... here.
 6375         * sysdeps/generic/sendfile.c: New file.
 6376         * sysdeps/generic/sendfile64.c: New file.
 6377 
 6378         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
 6379         Move sendfile, sendfile64 to ...
 6380         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
 6381         * sysdeps/mach/hurd/sendfile.c: New file.
 6382         * sysdeps/mach/hurd/sendfile64.c: New file.
 6383 
 6384         * sysdeps/mach/nanosleep.c: New file.
 6385 
 6386 2002-06-04  Roland McGrath  <roland@frob.com>
 6387 
 6388         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
 6389         * sysdeps/alpha/elf/configure: New file (generated).
 6390 
 6391 2002-06-02  Roland McGrath  <roland@frob.com>
 6392 
 6393         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
 6394 
 6395 2002-06-01  Roland McGrath  <roland@frob.com>
 6396 
 6397         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
 6398         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
 6399 
 6400 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
 6401 
 6402         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
 6403         Add nsmap.
 6404         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
 6405         Remove nstimes setting.
 6406         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
 6407         * resolv/res_send.c (res_nsend): Don't close unconditionally if
 6408         there is mix of IPv6 and IPv4 nameservers.
 6409         Use nsmap array to find free slots and preserve nameserver ordering.
 6410         Fix RES_ROTATE.
 6411 
 6412 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
 6413 
 6414         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
 6415         use this header with LFS.
 6416 
 6417         * po/sk.po: Update from translation team.
 6418 
 6419 2002-05-28  Andreas Schwab  <schwab@suse.de>
 6420 
 6421         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
 6422         message when finding object of wrong class.
 6423 
 6424 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
 6425 
 6426         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
 6427         Patch by <radu@netsoft.ro>.
 6428 
 6429 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
 6430 
 6431         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
 6432         Add readahead.
 6433         * sysdeps/unix/sysv/linux/readahead.c: New file.
 6434         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
 6435         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
 6436         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
 6437         Add sendfile64 alias to sendfile syscall.
 6438         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
 6439         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
 6440         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
 6441         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
 6442         syscall.
 6443 
 6444         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
 6445         special section for PIC register loading.
 6446         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
 6447 
 6448         * config.h.in: Define HAVE_HIDDEN.
 6449         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
 6450 
 6451         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
 6452 
 6453 2002-05-28  Roland McGrath  <roland@frob.com>
 6454 
 6455         * sysdeps/mach/alpha/setfpucw.c: New file.
 6456 
 6457 2002-05-26  Roland McGrath  <roland@frob.com>
 6458 
 6459         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
 6460         Use integer_t instead of int for IOC_VOID case.
 6461 
 6462 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
 6463 
 6464         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
 6465 
 6466 2002-05-26  Bruno Haible  <bruno@clisp.org>
 6467 
 6468         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
 6469         end of the ISO-8859-7 from idx table.
 6470 
 6471 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
 6472 
 6473         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
 6474 
 6475 2002-05-24  David S. Miller  <davem@redhat.com>
 6476 
 6477         * string/bits/string2.h (memset): Do not try to optimize when
 6478         not _STRING_ARCH_unaligned if GCC will do the right thing.
 6479 
 6480 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
 6481 
 6482         * posix/regex.c: Define `inline' as a macro into nothing for the
 6483         compilers which lack the keyword.
 6484         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
 6485         for the compatibility of gawk.
 6486         * posix/regcomp.c: Add fake implementation of isblank() for the
 6487         environments which lack the function.
 6488         Don't use free_charset() in case of non-i18n envs.
 6489         (build_range_exp): Don't use i18n related code in case of non-i18n
 6490         envs.
 6491         (build_collating_symbol): Likewise.
 6492         (build_equiv_class): Likewise.
 6493         (build_charclass): Likewise.
 6494         (re_compile_fastmap_iter): Likewise.
 6495         (parse_bracket_exp): Likewise.
 6496         (build_word_op): Likewise.
 6497         (regfree): Don't use free_charset() in case of non-i18n envs.
 6498         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
 6499         re_token_type_t in case of non-i18n envs.
 6500         Don't define re_charset_t in case of non-i18n envs.
 6501         Change the type of wcs of re_string_t from wchar_t to wint_t,
 6502         since we store also WEOF.
 6503         * posix/regex_internal.c: (re_string_realloc_buffers): Change
 6504         the type of wcs of re_string_t from wchar_t to wint_t.
 6505         (re_string_reconstruct): Likewise.
 6506         (create_ci_newstate): Don't use i18n related code in case of
 6507         non-i18n envs.
 6508         (create_cd_newstate): Likewise.
 6509 
 6510 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
 6511 
 6512         * iconv/loop.c: Fix typo.
 6513 
 6514 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
 6515 
 6516         * inet/ether_line.c (ether_line): Fix a typo causing only
 6517         lower 4 bits of each ethernet address byte being assigned.
 6518         Don't modify what line points to.
 6519         * inet/tst-ether_aton.c (main): Add ether_line tests.
 6520 
 6521 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
 6522 
 6523         * manual/filesys.texi: Don't make readlink example leak memory
 6524         when readlink fails.
 6525 
 6526 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
 6527 
 6528         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
 6529         some more security checks.
 6530 
 6531 2002-05-17  David S. Miller  <davem@redhat.com>
 6532 
 6533         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
 6534 
 6535 2002-05-16  David S. Miller  <davem@redhat.com>
 6536 
 6537         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
 6538         (elf_machine_dynamic): Use it to force PIC register to be loaded.
 6539         (elf_machine_load_address): Likewise.
 6540         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
 6541 
 6542         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
 6543         is unaligned, do not forget to fully initialize %g1 magic value.
 6544 
 6545         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
 6546         register definitions and provide 32-bit variants of structures
 6547         during 64-bit builds.
 6548 
 6549         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
 6550         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
 6551         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
 6552         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
 6553         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
 6554         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
 6555         Do not clear implicit one bit here, it must be done post-rounding.
 6556         Only pad to the left using left shift if value uses less than the
 6557         available fractional bits.
 6558 
 6559 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
 6560 
 6561         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
 6562         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
 6563         (shared-only-routines): Likewise.
 6564         * sysdeps/powerpc/libgcc-compat.c: New file.
 6565         * sysdeps/wordsize-32/cmpdi2.c: Removed.
 6566         * sysdeps/wordsize-32/fixdfdi.c: Removed.
 6567         * sysdeps/wordsize-32/fixsfdi.c: Removed.
 6568         * sysdeps/wordsize-32/shdi3.c: Removed.
 6569 
 6570 2002-05-16  Bruno Haible  <bruno@clisp.org>
 6571 
 6572         * MakeTAGS (libc.pot): Don't sort the output.
 6573         * po/header.pot: Update to match xgettext 0.11 output.
 6574 
 6575 2002-05-16  Bruno Haible  <bruno@clisp.org>
 6576 
 6577         * MakeTAGS (subdirs): Remove duplicates.
 6578 
 6579 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
 6580 
 6581         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
 6582         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
 6583         alias.
 6584 
 6585 2002-05-19  Andreas Jaeger  <aj@suse.de>
 6586 
 6587         * sysdeps/unix/sysv/linux/configure.in: Warn against an
 6588         installation in /usr/local.
 6589 
 6590 2002-05-16  Bruno Haible  <bruno@clisp.org>
 6591 
 6592         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
 6593         string as argument of #error.
 6594 
 6595 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
 6596 
 6597         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
 6598         don't define static.  Remove old __realpath function.  TC1 of
 6599         POSIX 2001 will allow the second parameter to be NULL.
 6600         * stdlib/test-canon.c: Comment out test for NULL as second
 6601         parameter of realpath.
 6602 
 6603         * time/offtime.c (__offtime): Set errno if overflow is detected.
 6604 
 6605         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
 6606         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
 6607         dl-brk and dl-sbrk.
 6608 
 6609         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
 6610         (fdimf): Likewise.
 6611 
 6612 2002-05-15  Roland McGrath  <roland@frob.com>
 6613 
 6614         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
 6615 
 6616 2002-05-12  Bruno Haible  <bruno@clisp.org>
 6617 
 6618         * iconvdata/testdata/EUC-JISX0213: New file.
 6619         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
 6620         * iconvdata/testdata/SHIFT_JISX0213: New file.
 6621         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
 6622         * iconvdata/testdata/ISO-2022-JP-3: New file.
 6623         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
 6624         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
 6625         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
 6626         contains comments indicating precomposed characters.
 6627 
 6628 2002-04-21  Bruno Haible  <bruno@clisp.org>
 6629 
 6630         * iconvdata/iso-2022-jp-3.c: New file.
 6631         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
 6632         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
 6633         (LDFLAGS-ISO-2022-JP-3.so): New variable.
 6634         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
 6635         (distribute): Add iso-2022-jp-3.c.
 6636 
 6637 2002-05-12  Bruno Haible  <bruno@clisp.org>
 6638 
 6639         * iconvdata/tst-table-to.c (main): Restore handling of
 6640         transliterations, broken by last patch.
 6641 
 6642 2002-05-12  Bruno Haible  <bruno@clisp.org>
 6643 
 6644         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
 6645 
 6646 2002-05-12  Bruno Haible  <bruno@clisp.org>
 6647 
 6648         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
 6649         when there is not enough room in the output buffer.
 6650         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
 6651 
 6652 2002-04-20  Bruno Haible  <bruno@clisp.org>
 6653 
 6654         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
 6655         macros.
 6656         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
 6657         Also make this macro work if FROM_DIRECTION evaluates to 0.
 6658         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
 6659         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
 6660         of consume_incomplete.
 6661         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
 6662         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
 6663         4, not 8.
 6664         * iconvdata/cp1258.c: Likewise.
 6665         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
 6666         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
 6667         not 2.
 6668         * iconvdata/ibm933.c: Likewise.
 6669         * iconvdata/ibm935.c: Likewise.
 6670         * iconvdata/ibm937.c: Likewise.
 6671         * iconvdata/ibm939.c: Likewise.
 6672         * iconvdata/iso-2022-cn.c: Define
 6673         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
 6674         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
 6675         * iconvdata/iso-2022-cn-ext.c: Likewise.
 6676         * iconvdata/iso-2022-jp.c: Define
 6677         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
 6678         {MIN,MAX}_NEEDED_{FROM,TO}.
 6679         * iconvdata/tcvn5712-1.c: Define
 6680         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
 6681         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
 6682         * iconvdata/euc-jisx0213.c: Define
 6683         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
 6684         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
 6685         * iconvdata/shift_jisx0213.c: Likewise.
 6686 
 6687 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
 6688 
 6689         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
 6690         shdi3, fixdfdi, fixsfdi in csu dir.
 6691         (shared-only-routines): Likewise.
 6692         * sysdeps/wordsize-32/cmpdi2.c: New file.
 6693         * sysdeps/wordsize-32/shdi3.c: New file.
 6694         * sysdeps/wordsize-32/fixdfdi.c: New file.
 6695         * sysdeps/wordsize-32/fixsfdi.c: New file.
 6696         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
 6697         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
 6698         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
 6699 
 6700         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
 6701         Only use va_arg if the argument will be used [PR libc/3259].
 6702 
 6703 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
 6704 
 6705         * catgets/catgets.c (catopen): Free buffer if internal catalog
 6706         open fails.
 6707 
 6708 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
 6709 
 6710         * debug/xtrace.sh: Make more robust.  For realtime tracking use
 6711         non-buffering methods.
 6712         * debug/pcprofiledump.c: Implement -u option.
 6713         Patch by Roger Luethi <rl@hellgate.ch>.
 6714 
 6715 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
 6716 
 6717         * include/netinet/in.h (bindresvport_internal): Add prototype.
 6718         * include/rpc/auth.h  (authunix_create_internal,
 6719         authunix_create_default_internal, authnone_create_internal,
 6720         authdes_pk_create_internal): Add prototypes.
 6721         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
 6722         clntudp_create_internal, clntudp_bufcreate_internal,
 6723         clntunix_create_internal): Add prototypes.
 6724         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
 6725         svc_getreq_internal, svc_getreq_common_internal,
 6726         svc_getreqset_internal, svc_getreq_poll_internal,
 6727         svc_register_internal, svc_unregister_internal,
 6728         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
 6729         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
 6730         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
 6731         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
 6732         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
 6733         * inet/rcmd.c (rcmd_af): Use __listen.
 6734         (rresvport_af): Use __bind.
 6735         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
 6736         authunix_create, authunix_create_default, authnone_create,
 6737         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
 6738         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
 6739         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
 6740         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
 6741         _authenticate, add INTDEF after such function definitions.
 6742         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
 6743         __setsockopt, __getsockname instead of non-__ variants.
 6744         * sunrpc/pmap_rmt.c: Likewise.
 6745         * sunrpc/rtime.c: Likewise.
 6746         * sunrpc/svc_udp.c: Likewise.
 6747         * sunrpc/clnt_unix.c: Likewise.
 6748         * sunrpc/svc_unix.c: Likewise.
 6749         * sunrpc/bindrsvprt.c: Likewise.
 6750         * sunrpc/svc_tcp.c: Likewise.
 6751         * sunrpc/auth_none.c: Likewise.
 6752         * sunrpc/clnt_raw.c: Likewise.
 6753         * sunrpc/clnt_tcp.c: Likewise.
 6754         * sunrpc/auth_unix.c: Likewise.
 6755         * sunrpc/key_call.c: Likewise.
 6756         * sunrpc/clnt_gen.c: Likewise.
 6757         * sunrpc/pm_getmaps.c: Likewise.
 6758         * sunrpc/clnt_simp.c: Likewise.
 6759         * sunrpc/pmap_clnt.c: Likewise.
 6760         * sunrpc/svc_run.c: Likewise.
 6761         * sunrpc/svc.c: Likewise.
 6762         * sunrpc/svc_simple.c: Likewise.
 6763         * sunrpc/pm_getport.c: Likewise.
 6764         * sunrpc/auth_des.c: Likewise.
 6765         * sunrpc/svc_auth.c: Likewise.
 6766         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
 6767         __register_frame_info_table_bases, __deregister_frame_info_bases):
 6768         Add INTDEF.
 6769         (__register_frame_info_bases_internal,
 6770         __register_frame_info_table_bases_internal,
 6771         __deregister_frame_info_bases_internal): Add prototypes.
 6772         (__register_frame_info, __register_frame): Use INTUSE in call to
 6773         __register_frame_info_bases.
 6774         (__register_frame_info_table): Similarly.
 6775         (__deregister_frame_info, __deregister_frame): Similarly.
 6776         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
 6777         sendto as weak alias.
 6778         * sysdeps/mach/hurd/sendto.c: Likewise.
 6779         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
 6780         recvfrom as weak alias.
 6781         * sysdeps/mach/hurd/recvfrom.c: Likewise.
 6782         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
 6783         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
 6784         recvmsg as weak alias.
 6785         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
 6786         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
 6787         sendmsg as weak alias.
 6788         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
 6789         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
 6790         setsockopt, add setsockopt as weak alias.
 6791         * sysdeps/mach/hurd/setsockopt.c: Likewise.
 6792         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
 6793         weak alias.
 6794         * sysdeps/mach/hurd/bind.c: Likewise.
 6795         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
 6796         as weak alias.
 6797         * sysdeps/mach/hurd/listen.c: Likewise.
 6798         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
 6799         getsockname, add getsockname as weak alias.
 6800         * sysdeps/mach/hurd/getsockname.c: Likewise.
 6801         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
 6802         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
 6803         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
 6804         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
 6805         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
 6806         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
 6807         Add aliases.
 6808         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
 6809         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
 6810         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
 6811         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
 6812         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
 6813         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
 6814         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
 6815         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
 6816         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
 6817         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
 6818         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
 6819         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
 6820 
 6821 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
 6822 
 6823         * locale/programs/localedef.h (show_archive_content): Add verbose
 6824         argument.
 6825         * locale/programs/localedef.c (main): Adjust caller.
 6826         * locale/programs/locarchive.c (struct nameent, struct dataent): New
 6827         types.
 6828         (nameentcmp, dataentcmp): New functions.
 6829         (xstrcmp): Remove.
 6830         (show_archive_content): Print verbose listing with --list-archive -v.
 6831 
 6832 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
 6833 
 6834         * locale/programs/locarchive.c (open_archive): Take extra argument
 6835         readonly.  If true open file with O_RDONLY and don't create the
 6836         archive if it doesn't exist.
 6837         Adapt all callers.
 6838         (close_archive): Don't do anything if fd element is -1.
 6839         * locale/programs/localedef.h (open_archive): Adjust prototype.
 6840         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
 6841         call.
 6842 
 6843         * malloc/malloc.c (__posix_memalign): Correct check for size of
 6844         alignment value [PR libc/3444].
 6845 
 6846         * include/stdio.h: Remove references to old stdio implementation.
 6847 
 6848         * libio/Makefile (bug-ungetwc2-ENV): Define.
 6849 
 6850 2002-05-13  Roland McGrath  <roland@frob.com>
 6851 
 6852         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
 6853 
 6854         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
 6855 
 6856 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
 6857 
 6858         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
 6859         Allocate three, not two, more than LEN when appending '/.'.
 6860         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
 6861         if NAME ends with '/.' if it is shorter than 2 chars.
 6862 
 6863 2002-05-12  Roland McGrath  <roland@frob.com>
 6864 
 6865         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
 6866         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
 6867 
 6868         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
 6869         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
 6870 
 6871 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
 6872 
 6873         * sysdeps/ia64/Makefile: Remove extra endif.
 6874         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
 6875 
 6876 2002-05-10  Andreas Schwab  <schwab@suse.de>
 6877 
 6878         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
 6879 
 6880 2002-05-09  Andreas Jaeger  <aj@suse.de>
 6881 
 6882         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New file.
 6883         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
 6884         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
 6885 
 6886         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
 6887         * sysdeps/wordsize-64/glob.c: ...here.
 6888         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
 6889         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
 6890         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
 6891 
 6892 2002-05-08  Roland McGrath  <roland@frob.com>
 6893 
 6894         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
 6895         O_NOTRANS flag in "." lookup.
 6896 
 6897 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
 6898 
 6899         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
 6900 
 6901 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
 6902 
 6903         * locale/duplocale.c (__duplocale): Update special members only
 6904         when allocation succeeded.
 6905 
 6906 2002-05-03  Roland McGrath  <roland@frob.com>
 6907 
 6908         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
 6909         we can only build libc.so.0.3(GLIBC_2.2.6) now.
 6910 
 6911 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
 6912 
 6913         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
 6914         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
 6915         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
 6916         * sysdeps/ia64/ia64libgcc.S: New file.
 6917 
 6918 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
 6919 
 6920         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
 6921 
 6922         * malloc/memusage.c: Distinguish anonymous mmap.
 6923 
 6924 2002-05-01  Roland McGrath  <roland@frob.com>
 6925 
 6926         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
 6927         and use INTDEF on it.
 6928         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
 6929 
 6930         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
 6931 
 6932         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
 6933 
 6934 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
 6935 
 6936         * malloc/memusage.c: Add support for tracking mmap & friends.
 6937         * malloc/memusage.sh: Implement -m/--mmap option.
 6938 
 6939 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
 6940 
 6941         * locale/programs/locarchive.c (create_archive): Add archivefname
 6942         argument, create fname from it.
 6943         (enlarge_archive): Honour output_prefix.
 6944         (open_archive): Likewise.
 6945 
 6946 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
 6947 
 6948         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
 6949         too many stpcpy macros.
 6950 
 6951 2002-04-26  Bruno Haible  <bruno@clisp.org>
 6952 
 6953         * locale/programs/ld-collate.c (collate_read): Cast first argument
 6954         for "%.*s" to int.
 6955 
 6956 2002-04-26  Bruno Haible  <bruno@clisp.org>
 6957 
 6958         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
 6959         __dcngettext_internal): New declarations.
 6960         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
 6961         attribute declarations.
 6962 
 6963 2002-04-30  Roland McGrath  <roland@frob.com>
 6964 
 6965         Removed old GNU stdio implementation; GNU libio is now the only option.
 6966         * configure.in: Removed --enable-libio option and @stdio@ subst var.
 6967         Define USE_IN_LIBIO unconditionally.
 6968         * configure: Regenerated.
 6969         * Makeconfig (stdio): Set to libio by default.
 6970         * config.make.in (stdio): Variable removed.
 6971         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
 6972         * sysdeps/unix/sysv/linux/configure: Regenerated.
 6973         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
 6974         * sysdeps/mach/hurd/configure: Regenerated.
 6975         * stdio/.cvsignore: File removed.
 6976         * stdio/Makefile: File removed.
 6977         * stdio/Versions: File removed.
 6978         * stdio/__fbufsize.c: File removed.
 6979         * stdio/__flbf.c: File removed.
 6980         * stdio/__fpending.c: File removed.
 6981         * stdio/__fpurge.c: File removed.
 6982         * stdio/__freadable.c: File removed.
 6983         * stdio/__freading.c: File removed.
 6984         * stdio/__fsetlocking.c: File removed.
 6985         * stdio/__fwritable.c: File removed.
 6986         * stdio/__fwriting.c: File removed.
 6987         * stdio/clearerr.c: File removed.
 6988         * stdio/fclose.c: File removed.
 6989         * stdio/fcloseall.c: File removed.
 6990         * stdio/feof.c: File removed.
 6991         * stdio/ferror.c: File removed.
 6992         * stdio/fflush.c: File removed.
 6993         * stdio/fgetc.c: File removed.
 6994         * stdio/fgetpos.c: File removed.
 6995         * stdio/fgets.c: File removed.
 6996         * stdio/fileno.c: File removed.
 6997         * stdio/fmemopen.c: File removed.
 6998         * stdio/fopen.c: File removed.
 6999         * stdio/fopncook.c: File removed.
 7000         * stdio/fputc.c: File removed.
 7001         * stdio/fputs.c: File removed.
 7002         * stdio/fread.c: File removed.
 7003         * stdio/freopen.c: File removed.
 7004         * stdio/fseek.c: File removed.
 7005         * stdio/fsetpos.c: File removed.
 7006         * stdio/ftell.c: File removed.
 7007         * stdio/fwrite.c: File removed.
 7008         * stdio/getc.c: File removed.
 7009         * stdio/getchar.c: File removed.
 7010         * stdio/getdelim.c: File removed.
 7011         * stdio/gets.c: File removed.
 7012         * stdio/glue.c: File removed.
 7013         * stdio/internals.c: File removed.
 7014         * stdio/linewrap.c: File removed.
 7015         * stdio/linewrap.h: File removed.
 7016         * stdio/memstream.c: File removed.
 7017         * stdio/newstream.c: File removed.
 7018         * stdio/obstream.c: File removed.
 7019         * stdio/putc.c: File removed.
 7020         * stdio/putchar.c: File removed.
 7021         * stdio/puts.c: File removed.
 7022         * stdio/rewind.c: File removed.
 7023         * stdio/setbuf.c: File removed.
 7024         * stdio/setbuffer.c: File removed.
 7025         * stdio/setlinebuf.c: File removed.
 7026         * stdio/setvbuf.c: File removed.
 7027         * stdio/stdio.h: File removed.
 7028         * stdio/ungetc.c: File removed.
 7029         * stdio/vasprintf.c: File removed.
 7030         * stdio/vscanf.c: File removed.
 7031         * stdio/vsnprintf.c: File removed.
 7032         * stdio/vsprintf.c: File removed.
 7033         * stdio/vsscanf.c: File removed.
 7034         * sysdeps/generic/defs.c: File removed.
 7035         * sysdeps/generic/fdopen.c: File removed.
 7036         * sysdeps/generic/pipestream.c: File removed.
 7037         * sysdeps/generic/stdio_init.c: File removed.
 7038         * sysdeps/generic/sysd-stdio.c: File removed.
 7039         * sysdeps/generic/vdprintf.c: File removed.
 7040         * sysdeps/mach/hurd/defs.c: File removed.
 7041         * sysdeps/mach/hurd/fdopen.c: File removed.
 7042         * sysdeps/mach/hurd/pipestream.c: File removed.
 7043         * sysdeps/mach/hurd/stdio_init.c: File removed.
 7044         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
 7045         * sysdeps/mach/hurd/vdprintf.c: File removed.
 7046         * sysdeps/posix/defs.c: File removed.
 7047         * sysdeps/posix/fdopen.c: File removed.
 7048         * sysdeps/posix/pipestream.c: File removed.
 7049         * sysdeps/posix/stdio_init.c: File removed.
 7050         * sysdeps/posix/vdprintf.c: File removed.
 7051         * sysdeps/unix/pipestream.c: File removed.
 7052         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
 7053         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
 7054         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
 7055 
 7056 2002-04-29  Roland McGrath  <roland@frob.com>
 7057 
 7058         * include/libc-symbols.h (link_warning): Use `unused' attribute.
 7059 
 7060 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
 7061 
 7062         * sysdeps/generic/tls.h: Describe what must be defined.
 7063 
 7064         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
 7065         glob_in_dir [PR libc/3385].
 7066         * posix/globtest.sh: Add test case.
 7067 
 7068         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
 7069         //TRANSLIT twice.
 7070 
 7071 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
 7072 
 7073         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
 7074         _internal symbol handling.
 7075         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
 7076 
 7077 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
 7078 
 7079         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
 7080         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
 7081 
 7082 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
 7083 
 7084         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
 7085         not _LIBC and RE_ENABLE_I18N.
 7086         (build_range_exp): Implement for not _LIBC.
 7087         (build_collating_symbol): Likewise.
 7088         (parse_bracket_exp): Unify redundant error handlings.
 7089         Don't erase mbcset for non matching list in multibyte envs.
 7090         (build_word_op): Add '_' to matching list for \w operator.
 7091         * posix/regex_internal.c (re_string_construct): Invoke
 7092         build_upper_buffer in case of not RE_ENABLE_I18N.
 7093         (re_string_reconstruct): Don't touch cur_state in case of not
 7094         RE_ENABLE_I18N.
 7095         * posix/regex_internal.h (attribute_hidden): New macro in case of
 7096         not _LIBC.
 7097         (re_charset_t): Define range_starts/ends in case of not _LIBC.
 7098         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
 7099         RE_ENABLE_I18N.
 7100         (transit_state_mb): Likewise.
 7101         (check_node_accept_bytes): Implement the code evaluating range
 7102         expression in case of not _LIBC.
 7103         (find_collation_sequence_value): Hide in case of not _LIBC.
 7104 
 7105 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
 7106 
 7107         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
 7108         i386/semctl.c.
 7109         (__old_semctl, __new_semctl): Only use va_arg if the argument will
 7110         be used.
 7111 
 7112 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
 7113 
 7114         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
 7115 
 7116         * sysdeps/ia64/strncpy.S: Fix recovery code.
 7117         Patch by David Mosberger <davidm@hpl.hp.com>.
 7118 
 7119 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
 7120 
 7121         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
 7122         GLIBC_2.2.6.
 7123 
 7124 2002-04-14  Bruno Haible  <bruno@clisp.org>
 7125 
 7126         * posix/regex.c (re_max_failures): Add back symbol for binary
 7127         compatibility.
 7128 
 7129 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
 7130 
 7131         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
 7132         of buffer building functions.
 7133         * posix/regex_internal.c (re_string_allocate): New function.
 7134         (re_string_realloc_buffers): New function.
 7135         (re_string_skip_chars): New function.
 7136         (re_string_reconstruct): New function.
 7137         (re_string_construct): Adapt it to new interface of buffer building
 7138         functions.
 7139         (re_string_construct_common): Likewise.
 7140         (build_wcs_buffer): Likewise.
 7141         (build_wcs_upper_buffer): Likewise.
 7142         (build_upper_buffer): Likewise.
 7143         (re_string_translate_buffer): Likewise.
 7144         (re_string_context_at): Adapt it to variable length buffers.
 7145         * posix/regex_internal.h (re_string_t): Add new fields to handle
 7146         variable length buffers.
 7147         (re_match_context_t): Likewise.
 7148         * posix/regexec.c (re_search_internal): Adapt it to new interface
 7149         of re_string_t and re_match_context_t.
 7150         (acquire_init_state_context): Likewise.
 7151         (check_matching): Likewise.
 7152         (check_halt_state_context): Likewise.
 7153         (proceed_next_node): Likewise.
 7154         (set_regs): Likewise.
 7155         (sift_states_backward): Likewise.
 7156         (clean_state_log_if_need): Likewise.
 7157         (sift_states_iter_mb): Likewise.
 7158         (sift_states_iter_bkref): Likewise.
 7159         (add_epsilon_backreference): Likewise.
 7160         (transit_state): Likewise.
 7161         (transit_state_sb): Likewise.
 7162         (transit_state_mb): Likewise.
 7163         (transit_state_bkref): Likewise.
 7164         (transit_state_bkref_loop): Likewise.
 7165         (check_node_accept): Likewise.
 7166         (match_ctx_init): Likewise.
 7167         (extend_buffers): New function.
 7168 
 7169 2002-04-21  Bruno Haible  <bruno@clisp.org>
 7170 
 7171         * iconvdata/tst-table.sh: For the second check, use the truncated
 7172         GB18030 charmap table, like for the first check.
 7173 
 7174 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
 7175 
 7176         * elf/dl-load.c (open_verify): Correct __lseek parameters.
 7177         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
 7178 
 7179 2002-04-23  H.J. Lu  <hjl@gnu.org>
 7180 
 7181         * include/math.h (isfinite): Fix a typo.
 7182 
 7183 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
 7184 
 7185         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
 7186         which is created by the test suite.
 7187 
 7188 2002-04-20  Bruno Haible  <bruno@clisp.org>
 7189 
 7190         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
 7191         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
 7192 
 7193 2002-04-20  Bruno Haible  <bruno@clisp.org>
 7194 
 7195         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
 7196         to avoid gcc warning.
 7197 
 7198 2002-04-20  Bruno Haible  <bruno@clisp.org>
 7199 
 7200         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
 7201         of data->__statep->__count.
 7202 
 7203 2002-04-20  Bruno Haible  <bruno@clisp.org>
 7204 
 7205         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
 7206         tag characters.
 7207         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
 7208 
 7209 2002-04-24  Roland McGrath  <roland@frob.com>
 7210 
 7211         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
 7212         use END macro instead of our own .end directive.
 7213         Use `callsys' insn mnemonic instead of `call_pal'.
 7214 
 7215         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
 7216 
 7217         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
 7218         macro; we need this for Hurd.
 7219 
 7220         Log entry was missing for 2002/03/24 commit of rev 1.8,
 7221         goes with 2002-03-17 changes.
 7222         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
 7223         (sysdep_routines): Append ioperm here.
 7224         (sysdep_headers): Append sys/io.h here.
 7225 
 7226 2002-04-23  Roland McGrath  <roland@frob.com>
 7227 
 7228         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
 7229         * sysdeps/mach/hurd/sendto.c: Likewise.
 7230         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
 7231         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
 7232         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
 7233 
 7234 2002-04-22  Roland McGrath  <roland@frob.com>
 7235 
 7236         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
 7237         failure from i386_io_perm_* RPCs to ENOSYS.
 7238 
 7239 2002-04-22  Andreas Jaeger  <aj@suse.de>
 7240 
 7241         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
 7242 
 7243         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
 7244 
 7245         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
 7246         register instead of destroying %rbx.
 7247 
 7248 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
 7249 
 7250         * string/string.h: Declare strerror_r also for XPG6.
 7251 
 7252 2002-04-19  Roland McGrath  <roland@frob.com>
 7253 
 7254         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
 7255 
 7256 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
 7257 
 7258         * Makefile: Add handling of xtests and xcheck targets.
 7259         * MakeTAGS: Likewise.
 7260         * Makeconfig: Likewise.
 7261         * Makerules: Likewise.
 7262         * Rules: Likewise.
 7263         * manual/Makefile: Likewise.
 7264         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
 7265         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
 7266 
 7267 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
 7268 
 7269         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
 7270         authnone_private_s.
 7271         * sunrpc/auth_none.c: Include bits/libc-lock.h.
 7272         Delete #ifdef _RPC_THREAD_SAFE_ block.
 7273         (authnone_private): Make a struct, not a pointer to struct.
 7274         (authnone_private_guard): New once-control variable.
 7275         (authnone_create_once): New function, split out of
 7276         authnone_create.  No need to allocate memory.
 7277         (authnone_create): Just call authnone_create_once via
 7278         __libc_once, then return &authnone_private->no_client.
 7279         (authnone_marshal): Access private data via CLIENT argument,
 7280         not authnone_private pointer.
 7281         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
 7282         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
 7283         authnone_private_s.
 7284 
 7285 2002-04-12  H.J. Lu  <hjl@gnu.org>
 7286 
 7287         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
 7288 
 7289 2002-04-18  Bruno Haible  <bruno@clisp.org>
 7290 
 7291         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
 7292         FROM_DIRECTION): Make the FROM direction stateless.
 7293         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
 7294         FROM_DIRECTION): Likewise.
 7295 
 7296 2002-04-15  Bruno Haible  <bruno@clisp.org>
 7297 
 7298         * iconvdata/JISX0213.TXT: New file.
 7299         * iconvdata/jisx0213.h: New file.
 7300         * iconvdata/jisx0213.c: New file.
 7301         * iconvdata/euc-jisx0213.c: New file.
 7302         * iconvdata/shift_jisx0213.c: New file.
 7303         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
 7304         * iconvdata/EUC-JISX0213.precomposed: New file.
 7305         * iconvdata/SHIFT_JISX0213.precomposed: New file.
 7306         * iconvdata/SHIFT_JISX0213.irreversible: New file.
 7307         * iconvdata/tst-table-to.c (main): Make it work for encodings for
 7308         which the "to" direction is stateful.
 7309         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
 7310         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
 7311         SHIFT_JISX0213.
 7312         (libJISX0213-routines): New variable.
 7313         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
 7314         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
 7315         (LDFLAGS-libJISX0213.so): New variable.
 7316         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
 7317         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
 7318         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
 7319 
 7320 2002-04-15  Bruno Haible  <bruno@clisp.org>
 7321 
 7322         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
 7323         uint32_t.  Update to Unicode 3.2.
 7324         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
 7325         (BODY for TO_LOOP): Handle the ASCII range specially.
 7326         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
 7327         * iconvdata/testdata/BIG5HKSCS: Remove a character.
 7328         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
 7329 
 7330 2002-04-15  Bruno Haible  <bruno@clisp.org>
 7331 
 7332         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
 7333         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
 7334 
 7335 2002-04-15  Bruno Haible  <bruno@clisp.org>
 7336 
 7337         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
 7338         (ucs4_to_cns11643): Update.
 7339         * iconvdata/cns11643.c: Update to Unicode 3.2.
 7340         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
 7341         __cns11643_from_ucs4p2_tab): Regenerated.
 7342         (__cns11643_from_ucs4p2c_tab): New array.
 7343         * iconvdata/cvs11643l1.c: Update comments.
 7344         * iconvdata/EUC-TW.irreversible: Remove two entries.
 7345 
 7346 2002-04-15  Bruno Haible  <bruno@clisp.org>
 7347 
 7348         * locale/C-translit.h.in: Update to Unicode 3.2.
 7349         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
 7350         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
 7351 
 7352 2002-04-15  Bruno Haible  <bruno@clisp.org>
 7353 
 7354         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
 7355         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
 7356 
 7357 2002-04-15  Bruno Haible  <bruno@clisp.org>
 7358 
 7359         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
 7360         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
 7361         always one byte, not 0 bytes in some cases and 2 bytes in others.
 7362 
 7363         * iconvdata/tst-table-from.c (main): Correct the usage message.
 7364 
 7365 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
 7366 
 7367         * posix/regcomp.c (parse_expression): Fix incorrect error code.
 7368         (parse_dup_op): Fix error handling like "a{}".
 7369         (parse_bracket_exp): Add error handling.
 7370         (fetch_number): Add error handling for "a{<very_large_number>}".
 7371 
 7372 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
 7373 
 7374         * posix/regcomp.c (parse_bracket_symbol): Add error handling
 7375         in case that the symbol name is too long.
 7376         (build_charclass): Handle [:lower:]/[:uppper:] correctly
 7377         in case of REG_ICASE.
 7378 
 7379 2002-04-19  Andreas Jaeger  <aj@suse.de>
 7380 
 7381         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
 7382         <hartvige@mips.com>.
 7383 
 7384 2002-04-15  H.J. Lu  <hjl@gnu.org>
 7385 
 7386         * include/math.h (__finitel_internal): Declare only if
 7387         __NO_LONG_DOUBLE_MATH is not defined.
 7388         (__isinfl_internal): Likewise.
 7389         (__isnanl_internal): Likewise.
 7390 
 7391         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
 7392         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
 7393         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
 7394         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
 7395         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
 7396         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
 7397         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
 7398 
 7399         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
 7400         __fcntl_internal.
 7401 
 7402         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
 7403         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
 7404 
 7405 2002-04-15  Bruno Haible  <bruno@clisp.org>
 7406 
 7407         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
 7408         (BODY for TO_LOOP): Likewise.
 7409         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
 7410         * iconvdata/tst-table.sh: Add support for encodings which contain
 7411         precomposed Unicode characters, known to the iconv converter in both
 7412         directions but not listed in the charmap.
 7413         * iconvdata/IBM856.irreversible: New file.
 7414         * iconvdata/IBM922.irreversible: New file.
 7415         * iconvdata/IBM1132.irreversible: New file.
 7416         * iconvdata/IBM1133.irreversible: New file.
 7417         * iconvdata/IBM1160.irreversible: New file.
 7418         * iconvdata/IBM1161.irreversible: New file.
 7419         * iconvdata/IBM1163.irreversible: New file.
 7420         * iconvdata/IBM1164.irreversible: New file.
 7421         * iconvdata/ARMSCII-8.irreversible: New file.
 7422         * iconvdata/TCVN5712-1.precomposed: New file.
 7423         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
 7424         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
 7425         ARMSCII-8, TCVN5712-1.
 7426         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
 7427         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
 7428         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
 7429         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
 7430 
 7431 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
 7432 
 7433         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
 7434         for EVENING69.  Include offsets in TZ environment variable.
 7435 
 7436 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
 7437 
 7438         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
 7439         avoid compiler warnings.
 7440 
 7441         * locale/programs/localedef.c (main): Always call
 7442         construct_output_path.
 7443 
 7444         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
 7445 
 7446         * locale/programs/locfile.c (to_archive): New variable.  To collect
 7447         data which has to be added to the locale archive.
 7448         (write_all_categories): Take new third parameter with locale name.
 7449         Unless no_archive flag set add new locale data to the archive
 7450         (write_locale_data): Unless no-archive flag set store generated data
 7451         in to_archive data structure instead of generation output file.
 7452         Add new parameter with locale category index.
 7453         * locale/programs/locfile.h: Add new parameters in declaractions of
 7454         write_all_categories and write_locale_data.
 7455         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
 7456         --add-to-archive, and --delete-from-archive options.  Pass extra
 7457         parameter to write_all_categories.
 7458         * locale/programs/localedef.h: Add prototypes for functions in
 7459         locarchive.c.
 7460         * locale/locarchive.h: New file.
 7461         * locale/programs/locarchive.c: New file.
 7462         * locale/Makefile (distribute): Add programs/locarchive.c and
 7463         locarchive.h.
 7464         (localedef-modules): Add md5 and locarchive.
 7465         Add vpath to crypt subdir for md5.c.
 7466 
 7467         * locale/programs/ld-address.c: Pass locale category ID as new second
 7468         parameter to write_locale_data.
 7469         * locale/programs/ld-collate.c: Likewise.
 7470         * locale/programs/ld-ctype.c: Likewise.
 7471         * locale/programs/ld-identification.c: Likewise.
 7472         * locale/programs/ld-measurement.c: Likewise.
 7473         * locale/programs/ld-messages.c: Likewise.
 7474         * locale/programs/ld-monetary.c: Likewise.
 7475         * locale/programs/ld-name.c: Likewise.
 7476         * locale/programs/ld-numeric.c: Likewise.
 7477         * locale/programs/ld-paper.c: Likewise.
 7478         * locale/programs/ld-telephone.c: Likewise.
 7479         * locale/programs/ld-time.c: Likewise.
 7480 
 7481         * locale/simple-hash.c: Move compute_hashval function from here...
 7482         * locale/hashval.h: ...to here.  New file.
 7483         * locale/simple-hash.h: Add prototype for compute_hashval.
 7484 
 7485         * include/libintl.h: Minor cleanups.
 7486 
 7487 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
 7488 
 7489         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
 7490 
 7491 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
 7492 
 7493         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
 7494 
 7495 2002-04-14  Bruno Haible  <bruno@clisp.org>
 7496 
 7497         * locale/programs/charmap.c (charmap_read): Don't access result if
 7498         result == NULL.
 7499 
 7500 2002-02-17  Andreas Schwab  <schwab@suse.de>
 7501 
 7502         * elf/reldep7.c: New file.
 7503         * elf/reldep7mod1.c: New file.
 7504         * elf/reldep7mod2.c: New file.
 7505         * elf/Makefile: Add rules to build and run reldep7.
 7506 
 7507 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
 7508 
 7509         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
 7510         the end of the function.  Pass original flags to recursive call if
 7511         add_dependency failed.
 7512         (_dl_lookup_versioned_symbol): Likewise.
 7513 
 7514 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
 7515 
 7516         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
 7517         early, but check whether it overflowed afterwards.
 7518         * time/tst-mktime.c (main): Add new tests.
 7519 
 7520 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
 7521 
 7522         * debug/xtrace.sh: Fix program name in help message.
 7523         Patch by Roger Luethi <rl@hellgate.ch>.
 7524 
 7525         * include/sys/stat.h: Add prototypes for __lxstat_internal and
 7526         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
 7527         NOT_IN_libc.
 7528         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
 7529         * sysdeps/mach/hurd/lxstat.c: Likewise.
 7530         * sysdeps/unix/common/lxstat.c: Likewise.
 7531         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
 7532         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
 7533         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
 7534         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
 7535         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
 7536         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
 7537         * sysdeps/mach/hurd/lxstat64.c: Likewise.
 7538         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
 7539         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
 7540 
 7541         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
 7542         prototypes.  Add __mbrlen and __mbrtowc macros.
 7543         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
 7544         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
 7545 
 7546         * include/unistd.h: Add prototype for __write_internal and add
 7547         __libc_write macro is SHARED.
 7548         * sysdeps/generic/write.c: Use INTDEF for __write.
 7549         * sysdeps/mach/hurd/write.c: Likewise.
 7550         * sysdeps/unix/sysv/aix/write.c: Likewise.
 7551         * sysdeps/unix/syscalls.list: Add __libc_write alias.
 7552 
 7553         * assert/assert.c: Replace STR_N_SIZE with something usable in
 7554         macro arguments.
 7555         * assert/assert-perr.c: Likewise.
 7556 
 7557         * include/sys/socket.h: Declare __libc_sa_len_internal and define
 7558         SA_LEN macro to use it if not NOT_IN_libc.
 7559         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
 7560 
 7561         * include/fcntl.h: Declare __open_internal and define __open and
 7562         __libc_open macros if not NOT_IN_libc.
 7563         * sysdeps/generic/open.c: Use INTDEF for __open.
 7564         * sysdeps/mach/hurd/open.c: Likewise.
 7565         * sysdeps/unix/sysv/aix/open.c: Likewise.
 7566         * sysdeps/unix/syscalls.list: Add __open_internal alias.
 7567 
 7568         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
 7569         has correct number.
 7570 
 7571         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
 7572         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
 7573         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
 7574         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
 7575 
 7576         * include/wctype.h: Declare __iswalpha_l_internal,
 7577         __iswdigit_l_internal, __iswspace_l_internal,
 7578         __iswxdigit_l_internal, and __iswctype_internal.  Define
 7579         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
 7580         __iswxdigit_l macros if not NOT_IN_libc.
 7581         * wctype/iswctype.c: Use INTDEF for __iswctype.
 7582         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
 7583 
 7584         * include/math.h: Declare __isinf_internal, __isinfl_internal,
 7585         __isnan_internal, and __isnanl_internal.
 7586         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
 7587         __isnan, and __isnanl.
 7588         * stdio-common/printf_size.c: Likewise.
 7589         * sysdeps/generic/printf_fphex.c: Likewise.
 7590         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
 7591         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
 7592         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
 7593         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
 7594         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
 7595         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
 7596         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
 7597         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
 7598         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
 7599         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
 7600         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
 7601         * sysdeps/m68k/s_isinfl.c: Likewise.
 7602         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
 7603         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
 7604 
 7605         * include/sys/time.h: Declare __gettimeofday_internal and define
 7606         __gettimeofday macro if not NOT_IN_libc.
 7607         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
 7608         * sysdeps/mach/gettimeofday.c: Likewise.
 7609         * sysdeps/posix/gettimeofday.c: Likewise.
 7610         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
 7611         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
 7612         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
 7613         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
 7614 
 7615         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
 7616         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
 7617         Remove __lstat and __fstat inline functions.
 7618         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
 7619         * sysdeps/mach/hurd/fxstat.c: Likewise.
 7620         * sysdeps/unix/fxstat.c: Likewise.
 7621         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
 7622         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
 7623         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
 7624         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
 7625         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
 7626         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
 7627         * sysdeps/mach/hurd/fxstat64.c: Likewise.
 7628         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
 7629         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
 7630 
 7631         * include/unistd.h: Declare __getpid_internal and define
 7632         __getpid macro if not NOT_IN_libc.
 7633         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
 7634         * sysdeps/generic/getpid.c: Likewise.
 7635         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
 7636         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
 7637 
 7638         * include/unistd.h: Declare __getpgid_internal and define
 7639         __getpgid macro if not NOT_IN_libc.
 7640         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
 7641         * sysdeps/mach/hurd/getpgid.c: Likewise.
 7642         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
 7643         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
 7644         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
 7645         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
 7646 
 7647         * include/unistd.h: Declare __getpagesize_internal and define
 7648         __getpagesize macro if not NOT_IN_libc.
 7649         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
 7650         __getpagesize.
 7651         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
 7652         * sysdeps/mach/getpagesize.c: Likewise.
 7653         * sysdeps/posix/getpagesize.c: Likewise.
 7654         * sysdeps/unix/getpagesize.c: Likewise.
 7655         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
 7656         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
 7657         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
 7658         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
 7659 
 7660 2002-04-13  Andreas Jaeger  <aj@suse.de>
 7661 
 7662         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
 7663         as clobber to reduce register pressure.
 7664         (__strpbrk_cg): Likewise.
 7665         (__mempcpy_by4): Likewise.
 7666         (__strstr_cg): Likewise.
 7667         Add prototype for __memrchr.
 7668 
 7669 2002-04-13  Andreas Schwab  <schwab@suse.de>
 7670 
 7671         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
 7672         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
 7673         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
 7674 
 7675 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
 7676 
 7677         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
 7678         check whether the caller prefers getting the most recent version of
 7679         a symbol of the earliest version.
 7680         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
 7681         _dl_do_lookup to also take the new parameter and pass it on.
 7682         Change 'explicit' parameter of _dl_lookup_symbol and
 7683         _dl_lookup_versioned_symbol to flags.  Adjust tests.
 7684         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
 7685         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
 7686         _dl_lookup_versioned_symbol.
 7687         * elf/dl-reloc.c: Likewise.
 7688         * elf/dl-runtime.c: Likewise.
 7689         * elf/dl-sym.c: Likewise.
 7690         * sysdeps/mips/dl-machine.h: Likewise.
 7691 
 7692 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
 7693 
 7694         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
 7695         in a token.
 7696         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
 7697 
 7698 2002-04-10  Andreas Jaeger  <aj@suse.de>
 7699 
 7700         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
 7701 
 7702         * include/argz.h: Remove extra char from last patch.
 7703 
 7704 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
 7705 
 7706         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
 7707         * sysdeps/unix/sysv/aix/chown.c: Likewise.
 7708         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
 7709         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
 7710         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
 7711         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
 7712         __chown_internal.
 7713         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
 7714 
 7715         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
 7716         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
 7717         * intl/ngettext.c: Likewise.
 7718 
 7719         * include/sys/socket.h: Declare __connect_internal and define
 7720         __connect macro if not NOT_IN_libc.
 7721         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
 7722         * sysdeps/unix/sysv/aix/connect.c: Likewise.
 7723         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
 7724 
 7725         * include/unistd.h: Declare __close_internal and define __close macro
 7726         if not NOT_IN_libc.
 7727         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
 7728         WJUMP3): Add extra parenthesis to avoid expanding element names with
 7729         macors like __close.
 7730         * sysdeps/unix/syscalls.list: Add __close_internal alias.
 7731 
 7732         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
 7733         if not NOT_IN_libc.
 7734         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
 7735         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
 7736         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
 7737 
 7738         * include/unistd.h: Declare __fork_internal and define __fork macro
 7739         if not NOT_IN_libc.
 7740         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
 7741         * sysdeps/unix/sysv/aix/fork.c: Likewise.
 7742         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
 7743 
 7744         * include/stdio_ext.h: Declare __fsetlocking_internal and define
 7745         __fsetlocking macro to use it if not NOT_IN_libc.
 7746         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
 7747 
 7748         * libio/__fbufsize.c: Correct copyright.
 7749         * libio/__flbf.c: Likewise.
 7750         * libio/__fpending.c: Likewise.
 7751         * libio/__fpurge.c: Likewise.
 7752         * libio/__freadable.c: Likewise.
 7753         * libio/__freading.c: Likewise.
 7754         * libio/__fsetlocking.c: Likewise.
 7755         * libio/__fwritable.c: Likewise.
 7756         * libio/__fwriting.c: Likewise.
 7757 
 7758         * include/stdio.h: Declare __asprintf_internal and define __asprintf
 7759         macro to use it if not NOT_IN_libc.
 7760         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
 7761 
 7762         * include/mntent.h: Declare __setmntent_internal,
 7763         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
 7764         __getmntent_r, and __endmntent macros to use these functions if not
 7765         NOT_IN_libc.
 7766         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
 7767         __endmntent.
 7768 
 7769         * include/math.h: Declare __finite_internal, __finitef_internal, and
 7770         __finitel_internal.  Redefine isfinite macro if in libc or libm using
 7771         these functions.
 7772         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
 7773         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
 7774         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
 7775         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
 7776         * sysdeps/i386/fpu/s_finitef.S: Likewise.
 7777         * sysdeps/i386/fpu/s_finitel.S: Likewise.
 7778         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
 7779         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
 7780         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
 7781         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
 7782 
 7783         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
 7784         to use this function if not NOT_IN_libc.
 7785         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
 7786         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
 7787         * sysdeps/mach/hurd/fcntl.c: Likewise.
 7788         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
 7789         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
 7790 
 7791         * include/argz.h: Declare __argz_count_internal and
 7792         __argz_stringify_internal.
 7793         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
 7794         __argz_stringify.
 7795         * string/argz-count.c: Use INTDEF for __argz_count.
 7796         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
 7797 
 7798         * include/stdlib.h: Declare __cxa_atexit_internal and define
 7799         __cxa_atexit macro if not NOT_IN_libc.
 7800         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
 7801         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
 7802 
 7803         * assert/assert.c: Use INTDEF for __assert_fail.
 7804         * assert/__assert.c: Use INTUSE for call to __assert_fail.
 7805         * include/assert.h: Declare __assert_fail_internal.
 7806 
 7807         * extra-lib.mk: Mark assignment to lib with override.
 7808 
 7809 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
 7810 
 7811         * Makerules: Use cppflags-iterator.mk to add defines for all test
 7812         source files.
 7813 
 7814 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
 7815 
 7816         * elf/elf.h: Define R_SH_TLS_xxx macros.
 7817         * elf/rtld.c: Remove an extra parenthesis.
 7818         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
 7819         TLS_GD macros.
 7820         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
 7821         * sysdeps/sh/dl-lookupcfg.h: New file.
 7822         * sysdeps/sh/dl-tls.h: New file.
 7823         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
 7824         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
 7825         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
 7826         R_SH_TLS_TPOFF32 relocations.
 7827 
 7828 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
 7829 
 7830         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
 7831         of NOT_IN_LIBC.
 7832         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
 7833         * include/stdlib.h: Likewise.
 7834 
 7835 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
 7836 
 7837         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
 7838         instead of _RTLD_LOCAL.
 7839         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
 7840         * include/unistd.h: Likewise.
 7841         * sysdeps/generic/ldsodefs.h: Likewise.
 7842 
 7843         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
 7844         if in libc or ld.so.
 7845 
 7846 2002-04-08  Andreas Jaeger  <aj@suse.de>
 7847 
 7848         * elf/cache.c (print_entry): Support x86-64.
 7849 
 7850 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
 7851 
 7852         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
 7853         with one accessing the locale data structures directly.
 7854         * stdio-common/printf-prs.c: Include localeinfo.h for new
 7855         MB_CUR_MAX definition.
 7856 
 7857         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
 7858         is the name of the source file without extension.
 7859         * Makefile (distribute): Add cppflags-iterator.mk.
 7860         * cppflags-iterator.mk: New file.
 7861         * extra-lib.mk: For the sources of the library run
 7862         cppflags-iterator.mk.
 7863 
 7864         * include/libintl.h: Declare __dcgettext_internal and
 7865         _libc_intl_domainname_internal.  Define __dcgettext using these
 7866         two symbols if used in libc itself.
 7867         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
 7868         _libc_intl_domainname_internal.
 7869         * argp/argp-parse.c: Likewise.
 7870         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
 7871         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
 7872         * intl/gettext.c: Likewise.
 7873         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
 7874         alias.
 7875         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
 7876         __dcgettext.
 7877         * posix/regex_internal.c (gettext): Likewise.
 7878 
 7879 2002-04-08  Andreas Jaeger  <aj@suse.de>
 7880 
 7881         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
 7882 
 7883         * sysdeps/x86_64/fpu/s_llrint.S: New file.
 7884         * sysdeps/x86_64/fpu/s_llrintf.S: New file.
 7885         * sysdeps/x86_64/fpu/s_llrintl.S: New file.
 7886         * sysdeps/x86_64/fpu/s_lrint.S: New file.
 7887         * sysdeps/x86_64/fpu/s_lrintf.S: New file.
 7888         * sysdeps/x86_64/fpu/s_lrintl.S: New file.
 7889 
 7890 2002-04-08  Roland McGrath  <roland@frob.com>
 7891 
 7892         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
 7893         widening __hurd_fail value.
 7894 
 7895 2002-04-07  Roland McGrath  <roland@frob.com>
 7896 
 7897         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
 7898         <mach/machine/alpha_instruction.h>.
 7899         (_hurd_setup_sighandler): Take proper arguments for current decls.
 7900         Update code to use _hurdsig_catch_fault.
 7901         Use `callsys' instruction instead of `call_pal'.
 7902         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
 7903 
 7904         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
 7905         (ALIGN, at, AT, fp): New macros.
 7906 
 7907 2002-04-06  Roland McGrath  <roland@frob.com>
 7908 
 7909         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
 7910 
 7911         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
 7912         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
 7913 
 7914         * sysdeps/mach/hurd/bind.c: Use prototype definition.
 7915         * sysdeps/mach/hurd/connect.c: Likewise.
 7916         * sysdeps/mach/hurd/getsockopt.c: Likewise.
 7917         * sysdeps/mach/hurd/setsockopt.c: Likewise.
 7918 
 7919         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
 7920         __msg_sig_post RPC.
 7921 
 7922         * hurd/catch-exc.c: Use integer_t instead of int.
 7923         * hurd/hurdfault.c: Likewise.
 7924 
 7925         * sysdeps/mach/hurd/alpha/exc2signal.c
 7926         (_hurd_exception2signal): Rewritten.
 7927         * sysdeps/mach/hurd/alpha/longjmp-ts.c
 7928         (_hurd_longjmp_thread_state): Rewritten.
 7929 
 7930 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
 7931 
 7932         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
 7933         DB_LOOKUP_FCT prototype.
 7934         * nss/getXXent_r.c: Likewise.
 7935         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
 7936         * inet/getaliasname_r.c: Likewise.
 7937         * inet/getnetbyad_r.c: Likewise.
 7938         * inet/getnetbynm_r.c: Likewise.
 7939         * inet/getnetent_r.c: Likewise.
 7940         * inet/getproto_r.c: Likewise.
 7941         * inet/getprtent_r.c: Likewise.
 7942         * inet/getprtname_r.c: Likewise.
 7943         * inet/getrpcbyname_r.c: Likewise.
 7944         * inet/getrpcbynumber_r.c: Likewise.
 7945         * inet/getrpcent_r.c: Likewise.
 7946         * inet/getservent_r.c: Likewise.
 7947         * inet/getsrvbynm_r.c: Likewise.
 7948         * inet/getsrvbypt_r.c: Likewise.
 7949         * shadow/getspent_r.c: Likewise.
 7950         * shadow/getspnam_r.c: Likewise.
 7951 
 7952         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
 7953 
 7954         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
 7955         Use i686-friendly PIC code.
 7956         * sysdeps/i386/elf/setjmp.S: Likewise.
 7957 
 7958         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
 7959 
 7960         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
 7961         list.
 7962         * elf/Versions: Remove it here.
 7963 
 7964 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
 7965 
 7966         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
 7967         direction.  Reported by H . J . Lu <hjl@lucon.org>.
 7968 
 7969 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
 7970 
 7971         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
 7972         test just before the test runs.
 7973         * intl/tst-translit.sh: Likewise.
 7974         * intl/tst-codeset.sh: Likewise.
 7975 
 7976         * timezone/zic.c: Update from tzcode2002c.
 7977         * timezone/asia: Update from tzdata2002c.
 7978         * timezone/backward: Likewise.
 7979         * timezone/europe: Likewise.
 7980         * timezone/northamerica: Likewise.
 7981         * timezone/northamerica: Likewise.
 7982         * timezone/northamerica: Likewise.
 7983         * timezone/southamerica: Likewise.
 7984         * timezone/zone.tab: Likewise.
 7985 
 7986 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
 7987 
 7988         * sysdeps/generic/brk.c (__curbrk): Declare.
 7989         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
 7990         * sysdeps/generic/dl-sbrk.c: Likewise.
 7991         * sysdeps/unix/arm/dl-brk.S: New file.
 7992         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
 7993         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
 7994         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
 7995         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
 7996         * sysdeps/unix/i386/dl-brk.S: New file.
 7997         * sysdeps/unix/mips/dl-brk.S: New file.
 7998         * sysdeps/unix/sparc/dl-brk.S: New file.
 7999         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
 8000         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
 8001         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
 8002         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
 8003 
 8004 2002-04-03  Andreas Schwab  <schwab@suse.de>
 8005 
 8006         * Makefile (headers): Add gnu/lib-names.h here instead of
 8007         install-others.
 8008         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
 8009         installation rule.
 8010         (install-headers): Add dependency on install-headers-nosubdir.
 8011         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
 8012         instead of install-others.
 8013         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
 8014         installation rule.
 8015 
 8016 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
 8017 
 8018         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
 8019         Reported by Sam Roberts <sroberts@uniserve.com>.
 8020 
 8021 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
 8022 
 8023         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
 8024         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
 8025         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
 8026         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
 8027 
 8028 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
 8029 
 8030         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
 8031         (RTLD_START): Ditto.
 8032         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
 8033         dependency violation.
 8034 
 8035 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
 8036 
 8037         * time/mktime.c (__mktime_internal): Move check for year < 70 below
 8038         all variable declarations.
 8039 
 8040 2002-04-04  Andreas Schwab  <schwab@suse.de>
 8041 
 8042         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
 8043 
 8044 2002-04-04  Andreas Jaeger  <aj@suse.de>
 8045 
 8046         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
 8047         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
 8048 
 8049         * sysdeps/x86_64/fpu/s_fabs.c: New file.
 8050         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
 8051         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
 8052 
 8053         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
 8054 
 8055         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
 8056 
 8057         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
 8058         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
 8059 
 8060         * configure.in: Handle all mips entries the same.
 8061 
 8062         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
 8063         * sysdeps/mips/mips3/*: Likewise.
 8064         * sysdeps/mips/p40/bits/endian.h: Likewise.
 8065 
 8066 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
 8067 
 8068         * misc/dirname.c (dirname): Ignore trailing slashes at end of
 8069         non-null result [PR libc/2600].
 8070 
 8071         * misc/tst-dirname.c: Add more tests.
 8072 
 8073 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
 8074 
 8075         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
 8076         define a code_set_name provide one based on the filename.
 8077 
 8078         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
 8079 
 8080 2001-12-28  Andreas Jaeger  <aj@suse.de>
 8081 
 8082         * time/mktime.c (__mktime_internal): Check for year < 70
 8083         [PR libc/2738].
 8084 
 8085 2002-04-03  Andreas Jaeger  <aj@suse.de>
 8086 
 8087         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
 8088         shmat.
 8089         Reported by Andi Kleen <ak@suse.de>.
 8090 
 8091 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
 8092 
 8093         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
 8094         * sysdeps/generic/w_lgammaf.c: Likewise.
 8095         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
 8096 
 8097         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
 8098         Adjust for new output format of the backtrace functions.
 8099 
 8100         * misc/syslog.c (vsyslog): Only use cleanup handler if
 8101         _LIBC_REENTRANT is defined [PR libc/2924].
 8102 
 8103         * libio/Makefile (tests): Add bug-ungetwc2.
 8104         * libio/bug-ungetwc2.c: New file.
 8105 
 8106         * manual/install.texi: Typographical and grammatical cleanup.
 8107         Patch by Dennis Grace <dgrace@us.ibm.com>.
 8108 
 8109         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
 8110         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
 8111 
 8112         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
 8113         always "&".  Adjust callers.
 8114         Add "_" prefix to several generated definitions.
 8115         Patch by paul@serice.net [PR libc/3158].
 8116 
 8117 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
 8118 
 8119         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
 8120         size of _dl_arm_cap_flags.
 8121         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
 8122 
 8123         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
 8124         Define as 8.
 8125 
 8126 2002-03-22  H.J. Lu  <hjl@gnu.org>
 8127 
 8128         * scripts/firstversions.awk: Check the first version.
 8129 
 8130 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
 8131 
 8132         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
 8133         dependencies must be stable to work correctly.
 8134         Reported by martin.lubich@datacon.at.
 8135 
 8136         * libio/bug-ungetwc1.c: New file.
 8137         * libio/Makefile (tests): Add bug-ungetwc1.
 8138 
 8139         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
 8140         if stream was last used for writing.
 8141 
 8142         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
 8143         number [PR libc/3111].
 8144 
 8145         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
 8146         to ...
 8147         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
 8148 
 8149 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
 8150 
 8151         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
 8152         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
 8153         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
 8154         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
 8155         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
 8156 
 8157 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
 8158 
 8159         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
 8160         dynamic tags.
 8161 
 8162 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
 8163 
 8164         * sysdeps/i386/fpu/s_fabs.S: New file.
 8165         * sysdeps/i386/fpu/s_fabsf.S: New file.
 8166         * sysdeps/i386/fpu/s_fabsl.S: New file.
 8167         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
 8168         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
 8169         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
 8170 
 8171 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
 8172 
 8173         * rt/tst-shm.c (do_test): Add one more test for size of shared
 8174         memory object.
 8175 
 8176 2002-03-29  Wolfram Gloger  <wg@malloc.de>
 8177 
 8178         * malloc/malloc.c: Add short description and prototypes for
 8179         malloc_get_state, malloc_set_state and posix_memalign, for
 8180         consistency and to avoid warnings with -Wstrict-prototypes.
 8181         Reported by Andreas Jaeger <aj@suse.de>.
 8182 
 8183 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
 8184 
 8185         * po/gl.po: Update from translation team.
 8186 
 8187 2002-03-31  Roland McGrath  <roland@frob.com>
 8188 
 8189         * hurd/hurdselect.c (_hurd_select): Fix
 8190         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
 8191         Use a union rather than casts to compare mach_msg_type_t as int.
 8192 
 8193 2002-03-25  Roland McGrath  <roland@frob.com>
 8194 
 8195         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
 8196         check off the end of NAME when it's shorter than 2 chars.
 8197         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
 8198 
 8199 2002-03-17  Roland McGrath  <roland@frob.com>
 8200 
 8201         * sysdeps/mach/hurd/i386/sys/io.h: New file.
 8202         * sysdeps/mach/hurd/i386/ioperm.c: New file.
 8203         * sysdeps/mach/hurd/i386/Dist: Add them.
 8204         * sysdeps/mach/hurd/i386/Versions
 8205         (libc: GLIBC_2.2.6): New set, add ioperm.
 8206         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
 8207         (mach_interface_list): Check for mach_i386.defs.
 8208         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
 8209         * sysdeps/mach/configure: Regenerated.
 8210 
 8211 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
 8212 
 8213         * po/fr.po: Update from translation team.
 8214 
 8215 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
 8216 
 8217         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
 8218         getpriority from syscalls list.
 8219 
 8220 2002-03-28  Andreas Jaeger  <aj@suse.de>
 8221 
 8222         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
 8223         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
 8224         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
 8225         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
 8226 
 8227 2002-03-27  Andreas Jaeger  <aj@suse.de>
 8228 
 8229         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
 8230         sigcontext): Follow further kernel change.
 8231 
 8232         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
 8233         kernel change.
 8234 
 8235         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
 8236         Change for struct sigcontext change.
 8237 
 8238         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
 8239         Follow changes in struct sigcontext.
 8240 
 8241         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
 8242         sysycall, use wrapper instead.
 8243 
 8244 2002-03-26  Andreas Jaeger  <aj@suse.de>
 8245 
 8246         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
 8247         read and write accesses as detailed as possible.
 8248         (__memcpy_by2): Likewise.
 8249         (__memcpy_g): Likewise.
 8250         (memmove): Likewise.
 8251         (memcmp): Likewise.
 8252         (__memset_ccn_by4): Likewise.
 8253         (__memset_ccn_by2): Likewise.
 8254         (__memset_gcn_by4): Likewise.
 8255         (__memset_gcn_by2): Likewise.
 8256         (memchr): Likewise.
 8257         (__memrchr): Likewise.
 8258         (rawmemchr): Likewise.
 8259         (__strlen_g): Likewise.
 8260         (__strcpy_g): Likewise.
 8261         (__mempcpy_by4): Likewise.
 8262         (__mempcpy_by2): Likewise.
 8263         (__mempcpy_byn): Likewise.
 8264         (__stpcpy_g): Likewise.
 8265         (__strncpy_by4): Likewise.
 8266         (__strncpy_by2): Likewise.
 8267         (__strncpy_byn): Likewise.
 8268         (__strncpy_gg): Likewise.
 8269         (__strcat_c): Likewise.
 8270         (__strcat_g): Likewise.
 8271         (__strncat_g): Likewise.
 8272         (__strcmp_gg): Likewise.
 8273         (__strncmp_g): Likewise.
 8274         (__strchr_c): Likewise.
 8275         (__strchr_g): Likewise.
 8276         (__strchrnul_c): Likewise.
 8277         (__strchrnul_g): Likewise.
 8278         (__strrchr_c): Likewise.
 8279         (__strrchr_g): Likewise.
 8280         (__strrchr_c): Likewise.
 8281         (__strrchr_g): Likewise.
 8282         (__strcspn_c1): Likewise.
 8283         (__strcspn_cg): Likewise.
 8284         (__strcspn_g): Likewise.
 8285         (__strcspn_g): Likewise.
 8286         (__strspn_c1): Likewise.
 8287         (__strspn_cg): Likewise.
 8288         (__strspn_g): Likewise.
 8289         (__strspn_g): Likewise.
 8290         (__strpbrk_cg): Likewise.
 8291         (__strpbrk_g): Likewise.
 8292         (__strstr_cg): Likewise.
 8293         (__strstr_g): Likewise.
 8294 
 8295         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
 8296         Michal Ludvig <mludvig@suse.cz>.
 8297 
 8298         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
 8299         compatibilty, adjust for kernel changes.
 8300 
 8301         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
 8302         sigcontext): Adjust for kernel changes.
 8303 
 8304 2002-03-25  Andreas Jaeger  <aj@suse.de>
 8305 
 8306         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
 8307         little endian.
 8308         Reported by Artur Zaprzala <zybi@talex.com.pl>.
 8309 
 8310 2002-03-24  Andreas Jaeger  <aj@suse.de>
 8311 
 8312         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
 8313 
 8314         * stdio-common/tst-fdopen.c (main): Remove unused variable.
 8315 
 8316         * iconv/tst-iconv3.c (main): Use correct printf strings.
 8317 
 8318 2002-03-18  Roland McGrath  <roland@frob.com>
 8319 
 8320         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
 8321         (CMGROUP_MAX): New macro.
 8322 
 8323 2002-03-23  Roland McGrath  <roland@frob.com>
 8324 
 8325         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
 8326         * sysdeps/posix/shm_unlink.c: Likewise.
 8327 
 8328 2002-03-22  Roland McGrath  <roland@frob.com>
 8329 
 8330         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
 8331         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
 8332         under --enable-libio.
 8333         * sysdeps/mach/hurd/configure: Regenerated.
 8334 
 8335 2002-03-23  Roland McGrath  <roland@frob.com>
 8336 
 8337         * sysdeps/mach/hurd/i386/Makefile
 8338         (sysdep_routines, shared-only-routines): Don't add framestate,
 8339         reverting 2001-10-02 change.
 8340         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
 8341         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
 8342         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
 8343         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
 8344         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
 8345         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
 8346         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
 8347         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
 8348         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
 8349         Do it here instead, only if [$(unwind-find-fde) = yes].
 8350 
 8351 2002-03-23  Andreas Jaeger  <aj@suse.de>
 8352 
 8353         * signal/signal.h: Fix typo. Patch by Steve Kemp
 8354         <skx@tardis.ed.ac.uk>.
 8355 
 8356 2002-03-22  Andreas Jaeger  <aj@suse.de>
 8357 
 8358         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
 8359         getresuid.
 8360 
 8361         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
 8362         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
 8363         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
 8364         user_fpregs_struct): Rename fwd.
 8365 
 8366         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
 8367         Follow sigcontext changes.
 8368 
 8369 2002-03-22  Andreas Jaeger  <aj@suse.de>
 8370 
 8371         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
 8372         changes for NaNs on MIPS.
 8373         Patch by Hartvig Ekner <hartvige@mips.com>.
 8374 
 8375 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
 8376 
 8377         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
 8378         Use realloc if too large.
 8379         (addgrbyid): Likewise.
 8380         * nscd/hstcache.c (addhstbyname): Likewise.
 8381         (addhstbyaddr): Likewise.
 8382         (addhstbynamev6): Likewise.
 8383         (addhstbyaddrv6): Likewise.
 8384         * nscd/pwdcache.c (addpwbyname): Likewise.
 8385         (addpwbyuid): Likewise.
 8386 
 8387 2002-03-21  Andreas Jaeger  <aj@suse.de>
 8388 
 8389         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
 8390         _fpstate): Add separate struct for x86-64.
 8391 
 8392         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
 8393         user_fpregs_struct): Change member names to follow kernel.
 8394 
 8395 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
 8396 
 8397         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
 8398         Correctly close the UDP connection right away [PR libc/3120].
 8399 
 8400 2002-03-20  Andreas Jaeger  <aj@suse.de>
 8401 
 8402         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
 8403         user_fpregs_struct): Fix for changed kernel struct.
 8404         (struct user_regs_struct): Likewise.
 8405         (struct user): Likewise.
 8406         Add 32-bit x86 compatibility.
 8407 
 8408         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
 8409 
 8410 2002-03-19  Andreas Jaeger  <aj@suse.de>
 8411 
 8412         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
 8413 
 8414 2002-03-18  Andreas Jaeger  <aj@suse.de>
 8415 
 8416         * iconvdata/Makefile: Only run tests when shared libs are
 8417         available.
 8418 
 8419 2002-03-17  Andreas Jaeger  <aj@suse.de>
 8420 
 8421         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
 8422 
 8423         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
 8424 
 8425         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
 8426         bits.
 8427 
 8428         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New macro.
 8429         (CAUSE_SHIFT): New macro.
 8430         Patch by Hartvig Ekner <hartvige@mips.com>.
 8431 
 8432         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
 8433         * sysdeps/generic/unwind-pe.h: Likewise.
 8434 
 8435         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
 8436         type to _IO_setb.
 8437 
 8438         * libio/stdio.c (AL2): Define variant when visibility attribute is
 8439         not supported.
 8440 
 8441         * include/libc-symbols.h (_INTVARDEF): Define variant when
 8442         visibility attribute is not supported.
 8443 
 8444 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
 8445 
 8446         * po/fr.po: Update from translation team.
 8447 
 8448 2002-02-25  Bruno Haible  <bruno@clisp.org>
 8449 
 8450         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
 8451 
 8452 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
 8453 
 8454         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
 8455         buffers if _IO_file_attach failed.
 8456 
 8457         * libio/fileops.c (_IO_file_open): Close file descriptor if
 8458         _IO_SEEKOFF call failed.
 8459 
 8460 2002-03-15  H.J. Lu  <hjl@gnu.org>
 8461             Ulrich Drepper  <drepper@redhat.com>
 8462 
 8463         * configure.in: Check for availability of
 8464         init_array/fini_array/preinit_array handling in binutils.
 8465         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
 8466         * config.make.in (have-initfini-array): New variable.
 8467 
 8468 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
 8469 
 8470         * stdio-common/tst-printf.c (main): Comment out one test which
 8471         checked the compiler's ability to fold floating-point constants
 8472         but not really printf.
 8473         (rfg3): Make s const.
 8474         * stdio-common/tst-printf.sh: Adjust for removed test.
 8475 
 8476         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
 8477         internal function.  Adjust for internal_function calling convention.
 8478         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
 8479         as internal_function.
 8480 
 8481         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
 8482         hidden.
 8483 
 8484         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
 8485         declaration and definition.
 8486         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
 8487         declaration.
 8488         * nss/getXXent_r.c: Likewise.
 8489         * nss/nsswitch.h (db_lookup_function): Add internal_function to
 8490         definition.
 8491 
 8492         * include/time.h: Declare __localtime_r as hidden.
 8493 
 8494         * include/aliases.h: Declare __getaliasent_r as hidden.
 8495         * include/grp.h: Declare __getgrent_r as hidden.
 8496         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
 8497         __getservent_r, and __getprotoent_r as hidden.
 8498         * include/pwd.h: Declare __getpwent_r as hidden.
 8499         * include/shadow.h: Declare __getspent_r as hidden.
 8500         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
 8501 
 8502         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
 8503         and __gconv_transliterate as hidden.
 8504         Add internal_function to __gconv_get_path declaration.
 8505         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
 8506         definition.  Add attribute_hidden to __gconv_read_conf definition.
 8507 
 8508 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
 8509 
 8510         * elf/rtld.c: Declare _environ as hidden.
 8511         * sysdeps/generic/dl-environ.c: Likewise.
 8512         * sysdeps/generic/dl-sysdep.c: Likewise.
 8513 
 8514         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
 8515         _dl_mcount_internal as hidden.
 8516 
 8517         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
 8518         * sysdeps/generic/dl-brk.c: New file.
 8519         * sysdeps/generic/dl-sbrk.c: New file.
 8520         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
 8521         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
 8522 
 8523         * elf/dl-minimal.c (malloc): Declare _end as hidden.
 8524         (__errno_location): New function.  Declare errno as hidden.
 8525         * elf/rtld.c (_dl_argc): Define as hidden.
 8526         (_dl_skip_args): Define as hidden.
 8527         (_begin, _end): Declare as hidden.
 8528         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
 8529         * sysdeps/generic/entry.h (_start): Declare as hidden.
 8530         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
 8531         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
 8532         _dl_runtime_resolve and _dl_runtime_profile as hidden.
 8533         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
 8534 
 8535 2002-03-14  Roland McGrath  <roland@frob.com>
 8536 
 8537         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
 8538 
 8539         * Makeconfig (%.v.i, %.v): New implicit rules.
 8540         (preprocess-versions): Variable removed.
 8541         ($(common-objpfx)shlib-versions.v.i): New target giving just the
 8542         shlib-versions input files as dependencies.
 8543         ($(common-objpfx)soversions.i): Depend on that instead of the input
 8544         files.  Use it as input instead of using a pipeline.
 8545         (postclean-generated): Append soversions.i, shlib-versions.v, and
 8546         shlib-versions.v.i here.
 8547         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
 8548         the Versions.def input files as dependencies.
 8549         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
 8550         ($(common-objpfx)Versions.all): Depend on that instead of the input
 8551         files.  Use it as input instead of using a pipeline.
 8552         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
 8553         (postclean-generated): Append those .v and .v.i files here.
 8554 
 8555 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
 8556 
 8557         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
 8558         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
 8559         Remove.
 8560 
 8561 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
 8562 
 8563         * sysdeps/generic/mp_clz_tab.c: New file.
 8564         * sysdeps/i386/mp_clz_tab.c: New file.
 8565         * sysdeps/hppa/mp_clz_tab.c: New file.
 8566         * sysdeps/powerpc/mp_clz_tab.c: New file.
 8567         * stdlib/Makefile (aux): Revert last patch.
 8568         * math/Makefile (gmp-objs): Likewise.
 8569 
 8570 2002-03-13  Paul Eggert  <eggert@twinsun.com>
 8571 
 8572         * time/strftime.c: Comment fixes for references to obsolescent
 8573         standards, In most cases the simplest fix is to remove the
 8574         confusing comments.  Cross-referencing all the standards properly
 8575         is a bit of a pain, and it should be enough to put that info in
 8576         the documentation as I did in my recent time.texi patch.
 8577 
 8578 2002-03-13  Paul Eggert  <eggert@twinsun.com>
 8579 
 8580         * manual/time.texi (Formatting Calendar Time):
 8581         ISO C99 also specifies the E and O modifiers.
 8582         %P is a GNU extension, and is not in ISO C99.
 8583         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
 8584         %T is also in ISO C99.
 8585         The RFC 822 example is not valid in arbitrary locales.
 8586         Reword the POSIX.2 wording slightly, to make it a bit clearer
 8587         that POSIX.2 formats are also supported by later POSIX versions.
 8588         If a format was introduced in ISO C99 it is also required by
 8589         POSIX.1-2001.
 8590 
 8591 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
 8592 
 8593         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
 8594         _sys_nerr_internal with INTVARDEF2.
 8595         * include/libc-symbols.h (INTVARDEF2): New macro.
 8596         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
 8597         (_sys_nerr_internal): Library.
 8598 
 8599         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
 8600         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
 8601 
 8602         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
 8603 
 8604 2002-03-13  Wolfram Gloger  <wg@malloc.de>
 8605 
 8606         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
 8607 
 8608 2002-03-02  Andreas Schwab  <schwab@suse.de>
 8609 
 8610         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
 8611         'h' flag and positional arg.
 8612         * stdio-common/tst-printf.c (rfg3): New function to test
 8613         positional arguments.
 8614         (main): Fix some warnings.
 8615 
 8616 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
 8617 
 8618         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
 8619         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
 8620 
 8621 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
 8622 
 8623         * grp/initgroups.c (__nss_group_data): Declare as hidden.
 8624 
 8625         * include/locale.h (_nl_C_locobj): Declare as hidden.
 8626 
 8627         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
 8628         * time/strptime.c (_nl_C_LC_TIME): Likewise.
 8629 
 8630         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
 8631 
 8632         * include/sys/gmon.h: Declare _gmonparam as hidden.
 8633 
 8634         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
 8635         (__ctype32_wctrans): Likewise.
 8636         (__ctype32_width): Likewise.
 8637 
 8638         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
 8639         use of __ttyname.
 8640 
 8641         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
 8642         Define as hidden.
 8643         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
 8644         hidden.  Change all users of these variables.
 8645 
 8646         * posix/regex_internal.h (__re_error_msgid): Renamed from
 8647         re_error_msgid.  Declare as hidden.
 8648         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
 8649         hidden.
 8650 
 8651         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
 8652         (__printf_function_table): Likewise.
 8653         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
 8654         hidden.
 8655         (__printf_function_table): Likewise.
 8656 
 8657         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
 8658         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
 8659 
 8660         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
 8661         * nss/nsswitch.c: Declare _nss_*_database as hidden.
 8662 
 8663         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
 8664         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
 8665 
 8666 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
 8667 
 8668         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
 8669         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
 8670         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
 8671         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
 8672         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
 8673         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
 8674         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
 8675         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
 8676         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
 8677         _nl_C_LC_CTYPE_width: Declare as hidden.
 8678         * include/locale.h: Declare _nl_locale_file_list.
 8679         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
 8680         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
 8681         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
 8682         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
 8683         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
 8684         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
 8685         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
 8686         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
 8687         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
 8688         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
 8689         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
 8690         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
 8691         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
 8692         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
 8693         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
 8694         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
 8695         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
 8696         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
 8697         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
 8698         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
 8699         _nl_C_LC_CTYPE_width, and as hidden.
 8700         * locale/findlocale.c: Declare _nl_C as hidden.
 8701         * locale/newlocale.c: Likewise.
 8702         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
 8703         _nl_locale_file_list.
 8704         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
 8705         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
 8706         Define _nl_C_locobj as hidden.
 8707 
 8708         * malloc/mtrace.c (_mtrace_file): Define as hidden.
 8709         (_mtrace_line): Likewise.
 8710 
 8711         * include/time.h: Declare __mon_yday as hidden.
 8712         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
 8713 
 8714         * libio/libioP.h: Declare __libio_codecvt as hidden.
 8715         * libio/fileops.c: Declare __libio_translit as hidden.
 8716         * libio/iofwide.c: Define __libio_translit as hidden.
 8717 
 8718         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
 8719         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
 8720         * login/getutline_r.c: Likewise.
 8721         * login/utmpname.c: Likewise.
 8722 
 8723         * login/utmp-private.h: Declare __libc_utmp_file_functions,
 8724         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
 8725         __libc_utmp_file_name as hidden.
 8726 
 8727         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
 8728         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
 8729         * locale/freelocale.c: Likewise.
 8730         * locale/lc-time.c: Likewise.
 8731 
 8732         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
 8733         (__libc_ptyname2): Likewise.
 8734         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
 8735         hidden.
 8736         (__libc_ptyname2): Likewise.
 8737 
 8738         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
 8739         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
 8740         * sysdeps/generic/init-first.c: Likewise.
 8741         * sysdeps/i386/init-first.c: Likewise.
 8742         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
 8743         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
 8744         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
 8745         * sysdeps/sh/init-first.c: Likewise.
 8746         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
 8747         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
 8748 
 8749         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
 8750         (_itowa_upper_digits): Likewise.
 8751 
 8752         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
 8753         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
 8754         as hidden.
 8755 
 8756         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
 8757         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
 8758         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
 8759         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
 8760 
 8761         * gmon/gmon.c (__bb_head): Define as hidden.
 8762         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
 8763 
 8764         * argp/argp-parse.c (_argp_hang): Define as static.
 8765 
 8766         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
 8767         handling in latest compilers.
 8768 
 8769         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
 8770         define alias.
 8771         * libio/fileops.c (_IO_file_jumps): Likewise.
 8772         * libio/stdfiles.c (_IO_list_all): Likewise.
 8773         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
 8774 
 8775         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
 8776         include/malloc.h.
 8777         * include/malloc.h: Add __libc_malloc_initialized declaration
 8778         here.  Mark variable hidden.
 8779         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
 8780 
 8781         * elf/dl-open.c (__libc_argc): Declare as hidden.
 8782         (__libc_argv): Likewise.
 8783         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
 8784         (__libc_argv): Likewise.
 8785         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
 8786         __libc_argv as hidden.
 8787         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
 8788         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
 8789         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
 8790         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
 8791 
 8792         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
 8793         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
 8794         * stdlib/erand48.c: Likewise.
 8795         * stdlib/jrand48.c: Likewise.
 8796         * stdlib/lcong48.c: Likewise.
 8797         * stdlib/lrand48.c: Likewise.
 8798         * stdlib/mrand48.c: Likewise.
 8799         * stdlib/nrand48.c: Likewise.
 8800         * stdlib/seed48.c: Likewise.
 8801         * stdlib/srand48.c: Likewise.
 8802 
 8803         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
 8804         (_itoa_lower_digits_internal): New declaration.
 8805         (_itoa_upper_digits_internal): New declaration.
 8806         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
 8807         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
 8808         (_itoa_upper_digits_internal): New declaration.
 8809         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
 8810         _itoa_lower_digits.
 8811         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
 8812         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
 8813 
 8814         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
 8815         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
 8816 
 8817         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
 8818         (_itowa_lower_digits): Likewise.
 8819         (_itowa_upper_digits): Likewise.
 8820         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
 8821         (_itowa_upper_digits): Likewise.
 8822 
 8823         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
 8824         not already defined.
 8825         (GERMANIC_PLURAL): Declare as hidden.
 8826 
 8827         * posix/getopt.c (__getopt_initialized): Declare as hidden.
 8828         (attribute_hidden): Define as empty macro if not already defined.
 8829 
 8830         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
 8831         (__gconv_max_path_elem_len): Likewise.
 8832         (__gconv_path_envvar): Likewise.
 8833 
 8834         * math/Makefile (gmp-objs): Remove mp_clz_tab.
 8835         * stdlib/Makefile (aux): Remove mp_clz_tab.
 8836         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
 8837 
 8838         * stdlib/exit.h (__exit_funcs): Declare as hidden.
 8839 
 8840         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
 8841 
 8842         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
 8843         _nl_category_names, _nl_category_name_sizes, _nl_current,
 8844         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
 8845 
 8846         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
 8847         (_nl_current_default_domain): Likewise
 8848         (_nl_state_lock): Likewise.
 8849         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
 8850         (_nl_current_default_domain): Likewise
 8851         (_nl_state_lock): Likewise.
 8852         * intl/bindtextdom.c (_nl_state_lock): Likewise.
 8853 
 8854         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
 8855         (_fpioconst_pow10): Likewise.
 8856 
 8857         * include/time.h (_tmbuf): Add attribute_hidden.
 8858 
 8859         * time/tzset.c (tzstring_list): Define as static.
 8860 
 8861         * include/time.h: Add attribute_hidden to __tzname_cur_max and
 8862         __use_tzfile declaration.
 8863 
 8864         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
 8865         and __wcsmbs_last_locale declaration.
 8866 
 8867 2002-02-25  Paul Eggert  <eggert@twinsun.com>
 8868 
 8869         * timezone/Makefile (tzbases): Move systemv from here...
 8870         (tzlinks): to here, since the entries in systemv were all changed
 8871         from Zone to Link lines in tz-2001a.  Bug reported (and patch
 8872         tested) by Peter Breitenlohner.
 8873 
 8874 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
 8875 
 8876         * time/tst-posixtz.c (tests): Add new tests.
 8877         (main): Test whether tzset() sets daylight properly.
 8878 
 8879 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
 8880 
 8881         * time/tzset.c (tz_compute): Move __daylight, __tzname and
 8882         __tzname_cur_max setting...
 8883         (tzset_internal): ...here.
 8884 
 8885 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
 8886 
 8887         * time/tzset.c (compute_change): Don't return any value.
 8888         (tz_compute): Likewise.  Don't handle southern hemisphere here.
 8889         (__tz_convert): But here.
 8890 
 8891 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
 8892 
 8893         * manual/examples/mkfsock.c: Include <string.h> as well.
 8894         Patch by Alain De Carolis <alaind@wseurope.com>.
 8895 
 8896 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
 8897 
 8898         * posix/regexec.c (re_match): Fix incorrect register sizes.
 8899         (re_search): Likewise.
 8900 
 8901 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
 8902 
 8903         * posix/regcomp.c (regfree): Remove a disused condition.
 8904         * posix/regex_internal.c (re_acquire_state): Likewise.
 8905         (re_acquire_state_context): Likewise.
 8906         (register_state): Remove a redundant malloc invocation.
 8907         * posix/regex_internal.h: (re_state_table_entry): Simplify
 8908         the structure.
 8909 
 8910 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
 8911 
 8912         * posix/regcomp.c (regcomp): Add __builtin_expect to error
 8913         handling conditions.
 8914         (regerror): Likewise.
 8915         (regfree): Likewise.
 8916         (re_compile_internal): Likewise.
 8917         (init_dfa): Likewise.
 8918         (init_word_char): Likewise.
 8919         (create_initial_state): Likewise.
 8920         (analyze): Likewise.
 8921         (analyze_tree): Likewise.
 8922         (duplicate_node): Likewise.
 8923         (calc_eclosure): Likewise.
 8924         (calc_eclosure_iter): Likewise.
 8925         (parse): Likewise.
 8926         (parse_reg_exp): Likewise.
 8927         (parse_branch): Likewise.
 8928         (parse_expression): Likewise.
 8929         (parse_subexp): Likewise.
 8930         (parse_dup_op): Likewise.
 8931         (parse_bracket_exp): Likewise.
 8932         (build_equiv_class): Likewise.
 8933         (build_charclass): Likewise.
 8934         (build_word_op): Likewise.
 8935         (fetch_number): Likewise.
 8936         (create_tree): Likewise.
 8937         (duplicate_tree): Likewise.
 8938         * posix/regex.c (BE): New macro.
 8939         * posix/regexec.c (re_match): Add __builtin_expect to error
 8940         handling conditions.
 8941         (re_match_2): Likewise.
 8942         (re_search): Likewise.
 8943         (re_search_internal): Likewise.
 8944         (check_matching): Likewise.
 8945         (proceed_next_node): Likewise.
 8946         (set_regs): Likewise.
 8947         (sift_states_backward): Likewise.
 8948         (add_epsilon_backreference): Likewise.
 8949         (transit_state): Likewise.
 8950         (transit_state_sb): Likewise.
 8951         (transit_state_mb): Likewise.
 8952         (transit_state_bkref): Likewise.
 8953         (transit_state_bkref_loop): Likewise.
 8954         (build_trtable): Likewise.
 8955         (group_nodes_into_DFAstates): Likewise.
 8956         (match_ctx_init): Likewise.
 8957         (match_ctx_add_entry): Likewise.
 8958         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
 8959         to error handling conditions.
 8960         (re_string_construct_toupper): Likewise.
 8961         (build_wcs_buffer): Likewise.
 8962         (build_wcs_upper_buffer): Likewise.
 8963         (build_upper_buffer): Likewise.
 8964         (re_string_translate_buffer): Likewise.
 8965         (re_node_set_alloc): Likewise.
 8966         (re_node_set_init_1): Likewise.
 8967         (re_node_set_init_2): Likewise.
 8968         (re_node_set_init_copy): Likewise.
 8969         (re_node_set_intersect): Likewise.
 8970         (re_node_set_init_union): Likewise.
 8971         (re_node_set_merge): Likewise.
 8972         (re_node_set_insert): Likewise.
 8973         (re_dfa_add_node): Likewise.
 8974         (re_acquire_state): Likewise.
 8975         (re_acquire_state_context): Likewise.
 8976         (create_new_state_common): Likewise.
 8977         (register_state): Likewise.
 8978         (create_ci_new_state): Likewise.
 8979         (create_cd_new_state): Likewise.
 8980         (re_string_context_at): Remove redundant condition.
 8981 
 8982 2002-01-16  Roger Sayle  <roger@eyesopen.com>
 8983 
 8984         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
 8985 
 8986         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
 8987 
 8988 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
 8989 
 8990         * sysdeps/i386/elf/configure.in: Fix comment.
 8991 
 8992         * sysdeps/sparc/sparc64/configure.in: New file.
 8993         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
 8994         if .dynamic comes before .got.
 8995         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
 8996 
 8997         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
 8998         HP_TIMING_ACCUM): Fix typos.
 8999 
 9000 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
 9001 
 9002         * string/strfry.c: Add some more randomness to the seed.
 9003         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
 9004 
 9005         * po/es.po: Update from translation team.
 9006         * po/fr.po: Likewise.
 9007 
 9008         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
 9009 
 9010         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
 9011         when determining type of format.
 9012         Patch by James Antill <james@anqd.org> [PR libc/2787].
 9013 
 9014 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
 9015 
 9016         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
 9017 
 9018 2002-03-11  Roland McGrath  <roland@frob.com>
 9019 
 9020         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
 9021 
 9022         * Versions.def (libc): Add GLIBC_2.2.6.
 9023         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
 9024         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
 9025         __errno_location instead of __hurd_errno_location, and don't inline it.
 9026         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
 9027         * hurd/errno.c: New file.
 9028         * hurd/Makefile (routines): Add errno.
 9029 
 9030 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
 9031 
 9032         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
 9033         ridiculously large widths and precisions [PR libc/3026].
 9034 
 9035 2002-03-11  Andreas Jaeger  <aj@suse.de>
 9036 
 9037         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
 9038         support.
 9039         Patch by Susanne Oberhauser <froh@SuSE.de>.
 9040 
 9041 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
 9042 
 9043         * inet/rexec.c (ahostbuf): Define as static.
 9044 
 9045         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
 9046         (__ctype32_wctrans): Likewise.
 9047         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
 9048         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
 9049         (__ctype32_wctrans): Likewise.
 9050         (__ctype32_width): Likewise.
 9051 
 9052         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
 9053         They were never exported anyway.
 9054 
 9055         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
 9056         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
 9057         exported.
 9058         * include/sys/gmon.h: Declare _gmonparam.
 9059 
 9060         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
 9061         symbols for getdents64.  They were never exported.
 9062 
 9063 2002-03-09  Roland McGrath  <roland@frob.com>
 9064 
 9065         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
 9066         Reported by Jon Arney <jarney1@cox.net>.
 9067 
 9068 2002-02-23  Roland McGrath  <roland@frob.com>
 9069 
 9070         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
 9071         declaration.
 9072         (__hurd_errno_location): Function removed.
 9073 
 9074 2002-03-06  Andreas Jaeger  <aj@suse.de>
 9075 
 9076         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
 9077         32-bit.
 9078 
 9079 2002-03-04  Andreas Jaeger  <aj@suse.de>
 9080 
 9081         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New file.
 9082 
 9083         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
 9084         x86-64.
 9085 
 9086         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New file.
 9087 
 9088         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New file.
 9089 
 9090         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New file.
 9091 
 9092         * sysdeps/x86_64/bits/setjmp.h: New file.
 9093 
 9094         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New file.
 9095 
 9096         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New file.
 9097 
 9098         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
 9099         for x86.
 9100         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
 9101         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
 9102 
 9103 2002-02-28  Bo Thorsen