aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2000-07-22Update.Ulrich Drepper10-26/+303
* iconv/gconv_trans.c: Correct a few bugs in the search loop. Remove remainders of hash table. * locale/categories.def: Remove remainders of transliteration hash table. * locale/langinfo.h: Likewise. * locale/programs/ld-ctype.c: Likewise. Fix code to write out transliteration tables. * locale/gen-translit.pl: New file. * locale/C-translit.h.in: New file. * locale/C-ctype.c: Include C-translit.h. Initialize transliteration data pointers with data from this file. * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h, and gen-translit.pl. Add rule to generate C-translit.h.
2000-07-22Update.Ulrich Drepper4-6/+24
* stdio-common/vfscanf.c: Handle input -- with format %f correctly (it's no input error). * stdio-common/tstscanf.c: Add test case for format %f with input --. * stdio-common/scanf12.c: Correct expected result for first scanf.
2000-07-22Update.Ulrich Drepper2-3/+33
2000-07-22 Ulrich Drepper <drepper@redhat.com> * stdio-common/vfprintf.c (process_string_arg): Correct handling of multibyte character strings in %s format with precision.
2000-07-22Update.Ulrich Drepper2-1/+20
symbols and elements be named in reorder-after instructions.
2000-07-22Update.Ulrich Drepper2-7/+34
* locale/programs/ld-collate.c (collate_read): Allow collating symbols be named in reorder-after instructions. Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
2000-07-22Update.Ulrich Drepper5-129/+152
* locale/programs/ld-collate.c (handle_ellipsis): Test for duplication with generated name, not the name of the first character. Patch by Yong Li <yong.li@asu.edu>.
2000-07-22Update.Ulrich Drepper4-9/+20
2000-07-21 Ulrich Drepper <drepper@redhat.com> * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification. Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2000-07-22Update.Ulrich Drepper2-4/+13
2000-07-21 Wolfram Gloger <wg@malloc.de> * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller allocations only if a non-main arena cannot be extended. * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from UNCHECK_BOUNDS.
2000-07-21Update.Ulrich Drepper1-0/+5
2000-07-21 Ulrich Drepper <drepper@redhat.com> * elf/dl-load.c (_dl_map_object): Take loader==NULL into account in DF_1_NODEFLIB handling.
2000-07-21(_dl_map_object): Take loader==NULL into account in DF_1_NODEFLIB handling.Ulrich Drepper1-2/+12
2000-07-21Update.Andreas Jaeger2-1/+5
* elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its own rule.
2000-07-21Update.Andreas Jaeger1-0/+4
2000-07-21 Andreas Jaeger <aj@suse.de> * libio/fwide.c: Include <wchar.h> for prototype.
2000-07-21Include <wchar.h> for prototype.Andreas Jaeger1-0/+1
2000-07-21* malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset, Greg McGary2-24/+29
set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot): Define in terms of chunk_at_offset. (inuse, set_inuse, clear_inuse): Define in terms of next_chunk. (next_bin, prev_bin): offset by size of real array elements. (chunk_align): Make `m' a scalar, since that's how it's used. * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset, set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot): Define in terms of chunk_at_offset. (inuse, set_inuse, clear_inuse): Define in terms of next_chunk. (next_bin, prev_bin): offset by size of real array elements. (chunk_align): Make `m' a scalar, since that's how it's used. 2000-07-21 Greg McGary <greg@mcgary.org>
2000-07-21* sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from UNCHECK_BOUNDS. Greg McGary8-35/+75
* sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant. * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Wrap bounds around argv & envp and each of their string members. * sysdeps/powerpc/elf/start.S: Designate BP symbols. * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point symbol in BP_SYM (). Discard bounds of address arg. * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Discard bounds on address arg, add bounds to return value. 2000-07-21 Greg McGary <greg@mcgary.org> * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from UNCHECK_BOUNDS. * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant. * sysdeps/powerpc/elf/libc-start.c (__libc_start_main): Wrap bounds around argv & envp and each of their string members. * sysdeps/powerpc/elf/start.S: Designate BP symbols. * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point symbol in BP_SYM (). Discard bounds of address arg. * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Discard bounds on address arg, add bounds to return value.
2000-07-21Rewrite rules to generate filtmod1.so.Ulrich Drepper1-2/+5
2000-07-21Update.Ulrich Drepper5-2/+35
* elf/Makefile (tests): Add filter. Add rules to generate filter. * elf/filter.c: New file. * elf/filtmod1.c: New file. * elf/filtmod2.c: New file.
2000-07-21Update.Ulrich Drepper5-2/+28
* elf/rtld.c: Define _dl_bind_not variable. (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not. * elf/dl-support.c: Likewise. * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not. * elf/dl-runtime.c (fixup): Don't remember looked up value if _dl_bind_not. (profile_fixup): Likewise.
2000-07-21Update.Ulrich Drepper4-9/+61
* libio/Makefile (routines): Add fwide. * libio/iofwide.c (_IO_fwide): Remove locking. This is done in fwide now. Internal calls to _IO_fwide must do locking themselves or don't need locking. * libio/fwide.c: New file. * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
2000-07-21Update.Ulrich Drepper2-7/+37
* elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
2000-07-21Update.Ulrich Drepper7-4/+89
* elf/Makefile: Add no modules for nodelete test. * elf/nodelmod3.c: New file. * elf/nodelmod4.c: New file. * elf/nodelete.c: Also test case where dependency of dlopen() object is marked nodelete. * elf/nodlopen.c: New file. * elf/nodlopenmod.c: New file.
2000-07-21Update.Ulrich Drepper26-721/+965
* elf/Makefile (tests): Add nodlopen. Add rules to generate nodlopen. * include/dlfcn.h: Define __RTLD_DLOPEN. * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set and this is a dlopen() call, do not load the binary. * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open. * dlfcn/dlopenold.c: Likewise. * configure.in: Add test for -z nodelete option. * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete. 2000-07-20 Mark Kettenis <kettenis@gnu.org> Make Hesiod NSS module thread-safe. * hesiod/README.hesiod: Update. * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r, _nss_hesiod_setprotoent, _nss_hesiod_endprotoent, _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r. * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and hesiod-proto. * hesiod/nss_hesiod/hesiod-init.c: New file. * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness. * hesiod/nss_hesiod/hesiod-grp.c: Likewise. * hesiod/nss_hesiod/nss_hesiod.h: New file. * hesiod/nss_hesiod/hesiod-service.c (_nss_hesiod_getservbyport_r): New function. Provide support for looking up services by port number. * hesiod/nss_hesiod/hesiod-proto.c: New file. * hesiod/hesiod.c: Update from BIND 8.2.3-T5B. * hesiod/hesiod.h: Likewise. * hesiod/hesiod_p.h: Likewise. 2000-07-20 Mark Kettenis <kettenis@gnu.org> Fix problems with `struct __res_state' getting too big. * resolv/resolv.h (struct __sockaddr_in): New definition. (struct __res_state): Use __sockaddr_in instead of sockaddr_in in the private parts of the structure to save some space. * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to (struct sockaddr_in *) in call to sock_eq. Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns]. 2000-07-20 Ulrich Drepper <drepper@redhat.com> * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2000-07-21Fix typos.Ulrich Drepper1-2/+2
* pthread.c (pthread_initialize): Don't use sysconf to determine 2000-07-18 Kaz Kylheku <kaz@ashi.footprints.net>
2000-07-21Update.Ulrich Drepper9-2/+184
* elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)). (tests-nodelete-yes): Define. (modules-names): Add $(modules-nodelete-$(have-z-nodelete)). Add rules to build nodelete and modules. * elf/nodelete.c: New file. * elf/nodelmod1.c: New file. * elf/nodelmod2.c: New file. * configure.in: Add test for -z nodelete option. * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
2000-07-20Update.Ulrich Drepper14-27/+179
* elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries. * elf/dl-close.c (_dl_close): Don't close an object if it is marked with nodelete. * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter to _dl_map_object. Return immediately if no object loaded. Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed. * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry if it exists into l_flags_1 word. * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use it to determine whether loading is wanted or not. (_dl_map_object): Likewise. Call _dl_map_object_from_fd with new parameter. * sysdeps/generic/ldsodefs.h: Update prototype. * elf/dl-deps.c: Add new parameter to _dl_map_object calls. * elf/rtld.c: Likewise. * elf/Makefile (tests): Add noload. Add rules to generate noload. * elf/noload.c: New file. * include/link.h (struct link_map): Add l_feature_1 and l_flags_1. * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE. * sysdeps/mips/bits/dlfcn.h: Likewise.
2000-07-20(tests): Add noload. Add rules to generate noload.Ulrich Drepper1-1/+5
2000-07-20localedata is no add-on anymore, change docu.Andreas Jaeger1-13/+6
2000-07-20Update.Ulrich Drepper6-10/+179
2000-07-20 Ulrich Drepper <drepper@redhat.com> * libio/Makefile (tests): Add tst_wprintf2. (tst_wprintf2-ARGS): Define. * libio/tst_wprintf2.c: New file. Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>. * libio/wfiledoalloc.c: Only allocate external buffer if this hasn't happened yet. * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really something in the buffer. gconv call can write up to end of the buffer, not only _IO_write_end. (_IO_wfile_overflow): Allocate also external buffer. * stdio-common/vfprintf.c (process_string_arg): Handle multibyte strings with precision in vfwprintf correctly. * stdio-common/vfprintf.c: Fix completely broken handling of unbuffered wide character streams. Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
2000-07-19Update.Ulrich Drepper4-1/+103
2000-07-19 Ulrich Drepper <drepper@redhat.com> * resolv/Makefile (distribute): Add README. * resolv/README: New file. By Mark Kettenis <kettenis@gnu.org>.
2000-07-19Update.Ulrich Drepper31-1010/+1150
2000-07-18 Mark Kettenis <kettenis@gnu.org> Update resolver code to BIND 8.2.3-T5B. * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and __res_nclose. [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename, __res_mkquery, __res_nsend, __res_query, __res_querydomain and __res_search. * resolv/Banner: BIND-8.2.3-T5B. * resolv/base64.c: Update from BIND 8.2.3-T5B. * resolv/herror.c: Likewise. * resolv/inet_addr.c: Likewise. * resolv/inet_net_ntop.c: Likewise. * resolv/inet_net_pton.c: Likewise. * resolv/inet_neta.c: Likewise. * resolv/inet_ntop.c: Likewise. * resolv/nsap_addr.c: Likewise. * resolv/inet_pton.c: Likewise. Reject a few more more invalid IPv6 addresses (ISC bug #520). * resolv/ns_name.c: Avoid emitting RCS ID in object file. * resolv/ns_parse.c: Likewise. * resolv/ns_netint.c: Likewise. * resolv/ns_samedomain.c: Likewise. * resolv/ns_ttl.c: Likewise. * resolv/ns_print.c: Update from BIND 8.2.3-T5B. Avoid emitting RCS ID in object file. * resolv/res_debug.c: Update from BIND 8.2.3-T5B. * resolv/res_mkquery.c: Likewise. * resolv/res_query.c: Likewise. * resolv/res_init.c: Likewise. (res_setoptions): Mark internal. * resolv/res_send.c: Likewise. [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit by using poll instead. * resolv/res_comp.c: Likewise. [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a weak alias for __dn_expand. * resolv/res_data.c: Likewise. (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set in _res.options. Avoids a potential security risk by avoiding a close (0). [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make res_mkquery, res_query, res_querydomain adn res_search weak aliases for __res_mkquery, __res_query, __res_querydomain and __res_search. * resolv/res_libc.c: (_res): Don't initialize. Fix res_close instead to avoid close(0). (res_init): Always use the static resolver context. [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak alias for __res_init. * resolv/resolv.h: Update from BIND 8.2.3-T5B. Move definition of RES_SET_H_ERRNO and accompanying comment to... * include/resolv.h: ... here. * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B. * resolv/arpa/nameser_compat.h: Likewise.
2000-07-19Update.Ulrich Drepper2-2/+17
2000-07-19 Kaz Kylheku <kaz@ashi.footprints.net> Bugfixes to the variant of the code for machines with no compare and swap. * spinlock.c (__pthread_alt_lock, __pthread_alt_timedlock): Wait node was not being properly enqueued, due to failing to update the lock->__status field. * spinlock.c (__pthread_alt_timedlock): The oldstatus variable was being set inappropriately, causing the suspend function to be called with a null self pointer and crash.
2000-07-19Update.Ulrich Drepper3-14/+32
2000-07-19 Ulrich Drepper <drepper@redhat.com> * locales/i18n: Fix typos. * locales/iso14651_t1: Correct syntax for HAN script.
2000-07-19Update.Ulrich Drepper2-1/+16
* spinlock.h (__pthread_alt_trylock): Fix code used if no compare&swap is available.
2000-07-19Update.Ulrich Drepper5-4/+46417
* spinlock.h (__pthread_trylock): Use __compare_and_swap, not compare_and_swap.
2000-07-18Update.Ulrich Drepper4-2/+43
* nss/makedb.c (main): Compare result of load_db with NSS_STATUS_SUCCESS and not 0. Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
2000-07-18Update.Ulrich Drepper2-0/+5
2000-07-18 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
2000-07-18Update.Ulrich Drepper1-0/+14
2000-07-18 Ulrich Drepper <drepper@redhat.com> * tst-ctype-de_DE.ISO-8859-1.in: Mark U0000 as cntrl and U00A0 not as space. * tst-ctype.c: Likewise. * tst-ctype.sh: Likewise. * locales/i18n: Likewise. * locales/ja_JP: Likewise. * tests-mbwc/dat_iswcntrl.c: Likewise. * tests-mbwc/dat_iswctype.c: Likewise. * tests-mbwc/dat_iswspace.c: Likewise. * tst-ctype.sh: Also test C locale.
2000-07-18Mark U0000 as cntrl and U00A0 not as space.Ulrich Drepper8-25/+16
2000-07-18* posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro. Greg McGary2-0/+19
(EXTEND_BUFFER): Use it. 2000-07-18 Greg McGary <greg@mcgary.org> * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro. (EXTEND_BUFFER): Use it.
2000-07-18Update.Ulrich Drepper2-1/+7
2000-07-18 Ulrich Drepper <drepper@redhat.com> * spinlock.c (__pthread_alt_timedlock): Add back one of the removed thread_self calls.
2000-07-18Update.Ulrich Drepper3-4/+21
2000-07-18 Ulrich Drepper <drepper@redhat.com> * include/libc-symbols.h: Define RETURN_ADDRESS macro. * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of __builtin_return_address. * dlfcn/dlopenold.c: Likewise. * dlfcn/dlsym.c: Likewise. * dlfcn/dlvsym.c: Likewise. * elf/dl-profstub.c: Likewise. * malloc/malloc.c: Likewise. * sysdeps/generic/machine-gmon.h: Likewise. Based on a patch by schwidefsky@de.ibm.com.
2000-07-18Update.Ulrich Drepper9-25/+29
2000-07-18 Kaz Kylheku <kaz@ashi.footprints.net> * spinlock.c (__pthread_alt_lock, __pthread_alt_timedlock): Fixed bug whereby thr field of waitnode structure would not be correctly set unless a null self pointer is passed to the functions. Eliminated redundant calls to thread_self().
2000-07-18Define RETURN_ADDRESS macro.Ulrich Drepper1-0/+4
2000-07-18Update.Andreas Jaeger2-1/+4
* sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of NULL to elf_machine_fixup_plt t argument to silence GCC.
2000-07-18Update.Andreas Jaeger2-0/+5
* include/string.h: Add prototype for __memchr.
2000-07-18Upate.Andreas Jaeger2-1/+8
2000-07-18 Andreas Jaeger <aj@suse.de> * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias. * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr instead of memrchr.
2000-07-18Fix copy & paste error: Use memchr instead of memrchr.Andreas Jaeger1-1/+1
2000-07-18Update.Ulrich Drepper6-3/+34
2000-07-18 Ulrich Drepper <drepper@redhat.com> * intl/Makefile: Make sure tst-translit is run after tst-gettext. * locale/C-ctype.c: Add initializers for gap elements. * locale/programs/ld-ctype.c (ctype_output): Write out index entries for gap elements.
2000-07-18Update.Ulrich Drepper1-0/+4
2000-07-16 Ulrich Drepper <drepper@redhat.com> * nscd/nscd.c (print_version): Update copyright year.
2000-07-18* elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer. Greg McGary4-5/+19
(profile_fixup): Don't define for __BOUNDED_POINTERS__. * sysdeps/i386/dl-machine.h: Don't use regparm attribute for __BOUNDED_POINTERS__. (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version for __BOUNDED_POINTERS__. * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl. * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer. (profile_fixup): Don't define for __BOUNDED_POINTERS__. * sysdeps/i386/dl-machine.h: Don't use regparm attribute for __BOUNDED_POINTERS__. (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version for __BOUNDED_POINTERS__.