* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
[glibc.git] / ChangeLog
blob07fe6a9b30fc128ecb40d200b2c68be3580a9555
1 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
3         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
5         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
6         * resolv/res_mkquery.c: Define __res_nopt.
7         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8         try adding EDNS0 record.
9         * resolv/res_send.c (send_dg): If request failed with FORMERR and
10         EDNS0 record was send make sure we don't try it again.
11         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
12         * include/resolv.h: Declare __res_nopt.
14 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
16         [BZ #3944]
17         * time/strptime_l.c (__strptime_internal): Set have_mon for
18         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
19         have been computed from tm_yday and tm_year.  Don't crash
20         in day_of_the_week or day_of_the_year if not have_mon
21         and tm_mon contains bogus value.
22         * time/Makefile (tests): Add tst-strptime3.
23         * time/tst-strptime3.c: New test.
25 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
27         [BZ #3957]
28         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
29         bit for RE_HAT_LISTS_NOT_NEWLINE.
30         (build_charclass_op): Remove bogus comment.
31         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
32         * posix/bug-regex27.c: New test.
33         * posix/bug-regex28.c: New test.
35 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
37         * po/sv.po: Update from translation team.
39 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
41         * nscd/nscd_helper.c (open_socket): Minor size optimization.
43 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
45         * include/locale.h (__uselocale): Add libc_hidden_proto.
46         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
48         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
49         gettimeofday.
51 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
53         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
54         returning.
55         (PTR_DEMANGLE): Real definition now that it's not the same as
56         PRT_MANGLE anymore.
57         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
59         * string/strerror_l.c: New file.
60         * string/Makefile (routines): Add strerror_l.
61         * string/string.h: Declare strerror_l.
62         * string/Versions: Export strerror_l for GLIBC_2.6.
64 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
66         * nscd/nscd_helper.c (open_socket): Now takes request type and key
67         as parameter.  Construct request record.  Try sending request
68         before the first poll use, it usually succeeds.  Adjust all
69         callers.
70         * nscd/nscd-client.h: Define MAXKEYLEN.
71         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
73 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
75         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
76         from return value.
77         * nscd/nscd_helper.c: Include string.h.
78         (__nscd_cache_search): Remove const qualifier from return value.
79         On strict alignment architectures check hash entry and data head
80         alignment.
81         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
82         mmapped data during GC cycle contains garbage.  If
83         __nscd_drop_map_ref fails, decrement mapped->counter when returning
84         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
85         dropped to 0.
86         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
87         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
88         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
89         * nscd/nscd_getai.c (__nscd_getai): Likewise.
90         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
92 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
94         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
96 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
98         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
99         names not numbers in cfi_*.
101 2007-01-26  Andreas Jaeger  <aj@suse.de>
103         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
104         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
105         Correct values of PER_HPUX and PER_OSF4.
107 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
109         * elf/dl-minimal.c: Undefine _itoa first.
110         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
111         * malloc/mtrace.c: Revert last change.
112         * posix/wordexp.c: Likewise.
114 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
116         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
117         and __geode__ to the list of i486+ CPUs.
118         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
120 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
122         * stdio-common/_itoa.c: Include <limits.h>.
123         * stdio-common/_itowa.c: Likewise.
125 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
127         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
128         platforms.
129         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
130         64-bit platforms.
131         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
132         possible.
133         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
134         if possible.
136         [BZ #3902]
137         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
138         * stdio-common/Makefile (tests): Add bug17.
139         * stdio-common/bug17.c: New file.
141 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
143         * iconvdata/brf.c: New file.
144         * iconvdata/testdata/BRF: New file.
145         * iconvdata/testdata/BRF..UTF8: New file.
146         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
147         * iconvdata/Makefile: Add rules to build BRF.
148         * iconvdata/TESTS: Add BRF entry.
149         * iconvdata/gconv-modules: Likewise.
150         * iconvdata/tst-tables.sh: Likewise.
152 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
154         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
155         type `long long int', not `long int'.
156         (wcstoq): Likewise.
158 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
160         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
161         of values on 64-bit platforms which are too large.
163 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
164             Joe Kerian  <jkerian@us.us.ibm.com>
166         [BZ #2749]
167         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
168         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
169         (__copysignl): Use signbit() for comparison.
170         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
171         SET_LDOUBLE_WORDS64.
173         [BZ #2423, #2749]
174         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
175         (__ceill): Remove calls to fegetround(), fesetround().
176         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
177         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
178         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
180 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
182         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
184         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
186 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
188         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
189         demangle pointer.
190         * csu/libc-start.c: Likewise.
192 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
194         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
195         really work anyway.
197 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
199         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
200         users.
201         (handle_request): Remove unnecessary tests.
203         * nscd/cache.c (cache_add): Record the failure to add to the cache.
205 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
207         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
208         workbits in semi-raw fraction.
210         * math/test-misc.c: Add new tests.
212 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
214         * math/basic-test.c: Include test-skeleton.c.
215         (TEST_TRUNC): Define.
216         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
217         (main): Rename to ...
218         (do_test): ...this.  Run new tests.
219         (TEST_FUNCTION): Define.
221 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
222             Joe Kerian  <jkerian@us.us.ibm.com>
224         [BZ #2749]
225         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
226         handling for high words.
227         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
228         and overflow for infinity.
230 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
232         * nscd/connections.c (handle_request): Add a __builtin_expect.
234         * nscd/connections.c (serv2db): Change type into structure which
235         also says whether this is a request for data.  Renamed to
236         servinfo.  All users changed.
237         (handle_request): Much simpler test whether we should search the cache.
239         * nscd/connections.c (handle_request): Fix thinko in selinux test
240         invocation.
242         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
243         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
244         it before getting dl_load_lock and then relock.
245         (_dl_lookup_symbol_x): Pass flags to add_dependency.
246         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
247         case we unlocked the scope.
248         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
249         _dl_lookup_symbol_x in case we locked the scope.
250         (_dl_profile_fixup): Likewise.
251         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
252         set DL_LOOKUP_SCOPE_LOCK.
254 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
256         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
257         CFLAGS-getsrvbynpt_r.c.
258         * nscd/getsrvbynm_r.c: New file.
259         * nscd/getsrvbypt_r.c: New file.
260         * nscd/nscd_getserv_r.c: New file.
261         * nscd/servicescache.c: New file.
262         * nscd/Makefile (routines): Add nscd_getserv_r.
263         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
264         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
265         CFLAGS-getsrvbypt_r.c.
266         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
267         table.  Add entries for services database.
268         * nscd/connections.c (serv2str): Mark as const.  Add entries for
269         services database.
270         (dbs): Add .reset_res and servdb initialization.
271         (serv2db): Add entries for services database.
272         (verify_persistent_db): Accept dbnr == servdb.
273         (invalidate_cache): Rewrite database name recognition to use a table.
274         Call res_init() if .reset_res is set for database.
275         (handle_request): Add code to handle services database.
276         * nscd/gai.c: Don't define __getservbyname_r.
277         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
278         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
279         (serv_response_header): Define.
280         (struct datahead): Add serv_response_header member.
281         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
282         using table.
283         * nscd/nscd.conf: Add entries for services database.
284         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
285         Declare serv_iov_disabled.
286         Declare addservbyname, readdservbyname, addservbyport, and
287         readdservbyport.
288         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
289         (find_db): Fix error message.
290         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
291         __nscd_getservbyname_r, and __nscd_getservbyport_r.
292         * nscd/selinux.c (perms): Add entries for services database.
293         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
294         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
296         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
297         * nscd/hstcache.c: Likewise.
298         * nscd/pwdcache.c: Likewise.
300         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
301         computation of keylen.
303         * include/string.h: Only redefine strndupa if this is really for
304         libc code.
306 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
308         * nscd/nscd_gethst_r.c: Minor cleanups.
310         * nscd/connections.c (handle_request): Check selinux permissions
311         for all non-admin commands.
313         * sysdeps/i386/i486/bits/atomic.h: Define
314         atomic_compare_and_exchange_val_acq,
315         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
316         using __sync_* built-ins for gcc >= 4.1.
317         * sysdeps/x86_64/bits/atomic.h: Likewise.
319         [BZ #3840]
320         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
321         and .oS.d files.
323 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
325         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
326         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
327         (do_test): Check errno and exit(0) if ENOSYS.
329 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
331         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
332         thousands separators.
333         * stdlib/Makefile: Add rules to build and run tst-strtod4.
334         * stdlib/tst-strtod4.c: New test.
336         [BZ #3855]
337         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
338         hexadecimal digit should accept just the initial 0.
339         * stdlib/tst-strtod2.c (tests): New variable.
340         (do_test): Run several tests rather than just one.
342 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
344         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
345         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
347 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
349         * io/fts.c: Make sure fts_cur is always valid after return from
350         fts_read.
351         Patch by Miloslav Trmac <mitr@redhat.com>.
353 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
355         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
356         (R_MIPS_NUM): Bump by 1.
358 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
360         * posix/execvp.c: Include alloca.h.
361         (allocate_scripts_argv): Renamed to...
362         (scripts_argv): ... this.  Don't allocate buffer here nor count
363         arguments.
364         (execvp): Use alloca if possible.
365         * posix/Makefile: Add rules to build and run tst-vfork3 test.
366         * posix/tst-vfork3.c: New test.
368 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
370         * string/Makefile (tst-strxfrm2-ENV): Define.
371         * stdlib/Makefile (tst-strtod3-ENV): Define.
373 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
375         * posix/getconf.c: Update copyright year.
376         * nss/getent.c: Likewise.
377         * iconv/iconvconfig.c: Likewise.
378         * iconv/iconv_prog.c: Likewise.
379         * elf/ldconfig.c: Likewise.
380         * catgets/gencat.c: Likewise.
381         * csu/version.c: Likewise.
382         * elf/ldd.bash.in: Likewise.
383         * elf/sprof.c (print_version): Likewise.
384         * locale/programs/locale.c: Likewise.
385         * locale/programs/localedef.c: Likewise.
386         * nscd/nscd.c (print_version): Likewise.
387         * debug/xtrace.sh: Likewise.
388         * malloc/memusage.sh: Likewise.
389         * malloc/mtrace.pl: Likewise.
390         * debug/catchsegv.sh: Likewise.
392 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
394         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
395         attempts.
397 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
399         * posix/wordexp.c: Remove some unnecessary tests.
401 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
403         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
404         blacklist the group till after we look it up.
406 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
408         * include/atomic.h (atomic_forced_read): New macro.
410 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
412         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
414 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
416         * nss/getXXbyYY_r.c: Include atomic.h.
417         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
418         add atomic_write_barrier () in between.
420         * stdlib/Makefile (tests): Add tst-makecontext.
421         * stdlib/tst-makecontext.c: New test.
423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
424         (__makecontext): Don't realign uc_mcontext.uc_regs.
426 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
428         * elf/dl-support.c: Include dl-procinfo.h.
429         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
430         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
431         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
432         Define.
433         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
434         hardcoded constants.
435         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
436         PPC_PLATFORM_* macros for array designators.
438 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
440         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
441         names to the beginning.
442         (_dl_powerpc_platforms): Add "power6x".
443         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
444         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
445         (_DL_PLATFORMS_COUNT): Increase.
446         (_dl_string_platform): Handle power6x case.
447         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
448         PPC_FEATURE_POWER6_EXT): Define.
449         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
451 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
453         [BZ #3747]
454         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
455         [-2^31 .. 2^31) range.
456         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
457         targets.
458         * stdlib/tst-rand48-2.c: New test.
459         * stdlib/Makefile (tests): Add tst-rand48-2.
461 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
463         * misc/tst-pselect.c (do_test): Fix sigblock argument.
465 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
467         * misc/tst-pselect.c (do_test): Make sure the helper process is
468         terminating when the test is aborted.
470 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
472         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
473         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
474         Handle relatime mount option.
476         [BZ #2337]
477         * libio/Makefile (tests): Add tst-setvbuf1.
478         * libio/tst-setvbuf1.c: New file.
480 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
482         [BZ #2337]
483         * libio/genops.c (__uflow): Fix a typo.
484         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
485         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
486         the narrow buffer size.
488 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
490         [BZ #2337]
491         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
492         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
493         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
494         in _flags.
495         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
496         _IO_wstr_finish): Likewise.
497         * libio/wmemstream.c (open_wmemstream): Likewise.
498         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
499         even for wide streams.
501 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
504         kernel-features.h.
506 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
508         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
509         separators also if no non-zero digits found.
510         * stdlib/Makefile (tests): Add tst-strtod3.
512 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
514         [BZ #3632]
515         * include/features.h: Fix comment about default value for
516         _POSIX_C_SOURCE.
518         [BZ #3664]
519         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
520         empty parsed strings.
521         * stdlib/Makefile (tests): Add tst-strtod2.
522         * stdlib/tst-strtod2.c: New file.
524         [BZ #3673]
525         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
526         computation.
527         * stdlib/Makefile (tests): Add tst-atof2.
528         * stdlib/tst-atof2.c: New file.
530         [BZ #3674]
531         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
532         correctly if removing trailing zero of hex-float.
533         * stdlib/Makefile (tests): Add tst-atof1.
534         * stdlib/tst-atof1.c: New file.
536 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
538         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
539         Start searching for next comma at p rather than rest.
540         * misc/Makefile (tests): Add tst-mntent2.
541         * misc/tst-mntent2.c: New test.
543         * misc/getusershell.c (initshells): Check for integer overflows.
544         Make strings buffer one bigger as fgets always succeeds when second
545         argument is 1.  Don't use calloc for shells array.  Disallow
546         / as shell.
548 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
550         * malloc/memusage.c: Handle realloc with new size of zero and
551         non-NULL pointer correctly.
552         (me): Really write first record twice.
553         (struct entry): Make format bi-arch safe.
554         (dest): Write out more realloc statistics.
555         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
557 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
559         * nis/nis_subr.c (nis_getnames): Revert last change.
561 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
563         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
564         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
565         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
566         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
567         ENOTTY.
568         * io/Makefile: Add rules to build and run tst-ttyname_r test.
569         * io/tst-ttyname_r.c: New test.
571 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
573         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
575 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
577         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
578         jump table entries.
580 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
582         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
583         `clone' function to ensure proper unwinding stop of gdb.
584         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
586 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
588         * nscd/nscd.init: Remove obsolete and commented-out -S option
589         handling.
591 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
593         [BZ #3514]
594         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
596         [BZ #3515]
597         * manual/string.texi (strtok): Remove duplicate paragraph.
599 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
601         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
602         libgcc not supporting `rflags' unwinding (register # >= 17).
604 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
606         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
607         succeeded.
609 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
610             Jakub Jelinek  <jakub@redhat.com>
611             Jan Kratochvil  <jan.kratochvil@redhat.com>
613         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
614         unwind information.
615         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
616         'restore_rt' even in the 'signal' directory.
617         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
619 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
621         [BZ #3559]
622         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
623         malloc crashed.  Don't allocate memory unnecessarily in each
624         loop.
626 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
628         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
630 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
632         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
634 2006-11-18  Bruno Haible  <bruno@clisp.org>
636         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
637         __sysconf only after having tried to call getgroups32.
639 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
641         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
642         addresses for IPv4 queries if they can be mapped.
644 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
646         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
647         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
648         (signmask): Add .size directive.
649         (othermask): Add .type directive.
651 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
653         * po/nl.po: Update from translation team.
655         * timezone/zdump.c: Redo fix for BZ #3137.
657 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
659         * nss/nss_files/files-alias.c (get_next_alias): Set line back
660         to first_unused after parsing :include: file.
662 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
664         * timezone/africa: Update from tzdata2006o.
665         * timezone/antarctica: Likewise.
666         * timezone/asia: Likewise.
667         * timezone/australasia: Likewise.
668         * timezone/backward: Likewise.
669         * timezone/europe: Likewise.
670         * timezone/iso3166.tab: Likewise.
671         * timezone/northamerica: Likewise.
672         * timezone/southamerica: Likewise.
673         * timezone/zone.tab: Likewise.
675         * time/tzfile.c (__tzfile_read): Extend to handle new file format
676         on machines with 64-bit time_t.
678         * timezone/checktab.awk: Update from tzcode2006o.
679         * timezone/ialloc.c: Likewise.
680         * timezone/private.h: Likewise.
681         * timezone/scheck.c: Likewise.
682         * timezone/tzfile.h: Likewise.
683         * timezone/tzselect.ksh: Likewise.
684         * timezone/zdump.c: Likewise.
685         * timezone/zic.c: Likewise.
687         [BZ #3483]
688         * elf/ldconfig.c (main): Call setlocale and textdomain.
689         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
691         [BZ #3480]
692         * manual/argp.texi: Fix typos.
693         * manual/charset.texi: Likewise.
694         * manual/errno.texi: Likewise.
695         * manual/filesys.texi: Likewise.
696         * manual/lang.texi: Likewise.
697         * manual/maint.texi: Likewise.
698         * manual/memory.texi: Likewise.
699         * manual/message.texi: Likewise.
700         * manual/resource.texi: Likewise.
701         * manual/search.texi: Likewise.
702         * manual/signal.texi: Likewise.
703         * manual/startup.texi: Likewise.
704         * manual/stdio.texi: Likewise.
705         * manual/sysinfo.texi: Likewise.
706         * manual/syslog.texi: Likewise.
707         * manual/time.texi: Likewise.
708         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
710         [BZ #3465]
711         * sunrpc/clnt_raw.c: Minimal message improvements.
712         * sunrpc/pm_getmaps.c: Likewise.
713         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
714         * nis/nis_print_group_entry.c: Likewise.
715         * locale/programs/repertoire.c: Likewise.
716         * locale/programs/charmap.c: Likewise.
717         * malloc/memusage.sh: Likewise.
718         * elf/dl-deps.c: Likewise.
719         * locale/programs/ld-collate.c: Likewise.
720         * libio/vswprintf.c: Likewise.
721         * malloc/memusagestat.c: Likewise.
722         * sunrpc/auth_unix.c: Likewise.
723         * sunrpc/rpc_main.c: Likewise.
724         * nscd/cache.c: Likewise.
725         * locale/programs/repertoire.c: Unify output messages.
726         * locale/programs/charmap.c: Likewise.
727         * locale/programs/ld-ctype.c: Likewise.
728         * locale/programs/ld-monetary.c: Likewise.
729         * locale/programs/ld-numeric.c: Likewise.
730         * locale/programs/ld-time.c: Likewise.
731         * elf/ldconfig.c: Likewise.
732         * nscd/selinux.c: Likewise.
733         * elf/cache.c: Likewise.
734         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
736         [BZ #3451]
737         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
738         change atomic.
739         (ceil): Likewise.
741 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
743         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
744         if N is one bigger than return value.
745         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
746         and l1 last arguments, if buf is defined, verify the return value
747         equals to strlen (buf) and verify no byte beyond passed length
748         is modified.
750 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
752         * po/sv.po: Update from translation team.
754 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
756         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
757         noinline attribute.
759 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
761         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
762         noinline attribute.
764         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
765         Use __new_sys_siglist instead of _sys_siglist_internal as
766         second macro argument.
767         (_old_sys_siglist): Use declare_symbol_alias macro instead of
768         strong_alias.
770 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
772         [BZ #3493]
773         * posix/unistd.h (sysconf): Remove const attribute.
775         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
776         temporary or deprecated addresses.
777         Patch by Sridhar Samudrala <sri@us.ibm.com>.
779         * string/Makefile (tests): Add tst-strxfrm2.
780         * string/tst-strxfrm2.c: New file.
782 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
784         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
785         rather than r->r_brk.
787 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
789         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
790         optimization even if needed > n.
792         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
793         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
794         return false, otherwise return true.
795         (cache_rpath): Return decompose_rpath return value.
797 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
799         * include/libc-symbols.h (declare_symbol): Rename to...
800         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
801         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
802         .size directive.
803         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
804         changes.
805         * sysdeps/gnu/siglist.c: Likewise.
807 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
809         * sysdeps/powerpc/fpu/bits/mathinline.h
810         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
811         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
813 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
815         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
816         Update handling of cache descriptor 0x49 for new models.
817         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
818         Likewise.
820 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
822         * malloc/memusage.c (dest): Reset not_me back to false after
823         printing statistics.
825 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
827         * configure.in: Work around ld --help change and avoid -z relro
828         test completely if the architecture doesn't care about security.
830 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
832         * po/sv.po: Update from translation team.
834 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
836         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
837         generate compatibility version.
839 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
841         * configure.in: Relax -z relro requirement a bit.
843         * po/sv.po: Update from translation team.
845 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
847         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
848         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
849         * elf/dl-close.c (_dl_close_worker): Likewise.
850         * elf/dl-open.c (_dl_open_worker): Likewise.
851         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
853 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
855         * configure.in: Require assembler support for visibility, compiler
856         support for visibility and aliases, linker support for various -z
857         options.
858         * Makeconfig: Remove conditional code which now is unnecessary.
859         * config.h.in: Likewise.
860         * config.make.in: Likewise.
861         * dlfcn/Makefile: Likewise.
862         * elf/Makefile: Likewise.
863         * elf/dl-load.c: Likewise.
864         * elf/rtld.c: Likewise.
865         * include/libc-symbols.h: Likewise.
866         * include/stdio.h: Likewise.
867         * io/Makefile: Likewise.
868         * io/fstat.c: Likewise.
869         * io/fstat64.c: Likewise.
870         * io/fstatat.c: Likewise.
871         * io/fstatat64.c: Likewise.
872         * io/lstat.c: Likewise.
873         * io/lstat64.c: Likewise.
874         * io/mknod.c: Likewise.
875         * io/mknodat.c: Likewise.
876         * io/stat.c: Likewise.
877         * io/stat64.c: Likewise.
878         * libio/stdio.c: Likewise.
879         * nscd/Makefile: Likewise.
880         * stdlib/Makefile: Likewise.
881         * stdlib/atexit.c: Likewise.
882         * sysdeps/generic/ldsodefs.h: Likewise.
883         * sysdeps/i386/dl-machine.h: Likewise.
884         * sysdeps/i386/sysdep.h: Likewise.
885         * sysdeps/i386/i686/memcmp.S: Likewise.
886         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
887         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
888         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
890         * Makerules: USE_TLS support is now default.
891         * tls.make.c: Likewise.
892         * csu/Versions: Likewise.
893         * csu/libc-start.c: Likewise.
894         * csu/libc-tls.c: Likewise.
895         * csu/version.c: Likewise.
896         * dlfcn/dlinfo.c: Likewise.
897         * elf/dl-addr.c: Likewise.
898         * elf/dl-cache.c: Likewise.
899         * elf/dl-close.c: Likewise.
900         * elf/dl-iteratephdr.c: Likewise.
901         * elf/dl-load.c: Likewise.
902         * elf/dl-lookup.c: Likewise.
903         * elf/dl-object.c: Likewise.
904         * elf/dl-open.c: Likewise.
905         * elf/dl-reloc.c: Likewise.
906         * elf/dl-support.c: Likewise.
907         * elf/dl-sym.c: Likewise.
908         * elf/dl-sysdep.c: Likewise.
909         * elf/dl-tls.c: Likewise.
910         * elf/ldconfig.c: Likewise.
911         * elf/rtld.c: Likewise.
912         * elf/tst-tls-dlinfo.c: Likewise.
913         * elf/tst-tls1.c: Likewise.
914         * elf/tst-tls10.h: Likewise.
915         * elf/tst-tls14.c: Likewise.
916         * elf/tst-tls2.c: Likewise.
917         * elf/tst-tls3.c: Likewise.
918         * elf/tst-tls4.c: Likewise.
919         * elf/tst-tls5.c: Likewise.
920         * elf/tst-tls6.c: Likewise.
921         * elf/tst-tls7.c: Likewise.
922         * elf/tst-tls8.c: Likewise.
923         * elf/tst-tls9.c: Likewise.
924         * elf/tst-tlsmod1.c: Likewise.
925         * elf/tst-tlsmod13.c: Likewise.
926         * elf/tst-tlsmod13a.c: Likewise.
927         * elf/tst-tlsmod14a.c: Likewise.
928         * elf/tst-tlsmod2.c: Likewise.
929         * elf/tst-tlsmod3.c: Likewise.
930         * elf/tst-tlsmod4.c: Likewise.
931         * elf/tst-tlsmod5.c: Likewise.
932         * elf/tst-tlsmod6.c: Likewise.
933         * include/errno.h: Likewise.
934         * include/link.h: Likewise.
935         * include/tls.h: Likewise.
936         * locale/global-locale.c: Likewise.
937         * locale/localeinfo.h: Likewise.
938         * malloc/arena.c: Likewise.
939         * malloc/hooks.c: Likewise.
940         * malloc/malloc.c: Likewise.
941         * resolv/Versions: Likewise.
942         * sysdeps/alpha/dl-machine.h: Likewise.
943         * sysdeps/alpha/libc-tls.c: Likewise.
944         * sysdeps/generic/ldsodefs.h: Likewise.
945         * sysdeps/generic/tls.h: Likewise.
946         * sysdeps/i386/dl-machine.h: Likewise.
947         * sysdeps/ia64/dl-machine.h: Likewise.
948         * sysdeps/ia64/libc-tls.c: Likewise.
949         * sysdeps/mach/hurd/fork.c: Likewise.
950         * sysdeps/mach/hurd/i386/tls.h: Likewise.
951         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
952         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
953         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
954         * sysdeps/s390/libc-tls.c: Likewise.
955         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
956         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
957         * sysdeps/sh/dl-machine.h: Likewise.
958         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
959         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
960         * sysdeps/x86_64/dl-machine.h: Likewise.
962         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
963         split out locking and parameter checking.
964         (_dl_close): Call _dl_close_worker after locking and checking.
965         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
966         _dl_close.
967         * elf/Makefile: Add rules to build and run tst-thrlock.
968         * elf/tst-thrlock.c:  New file.
970         [BZ #3426]
971         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
972         reality.
974         [BZ #3429]
975         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
976         we are sure we do not need it anymore for _dl_close.  Also move
977         the asserts inside the lock region.
978         Patch mostly by Suzuki <suzuki@in.ibm.com>.
980 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
982         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
983         argument.
984         (_dl_lookup_symbol_x): Adjust caller.
986         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
987         _ns_global_scope.
988         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
990         * elf/dl-libc.c: Revert l_scope name changes.
991         * elf/dl-load.c: Likewise.
992         * elf/dl-object.c: Likewise.
993         * elf/rtld.c: Likewise.
994         * elf/dl-close.c (_dl_close): Likewise.
995         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
996         always use __rtld_mrlock_{change,done}.  Always free old scope list
997         here if not l_scope_mem.
998         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
999         change.  Never free scope list here.  Just __rtld_mrlock_lock before
1000         the lookup and __rtld_mrlock_unlock it after the lookup.
1001         * elf/dl-sym.c: Likewise.
1002         * include/link.h (struct r_scoperec): Remove.
1003         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
1004         with l_scope_mem and l_scoperec_lock with l_scope_lock.
1006 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
1008         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
1010 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
1012         * configure.in: Disable building profile libraries by default.
1014 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
1016         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
1017         as signed longs, check for x_base + pos overflow.
1018         * sunrpc/Makefile (tests): Add tst-xdrmem2.
1019         * sunrpc/tst-xdrmem2.c: New test.
1021 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
1023         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
1024         _dl_lookup_symbol_x code.
1026 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
1028         * elf/dl-runtime.c: Include sysdep-cancel.h.
1029         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
1030         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
1031         instead of catomic_* macros.
1032         * elf/dl-sym.c: Include sysdep-cancel.h.
1033         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
1034         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
1035         * elf/dl-close.c: Include sysdep-cancel.h.
1036         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
1037         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
1038         * elf/dl-open.c: Include sysdep-cancel.h.
1039         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
1040         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
1042 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
1044         [BZ #3313]
1045         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
1046         fastbin rather than end of fastbin array.
1048 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
1050         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
1051         body macro.
1052         * sysdeps/x86_64/bits/atomic.h
1053         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
1054         (catomic_decrement): Use correct body macro.
1056 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
1058         * include/atomic.h: Add a unique prefix to all local variables
1059         in macros.
1060         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
1062 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
1064         [BZ #3369]
1065         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
1066         and 7.
1068 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
1070         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
1072 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
1074         [BZ #3313]
1075         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
1076         determine highest fast bin to consolidate, always look into all of
1077         them.
1078         (do_check_malloc_state): Only require for empty bins for large
1079         sizes in main arena.
1081         * libio/stdio.h: Add more __wur attributes.
1083         * elf/dl-minimal.c (realloc): Optimize last patch.
1085 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
1087         [BZ #3352]
1088         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
1089         and use memcpy() if it does.
1091 2006-11-12  Andreas Jaeger  <aj@suse.de>
1093         [BZ #2510]
1094         * manual/search.texi (Hash Search Function): Clarify.
1095         (Array Search Function): Clarify.
1097 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
1099         [BZ #2830]
1100         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
1101         shifting.
1102         * math/atest-exp2.c (read_mpn_hex): Likewise.
1103         * math/atest-sincos.c (main): Likewise.
1105 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
1107         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
1108         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
1109         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
1110         version GLIBC_2.6.
1111         * Versions.def: Add GLIBC_2.6 for libc.
1113         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
1115         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
1117 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
1119         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
1121         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
1123         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
1124         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
1126 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
1128         * include/atomic.c: Define catomic_* operations.
1129         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
1130         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
1131         * malloc/memusage.c: Likewise.
1132         * gmon/mcount.c: Likewise.
1133         * elf/dl-close.c: Likewise.
1134         * elf/dl-open.c: Likewise.
1135         * elf/dl-profile.c: Likewise.
1136         * elf/dl-sym.c: Likewise.
1137         * elf/dl-runtime.c: Likewise.
1138         * elf/dl-fptr.c: Likewise.
1139         * resolv/res_libc.c: Likewise.
1141 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
1143         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
1144         components which lack them.
1146         * nis/nis_subr.c (nis_getnames): Make sure that we always return
1147         at least one entry consisting of the parameter concatenated with
1148         the domain.
1150 2006-10-10  Roland McGrath  <roland@frob.com>
1152         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
1153         * sysdeps/mach/hurd/futimes.c: Likewise.
1154         * sysdeps/mach/hurd/lutimes.c: Likewise.
1156 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
1157             Jakub Jelinek  <jakub@redhat.com>
1159         Implement reference counting of scope records.
1160         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
1161         from the list in objects which remain.  Always allocate new scope
1162         record.
1163         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
1164         don't resize, allocate a new one.
1165         * elf/dl-runtime.c: Update reference counters before using a scope
1166         array.
1167         * elf/dl-sym.c: Likewise.
1168         * elf/dl-libc.c: Adjust for l_scope name change.
1169         * elf/dl-load.c: Likewise.
1170         * elf/dl-object.c: Likewise.
1171         * elf/rtld.c: Likewise.
1172         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
1173         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
1174         Add l_scoperec_lock.
1175         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
1176         * sysdeps/generic/rtld-lowlevel.h: New file.
1178         * include/atomic.h: Rename atomic_and to atomic_and_val and
1179         atomic_or to atomic_or_val.  Define new macros atomic_and and
1180         atomic_or which do not return values.
1181         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
1182         Various cleanups.
1183         * sysdeps/i386/i486/bits/atomic.h: Likewise.
1185         * po/sv.po: Update from translation team.
1187 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
1189         * Versions.def: Add GLIBC_2.6 to libpthread.
1191         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
1192         (versioned_symbol): Likewise.
1193         (compat_symbol): Likewise.
1195         * po/tr.po: Update from translation team.
1197 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
1199         * nis/Banner: Removed.  It's been integral part forever and the
1200         author info is incomplete anyway.
1201         * libio/Banner: Likewise.
1203         * nis/nis_table.c (nis_list): If __follow_path fails in the new
1204         code, make sure the nis_freeresult call doesn't crash and that the
1205         result is reported correctly.
1207 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
1209         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
1210         when callback is NULL.
1212         * nis/Versions (libnss_nisplus): Add
1213         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
1214         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
1215         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
1216         _nss_create_tablename): Rename to...
1217         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
1218         ... these.  No longer static.
1219         (internal_setgrent): Adjust users.
1220         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
1221         Don't use locking around _nss_grp_create_tablename call.
1222         * nis/nss_nisplus/nisplus-initgroups.c: New file.
1224 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
1226         * version.h (VERSION): Bump to 2.5.90 for new development tree.
1228 2006-10-06  Andreas Jaeger  <aj@suse.de>
1230         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
1232 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
1234         * po/pl.po: Update from translation team.
1236         * nscd/nscd.c (main): Fix typo in message.
1237         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
1239 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
1241         [BZ #3291]
1242         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
1243         errno.h, signal.h, unistd.h and sysdep-cancel.h.
1244         (__sigprocmask): Define.
1246 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
1248         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
1249         used.
1251 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
1253         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
1254         in oldtotal and newtotal calculation.
1255         * nscd/nscd-client.h (struct mapped_database): Add datasize
1256         field.
1257         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
1258         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
1259         increased.
1260         (__nscd_cache_search): Add checks to make sure we never reference
1261         data beyond the current mapping.
1263 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1265         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
1266         variables const to avoid compiler warnings.
1268         * io/fts.c (fts_close): Remove redundant checks.
1269         (fts_build): Likewise.
1270         (fts_palloc): Likewise.
1272         * manual/message.texi (Advanced gettext functions,
1273         Using gettextized software): Fix typos.
1275 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
1277         * posix/glob.c (glob_in_dir): Add some comments and asserts to
1278         explain why there are no leaks.
1280 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
1282         * libio/wmemstream.c: Include <wchar.h>.
1283         * libio/bug-wmemstream1.c: Likewise.
1284         * libio/tst-wmemstream1.c: Likewise.
1285         * libio/tst-wmemstream2.c: Likewise.
1287         * version.h (RELEASE): Bump to 2.5.
1288         * README: Regenerated.
1290         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
1292         [BZ #3273]
1293         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
1294         found no group members.
1295         Patch by Petr Baudis.
1297 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
1299         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
1300         assert bootstrap_map.l_tls_modid is zero.
1301         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
1302         if USE___THREAD.
1304 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
1306         * libio/stdio.h: Move open_wmemstream prototype to ...
1307         * wcsmbs/wchar.h: ... here.
1309 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
1311         [BZ #3252]
1312         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
1313         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
1314         __{,l}chown to handle the rest.
1315         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
1316         fchownat syscall and __ASSUME_32BITUIDS case inline, call
1317         __{,l}chown to handle the rest.
1318         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
1319         i386/fchownat.c.
1320         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
1321         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
1323         [BZ #3253]
1324         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
1325         time, rather allocate increasingly bigger arrays of pointers, if
1326         possible with alloca, if too large with malloc.
1328 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
1330         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
1332         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
1334 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
1336         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
1337         home addresses.
1338         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
1339         IFA_F_HOMEADDRESS flag for interfaces.
1340         * include/ifaddrs.h (struct in6addrinfo): Define
1341         in6ai_homeaddress.
1343 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
1345         [BZ #3225]
1346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
1347         PTR_DEMANGLE3): Define.
1348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
1349         PTR_DEMANGLE3): Likewise.
1350         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
1351         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1352         Likewise.
1353         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
1355 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
1357         * po/libc.pot: Regenerated.
1358         * po/be.po: Updated.
1359         * po/ca.po: Likewise.
1360         * po/cs.po: Likewise.
1361         * po/da.po: Likewise.
1362         * po/de.po: Likewise.
1363         * po/el.po: Likewise.
1364         * po/en_GB.po: Likewise.
1365         * po/es.po: Likewise.
1366         * po/fi.po: Likewise.
1367         * po/fr.po: Likewise.
1368         * po/gl.po: Likewise.
1369         * po/hr.po: Likewise.
1370         * po/hu.po: Likewise.
1371         * po/ja.po: Likewise.
1372         * po/ko.po: Likewise.
1373         * po/nb.po: Likewise.
1374         * po/nl.po: Likewise.
1375         * po/pl.po: Likewise.
1376         * po/pt_BR.po: Likewise.
1377         * po/ru.po: Likewise.
1378         * po/rw.po: Likewise.
1379         * po/sk.po: Likewise.
1380         * po/sv.po: Likewise.
1381         * po/tr.po: Likewise.
1382         * po/zh_CN.po: Likewise.
1383         * po/zh_TW.po: Likewise.
1385         [BZ #3137]
1386         * iconv/iconv_prog.c (main): Fix spelling in error message.
1387         * iconv/iconvconfig.c (main): Likewise.
1388         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
1389         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
1390         * locale/programs/localedef.c (main): Likewise.
1391         * locale/programs/repertoire.c (repertoire_read): Likewise.
1392         * timezone/zdump.c (main): Likewise.
1393         * nscd/connections.c (handle_request): Fix spelling in log message.
1394         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
1396 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
1398         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
1399         interfaces.
1401 2006-09-20  Andreas Jaeger  <aj@suse.de>
1403         * math/libm-test.inc (lrint_test_upward): Fix typo.
1405 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
1407         [BZ #2592]
1408         * math/libm-test.inc (lrint_test_tonearest): New function.
1409         (lrint_test_towardzero): New function.
1410         (lrint_test_downward): New function.
1411         (lrint_test_upward): New function.
1412         (main): Run these new tests.
1413         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
1414         of values near to 0.
1415         (two52): Use double not long double.
1416         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
1417         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
1418         (two23): Use float not double.
1419         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
1420         (two23): Use float not double.
1421         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
1422         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
1423         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
1424         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
1426 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1428         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
1429         Cast sp to unsigned long to avoid compiler warning.
1430         Use __makecontext_ret function instead of a trampoline on the stack.
1431         (__makecontext_ret): New function.
1432         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
1434 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
1436         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
1437         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
1438         bits.
1440 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
1442         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
1443         sure no reference to the unloaded map's search list remains in the
1444         dependency's scope.
1446 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
1448         * elf/Makefile: Add rules to build and run unload7 test.
1449         * elf/unload7.c: New test.
1450         * elf/unload7mod1.c: New file.
1451         * elf/unload7mod2.c: New file.
1453 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
1455         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
1456         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
1457         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1458         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
1459         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1460         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
1461         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1462         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
1463         PTRACE_GETEVENTMSG): Likewise.
1464         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
1465         values.
1467 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
1469         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
1470         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1471         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
1472         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
1474 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
1476         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
1477         write '\0' to the fd.
1478         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
1479         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
1480         Change regs to unsigned long pointer from unsigned int, fix fscr
1481         offset.
1483 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
1485         * io/Makefile (CFLAGS-fstatat.c): Set.
1486         (CFLAGS-fstatat64.c): Likewise.
1487         (CFLAGS-mknodat.c): Likewise.
1489         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
1490         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
1491         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
1492         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
1494 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
1495             Steven Munroe  <sjmunroe@us.ibm.com>
1497         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
1498         names to the beginning.  Rename "cell" to "cellbe".
1499         (_dl_powerpc_platforms): New.
1500         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
1501         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
1502         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
1503         (_DL_HWCAP_PLATFORM): Define to new mask.
1504         (_dl_platform_string, _dl_string_platform): New functions.
1505         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
1506         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
1508 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
1510         [BZ #2526]
1511         * README.libm: Fix a thinko in sqrt algorithm description.
1513         [BZ #3143]
1514         * manual/string.texi (argz_delete): Fix prototype.
1515         Patch by <alpt@freaknet.org>.
1517 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
1519         [BZ #3138]
1520         * io/test-lfs.c (do_prepare): Give name_len type size_t.
1521         * io/tst-fcntl.c (do_prepare): Likewise.
1522         * posix/tst-exec.c (do_prepare): Likewise.
1523         * posix/tst-preadwrite.c (do_prepare): Likewise.
1524         * posix/tst-spawn.c (do_prepare): Likewise.
1525         * posix/tst-truncate.c (do_prepare): Likewise.
1526         * rt/tst-aio.c (do_prepare): Likewise.
1527         * rt/tst-aio64.c (do_prepare): Likewise.
1528         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
1529         size_t.
1531 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
1533         [BZ #2821]
1534         * time/mktime.c (guess_time_tm): Fix overflow detection.
1535         * time/Makefile (tests): Add bug-mktime1.
1536         * time/bug-mktime1.c: New file.
1538         [BZ #3189, #3188]
1539         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
1540         (mremap): Likewise.
1542 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
1544         [BZ #1006]
1545         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
1546         Ensure relocation doesn't clobber any bits outside of the
1547         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
1548         R_SPARC_HI22 and R_SPARC_H44.
1550         [BZ #2775]
1551         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
1552         (long) (MINSIZE + nb - old_size) is positive.
1554         * malloc/arena.c (grow_heap): When growing bail even if new_size
1555         is negative.
1557         [BZ #3155]
1558         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
1559         stack below r1.
1561 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
1563         * posix/regex_internal.c (re_string_reconstruct): Handle
1564         offset < pstr->valid_raw_len && pstr->offsets_needed case.
1565         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
1566         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
1567         re_string_context_at.
1568         * posix/Makefile: Add rules to build and run bug-regex26 test.
1569         * posix/bug-regex26.c: New test.
1571         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
1572         rather than col_sym_free.  Move seqp declaration earlier.
1574         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
1576 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
1578         * nscd/initgrcache.c (addinitgroupsX): Move any_success
1579         decl before first goto out.
1581 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
1583         * Makerules (shlib.lds): If have-hash-style, put .hash section
1584         at the end of the RO segment.
1586 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
1588         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
1589         style hash table format is used.
1591 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
1593         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
1594         randomization rather than before.
1595         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
1597 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
1599         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
1601         * malloc/malloc.c (_int_malloc): Use full list insert and not
1602         shortcut which assumes the list is empty for large requests
1603         too.
1605         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
1607 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
1609         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
1610         and offout arguments to the prototype.
1611         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
1612         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
1613         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
1614         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
1615         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
1616         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
1617         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
1618         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
1620 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
1622         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
1624         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
1625         dlopen parameters.
1627 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
1629         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
1630         only if herrno is NETDB_INTERNAL.  Handle errors other than
1631         ERANGE outside of the loops, handle TRY_AGAIN.
1633         * locale/programs/ld-ctype.c (translit_flatten): Issue error
1634         if other's ctype category was missing.
1635         * locale/programs/ld-collate.c (collate_read): Return if
1636         copy_locale's collate category is missing.
1638 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
1640         [BZ #2684]
1641         * malloc/malloc.c (public_rEALLOc): Try harder by using other
1642         arenas if allocation failed.
1643         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
1645 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
1647         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
1648         waste bins[0..1].
1649         (malloc_state): Reduce bins size by 2.
1650         (_int_malloc): Fix test for large enough buffer for early termination.
1651         When no unsorted block matches perfectly and an exiting block has
1652         to be split, use full list insert and not shortcut which assumes
1653         the list is empty.
1655         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
1656         failure.
1658 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
1660         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
1661         do anything.
1663         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
1664         symbol require exact match (these are PLTs).
1665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
1666         (_dl_ppc64_addr_sym_match): Likewise.
1668         [BZ #2683]
1669         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
1670         If symbol has a value use it.
1671         * elf/tst-dladdr1.c: New file.
1672         * elf/Makefile: Add rules to build and run tst-addr1.
1674 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
1676         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
1677         keeps failing and heap growth or new heap creation isn't
1678         successful either.
1679         * malloc/tst-malloc.c (main): Add new tests.
1681 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
1683         [BZ #2734]
1684         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
1685         as in the x86-64 code to use bswap.
1687 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
1689         [BZ #2680]
1690         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
1691         __USE_UNIX98.
1692         * posix/bits/unistd.h: Likewise.
1694 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
1696         [BZ #2751]
1697         * string/strchr.c: Add cast to avoid warning.
1699 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
1701         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
1702         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
1703         limit is needed to avoid the exploding of the address space
1704         requirement for secondary heaps.
1705         * malloc/arena.c (HEAP_MAX_SIZE): Define using
1706         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
1708 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
1710         [BZ #3018]
1711         * Makerules (depfiles): Handle extra-test-objs the same as
1712         extra-objs.
1713         (common-mostlyclean): Likewise.
1714         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
1715         instead.
1716         * elf/Makefile (extra-objs): Likewise.
1717         * stdlib/Makefile (extra-objs): Likewise.
1719 2006-08-14  Eric Blake  <ebb9@byu.net>
1721         [BZ #3044]
1722         * misc/error.h: Assume C89 or better.
1723         * misc/error.c: Likewise.
1725 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
1727         [BZ #3040]
1728         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
1729         __ASSUME_ATFCTS is defined.
1731 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
1733         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
1734         to sort in each call.
1736         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
1737         is empty simply return and use next service.
1738         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
1740         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
1741         tells us when not finding a charmap file is an error.
1742         * locale/programs/charmap.h: Adjust charmap_read prototype.
1743         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
1744         cannot find a charmap.
1745         * locale/programs/localedef.c (main): Adjust charmap_read call.
1747 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
1749         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
1750         sysdeps/posix/pause.c implementation instead.
1752 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
1754         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
1755         to EPERM.
1757 2006-08-13  Andreas Schwab  <schwab@suse.de>
1759         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
1760         Don't clobber caller's LRSAVE.
1761         (_dl_prof_resolve): Likewise.
1763 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
1765         [BZ #1996]
1766         * libio/memstream.c (open_memstream): Allocate initial buffer with
1767         calloc.
1768         * libio/wmemstream.c (open_wmemstream): Likewise.
1769         * libio/strops.c: Pretty printing.
1770         (_IO_str_overflow): Clear uninitialized part of the new buffer.
1771         (enlarge_userbuf): New function.
1772         (_IO_str_seekoff): Call it if seek position is larger than current
1773         buffer.
1774         * libio/wstrops.c: Likewise.
1775         * libio/vasprintf.c: Add comment as to why we do not have to use
1776         calloc instead of malloc to allocate initial buffer.
1777         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
1778         * libio/bug-memstream1.c: New file.
1779         * libio/bug-wmemstream1.c: New file.
1781 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
1783         * libio/wstrops.c: Remove dead macro definitions and comments.
1784         * libio/strops.c: Likewise.
1786         [BZ #2764]
1787         * login/utmpname.c (__utmpname): Remove unnecessary test.
1789 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
1791         [BZ #2832]
1792         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
1793         0s from integers.
1795 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
1797         [BZ #2987]
1798         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
1799         for CPU clocks.
1800         * sysdeps/unix/clock_settime.c: Add support for platform-specific
1801         setting of CPU clocks.
1803 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1805         [BZ #2841]
1806         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
1807         since C99 requires the result to promote to 'int' when uint_least8_t
1808         and uint_least16_t promote to 'int'.
1810 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
1812         [BZ #3013]
1813         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
1814         lenght of one output field, correct bitmask creation.
1815         * locale/programs/ld-time.c: Add alignment.
1817         [BZ #2997]
1818         * misc/error.c: Add space between program name and message if file
1819         name is missing.
1821 2006-08-03  Eric Blake  <ebb9@byu.net>
1823         [BZ #2998]
1824         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
1826 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
1828         * malloc/memusagestat.c: Silence warnings.
1830         * malloc/malloc.c: Dynamically size mmap treshold if the program
1831         frees mmaped blocks.
1832         Patch by Valerie Henson and Arjan van de Ven.
1834 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
1836         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
1837         __USE_GNU.
1839         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
1840         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
1841         (DEF): Don't put the var into .gnu.linkonce.r.* section.
1842         Only provide var definitions in strtol_l (or for *ull*
1843         in strtoll_l).
1845         * stdio-common/bug16.c (tests): New array.
1846         (do_tests): Allow the first hexadecimal digit
1847         to be 1, 2, 4 or 8.  Do 3 additional tests.
1849         * sysdeps/s390/fpu/libm-test-ulps: Update.
1851         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
1852         fchownat syscall if available.
1853         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
1854         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
1855         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
1857 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
1859         * nis/nis_xdr.c: Avoid some function calls.
1861 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
1862             Ulrich Drepper  <drepper@redhat.com>
1864         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
1865         short cut if only one name component is stripped away.
1867 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
1869         * nis/nis_call.c: Minor cleanups throughout.
1870         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
1871         (first_shoot): Add search_parent_first parameter.  Only if it is set
1872         search parent server first.
1873         If directory for table found through cold start cache is not the same
1874         as referenced in the cache, don't use it.
1875         (__nisfind_server): Take additional parameter.  Pass it on to
1876         first_shoot.
1877         (__prepare_niscall): Adjust __nisfind_server call.
1878         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
1879         * nis/nis_table.c: Adjust __nisfind_server call.
1880         * nis/nis_lookup.c: Likewise.
1881         (nis_lookup): Don't loop endlessly if name is reduced to ".".
1883 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
1885         [BZ #2182]
1886         * math/s_cacosh.c: Return values from positive branch.
1887         * math/s_cacoshf.c: Likewise.
1888         * math/s_cacoshl.c: Likewise.
1890         [BZ #2883]
1891         * sysvipc/sys/msg.h: Change return value to ssize_t.
1892         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
1893         * sysvipc/msgrcv.c: Likewise.
1894         * include/sys/msg.h: Likewise.
1896         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
1897         test introduced in patch for bz #661.
1898         (getgrouplist): Simplify code a bit.  Don't allocate one additional
1899         element for NEWGROUPS.
1901         [BZ #2908]
1902         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
1903         'f', use '1' as leading digit not '\1'.
1904         * stdio-common/Makefile (tests): Add bug16.
1905         * stdio-common/bug16.c: New file.
1907         [BZ #2914]
1908         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
1909         and don't try to open it.  The patch introducing the macro
1910         contained a bug and used the same file name as the new file
1911         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
1912         this out completely.
1914         [BZ #2926]
1915         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
1916         Patch by Jerry James <Jerry.James@usu.edu>.
1918         * rt/Makefile (tests): Add tst-clock2.
1919         * rt/tst-clock2.c: New file.
1921         [BZ #2978]
1922         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
1923         function and its parameters and pass it to new thread.
1924         (__gai_notify): Add support for alternative waiting for completion.
1925         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
1926         waiting for completion.
1927         * resolv/getaddrinfo_a.c: Likewise.
1928         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
1929         waiting for completion is used.
1930         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
1931         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
1932         * resolv/gai_error.c: Likewise.
1933         * resolv/gai_sigqueue.c: Likewise.
1935 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
1937         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
1938         errno to EBADF and return MACH_PORT_NULL.
1940 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
1942         [BZ #2980]
1943         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
1945 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
1947         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
1948         walk them instead of the symbol table.
1950 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
1952         [BZ #2098]
1953         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
1954         status of NSS calls, not the number of returned entries.
1956         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
1957         request_key, keyctl.
1959 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
1961         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
1963 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
1965         * elf/tst-auditmod1.c: Fix typo in #error.
1967 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
1969         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
1971         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
1973 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
1975         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
1976         that the directory is empty even on non-POSIX filesystems.
1978 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
1980         * elf/dl-open.c (dl_open_worker): Add branch prediction.
1982         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
1983         the backend NSS module.  If backend setgrent call failed, don't have
1984         internal_setgrent fail.  Just remember this until it is needed.
1985         * nis/nss_compat/compat-pwd.c: Likewise.
1986         * nis/nss_compat/compat-spwd.c: Likewise.
1988 2006-07-30  Roland McGrath  <roland@redhat.com>
1990         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
1991         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
1992         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
1993         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
1995         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
1996         (nanosleep_not_cancel): New macro.
1997         (sigsuspend_not_cancel): new macro.
1998         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
1999         (do_sigsuspend): Define as inline.
2000         (__sigsuspend): Always use do_sigsuspend.
2001         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
2002         * include/signal.h: Declare __sigsuspend_nocancel.
2003         * sysdeps/posix/pause.c
2004         [! NO_CANCELLATION] (__pause_nocancel): New function.
2006         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
2007         * include/time.h (__nanosleep_nocancel): Likewise.
2009 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
2011         * locale/programs/localedef.c (add_to_readlist): Rename local
2012         variables to avoid confusion.
2014         * locale/programs/charmap.c (charmap_read): Emit error message if
2015         charmap couldn't be found or read.
2017 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
2019         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2020         __ASSUME_FUTEX_LOCK_PI.
2021         * include/time.h: Declare __nanosleep_nocancel.
2022         * include/unistd.h: Declare __pause_nocancel.
2024         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
2025         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
2026         get the __stack_chk_fail_local definition when it's needed.
2028 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
2030         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
2031         * dlfcn/bug-atexit3.c: New file.
2032         * dlfcn/bug-atexit3-lib.cc: New file.
2034         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
2035         used when the namespace is not the base namespace.
2037 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
2039         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
2040         (__new_exitfn): Bump it in every successful call.
2041         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
2042         more exit handlers, call them right away.
2043         * stdlib/exit.h: Declare __new_exitfn_called.
2045 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
2047         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
2048         calling registered handler.
2050         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
2051         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2052         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2053         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2054         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2055         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2056         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2057         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2059 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
2061         * elf/dl-lookup.c (dl_new_hash): New functions.
2062         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
2063         value here.  Compute new-style hash value.  Pass new hash value
2064         and reference to variable with the old value to do_lookup_x.
2065         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
2066         old-style hash table.
2067         (_dl_debug_bindings): Pass new hash value and reference to variable
2068         with the old value to do_lookup_x.
2069         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
2070         new-style hash value and change old-style hash value parameter to
2071         be a reference.  Reoganize functions to determine whether
2072         new-style hash table is available.  Only fall back on old-style
2073         table.  If old-style hash value is needed, compute it here.
2074         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
2075         entry.
2076         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
2077         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
2078         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
2079         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
2080         * Makeconfig: If linker supports --hash-style option add it to all
2081         linker command lines to build DSOs.
2082         * config.make.in: Define have-hash-style.
2083         * configure.in: Test whether linker supports --hash-style option.
2085         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
2086         * sysdeps/generic/ldsodefs.h: Adjust prototype.
2088 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
2090         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
2091         auditing.
2093         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
2094         RPATH of main map twice.
2096 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
2098         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
2099         look further, return original strings.
2100         (_nl_find_msg): Do not return found translation if the conversion
2101         failed.  Either signal the string is unusable or that something went
2102         wrong and the original should be used.
2104 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
2106         * string/_strerror.c (__strerror_r): Add __builtin_expect.
2108 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
2110         [BZ #2766]
2111         * misc/insremque.c (insque): Handle prev == NULL.
2112         * misc/Makefile (tests): Add tst-insremque.
2113         * misc/tst-insremque.c: New test.
2115 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
2117         [BZ #2792]
2118         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
2119         conflict with DL_DST_REQUIRED.
2121 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
2123         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
2124         match what Solaris does.
2126 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
2128         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
2129         local_setegid instead of seteuid and setegid.
2130         * sysdeps/generic/local-setxid.h: New file.
2131         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
2133         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
2135         * string/Makefile (tests): Add bug-envz1.
2136         * string/bug-envz1.c: New file.
2138 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
2140         * posix/regex_internal.c (re_string_skip_chars): If no character has
2141         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
2142         to the byte which couldn't be converted.
2143         (re_string_reconstruct): Don't clear valid_raw_len before calling
2144         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
2145         tip_context using re_string_context_at.
2146         * posix/Makefile: Add rules to build and run bug-regex25 test.
2147         * posix/bug-regex25.c: New test.
2149 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
2151         [BZ #2703]
2152         * string/envz.c (envz_strip): Correct erroneously reversed src
2153         and dest parameters to memmove() invocation.
2155 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
2157         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
2158         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
2159         to make sure the database has been already invalidated.
2160         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
2161         after the cache has been invalidated.  Use pthread_mutex_lock rather
2162         than pthread_mutex_trylock if fd != -1.
2163         * nscd/connections.c (invalidate_cache): Add fd argument, write
2164         response to fd if not calling prune_cache, pass fd to prune_cache.
2165         (handle_request): Adjust invalidate_cache caller.
2166         (nscd_run): Pass -1 as fd to prune_cache.
2168 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
2170         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
2171         the correct place.
2173 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
2175         * nscd/nscd.h (struct database_dyn): Add prunelock field.
2176         * nscd/cache.c (prune_cache): Take prunelock before starting the
2177         work.  Just return in case it is already taken.
2178         * nscd/connections.c (dbs): Initialize .prunelock.
2180 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
2182         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
2183         copying.  No need to allocate new array for group members.  Just
2184         move the pointers and update the size.
2186         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
2187         Avoid memory leak in case realloc fails.  Simplification for
2188         better code generation.
2190         Avoid deprecation warning because of libc_hidden_proto for
2191         inet6_option_alloc.
2192         * inet/inet6_option.c (option_alloc): Renamed from
2193         inet6_option_alloc.  Made static.
2194         (inet6_option_alloc): Now a simple wrapper around option_alloc.
2195         (inet6_option_append): Call option_alloc.
2196         * include/netinet/in.h: Remove libc_hidden_proto for
2197         inet6_option_alloc.
2199         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
2200         for cleanup when cb!=NULL [Coverity CID 233].
2202 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
2204         [BZ #2693]
2205         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
2206         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
2207         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
2208         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
2209         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
2210         and inet6_rth_getaddr.
2211         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
2212         array.
2213         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
2214         Mark inet6_option_* interfaces as deprecated.
2215         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
2216         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
2217         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
2218         inet6_rth_segments, and inet6_rth_getaddr.
2219         * inet/inet6_opt.c: New file.
2220         * inet/inet6_rth.c: New file.
2222         * inet/netinet/icmp6.h: Pretty printing.
2224         [BZ #2683]
2225         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
2227 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
2229         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
2230         doing it all here.  When server does not know the answer do not
2231         fail immediate, try parent first.
2233         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
2234         overflow test.
2236 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
2238         * nis/nis_call.c (__prepare_niscall): New function.  Split out
2239         from __do_niscall.
2240         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
2241         and exported.
2242         (__follow_path): New function.  Split out from nis_list.
2243         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
2244         _xdr_nis_result.
2245         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
2246         _xdr_nis_result.
2247         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
2248         and __follow_path.
2249         * nis/Versions: Export __prepare_niscall, __create_ib_request,
2250         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
2251         from libnsl for version GLIBC_PRIVATE.
2252         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
2253         Remove entry parameter from _nss_nisplus_parse_pwent and
2254         _nss_nisplus_parse_grent.
2255         * nis/nss_nisplus/nisplus-parser.c: Likewise.
2256         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
2257         again.  Rewrite getpwent handling to not use nis_first_entry and
2258         nis_next_entry.  Roll out own niscall handling.
2259         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2261         * sunrpc/xdr_rec.c: Fix typo in comment.
2263 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
2265         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
2266         handling.
2268         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
2269         to allocate memory for my_pollfd.  Better initialization of
2270         cb_is_running.  Use TEMP_FAILURE_RETRY.
2272         * malloc/memusage.sh (memusageso): Add quotes.
2273         (memusagestat): Likewise.
2274         * debug/xtrace.sh (pcprofileso): Likewise.
2275         (pcprofiledump): Likewise.
2276         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
2277         replacement.
2278         * malloc/Makefile ($(objpfx)memusage): Likewise.
2280         * nis/nis_callback.c (__nis_create_callback): Calls to
2281         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
2282         asprintf call fails.
2284         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
2285         no uninitialized memory is passed to sendto.
2287 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
2289         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
2290         of snprintf+strdup.  Handle OOM.
2291         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
2292         cb->serv together.  Remove now obsolete free calls.
2293         (__nis_destroy_callback): Remove now obsolete free call.
2295 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
2297         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
2298         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
2299         and ULA respectively). Set precedence for IPv4 address to 10 as
2300         defined in RFC3484 for preferring IPv6.
2301         * posix/gai.conf: Update to match the new default tables.
2303 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
2305         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
2306         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
2307         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
2308         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
2310         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
2311         Removed.
2312         (init_nss_interface): Remove initialization of these variables.
2314 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
2316         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
2317         nis_free_directory forward to avoid duplication.
2319 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
2321         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
2322         rec_dirsearch returning NULL.
2323         (first_shoot): Handle __nis_finddirectory returning NULL.
2324         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
2326         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
2327         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
2329 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
2331         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
2332         pid changed.
2334 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
2336         * include/rpc/pmap_prot.h: Mark all functions as hidden.
2338         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
2339         * nscd/nscd_getgr_r.c: Likewise.
2341         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
2343         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
2344         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
2346         * stdlib/longlong.h (__clz_tab): Mark as hidden.
2348         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
2350         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
2352         * include/rpc/auth.h: Mark xdr_des_block_internal and
2353         xdr_opaque_auth_internal as hidden.
2355         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
2356         hidden.
2358         * include/rpc/xdr.h: Mark all _internal functions as hidden.
2360         * misc/getusershell.c (okshells): Don't use static initializers,
2361         do it dynamically.
2363         * stdlib/fmtmsg.c (keywords): Change type of len element to
2364         uint32_t to not waste space on 64bit machines.
2366         * locale/setlocale.c: Change _nl_category_names into a string.
2367         Add new _nl_category_name_idxs.  Change all users.
2368         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
2369         Declare _nl_category_name_idxs.
2370         * locale/findlocale.c: Adjust for _nl_category_names change.
2371         * locale/loadlocale.c: Likewise.
2372         * locale/newlocale.c: Likewise.
2373         * intl/dcigettext.c: Likewise.
2375         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
2376         (add_alias2): ...here.  New function.
2377         (__gconv_read_conf): Simplify builtin alias handling.
2378         (builtin_aliases): Convert to string to avoid relocations.
2379         * iconv/gconv_builtin.h: Add comment about correct formatting.
2381 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2383         * resolv/res_debug.c (loc_ntoa): Make error const.
2385 2006-05-14  Andreas Schwab  <schwab@suse.de>
2387         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
2389 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
2391         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
2392         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
2393         sizeof (cpu_set_t).
2395 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
2397         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
2399         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
2401         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
2402         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
2404         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
2405         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
2407         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
2408         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
2409         xdr_cback_data.
2411         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
2412         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
2413         xdr_ypupdate_args.
2415         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
2416         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
2418         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
2419         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
2421         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
2422         * include/rpcsvc/nis_callback.h: New file.
2424         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
2425         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
2427         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
2428         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
2430         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
2431         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
2433         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
2434         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
2436         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
2437         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
2438         xdr_ypdelete_args.
2440         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
2441         __BEGIN_DECLS and __END_DECLS, the header is not installed.
2443         * nis/nis_error.c: Remove table of strings.  Use position
2444         independent mechanism.
2445         * nis/nis_error.h: New file.
2447 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
2449         * locale/programs/ld-time.c (time_finish): If wide era name or
2450         format aren't provided, set both wname and wformat to L"".
2452 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
2454         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
2455         results if the call was succesful.
2457         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
2459         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
2460         as hidden.
2462 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
2464         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
2466 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
2468         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
2469         caller makes sure this is not the case.
2470         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
2472 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
2474         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
2475         calls.
2477         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
2478         [Coverity CID 229, 230]
2480         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
2481         DGETTEXT calls.
2482         (hol_help): Likewise.  [Coverity CID 226, 227]
2484         * string/argz-replace.c (__argz_replace): Unconditionally call
2485         free on SRC.  [Coverity CID 225]
2487         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
2488         the return value of __nis_default_owner and __nis_default_group,
2489         it has been especially allocated.  [Coverity CID 224]
2491         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
2492         searchgroup and searchowner.  Significantly simplified.
2493         (__nis_default_owner): Remove duplication.  Do not locally copy the
2494         string before duplicating it.
2495         (__nis_default_group): Likewise.
2497         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
2498         we must clear the variable before calling __nisfind_server.
2500         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
2501         nis_getnames.  [Coverity CID 223]
2503         * locale/programs/locfile.c (locfile_read): Use alloca instead of
2504         xmalloc to allocate local repertoire name.  [Coverity CID 222]
2506         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
2507         allocate memory for the input to add_bytes.  [Coverity CID 221]
2509         * posix/wordexp.c (w_addword): Free word if realloc fails and it
2510         was allocated here.  [Coverity CID 219, 220]
2512         * posix/getconf.c (print_all): Free confstr data after printing.
2513         [Coverity CID 218]
2515         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
2516         list allocation fails.  [Coverity CID 215]
2518         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
2519         [Coverity CID 213]
2521         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
2522         string is NULL.  [Coverity CID 212]
2523         * argp/Makefile: Add rules to build and run bug-argp1.
2524         * argp/bug-argp1.c: New file.
2526         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
2527         end of string.
2528         * stdlib/canonicalize.c (__realpath): Likewise.
2530         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
2531         pointer.  [Coverity CID 206]
2533         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
2534         in statically linked code.
2535         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
2536         statically built code, be prepared to have no link map.
2537         [Coverity CID 205]
2539         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
2540         dgettext calls. [Coverity CID 204]
2542         * argp/argp-help.c (struct uparams): Remove valid member.  Change
2543         the one user.
2544         (uparam_names): Reduce size.  Avoid relative relocations.
2545         Moved to read-only segment.
2546         (fill_in_uparams): Update for new layout.
2548         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
2549         assumed to always be != NULL. [Coverity CID 202]
2551         * argp/argp-help.c (hol_entry_help): Remove some dead code
2552         [Coverity CID 200].
2554         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
2555         away a few more unconditional yperr2nss calls.
2556         (_nss_nis_getservbyname_r): Likewise.
2558 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
2560         * sysdeps/generic/ldsodefs.h: Remove support for non-core
2561         architectures.
2563         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
2564         that unused memory passed to sendto is nevertheless initialized.
2566         [BZ #2499]
2567         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
2568         possibly unaligned memory accesses.
2570         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
2571         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
2572         and __putlong respectively.  Correct buffer overflow check for
2573         NS_NOTIFY_OP.
2575         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
2577         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
2578         (send_dg): Rewrite error handling to be more compact and avoid
2579         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
2581         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
2583         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
2584         instead of ns_get16.
2585         (res_queriesmatch): Likewise.  Minor optimization.
2587         [BZ #2499]
2588         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
2589         __libc_res_nsend might reallocate the buffer for the answer.  In
2590         this case we have to reload the HP pointer.
2592 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
2594         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
2595         some branch prediction hints.
2597         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
2598         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2599         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2600         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2601         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2602         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2603         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2604         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2606 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2608         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
2609         by a GOT relocation to make Scrt1.o position independent.
2610         * sysdeps/s390/s390-64/elf/start.S: Likewise.
2612         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
2613         six system call parameters.
2614         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
2616 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
2618         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
2619         malloc&bzero.
2621         * sunrpc/svc_udp.c (BZERO): Remove definition.
2622         (CALLOC): Define.
2623         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
2625         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
2626         (des_SPtrans): Use uint32_t type.
2627         (des_skb): Likewise.
2629         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
2631 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
2633         [BZ #2509]
2634         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
2635         on 32-bit arches.
2637 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
2639         * locale/programs/ld-address.c (address_finish): Fix one more
2640         place where the iso639 array might be accessed beyond the limits.
2642 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
2644         * nis/nis_table.c (nis_list): Avoid clearing res twice before
2645         filling it for the first time.
2647         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
2648         Adjust all callers.
2649         Free res object content before returning.
2651         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
2653         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
2654         client->cl_auth.
2656         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
2657         cleanup for initial thread, just the free call on TVP.
2659         * nscd/gai.c (__getline): Define.
2662 See ChangeLog.16 for earlier changes.