* sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
[platform/upstream/glibc.git] / ChangeLog
index 73577f2..fe0f90c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,329 @@
+2002-09-24  Roland McGrath  <roland@redhat.com>
+
+       * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Move __libc_read,
+       __libc_write, __libc_lseek64, to ...
+       (ld: GLIBC_PRIVATE): ... here.
+
+       * csu/Versions: Use %include <tls.h> to get USE_TLS defined.
+       (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _errno, errno.
+       (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put errno here instead.
+       * resolv/Versions: Use %include <tls.h> to get USE_TLS defined.
+       (libc: GLIBC_2.0) [USE_TLS && HAVE___THREAD]: Remove _h_errno, h_errno,
+       and _res.
+       (libc: GLIBC_2.3) [USE_TLS && HAVE___THREAD]: Put h_errno, _res here.
+
+       * elf/tls-macros.h [__x86_64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
+       New macros for x86-64.
+
+       * sysdeps/unix/sysv/linux/alpha/bits/time.h: File removed.
+       It was indentical to the linux/bits/time.h file.
+
+       * nscd/nscd_gethst_r.c (nscd_gethst_r): Add a cast to silence warning.
+
+       * resolv/gethnamaddr.c (gethostbyaddr): Use socklen_t for SIZE.
+
+2002-09-23  Ulrich Drepper  <drepper@redhat.com>
+
+       * po/zh_CN.po: New file.
+
+2002-09-23  Roland McGrath  <roland@redhat.com>
+
+       * posix/unistd.h: Test [__USE_UNIX98] instead of [__USE_OPEN2K]
+       for gethostname declaration.
+
+       * catgets/open_catalog.c (__open_catalog): Don't use a value type
+       as the __builtin_expect expression, just the Boolean value.
+
+       * sysdeps/generic/wordexp.c (parse_glob): int -> size_t for counter.
+       * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
+       * resolv/res_hconf.c (arg_service_list, parse_line): Likewise.
+       * iconvdata/tst-loading.c (main): Likewise.
+       * catgets/tst-catgets.c (main): Likewise.
+       * stdlib/tst-xpg-basename.c (main): Likewise.
+       * stdlib/tst-bsearch.c (main): Likewise.
+       * stdio-common/test-vfprintf.c (main): Likewise.
+       * stdio-common/tst-rndseek.c (do_test): Likewise.
+       * libio/tst_swprintf.c (main): Likewise.
+       * libio/tst-fgetws.c (main): Likewise.
+       * wcsmbs/tst-mbrtowc.c (check_ascii): Likewise.
+       * time/tst-posixtz.c (main): Likewise.
+       * time/tst-strptime.c (test_tm): Likewise.
+       * time/tst-strptime.c (main): Likewise.
+       * time/tst-getdate.c (main): Likewise.
+       * posix/tst-mmap.c (main): Likewise.
+       * posix/tst-getaddrinfo.c (do_test): Likewise.
+       * io/tst-getcwd.c (do_test): Likewise.
+       * resolv/tst-aton.c (main): Likewise.
+       * inet/tst-network.c (main): Likewise.
+       * libio/tst-fgetws.c (main): Likewise.
+       * sysdeps/posix/sprofil.c (add_region): int -> unsigned int for I.
+       * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): int -> unsigned int
+       for PTYNO.
+
+       * stdlib/msort.c (qsort): Add a cast to silence warning.
+       * stdio-common/vfprintf.c (process_string_arg): Likewise.
+       * libio/oldfileops.c (_IO_old_do_write): Likewise.
+       * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Likewise.
+       * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
+       * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
+       * argp/argp-fmtstream.c (__argp_fmtstream_printf): Likewise.
+       * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
+       * sysdeps/unix/grantpt.c (grantpt): Likewise.
+       * libio/tst-widetext.c (main): Likewise.
+       * libio/tst-mmap2-eofsync.c (do_test): Likewise.
+       * rt/tst-aio.c (test_file): Likewise.
+       * rt/tst-aio64.c (test_file): Likewise.
+       * resolv/tst-aton.c (main): Likewise.
+
+       * catgets/catgetsinfo.h (CATGETS_MAGIC): Use U suffix on the constant.
+
+       * ctype/ctype.c (__ctype_tolower, __ctype_toupper): Cast to int32_t
+       instead of uint32_t in these macros.
+
+2002-09-22  Bruno Haible  <bruno@clisp.org>
+
+       * iconv/iconv_prog.c (main): Provide an error message that identifies
+       the wrong encoding.
+
+       * iconvdata/tscii.c: New file.
+       * iconvdata/testdata/TSCII: New file.
+       * iconvdata/testdata/TSCII..UTF8: New file.
+       * iconvdata/TSCII.precomposed: New file.
+       * iconvdata/TSCII.irreversible: New file.
+       * iconvdata/gconv-modules (TSCII): New module.
+       * iconvdata/Makefile (modules): Add TSCII.
+       (distribute): Add tscii.c.
+       * iconvdata/tst-table-from.c (try, utf8_decode, main): Double output
+       buffer size.
+       * iconvdata/tst-tables.sh: Add TSCII.
+       * iconvdata/TESTS: Add TSCII.
+
+       Revert 2002-04-18 patch.
+       * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
+       FROM_DIRECTION): Make the FROM direction stateful again.
+       * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
+       FROM_DIRECTION): Likewise.
+
+       * iconvdata/tst-e2big.c: New file.
+       * iconvdata/Makefile (tests): Add tst-e2big.
+
+2002-09-23  Roland McGrath  <roland@redhat.com>
+
+       * elf/Makefile (test-extras): Define this instead of test-srcs.
+       * Makerules (all-nonlib): Include $(test-extras) too.
+
+2002-09-21  Carlos O'Donell  <carlos@baldric.uwo.ca>
+
+       * sysdeps/hppa/abort-instr.h: New file.
+
+2002-09-22  Roland McGrath  <roland@frob.com>
+
+       * sysdeps/mach/hurd/Versions (ld: GLIBC_2.0): Remove duplicate entry.
+
+       * sysdeps/mach/hurd/dl-sysdep.c (_exit): Add alias __GI__exit.
+
+2002-09-22  Andreas Schwab  <schwab@suse.de>
+
+       * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Append, not overwrite.
+
+       * sysdeps/m68k/fpu/bits/mathinline.h (isgreater, isgreaterequal)
+       (isless, islessequal, islessgreater, isunordered) [GCC >= 3.1]:
+       Use GCC builtins.
+
+2002-09-21  Roland McGrath  <roland@redhat.com>
+
+       * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_PLATFORM):
+       Correct the value so it covers all platforms, and is computed
+       from _DL_PLATFORMS_COUNT rather than hard-wired.
+       From Andrew Suffield <asuffield@debian.org>.
+
+2002-09-20  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Avoid
+       locking when using mount tab file.
+       * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
+       * sysdeps/unix/sysv/linux/statvfs.c: Include <stdio_ext.h>.
+       * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
+
+       * elf/dl-init.c (_dl_init): Fix test of the size of the
+       preinit_array section.
+       (call_init): Optimize access to DT_INIT_ARRAY entry a bit.
+       Reported by Brian Cabral <cabral@ikuni.com>.
+
+2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
+
+       * sysdeps/powerpc/sysdep.h: Remove powerpc32 specific macros.
+       * sysdeps/powerpc/powerpc32/sysdep.h: New file.  Define powerpc32
+       specific macros copied from sysdeps/powerpc/sysdep.h.
+       * sysdeps/powerpc/powerpc64/sysdep.h: New file.  Define powerpc64
+       specific macros.
+       * sysdeps/unix/powerpc/sysdep.h: Include <bits/wordsize.h>.
+       [__WORDSIZE==64]: Include sysdeps/powerpc/powerpc64/sysdep.h.
+       [!__WORDSIZE==64]: Include sysdeps/powerpc/powerpc32/sysdep.h.
+
+2002-09-19  Bruno Haible  <bruno@clisp.org>
+
+       * intl/dcigettext.c (DCIGETTEXT): Restore errno only right before
+       returning.
+
+2002-09-17  Bruno Haible  <bruno@clisp.org>
+
+       * sysdeps/generic/utmp-equal.h: New file, extracted from utmp_file.c.
+       * sysdeps/generic/utmp_file.c (setutent_file): Invalidate last_entry
+       also on platforms with !HAVE_UT_TYPE.
+       (proc_utmp_eq): Remove function.
+       (internal_getut_r, pututline_file): Call __utmp_equal instead.
+
+2002-09-20  Bruno Haible  <bruno@clisp.org>
+
+       * abi-tags: Add support for FreeBSD with ABI OS value 3.
+       * elf/cache.c (print_entry): Support the GNU/FreeBSD ABI tag.
+
+2002-09-20  Roland McGrath  <roland@redhat.com>
+
+       * sysdeps/generic/gmp-mparam.h: Include <bits/wordsize.h>.
+       (BITS_PER_MP_LIMB, BYTES_PER_MP_LIMB, BITS_PER_LONGINT): Define in
+       terms of __WORDSIZE.
+       * sysdeps/x86_64/gmp-mparam.h: File removed.
+       * sysdeps/sparc/gmp-mparam.h: File removed.
+       * sysdeps/mips/mips64/gmp-mparam.h: File removed.
+       * sysdeps/ia64/gmp-mparam.h: File removed.
+       * sysdeps/alpha/gmp-mparam.h: File removed.
+
+2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
+
+       * sysdeps/powerpc/elf/libc-start.c: Use long in place of int for argc
+       load, so as to work on both 32-bit and 64-bit.  Remove unnecessary
+       casts.  Align __libc_stack_end to 8 bytes.
+
+2002-09-20  Roland McGrath  <roland@redhat.com>
+
+       * sysdeps/powerpc/fpu/s_lrint.c: Use strong_alias/weak_alias macros
+       instead of asm for lrintf, __lrintf aliases.
+
+       * sysdeps/powerpc/fpu/s_lrint.c (__lrint): Change union long array to
+       int array for 32-/64-bit compatibility.
+       From Steven Munroe  <sjmunroe@us.ibm.com>.
+
+2002-09-17  Bruno Haible  <bruno@clisp.org>
+
+       * sysdeps/generic/ifreq.h (__if_nextreq): New function.
+       * sysdeps/unix/sysv/linux/ifreq.h (__if_nextreq): New function.
+       * sysdeps/mach/hurd/ifreq.h (__if_nextreq): New function.
+       * sysdeps/gnu/ifaddrs.c (getifaddrs): Use __if_nextreq
+       for iterating through the list of interfaces.
+       * resolv/res_hconf.c (_res_hconf_reorder_addrs): Likewise.
+
+2002-09-20  Roland McGrath  <roland@redhat.com>
+
+       * sysdeps/unix/grantpt.c (pts_name): Set errno when __ptsname_r fails.
+       Reported by Bruno Haible <bruno@clisp.org>.
+
+       * sysdeps/unix/bsd/bsd4.4/isatty.c: New file.
+
+       * sysdeps/unix/bsd/isatty.c (__isatty): Don't save and restore errno.
+       * sysdeps/unix/bsd/ptsname.c (__ptsname_r): Return errno value from
+       isatty unmodified.  Reported by Bruno Haible <bruno@clisp.org>.
+
+2002-09-20  Steven Munroe  <sjmunroe@us.ibm.com>
+
+       * sysdeps/powerpc/bits/setjmp.h [__WORDSIZE]: Add 64-bit jmpbuf.
+       * sysdeps/powerpc/bits/wordsize.h: New file.
+       * sysdeps/powerpc/fpu/bits/mathinline.h (lrint, lrintf): Change long
+       array to int array for 32-/64-bit compatibility.
+
+2002-09-20  Roland McGrath  <roland@redhat.com>
+
+       * login/programs/utmpdump.c: Don't include <error.h>, <errno.h>.
+
+       * sysdeps/generic/utimes.c (__utimes): Don't check TVP for null.
+       Reported by Bruno Haible <bruno@clisp.org>.
+
+       * sysdeps/generic/ifreq.h (__ifreq): Compute termination condition
+       before doubling RQ_LEN.
+       * sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
+       Reported by Bruno Haible <bruno@clisp.org>.
+
+2002-09-18  Bruno Haible  <bruno@clisp.org>
+
+       * login/logout.c (logout): Don't assume ut_time has the same size as
+       a time_t.
+       * login/logwtmp.c (logwtmp): Likewise.
+
+       * sysdeps/pthread/configure: New file, moved here from
+       linuxthreads/sysdeps/unix/sysv/linux/configure.
+
+2002-09-19  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/unix/sysv/linux/_exit.c: Include <errno.h>.
+       (_exit): Don't use ABORT_INSTRUCTION if it is not defined.
+       Reported by Glen Nakamura <glen@imodulo.com>.
+
+2002-09-19  Neal H. Walfield  <neal@cs.uml.edu>
+
+       * sysdeps/mach/hurd/fork.c (__fork): Do not free the signal
+       thread's sigstate data structure if it has been allocated.
+
+2002-09-19  Roland McGrath  <roland@redhat.com>
+
+       * include/libc-symbols.h [HAVE_ASM_SET_DIRECTIVE]
+       [! HAVE_ASM_GLOBAL_DOT_NAME] (__hidden_dot_def1): Fix typo'd name.
+
+2002-09-18  Ulrich Drepper  <drepper@redhat.com>
+
+       * version.h (VERSION): Bump to 2.2.94.
+
+       * sysdeps/powerpc/fpu/Dist: Move fprrest.S and fprsave.S to...
+       * sysdeps/powerpc/powerpc32/fpu/Dist: ...here.  New file.
+       * sysdeps/unix/sysv/linux/powerpc/Dist: Move kernel_stat.h to...
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
+
+       * sysdeps/i386/Makefile: Remove obsolete db2 rules.
+
+       * sysdeps/unix/sysv/linux/Makefile: Add exit-thread.S.
+
+       * sysdeps/unix/sysv/linux/powerpc/Dist: Add ldd-rewrite.sh.
+
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: New file.
+
+2002-09-19  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/wordsize-32/Makefile: New file.
+       * sysdeps/arm/Makefile: Removed.
+       * sysdeps/i386/Makefile (sysdep_routines, shared-only-routines):
+       Don't add divdi3 here.
+       * sysdeps/m68k/Makefile: Likewise.
+       * sysdeps/powerpc/powerpc32/Makefile: Likewise.
+       * sysdeps/sh/Makefile: Likewise.
+       * sysdeps/s390/s390-32/Makefile: Likewise.
+
+2002-09-18  Roland McGrath  <roland@redhat.com>
+
+       * locale/lc-ctype.c (_nl_postload_ctype): Add compat_symbol decls for
+       the __ctype_* compat symbols, so the relocs generated bind to the
+       right versioned global symbol in the shared object.
+
+       * elf/do-rel.h (elf_dynamic_do_rel): Mask off 0x8000 bit (hidden flag)
+       from the value taken from the DT_VERSYM table.
+       * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
+       * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Likewise.
+       (RESOLVE_GOTSYM): Likewise.
+
+       * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
+       Add libc_hidden_def.
+       * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
+       * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
+       * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
+       * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
+       * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
+       * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
+       * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
+       * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
+
 2002-09-18  Ulrich Drepper  <drepper@redhat.com>
 
+       * include/signal.h: Add libc_hidden_proto for __libc_sigaction.
+
        * sysdeps/unix/sysv/linux/sigaction.c: If SIGCANCEL is defined
        define sigaction and __sigaction as wrappers around
        __libc_sigaction which rejects changing SIGCANCEL.