summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* * resolv/res_init.c (res_setoptions): Recognize edns0 option.Ulrich Drepper2007-02-097-7/+104
| | | | | | | | | | * resolv/res_mkquery.c: Define __res_nopt. * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set try adding EDNS0 record. * resolv/res_send.c (send_dg): If request failed with FORMERR and EDNS0 record was send make sure we don't try it again. * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0. * include/resolv.h: Declare __res_nopt.
* [BZ #3944]Ulrich Drepper2007-02-094-5/+77
| | | | | | | | | | | | 2007-02-08 Jakub Jelinek <jakub@redhat.com> [BZ #3944] * time/strptime_l.c (__strptime_internal): Set have_mon for %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday have been computed from tm_yday and tm_year. Don't crash in day_of_the_week or day_of_the_year if not have_mon and tm_mon contains bogus value. * time/Makefile (tests): Add tst-strptime3. * time/tst-strptime3.c: New test.
* [BZ #3957]Ulrich Drepper2007-02-055-7/+153
| | | | | | | | | | | 2007-02-05 Jakub Jelinek <jakub@redhat.com> [BZ #3957] * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0' bit for RE_HAT_LISTS_NOT_NEWLINE. (build_charclass_op): Remove bogus comment. * posix/Makefile (tests): Add bug-regex27 and bug-regex28. * posix/bug-regex27.c: New test. * posix/bug-regex28.c: New test.
* * po/sv.po: Update from translation team.Ulrich Drepper2007-02-032-37/+41
|
* * nscd/nscd_helper.c (open_socket): Minor size optimization.Ulrich Drepper2007-02-022-10/+12
|
* * include/locale.h (__uselocale): Add libc_hidden_proto.Ulrich Drepper2007-02-022-1/+7
| | | | | | * locale/uselocale.c (__uselocale): Add libc_hidden_def. 2007-02-02 Jakub Jelinek <jakub@redhat.com>
* (__uselocale): Add libc_hidden_proto.Ulrich Drepper2007-02-021-0/+1
|
* * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of Jakub Jelinek2007-02-022-2/+7
| | | | | | | | gettimeofday. 2007-02-02 Jakub Jelinek <jakub@redhat.com> * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of gettimeofday.
* * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before cvs/fedora-glibc-20070202T0923Ulrich Drepper2007-02-019-18/+134
| | | | | | | | | | | | | | returning. (PTR_DEMANGLE): Real definition now that it's not the same as PRT_MANGLE anymore. * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise. * string/strerror_l.c: New file. * string/Makefile (routines): Add strerror_l. * string/string.h: Declare strerror_l. * string/Versions: Export strerror_l for GLIBC_2.6. * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
* * nscd/nscd_helper.c (open_socket): Now takes request type and keyUlrich Drepper2007-01-312-52/+80
| | | | | | | as parameter. Construct request record. Try sending request before the first poll use, it usually succeeds. Adjust all callers. * nscd/nscd-client.h: Define MAXKEYLEN.
* Define MAXKEYLEN.Ulrich Drepper2007-01-311-0/+3
|
* Do recend check before realigning on strict alignment arches, as otherwise ↵Jakub Jelinek2007-01-311-4/+4
| | | | it was comparing a stack address + offset with a mmap address.
* * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier Jakub Jelinek2007-01-319-245/+387
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from return value. * nscd/nscd_helper.c: Include string.h. (__nscd_cache_search): Remove const qualifier from return value. On strict alignment architectures check hash entry and data head alignment. * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because mmapped data during GC cycle contains garbage. If __nscd_drop_map_ref fails, decrement mapped->counter when returning error or if retrying with NO_MAPPING, only __nscd_unmap if counter dropped to 0. * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise. * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise. * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise. * nscd/nscd_getai.c (__nscd_getai): Likewise. * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise. 2007-01-31 Jakub Jelinek <jakub@redhat.com> * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier from return value. * nscd/nscd_helper.c: Include string.h. (__nscd_cache_search): Remove const qualifier from return value. On strict alignment architectures check hash entry and data head alignment. * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because mmapped data during GC cycle contains garbage. If __nscd_drop_map_ref fails, decrement mapped->counter when returning error or if retrying with NO_MAPPING, only __nscd_unmap if counter dropped to 0. * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise. * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise. * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise. * nscd/nscd_getai.c (__nscd_getai): Likewise. * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
* * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.Ulrich Drepper2007-01-312-4/+7
|
* * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use registerUlrich Drepper2007-01-262-11/+15
| | | | | | names not numbers in cfi_*. ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
* No need for FDPIC_FUNCPTRS.Ulrich Drepper2007-01-261-1/+0
|
* * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE, Andreas Jaeger2007-01-262-4/+15
| | | | | | | | | | | | FDPIC_FUNCPTRS, ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add. Correct values of PER_HPUX and PER_OSF4. 2007-01-26 Andreas Jaeger <aj@suse.de> * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE, FDPIC_FUNCPTRS, ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add. Correct values of PER_HPUX and PER_OSF4.
* * elf/dl-minimal.c: Undefine _itoa first.Ulrich Drepper2007-01-252-1/+3
|
* * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.Ulrich Drepper2007-01-254-27/+30
| | | | | * malloc/mtrace.c: Revert last change. * posix/wordexp.c: Likewise.
* * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__Ulrich Drepper2007-01-253-4/+14
| | | | | and __geode__ to the list of i486+ CPUs. * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
* * stdio-common/_itoa.c: Include <limits.h>.Ulrich Drepper2007-01-233-0/+7
| | | | * stdio-common/_itowa.c: Likewise.
* * stdio-common/_itowa.c: Don't compile _itowa for 64-bitUlrich Drepper2007-01-225-54/+84
| | | | | | | | | | platforms. * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for 64-bit platforms. * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if possible. * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa if possible.
* [BZ #3902]Ulrich Drepper2007-01-224-3/+44
| | | | | | | | 2007-01-22 Ulrich Drepper <drepper@redhat.com> [BZ #3902] * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted. * stdio-common/Makefile (tests): Add bug17. * stdio-common/bug17.c: New file.
* * iconvdata/testdata/BRF: New file.Ulrich Drepper2007-01-202-2/+8
| | | | | * iconvdata/testdata/BRF..UTF8: New file. Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
* * iconvdata/brf.c: New file.Ulrich Drepper2007-01-209-7/+175
| | | | | | | | | * iconvdata/Makefile: Add rules to build BRF. * iconvdata/TESTS: Add BRF entry. * iconvdata/gconv-modules: Likewise. * iconvdata/tst-tables.sh: Likewise. * iconvdata/testdata/BRF: New file. * iconvdata/testdata/BRF..UTF8: New file.
* * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value ofUlrich Drepper2007-01-192-3/+9
| | | | | type `long long int', not `long int'. (wcstoq): Likewise.
* * tst-initializers1.c: We want to test the initializers as seenUlrich Drepper2007-01-192-1/+7
| | | | outside of libc, so undefined _LIBC.
* * scripts/gen-as-const.awk: Add cast to long to avoid int promotionUlrich Drepper2007-01-192-1/+6
| | | | of values on 64-bit platforms which are too large.
* * pthread_join.c (cleanup): Avoid warning.Ulrich Drepper2007-01-181-0/+4
|
* (cleanup): Avoid warning.Ulrich Drepper2007-01-181-2/+2
|
* [BZ #2749] Jakub Jelinek2007-01-177-34/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro. (__copysignl): Use signbit() for comparison. * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for SET_LDOUBLE_WORDS64. [BZ #2423, #2749] * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>. (__ceill): Remove calls to fegetround(), fesetround(). * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise. 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com> Joe Kerian <jkerian@us.us.ibm.com> [BZ #2749] * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro. (__copysignl): Use signbit() for comparison. * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for SET_LDOUBLE_WORDS64. [BZ #2423, #2749] * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>. (__ceill): Remove calls to fegetround(), fesetround(). * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise. * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
* * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.Jakub Jelinek2007-01-172-2/+4
| | | | * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
* * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.Jakub Jelinek2007-01-172-3/+6
| | | | | | 2007-01-17 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
* * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to cvs/fedora-glibc-20070117T1043 cvs/fedora-glibc-20070117T0857Ulrich Drepper2007-01-173-1/+23
| | | | | demangle pointer. * csu/libc-start.c: Likewise.
* * sysdeps/unix/sysv/linux/libc_pthread_init.c: Don't just copy theUlrich Drepper2007-01-1710-48/+93
| | | | | | | | | | | | function table, mangle the pointers. * sysdeps/pthread/pthread-functions.h: Define PTHFCT_CALL. * forward.c: Use PTHFCT_CALL and __libc_pthread_functions_init. * sysdeps/pthread/bits/libc-lock.h: When using __libc_pthread_functions demangle pointers before use. * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Use PTHFCT_CALL to demangle pointer. * sysdeps/unix/sysv/linux/jmp-unwind.c: Likewise. * sysdeps/pthread/setxid.h: Likewise.
* * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannotUlrich Drepper2007-01-172-17/+6
| | | | really work anyway.
* * nscd/connections.c (servinfo): Renamed to reqinfo. Change allUlrich Drepper2007-01-162-12/+11
| | | | | users. (handle_request): Remove unnecessary tests.
* ..Ulrich Drepper2007-01-161-0/+4
| | | | | | 2007-01-15 Ulrich Drepper <drepper@redhat.com> * nscd/cache.c (cache_add): Record the failure to add to the cache.
* (cache_add): Record the failure to add to the cache.Ulrich Drepper2007-01-161-1/+4
|
* [BZ #2749]Jakub Jelinek2007-01-155-20/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear workbits in semi-raw fraction. * math/test-misc.c: Add new tests. * math/basic-test.c: Include test-skeleton.c. (TEST_TRUNC): Define. (truncdfsf_test, trunctfsf_test, trunctfdf_test): New. (main): Rename to ... (do_test): ...this. Run new tests. (TEST_FUNCTION): Define. [BZ #2749] * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow handling for high words. * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact and overflow for infinity. 2007-01-15 Jakub Jelinek <jakub@redhat.com> * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear workbits in semi-raw fraction. * math/test-misc.c: Add new tests. 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com> * math/basic-test.c: Include test-skeleton.c. (TEST_TRUNC): Define. (truncdfsf_test, trunctfsf_test, trunctfdf_test): New. (main): Rename to ... (do_test): ...this. Run new tests. (TEST_FUNCTION): Define. 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com> Joe Kerian <jkerian@us.us.ibm.com> [BZ #2749] * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow handling for high words. * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact and overflow for infinity.
* * nscd/connections.c (handle_request): Add a __builtin_expect.Ulrich Drepper2007-01-152-1/+3
|
* * nscd/connections.c (serv2db): Change type into structure whichUlrich Drepper2007-01-152-26/+34
| | | | | | also says whether this is a request for data. Renamed to servinfo. All users changed. (handle_request): Much simpler test whether we should search the cache.
* * nscd/connections.c (handle_request): Fix thinko in selinux testUlrich Drepper2007-01-152-1/+3
| | | | invocation.
* * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.Ulrich Drepper2007-01-155-27/+68
| | | | | | | | | | | | | * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock it before getting dl_load_lock and then relock. (_dl_lookup_symbol_x): Pass flags to add_dependency. When rerunning _dl_lookup_symbol_x, compute symbol_scope again in case we unlocked the scope. * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x in case we locked the scope. (_dl_profile_fixup): Likewise. * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also set DL_LOOKUP_SCOPE_LOCK.
* * inet/Makefile: Define CFLAGS-getsrvbynm_r.c andUlrich Drepper2007-01-142-1/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CFLAGS-getsrvbynpt_r.c. * nscd/getsrvbynm_r.c: New file. * nscd/getsrvbypt_r.c: New file. * nscd/nscd_getserv_r.c: New file. * nscd/servicescache.c: New file. * nscd/Makefile (routines): Add nscd_getserv_r. (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache. Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and CFLAGS-getsrvbypt_r.c. * nscd/cache.c (prune_cache): Rewrite to get re-add function from table. Add entries for services database. * nscd/connections.c (serv2str): Mark as const. Add entries for services database. (dbs): Add .reset_res and servdb initialization. (serv2db): Add entries for services database. (verify_persistent_db): Accept dbnr == servdb. (invalidate_cache): Rewrite database name recognition to use a table. Call res_init() if .reset_res is set for database. (handle_request): Add code to handle services database. * nscd/gai.c: Don't define __getservbyname_r. * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add GETSERVBYNAME, GETSERVBYPORT, GETFDSERV. (serv_response_header): Define. (struct datahead): Add serv_response_header member. * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value using table. * nscd/nscd.conf: Add entries for services database. * nscd/nscd.h: Adjust declaration of dbnames and serv2str. Declare serv_iov_disabled. Declare addservbyname, readdservbyname, addservbyport, and readdservbyport. * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry. (find_db): Fix error message. * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services, __nscd_getservbyname_r, and __nscd_getservbyport_r. * nscd/selinux.c (perms): Add entries for services database. * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE. * nss/nsswitch.c (__nss_disable_nscd): Also disable services database. * nscd/grpcache.c: Remove obsolete code. Cleanups. * nscd/hstcache.c: Likewise. * nscd/pwdcache.c: Likewise.
* * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): CorrectUlrich Drepper2007-01-1424-143/+1012
| | | | computation of keylen.
* * include/string.h: Only redefine strndupa if this is really forUlrich Drepper2007-01-132-2/+9
| | | | libc code.
* * nscd/nscd_gethst_r.c: Minor cleanups.Ulrich Drepper2007-01-132-8/+6
|
* * nscd/connections.c (handle_request): Check selinux permissionsUlrich Drepper2007-01-132-3/+7
| | | | for all non-admin commands.
* * sysdeps/i386/i486/bits/atomic.h: DefineUlrich Drepper2007-01-133-11/+41
| | | | | | | atomic_compare_and_exchange_val_acq, atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add using __sync_* built-ins for gcc >= 4.1. * sysdeps/x86_64/bits/atomic.h: Likewise.