2000-12-27 Ulrich Drepper * dlfcn/dlerror.c (dlerror): Always create output string which includes object file name. * sysdeps/alpha/alphaev6/memcpy.S: Don't go through unrolled loop if we would go through it only once. Patch by Rick Gorton . * sysdeps/alpha/alphaev67/strncat.S: Fix handling of numeric parameter. Patch by Richard Henderson . 2000-12-27 Jakub Jelinek * malloc/malloc.c (memmove): Add prototypes. (MALLOC_MEMMOVE): Define. (chunk_realloc): Use it instead of MALLOC_COPY if source and destination might overlap. 2000-12-27 Andreas Jaeger * stdio-common/printf_fp.c (__printf_fp): Add prototype for nested function. * elf/dl-load.c (_dl_map_object_from_fd): Likewise. * locale/programs/locale.c (show_locale_vars): Likewise. (show_info): Likewise. * locale/programs/ld-collate.c (collate_output): Likewise. * locale/programs/ld-ctype.c (set_class_defaults): Likewise. * elf/dl-deps.c (_dl_map_object_deps): Likewise. * stdlib/rpmatch.c (rpmatch): Likewise. * setjmp/tst-setjmp.c: Make local functions static. * setjmp/jmpbug.c: Likewise. * signal/tst-signal.c: Likewise. * stdio-common/tfformat.c: Likewise. * string/tst-svc.c: Likewise. * time/clocktest.c: Likewise. * time/tst-getdate.c: Likewise. * dirent/list.c: Likewise. * dirent/opendir-tst1.c: Likewise. * posix/runtests.c: Likewise. * posix/tst-getaddrinfo.c: Likewise. * posix/tst-chmod.c: Likewise. * posix/wordexp-test.c: Likewise. * misc/tst-efgcvt.c: Likewise. * timezone/tst-timezone.c: Likewise. * rt/tst-clock.c: Likewise. * rt/tst-shm.c: Likewise. * rt/tst-aio2.c: Likewise. * rt/tst-aio3.c: Likewise. * rt/tst-aio4.c: Likewise. * rt/tst-aio5.c: Likewise. * dlfcn/failtest.c: Add prototype for foo. * dlfcn/glrefmain.c: Add prototype for do_test. * dlfcn/tst-dladdr.c: Add prototype for do_test. * string/test-ffs.c (main): Add prototype for nested function. * sunrpc/des_soft.c: Include rpc/des_crypt.h for prototype. * nss/XXX-lookup.c: Add prototype to shut up GCC. * include/netinet/ether.h (DECLARE_NSS_PROTOTYPES): Fix setetherent prototype. Add internal interfaces. * nis/nss_nis/nis-ethers.c (_nss_nis_setetherent): Likewise. * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent): Likewise. * resolv/res_data.c: Don't add (conflicting) prototypes for _LIBC. * nis/nis_intern.h: Add prototype for __pmap_getnisport. * nss/nss_files/files-ethers.c: Include netinet/ether.h to get prototypes, remove struct etherent since it's declared in ether.h. Fix ntohost declaration. * elf/dl-profile.c (_dl_mcount): Add empty statement to shut up GCC. * include/getopt.h: Add internal interfaces. * include/termios.h: Likewise. * include/resolv.h: Likewise. * include/netdb.h: Likewise. * include/grp.h: Likewise. * include/pwd.h: Likewise. * include/shadow.h: Likewise. * include/rpc/netdb.h: Likewise. * include/setjmp.h: Likewise. * include/stdio.h: Add prototypes for compatibility functions. * include/grp.h: Likewise. * include/pwd.h: Likewise. * include/shadow.h: Likewise. * include/fenv.h: Define internal interfaces. 2000-12-27 Ulrich Drepper * sysdeps/generic/bits/byteswap.h (__bswap_64): Handle constant argument case separately. * sysdeps/i386/bits/byteswap.h (__bswap_64): Likewise. 2000-12-27 Andreas Jaeger * include/sys/wait.h: Add some prototypes. * Rules (dummy.c): Create also prototype to shut up GCC. 2000-12-27 Andreas Jaeger * sysdeps/mach/hurd/if_index.c (__protocol_available): Uncomment, it's not needed at the moment. * sysdeps/generic/if_index.c (__protocol_available): Likewise. * sysdeps/unix/sysv/linux/if_index.c (__protocol_available): Likewise. 2000-12-26 Andreas Jaeger * libio/getc_u.c: Include stdio.h via system path to get internal prototypes. * libio/getwc_u.c: Likewise. * stdlib/strfmon.c: Fix prototype of __printf_fp. * stdio-common/vfprintf.c (process_arg): Move __printf_fphex and __printf_fp prototypes to ... * include/printf.h: ...here. * include/stdio.h: Add some internal prototypes to shut up GCC. * include/stdlib.h: Likewise. * sysdeps/posix/sigpause.c (__sigpause): Use ISO C prototype declaration. * include/signal.h: Add prototypes for internal sigpause interfaces. 2000-12-26 Ulrich Drepper * sysdeps/generic/bits/byteswap.h (__bswap_64): Make it usable for 64bit platforms. Reported by Dave Gilbert . * string/Makefile (tests): Add tst-bswap. * string/tst-bswap.c: New file. 2000-12-11 Bruno Haible * Makefile ($(inst_includedir)/gnu/stubs.h): Sort in the C locale. 2000-12-26 Ulrich Drepper * sunrpc/Makefile (rpcgen-cmd): Use single quotes in sed call. Patch by Ed Connell . 2000-12-24 Ulrich Drepper * locale/iso-639.def: Correct one entry. Add two missing entries. * locale/iso-4217.def: Change entry for Eritrea. Reported by Daniel Yacob . 2000-12-23 Ben Collins * manual/charset.texi (Extended Char Intro): Fix typo in ISO 6937 description. * manual/stdio.texi (Dynamic Output): Document the return value of asprintf. Also make the asprintf/snprintf examples a little better (check for some error returns). 2000-12-22 Andreas Jaeger * include/stdio.h: Add __ftrylockfile prototype. 2000-12-21 H.J. Lu * sysdeps/ia64/fpu/math_ldbl.h (ieee_long_double_shape_type): Make sign_exponent element signed. * sysdeps/ieee754/ldbl-96/math_ldbl.h (ieee_long_double_shape_type): Fix a typo. * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Remove dead branch. 2000-12-21 Andreas Jaeger * nis/nss_nisplus/nisplus-ethers.c (struct etherent): Removed. * inet/ether_hton.c: Likewise * inet/ether_ntoh.c: Likewise. * nis/nss_nis/nis-ethers.c (_nss_nis_getntohost_r): Fix declaration to match prototype. * include/netinet/ether.h (struct etherent): Declare here so that all implementations use the same struct. * nis/nss_nis/nis-ethers.c: Include netinet/ether.h to get prototypes. (struct ether): Removed. Use struct etherent instead of ether everywhere. * include/rpc/auth.h (DECLARE_NSS_PROTOTYPES): New. * include/rpc/auth_des.h (DECLARE_NSS_PROTOTYPES): New. * sunrpc/publickey.c: Include auth_des.h for prototypes. 2000-12-20 Ulrich Drepper * math/test-misc.c: Add more tests for nextafter functions. * sysdeps/i386/fpu/s_nextafterl.c: Handle change from denormal to normal correctly. Correct test for sign. Based on a patch by HJ Lu. 2000-12-19 Ulrich Drepper * Makeconfig (preprocess-version): Add -traditional to gcc call. Cleanup sed calls. 2000-12-19 Andreas Jaeger * include/netinet/ether.h (DECLARE_NSS_PROTOTYPES): New. * nis/nis_intern.h: Add prototype for __do_niscall3. * nis/nss_nis/nis-rpc.c (_nss_nis_setrpcent): Fix declaration to match prototype. * include/netdb.h (DECLARE_NSS_PROTOTYPES): Reformat. * include/rpc/netdb.h (DECLARE_NSS_PROTOTYPES): New. * include/aliases.h (DECLARE_NSS_PROTOTYPES): New. 2000-12-18 Ulrich Drepper * math/test-misc.c: Add more tests for nextafter. * sysdeps/i386/fpu/s_nextafterl.c: Handle decrement for x<0 correctly. * sysdeps/ieee754/ldbl-96/math_ldbl.h (ieee_long_double_shape_type): Make sign_exponent element signed. * manual/message.texi: Add Estonian to plural overview list. Correct rule for Slavic languages. Patch by Stanislav Brabec . * nis/nss_nis/nis-netgrp.c: Remove unnecessary initializations. 2000-12-18 Andreas Jaeger * test-skeleton.c: Use temp_name_list instead of name_list to avoid collision with name_list from inet/netgroup.h. * nss/nss_files/files-network.c (NEED_H_ERRNO): Define. * include/grp.h (DECLARE_NSS_PROTOTYPES): New. * include/pwd.h (DECLARE_NSS_PROTOTYPES): New. * include/netdb.h (DECLARE_NSS_PROTOTYPES): New. * include/shadow.h (DECLARE_NSS_PROTOTYPES): New. * hesiod/nss_hesiod/hesiod-proto.c (_nss_hesiod_setprotoent): Fix declaration to match prototype. * hesiod/nss_hesiod/hesiod-pwd.c (_nss_hesiod_setpwent): Likewise. * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_setgrent): Likewise. * hesiod/nss_hesiod/hesiod-service.c (_nss_hesiod_setservent): Likewise. * nis/nss_nis/nis-grp.c (_nss_nis_setgrent): Likewise. * nis/nss_nis/nis-pwd.c (_nss_nis_setpwent): Likewise. * nis/nss_nis/nis-proto.c (_nss_nis_setprotoent): Likewise. * nis/nss_nis/nis-service.c (_nss_nis_setservent): Likewise. (_nss_nis_getservbyport_r): Likewise. * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent): Likewise. * nis/nss_nis/nis-spwd.c (_nss_nis_setspent): Likewise. * nis/nss_nis/nis-network.c (_nss_nis_getnetent_r): Likewise. (_nss_nis_setnetent): Likewise * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise. (_nss_nis_endnetgrent): Likewise. * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_endnetgrent): Likewise. (_nss_nisplus_setnetgrent): Likewise. * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Likewise. * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_setpwent): Likewise. * nis/nss_nisplus/nisplus-grp.c (_nss_nisplus_setgrent): Likewise. * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_setnetent): Likewise. * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_sethostent): Likewise. * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_setservent): Likewise. * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_setprotoent): Likewise. * nis/nss_compat/compat-spwd.c (_nss_compat_setspent): Likewise. * nis/nss_compat/compat-pwd.c (_nss_compat_setpwent): Likewise. * nis/nss_compat/compat-grp.c (_nss_compat_setgrent): Likewise. * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise. * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Likewise. (_nss_dns_getnetbyaddr_r): Likewise. 2000-12-17 Andreas Jaeger * sysdeps/generic/k_sinl.c (__kernel_sinl): Fix functions parameter. * sysdeps/unix/sysv/linux/shm_open.c (freeit): Make static and add unused attribute to shut up gcc warnings. * sysdeps/generic/k_sinl.c: Include math_private for prototypes. * sysdeps/generic/k_tanl.c: Likewise. * sysdeps/generic/k_cosl.c: Likewise. * sysdeps/generic/e_j0l.c: Likewise. * sysdeps/generic/e_j1l.c: Likewise. * sysdeps/generic/e_jnl.c: Likewise. * sysdeps/generic/e_lgammal_r.c: Likewise. * elf/vismain.c: Move prototypes for functions in vismod*.c to vismod.h. * elf/vismod.h: New file. * elf/Makefile (distribute): Add vismod.h. * elf/vismod1.c: Include vismod.h. * elf/vismod2.c: Likewise. * elf/vismod3.c: Likewise. * elf/constload3.c: Add prototype declarations to shut up gcc. * elf/failobj.c: Likewise. * elf/nodelmod3.c: Likewise. * elf/filtmod1.c: Likewise. * elf/filtmod2.c: Likewise. * elf/reldepmod1.c: Likewise. * elf/reldepmod2.c: Likewise. * elf/reldepmod3.c: Likewise. * elf/reldepmod4.c: Likewise. * elf/unload2dep.c: Likewise. * elf/unload2mod.c: Likewise. * elf/ltglobmod1.c: Likewise. * elf/pathoptobj.c: Likewise. * elf/neededobj1.c: Likewise. * elf/neededobj2.c: Likewise. * elf/neededobj3.c: Likewise. * elf/neededobj4.c: Likewise. * elf/nextmod1.c: Likewise. * elf/nextmod2.c: Likewise. * locale/programs/ld-collate.c (collate_finish): Don't use labels at end of compound statement. * locale/programs/locale.c (show_info): Likewise. * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise. 2000-12-16 Jakub Jelinek * catgets/gencat.c (read_input_file): Avoid calling obstack_free with a pointer not returned by obstack_ functions. 2000-12-16 Ulrich Drepper * sysdeps/unix/sysv/aix/bits/stat.h (struct stat): Align with AIX version. (struct stat64): Likewise. Reported by Michael Keezer . * timezone/asia: Update from tzdata2000h. * timezone/australasia: Likewise. * timezone/backward: Likewise. * timezone/europe: Likewise. * timezone/northamerica: Likewise. * timezone/southamerica: Likewise. * timezone/zone.tab: Likewise. 2000-12-14 Jakub Jelinek * io/ftw.c (ftw_dir): If process_entry returned non-zero result and dir.stream is NULL, only free dir.content. * io/ftwtest.c (cb, main): Add --early-exit option to test it. * io/ftwtest-sh: Test with --early-exit. 2000-12-13 Jakub Jelinek * misc/efgcvt.c (FCVT_MAXDIG): Define. (FCVT_BUFPTR): New variable. (fcvt): If fcvt_r returns -1 on the static short buffer, try to malloc a sufficiently large one and retry. (free_mem): New function. * misc/qefgcvt.c (FCVT_MAXDIG): Define. * misc/tst-efgcvt.c (fcvt_tests): Add new test. 2000-12-15 Ulrich Drepper * misc/dirname.c (dirname): Fix search for second to last slash. 2000-12-13 Andreas Jaeger * misc/tst-dirname.c (main): Fix typo in test to really use the examples from Unix98. Reported by Michael Kerrisk . 2000-12-09 H.J. Lu * sysdeps/ia64/fpu/s_fabs.S: New file. * sysdeps/ia64/fpu/s_fabsf.S: New file. * sysdeps/ia64/fpu/s_fabsl.S: New file. 2000-12-15 Andreas Jaeger * stdio-common/scanf9.c (main): Reformat and change to avoid warnings. * stdio-common/tstdiomisc.c: Make local functions static. * stdio-common/tst-printf.c: Likewise. * elf/constload2.c: Add prototype declarations to shut up gcc. * elf/dep1.c: Likewise. * elf/dep2.c: Likewise. * elf/dep3.c: Likewise. * elf/dep4.c: Likewise. * elf/ltglobmod2.c: Likewise. * libio/fmemopen.c: Make local functions static. * elf/Makefile (distribute): Added testobj.h. * elf/testobj.h: New file. * elf/testobj1.c: Include testobj.h and move prototype declarations to testobj.h. * elf/testobj2.c: Likewise. * elf/testobj3.c: Likewise. * elf/testobj4.c: Likewise. * elf/testobj5.c: Likewise. * elf/testobj6.c: Likewise. * elf/testobj1_1.c: Likewise. * elf/preloadtest.c: Likewise. 2000-12-15 Ben Collins * misc/sys/cdefs.h: Fix thinko in checks for flexarr macros. Patch by Akim Demaille in Debian bug report. 2000-12-14 H.J. Lu * sysdeps/ieee754/flt-32/s_sincosf.c (__sincosf): The exponent field in a float is 8 bits, not 11 bits. 2000-12-13 Jakub Jelinek * math/test-misc.c (main): Adjust m for IEEE quad long double. 2000-12-13 Andreas Jaeger * manual/message.texi (Using gettextized software): Fix typo. * manual/charset.texi (Converting a Character): Fix mbstouwcs program to compile. Patch by Martin Buchholz . * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Fix typo. Reported by Michael Kerrisk . 2000-12-11 Andreas Jaeger * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Declare kernel_sigset_t and use it. Patch by Hiroyuki Machida . 2000-12-10 Richard Henderson * sysdeps/alpha/alphaev67/fpu/Implies: New file. * sysdeps/alpha/alphaev6/fpu/e_sqrtf.S: New file. * sysdeps/alpha/alphaev6/fpu/e_sqrt.S: New file. 2000-12-10 Jakub Jelinek * sysdeps/alpha/htonl.S: Fix a typo. 2000-12-10 Jakub Jelinek * sysdeps/alpha/alphaev6/stxcpy.S: Exchange t8 with t10. 2000-12-10 Andreas Jaeger * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Fixed cast as suggested by Jakub Jelinek and Ulrich Drepper . 2000-12-09 Andreas Jaeger * sysdeps/unix/sysv/linux/mips/sigaction.c: New file. * sysdeps/unix/sysv/linux/mips/sys/acct.h: Removed, we can use the generic version. Patches by Hiroyuki Machida . * locale/programs/ld-collate.c (handle_ellipsis): Fix format string. * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Fix format string. * nscd/hstcache.c (addhstbyname): Add cast to avoid warning. * nscd/connections.c (handle_request): Likewise. * nscd/pwdcache.c (addpwbyname): Likewise. * nscd/grpcache.c (addgrbyname): Likewise. * nscd/nscd_conf.c (nscd_parse_file): Remove extra argument. 2000-12-09 Ulrich Drepper * string/stratcliff.c: Add tests for stpncpy, memcpy, and mempcpy. * Makeconfig (default_cflags): Make -O2 the default for stable releases. 2000-12-08 H.J. Lu * sysdeps/ia64/fpu/s_isinfl.S: Renamed to ... * sysdeps/ia64/fpu/s_isinf.S: This. Add a .pred.rel.mutex note to avoid false report. * sysdeps/ia64/fpu/s_isnanl.S: Renamed to ... * sysdeps/ia64/fpu/s_isnan.S: This. * sysdeps/ia64/fpu/s_fpclassify.S: New file. * sysdeps/ia64/fpu/s_fpclassifyf.S: New file. * sysdeps/ia64/fpu/s_fpclassifyl.S: New file. * sysdeps/ia64/fpu/s_isinff.S: New file. * sysdeps/ia64/fpu/s_isinfl.S: New file. * sysdeps/ia64/fpu/s_isnanf.S: New file. * sysdeps/ia64/fpu/s_isnanl.S: New file. * sysdeps/ia64/fpu/s_finite.S: New file. * sysdeps/ia64/fpu/s_finitef.S: New file. * sysdeps/ia64/fpu/s_finitel.S: New file. * sysdeps/ia64/fpu/s_signbit.S: New file. * sysdeps/ia64/fpu/s_signbitf.S: New file. * sysdeps/ia64/fpu/s_signbitl.S: New file. * sysdeps/ia64/fpu/s_copysign.S: New file. * sysdeps/ia64/fpu/s_copysignf.S: New file. * sysdeps/ia64/fpu/s_copysignl.S: New file. 2000-12-08 Ulrich Drepper * math/libm-test.inc (main): Fix typos in messages. * string/stratcliff.c: Add test for rawmemchr. 2000-12-08 Jakub Jelinek * elf/dl-open.c (_dl_open): If objname points right after errstring, allocate it together with errstring using alloca. * elf/dl-error.c (_dl_signal_error): If malloc failed, set objname to "", because it might point to local stack. 2000-12-05 H.J. Lu * nss/Makefile (routines): Add getnssent and getnssent_r. * nss/nsswitch.h (__nss_setent): New internal NSS function. (__nss_endent): Likewise. (__nss_getent_r): Likewise. (__nss_getent): Likewise. * nss/getnssent_r.c: New file. * nss/getnssent.c: New file. * nss/getXXent.c (H_ERRNO_VAR): Updated. (GETFUNC_NAME): Updated to call __nss_getent (). * nss/getXXent_r.c (H_ERRNO_VAR_P): New. (STAYOPEN_TMPVAR): Updated. (STAYOPEN_VAR): Updated. (SETFUNC_NAME): Updated to call __nss_setent (). (ENDFUNC_NAME): Updated to call __nss_endent (). (INTERNAL (REENTRANT_GETNAME)): Updated to call __nss_getent_r (). 2000-12-08 Andreas Jaeger * nscd/dbg_log.h (dbg_log): Correct attribute. 2000-12-08 Jakub Jelinek * elf/dl-load.c (fillin_rpath): Don't assume there is '\0' at cp + len. Compute where from dirname. Reported by . 2000-12-08 Richard Henderson * sysdeps/alpha/_mcount.S: Fix typo. * sysdeps/alpha/strncpy.S: Likewise. * sysdeps/alpha/alphaev6/Implies: New file. * sysdeps/alpha/alphaev67/Implies: New file. * sysdeps/alpha/alphaev67/ffs.S: New file. * sysdeps/alpha/alphaev67/ffsll.S: New file. * sysdeps/alpha/alphaev67/rawmemchr.S: New file. * sysdeps/alpha/alphaev67/stpcpy.S: New file. * sysdeps/alpha/alphaev67/stpncpy.S: New file. * sysdeps/alpha/rawmemchr.S: New file. * sysdeps/alpha/strcat.S: Tail call to __stxcpy. * sysdeps/alpha/strcpy.S: Likewise. From GMP 3.1.1: * sysdeps/alpha/alphaev6/addmul_1.s: New file. From rick.gorton@alpha-processor.com: * sysdeps/alpha/alphaev6/memchr.S: New file. * sysdeps/alpha/alphaev6/memcpy.S: New file. * sysdeps/alpha/alphaev6/memset.S: New file. * sysdeps/alpha/alphaev6/stxcpy.S: New file. * sysdeps/alpha/alphaev6/stxncpy.S: New file. * sysdeps/alpha/alphaev67/strcat.S: New file. * sysdeps/alpha/alphaev67/strchr.S: New file. * sysdeps/alpha/alphaev67/strlen.S: New file. * sysdeps/alpha/alphaev67/strncat.S: New file. * sysdeps/alpha/htonl.S: Use a shorter sequence. 2000-12-08 Jakub Jelinek * inet/getnameinfo.c (getnameinfo): Fix NI_NOFQDN support. Reported by . 2000-12-07 Jes Sorensen * sysdeps/ia64/elf/start.S (__data_start): Add __data_start variable. Pointed out by Hans Boehm. 2000-12-07 H.J. Lu * elf/dl-version.c (match_symbol): Check map->l_name[0] for printing. 2000-12-07 Andreas Jaeger * misc/error.c: Add format attributes for __error and __error_at_line. * nscd/dbg_log.h: Add format attribute. 2000-12-08 Ulrich Drepper * misc/sys/syslog.h: Add format attributes to syslog and vsyslog. Patch by Joseph S. Myers . 2000-12-07 Dan Pop * sysdeps/ia64/strcpy.S: Fix a bug in a recovery code sequence. 2000-12-06 Ulrich Drepper * sysdeps/unix/sysv/aix/Makefile [$(subdir)==misc] (sysdep_routines): Add uitrunc. * sysdeps/unix/sysv/aix/uitrunc.c: New file. Patches by Michael Keezer . 2000-12-06 Roland McGrath * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't clobber ARG as we copy in argument data, since it will be used to copy out too (for INOUT). Reported by Marcus Brinkmann . * sysdeps/mach/hurd/ioctl.c: Include . (__ioctl): Use uintptr_t instead of unsigned long int. 2000-12-06 Jim Wilson * stdlib/l64a.c (l64a): Truncate M to 32-bit value. 2000-12-06 Ulrich Drepper * stdio-common/printf_fp.c (__printf_fp): Handle decimal point in x.5 rounding correctly. 2000-12-06 Mark Kettenis * stdio-common/perror.c (perror): Conditionalize code dealing with wide-oriented streams on USE_IN_LIBIO. 2000-12-06 Mark Kettenis * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): Mark as internal_function. 2000-12-05 Ulrich Drepper * sysdeps/alpha/elf/start.S (__data_start): Define. 2000-12-05 H.J. Lu * nss/getXXent_r.c (setup): Change the return type to int. 2000-12-05 Ulrich Drepper * sysdeps/unix/sysv/aix/Makefile [$(subdir)==misc] (sysdep_routines): Add restf and savef. * sysdeps/unix/sysv/aix/restf.c: New file. * sysdeps/unix/sysv/aix/savef.c: New file. Patches by Michael Keezer . * sysdeps/unix/opendir.c (__opendir): Don't use o_directory_works if O_DIRECTORY is not defined. Patch by Michael Keezer . * include/libc-symbols.h (C_SYMBOL_DOT_NAME): Define. Patch by Michael Keezer . * locale/programs/linereader.c (get_toplvl_escape): Recognize more than 4 bytes in escape sequence. Patch by Shinya Hanataka . 2000-12-05 Andreas Jaeger * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't set mips2. * sysdeps/unix/sysv/linux/mips/sysdep.h: New file. * sysdeps/unix/sysv/linux/mips/sys/syscall.h: Removed. * sysdeps/unix/mips/sysdep.h: Use SYS_ify. Patches by Maciej W. Rozycki . * elf/dl-misc.c (_dl_sysdep_read_whole_file): Mark as internal_function. * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise. * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): Likewise. * sysdeps/generic/dl-cache.c: Remove declaration of _dl_sysdep_read_whole_file. * elf/dl-load.c (_dl_map_object): Remove declaration of _dl_load_cache_lookup. * sysdeps/generic/ldsodefs.h: Add declarations of _dl_load_cache_lookup, _dl_unload_cache, _dl_sysdep_read_whole_file, _dl_sysdep_start and _dl_sysdep_start_cleanup. * elf/rtld.c: Remove prototypes that are defined in ldsodefs.h now. * elf/dl-misc.c: Include to get prototypes. * sysdeps/generic/dl-environ.c: Likewise. * stdio-common/printf_fp.c: Include instead of . * math/atest-exp.c: Likewise. * math/atest-exp2.c: Likewise. * math/atest-sincos.c: Likewise. * stdio-common/_itoa.c: Likewise. * stdio-common/_itowa.c: Likewise. * include/gmp.h: New file with internal prototypes. * sysdeps/generic/longjmp.c: Move _longjmp_unwind declaration from here to... * include/setjmp.h: ...here. * locale/Makefile (routines): Remove codeset_name since it's not needed anywhere. * locale/codeset_name.c: Removed. 2000-12-05 Ulrich Drepper * sysdeps/unix/sysv/aix/sys/param.h: Define MAXHOSTNAMELEN here. 2000-12-05 Andreas Jaeger * sysdeps/unix/sysv/linux/sys/param.h: Revert last patch. 2000-12-05 Martin Schwidefsky * sysdeps/unix/sysv/linux/s390/mmap64.S: Use mmap if mmap2 isn't available. 2000-12-05 Andreas Jaeger * nss/test-netdb.c: Mark local functions as static to avoid warnings. (main): Use return to silence warning. * stdlib/test-canon.c (check_path): Mark as static to avoid warning. * stdio-common/test-popen.c: Mark local functions as static to avoid warnings. (main): Use return to silence warning. * stdlib/testsort.c (compare): Mark as static to avoid warning. * assert/test-assert.c: Mark local functions as static to avoid warnings. * assert/test-assert-perr.c: Likewise. * math/libm-test.inc (main): Use return to silence warnings. 2000-12-04 Ulrich Drepper * math/fenv.h: Fix typo in comment. * math/test-misc.c (main): Add a few more over and underflow tests for scalb. * sysdeps/i386/fpu/e_scalb.S: Handle NaN as first parameter correctly. * sysdeps/i386/fpu/e_scalbf.S: Likewise. * sysdeps/i386/fpu/e_scalbl.S: Likewise. * math/w_scalb.c: Don't use matherr except in SVID mode. * math/w_scalbf.c: Likewise. * math/w_scalbl.c: Likewise. * math/test-misc.c: Add test for NaN and scalbl. Reported by Fred J. Tydeman . 2000-12-04 Ulrich Drepper * configure.in: Define HAVE_ASM_GLOBAL_DOT_NAME for AIX. * config.h.in: Add HAVE_ASM_GLOBAL_DOT_NAME. * include/libc-symbols.h (strong_alias): Define special version for HAVE_ASM_GLOBAL_DOT_NAME. (weak_alias): Likewise. * sysdeps/powerpc/bsd-setjmp.S: Use strong_alias not .set. * sysdeps/unix/sysv/aix/Makefile [$(subdir)==login] (sysdep_routines): Add setutxent, getutxent, endutxent, getutxid, getutxline, pututxline, and utmpxname. * sysdeps/unix/sysv/aix/fchdir.c: Define __fchdir. * sysdeps/unix/sysv/aix/lseek.c: Define __libc_lseek alias. * sysdeps/unix/sysv/aix/open.c: Define __libc_open alias. * sysdeps/unix/sysv/aix/pread.c: Define pread alias. * sysdeps/unix/sysv/aix/pread64.c: Define pread64 alias. * sysdeps/unix/sysv/aix/sysdep.h (JUMPTARGET): Use C_TEXT. * sysdeps/unix/sysv/aix/bits/types.h: Define __clockid_t and __timer_t. * sysdeps/unix/sysv/aix/bits/utmp.h: Cleanup. Add comments. * sysdeps/unix/sysv/linux/sys/param.h (MAXHOSTNAMELEN): Define. Patches by Michael Keezer . 2000-12-04 H.J. Lu * configure.in: Change --with-oldest-abi=ABI to --enable-oldest-abi=ABI. 2000-12-02 Bruno Haible * stdio-common/perror.c (perror): If stderr is wide-oriented, use fwprintf instead of fprintf. 2000-12-04 Ulrich Drepper * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD and DECIMAL_DIG definitions. * sysdeps/arm/fpu/bits/mathdef.h: Likewise * sysdeps/generic/bits/mathdef.h: Likewise * sysdeps/i386/fpu/bits/mathdef.h: Likewise * sysdeps/ia64/fpu/bits/mathdef.h: Likewise * sysdeps/m68k/fpu/bits/mathdef.h: Likewise * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise * sysdeps/sparc/fpu/bits/mathdef.h: Likewise * sysdeps/sh/sh4/fpu/bits/mathdef.h: Likewise 2000-12-03 Ulrich Drepper * math/test-fenv.c (main): Use return instead of exit to avoid warning. * math/atest-exp.c: Mark local functions as static to avoid warnings. * math/atest-exp2.c: Likewise. * math/atest-sincos.c: Likewise. * sysdeps/i386/fpu/bits/mathdef.h (DECIMAL_DIG): Correct value. Reported by Fred J. Tydeman . * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Hopefully fix the handling of denormalized numbers. * math/test-misc.c (main): Test for fpclassify and pseudo denormal numbers on x86. * sysdeps/i386/fpu/fpclassifyl.c: New file. * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Handle the pseudo denormal representation of LDBL_MIN. * iconvdata/SJIS.irreversible: Remove unnecessary entries. * iconvdata/EUC-JP.irreversible: Remove unnecessary entries. * iconvdata/sjis.c: Enable round-trip mapping of backslash and tilde. * iconvdata/jis0208.c: Likewise. * iconvdata/jis0212.c: Likewise. Patch by Shinya Hanataka . * math/test-misc.c (main): More tests for frexp and some for fpclassify and isnormal. * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf): Correct test for subnormal. Reported by Fred J. Tydeman . * math/test-misc.c (main): Add tests for frexp. Reported by Fred J. Tydeman . * sysdeps/i386/fpu/s_frexpl.S: Don't overflow during the computation. 2000-12-02 H.J. Lu * locale/lc-time.c (_nl_init_era_entries): Pass L'\0' instead of '\0' to wcschr. 2000-12-02 Ulrich Drepper * sysdeps/i386/fpu/s_frexp.S: Add missing fwait. * sysdeps/i386/fpu/s_frexpf.S: Likewise. * sysdeps/i386/fpu/s_frexpl.S: Likewise. * sysdeps/generic/glob.c: Adjust types of several variables to avoid warnings. 2000-12-01 Ulrich Drepper * sysdeps/unix/sysv/linux/shm_open.c: Remove incorrect comment. 2000-11-30 Roland McGrath * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): New macro. (_HURD_HANDLE_IOCTLS, _HURD_HANDLE_IOCTL): Redefine using it, so as to allow multiple instances using the same function name in one file. 2000-12-01 Ulrich Drepper * configure.in: Correct test for pserver CVS access. 2000-11-28 H.J. Lu * libio/libio.h: Remove extra "#if ... #endif". 2000-11-29 H.J. Lu * stdio-common/vfscanf.c (ORIENT): Swap the COMPILE_WSCANF case. 2000-12-01 H.J. Lu * nss/getXXbyYY_r.c: Fix verioned symbol handling. * nss/getXXent_r.c: Likewise. * sysdeps/unix/sysv/linux/i386/chown.c: Likewise. 2000-11-30 H.J. Lu * scripts/abi-versions.awk (oldest_abi): New variable. Handle the oldest ABI supported. * Makerules ($(common-objpfx)abi-versions.h): Set oldest_abi for scripts/abi-versions.awk. * configure.in: Add --with-oldest-abi=ABI. * configure: Rebuild. * config.make.in (oldest-abi): New. * config.h.in (GLIBC_OLDEST_ABI): New. * csu/version.c (banner): Support GLIBC_OLDEST_ABI. 2000-11-30 Jakub Jelinek * locale/setlocale.c (setname): Free for all categories, not just LC_ALL. (setlocale): Store a copy of string passed by user, not the string itself. 2000-11-30 Roland McGrath * sysdeps/mach/hurd/defs.c (init_stdio): Put this on __libc_subinit rather than _hurd_fd_subinit, so it happens after it's safe to use libc facilities like malloc. 2000-11-28 Andreas Jaeger * sysdeps/unix/sysv/linux/getdents.c: Add _syscall_getdents64 declaration, adjust declaration of __syscall_getdents to match kernel. 2000-11-29 H.J. Lu * sysdeps/generic/readelflib.c (check_ptr): Undefine it first. 2000-11-29 Andreas Jaeger * sysdeps/unix/sysv/linux/hppa/brk.c (__brk): Remove unused variable. 2000-11-28 Ulrich Drepper * dlfcn/defaultmod1.c: Add prototypes to avoid warnings. * dlfcn/defaultmod2.c: Likewise. * dlfcn/dlopen.c: Likewise. * dlfcn/dlopenold.c: Likewise. * dlfcn/failtestmod.c: Likewise. * dlfcn/glreflib1.c: Likewise. * dlfcn/glreflib2.c: Likewise. * dlfcn/eval.c: Likewise. Add attributes. * ctype/ctype-extn.c: Define isblank and not __isblank. * time/strftime.c: Add const where necessary to avoid warnings. * time/strptime.c (strptime_internal): Add casts to avoid warnings. 2000-11-22 Paul Eggert * time/strftime.c (my_strftime): Do not invoke mbrlen with a size of (size_t) -1; it's not portable. 2000-11-28 Ulrich Drepper * sysdeps/i386/fpu/libm-test-ulps: Adjust some values for the crappy i486 FPU. Reported by Michael Deutschmann . 2000-11-14 Jes Sorensen * sysdeps/ia64/_mcount.S: Call __mcount instead of __mcount_internal. * sysdeps/ia64/Makefile: Compile _mcount.S in subdir gmon as _mcount is required by profiled binaries. * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: Moved to... * sysdeps/ia64/machine-gmon.h: ...here. 2000-11-28 Masahide Washizawa * iconvdata/Makefile (modules): Add IBM922, IBM1124, and IBM1129. (distribute): Add ibm922.c, ibm1124.c, ibm1129.c, ibm922.h, ibm1124.h, and ibm1129.h. * iconvdata/gconv-modules: Add entries for IBM922, IBM1124, and IBM1129. * iconvdata/ibm922.c: New file. * iconvdata/ibm922.h: New file. * iconvdata/ibm1124.c: New file. * iconvdata/ibm1124.h: New file. * iconvdata/ibm1129.c: New file. * iconvdata/ibm1129.h: New file. * iconvdata/testdata/IBM922: New file. * iconvdata/testdata/IBM922..UTF8: New file. * iconvdata/testdata/IBM1124: New file. * iconvdata/testdata/IBM1124..UTF8: New file. * iconvdata/testdata/IBM1129: New file. * iconvdata/testdata/IBM1129..UTF8: New file. 2000-11-28 Ulrich Drepper * catgets/gencat.c (normalize_line): Take extra parameter with escape character. Change callers. (open_conversion): Determine mapping of 0x5c as wchar_t value. * catgets/Makefile: Add rules to build and run test-gencat. * catgets/sample.SJIS: New file. * catgets/test-gencat.c: New file. * catgets/test-gencat.sh: New file. Report and test case by Shinya Hanataka . 2000-11-28 Andreas Jaeger * sysdeps/unix/sysv/linux/mips/bits/socket.h: Synch with generic Linux version. 2000-11-28 Ulrich Drepper * sysdeps/unix/sysv/linux/bits/socket.h: Fix last patch. 2000-11-28 Andreas Jaeger * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Use __flexarr. * sysdeps/unix/sysv/linux/mips/bits/socket.h (struct cmsghdr): Likewise. 2000-11-27 Ulrich Drepper * misc/getusershell.c: Make strings in okshells array const. * misc/regexp.c: Add const to cast to avoid warnings. * sysdeps/unix/sysv/linux/llseek.c: Add prototype for __llseek. * sysdeps/unix/sysv/linux/i386/setresuid.c: Add prototype for __setresuid. * sysdeps/unix/sysv/linux/i386/setresgid.c: Add prototype for setresgid. * misc/error.c: Add prototypes for __error and __error_at_line. * misc/mntent_r.c (__getmntent_r): Add break at end of switch statement to avoid warning. * test-skeleton.c: Mark timeout_handler with noreturn. * iconv/skeleton.c (get16u): Add const to cast. (get32u): Likewise. * iconvdata/gb18030.c: Likewise. * iconvdata/iso-2022-cn-ext.c: Likewise. * iconvdata/ansi_x3.110.c: Add cast to avoid warning. * iconvdata/big5.c: Likewise. * iconvdata/big5hkscs.c: Likewise. * iconvdata/iso_6937.c: Likewise. * iconvdata/iso_6937-2.c: Likewise. * iconvdata/t.61.c: Likewise. * iconvdata/iso646.c: Add prototypes for gconv_init and gconv_env. * iconvdata/unicode.c: Likewise. * iconvdata/utf-16.c: Likewise. * iconvdata/cns11643.h (ucs4_to_cns11643): Define needed as size_t. * iconv/gconv_trans.c (__gconv_translit_find): Avoid one warning with little code shuffling. * sysdeps/powerpc/Makefile (CFLAGS-initfini.s): Add -O1 to avoid the problems introduced when the user selects -O3. * iconv/gconv.h (__gconv_info): Define __data element using __flexarr. * misc/sys/cdefs.h: Define __flexarr. Proposed by Joseph S. Myers . * iconvdata/iso-2022-jp.c: Add prototypes to avoid warnings. * iconv/skeleton.c: Likewise. * iconvdata/iso8859-1.c (BODY to 8859-1): Add const to cast. * iconv/loop.c (get16): Add const to cast. (get32): Likewise. 2000-11-27 Andreas Jaeger * login/programs/pt_chown.c (do_pt_chown): Mark function as static to avoid warning. * login/programs/utmpdump.c (print_entry): Likewise. 2000-11-25 Maciej W. Rozycki * sysdeps/mips/__longjmp.c (__longjmp): Restore SP and FP last and in a single asm as they may be used to access other stored registers. * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise. 2000-11-27 Andreas Jaeger * rt/tst-aio.c: Mark test functions as static to avoid warnings. * rt/tst-aio64.c: Likewise. 2000-11-27 Ulrich Drepper * catgets/Makefile (test1.cat): Set LC_ALL, LOCPATH, and GCONV_PATH for gencat run. (libc.cat): Likewise. * catgets/gencat.c: Implement handling of message catalogs encoded with stateful character sets. Based on a patch by Shinya Hanataka . 2000-11-26 Ulrich Drepper * sysdeps/unix/opendir.c (__opendir): Add cast to avoid warning. * inet/getnameinfo.c: Adjust casts to avoid warnings. * inet/rcmd.c: Likewise. * inet/ruserpass.c: Likewise. * inet/netinet/in.h (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_MULTICAST, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL, IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL, IN6_IS_ADDR_MC_NODELOCAL, IN6_IS_ADDR_MC_LINKLOCAL, IN6_IS_ADDR_MC_SITELOCAL, IN6_IS_ADDR_MC_ORGLOCAL, IN6_IS_ADDR_MC_GLOBAL): Preserve const in cast. * include/aliases.h: Add prototypes for internal __getalias* functions. * include/netdb.h: Add prototypes for __old_gethostent_r, __old_gethostbyaddr_r, __old_gethostbyname_r, __old_gethostbyname2_r, __old_getnetent_r, __old_getnetbyaddr_r, __old_getnetbyname_r, __old_getservent_r, __old_getservbyname_r, __old_getservbyport_r, __old_getprotoent_r, __old_getprotobyname_r, __old_getprotobynumber_r. * include/rpc/netdb.h: Add prototypes for __old_getrpcbyname_r, __old_getrpcbynumber_r, __old_getrpcent_r. * include/rpc/netdb.h: Add __getrpcbyname_r, __getrpcbynumber_r, __getrpcent_r prototypes. 2000-11-25 Ulrich Drepper * string/strcoll.c: Add casts to avoid warnings. * string/strnlen.c: Likewise. * string/strxfrm.c: Likewise. * sysdeps/generic/_strerror.c: Likewise. * sysdeps/generic/memrchr.c: Likewise. * sysdeps/generic/strcasestr.c: Likewise. * sysdeps/generic/strstr.c: Likewise. * locale/weight.h (findidx): Add const to cast to avoid warning. * elf/loadfail.c: Little cosmetic changes to avoid warnings. * elf/loadtest.c: Likewise. * elf/multiload.c: Likewise. * elf/next.c: Likewise. * elf/nodelete.c: Likewise. * elf/noload.c: Likewise. * elf/order.c: Likewise. * elf/origtest.c: Likewise. * elf/preloadtest.c: Likewise. * elf/restest1.c: Likewise. * sysdeps/i386/i486/bits/string.h (__strncat_g) [i686]: Fourth parameter of asm must be in %ecx. * string/tester.c: Mark test functions as static to avoid warnings. * iconv/gconv_conf.c (read_conf_file): Make mod_counter static to preserve value over different gconv-modules files. 2000-11-24 Ulrich Drepper * locale/findlocale.c: Add casts to avoid warnings. * locale/localeinfo.h (LIMAGIC): Add cast to avoid warnings. * misc/efgcvt_r.c (fcvt_r): Use ssize_t instead of int and add cast to avoid warnings. * misc/tsearch.c (const_node): New type. (trecurse): Correct casts to avoid warnings. (__twalk): Likewise. * stdlib/tst-limits.c: Add z modifier to formats for WORD_BIT and LONG_BIT. * debug/backtrace-tst.c (compare): Add casts to avoid warnings. * test-skeleton.c: Mark local functions as static to avoid warnings. 2000-11-23 H.J. Lu * rt/tst-aio6.c (do_test): Use pipe instead of STDIN_FILENO to support the background job. Fix a typo. 2000-11-24 Ulrich Drepper * iconv/gconv_conf.c (insert_module): Replace old entry if new one has same names but lower cost. 2000-11-23 Jakub Jelinek * sysdeps/sparc/sparc32/dl-machine.h: Ifdef out handling for relocs which never occur during bootstrap. * sysdeps/sparc/sparc64/dl-machine.h: Likewise. 2000-11-23 Andreas Jaeger * nss/nss_files/files-hosts.c: Remove getipnodebyname. * nss/Versions: Remove _nss_files_getipnodebyname_r. * sysdeps/unix/sysv/linux/Versions: Fix typo in last patch. 2000-11-18 Martin Buchholz * csu/gmon-start.c (__gmon_start__): Avoid over-clever trick `if (called++) return;' 2000-11-21 Alan Modra * sysdeps/generic/bsd-_setjmp.c (setjmp): Rename to _setjmp. * csu/abi-note.S: Correct comment for operating system number. 2000-11-22 Ulrich Drepper * Versions.def: Add GLIBC_2.2.1 for glibc. 2000-11-22 Andreas Schwab * sysdeps/unix/sysv/linux/syscalls.list: Add pivot_root. * sysdeps/unix/sysv/linux/Versions: Add pivot_root at GLIBC_2.2.1. 2000-11-22 Ulrich Drepper * rt/aio_suspend.c (aio_suspend): Convert timeout value to absolute time for pthread_cond_timedwait call. Reported by Lawrence Chen [libc/1930]. * rt/Makefile (tests): Add tst-aio6. * rt/tst-aio6.c: New file. 2000-11-23 Andreas Jaeger * sysdeps/s390/bits/string.h (strncat): Fix one more typo. 2000-11-22 Andreas Jaeger * sysdeps/s390/bits/string.h (strncat): Add missing quotation marks. 2000-11-21 Martin Schwidefsky * sysdeps/s390/bits/string.h: Make strncat always add a \0. 2000-11-21 Andreas Schwab * sysdeps/alpha/setjmp.S: Remove __setjmp entry point. * sysdeps/arm/setjmp.S: Likewise. * sysdeps/arm/fpu/setjmp.S: Likewise. * sysdeps/i386/setjmp.S: Likewise. * sysdeps/i386/elf/setjmp.S: Likewise. * sysdeps/s390/setjmp.S: Likewise. * sysdeps/s390/elf/setjmp.S: Likewise. * sysdeps/sh/sh3/setjmp.S: Likewise. * sysdeps/sh/sh4/setjmp.S: Likewise. * sysdeps/sparc/sparc32/setjmp.S: Likewise. * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise. * sysdeps/unix/sysv/linux/m68k/setjmp.c: Removed. 2000-11-21 Andreas Jaeger * sysdeps/generic/__longjmp.c (__longjmp): Remove obsolete NORETURN, fix parameter list. * string/bug-strncat1.c (main): Fix typo. Patch by Bernhard Kaindl . 2000-11-20 Ulrich Drepper * configure.in: Add --enable-all-warnings. * config.make.in (all-warnings): New variable. * Makeconfig (+gccwarn): Define with many more warnings if all-warnings is yes. 2000-11-20 Jakub Jelinek * iconvdata/bug-iconv2.c (main): Use %zd in format string. * io/test-lfs.c (do_test): Cast statbuf.st_size to long long. * malloc/tst-valloc.c (main): Cast valloc return value to long. * malloc/tst-obstack.c (verbose_malloc): Use %zd in format string. * math/test-fpucw.c (main): Use %lx in format string, cast control words to long. * stdio-common/tst-fmemopen.c (main): Use %td in format strings. * stdlib/tst-strtol.c (tests): Avoid (bogus?) decimal constant is so large that it is unsigned warning. * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ssize_t): Changing it to long on sparc64. 2000-11-20 Andreas Jaeger * nscd/nscd.h (termination_handler): Add noreturn attribute. (receiv_print_stats): Likewise. * elf/ldconfig.c (path_hwcap): Cast -1 for proper comparison. 2000-11-20 Ulrich Drepper * malloc/thread-m.h: gcc doesn't tolerate zero-sized types anymore. * csu/gmon-start.c: Always have prototype for __gmon_start. * csu/version.c: Add prototypes for __libc_print_version and __libc_main. * iconv/gconv.c: Include gconv_int.h and gconv.h. * iconv/gconv.h (struct __gconv_step): Remove const from __from_name and __to_name. * iconv/gconv_builtin.h: Add ASCII module definitions. * iconv/gconv_conf.c (__gconv_path_elem): Remove const. (add_module): Add cast to avoid warning. Rework construction of strings for new module. * iconv/gconv_db.c (__gconv_alias_compare): Make s1 and s2 const. (derivation_compare): Likewise. * iconv/gconv_dl.c (do_release_shlib): Remove const from nodep. (__gconv_release_shlib): Cast do_release_shlib as parameter for twalk. * iconv/gconv_int.h (__gconv_path_elem): Remove const. (struct gconv_alias): Remove const from fromname and toname. * iconv/gconv_simple.c: Include gconv_builtin.h to get prototypes for loop functions. (internal_ucs4_loop): Use correct const-ness. (ucs4_internal_loop): Likewise. (internal_ucs4le_loop): Likewise. (ucs4le_internal_loop_single): Likewise. * iconv/gconv_trans.c (__gconv_transliterate): Make from_idx, from_tbl, to_idx, to_tbl, winbuf, winbufend const. Change casts in assignments appropriately. (struct known_trans): Remove const from fname. (trans_compare): Make s1 and s2 const. * iconv/loop.c (LOOPFC): Make outend parameter const. Add cast to avoid warning. * iconv/skeleton.c: Remove cast in calls of loop functions. * iconvdata/gconv-modules: Remove US-ASCII definitions. * iconvdata/iso646.c: Remove US_ASCII support. * include/set-hooks.h (DEFINE_HOOK): Also generate prototype. * include/unistd.h: Add __libc_check_standard_fds prototype. * string/bits/string2.h (__mempcpy_args): Add const to casts. * sysdeps/generic/initfini.c: Add prototypes for dummy, _init, and _fini. * sysdeps/generic/libc-start.c: Add prototype for __libc_start_main. * sysdeps/i386/i486/bits/string.h (strcmp): Add const to casts. * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Add cast to avoid warning. * sysdeps/unix/sysv/linux/init-first.c: Add prototypes for __libc_init_first and _dl_start. * intl/dcigettext.c (transcmp): Make s1 and s2 const. (DCIGETTEXT): Make domaindata variable const. * intl/loadmsgcat.c (_nl_load_domain): Rearrange domain initialization to avoid warning. 2000-11-20 Hiroyuki Machida * sysdeps/unix/sysv/linux/mips/clone.S: Fix comments. * sysdeps/unix/sysv/linux/mips/kernel_stat.h (kernel_stat): Expand time_t to 'long int' not, 'unsigned int'. Use 'long int' for __unused? members. * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOFOLLOW): Use same value defined in /usr/include/asm-mips/fcntl.h. 2000-11-18 Ulrich Drepper * stdio-common/Makefile (tests): Add test-vfprintf. (test-vfprintf-ENV): New variable. * stdio-common/test-vfprintf.c: New file. * wcsmbs/mbrtowc.c (__mbrtowc): Do not only flush if input is '\0'. * wcsmbs/Makefile (tests): Add tst-mbrtowc and tst-wcrtomb. (tst-mbrtowc-ENV): New variable. (tst-wcrtomb-ENV): New variable. * wcsmbs/tst-mbrtowc.c: New file. * wcsmbs/tst-wcrtomb.c: New file. 2000-11-16 Andreas Jaeger * manual/install.texi (Tools for Compilation): Update documentation for GCC 2.95.2. 2000-11-18 Ulrich Drepper * sysdeps/posix/getaddrinfo.c (gaih_inet): Only return -EAI_AGAIN if IPv4 and IPv6 requests timed out. 2000-11-18 Akim Demaille * malloc/obstack.h: Formatting changes. (obstack_grow, obstack_grow0): Don't cast WHERE at all: it prevents type checking. (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't cast the value to (void *): assigning a `foo *' to a `void *' variable is valid. (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int. 2000-11-17 Ulrich Drepper * scripts/config.guess: Update from upstream maintainer. * scripts/config.sub: Likewise. 2000-11-16 Ulrich Drepper * libio/freopen.c (freopen): Reset _mode after succesful reopening. * libio/freopen64.c (freopen64): Likewise. Patch by Shinya Hanataka . * libio/Makefile: Add rules to build and run test-freopen. * libio/test-freopen.c: New file. * libio/test-freopen.sh: New file. 2000-11-15 H.J. Lu * sysdeps/generic/ldsodefs.h (DL_DT_INIT_ADDRESS): Defined if ELF_FUNCTION_PTR_IS_SPECIAL is not defined. (DL_DT_FINI_ADDRESS): Likewise. * sysdeps/ia64/dl-lookupcfg.h (_dl_lookup_address): Set the return type to ElfW(Addr). (_dl_function_address): New prototype. (DL_FUNCTION_ADDRESS): Defined. (DL_DT_INIT_ADDRESS): Defined as DL_FUNCTION_ADDRESS. (DL_DT_FINI_ADDRESS): Likewise. * sysdeps/ia64/Versions (GLIBC_2.2): Add _dl_function_address. * sysdeps/ia64/dl-machine.h (_dl_start_address): Removed. (ELF_MACHINE_START_ADDRESS): Changed to DL_FUNCTION_ADDRESS. * sysdeps/ia64/dl-symaddr.c (_dl_start_address): Renamed to ... (_dl_function_address): This. * elf/dl-fini.c (_dl_fini): Use DL_DT_FINI_ADDRESS to get the function pointer for DT_FINI. * elf/dl-close.c (_dl_close): Likewise. * elf/dl-init.c (_dl_init): Use DL_DT_INIT_ADDRESS to get the function pointer for DT_INIT. 2000-11-16 Jakub Jelinek * sysdeps/generic/printf_fphex.c (__printf_fphex): Compute correctly end of wexpbuf buffer. 2000-11-16 Andreas Jaeger * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove duplicate definition of F_GETLK, F_SETLK, F_SETLKW. 2000-11-16 Andreas Jaeger * sysdeps/generic/dl-cache.c (_DL_PLATFORMS_COUNT): Define to 0 if it's not defined. 2000-11-15 Jakub Jelinek * dlfcn/default.c (main): Add test for dladdr of main returning argv[0] in dli_fname field. 2000-11-15 Jakub Jelinek * Makeconfig (run-program-prefix): Move test-static test into the variable. * sysdeps/alpha/dl-machine.h (RTLD_START): Update _dl_argv. * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise, schedule instructions. * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise, schedule instructions, fix a bug in copying auxiliary data. 2000-11-15 Ulrich Drepper * manual/startup.texi (Program Arguments): Fix type of main's envp parameter. Reported by Raúl Núñez de Arenas Coronado . * iconvdata/gconv-modules: Add CP950 alias. 2000-11-13 Jakub Jelinek * sysdeps/unix/sysv/linux/Makefile: Allow ports to override syscall-list.h goal. * sysdeps/unix/sysv/linux/sparc/Makefile: New file. 2000-11-15 Ulrich Drepper * intl/Makefile: tst-gettext2.sh does not need a third parameter. * intl/tst-gettext2.sh: Copy locale data. Adjust LOCPATH. Verify output of program. * intl/tst-gettext2.c: Set C locale if setting other locale failed. Use gettext() not _(). * locale/setlocale.c: Increment _nl_msg_cat_cntr whenever we successfully loaded a new locale. 2000-11-13 Andreas Jaeger * configure.in: Require gcc 2.95 or newer. 2000-11-15 Ulrich Drepper * sysdeps/unix/sysv/linux/paths.h: Adjust for FHS. Patch by Arkadiusz Miskiewicz . 2000-11-11 Jim Meyering * string/strndup.c (strndup): Cast return value to `char *'. 2000-11-15 Jim Meyering * sysdeps/generic/memchr.c: Remove some useless parentheses. [HAVE_STDLIB_H || defined _LIBC]: Include . [HAVE_BP_SYM_H || defined _LIBC]: Guard inclusion of bp-sym.h. [! (HAVE_BP_SYM_H || defined _LIBC)] (BP_SYM): Define as no-op. Also #undef __memchr. Use `weak_alias' only if it's defined. 2000-11-10 H.J. Lu * Makefile.in (install): Set LANGUAGE=C LC_ALL=C. 2000-11-15 Andreas Jaeger * elf/chroot_canon.c: Include . * elf/cache.c (struct cache_entry): Use uint64_t for hwcap. (print_entry): Likewise. (add_to_cache): Likewise. * elf/ldconfig.h (add_to_cache): Change prototype for hwcap change. * elf/ldconfig.c (struct lib_entry): Use uint64_t for hwcap. (path_hwcap): Likewise. (search_dir): Likewise. * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Handle platform. * elf/cache.c (add_to_cache): Handle 64 bit hwcap entry. * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h (_dl_platform_string): New. (_DL_HWCAP_PLATFORM): New. (_dl_string_platform): New. * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise. * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New. (_dl_string_platform): New. (_DL_HWCAP_PLATFORM): New. (_dl_platform_string): New. * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Added x86 platform recognition. (_DL_HWCAP_COUNT): New. (_dl_string_platform): New. (_DL_HWCAP_PLATFORM): New. (_dl_platform_string): New. 2000-11-14 Ulrich Drepper * iconvdata/gconv-modules: Add CP936 as alias for GBK. 2000-11-14 Andreas Jaeger * sysdeps/generic/dl-cache.c (HWCAP_CHECK): Fix access to _dl_hwcap. 2000-11-13 Roland McGrath * hurd/get-host.c (_hurd_get_host_config): Fix last change. 2000-11-13 Marcus Brinkmann * hurd/get-host.c (_hurd_get_host_config): Fix possible buffer underrun and make sure the result is null terminated even if there is no trailing newline. 2000-11-13 Jakub Jelinek * sysdeps/alpha/fpu/libm-test-ulps: Update. 2000-11-10 H.J. Lu * sysdeps/ia64/fpu/libm-test-ulps: Updated. 2000-11-10 Andreas Jaeger * elf/ldconfig.c (create_links): Fix alloca calculation. Patch by Ben Collins . 2000-11-09 Ulrich Drepper * inet/getnameinfo.c (getnameinfo): Use correct destination parameter for if_indextoname. Patch by Hideaki YOSHIFUJI . 2000-11-09 H.J. Lu * sunrpc/Versions (GLIBC_2.1): Remove xdr_cryptkeyarg, xdr_cryptkeyarg2, xdr_cryptkeyres, xdr_des_block, xdr_key_netstarg, xdr_key_netstres, xdr_keybuf and xdr_keystatus. * time/Versions (GLIBC_2.1): Move getitimer to... * sysdeps/unix/sysv/linux/alpha/Versions (GLIBC_2.1): ...here. 2000-11-03 Bruno Haible * manual/install.texi: Recommend to set LANGUAGE=C LC_ALL=C during "make install", to work around a binary incompatibility between glibc 2.1 and glibc 2.2 gconv modules. 2000-11-09 Ulrich Drepper * intl/locale.alias: Add thai. Patch by Chanop Silpa-Anan . 2000-11-07 Akim Demaille * malloc/obstack.c (obstack_grow, obstack_grow0): Rename the second argument `data' for consistency with the prototypes. Qualify it `const'. (obstack_copy, obstack_copy0): Rename the second argument as `address' for consistency. Qualify it `const'. * malloc/obstack.h (obstack_copy, obstack_copy0, obstack_grow) (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify `const' their input argument (`data' or `address'). Adjust the corresponding macros to include `const' in casts. 2000-11-06 Hideaki YOSHIFUJI * sysdeps/posix/getaddrinfo.c: Clean-up: define family to hold target family. 2000-11-06 Hideaki YOSHIFUJI * sysdeps/posix/getaddrinfo.c: Loosen protocol check to ease raw socket creation. 2000-11-06 Hideaki YOSHIFUJI * sysdeps/posix/getaddrinfo.c: Ensure to fill ai_socktype and ai_protocol by internal table if service was not given. 2000-11-06 Hideaki YOSHIFUJI * sysdeps/posix/getaddrinfo.c: Don't raise an error even if numerical port was specified with protocol without socktype. 2000-11-06 Hideaki YOSHIFUJI * sysdeps/posix/getaddrinfo.c: Ensure to check if protocol is ok. 2000-11-06 Hideaki YOSHIFUJI * inet/getnameinfo.c: getnameinfo() NI_xxx flag validation. 2000-11-06 Hideaki YOSHIFUJI * sysdeps/posix/getaddrinfo.c: Ensure not to fill garbage value in sin6_scope_id field. 2000-11-06 Hideaki YOSHIFUJI * inet/getnameinfo.c: Repair getnameinfo() sin6_socpe_id support. 2000-11-06 Hideaki YOSHIFUJI * inet/getnameinfo.c: Repair NI_NOFQDN flag support. 2000-11-06 Hideaki YOSHIFUJI * inet/getnameinfo.c: Wake-up sin6_scope_id support in getnameinfo(): check for whether sin6_socpe_id exist was wrong. 2000-11-09 Martin Schwidefsky * sysdeps/unix/sysv/linux/s390/mmap.S: Use mmap2 if it is present. * sysdeps/unix/sysv/linux/s390/mmap64.S: New file. 2000-11-09 H.J. Lu * io/Versions (GLIBC_2.1.1): Remove lockf64. See ChangeLog.11 for earlier changes.