[BZ #4096]
[glibc.git] / ChangeLog
blob5ee521242218262b9936eee0f3bf97e86baeea60
1 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
3         [BZ #4096]
4         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
5         earlier.
6         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
9         for x qNaN and y either +-inf or non-integer value.
10         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
12         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
14 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
16         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
17         from sysdep_headers.
19 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
21         * time/tzfile.c (find_transition): Instead of a linear search try to
22         guess the transition index, use a linear search if the result is at
23         most 10 transitions away from the guess or binary search otherwise.
25 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
27         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
28         memory reallocation.
30 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
32         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
33         and fix some typos.
34         Optimize use of TOLOWER.
36         [BZ #3325]
37         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
38         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
39         * sysdeps/i386/fpu/e_fmod.S: Likewise.
41         [BZ #3458]
42         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
43         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
45         [BZ #4076]
46         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
47         (open_dir_stream): Likewise.
48         * io/Makefile (tests): Add bug-ftw5.
49         io/bug-ftw5.c: New file.
51         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
52         * nscd/servicescache.c (cache_addserv): Likewise.
54         * nscd/grpcache.c (cache_addgr): In case a record changed on
55         refresh, adjust key_copy.
57         [BZ #4074]
58         * nscd/pwdcache.c (cache_addpw): In case a record changed on
59         refresh, adjust key_copy.
61         [BZ #4070]
62         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
63         special cases.
64         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
66 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
68         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
69         optimization.
71         * stdio-common/vfscanf.c: Small cleanups throughout.
73 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
75         [BZ #3325]
76         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
77         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
78         * sysdeps/i386/fpu/e_fmod.S: Likewise.
79         Patch by Jared Casper <jaredcasper@gmail.com>.
81         * sysdeps/unix/closedir.c: Outside libc don't use locking.
82         * sysdeps/unix/opendir.c: Likewise.
83         * sysdeps/unix/readdir.c: Likewise.
85         [BZ #2211]
86         * stdio-common/vfscanf.c: Handle localized digits etc for floating
87         point numbers.
88         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
90         * stdio-common/vfscanf.c: Fix problems in width accounting.
91         * stdio-common/tst-sscanf.c (double_tests): New tests.
92         (main): Hook them up.
94         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
95         More simplifications of floating-point reader.
97         * stdio-common/Makefile (tests): Add tst-swscanf.
98         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
99         testing.
100         * stdio-common/tst-swscanf.c: New file.
102 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
104         [BZ #2633]
105         * libio/stdio.h: Define struct _IO_FILE in global namespace.
106         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
107         Remove using for __jmp_buf_tag.
108         * locale/locale.h (struct lconv): Also define in std namespace.
109         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
111         [BZ #3842]
112         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
113         using __libc_enable_secure.
115         [BZ #3818]
116         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
118         [BZ #3745]
119         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
120         of names for ellipsises.
122         [BZ #3348]
123         * malloc/memusage.sh: Cleanups.
124         * debug/xtrace.sh: Quoting and trap changes.
126 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
128         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
130         * locale/iso-3166.def: Update entry for Serbia.
131         * locale/iso-4217.def: Define RSD, remove CSD.
133         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
134         and 64-bit operations.
136         [BZ #4040]
137         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
138         16-bit operations.
140         * nscd/nscd.c (parse_opt): One more conversion to use send instead
141         of writev.
143 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
145         [BZ #3991]
146         * assert/assert.h (assert): Simplify.
147         (assert_perror): Likewise.
148         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
150         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
151         reqdata.
153         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
154         change: don't pass NULL in place of an integer.
156 2007-02-02  Bruno Haible  <bruno@clisp.org>
158         [BZ #3954]
159         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
160         Add mapping for U+327E.
161         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
162         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
163         mapping of 0xD9 0xE8.
164         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
165         mapping of U+327E.
166         Reported by Jungshik Shin <jungshik@google.com>.
168         [BZ #3955]
169         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
170         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
171         Reported by Jungshik Shin <jungshik@google.com>.
173 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
175         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
176         byte variants.
178         [BZ #4040]
179         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
180         byte variants.  Patch mostly be tom@tommay.net.
182 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
184         [BZ #3996]
185         * posix/glob.c (attribute_hidden): Define if not defined.
186         (glob): Unescape dirname, filename or username when needed and not
187         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
188         is NULL.  Handle unescaped [ in pattern without closing ].
189         Don't pass GLOB_CHECK down to recursive glob for directories.
190         (__glob_pattern_type): New function.
191         (__glob_pattern_p): Implement using __glob_pattern_type.
192         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
193         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
194         Remove unreachable code.
195         * posix/globtest.sh: Add a couple of new tests.
197 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
199         * po/ru.po: Update from translation team.
201 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
203         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
204         to the list of i486+ CPUs.
205         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
207 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
209         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
210         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
211         references.
213 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
215         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
217         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
218         * resolv/res_mkquery.c: Define __res_nopt.
219         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
220         try adding EDNS0 record.
221         * resolv/res_send.c (send_dg): If request failed with FORMERR and
222         EDNS0 record was send make sure we don't try it again.
223         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
224         * include/resolv.h: Declare __res_nopt.
226 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
228         [BZ #3944]
229         * time/strptime_l.c (__strptime_internal): Set have_mon for
230         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
231         have been computed from tm_yday and tm_year.  Don't crash
232         in day_of_the_week or day_of_the_year if not have_mon
233         and tm_mon contains bogus value.
234         * time/Makefile (tests): Add tst-strptime3.
235         * time/tst-strptime3.c: New test.
237 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
239         [BZ #3957]
240         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
241         bit for RE_HAT_LISTS_NOT_NEWLINE.
242         (build_charclass_op): Remove bogus comment.
243         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
244         * posix/bug-regex27.c: New test.
245         * posix/bug-regex28.c: New test.
247 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
249         * po/sv.po: Update from translation team.
251 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
253         * nscd/nscd_helper.c (open_socket): Minor size optimization.
255 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
257         * include/locale.h (__uselocale): Add libc_hidden_proto.
258         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
260         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
261         gettimeofday.
263 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
265         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
266         returning.
267         (PTR_DEMANGLE): Real definition now that it's not the same as
268         PRT_MANGLE anymore.
269         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
271         * string/strerror_l.c: New file.
272         * string/Makefile (routines): Add strerror_l.
273         * string/string.h: Declare strerror_l.
274         * string/Versions: Export strerror_l for GLIBC_2.6.
276 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
278         * nscd/nscd_helper.c (open_socket): Now takes request type and key
279         as parameter.  Construct request record.  Try sending request
280         before the first poll use, it usually succeeds.  Adjust all
281         callers.
282         * nscd/nscd-client.h: Define MAXKEYLEN.
283         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
285 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
287         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
288         from return value.
289         * nscd/nscd_helper.c: Include string.h.
290         (__nscd_cache_search): Remove const qualifier from return value.
291         On strict alignment architectures check hash entry and data head
292         alignment.
293         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
294         mmapped data during GC cycle contains garbage.  If
295         __nscd_drop_map_ref fails, decrement mapped->counter when returning
296         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
297         dropped to 0.
298         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
299         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
300         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
301         * nscd/nscd_getai.c (__nscd_getai): Likewise.
302         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
304 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
306         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
308 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
310         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
311         names not numbers in cfi_*.
313 2007-01-26  Andreas Jaeger  <aj@suse.de>
315         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
316         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
317         Correct values of PER_HPUX and PER_OSF4.
319 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
321         * elf/dl-minimal.c: Undefine _itoa first.
322         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
323         * malloc/mtrace.c: Revert last change.
324         * posix/wordexp.c: Likewise.
326 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
328         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
329         and __geode__ to the list of i486+ CPUs.
330         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
332 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
334         * stdio-common/_itoa.c: Include <limits.h>.
335         * stdio-common/_itowa.c: Likewise.
337 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
339         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
340         platforms.
341         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
342         64-bit platforms.
343         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
344         possible.
345         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
346         if possible.
348         [BZ #3902]
349         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
350         * stdio-common/Makefile (tests): Add bug17.
351         * stdio-common/bug17.c: New file.
353 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
355         * iconvdata/brf.c: New file.
356         * iconvdata/testdata/BRF: New file.
357         * iconvdata/testdata/BRF..UTF8: New file.
358         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
359         * iconvdata/Makefile: Add rules to build BRF.
360         * iconvdata/TESTS: Add BRF entry.
361         * iconvdata/gconv-modules: Likewise.
362         * iconvdata/tst-tables.sh: Likewise.
364 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
366         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
367         type `long long int', not `long int'.
368         (wcstoq): Likewise.
370 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
372         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
373         of values on 64-bit platforms which are too large.
375 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
376             Joe Kerian  <jkerian@us.us.ibm.com>
378         [BZ #2749]
379         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
380         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
381         (__copysignl): Use signbit() for comparison.
382         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
383         SET_LDOUBLE_WORDS64.
385         [BZ #2423, #2749]
386         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
387         (__ceill): Remove calls to fegetround(), fesetround().
388         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
389         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
390         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
392 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
394         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
396         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
398 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
400         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
401         demangle pointer.
402         * csu/libc-start.c: Likewise.
404 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
406         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
407         really work anyway.
409 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
411         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
412         users.
413         (handle_request): Remove unnecessary tests.
415         * nscd/cache.c (cache_add): Record the failure to add to the cache.
417 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
419         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
420         workbits in semi-raw fraction.
422         * math/test-misc.c: Add new tests.
424 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
426         * math/basic-test.c: Include test-skeleton.c.
427         (TEST_TRUNC): Define.
428         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
429         (main): Rename to ...
430         (do_test): ...this.  Run new tests.
431         (TEST_FUNCTION): Define.
433 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
434             Joe Kerian  <jkerian@us.us.ibm.com>
436         [BZ #2749]
437         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
438         handling for high words.
439         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
440         and overflow for infinity.
442 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
444         * nscd/connections.c (handle_request): Add a __builtin_expect.
446         * nscd/connections.c (serv2db): Change type into structure which
447         also says whether this is a request for data.  Renamed to
448         servinfo.  All users changed.
449         (handle_request): Much simpler test whether we should search the cache.
451         * nscd/connections.c (handle_request): Fix thinko in selinux test
452         invocation.
454         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
455         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
456         it before getting dl_load_lock and then relock.
457         (_dl_lookup_symbol_x): Pass flags to add_dependency.
458         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
459         case we unlocked the scope.
460         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
461         _dl_lookup_symbol_x in case we locked the scope.
462         (_dl_profile_fixup): Likewise.
463         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
464         set DL_LOOKUP_SCOPE_LOCK.
466 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
468         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
469         CFLAGS-getsrvbynpt_r.c.
470         * nscd/getsrvbynm_r.c: New file.
471         * nscd/getsrvbypt_r.c: New file.
472         * nscd/nscd_getserv_r.c: New file.
473         * nscd/servicescache.c: New file.
474         * nscd/Makefile (routines): Add nscd_getserv_r.
475         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
476         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
477         CFLAGS-getsrvbypt_r.c.
478         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
479         table.  Add entries for services database.
480         * nscd/connections.c (serv2str): Mark as const.  Add entries for
481         services database.
482         (dbs): Add .reset_res and servdb initialization.
483         (serv2db): Add entries for services database.
484         (verify_persistent_db): Accept dbnr == servdb.
485         (invalidate_cache): Rewrite database name recognition to use a table.
486         Call res_init() if .reset_res is set for database.
487         (handle_request): Add code to handle services database.
488         * nscd/gai.c: Don't define __getservbyname_r.
489         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
490         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
491         (serv_response_header): Define.
492         (struct datahead): Add serv_response_header member.
493         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
494         using table.
495         * nscd/nscd.conf: Add entries for services database.
496         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
497         Declare serv_iov_disabled.
498         Declare addservbyname, readdservbyname, addservbyport, and
499         readdservbyport.
500         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
501         (find_db): Fix error message.
502         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
503         __nscd_getservbyname_r, and __nscd_getservbyport_r.
504         * nscd/selinux.c (perms): Add entries for services database.
505         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
506         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
508         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
509         * nscd/hstcache.c: Likewise.
510         * nscd/pwdcache.c: Likewise.
512         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
513         computation of keylen.
515         * include/string.h: Only redefine strndupa if this is really for
516         libc code.
518 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
520         * nscd/nscd_gethst_r.c: Minor cleanups.
522         * nscd/connections.c (handle_request): Check selinux permissions
523         for all non-admin commands.
525         * sysdeps/i386/i486/bits/atomic.h: Define
526         atomic_compare_and_exchange_val_acq,
527         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
528         using __sync_* built-ins for gcc >= 4.1.
529         * sysdeps/x86_64/bits/atomic.h: Likewise.
531         [BZ #3840]
532         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
533         and .oS.d files.
535 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
537         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
538         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
539         (do_test): Check errno and exit(0) if ENOSYS.
541 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
543         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
544         thousands separators.
545         * stdlib/Makefile: Add rules to build and run tst-strtod4.
546         * stdlib/tst-strtod4.c: New test.
548         [BZ #3855]
549         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
550         hexadecimal digit should accept just the initial 0.
551         * stdlib/tst-strtod2.c (tests): New variable.
552         (do_test): Run several tests rather than just one.
554 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
556         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
557         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
559 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
561         * io/fts.c: Make sure fts_cur is always valid after return from
562         fts_read.
563         Patch by Miloslav Trmac <mitr@redhat.com>.
565 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
567         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
568         (R_MIPS_NUM): Bump by 1.
570 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
572         * posix/execvp.c: Include alloca.h.
573         (allocate_scripts_argv): Renamed to...
574         (scripts_argv): ... this.  Don't allocate buffer here nor count
575         arguments.
576         (execvp): Use alloca if possible.
577         * posix/Makefile: Add rules to build and run tst-vfork3 test.
578         * posix/tst-vfork3.c: New test.
580 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
582         * string/Makefile (tst-strxfrm2-ENV): Define.
583         * stdlib/Makefile (tst-strtod3-ENV): Define.
585 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
587         * posix/getconf.c: Update copyright year.
588         * nss/getent.c: Likewise.
589         * iconv/iconvconfig.c: Likewise.
590         * iconv/iconv_prog.c: Likewise.
591         * elf/ldconfig.c: Likewise.
592         * catgets/gencat.c: Likewise.
593         * csu/version.c: Likewise.
594         * elf/ldd.bash.in: Likewise.
595         * elf/sprof.c (print_version): Likewise.
596         * locale/programs/locale.c: Likewise.
597         * locale/programs/localedef.c: Likewise.
598         * nscd/nscd.c (print_version): Likewise.
599         * debug/xtrace.sh: Likewise.
600         * malloc/memusage.sh: Likewise.
601         * malloc/mtrace.pl: Likewise.
602         * debug/catchsegv.sh: Likewise.
604 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
606         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
607         attempts.
609 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
611         * posix/wordexp.c: Remove some unnecessary tests.
613 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
615         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
616         blacklist the group till after we look it up.
618 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
620         * include/atomic.h (atomic_forced_read): New macro.
622 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
624         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
626 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
628         * nss/getXXbyYY_r.c: Include atomic.h.
629         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
630         add atomic_write_barrier () in between.
632         * stdlib/Makefile (tests): Add tst-makecontext.
633         * stdlib/tst-makecontext.c: New test.
635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
636         (__makecontext): Don't realign uc_mcontext.uc_regs.
638 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
640         * elf/dl-support.c: Include dl-procinfo.h.
641         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
642         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
643         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
644         Define.
645         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
646         hardcoded constants.
647         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
648         PPC_PLATFORM_* macros for array designators.
650 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
652         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
653         names to the beginning.
654         (_dl_powerpc_platforms): Add "power6x".
655         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
656         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
657         (_DL_PLATFORMS_COUNT): Increase.
658         (_dl_string_platform): Handle power6x case.
659         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
660         PPC_FEATURE_POWER6_EXT): Define.
661         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
663 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
665         [BZ #3747]
666         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
667         [-2^31 .. 2^31) range.
668         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
669         targets.
670         * stdlib/tst-rand48-2.c: New test.
671         * stdlib/Makefile (tests): Add tst-rand48-2.
673 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
675         * misc/tst-pselect.c (do_test): Fix sigblock argument.
677 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
679         * misc/tst-pselect.c (do_test): Make sure the helper process is
680         terminating when the test is aborted.
682 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
684         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
685         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
686         Handle relatime mount option.
688         [BZ #2337]
689         * libio/Makefile (tests): Add tst-setvbuf1.
690         * libio/tst-setvbuf1.c: New file.
692 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
694         [BZ #2337]
695         * libio/genops.c (__uflow): Fix a typo.
696         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
697         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
698         the narrow buffer size.
700 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
702         [BZ #2337]
703         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
704         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
705         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
706         in _flags.
707         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
708         _IO_wstr_finish): Likewise.
709         * libio/wmemstream.c (open_wmemstream): Likewise.
710         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
711         even for wide streams.
713 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
716         kernel-features.h.
718 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
720         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
721         separators also if no non-zero digits found.
722         * stdlib/Makefile (tests): Add tst-strtod3.
724 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
726         [BZ #3632]
727         * include/features.h: Fix comment about default value for
728         _POSIX_C_SOURCE.
730         [BZ #3664]
731         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
732         empty parsed strings.
733         * stdlib/Makefile (tests): Add tst-strtod2.
734         * stdlib/tst-strtod2.c: New file.
736         [BZ #3673]
737         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
738         computation.
739         * stdlib/Makefile (tests): Add tst-atof2.
740         * stdlib/tst-atof2.c: New file.
742         [BZ #3674]
743         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
744         correctly if removing trailing zero of hex-float.
745         * stdlib/Makefile (tests): Add tst-atof1.
746         * stdlib/tst-atof1.c: New file.
748 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
750         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
751         Start searching for next comma at p rather than rest.
752         * misc/Makefile (tests): Add tst-mntent2.
753         * misc/tst-mntent2.c: New test.
755         * misc/getusershell.c (initshells): Check for integer overflows.
756         Make strings buffer one bigger as fgets always succeeds when second
757         argument is 1.  Don't use calloc for shells array.  Disallow
758         / as shell.
760 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
762         * malloc/memusage.c: Handle realloc with new size of zero and
763         non-NULL pointer correctly.
764         (me): Really write first record twice.
765         (struct entry): Make format bi-arch safe.
766         (dest): Write out more realloc statistics.
767         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
769 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
771         * nis/nis_subr.c (nis_getnames): Revert last change.
773 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
775         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
776         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
777         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
778         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
779         ENOTTY.
780         * io/Makefile: Add rules to build and run tst-ttyname_r test.
781         * io/tst-ttyname_r.c: New test.
783 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
785         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
787 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
789         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
790         jump table entries.
792 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
794         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
795         `clone' function to ensure proper unwinding stop of gdb.
796         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
798 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
800         * nscd/nscd.init: Remove obsolete and commented-out -S option
801         handling.
803 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
805         [BZ #3514]
806         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
808         [BZ #3515]
809         * manual/string.texi (strtok): Remove duplicate paragraph.
811 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
813         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
814         libgcc not supporting `rflags' unwinding (register # >= 17).
816 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
818         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
819         succeeded.
821 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
822             Jakub Jelinek  <jakub@redhat.com>
823             Jan Kratochvil  <jan.kratochvil@redhat.com>
825         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
826         unwind information.
827         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
828         'restore_rt' even in the 'signal' directory.
829         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
831 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
833         [BZ #3559]
834         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
835         malloc crashed.  Don't allocate memory unnecessarily in each
836         loop.
838 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
840         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
842 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
844         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
846 2006-11-18  Bruno Haible  <bruno@clisp.org>
848         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
849         __sysconf only after having tried to call getgroups32.
851 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
853         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
854         addresses for IPv4 queries if they can be mapped.
856 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
858         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
859         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
860         (signmask): Add .size directive.
861         (othermask): Add .type directive.
863 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
865         * po/nl.po: Update from translation team.
867         * timezone/zdump.c: Redo fix for BZ #3137.
869 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
871         * nss/nss_files/files-alias.c (get_next_alias): Set line back
872         to first_unused after parsing :include: file.
874 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
876         * timezone/africa: Update from tzdata2006o.
877         * timezone/antarctica: Likewise.
878         * timezone/asia: Likewise.
879         * timezone/australasia: Likewise.
880         * timezone/backward: Likewise.
881         * timezone/europe: Likewise.
882         * timezone/iso3166.tab: Likewise.
883         * timezone/northamerica: Likewise.
884         * timezone/southamerica: Likewise.
885         * timezone/zone.tab: Likewise.
887         * time/tzfile.c (__tzfile_read): Extend to handle new file format
888         on machines with 64-bit time_t.
890         * timezone/checktab.awk: Update from tzcode2006o.
891         * timezone/ialloc.c: Likewise.
892         * timezone/private.h: Likewise.
893         * timezone/scheck.c: Likewise.
894         * timezone/tzfile.h: Likewise.
895         * timezone/tzselect.ksh: Likewise.
896         * timezone/zdump.c: Likewise.
897         * timezone/zic.c: Likewise.
899         [BZ #3483]
900         * elf/ldconfig.c (main): Call setlocale and textdomain.
901         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
903         [BZ #3480]
904         * manual/argp.texi: Fix typos.
905         * manual/charset.texi: Likewise.
906         * manual/errno.texi: Likewise.
907         * manual/filesys.texi: Likewise.
908         * manual/lang.texi: Likewise.
909         * manual/maint.texi: Likewise.
910         * manual/memory.texi: Likewise.
911         * manual/message.texi: Likewise.
912         * manual/resource.texi: Likewise.
913         * manual/search.texi: Likewise.
914         * manual/signal.texi: Likewise.
915         * manual/startup.texi: Likewise.
916         * manual/stdio.texi: Likewise.
917         * manual/sysinfo.texi: Likewise.
918         * manual/syslog.texi: Likewise.
919         * manual/time.texi: Likewise.
920         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
922         [BZ #3465]
923         * sunrpc/clnt_raw.c: Minimal message improvements.
924         * sunrpc/pm_getmaps.c: Likewise.
925         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
926         * nis/nis_print_group_entry.c: Likewise.
927         * locale/programs/repertoire.c: Likewise.
928         * locale/programs/charmap.c: Likewise.
929         * malloc/memusage.sh: Likewise.
930         * elf/dl-deps.c: Likewise.
931         * locale/programs/ld-collate.c: Likewise.
932         * libio/vswprintf.c: Likewise.
933         * malloc/memusagestat.c: Likewise.
934         * sunrpc/auth_unix.c: Likewise.
935         * sunrpc/rpc_main.c: Likewise.
936         * nscd/cache.c: Likewise.
937         * locale/programs/repertoire.c: Unify output messages.
938         * locale/programs/charmap.c: Likewise.
939         * locale/programs/ld-ctype.c: Likewise.
940         * locale/programs/ld-monetary.c: Likewise.
941         * locale/programs/ld-numeric.c: Likewise.
942         * locale/programs/ld-time.c: Likewise.
943         * elf/ldconfig.c: Likewise.
944         * nscd/selinux.c: Likewise.
945         * elf/cache.c: Likewise.
946         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
948         [BZ #3451]
949         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
950         change atomic.
951         (ceil): Likewise.
953 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
955         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
956         if N is one bigger than return value.
957         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
958         and l1 last arguments, if buf is defined, verify the return value
959         equals to strlen (buf) and verify no byte beyond passed length
960         is modified.
962 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
964         * po/sv.po: Update from translation team.
966 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
968         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
969         noinline attribute.
971 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
973         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
974         noinline attribute.
976         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
977         Use __new_sys_siglist instead of _sys_siglist_internal as
978         second macro argument.
979         (_old_sys_siglist): Use declare_symbol_alias macro instead of
980         strong_alias.
982 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
984         [BZ #3493]
985         * posix/unistd.h (sysconf): Remove const attribute.
987         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
988         temporary or deprecated addresses.
989         Patch by Sridhar Samudrala <sri@us.ibm.com>.
991         * string/Makefile (tests): Add tst-strxfrm2.
992         * string/tst-strxfrm2.c: New file.
994 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
996         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
997         rather than r->r_brk.
999 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
1001         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
1002         optimization even if needed > n.
1004         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
1005         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
1006         return false, otherwise return true.
1007         (cache_rpath): Return decompose_rpath return value.
1009 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
1011         * include/libc-symbols.h (declare_symbol): Rename to...
1012         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
1013         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
1014         .size directive.
1015         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
1016         changes.
1017         * sysdeps/gnu/siglist.c: Likewise.
1019 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
1021         * sysdeps/powerpc/fpu/bits/mathinline.h
1022         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
1023         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
1025 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
1027         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
1028         Update handling of cache descriptor 0x49 for new models.
1029         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
1030         Likewise.
1032 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
1034         * malloc/memusage.c (dest): Reset not_me back to false after
1035         printing statistics.
1037 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
1039         * configure.in: Work around ld --help change and avoid -z relro
1040         test completely if the architecture doesn't care about security.
1042 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
1044         * po/sv.po: Update from translation team.
1046 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
1048         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
1049         generate compatibility version.
1051 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
1053         * configure.in: Relax -z relro requirement a bit.
1055         * po/sv.po: Update from translation team.
1057 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
1059         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
1060         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
1061         * elf/dl-close.c (_dl_close_worker): Likewise.
1062         * elf/dl-open.c (_dl_open_worker): Likewise.
1063         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
1065 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
1067         * configure.in: Require assembler support for visibility, compiler
1068         support for visibility and aliases, linker support for various -z
1069         options.
1070         * Makeconfig: Remove conditional code which now is unnecessary.
1071         * config.h.in: Likewise.
1072         * config.make.in: Likewise.
1073         * dlfcn/Makefile: Likewise.
1074         * elf/Makefile: Likewise.
1075         * elf/dl-load.c: Likewise.
1076         * elf/rtld.c: Likewise.
1077         * include/libc-symbols.h: Likewise.
1078         * include/stdio.h: Likewise.
1079         * io/Makefile: Likewise.
1080         * io/fstat.c: Likewise.
1081         * io/fstat64.c: Likewise.
1082         * io/fstatat.c: Likewise.
1083         * io/fstatat64.c: Likewise.
1084         * io/lstat.c: Likewise.
1085         * io/lstat64.c: Likewise.
1086         * io/mknod.c: Likewise.
1087         * io/mknodat.c: Likewise.
1088         * io/stat.c: Likewise.
1089         * io/stat64.c: Likewise.
1090         * libio/stdio.c: Likewise.
1091         * nscd/Makefile: Likewise.
1092         * stdlib/Makefile: Likewise.
1093         * stdlib/atexit.c: Likewise.
1094         * sysdeps/generic/ldsodefs.h: Likewise.
1095         * sysdeps/i386/dl-machine.h: Likewise.
1096         * sysdeps/i386/sysdep.h: Likewise.
1097         * sysdeps/i386/i686/memcmp.S: Likewise.
1098         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
1099         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1100         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
1102         * Makerules: USE_TLS support is now default.
1103         * tls.make.c: Likewise.
1104         * csu/Versions: Likewise.
1105         * csu/libc-start.c: Likewise.
1106         * csu/libc-tls.c: Likewise.
1107         * csu/version.c: Likewise.
1108         * dlfcn/dlinfo.c: Likewise.
1109         * elf/dl-addr.c: Likewise.
1110         * elf/dl-cache.c: Likewise.
1111         * elf/dl-close.c: Likewise.
1112         * elf/dl-iteratephdr.c: Likewise.
1113         * elf/dl-load.c: Likewise.
1114         * elf/dl-lookup.c: Likewise.
1115         * elf/dl-object.c: Likewise.
1116         * elf/dl-open.c: Likewise.
1117         * elf/dl-reloc.c: Likewise.
1118         * elf/dl-support.c: Likewise.
1119         * elf/dl-sym.c: Likewise.
1120         * elf/dl-sysdep.c: Likewise.
1121         * elf/dl-tls.c: Likewise.
1122         * elf/ldconfig.c: Likewise.
1123         * elf/rtld.c: Likewise.
1124         * elf/tst-tls-dlinfo.c: Likewise.
1125         * elf/tst-tls1.c: Likewise.
1126         * elf/tst-tls10.h: Likewise.
1127         * elf/tst-tls14.c: Likewise.
1128         * elf/tst-tls2.c: Likewise.
1129         * elf/tst-tls3.c: Likewise.
1130         * elf/tst-tls4.c: Likewise.
1131         * elf/tst-tls5.c: Likewise.
1132         * elf/tst-tls6.c: Likewise.
1133         * elf/tst-tls7.c: Likewise.
1134         * elf/tst-tls8.c: Likewise.
1135         * elf/tst-tls9.c: Likewise.
1136         * elf/tst-tlsmod1.c: Likewise.
1137         * elf/tst-tlsmod13.c: Likewise.
1138         * elf/tst-tlsmod13a.c: Likewise.
1139         * elf/tst-tlsmod14a.c: Likewise.
1140         * elf/tst-tlsmod2.c: Likewise.
1141         * elf/tst-tlsmod3.c: Likewise.
1142         * elf/tst-tlsmod4.c: Likewise.
1143         * elf/tst-tlsmod5.c: Likewise.
1144         * elf/tst-tlsmod6.c: Likewise.
1145         * include/errno.h: Likewise.
1146         * include/link.h: Likewise.
1147         * include/tls.h: Likewise.
1148         * locale/global-locale.c: Likewise.
1149         * locale/localeinfo.h: Likewise.
1150         * malloc/arena.c: Likewise.
1151         * malloc/hooks.c: Likewise.
1152         * malloc/malloc.c: Likewise.
1153         * resolv/Versions: Likewise.
1154         * sysdeps/alpha/dl-machine.h: Likewise.
1155         * sysdeps/alpha/libc-tls.c: Likewise.
1156         * sysdeps/generic/ldsodefs.h: Likewise.
1157         * sysdeps/generic/tls.h: Likewise.
1158         * sysdeps/i386/dl-machine.h: Likewise.
1159         * sysdeps/ia64/dl-machine.h: Likewise.
1160         * sysdeps/ia64/libc-tls.c: Likewise.
1161         * sysdeps/mach/hurd/fork.c: Likewise.
1162         * sysdeps/mach/hurd/i386/tls.h: Likewise.
1163         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
1164         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
1165         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
1166         * sysdeps/s390/libc-tls.c: Likewise.
1167         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1168         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1169         * sysdeps/sh/dl-machine.h: Likewise.
1170         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1171         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1172         * sysdeps/x86_64/dl-machine.h: Likewise.
1174         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
1175         split out locking and parameter checking.
1176         (_dl_close): Call _dl_close_worker after locking and checking.
1177         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
1178         _dl_close.
1179         * elf/Makefile: Add rules to build and run tst-thrlock.
1180         * elf/tst-thrlock.c:  New file.
1182         [BZ #3426]
1183         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
1184         reality.
1186         [BZ #3429]
1187         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
1188         we are sure we do not need it anymore for _dl_close.  Also move
1189         the asserts inside the lock region.
1190         Patch mostly by Suzuki <suzuki@in.ibm.com>.
1192 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
1194         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
1195         argument.
1196         (_dl_lookup_symbol_x): Adjust caller.
1198         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
1199         _ns_global_scope.
1200         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
1202         * elf/dl-libc.c: Revert l_scope name changes.
1203         * elf/dl-load.c: Likewise.
1204         * elf/dl-object.c: Likewise.
1205         * elf/rtld.c: Likewise.
1206         * elf/dl-close.c (_dl_close): Likewise.
1207         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
1208         always use __rtld_mrlock_{change,done}.  Always free old scope list
1209         here if not l_scope_mem.
1210         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
1211         change.  Never free scope list here.  Just __rtld_mrlock_lock before
1212         the lookup and __rtld_mrlock_unlock it after the lookup.
1213         * elf/dl-sym.c: Likewise.
1214         * include/link.h (struct r_scoperec): Remove.
1215         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
1216         with l_scope_mem and l_scoperec_lock with l_scope_lock.
1218 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
1220         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
1222 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
1224         * configure.in: Disable building profile libraries by default.
1226 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
1228         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
1229         as signed longs, check for x_base + pos overflow.
1230         * sunrpc/Makefile (tests): Add tst-xdrmem2.
1231         * sunrpc/tst-xdrmem2.c: New test.
1233 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
1235         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
1236         _dl_lookup_symbol_x code.
1238 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
1240         * elf/dl-runtime.c: Include sysdep-cancel.h.
1241         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
1242         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
1243         instead of catomic_* macros.
1244         * elf/dl-sym.c: Include sysdep-cancel.h.
1245         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
1246         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
1247         * elf/dl-close.c: Include sysdep-cancel.h.
1248         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
1249         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
1250         * elf/dl-open.c: Include sysdep-cancel.h.
1251         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
1252         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
1254 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
1256         [BZ #3313]
1257         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
1258         fastbin rather than end of fastbin array.
1260 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
1262         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
1263         body macro.
1264         * sysdeps/x86_64/bits/atomic.h
1265         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
1266         (catomic_decrement): Use correct body macro.
1268 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
1270         * include/atomic.h: Add a unique prefix to all local variables
1271         in macros.
1272         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
1274 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
1276         [BZ #3369]
1277         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
1278         and 7.
1280 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
1282         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
1284 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
1286         [BZ #3313]
1287         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
1288         determine highest fast bin to consolidate, always look into all of
1289         them.
1290         (do_check_malloc_state): Only require for empty bins for large
1291         sizes in main arena.
1293         * libio/stdio.h: Add more __wur attributes.
1295         * elf/dl-minimal.c (realloc): Optimize last patch.
1297 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
1299         [BZ #3352]
1300         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
1301         and use memcpy() if it does.
1303 2006-11-12  Andreas Jaeger  <aj@suse.de>
1305         [BZ #2510]
1306         * manual/search.texi (Hash Search Function): Clarify.
1307         (Array Search Function): Clarify.
1309 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
1311         [BZ #2830]
1312         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
1313         shifting.
1314         * math/atest-exp2.c (read_mpn_hex): Likewise.
1315         * math/atest-sincos.c (main): Likewise.
1317 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
1319         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
1320         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
1321         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
1322         version GLIBC_2.6.
1323         * Versions.def: Add GLIBC_2.6 for libc.
1325         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
1327         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
1329 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
1331         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
1333         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
1335         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
1336         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
1338 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
1340         * include/atomic.c: Define catomic_* operations.
1341         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
1342         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
1343         * malloc/memusage.c: Likewise.
1344         * gmon/mcount.c: Likewise.
1345         * elf/dl-close.c: Likewise.
1346         * elf/dl-open.c: Likewise.
1347         * elf/dl-profile.c: Likewise.
1348         * elf/dl-sym.c: Likewise.
1349         * elf/dl-runtime.c: Likewise.
1350         * elf/dl-fptr.c: Likewise.
1351         * resolv/res_libc.c: Likewise.
1353 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
1355         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
1356         components which lack them.
1358         * nis/nis_subr.c (nis_getnames): Make sure that we always return
1359         at least one entry consisting of the parameter concatenated with
1360         the domain.
1362 2006-10-10  Roland McGrath  <roland@frob.com>
1364         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
1365         * sysdeps/mach/hurd/futimes.c: Likewise.
1366         * sysdeps/mach/hurd/lutimes.c: Likewise.
1368 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
1369             Jakub Jelinek  <jakub@redhat.com>
1371         Implement reference counting of scope records.
1372         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
1373         from the list in objects which remain.  Always allocate new scope
1374         record.
1375         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
1376         don't resize, allocate a new one.
1377         * elf/dl-runtime.c: Update reference counters before using a scope
1378         array.
1379         * elf/dl-sym.c: Likewise.
1380         * elf/dl-libc.c: Adjust for l_scope name change.
1381         * elf/dl-load.c: Likewise.
1382         * elf/dl-object.c: Likewise.
1383         * elf/rtld.c: Likewise.
1384         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
1385         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
1386         Add l_scoperec_lock.
1387         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
1388         * sysdeps/generic/rtld-lowlevel.h: New file.
1390         * include/atomic.h: Rename atomic_and to atomic_and_val and
1391         atomic_or to atomic_or_val.  Define new macros atomic_and and
1392         atomic_or which do not return values.
1393         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
1394         Various cleanups.
1395         * sysdeps/i386/i486/bits/atomic.h: Likewise.
1397         * po/sv.po: Update from translation team.
1399 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
1401         * Versions.def: Add GLIBC_2.6 to libpthread.
1403         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
1404         (versioned_symbol): Likewise.
1405         (compat_symbol): Likewise.
1407         * po/tr.po: Update from translation team.
1409 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
1411         * nis/Banner: Removed.  It's been integral part forever and the
1412         author info is incomplete anyway.
1413         * libio/Banner: Likewise.
1415         * nis/nis_table.c (nis_list): If __follow_path fails in the new
1416         code, make sure the nis_freeresult call doesn't crash and that the
1417         result is reported correctly.
1419 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
1421         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
1422         when callback is NULL.
1424         * nis/Versions (libnss_nisplus): Add
1425         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
1426         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
1427         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
1428         _nss_create_tablename): Rename to...
1429         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
1430         ... these.  No longer static.
1431         (internal_setgrent): Adjust users.
1432         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
1433         Don't use locking around _nss_grp_create_tablename call.
1434         * nis/nss_nisplus/nisplus-initgroups.c: New file.
1436 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
1438         * version.h (VERSION): Bump to 2.5.90 for new development tree.
1440 2006-10-06  Andreas Jaeger  <aj@suse.de>
1442         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
1444 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
1446         * po/pl.po: Update from translation team.
1448         * nscd/nscd.c (main): Fix typo in message.
1449         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
1451 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
1453         [BZ #3291]
1454         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
1455         errno.h, signal.h, unistd.h and sysdep-cancel.h.
1456         (__sigprocmask): Define.
1458 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
1460         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
1461         used.
1463 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
1465         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
1466         in oldtotal and newtotal calculation.
1467         * nscd/nscd-client.h (struct mapped_database): Add datasize
1468         field.
1469         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
1470         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
1471         increased.
1472         (__nscd_cache_search): Add checks to make sure we never reference
1473         data beyond the current mapping.
1475 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1477         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
1478         variables const to avoid compiler warnings.
1480         * io/fts.c (fts_close): Remove redundant checks.
1481         (fts_build): Likewise.
1482         (fts_palloc): Likewise.
1484         * manual/message.texi (Advanced gettext functions,
1485         Using gettextized software): Fix typos.
1487 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
1489         * posix/glob.c (glob_in_dir): Add some comments and asserts to
1490         explain why there are no leaks.
1492 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
1494         * libio/wmemstream.c: Include <wchar.h>.
1495         * libio/bug-wmemstream1.c: Likewise.
1496         * libio/tst-wmemstream1.c: Likewise.
1497         * libio/tst-wmemstream2.c: Likewise.
1499         * version.h (RELEASE): Bump to 2.5.
1500         * README: Regenerated.
1502         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
1504         [BZ #3273]
1505         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
1506         found no group members.
1507         Patch by Petr Baudis.
1509 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
1511         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
1512         assert bootstrap_map.l_tls_modid is zero.
1513         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
1514         if USE___THREAD.
1516 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
1518         * libio/stdio.h: Move open_wmemstream prototype to ...
1519         * wcsmbs/wchar.h: ... here.
1521 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
1523         [BZ #3252]
1524         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
1525         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
1526         __{,l}chown to handle the rest.
1527         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
1528         fchownat syscall and __ASSUME_32BITUIDS case inline, call
1529         __{,l}chown to handle the rest.
1530         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
1531         i386/fchownat.c.
1532         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
1533         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
1535         [BZ #3253]
1536         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
1537         time, rather allocate increasingly bigger arrays of pointers, if
1538         possible with alloca, if too large with malloc.
1540 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
1542         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
1544         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
1546 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
1548         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
1549         home addresses.
1550         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
1551         IFA_F_HOMEADDRESS flag for interfaces.
1552         * include/ifaddrs.h (struct in6addrinfo): Define
1553         in6ai_homeaddress.
1555 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
1557         [BZ #3225]
1558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
1559         PTR_DEMANGLE3): Define.
1560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
1561         PTR_DEMANGLE3): Likewise.
1562         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
1563         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1564         Likewise.
1565         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
1567 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
1569         * po/libc.pot: Regenerated.
1570         * po/be.po: Updated.
1571         * po/ca.po: Likewise.
1572         * po/cs.po: Likewise.
1573         * po/da.po: Likewise.
1574         * po/de.po: Likewise.
1575         * po/el.po: Likewise.
1576         * po/en_GB.po: Likewise.
1577         * po/es.po: Likewise.
1578         * po/fi.po: Likewise.
1579         * po/fr.po: Likewise.
1580         * po/gl.po: Likewise.
1581         * po/hr.po: Likewise.
1582         * po/hu.po: Likewise.
1583         * po/ja.po: Likewise.
1584         * po/ko.po: Likewise.
1585         * po/nb.po: Likewise.
1586         * po/nl.po: Likewise.
1587         * po/pl.po: Likewise.
1588         * po/pt_BR.po: Likewise.
1589         * po/ru.po: Likewise.
1590         * po/rw.po: Likewise.
1591         * po/sk.po: Likewise.
1592         * po/sv.po: Likewise.
1593         * po/tr.po: Likewise.
1594         * po/zh_CN.po: Likewise.
1595         * po/zh_TW.po: Likewise.
1597         [BZ #3137]
1598         * iconv/iconv_prog.c (main): Fix spelling in error message.
1599         * iconv/iconvconfig.c (main): Likewise.
1600         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
1601         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
1602         * locale/programs/localedef.c (main): Likewise.
1603         * locale/programs/repertoire.c (repertoire_read): Likewise.
1604         * timezone/zdump.c (main): Likewise.
1605         * nscd/connections.c (handle_request): Fix spelling in log message.
1606         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
1608 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
1610         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
1611         interfaces.
1613 2006-09-20  Andreas Jaeger  <aj@suse.de>
1615         * math/libm-test.inc (lrint_test_upward): Fix typo.
1617 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
1619         [BZ #2592]
1620         * math/libm-test.inc (lrint_test_tonearest): New function.
1621         (lrint_test_towardzero): New function.
1622         (lrint_test_downward): New function.
1623         (lrint_test_upward): New function.
1624         (main): Run these new tests.
1625         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
1626         of values near to 0.
1627         (two52): Use double not long double.
1628         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
1629         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
1630         (two23): Use float not double.
1631         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
1632         (two23): Use float not double.
1633         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
1634         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
1635         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
1636         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
1638 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1640         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
1641         Cast sp to unsigned long to avoid compiler warning.
1642         Use __makecontext_ret function instead of a trampoline on the stack.
1643         (__makecontext_ret): New function.
1644         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
1646 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
1648         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
1649         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
1650         bits.
1652 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
1654         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
1655         sure no reference to the unloaded map's search list remains in the
1656         dependency's scope.
1658 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
1660         * elf/Makefile: Add rules to build and run unload7 test.
1661         * elf/unload7.c: New test.
1662         * elf/unload7mod1.c: New file.
1663         * elf/unload7mod2.c: New file.
1665 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
1667         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
1668         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
1669         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1670         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
1671         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1672         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
1673         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1674         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
1675         PTRACE_GETEVENTMSG): Likewise.
1676         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
1677         values.
1679 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
1681         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
1682         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1683         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
1684         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
1686 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
1688         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
1689         write '\0' to the fd.
1690         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
1691         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
1692         Change regs to unsigned long pointer from unsigned int, fix fscr
1693         offset.
1695 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
1697         * io/Makefile (CFLAGS-fstatat.c): Set.
1698         (CFLAGS-fstatat64.c): Likewise.
1699         (CFLAGS-mknodat.c): Likewise.
1701         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
1702         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
1703         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
1704         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
1706 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
1707             Steven Munroe  <sjmunroe@us.ibm.com>
1709         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
1710         names to the beginning.  Rename "cell" to "cellbe".
1711         (_dl_powerpc_platforms): New.
1712         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
1713         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
1714         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
1715         (_DL_HWCAP_PLATFORM): Define to new mask.
1716         (_dl_platform_string, _dl_string_platform): New functions.
1717         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
1718         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
1720 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
1722         [BZ #2526]
1723         * README.libm: Fix a thinko in sqrt algorithm description.
1725         [BZ #3143]
1726         * manual/string.texi (argz_delete): Fix prototype.
1727         Patch by <alpt@freaknet.org>.
1729 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
1731         [BZ #3138]
1732         * io/test-lfs.c (do_prepare): Give name_len type size_t.
1733         * io/tst-fcntl.c (do_prepare): Likewise.
1734         * posix/tst-exec.c (do_prepare): Likewise.
1735         * posix/tst-preadwrite.c (do_prepare): Likewise.
1736         * posix/tst-spawn.c (do_prepare): Likewise.
1737         * posix/tst-truncate.c (do_prepare): Likewise.
1738         * rt/tst-aio.c (do_prepare): Likewise.
1739         * rt/tst-aio64.c (do_prepare): Likewise.
1740         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
1741         size_t.
1743 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
1745         [BZ #2821]
1746         * time/mktime.c (guess_time_tm): Fix overflow detection.
1747         * time/Makefile (tests): Add bug-mktime1.
1748         * time/bug-mktime1.c: New file.
1750         [BZ #3189, #3188]
1751         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
1752         (mremap): Likewise.
1754 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
1756         [BZ #1006]
1757         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
1758         Ensure relocation doesn't clobber any bits outside of the
1759         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
1760         R_SPARC_HI22 and R_SPARC_H44.
1762         [BZ #2775]
1763         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
1764         (long) (MINSIZE + nb - old_size) is positive.
1766         * malloc/arena.c (grow_heap): When growing bail even if new_size
1767         is negative.
1769         [BZ #3155]
1770         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
1771         stack below r1.
1773 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
1775         * posix/regex_internal.c (re_string_reconstruct): Handle
1776         offset < pstr->valid_raw_len && pstr->offsets_needed case.
1777         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
1778         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
1779         re_string_context_at.
1780         * posix/Makefile: Add rules to build and run bug-regex26 test.
1781         * posix/bug-regex26.c: New test.
1783         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
1784         rather than col_sym_free.  Move seqp declaration earlier.
1786         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
1788 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
1790         * nscd/initgrcache.c (addinitgroupsX): Move any_success
1791         decl before first goto out.
1793 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
1795         * Makerules (shlib.lds): If have-hash-style, put .hash section
1796         at the end of the RO segment.
1798 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
1800         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
1801         style hash table format is used.
1803 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
1805         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
1806         randomization rather than before.
1807         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
1809 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
1811         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
1813         * malloc/malloc.c (_int_malloc): Use full list insert and not
1814         shortcut which assumes the list is empty for large requests
1815         too.
1817         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
1819 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
1821         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
1822         and offout arguments to the prototype.
1823         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
1824         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
1825         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
1826         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
1827         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
1828         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
1829         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
1830         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
1832 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
1834         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
1836         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
1837         dlopen parameters.
1839 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
1841         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
1842         only if herrno is NETDB_INTERNAL.  Handle errors other than
1843         ERANGE outside of the loops, handle TRY_AGAIN.
1845         * locale/programs/ld-ctype.c (translit_flatten): Issue error
1846         if other's ctype category was missing.
1847         * locale/programs/ld-collate.c (collate_read): Return if
1848         copy_locale's collate category is missing.
1850 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
1852         [BZ #2684]
1853         * malloc/malloc.c (public_rEALLOc): Try harder by using other
1854         arenas if allocation failed.
1855         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
1857 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
1859         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
1860         waste bins[0..1].
1861         (malloc_state): Reduce bins size by 2.
1862         (_int_malloc): Fix test for large enough buffer for early termination.
1863         When no unsorted block matches perfectly and an exiting block has
1864         to be split, use full list insert and not shortcut which assumes
1865         the list is empty.
1867         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
1868         failure.
1870 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
1872         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
1873         do anything.
1875         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
1876         symbol require exact match (these are PLTs).
1877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
1878         (_dl_ppc64_addr_sym_match): Likewise.
1880         [BZ #2683]
1881         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
1882         If symbol has a value use it.
1883         * elf/tst-dladdr1.c: New file.
1884         * elf/Makefile: Add rules to build and run tst-addr1.
1886 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
1888         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
1889         keeps failing and heap growth or new heap creation isn't
1890         successful either.
1891         * malloc/tst-malloc.c (main): Add new tests.
1893 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
1895         [BZ #2734]
1896         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
1897         as in the x86-64 code to use bswap.
1899 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
1901         [BZ #2680]
1902         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
1903         __USE_UNIX98.
1904         * posix/bits/unistd.h: Likewise.
1906 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
1908         [BZ #2751]
1909         * string/strchr.c: Add cast to avoid warning.
1911 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
1913         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
1914         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
1915         limit is needed to avoid the exploding of the address space
1916         requirement for secondary heaps.
1917         * malloc/arena.c (HEAP_MAX_SIZE): Define using
1918         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
1920 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
1922         [BZ #3018]
1923         * Makerules (depfiles): Handle extra-test-objs the same as
1924         extra-objs.
1925         (common-mostlyclean): Likewise.
1926         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
1927         instead.
1928         * elf/Makefile (extra-objs): Likewise.
1929         * stdlib/Makefile (extra-objs): Likewise.
1931 2006-08-14  Eric Blake  <ebb9@byu.net>
1933         [BZ #3044]
1934         * misc/error.h: Assume C89 or better.
1935         * misc/error.c: Likewise.
1937 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
1939         [BZ #3040]
1940         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
1941         __ASSUME_ATFCTS is defined.
1943 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
1945         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
1946         to sort in each call.
1948         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
1949         is empty simply return and use next service.
1950         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
1952         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
1953         tells us when not finding a charmap file is an error.
1954         * locale/programs/charmap.h: Adjust charmap_read prototype.
1955         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
1956         cannot find a charmap.
1957         * locale/programs/localedef.c (main): Adjust charmap_read call.
1959 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
1961         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
1962         sysdeps/posix/pause.c implementation instead.
1964 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
1966         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
1967         to EPERM.
1969 2006-08-13  Andreas Schwab  <schwab@suse.de>
1971         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
1972         Don't clobber caller's LRSAVE.
1973         (_dl_prof_resolve): Likewise.
1975 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
1977         [BZ #1996]
1978         * libio/memstream.c (open_memstream): Allocate initial buffer with
1979         calloc.
1980         * libio/wmemstream.c (open_wmemstream): Likewise.
1981         * libio/strops.c: Pretty printing.
1982         (_IO_str_overflow): Clear uninitialized part of the new buffer.
1983         (enlarge_userbuf): New function.
1984         (_IO_str_seekoff): Call it if seek position is larger than current
1985         buffer.
1986         * libio/wstrops.c: Likewise.
1987         * libio/vasprintf.c: Add comment as to why we do not have to use
1988         calloc instead of malloc to allocate initial buffer.
1989         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
1990         * libio/bug-memstream1.c: New file.
1991         * libio/bug-wmemstream1.c: New file.
1993 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
1995         * libio/wstrops.c: Remove dead macro definitions and comments.
1996         * libio/strops.c: Likewise.
1998         [BZ #2764]
1999         * login/utmpname.c (__utmpname): Remove unnecessary test.
2001 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
2003         [BZ #2832]
2004         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
2005         0s from integers.
2007 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
2009         [BZ #2987]
2010         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
2011         for CPU clocks.
2012         * sysdeps/unix/clock_settime.c: Add support for platform-specific
2013         setting of CPU clocks.
2015 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2017         [BZ #2841]
2018         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
2019         since C99 requires the result to promote to 'int' when uint_least8_t
2020         and uint_least16_t promote to 'int'.
2022 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
2024         [BZ #3013]
2025         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
2026         lenght of one output field, correct bitmask creation.
2027         * locale/programs/ld-time.c: Add alignment.
2029         [BZ #2997]
2030         * misc/error.c: Add space between program name and message if file
2031         name is missing.
2033 2006-08-03  Eric Blake  <ebb9@byu.net>
2035         [BZ #2998]
2036         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
2038 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
2040         * malloc/memusagestat.c: Silence warnings.
2042         * malloc/malloc.c: Dynamically size mmap treshold if the program
2043         frees mmaped blocks.
2044         Patch by Valerie Henson and Arjan van de Ven.
2046 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
2048         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
2049         __USE_GNU.
2051         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
2052         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
2053         (DEF): Don't put the var into .gnu.linkonce.r.* section.
2054         Only provide var definitions in strtol_l (or for *ull*
2055         in strtoll_l).
2057         * stdio-common/bug16.c (tests): New array.
2058         (do_tests): Allow the first hexadecimal digit
2059         to be 1, 2, 4 or 8.  Do 3 additional tests.
2061         * sysdeps/s390/fpu/libm-test-ulps: Update.
2063         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
2064         fchownat syscall if available.
2065         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
2066         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
2067         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
2069 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
2071         * nis/nis_xdr.c: Avoid some function calls.
2073 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
2074             Ulrich Drepper  <drepper@redhat.com>
2076         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
2077         short cut if only one name component is stripped away.
2079 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
2081         * nis/nis_call.c: Minor cleanups throughout.
2082         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
2083         (first_shoot): Add search_parent_first parameter.  Only if it is set
2084         search parent server first.
2085         If directory for table found through cold start cache is not the same
2086         as referenced in the cache, don't use it.
2087         (__nisfind_server): Take additional parameter.  Pass it on to
2088         first_shoot.
2089         (__prepare_niscall): Adjust __nisfind_server call.
2090         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
2091         * nis/nis_table.c: Adjust __nisfind_server call.
2092         * nis/nis_lookup.c: Likewise.
2093         (nis_lookup): Don't loop endlessly if name is reduced to ".".
2095 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
2097         [BZ #2182]
2098         * math/s_cacosh.c: Return values from positive branch.
2099         * math/s_cacoshf.c: Likewise.
2100         * math/s_cacoshl.c: Likewise.
2102         [BZ #2883]
2103         * sysvipc/sys/msg.h: Change return value to ssize_t.
2104         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
2105         * sysvipc/msgrcv.c: Likewise.
2106         * include/sys/msg.h: Likewise.
2108         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
2109         test introduced in patch for bz #661.
2110         (getgrouplist): Simplify code a bit.  Don't allocate one additional
2111         element for NEWGROUPS.
2113         [BZ #2908]
2114         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
2115         'f', use '1' as leading digit not '\1'.
2116         * stdio-common/Makefile (tests): Add bug16.
2117         * stdio-common/bug16.c: New file.
2119         [BZ #2914]
2120         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
2121         and don't try to open it.  The patch introducing the macro
2122         contained a bug and used the same file name as the new file
2123         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
2124         this out completely.
2126         [BZ #2926]
2127         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
2128         Patch by Jerry James <Jerry.James@usu.edu>.
2130         * rt/Makefile (tests): Add tst-clock2.
2131         * rt/tst-clock2.c: New file.
2133         [BZ #2978]
2134         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
2135         function and its parameters and pass it to new thread.
2136         (__gai_notify): Add support for alternative waiting for completion.
2137         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
2138         waiting for completion.
2139         * resolv/getaddrinfo_a.c: Likewise.
2140         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
2141         waiting for completion is used.
2142         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
2143         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
2144         * resolv/gai_error.c: Likewise.
2145         * resolv/gai_sigqueue.c: Likewise.
2147 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
2149         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
2150         errno to EBADF and return MACH_PORT_NULL.
2152 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
2154         [BZ #2980]
2155         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
2157 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
2159         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
2160         walk them instead of the symbol table.
2162 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
2164         [BZ #2098]
2165         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
2166         status of NSS calls, not the number of returned entries.
2168         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
2169         request_key, keyctl.
2171 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
2173         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
2175 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
2177         * elf/tst-auditmod1.c: Fix typo in #error.
2179 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
2181         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
2183         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
2185 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
2187         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
2188         that the directory is empty even on non-POSIX filesystems.
2190 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
2192         * elf/dl-open.c (dl_open_worker): Add branch prediction.
2194         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
2195         the backend NSS module.  If backend setgrent call failed, don't have
2196         internal_setgrent fail.  Just remember this until it is needed.
2197         * nis/nss_compat/compat-pwd.c: Likewise.
2198         * nis/nss_compat/compat-spwd.c: Likewise.
2200 2006-07-30  Roland McGrath  <roland@redhat.com>
2202         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
2203         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
2204         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
2205         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
2207         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
2208         (nanosleep_not_cancel): New macro.
2209         (sigsuspend_not_cancel): new macro.
2210         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
2211         (do_sigsuspend): Define as inline.
2212         (__sigsuspend): Always use do_sigsuspend.
2213         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
2214         * include/signal.h: Declare __sigsuspend_nocancel.
2215         * sysdeps/posix/pause.c
2216         [! NO_CANCELLATION] (__pause_nocancel): New function.
2218         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
2219         * include/time.h (__nanosleep_nocancel): Likewise.
2221 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
2223         * locale/programs/localedef.c (add_to_readlist): Rename local
2224         variables to avoid confusion.
2226         * locale/programs/charmap.c (charmap_read): Emit error message if
2227         charmap couldn't be found or read.
2229 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
2231         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2232         __ASSUME_FUTEX_LOCK_PI.
2233         * include/time.h: Declare __nanosleep_nocancel.
2234         * include/unistd.h: Declare __pause_nocancel.
2236         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
2237         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
2238         get the __stack_chk_fail_local definition when it's needed.
2240 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
2242         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
2243         * dlfcn/bug-atexit3.c: New file.
2244         * dlfcn/bug-atexit3-lib.cc: New file.
2246         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
2247         used when the namespace is not the base namespace.
2249 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
2251         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
2252         (__new_exitfn): Bump it in every successful call.
2253         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
2254         more exit handlers, call them right away.
2255         * stdlib/exit.h: Declare __new_exitfn_called.
2257 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
2259         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
2260         calling registered handler.
2262         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
2263         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2264         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2265         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2266         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2267         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2268         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2269         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2271 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
2273         * elf/dl-lookup.c (dl_new_hash): New functions.
2274         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
2275         value here.  Compute new-style hash value.  Pass new hash value
2276         and reference to variable with the old value to do_lookup_x.
2277         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
2278         old-style hash table.
2279         (_dl_debug_bindings): Pass new hash value and reference to variable
2280         with the old value to do_lookup_x.
2281         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
2282         new-style hash value and change old-style hash value parameter to
2283         be a reference.  Reoganize functions to determine whether
2284         new-style hash table is available.  Only fall back on old-style
2285         table.  If old-style hash value is needed, compute it here.
2286         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
2287         entry.
2288         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
2289         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
2290         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
2291         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
2292         * Makeconfig: If linker supports --hash-style option add it to all
2293         linker command lines to build DSOs.
2294         * config.make.in: Define have-hash-style.
2295         * configure.in: Test whether linker supports --hash-style option.
2297         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
2298         * sysdeps/generic/ldsodefs.h: Adjust prototype.
2300 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
2302         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
2303         auditing.
2305         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
2306         RPATH of main map twice.
2308 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
2310         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
2311         look further, return original strings.
2312         (_nl_find_msg): Do not return found translation if the conversion
2313         failed.  Either signal the string is unusable or that something went
2314         wrong and the original should be used.
2316 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
2318         * string/_strerror.c (__strerror_r): Add __builtin_expect.
2320 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
2322         [BZ #2766]
2323         * misc/insremque.c (insque): Handle prev == NULL.
2324         * misc/Makefile (tests): Add tst-insremque.
2325         * misc/tst-insremque.c: New test.
2327 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
2329         [BZ #2792]
2330         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
2331         conflict with DL_DST_REQUIRED.
2333 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
2335         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
2336         match what Solaris does.
2338 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
2340         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
2341         local_setegid instead of seteuid and setegid.
2342         * sysdeps/generic/local-setxid.h: New file.
2343         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
2345         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
2347         * string/Makefile (tests): Add bug-envz1.
2348         * string/bug-envz1.c: New file.
2350 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
2352         * posix/regex_internal.c (re_string_skip_chars): If no character has
2353         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
2354         to the byte which couldn't be converted.
2355         (re_string_reconstruct): Don't clear valid_raw_len before calling
2356         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
2357         tip_context using re_string_context_at.
2358         * posix/Makefile: Add rules to build and run bug-regex25 test.
2359         * posix/bug-regex25.c: New test.
2361 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
2363         [BZ #2703]
2364         * string/envz.c (envz_strip): Correct erroneously reversed src
2365         and dest parameters to memmove() invocation.
2367 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
2369         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
2370         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
2371         to make sure the database has been already invalidated.
2372         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
2373         after the cache has been invalidated.  Use pthread_mutex_lock rather
2374         than pthread_mutex_trylock if fd != -1.
2375         * nscd/connections.c (invalidate_cache): Add fd argument, write
2376         response to fd if not calling prune_cache, pass fd to prune_cache.
2377         (handle_request): Adjust invalidate_cache caller.
2378         (nscd_run): Pass -1 as fd to prune_cache.
2380 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
2382         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
2383         the correct place.
2385 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
2387         * nscd/nscd.h (struct database_dyn): Add prunelock field.
2388         * nscd/cache.c (prune_cache): Take prunelock before starting the
2389         work.  Just return in case it is already taken.
2390         * nscd/connections.c (dbs): Initialize .prunelock.
2392 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
2394         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
2395         copying.  No need to allocate new array for group members.  Just
2396         move the pointers and update the size.
2398         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
2399         Avoid memory leak in case realloc fails.  Simplification for
2400         better code generation.
2402         Avoid deprecation warning because of libc_hidden_proto for
2403         inet6_option_alloc.
2404         * inet/inet6_option.c (option_alloc): Renamed from
2405         inet6_option_alloc.  Made static.
2406         (inet6_option_alloc): Now a simple wrapper around option_alloc.
2407         (inet6_option_append): Call option_alloc.
2408         * include/netinet/in.h: Remove libc_hidden_proto for
2409         inet6_option_alloc.
2411         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
2412         for cleanup when cb!=NULL [Coverity CID 233].
2414 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
2416         [BZ #2693]
2417         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
2418         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
2419         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
2420         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
2421         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
2422         and inet6_rth_getaddr.
2423         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
2424         array.
2425         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
2426         Mark inet6_option_* interfaces as deprecated.
2427         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
2428         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
2429         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
2430         inet6_rth_segments, and inet6_rth_getaddr.
2431         * inet/inet6_opt.c: New file.
2432         * inet/inet6_rth.c: New file.
2434         * inet/netinet/icmp6.h: Pretty printing.
2436         [BZ #2683]
2437         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
2439 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
2441         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
2442         doing it all here.  When server does not know the answer do not
2443         fail immediate, try parent first.
2445         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
2446         overflow test.
2448 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
2450         * nis/nis_call.c (__prepare_niscall): New function.  Split out
2451         from __do_niscall.
2452         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
2453         and exported.
2454         (__follow_path): New function.  Split out from nis_list.
2455         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
2456         _xdr_nis_result.
2457         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
2458         _xdr_nis_result.
2459         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
2460         and __follow_path.
2461         * nis/Versions: Export __prepare_niscall, __create_ib_request,
2462         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
2463         from libnsl for version GLIBC_PRIVATE.
2464         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
2465         Remove entry parameter from _nss_nisplus_parse_pwent and
2466         _nss_nisplus_parse_grent.
2467         * nis/nss_nisplus/nisplus-parser.c: Likewise.
2468         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
2469         again.  Rewrite getpwent handling to not use nis_first_entry and
2470         nis_next_entry.  Roll out own niscall handling.
2471         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2473         * sunrpc/xdr_rec.c: Fix typo in comment.
2475 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
2477         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
2478         handling.
2480         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
2481         to allocate memory for my_pollfd.  Better initialization of
2482         cb_is_running.  Use TEMP_FAILURE_RETRY.
2484         * malloc/memusage.sh (memusageso): Add quotes.
2485         (memusagestat): Likewise.
2486         * debug/xtrace.sh (pcprofileso): Likewise.
2487         (pcprofiledump): Likewise.
2488         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
2489         replacement.
2490         * malloc/Makefile ($(objpfx)memusage): Likewise.
2492         * nis/nis_callback.c (__nis_create_callback): Calls to
2493         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
2494         asprintf call fails.
2496         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
2497         no uninitialized memory is passed to sendto.
2499 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
2501         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
2502         of snprintf+strdup.  Handle OOM.
2503         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
2504         cb->serv together.  Remove now obsolete free calls.
2505         (__nis_destroy_callback): Remove now obsolete free call.
2507 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
2509         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
2510         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
2511         and ULA respectively). Set precedence for IPv4 address to 10 as
2512         defined in RFC3484 for preferring IPv6.
2513         * posix/gai.conf: Update to match the new default tables.
2515 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
2517         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
2518         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
2519         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
2520         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
2522         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
2523         Removed.
2524         (init_nss_interface): Remove initialization of these variables.
2526 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
2528         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
2529         nis_free_directory forward to avoid duplication.
2531 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
2533         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
2534         rec_dirsearch returning NULL.
2535         (first_shoot): Handle __nis_finddirectory returning NULL.
2536         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
2538         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
2539         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
2541 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
2543         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
2544         pid changed.
2546 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
2548         * include/rpc/pmap_prot.h: Mark all functions as hidden.
2550         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
2551         * nscd/nscd_getgr_r.c: Likewise.
2553         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
2555         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
2556         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
2558         * stdlib/longlong.h (__clz_tab): Mark as hidden.
2560         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
2562         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
2564         * include/rpc/auth.h: Mark xdr_des_block_internal and
2565         xdr_opaque_auth_internal as hidden.
2567         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
2568         hidden.
2570         * include/rpc/xdr.h: Mark all _internal functions as hidden.
2572         * misc/getusershell.c (okshells): Don't use static initializers,
2573         do it dynamically.
2575         * stdlib/fmtmsg.c (keywords): Change type of len element to
2576         uint32_t to not waste space on 64bit machines.
2578         * locale/setlocale.c: Change _nl_category_names into a string.
2579         Add new _nl_category_name_idxs.  Change all users.
2580         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
2581         Declare _nl_category_name_idxs.
2582         * locale/findlocale.c: Adjust for _nl_category_names change.
2583         * locale/loadlocale.c: Likewise.
2584         * locale/newlocale.c: Likewise.
2585         * intl/dcigettext.c: Likewise.
2587         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
2588         (add_alias2): ...here.  New function.
2589         (__gconv_read_conf): Simplify builtin alias handling.
2590         (builtin_aliases): Convert to string to avoid relocations.
2591         * iconv/gconv_builtin.h: Add comment about correct formatting.
2593 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2595         * resolv/res_debug.c (loc_ntoa): Make error const.
2597 2006-05-14  Andreas Schwab  <schwab@suse.de>
2599         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
2601 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
2603         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
2604         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
2605         sizeof (cpu_set_t).
2607 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
2609         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
2611         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
2613         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
2614         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
2616         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
2617         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
2619         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
2620         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
2621         xdr_cback_data.
2623         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
2624         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
2625         xdr_ypupdate_args.
2627         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
2628         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
2630         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
2631         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
2633         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
2634         * include/rpcsvc/nis_callback.h: New file.
2636         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
2637         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
2639         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
2640         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
2642         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
2643         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
2645         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
2646         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
2648         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
2649         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
2650         xdr_ypdelete_args.
2652         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
2653         __BEGIN_DECLS and __END_DECLS, the header is not installed.
2655         * nis/nis_error.c: Remove table of strings.  Use position
2656         independent mechanism.
2657         * nis/nis_error.h: New file.
2659 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
2661         * locale/programs/ld-time.c (time_finish): If wide era name or
2662         format aren't provided, set both wname and wformat to L"".
2664 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
2666         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
2667         results if the call was succesful.
2669         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
2671         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
2672         as hidden.
2674 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
2676         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
2678 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
2680         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
2681         caller makes sure this is not the case.
2682         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
2684 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
2686         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
2687         calls.
2689         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
2690         [Coverity CID 229, 230]
2692         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
2693         DGETTEXT calls.
2694         (hol_help): Likewise.  [Coverity CID 226, 227]
2696         * string/argz-replace.c (__argz_replace): Unconditionally call
2697         free on SRC.  [Coverity CID 225]
2699         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
2700         the return value of __nis_default_owner and __nis_default_group,
2701         it has been especially allocated.  [Coverity CID 224]
2703         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
2704         searchgroup and searchowner.  Significantly simplified.
2705         (__nis_default_owner): Remove duplication.  Do not locally copy the
2706         string before duplicating it.
2707         (__nis_default_group): Likewise.
2709         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
2710         we must clear the variable before calling __nisfind_server.
2712         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
2713         nis_getnames.  [Coverity CID 223]
2715         * locale/programs/locfile.c (locfile_read): Use alloca instead of
2716         xmalloc to allocate local repertoire name.  [Coverity CID 222]
2718         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
2719         allocate memory for the input to add_bytes.  [Coverity CID 221]
2721         * posix/wordexp.c (w_addword): Free word if realloc fails and it
2722         was allocated here.  [Coverity CID 219, 220]
2724         * posix/getconf.c (print_all): Free confstr data after printing.
2725         [Coverity CID 218]
2727         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
2728         list allocation fails.  [Coverity CID 215]
2730         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
2731         [Coverity CID 213]
2733         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
2734         string is NULL.  [Coverity CID 212]
2735         * argp/Makefile: Add rules to build and run bug-argp1.
2736         * argp/bug-argp1.c: New file.
2738         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
2739         end of string.
2740         * stdlib/canonicalize.c (__realpath): Likewise.
2742         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
2743         pointer.  [Coverity CID 206]
2745         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
2746         in statically linked code.
2747         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
2748         statically built code, be prepared to have no link map.
2749         [Coverity CID 205]
2751         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
2752         dgettext calls. [Coverity CID 204]
2754         * argp/argp-help.c (struct uparams): Remove valid member.  Change
2755         the one user.
2756         (uparam_names): Reduce size.  Avoid relative relocations.
2757         Moved to read-only segment.
2758         (fill_in_uparams): Update for new layout.
2760         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
2761         assumed to always be != NULL. [Coverity CID 202]
2763         * argp/argp-help.c (hol_entry_help): Remove some dead code
2764         [Coverity CID 200].
2766         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
2767         away a few more unconditional yperr2nss calls.
2768         (_nss_nis_getservbyname_r): Likewise.
2770 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
2772         * sysdeps/generic/ldsodefs.h: Remove support for non-core
2773         architectures.
2775         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
2776         that unused memory passed to sendto is nevertheless initialized.
2778         [BZ #2499]
2779         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
2780         possibly unaligned memory accesses.
2782         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
2783         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
2784         and __putlong respectively.  Correct buffer overflow check for
2785         NS_NOTIFY_OP.
2787         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
2789         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
2790         (send_dg): Rewrite error handling to be more compact and avoid
2791         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
2793         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
2795         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
2796         instead of ns_get16.
2797         (res_queriesmatch): Likewise.  Minor optimization.
2799         [BZ #2499]
2800         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
2801         __libc_res_nsend might reallocate the buffer for the answer.  In
2802         this case we have to reload the HP pointer.
2804 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
2806         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
2807         some branch prediction hints.
2809         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
2810         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2811         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2812         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2813         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2814         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2815         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2816         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2818 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2820         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
2821         by a GOT relocation to make Scrt1.o position independent.
2822         * sysdeps/s390/s390-64/elf/start.S: Likewise.
2824         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
2825         six system call parameters.
2826         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
2828 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
2830         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
2831         malloc&bzero.
2833         * sunrpc/svc_udp.c (BZERO): Remove definition.
2834         (CALLOC): Define.
2835         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
2837         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
2838         (des_SPtrans): Use uint32_t type.
2839         (des_skb): Likewise.
2841         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
2843 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
2845         [BZ #2509]
2846         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
2847         on 32-bit arches.
2849 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
2851         * locale/programs/ld-address.c (address_finish): Fix one more
2852         place where the iso639 array might be accessed beyond the limits.
2854 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
2856         * nis/nis_table.c (nis_list): Avoid clearing res twice before
2857         filling it for the first time.
2859         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
2860         Adjust all callers.
2861         Free res object content before returning.
2863         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
2865         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
2866         client->cl_auth.
2868         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
2869         cleanup for initial thread, just the free call on TVP.
2871         * nscd/gai.c (__getline): Define.
2874 See ChangeLog.16 for earlier changes.