* configure.in (libc_cv_gnu89_inline): Only do compile test.
[glibc/pb-stable.git] / ChangeLog
blobce0018fa3d4d540b592b72cf33f666cf135af995
1 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
3         * configure.in (libc_cv_gnu89_inline): Only do compile test.
4         * configure: Rebuilt.
6         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
7         bit-fields.
8         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
12         [BZ #2831]
13         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
14         bit-fields.
16 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
18         * nscd/gai.c: Include alloca.h.
19         (__libc_use_alloca): Define.
21 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
23         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
24         smaller scopes.
25         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
26         (DL_DST_REQUIRED): Adjust user.
28         * include/dlfcn.h (struct link_map): New forward decl.
30         * inet/getnameinfo.c: Include stddef.h.
31         (getnameinfo): Use offsetof.
33         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
35         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
37         * string/strerror_l.c: Include stdlib.h.
39         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
40         * config.make.in (gnu89-inline-CFLAGS): New variable.
41         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
42         -std=gnu99.
43         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
44         * argp/argp.h: Use it.
45         * bits/mathinline.h: Likewise.
46         * bits/sigset.h: Likewise.
47         * bits/string.h: Likewise.
48         * ctype/ctype.h: Likewise.
49         * hurd/hurd.h: Likewise.
50         * hurd/hurd/fd.h: Likewise.
51         * hurd/hurd/port.h: Likewise.
52         * hurd/hurd/signal.h: Likewise.
53         * hurd/hurd/threadvar.h: Likewise.
54         * hurd/hurd/userlink.h: Likewise.
55         * io/sys/stat.h: Likewise.
56         * libio/bits/stdio.h: Likewise.
57         * libio/bits/stdio2.h: Likewise.
58         * mach/lock-intern.h: Likewise.
59         * mach/mach/mig_support.h: Likewise.
60         * math/bits/cmathcalls.h: Likewise.
61         * posix/bits/unistd.h: Likewise.
62         * socket/bits/socket2.h: Likewise.
63         * stdlib/bits/stdlib.h: Likewise.
64         * stdlib/stdlib.h: Likewise.
65         * string/argz.h: Likewise.
66         * string/bits/string2.h: Likewise.
67         * string/bits/string3.h: Likewise.
68         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
69         * sysdeps/generic/inttypes.h: Likewise.
70         * sysdeps/generic/machine-lock.h: Likewise.
71         * sysdeps/generic/machine-sp.h: Likewise.
72         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
73         * sysdeps/i386/i486/bits/string.h: Likewise.
74         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
75         * sysdeps/mach/alpha/machine-lock.h: Likewise.
76         * sysdeps/mach/alpha/machine-sp.h: Likewise.
77         * sysdeps/mach/i386/machine-lock.h: Likewise.
78         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
79         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
80         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
81         * sysdeps/s390/bits/string.h: Likewise.
82         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
83         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
84         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
85         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
86         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
87         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
88         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
89         * wcsmbs/bits/wchar2.h: Likewise.
90         * wcsmbs/wchar.h: Likewise.
91         * stdlib/gmp.h: Likewise.  Include <features.h> to get
92         __extern_inline definition.
94 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
96         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
97         NULL.
99         [BZ #3919]
100         * math/libm-test.inc (log_test): Test -Inf and NaN.
101         (log10_test, log1p_test, log2_test): Test -Inf.
102         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
103         FE_INVALID when argument is qNaN.
104         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
105         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
106         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
107         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
108         andb $1, %ah with testb $1, %ah, don't test for parity, instead
109         testb $4, %ah and jump if non-zero.
110         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
111         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
113         [BZ #4101]
114         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
115         ancestors with the same depths.
116         Patch by Niels Moeller <nisse@lysator.liu.se>.
117         (filter_doc): Don't crash if argp is NULL.
118         * argp/Makefile (tests): Add tst-argp2.
119         * argp/tst-argp2.c: New test.
121         [BZ #4130]
122         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
123         open_not_cancel_2.
124         (updwtmp_file): Likewise.
126         [BZ #4181]
127         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
128         (inet6_opt_append): Don't check extlen is big enough if extbuf
129         is NULL.
130         (inet6_opt_finish): Likewise.
131         * inet/Makefile (tests): Add test-inet6_opt.
132         * inet/test-inet6_opt.c: New test.
134         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
135         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
136         NLMSG_ERR.  Instead use a page sized buffer.
137         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
138         buffer.
140 2007-03-14  Richard Henderson  <rth@redhat.com>
142         * sysdeps/alpha/fpu/s_llround.c: New file.
143         * sysdeps/alpha/fpu/s_llroundf.c: New file.
144         * sysdeps/alpha/fpu/s_lround.c: New file.
145         * sysdeps/alpha/fpu/s_lroundf.c: New file.
146         * sysdeps/alpha/fpu/s_round.c: New file.
147         * sysdeps/alpha/fpu/s_roundf.c: New file.
148         * sysdeps/alpha/fpu/s_trunc.c: New file.
149         * sysdeps/alpha/fpu/s_truncf.c: New file.
151         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
152         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
153         * sysdeps/alpha/fpu/s_floor.c: Likewise.
154         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
155         * sysdeps/alpha/fpu/s_rint.c: Likewise.
156         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
158         * sysdeps/alpha/fpu/s_fmax.S: New file.
159         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
160         * sysdeps/alpha/fpu/s_fmin.S: New file.
161         * sysdeps/alpha/fpu/s_fminf.S: New file.
162         * sysdeps/alpha/fpu/s_isnan.c: New file.
163         * sysdeps/alpha/fpu/s_isnanf.c: New file.
164         * sysdeps/alpha/fpu/s_llrint.c: New file.
165         * sysdeps/alpha/fpu/s_llrintf.c: New file.
166         * sysdeps/alpha/fpu/s_lrint.c: New file.
167         * sysdeps/alpha/fpu/s_lrintf.c: New file.
168         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
169         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
171         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
172         (__fdimf, fdimf, __fdim, fdim): Remove.
173         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
174         (__isnanf, __isnan, __isnanl): New.
176 2007-03-13  Richard Henderson  <rth@redhat.com>
178         * sysdeps/ieee754/ldbl-128/Makefile: New file.
180 2007-03-13  Richard Henderson  <rth@redhat.com>
182         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
183         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
184         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
185         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
186         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
187         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
189 2007-03-13  Richard Henderson  <rth@redhat.com>
191         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
192         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
193         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
194         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
195         Move to dl-auxv.h; initialize instead of extern weak.
196         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
197         weak symbol.
198         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
199         Extern instead of initialized.
201 2007-03-13  Richard Henderson  <rth@redhat.com>
203         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
204         __sigsuspend_nocancel.
206 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
208         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
209         172.16/12 address range.
211 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
213         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
214         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
215         message.
217 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
219         [BZ #4069]
220         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
221         earlier.
222         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
224         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
225         for x qNaN and y either +-inf or non-integer value.
226         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
227         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
228         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
230 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
232         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
233         from sysdep_headers.
235 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
237         * time/tzfile.c (find_transition): Instead of a linear search try to
238         guess the transition index, use a linear search if the result is at
239         most 10 transitions away from the guess or binary search otherwise.
241 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
243         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
244         memory reallocation.
246 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
248         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
249         and fix some typos.
250         Optimize use of TOLOWER.
252         [BZ #3325]
253         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
254         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
255         * sysdeps/i386/fpu/e_fmod.S: Likewise.
257         [BZ #3458]
258         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
259         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
261         [BZ #4076]
262         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
263         (open_dir_stream): Likewise.
264         * io/Makefile (tests): Add bug-ftw5.
265         io/bug-ftw5.c: New file.
267         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
268         * nscd/servicescache.c (cache_addserv): Likewise.
270         * nscd/grpcache.c (cache_addgr): In case a record changed on
271         refresh, adjust key_copy.
273         [BZ #4074]
274         * nscd/pwdcache.c (cache_addpw): In case a record changed on
275         refresh, adjust key_copy.
277         [BZ #4070]
278         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
279         special cases.
280         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
282 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
284         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
285         optimization.
287         * stdio-common/vfscanf.c: Small cleanups throughout.
289 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
291         [BZ #3325]
292         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
293         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
294         * sysdeps/i386/fpu/e_fmod.S: Likewise.
295         Patch by Jared Casper <jaredcasper@gmail.com>.
297         * sysdeps/unix/closedir.c: Outside libc don't use locking.
298         * sysdeps/unix/opendir.c: Likewise.
299         * sysdeps/unix/readdir.c: Likewise.
301         [BZ #2211]
302         * stdio-common/vfscanf.c: Handle localized digits etc for floating
303         point numbers.
304         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
306         * stdio-common/vfscanf.c: Fix problems in width accounting.
307         * stdio-common/tst-sscanf.c (double_tests): New tests.
308         (main): Hook them up.
310         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
311         More simplifications of floating-point reader.
313         * stdio-common/Makefile (tests): Add tst-swscanf.
314         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
315         testing.
316         * stdio-common/tst-swscanf.c: New file.
318 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
320         [BZ #2633]
321         * libio/stdio.h: Define struct _IO_FILE in global namespace.
322         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
323         Remove using for __jmp_buf_tag.
324         * locale/locale.h (struct lconv): Also define in std namespace.
325         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
327         [BZ #3842]
328         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
329         using __libc_enable_secure.
331         [BZ #3818]
332         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
334         [BZ #3745]
335         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
336         of names for ellipsises.
338         [BZ #3348]
339         * malloc/memusage.sh: Cleanups.
340         * debug/xtrace.sh: Quoting and trap changes.
342 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
344         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
346         * locale/iso-3166.def: Update entry for Serbia.
347         * locale/iso-4217.def: Define RSD, remove CSD.
349         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
350         and 64-bit operations.
352         [BZ #4040]
353         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
354         16-bit operations.
356         * nscd/nscd.c (parse_opt): One more conversion to use send instead
357         of writev.
359 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
361         [BZ #3991]
362         * assert/assert.h (assert): Simplify.
363         (assert_perror): Likewise.
364         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
366         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
367         reqdata.
369         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
370         change: don't pass NULL in place of an integer.
372 2007-02-02  Bruno Haible  <bruno@clisp.org>
374         [BZ #3954]
375         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
376         Add mapping for U+327E.
377         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
378         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
379         mapping of 0xD9 0xE8.
380         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
381         mapping of U+327E.
382         Reported by Jungshik Shin <jungshik@google.com>.
384         [BZ #3955]
385         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
386         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
387         Reported by Jungshik Shin <jungshik@google.com>.
389 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
391         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
392         byte variants.
394         [BZ #4040]
395         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
396         byte variants.  Patch mostly be tom@tommay.net.
398 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
400         [BZ #3996]
401         * posix/glob.c (attribute_hidden): Define if not defined.
402         (glob): Unescape dirname, filename or username when needed and not
403         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
404         is NULL.  Handle unescaped [ in pattern without closing ].
405         Don't pass GLOB_CHECK down to recursive glob for directories.
406         (__glob_pattern_type): New function.
407         (__glob_pattern_p): Implement using __glob_pattern_type.
408         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
409         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
410         Remove unreachable code.
411         * posix/globtest.sh: Add a couple of new tests.
413 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
415         * po/ru.po: Update from translation team.
417 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
419         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
420         to the list of i486+ CPUs.
421         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
423 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
425         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
426         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
427         references.
429 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
431         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
433         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
434         * resolv/res_mkquery.c: Define __res_nopt.
435         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
436         try adding EDNS0 record.
437         * resolv/res_send.c (send_dg): If request failed with FORMERR and
438         EDNS0 record was send make sure we don't try it again.
439         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
440         * include/resolv.h: Declare __res_nopt.
442 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
444         [BZ #3944]
445         * time/strptime_l.c (__strptime_internal): Set have_mon for
446         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
447         have been computed from tm_yday and tm_year.  Don't crash
448         in day_of_the_week or day_of_the_year if not have_mon
449         and tm_mon contains bogus value.
450         * time/Makefile (tests): Add tst-strptime3.
451         * time/tst-strptime3.c: New test.
453 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
455         [BZ #3957]
456         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
457         bit for RE_HAT_LISTS_NOT_NEWLINE.
458         (build_charclass_op): Remove bogus comment.
459         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
460         * posix/bug-regex27.c: New test.
461         * posix/bug-regex28.c: New test.
463 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
465         * po/sv.po: Update from translation team.
467 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
469         * nscd/nscd_helper.c (open_socket): Minor size optimization.
471 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
473         * include/locale.h (__uselocale): Add libc_hidden_proto.
474         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
476         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
477         gettimeofday.
479 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
481         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
482         returning.
483         (PTR_DEMANGLE): Real definition now that it's not the same as
484         PRT_MANGLE anymore.
485         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
487         * string/strerror_l.c: New file.
488         * string/Makefile (routines): Add strerror_l.
489         * string/string.h: Declare strerror_l.
490         * string/Versions: Export strerror_l for GLIBC_2.6.
492 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
494         * nscd/nscd_helper.c (open_socket): Now takes request type and key
495         as parameter.  Construct request record.  Try sending request
496         before the first poll use, it usually succeeds.  Adjust all
497         callers.
498         * nscd/nscd-client.h: Define MAXKEYLEN.
499         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
501 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
503         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
504         from return value.
505         * nscd/nscd_helper.c: Include string.h.
506         (__nscd_cache_search): Remove const qualifier from return value.
507         On strict alignment architectures check hash entry and data head
508         alignment.
509         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
510         mmapped data during GC cycle contains garbage.  If
511         __nscd_drop_map_ref fails, decrement mapped->counter when returning
512         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
513         dropped to 0.
514         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
515         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
516         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
517         * nscd/nscd_getai.c (__nscd_getai): Likewise.
518         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
520 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
522         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
524 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
526         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
527         names not numbers in cfi_*.
529 2007-01-26  Andreas Jaeger  <aj@suse.de>
531         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
532         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
533         Correct values of PER_HPUX and PER_OSF4.
535 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
537         * elf/dl-minimal.c: Undefine _itoa first.
538         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
539         * malloc/mtrace.c: Revert last change.
540         * posix/wordexp.c: Likewise.
542 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
544         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
545         and __geode__ to the list of i486+ CPUs.
546         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
548 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
550         * stdio-common/_itoa.c: Include <limits.h>.
551         * stdio-common/_itowa.c: Likewise.
553 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
555         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
556         platforms.
557         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
558         64-bit platforms.
559         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
560         possible.
561         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
562         if possible.
564         [BZ #3902]
565         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
566         * stdio-common/Makefile (tests): Add bug17.
567         * stdio-common/bug17.c: New file.
569 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
571         * iconvdata/brf.c: New file.
572         * iconvdata/testdata/BRF: New file.
573         * iconvdata/testdata/BRF..UTF8: New file.
574         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
575         * iconvdata/Makefile: Add rules to build BRF.
576         * iconvdata/TESTS: Add BRF entry.
577         * iconvdata/gconv-modules: Likewise.
578         * iconvdata/tst-tables.sh: Likewise.
580 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
582         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
583         type `long long int', not `long int'.
584         (wcstoq): Likewise.
586 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
588         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
589         of values on 64-bit platforms which are too large.
591 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
592             Joe Kerian  <jkerian@us.us.ibm.com>
594         [BZ #2749]
595         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
596         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
597         (__copysignl): Use signbit() for comparison.
598         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
599         SET_LDOUBLE_WORDS64.
601         [BZ #2423, #2749]
602         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
603         (__ceill): Remove calls to fegetround(), fesetround().
604         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
605         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
606         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
608 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
610         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
612         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
614 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
616         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
617         demangle pointer.
618         * csu/libc-start.c: Likewise.
620 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
622         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
623         really work anyway.
625 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
627         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
628         users.
629         (handle_request): Remove unnecessary tests.
631         * nscd/cache.c (cache_add): Record the failure to add to the cache.
633 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
635         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
636         workbits in semi-raw fraction.
638         * math/test-misc.c: Add new tests.
640 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
642         * math/basic-test.c: Include test-skeleton.c.
643         (TEST_TRUNC): Define.
644         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
645         (main): Rename to ...
646         (do_test): ...this.  Run new tests.
647         (TEST_FUNCTION): Define.
649 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
650             Joe Kerian  <jkerian@us.us.ibm.com>
652         [BZ #2749]
653         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
654         handling for high words.
655         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
656         and overflow for infinity.
658 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
660         * nscd/connections.c (handle_request): Add a __builtin_expect.
662         * nscd/connections.c (serv2db): Change type into structure which
663         also says whether this is a request for data.  Renamed to
664         servinfo.  All users changed.
665         (handle_request): Much simpler test whether we should search the cache.
667         * nscd/connections.c (handle_request): Fix thinko in selinux test
668         invocation.
670         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
671         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
672         it before getting dl_load_lock and then relock.
673         (_dl_lookup_symbol_x): Pass flags to add_dependency.
674         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
675         case we unlocked the scope.
676         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
677         _dl_lookup_symbol_x in case we locked the scope.
678         (_dl_profile_fixup): Likewise.
679         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
680         set DL_LOOKUP_SCOPE_LOCK.
682 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
684         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
685         CFLAGS-getsrvbynpt_r.c.
686         * nscd/getsrvbynm_r.c: New file.
687         * nscd/getsrvbypt_r.c: New file.
688         * nscd/nscd_getserv_r.c: New file.
689         * nscd/servicescache.c: New file.
690         * nscd/Makefile (routines): Add nscd_getserv_r.
691         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
692         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
693         CFLAGS-getsrvbypt_r.c.
694         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
695         table.  Add entries for services database.
696         * nscd/connections.c (serv2str): Mark as const.  Add entries for
697         services database.
698         (dbs): Add .reset_res and servdb initialization.
699         (serv2db): Add entries for services database.
700         (verify_persistent_db): Accept dbnr == servdb.
701         (invalidate_cache): Rewrite database name recognition to use a table.
702         Call res_init() if .reset_res is set for database.
703         (handle_request): Add code to handle services database.
704         * nscd/gai.c: Don't define __getservbyname_r.
705         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
706         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
707         (serv_response_header): Define.
708         (struct datahead): Add serv_response_header member.
709         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
710         using table.
711         * nscd/nscd.conf: Add entries for services database.
712         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
713         Declare serv_iov_disabled.
714         Declare addservbyname, readdservbyname, addservbyport, and
715         readdservbyport.
716         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
717         (find_db): Fix error message.
718         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
719         __nscd_getservbyname_r, and __nscd_getservbyport_r.
720         * nscd/selinux.c (perms): Add entries for services database.
721         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
722         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
724         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
725         * nscd/hstcache.c: Likewise.
726         * nscd/pwdcache.c: Likewise.
728         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
729         computation of keylen.
731         * include/string.h: Only redefine strndupa if this is really for
732         libc code.
734 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
736         * nscd/nscd_gethst_r.c: Minor cleanups.
738         * nscd/connections.c (handle_request): Check selinux permissions
739         for all non-admin commands.
741         * sysdeps/i386/i486/bits/atomic.h: Define
742         atomic_compare_and_exchange_val_acq,
743         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
744         using __sync_* built-ins for gcc >= 4.1.
745         * sysdeps/x86_64/bits/atomic.h: Likewise.
747         [BZ #3840]
748         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
749         and .oS.d files.
751 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
753         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
754         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
755         (do_test): Check errno and exit(0) if ENOSYS.
757 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
759         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
760         thousands separators.
761         * stdlib/Makefile: Add rules to build and run tst-strtod4.
762         * stdlib/tst-strtod4.c: New test.
764         [BZ #3855]
765         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
766         hexadecimal digit should accept just the initial 0.
767         * stdlib/tst-strtod2.c (tests): New variable.
768         (do_test): Run several tests rather than just one.
770 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
772         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
773         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
775 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
777         * io/fts.c: Make sure fts_cur is always valid after return from
778         fts_read.
779         Patch by Miloslav Trmac <mitr@redhat.com>.
781 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
783         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
784         (R_MIPS_NUM): Bump by 1.
786 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
788         * posix/execvp.c: Include alloca.h.
789         (allocate_scripts_argv): Renamed to...
790         (scripts_argv): ... this.  Don't allocate buffer here nor count
791         arguments.
792         (execvp): Use alloca if possible.
793         * posix/Makefile: Add rules to build and run tst-vfork3 test.
794         * posix/tst-vfork3.c: New test.
796 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
798         * string/Makefile (tst-strxfrm2-ENV): Define.
799         * stdlib/Makefile (tst-strtod3-ENV): Define.
801 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
803         * posix/getconf.c: Update copyright year.
804         * nss/getent.c: Likewise.
805         * iconv/iconvconfig.c: Likewise.
806         * iconv/iconv_prog.c: Likewise.
807         * elf/ldconfig.c: Likewise.
808         * catgets/gencat.c: Likewise.
809         * csu/version.c: Likewise.
810         * elf/ldd.bash.in: Likewise.
811         * elf/sprof.c (print_version): Likewise.
812         * locale/programs/locale.c: Likewise.
813         * locale/programs/localedef.c: Likewise.
814         * nscd/nscd.c (print_version): Likewise.
815         * debug/xtrace.sh: Likewise.
816         * malloc/memusage.sh: Likewise.
817         * malloc/mtrace.pl: Likewise.
818         * debug/catchsegv.sh: Likewise.
820 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
822         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
823         attempts.
825 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
827         * posix/wordexp.c: Remove some unnecessary tests.
829 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
831         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
832         blacklist the group till after we look it up.
834 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
836         * include/atomic.h (atomic_forced_read): New macro.
838 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
840         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
842 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
844         * nss/getXXbyYY_r.c: Include atomic.h.
845         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
846         add atomic_write_barrier () in between.
848         * stdlib/Makefile (tests): Add tst-makecontext.
849         * stdlib/tst-makecontext.c: New test.
851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
852         (__makecontext): Don't realign uc_mcontext.uc_regs.
854 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
856         * elf/dl-support.c: Include dl-procinfo.h.
857         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
858         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
859         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
860         Define.
861         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
862         hardcoded constants.
863         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
864         PPC_PLATFORM_* macros for array designators.
866 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
868         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
869         names to the beginning.
870         (_dl_powerpc_platforms): Add "power6x".
871         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
872         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
873         (_DL_PLATFORMS_COUNT): Increase.
874         (_dl_string_platform): Handle power6x case.
875         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
876         PPC_FEATURE_POWER6_EXT): Define.
877         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
879 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
881         [BZ #3747]
882         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
883         [-2^31 .. 2^31) range.
884         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
885         targets.
886         * stdlib/tst-rand48-2.c: New test.
887         * stdlib/Makefile (tests): Add tst-rand48-2.
889 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
891         * misc/tst-pselect.c (do_test): Fix sigblock argument.
893 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
895         * misc/tst-pselect.c (do_test): Make sure the helper process is
896         terminating when the test is aborted.
898 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
900         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
901         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
902         Handle relatime mount option.
904         [BZ #2337]
905         * libio/Makefile (tests): Add tst-setvbuf1.
906         * libio/tst-setvbuf1.c: New file.
908 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
910         [BZ #2337]
911         * libio/genops.c (__uflow): Fix a typo.
912         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
913         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
914         the narrow buffer size.
916 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
918         [BZ #2337]
919         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
920         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
921         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
922         in _flags.
923         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
924         _IO_wstr_finish): Likewise.
925         * libio/wmemstream.c (open_wmemstream): Likewise.
926         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
927         even for wide streams.
929 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
932         kernel-features.h.
934 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
936         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
937         separators also if no non-zero digits found.
938         * stdlib/Makefile (tests): Add tst-strtod3.
940 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
942         [BZ #3632]
943         * include/features.h: Fix comment about default value for
944         _POSIX_C_SOURCE.
946         [BZ #3664]
947         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
948         empty parsed strings.
949         * stdlib/Makefile (tests): Add tst-strtod2.
950         * stdlib/tst-strtod2.c: New file.
952         [BZ #3673]
953         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
954         computation.
955         * stdlib/Makefile (tests): Add tst-atof2.
956         * stdlib/tst-atof2.c: New file.
958         [BZ #3674]
959         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
960         correctly if removing trailing zero of hex-float.
961         * stdlib/Makefile (tests): Add tst-atof1.
962         * stdlib/tst-atof1.c: New file.
964 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
966         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
967         Start searching for next comma at p rather than rest.
968         * misc/Makefile (tests): Add tst-mntent2.
969         * misc/tst-mntent2.c: New test.
971         * misc/getusershell.c (initshells): Check for integer overflows.
972         Make strings buffer one bigger as fgets always succeeds when second
973         argument is 1.  Don't use calloc for shells array.  Disallow
974         / as shell.
976 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
978         * malloc/memusage.c: Handle realloc with new size of zero and
979         non-NULL pointer correctly.
980         (me): Really write first record twice.
981         (struct entry): Make format bi-arch safe.
982         (dest): Write out more realloc statistics.
983         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
985 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
987         * nis/nis_subr.c (nis_getnames): Revert last change.
989 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
991         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
992         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
993         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
994         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
995         ENOTTY.
996         * io/Makefile: Add rules to build and run tst-ttyname_r test.
997         * io/tst-ttyname_r.c: New test.
999 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1001         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
1003 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
1005         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
1006         jump table entries.
1008 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
1010         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
1011         `clone' function to ensure proper unwinding stop of gdb.
1012         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1014 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
1016         * nscd/nscd.init: Remove obsolete and commented-out -S option
1017         handling.
1019 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
1021         [BZ #3514]
1022         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
1024         [BZ #3515]
1025         * manual/string.texi (strtok): Remove duplicate paragraph.
1027 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1029         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
1030         libgcc not supporting `rflags' unwinding (register # >= 17).
1032 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
1034         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
1035         succeeded.
1037 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
1038             Jakub Jelinek  <jakub@redhat.com>
1039             Jan Kratochvil  <jan.kratochvil@redhat.com>
1041         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
1042         unwind information.
1043         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
1044         'restore_rt' even in the 'signal' directory.
1045         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
1047 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
1049         [BZ #3559]
1050         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
1051         malloc crashed.  Don't allocate memory unnecessarily in each
1052         loop.
1054 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
1056         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
1058 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
1060         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
1062 2006-11-18  Bruno Haible  <bruno@clisp.org>
1064         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
1065         __sysconf only after having tried to call getgroups32.
1067 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
1069         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
1070         addresses for IPv4 queries if they can be mapped.
1072 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
1074         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
1075         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
1076         (signmask): Add .size directive.
1077         (othermask): Add .type directive.
1079 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
1081         * po/nl.po: Update from translation team.
1083         * timezone/zdump.c: Redo fix for BZ #3137.
1085 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
1087         * nss/nss_files/files-alias.c (get_next_alias): Set line back
1088         to first_unused after parsing :include: file.
1090 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
1092         * timezone/africa: Update from tzdata2006o.
1093         * timezone/antarctica: Likewise.
1094         * timezone/asia: Likewise.
1095         * timezone/australasia: Likewise.
1096         * timezone/backward: Likewise.
1097         * timezone/europe: Likewise.
1098         * timezone/iso3166.tab: Likewise.
1099         * timezone/northamerica: Likewise.
1100         * timezone/southamerica: Likewise.
1101         * timezone/zone.tab: Likewise.
1103         * time/tzfile.c (__tzfile_read): Extend to handle new file format
1104         on machines with 64-bit time_t.
1106         * timezone/checktab.awk: Update from tzcode2006o.
1107         * timezone/ialloc.c: Likewise.
1108         * timezone/private.h: Likewise.
1109         * timezone/scheck.c: Likewise.
1110         * timezone/tzfile.h: Likewise.
1111         * timezone/tzselect.ksh: Likewise.
1112         * timezone/zdump.c: Likewise.
1113         * timezone/zic.c: Likewise.
1115         [BZ #3483]
1116         * elf/ldconfig.c (main): Call setlocale and textdomain.
1117         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
1119         [BZ #3480]
1120         * manual/argp.texi: Fix typos.
1121         * manual/charset.texi: Likewise.
1122         * manual/errno.texi: Likewise.
1123         * manual/filesys.texi: Likewise.
1124         * manual/lang.texi: Likewise.
1125         * manual/maint.texi: Likewise.
1126         * manual/memory.texi: Likewise.
1127         * manual/message.texi: Likewise.
1128         * manual/resource.texi: Likewise.
1129         * manual/search.texi: Likewise.
1130         * manual/signal.texi: Likewise.
1131         * manual/startup.texi: Likewise.
1132         * manual/stdio.texi: Likewise.
1133         * manual/sysinfo.texi: Likewise.
1134         * manual/syslog.texi: Likewise.
1135         * manual/time.texi: Likewise.
1136         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1138         [BZ #3465]
1139         * sunrpc/clnt_raw.c: Minimal message improvements.
1140         * sunrpc/pm_getmaps.c: Likewise.
1141         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1142         * nis/nis_print_group_entry.c: Likewise.
1143         * locale/programs/repertoire.c: Likewise.
1144         * locale/programs/charmap.c: Likewise.
1145         * malloc/memusage.sh: Likewise.
1146         * elf/dl-deps.c: Likewise.
1147         * locale/programs/ld-collate.c: Likewise.
1148         * libio/vswprintf.c: Likewise.
1149         * malloc/memusagestat.c: Likewise.
1150         * sunrpc/auth_unix.c: Likewise.
1151         * sunrpc/rpc_main.c: Likewise.
1152         * nscd/cache.c: Likewise.
1153         * locale/programs/repertoire.c: Unify output messages.
1154         * locale/programs/charmap.c: Likewise.
1155         * locale/programs/ld-ctype.c: Likewise.
1156         * locale/programs/ld-monetary.c: Likewise.
1157         * locale/programs/ld-numeric.c: Likewise.
1158         * locale/programs/ld-time.c: Likewise.
1159         * elf/ldconfig.c: Likewise.
1160         * nscd/selinux.c: Likewise.
1161         * elf/cache.c: Likewise.
1162         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
1164         [BZ #3451]
1165         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
1166         change atomic.
1167         (ceil): Likewise.
1169 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
1171         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
1172         if N is one bigger than return value.
1173         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
1174         and l1 last arguments, if buf is defined, verify the return value
1175         equals to strlen (buf) and verify no byte beyond passed length
1176         is modified.
1178 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
1180         * po/sv.po: Update from translation team.
1182 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
1184         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
1185         noinline attribute.
1187 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
1189         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
1190         noinline attribute.
1192         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
1193         Use __new_sys_siglist instead of _sys_siglist_internal as
1194         second macro argument.
1195         (_old_sys_siglist): Use declare_symbol_alias macro instead of
1196         strong_alias.
1198 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
1200         [BZ #3493]
1201         * posix/unistd.h (sysconf): Remove const attribute.
1203         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
1204         temporary or deprecated addresses.
1205         Patch by Sridhar Samudrala <sri@us.ibm.com>.
1207         * string/Makefile (tests): Add tst-strxfrm2.
1208         * string/tst-strxfrm2.c: New file.
1210 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
1212         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
1213         rather than r->r_brk.
1215 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
1217         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
1218         optimization even if needed > n.
1220         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
1221         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
1222         return false, otherwise return true.
1223         (cache_rpath): Return decompose_rpath return value.
1225 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
1227         * include/libc-symbols.h (declare_symbol): Rename to...
1228         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
1229         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
1230         .size directive.
1231         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
1232         changes.
1233         * sysdeps/gnu/siglist.c: Likewise.
1235 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
1237         * sysdeps/powerpc/fpu/bits/mathinline.h
1238         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
1239         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
1241 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
1243         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
1244         Update handling of cache descriptor 0x49 for new models.
1245         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
1246         Likewise.
1248 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
1250         * malloc/memusage.c (dest): Reset not_me back to false after
1251         printing statistics.
1253 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
1255         * configure.in: Work around ld --help change and avoid -z relro
1256         test completely if the architecture doesn't care about security.
1258 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
1260         * po/sv.po: Update from translation team.
1262 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
1264         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
1265         generate compatibility version.
1267 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
1269         * configure.in: Relax -z relro requirement a bit.
1271         * po/sv.po: Update from translation team.
1273 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
1275         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
1276         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
1277         * elf/dl-close.c (_dl_close_worker): Likewise.
1278         * elf/dl-open.c (_dl_open_worker): Likewise.
1279         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
1281 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
1283         * configure.in: Require assembler support for visibility, compiler
1284         support for visibility and aliases, linker support for various -z
1285         options.
1286         * Makeconfig: Remove conditional code which now is unnecessary.
1287         * config.h.in: Likewise.
1288         * config.make.in: Likewise.
1289         * dlfcn/Makefile: Likewise.
1290         * elf/Makefile: Likewise.
1291         * elf/dl-load.c: Likewise.
1292         * elf/rtld.c: Likewise.
1293         * include/libc-symbols.h: Likewise.
1294         * include/stdio.h: Likewise.
1295         * io/Makefile: Likewise.
1296         * io/fstat.c: Likewise.
1297         * io/fstat64.c: Likewise.
1298         * io/fstatat.c: Likewise.
1299         * io/fstatat64.c: Likewise.
1300         * io/lstat.c: Likewise.
1301         * io/lstat64.c: Likewise.
1302         * io/mknod.c: Likewise.
1303         * io/mknodat.c: Likewise.
1304         * io/stat.c: Likewise.
1305         * io/stat64.c: Likewise.
1306         * libio/stdio.c: Likewise.
1307         * nscd/Makefile: Likewise.
1308         * stdlib/Makefile: Likewise.
1309         * stdlib/atexit.c: Likewise.
1310         * sysdeps/generic/ldsodefs.h: Likewise.
1311         * sysdeps/i386/dl-machine.h: Likewise.
1312         * sysdeps/i386/sysdep.h: Likewise.
1313         * sysdeps/i386/i686/memcmp.S: Likewise.
1314         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
1315         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1316         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
1318         * Makerules: USE_TLS support is now default.
1319         * tls.make.c: Likewise.
1320         * csu/Versions: Likewise.
1321         * csu/libc-start.c: Likewise.
1322         * csu/libc-tls.c: Likewise.
1323         * csu/version.c: Likewise.
1324         * dlfcn/dlinfo.c: Likewise.
1325         * elf/dl-addr.c: Likewise.
1326         * elf/dl-cache.c: Likewise.
1327         * elf/dl-close.c: Likewise.
1328         * elf/dl-iteratephdr.c: Likewise.
1329         * elf/dl-load.c: Likewise.
1330         * elf/dl-lookup.c: Likewise.
1331         * elf/dl-object.c: Likewise.
1332         * elf/dl-open.c: Likewise.
1333         * elf/dl-reloc.c: Likewise.
1334         * elf/dl-support.c: Likewise.
1335         * elf/dl-sym.c: Likewise.
1336         * elf/dl-sysdep.c: Likewise.
1337         * elf/dl-tls.c: Likewise.
1338         * elf/ldconfig.c: Likewise.
1339         * elf/rtld.c: Likewise.
1340         * elf/tst-tls-dlinfo.c: Likewise.
1341         * elf/tst-tls1.c: Likewise.
1342         * elf/tst-tls10.h: Likewise.
1343         * elf/tst-tls14.c: Likewise.
1344         * elf/tst-tls2.c: Likewise.
1345         * elf/tst-tls3.c: Likewise.
1346         * elf/tst-tls4.c: Likewise.
1347         * elf/tst-tls5.c: Likewise.
1348         * elf/tst-tls6.c: Likewise.
1349         * elf/tst-tls7.c: Likewise.
1350         * elf/tst-tls8.c: Likewise.
1351         * elf/tst-tls9.c: Likewise.
1352         * elf/tst-tlsmod1.c: Likewise.
1353         * elf/tst-tlsmod13.c: Likewise.
1354         * elf/tst-tlsmod13a.c: Likewise.
1355         * elf/tst-tlsmod14a.c: Likewise.
1356         * elf/tst-tlsmod2.c: Likewise.
1357         * elf/tst-tlsmod3.c: Likewise.
1358         * elf/tst-tlsmod4.c: Likewise.
1359         * elf/tst-tlsmod5.c: Likewise.
1360         * elf/tst-tlsmod6.c: Likewise.
1361         * include/errno.h: Likewise.
1362         * include/link.h: Likewise.
1363         * include/tls.h: Likewise.
1364         * locale/global-locale.c: Likewise.
1365         * locale/localeinfo.h: Likewise.
1366         * malloc/arena.c: Likewise.
1367         * malloc/hooks.c: Likewise.
1368         * malloc/malloc.c: Likewise.
1369         * resolv/Versions: Likewise.
1370         * sysdeps/alpha/dl-machine.h: Likewise.
1371         * sysdeps/alpha/libc-tls.c: Likewise.
1372         * sysdeps/generic/ldsodefs.h: Likewise.
1373         * sysdeps/generic/tls.h: Likewise.
1374         * sysdeps/i386/dl-machine.h: Likewise.
1375         * sysdeps/ia64/dl-machine.h: Likewise.
1376         * sysdeps/ia64/libc-tls.c: Likewise.
1377         * sysdeps/mach/hurd/fork.c: Likewise.
1378         * sysdeps/mach/hurd/i386/tls.h: Likewise.
1379         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
1380         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
1381         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
1382         * sysdeps/s390/libc-tls.c: Likewise.
1383         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1384         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1385         * sysdeps/sh/dl-machine.h: Likewise.
1386         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1387         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1388         * sysdeps/x86_64/dl-machine.h: Likewise.
1390         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
1391         split out locking and parameter checking.
1392         (_dl_close): Call _dl_close_worker after locking and checking.
1393         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
1394         _dl_close.
1395         * elf/Makefile: Add rules to build and run tst-thrlock.
1396         * elf/tst-thrlock.c:  New file.
1398         [BZ #3426]
1399         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
1400         reality.
1402         [BZ #3429]
1403         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
1404         we are sure we do not need it anymore for _dl_close.  Also move
1405         the asserts inside the lock region.
1406         Patch mostly by Suzuki <suzuki@in.ibm.com>.
1408 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
1410         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
1411         argument.
1412         (_dl_lookup_symbol_x): Adjust caller.
1414         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
1415         _ns_global_scope.
1416         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
1418         * elf/dl-libc.c: Revert l_scope name changes.
1419         * elf/dl-load.c: Likewise.
1420         * elf/dl-object.c: Likewise.
1421         * elf/rtld.c: Likewise.
1422         * elf/dl-close.c (_dl_close): Likewise.
1423         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
1424         always use __rtld_mrlock_{change,done}.  Always free old scope list
1425         here if not l_scope_mem.
1426         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
1427         change.  Never free scope list here.  Just __rtld_mrlock_lock before
1428         the lookup and __rtld_mrlock_unlock it after the lookup.
1429         * elf/dl-sym.c: Likewise.
1430         * include/link.h (struct r_scoperec): Remove.
1431         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
1432         with l_scope_mem and l_scoperec_lock with l_scope_lock.
1434 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
1436         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
1438 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
1440         * configure.in: Disable building profile libraries by default.
1442 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
1444         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
1445         as signed longs, check for x_base + pos overflow.
1446         * sunrpc/Makefile (tests): Add tst-xdrmem2.
1447         * sunrpc/tst-xdrmem2.c: New test.
1449 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
1451         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
1452         _dl_lookup_symbol_x code.
1454 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
1456         * elf/dl-runtime.c: Include sysdep-cancel.h.
1457         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
1458         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
1459         instead of catomic_* macros.
1460         * elf/dl-sym.c: Include sysdep-cancel.h.
1461         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
1462         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
1463         * elf/dl-close.c: Include sysdep-cancel.h.
1464         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
1465         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
1466         * elf/dl-open.c: Include sysdep-cancel.h.
1467         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
1468         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
1470 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
1472         [BZ #3313]
1473         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
1474         fastbin rather than end of fastbin array.
1476 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
1478         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
1479         body macro.
1480         * sysdeps/x86_64/bits/atomic.h
1481         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
1482         (catomic_decrement): Use correct body macro.
1484 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
1486         * include/atomic.h: Add a unique prefix to all local variables
1487         in macros.
1488         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
1490 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
1492         [BZ #3369]
1493         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
1494         and 7.
1496 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
1498         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
1500 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
1502         [BZ #3313]
1503         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
1504         determine highest fast bin to consolidate, always look into all of
1505         them.
1506         (do_check_malloc_state): Only require for empty bins for large
1507         sizes in main arena.
1509         * libio/stdio.h: Add more __wur attributes.
1511         * elf/dl-minimal.c (realloc): Optimize last patch.
1513 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
1515         [BZ #3352]
1516         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
1517         and use memcpy() if it does.
1519 2006-11-12  Andreas Jaeger  <aj@suse.de>
1521         [BZ #2510]
1522         * manual/search.texi (Hash Search Function): Clarify.
1523         (Array Search Function): Clarify.
1525 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
1527         [BZ #2830]
1528         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
1529         shifting.
1530         * math/atest-exp2.c (read_mpn_hex): Likewise.
1531         * math/atest-sincos.c (main): Likewise.
1533 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
1535         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
1536         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
1537         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
1538         version GLIBC_2.6.
1539         * Versions.def: Add GLIBC_2.6 for libc.
1541         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
1543         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
1545 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
1547         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
1549         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
1551         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
1552         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
1554 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
1556         * include/atomic.c: Define catomic_* operations.
1557         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
1558         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
1559         * malloc/memusage.c: Likewise.
1560         * gmon/mcount.c: Likewise.
1561         * elf/dl-close.c: Likewise.
1562         * elf/dl-open.c: Likewise.
1563         * elf/dl-profile.c: Likewise.
1564         * elf/dl-sym.c: Likewise.
1565         * elf/dl-runtime.c: Likewise.
1566         * elf/dl-fptr.c: Likewise.
1567         * resolv/res_libc.c: Likewise.
1569 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
1571         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
1572         components which lack them.
1574         * nis/nis_subr.c (nis_getnames): Make sure that we always return
1575         at least one entry consisting of the parameter concatenated with
1576         the domain.
1578 2006-10-10  Roland McGrath  <roland@frob.com>
1580         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
1581         * sysdeps/mach/hurd/futimes.c: Likewise.
1582         * sysdeps/mach/hurd/lutimes.c: Likewise.
1584 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
1585             Jakub Jelinek  <jakub@redhat.com>
1587         Implement reference counting of scope records.
1588         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
1589         from the list in objects which remain.  Always allocate new scope
1590         record.
1591         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
1592         don't resize, allocate a new one.
1593         * elf/dl-runtime.c: Update reference counters before using a scope
1594         array.
1595         * elf/dl-sym.c: Likewise.
1596         * elf/dl-libc.c: Adjust for l_scope name change.
1597         * elf/dl-load.c: Likewise.
1598         * elf/dl-object.c: Likewise.
1599         * elf/rtld.c: Likewise.
1600         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
1601         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
1602         Add l_scoperec_lock.
1603         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
1604         * sysdeps/generic/rtld-lowlevel.h: New file.
1606         * include/atomic.h: Rename atomic_and to atomic_and_val and
1607         atomic_or to atomic_or_val.  Define new macros atomic_and and
1608         atomic_or which do not return values.
1609         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
1610         Various cleanups.
1611         * sysdeps/i386/i486/bits/atomic.h: Likewise.
1613         * po/sv.po: Update from translation team.
1615 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
1617         * Versions.def: Add GLIBC_2.6 to libpthread.
1619         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
1620         (versioned_symbol): Likewise.
1621         (compat_symbol): Likewise.
1623         * po/tr.po: Update from translation team.
1625 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
1627         * nis/Banner: Removed.  It's been integral part forever and the
1628         author info is incomplete anyway.
1629         * libio/Banner: Likewise.
1631         * nis/nis_table.c (nis_list): If __follow_path fails in the new
1632         code, make sure the nis_freeresult call doesn't crash and that the
1633         result is reported correctly.
1635 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
1637         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
1638         when callback is NULL.
1640         * nis/Versions (libnss_nisplus): Add
1641         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
1642         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
1643         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
1644         _nss_create_tablename): Rename to...
1645         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
1646         ... these.  No longer static.
1647         (internal_setgrent): Adjust users.
1648         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
1649         Don't use locking around _nss_grp_create_tablename call.
1650         * nis/nss_nisplus/nisplus-initgroups.c: New file.
1652 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
1654         * version.h (VERSION): Bump to 2.5.90 for new development tree.
1656 2006-10-06  Andreas Jaeger  <aj@suse.de>
1658         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
1660 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
1662         * po/pl.po: Update from translation team.
1664         * nscd/nscd.c (main): Fix typo in message.
1665         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
1667 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
1669         [BZ #3291]
1670         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
1671         errno.h, signal.h, unistd.h and sysdep-cancel.h.
1672         (__sigprocmask): Define.
1674 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
1676         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
1677         used.
1679 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
1681         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
1682         in oldtotal and newtotal calculation.
1683         * nscd/nscd-client.h (struct mapped_database): Add datasize
1684         field.
1685         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
1686         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
1687         increased.
1688         (__nscd_cache_search): Add checks to make sure we never reference
1689         data beyond the current mapping.
1691 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1693         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
1694         variables const to avoid compiler warnings.
1696         * io/fts.c (fts_close): Remove redundant checks.
1697         (fts_build): Likewise.
1698         (fts_palloc): Likewise.
1700         * manual/message.texi (Advanced gettext functions,
1701         Using gettextized software): Fix typos.
1703 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
1705         * posix/glob.c (glob_in_dir): Add some comments and asserts to
1706         explain why there are no leaks.
1708 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
1710         * libio/wmemstream.c: Include <wchar.h>.
1711         * libio/bug-wmemstream1.c: Likewise.
1712         * libio/tst-wmemstream1.c: Likewise.
1713         * libio/tst-wmemstream2.c: Likewise.
1715         * version.h (RELEASE): Bump to 2.5.
1716         * README: Regenerated.
1718         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
1720         [BZ #3273]
1721         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
1722         found no group members.
1723         Patch by Petr Baudis.
1725 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
1727         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
1728         assert bootstrap_map.l_tls_modid is zero.
1729         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
1730         if USE___THREAD.
1732 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
1734         * libio/stdio.h: Move open_wmemstream prototype to ...
1735         * wcsmbs/wchar.h: ... here.
1737 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
1739         [BZ #3252]
1740         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
1741         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
1742         __{,l}chown to handle the rest.
1743         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
1744         fchownat syscall and __ASSUME_32BITUIDS case inline, call
1745         __{,l}chown to handle the rest.
1746         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
1747         i386/fchownat.c.
1748         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
1749         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
1751         [BZ #3253]
1752         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
1753         time, rather allocate increasingly bigger arrays of pointers, if
1754         possible with alloca, if too large with malloc.
1756 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
1758         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
1760         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
1762 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
1764         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
1765         home addresses.
1766         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
1767         IFA_F_HOMEADDRESS flag for interfaces.
1768         * include/ifaddrs.h (struct in6addrinfo): Define
1769         in6ai_homeaddress.
1771 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
1773         [BZ #3225]
1774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
1775         PTR_DEMANGLE3): Define.
1776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
1777         PTR_DEMANGLE3): Likewise.
1778         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
1779         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1780         Likewise.
1781         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
1783 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
1785         * po/libc.pot: Regenerated.
1786         * po/be.po: Updated.
1787         * po/ca.po: Likewise.
1788         * po/cs.po: Likewise.
1789         * po/da.po: Likewise.
1790         * po/de.po: Likewise.
1791         * po/el.po: Likewise.
1792         * po/en_GB.po: Likewise.
1793         * po/es.po: Likewise.
1794         * po/fi.po: Likewise.
1795         * po/fr.po: Likewise.
1796         * po/gl.po: Likewise.
1797         * po/hr.po: Likewise.
1798         * po/hu.po: Likewise.
1799         * po/ja.po: Likewise.
1800         * po/ko.po: Likewise.
1801         * po/nb.po: Likewise.
1802         * po/nl.po: Likewise.
1803         * po/pl.po: Likewise.
1804         * po/pt_BR.po: Likewise.
1805         * po/ru.po: Likewise.
1806         * po/rw.po: Likewise.
1807         * po/sk.po: Likewise.
1808         * po/sv.po: Likewise.
1809         * po/tr.po: Likewise.
1810         * po/zh_CN.po: Likewise.
1811         * po/zh_TW.po: Likewise.
1813         [BZ #3137]
1814         * iconv/iconv_prog.c (main): Fix spelling in error message.
1815         * iconv/iconvconfig.c (main): Likewise.
1816         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
1817         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
1818         * locale/programs/localedef.c (main): Likewise.
1819         * locale/programs/repertoire.c (repertoire_read): Likewise.
1820         * timezone/zdump.c (main): Likewise.
1821         * nscd/connections.c (handle_request): Fix spelling in log message.
1822         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
1824 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
1826         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
1827         interfaces.
1829 2006-09-20  Andreas Jaeger  <aj@suse.de>
1831         * math/libm-test.inc (lrint_test_upward): Fix typo.
1833 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
1835         [BZ #2592]
1836         * math/libm-test.inc (lrint_test_tonearest): New function.
1837         (lrint_test_towardzero): New function.
1838         (lrint_test_downward): New function.
1839         (lrint_test_upward): New function.
1840         (main): Run these new tests.
1841         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
1842         of values near to 0.
1843         (two52): Use double not long double.
1844         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
1845         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
1846         (two23): Use float not double.
1847         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
1848         (two23): Use float not double.
1849         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
1850         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
1851         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
1852         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
1854 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1856         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
1857         Cast sp to unsigned long to avoid compiler warning.
1858         Use __makecontext_ret function instead of a trampoline on the stack.
1859         (__makecontext_ret): New function.
1860         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
1862 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
1864         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
1865         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
1866         bits.
1868 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
1870         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
1871         sure no reference to the unloaded map's search list remains in the
1872         dependency's scope.
1874 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
1876         * elf/Makefile: Add rules to build and run unload7 test.
1877         * elf/unload7.c: New test.
1878         * elf/unload7mod1.c: New file.
1879         * elf/unload7mod2.c: New file.
1881 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
1883         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
1884         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
1885         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1886         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
1887         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1888         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
1889         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1890         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
1891         PTRACE_GETEVENTMSG): Likewise.
1892         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
1893         values.
1895 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
1897         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
1898         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1899         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
1900         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
1902 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
1904         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
1905         write '\0' to the fd.
1906         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
1907         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
1908         Change regs to unsigned long pointer from unsigned int, fix fscr
1909         offset.
1911 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
1913         * io/Makefile (CFLAGS-fstatat.c): Set.
1914         (CFLAGS-fstatat64.c): Likewise.
1915         (CFLAGS-mknodat.c): Likewise.
1917         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
1918         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
1919         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
1920         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
1922 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
1923             Steven Munroe  <sjmunroe@us.ibm.com>
1925         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
1926         names to the beginning.  Rename "cell" to "cellbe".
1927         (_dl_powerpc_platforms): New.
1928         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
1929         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
1930         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
1931         (_DL_HWCAP_PLATFORM): Define to new mask.
1932         (_dl_platform_string, _dl_string_platform): New functions.
1933         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
1934         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
1936 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
1938         [BZ #2526]
1939         * README.libm: Fix a thinko in sqrt algorithm description.
1941         [BZ #3143]
1942         * manual/string.texi (argz_delete): Fix prototype.
1943         Patch by <alpt@freaknet.org>.
1945 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
1947         [BZ #3138]
1948         * io/test-lfs.c (do_prepare): Give name_len type size_t.
1949         * io/tst-fcntl.c (do_prepare): Likewise.
1950         * posix/tst-exec.c (do_prepare): Likewise.
1951         * posix/tst-preadwrite.c (do_prepare): Likewise.
1952         * posix/tst-spawn.c (do_prepare): Likewise.
1953         * posix/tst-truncate.c (do_prepare): Likewise.
1954         * rt/tst-aio.c (do_prepare): Likewise.
1955         * rt/tst-aio64.c (do_prepare): Likewise.
1956         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
1957         size_t.
1959 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
1961         [BZ #2821]
1962         * time/mktime.c (guess_time_tm): Fix overflow detection.
1963         * time/Makefile (tests): Add bug-mktime1.
1964         * time/bug-mktime1.c: New file.
1966         [BZ #3189, #3188]
1967         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
1968         (mremap): Likewise.
1970 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
1972         [BZ #1006]
1973         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
1974         Ensure relocation doesn't clobber any bits outside of the
1975         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
1976         R_SPARC_HI22 and R_SPARC_H44.
1978         [BZ #2775]
1979         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
1980         (long) (MINSIZE + nb - old_size) is positive.
1982         * malloc/arena.c (grow_heap): When growing bail even if new_size
1983         is negative.
1985         [BZ #3155]
1986         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
1987         stack below r1.
1989 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
1991         * posix/regex_internal.c (re_string_reconstruct): Handle
1992         offset < pstr->valid_raw_len && pstr->offsets_needed case.
1993         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
1994         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
1995         re_string_context_at.
1996         * posix/Makefile: Add rules to build and run bug-regex26 test.
1997         * posix/bug-regex26.c: New test.
1999         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
2000         rather than col_sym_free.  Move seqp declaration earlier.
2002         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
2004 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
2006         * nscd/initgrcache.c (addinitgroupsX): Move any_success
2007         decl before first goto out.
2009 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
2011         * Makerules (shlib.lds): If have-hash-style, put .hash section
2012         at the end of the RO segment.
2014 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
2016         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
2017         style hash table format is used.
2019 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
2021         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
2022         randomization rather than before.
2023         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
2025 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
2027         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
2029         * malloc/malloc.c (_int_malloc): Use full list insert and not
2030         shortcut which assumes the list is empty for large requests
2031         too.
2033         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
2035 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
2037         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
2038         and offout arguments to the prototype.
2039         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
2040         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
2041         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
2042         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
2043         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
2044         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
2045         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
2046         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
2048 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
2050         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
2052         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
2053         dlopen parameters.
2055 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
2057         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
2058         only if herrno is NETDB_INTERNAL.  Handle errors other than
2059         ERANGE outside of the loops, handle TRY_AGAIN.
2061         * locale/programs/ld-ctype.c (translit_flatten): Issue error
2062         if other's ctype category was missing.
2063         * locale/programs/ld-collate.c (collate_read): Return if
2064         copy_locale's collate category is missing.
2066 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
2068         [BZ #2684]
2069         * malloc/malloc.c (public_rEALLOc): Try harder by using other
2070         arenas if allocation failed.
2071         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
2073 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
2075         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
2076         waste bins[0..1].
2077         (malloc_state): Reduce bins size by 2.
2078         (_int_malloc): Fix test for large enough buffer for early termination.
2079         When no unsorted block matches perfectly and an exiting block has
2080         to be split, use full list insert and not shortcut which assumes
2081         the list is empty.
2083         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
2084         failure.
2086 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
2088         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
2089         do anything.
2091         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
2092         symbol require exact match (these are PLTs).
2093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
2094         (_dl_ppc64_addr_sym_match): Likewise.
2096         [BZ #2683]
2097         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
2098         If symbol has a value use it.
2099         * elf/tst-dladdr1.c: New file.
2100         * elf/Makefile: Add rules to build and run tst-addr1.
2102 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
2104         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
2105         keeps failing and heap growth or new heap creation isn't
2106         successful either.
2107         * malloc/tst-malloc.c (main): Add new tests.
2109 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
2111         [BZ #2734]
2112         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
2113         as in the x86-64 code to use bswap.
2115 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
2117         [BZ #2680]
2118         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
2119         __USE_UNIX98.
2120         * posix/bits/unistd.h: Likewise.
2122 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
2124         [BZ #2751]
2125         * string/strchr.c: Add cast to avoid warning.
2127 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
2129         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
2130         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
2131         limit is needed to avoid the exploding of the address space
2132         requirement for secondary heaps.
2133         * malloc/arena.c (HEAP_MAX_SIZE): Define using
2134         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
2136 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
2138         [BZ #3018]
2139         * Makerules (depfiles): Handle extra-test-objs the same as
2140         extra-objs.
2141         (common-mostlyclean): Likewise.
2142         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
2143         instead.
2144         * elf/Makefile (extra-objs): Likewise.
2145         * stdlib/Makefile (extra-objs): Likewise.
2147 2006-08-14  Eric Blake  <ebb9@byu.net>
2149         [BZ #3044]
2150         * misc/error.h: Assume C89 or better.
2151         * misc/error.c: Likewise.
2153 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
2155         [BZ #3040]
2156         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
2157         __ASSUME_ATFCTS is defined.
2159 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
2161         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
2162         to sort in each call.
2164         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
2165         is empty simply return and use next service.
2166         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
2168         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
2169         tells us when not finding a charmap file is an error.
2170         * locale/programs/charmap.h: Adjust charmap_read prototype.
2171         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
2172         cannot find a charmap.
2173         * locale/programs/localedef.c (main): Adjust charmap_read call.
2175 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
2177         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
2178         sysdeps/posix/pause.c implementation instead.
2180 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
2182         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
2183         to EPERM.
2185 2006-08-13  Andreas Schwab  <schwab@suse.de>
2187         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
2188         Don't clobber caller's LRSAVE.
2189         (_dl_prof_resolve): Likewise.
2191 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
2193         [BZ #1996]
2194         * libio/memstream.c (open_memstream): Allocate initial buffer with
2195         calloc.
2196         * libio/wmemstream.c (open_wmemstream): Likewise.
2197         * libio/strops.c: Pretty printing.
2198         (_IO_str_overflow): Clear uninitialized part of the new buffer.
2199         (enlarge_userbuf): New function.
2200         (_IO_str_seekoff): Call it if seek position is larger than current
2201         buffer.
2202         * libio/wstrops.c: Likewise.
2203         * libio/vasprintf.c: Add comment as to why we do not have to use
2204         calloc instead of malloc to allocate initial buffer.
2205         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
2206         * libio/bug-memstream1.c: New file.
2207         * libio/bug-wmemstream1.c: New file.
2209 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
2211         * libio/wstrops.c: Remove dead macro definitions and comments.
2212         * libio/strops.c: Likewise.
2214         [BZ #2764]
2215         * login/utmpname.c (__utmpname): Remove unnecessary test.
2217 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
2219         [BZ #2832]
2220         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
2221         0s from integers.
2223 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
2225         [BZ #2987]
2226         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
2227         for CPU clocks.
2228         * sysdeps/unix/clock_settime.c: Add support for platform-specific
2229         setting of CPU clocks.
2231 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2233         [BZ #2841]
2234         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
2235         since C99 requires the result to promote to 'int' when uint_least8_t
2236         and uint_least16_t promote to 'int'.
2238 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
2240         [BZ #3013]
2241         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
2242         lenght of one output field, correct bitmask creation.
2243         * locale/programs/ld-time.c: Add alignment.
2245         [BZ #2997]
2246         * misc/error.c: Add space between program name and message if file
2247         name is missing.
2249 2006-08-03  Eric Blake  <ebb9@byu.net>
2251         [BZ #2998]
2252         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
2254 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
2256         * malloc/memusagestat.c: Silence warnings.
2258         * malloc/malloc.c: Dynamically size mmap treshold if the program
2259         frees mmaped blocks.
2260         Patch by Valerie Henson and Arjan van de Ven.
2262 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
2264         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
2265         __USE_GNU.
2267         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
2268         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
2269         (DEF): Don't put the var into .gnu.linkonce.r.* section.
2270         Only provide var definitions in strtol_l (or for *ull*
2271         in strtoll_l).
2273         * stdio-common/bug16.c (tests): New array.
2274         (do_tests): Allow the first hexadecimal digit
2275         to be 1, 2, 4 or 8.  Do 3 additional tests.
2277         * sysdeps/s390/fpu/libm-test-ulps: Update.
2279         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
2280         fchownat syscall if available.
2281         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
2282         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
2283         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
2285 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
2287         * nis/nis_xdr.c: Avoid some function calls.
2289 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
2290             Ulrich Drepper  <drepper@redhat.com>
2292         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
2293         short cut if only one name component is stripped away.
2295 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
2297         * nis/nis_call.c: Minor cleanups throughout.
2298         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
2299         (first_shoot): Add search_parent_first parameter.  Only if it is set
2300         search parent server first.
2301         If directory for table found through cold start cache is not the same
2302         as referenced in the cache, don't use it.
2303         (__nisfind_server): Take additional parameter.  Pass it on to
2304         first_shoot.
2305         (__prepare_niscall): Adjust __nisfind_server call.
2306         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
2307         * nis/nis_table.c: Adjust __nisfind_server call.
2308         * nis/nis_lookup.c: Likewise.
2309         (nis_lookup): Don't loop endlessly if name is reduced to ".".
2311 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
2313         [BZ #2182]
2314         * math/s_cacosh.c: Return values from positive branch.
2315         * math/s_cacoshf.c: Likewise.
2316         * math/s_cacoshl.c: Likewise.
2318         [BZ #2883]
2319         * sysvipc/sys/msg.h: Change return value to ssize_t.
2320         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
2321         * sysvipc/msgrcv.c: Likewise.
2322         * include/sys/msg.h: Likewise.
2324         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
2325         test introduced in patch for bz #661.
2326         (getgrouplist): Simplify code a bit.  Don't allocate one additional
2327         element for NEWGROUPS.
2329         [BZ #2908]
2330         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
2331         'f', use '1' as leading digit not '\1'.
2332         * stdio-common/Makefile (tests): Add bug16.
2333         * stdio-common/bug16.c: New file.
2335         [BZ #2914]
2336         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
2337         and don't try to open it.  The patch introducing the macro
2338         contained a bug and used the same file name as the new file
2339         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
2340         this out completely.
2342         [BZ #2926]
2343         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
2344         Patch by Jerry James <Jerry.James@usu.edu>.
2346         * rt/Makefile (tests): Add tst-clock2.
2347         * rt/tst-clock2.c: New file.
2349         [BZ #2978]
2350         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
2351         function and its parameters and pass it to new thread.
2352         (__gai_notify): Add support for alternative waiting for completion.
2353         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
2354         waiting for completion.
2355         * resolv/getaddrinfo_a.c: Likewise.
2356         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
2357         waiting for completion is used.
2358         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
2359         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
2360         * resolv/gai_error.c: Likewise.
2361         * resolv/gai_sigqueue.c: Likewise.
2363 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
2365         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
2366         errno to EBADF and return MACH_PORT_NULL.
2368 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
2370         [BZ #2980]
2371         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
2373 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
2375         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
2376         walk them instead of the symbol table.
2378 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
2380         [BZ #2098]
2381         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
2382         status of NSS calls, not the number of returned entries.
2384         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
2385         request_key, keyctl.
2387 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
2389         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
2391 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
2393         * elf/tst-auditmod1.c: Fix typo in #error.
2395 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
2397         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
2399         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
2401 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
2403         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
2404         that the directory is empty even on non-POSIX filesystems.
2406 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
2408         * elf/dl-open.c (dl_open_worker): Add branch prediction.
2410         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
2411         the backend NSS module.  If backend setgrent call failed, don't have
2412         internal_setgrent fail.  Just remember this until it is needed.
2413         * nis/nss_compat/compat-pwd.c: Likewise.
2414         * nis/nss_compat/compat-spwd.c: Likewise.
2416 2006-07-30  Roland McGrath  <roland@redhat.com>
2418         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
2419         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
2420         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
2421         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
2423         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
2424         (nanosleep_not_cancel): New macro.
2425         (sigsuspend_not_cancel): new macro.
2426         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
2427         (do_sigsuspend): Define as inline.
2428         (__sigsuspend): Always use do_sigsuspend.
2429         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
2430         * include/signal.h: Declare __sigsuspend_nocancel.
2431         * sysdeps/posix/pause.c
2432         [! NO_CANCELLATION] (__pause_nocancel): New function.
2434         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
2435         * include/time.h (__nanosleep_nocancel): Likewise.
2437 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
2439         * locale/programs/localedef.c (add_to_readlist): Rename local
2440         variables to avoid confusion.
2442         * locale/programs/charmap.c (charmap_read): Emit error message if
2443         charmap couldn't be found or read.
2445 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
2447         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2448         __ASSUME_FUTEX_LOCK_PI.
2449         * include/time.h: Declare __nanosleep_nocancel.
2450         * include/unistd.h: Declare __pause_nocancel.
2452         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
2453         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
2454         get the __stack_chk_fail_local definition when it's needed.
2456 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
2458         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
2459         * dlfcn/bug-atexit3.c: New file.
2460         * dlfcn/bug-atexit3-lib.cc: New file.
2462         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
2463         used when the namespace is not the base namespace.
2465 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
2467         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
2468         (__new_exitfn): Bump it in every successful call.
2469         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
2470         more exit handlers, call them right away.
2471         * stdlib/exit.h: Declare __new_exitfn_called.
2473 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
2475         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
2476         calling registered handler.
2478         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
2479         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2480         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2481         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2482         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2483         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2484         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2485         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2487 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
2489         * elf/dl-lookup.c (dl_new_hash): New functions.
2490         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
2491         value here.  Compute new-style hash value.  Pass new hash value
2492         and reference to variable with the old value to do_lookup_x.
2493         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
2494         old-style hash table.
2495         (_dl_debug_bindings): Pass new hash value and reference to variable
2496         with the old value to do_lookup_x.
2497         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
2498         new-style hash value and change old-style hash value parameter to
2499         be a reference.  Reoganize functions to determine whether
2500         new-style hash table is available.  Only fall back on old-style
2501         table.  If old-style hash value is needed, compute it here.
2502         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
2503         entry.
2504         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
2505         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
2506         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
2507         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
2508         * Makeconfig: If linker supports --hash-style option add it to all
2509         linker command lines to build DSOs.
2510         * config.make.in: Define have-hash-style.
2511         * configure.in: Test whether linker supports --hash-style option.
2513         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
2514         * sysdeps/generic/ldsodefs.h: Adjust prototype.
2516 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
2518         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
2519         auditing.
2521         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
2522         RPATH of main map twice.
2524 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
2526         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
2527         look further, return original strings.
2528         (_nl_find_msg): Do not return found translation if the conversion
2529         failed.  Either signal the string is unusable or that something went
2530         wrong and the original should be used.
2532 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
2534         * string/_strerror.c (__strerror_r): Add __builtin_expect.
2536 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
2538         [BZ #2766]
2539         * misc/insremque.c (insque): Handle prev == NULL.
2540         * misc/Makefile (tests): Add tst-insremque.
2541         * misc/tst-insremque.c: New test.
2543 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
2545         [BZ #2792]
2546         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
2547         conflict with DL_DST_REQUIRED.
2549 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
2551         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
2552         match what Solaris does.
2554 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
2556         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
2557         local_setegid instead of seteuid and setegid.
2558         * sysdeps/generic/local-setxid.h: New file.
2559         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
2561         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
2563         * string/Makefile (tests): Add bug-envz1.
2564         * string/bug-envz1.c: New file.
2566 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
2568         * posix/regex_internal.c (re_string_skip_chars): If no character has
2569         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
2570         to the byte which couldn't be converted.
2571         (re_string_reconstruct): Don't clear valid_raw_len before calling
2572         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
2573         tip_context using re_string_context_at.
2574         * posix/Makefile: Add rules to build and run bug-regex25 test.
2575         * posix/bug-regex25.c: New test.
2577 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
2579         [BZ #2703]
2580         * string/envz.c (envz_strip): Correct erroneously reversed src
2581         and dest parameters to memmove() invocation.
2583 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
2585         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
2586         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
2587         to make sure the database has been already invalidated.
2588         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
2589         after the cache has been invalidated.  Use pthread_mutex_lock rather
2590         than pthread_mutex_trylock if fd != -1.
2591         * nscd/connections.c (invalidate_cache): Add fd argument, write
2592         response to fd if not calling prune_cache, pass fd to prune_cache.
2593         (handle_request): Adjust invalidate_cache caller.
2594         (nscd_run): Pass -1 as fd to prune_cache.
2596 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
2598         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
2599         the correct place.
2601 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
2603         * nscd/nscd.h (struct database_dyn): Add prunelock field.
2604         * nscd/cache.c (prune_cache): Take prunelock before starting the
2605         work.  Just return in case it is already taken.
2606         * nscd/connections.c (dbs): Initialize .prunelock.
2608 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
2610         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
2611         copying.  No need to allocate new array for group members.  Just
2612         move the pointers and update the size.
2614         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
2615         Avoid memory leak in case realloc fails.  Simplification for
2616         better code generation.
2618         Avoid deprecation warning because of libc_hidden_proto for
2619         inet6_option_alloc.
2620         * inet/inet6_option.c (option_alloc): Renamed from
2621         inet6_option_alloc.  Made static.
2622         (inet6_option_alloc): Now a simple wrapper around option_alloc.
2623         (inet6_option_append): Call option_alloc.
2624         * include/netinet/in.h: Remove libc_hidden_proto for
2625         inet6_option_alloc.
2627         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
2628         for cleanup when cb!=NULL [Coverity CID 233].
2630 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
2632         [BZ #2693]
2633         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
2634         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
2635         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
2636         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
2637         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
2638         and inet6_rth_getaddr.
2639         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
2640         array.
2641         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
2642         Mark inet6_option_* interfaces as deprecated.
2643         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
2644         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
2645         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
2646         inet6_rth_segments, and inet6_rth_getaddr.
2647         * inet/inet6_opt.c: New file.
2648         * inet/inet6_rth.c: New file.
2650         * inet/netinet/icmp6.h: Pretty printing.
2652         [BZ #2683]
2653         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
2655 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
2657         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
2658         doing it all here.  When server does not know the answer do not
2659         fail immediate, try parent first.
2661         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
2662         overflow test.
2664 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
2666         * nis/nis_call.c (__prepare_niscall): New function.  Split out
2667         from __do_niscall.
2668         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
2669         and exported.
2670         (__follow_path): New function.  Split out from nis_list.
2671         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
2672         _xdr_nis_result.
2673         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
2674         _xdr_nis_result.
2675         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
2676         and __follow_path.
2677         * nis/Versions: Export __prepare_niscall, __create_ib_request,
2678         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
2679         from libnsl for version GLIBC_PRIVATE.
2680         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
2681         Remove entry parameter from _nss_nisplus_parse_pwent and
2682         _nss_nisplus_parse_grent.
2683         * nis/nss_nisplus/nisplus-parser.c: Likewise.
2684         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
2685         again.  Rewrite getpwent handling to not use nis_first_entry and
2686         nis_next_entry.  Roll out own niscall handling.
2687         * nis/nss_nisplus/nisplus-grp.c: Likewise.
2689         * sunrpc/xdr_rec.c: Fix typo in comment.
2691 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
2693         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
2694         handling.
2696         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
2697         to allocate memory for my_pollfd.  Better initialization of
2698         cb_is_running.  Use TEMP_FAILURE_RETRY.
2700         * malloc/memusage.sh (memusageso): Add quotes.
2701         (memusagestat): Likewise.
2702         * debug/xtrace.sh (pcprofileso): Likewise.
2703         (pcprofiledump): Likewise.
2704         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
2705         replacement.
2706         * malloc/Makefile ($(objpfx)memusage): Likewise.
2708         * nis/nis_callback.c (__nis_create_callback): Calls to
2709         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
2710         asprintf call fails.
2712         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
2713         no uninitialized memory is passed to sendto.
2715 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
2717         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
2718         of snprintf+strdup.  Handle OOM.
2719         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
2720         cb->serv together.  Remove now obsolete free calls.
2721         (__nis_destroy_callback): Remove now obsolete free call.
2723 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
2725         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
2726         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
2727         and ULA respectively). Set precedence for IPv4 address to 10 as
2728         defined in RFC3484 for preferring IPv6.
2729         * posix/gai.conf: Update to match the new default tables.
2731 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
2733         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
2734         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
2735         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
2736         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
2738         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
2739         Removed.
2740         (init_nss_interface): Remove initialization of these variables.
2742 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
2744         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
2745         nis_free_directory forward to avoid duplication.
2747 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
2749         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
2750         rec_dirsearch returning NULL.
2751         (first_shoot): Handle __nis_finddirectory returning NULL.
2752         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
2754         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
2755         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
2757 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
2759         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
2760         pid changed.
2762 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
2764         * include/rpc/pmap_prot.h: Mark all functions as hidden.
2766         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
2767         * nscd/nscd_getgr_r.c: Likewise.
2769         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
2771         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
2772         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
2774         * stdlib/longlong.h (__clz_tab): Mark as hidden.
2776         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
2778         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
2780         * include/rpc/auth.h: Mark xdr_des_block_internal and
2781         xdr_opaque_auth_internal as hidden.
2783         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
2784         hidden.
2786         * include/rpc/xdr.h: Mark all _internal functions as hidden.
2788         * misc/getusershell.c (okshells): Don't use static initializers,
2789         do it dynamically.
2791         * stdlib/fmtmsg.c (keywords): Change type of len element to
2792         uint32_t to not waste space on 64bit machines.
2794         * locale/setlocale.c: Change _nl_category_names into a string.
2795         Add new _nl_category_name_idxs.  Change all users.
2796         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
2797         Declare _nl_category_name_idxs.
2798         * locale/findlocale.c: Adjust for _nl_category_names change.
2799         * locale/loadlocale.c: Likewise.
2800         * locale/newlocale.c: Likewise.
2801         * intl/dcigettext.c: Likewise.
2803         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
2804         (add_alias2): ...here.  New function.
2805         (__gconv_read_conf): Simplify builtin alias handling.
2806         (builtin_aliases): Convert to string to avoid relocations.
2807         * iconv/gconv_builtin.h: Add comment about correct formatting.
2809 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2811         * resolv/res_debug.c (loc_ntoa): Make error const.
2813 2006-05-14  Andreas Schwab  <schwab@suse.de>
2815         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
2817 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
2819         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
2820         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
2821         sizeof (cpu_set_t).
2823 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
2825         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
2827         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
2829         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
2830         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
2832         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
2833         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
2835         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
2836         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
2837         xdr_cback_data.
2839         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
2840         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
2841         xdr_ypupdate_args.
2843         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
2844         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
2846         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
2847         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
2849         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
2850         * include/rpcsvc/nis_callback.h: New file.
2852         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
2853         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
2855         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
2856         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
2858         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
2859         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
2861         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
2862         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
2864         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
2865         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
2866         xdr_ypdelete_args.
2868         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
2869         __BEGIN_DECLS and __END_DECLS, the header is not installed.
2871         * nis/nis_error.c: Remove table of strings.  Use position
2872         independent mechanism.
2873         * nis/nis_error.h: New file.
2875 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
2877         * locale/programs/ld-time.c (time_finish): If wide era name or
2878         format aren't provided, set both wname and wformat to L"".
2880 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
2882         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
2883         results if the call was succesful.
2885         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
2887         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
2888         as hidden.
2890 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
2892         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
2894 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
2896         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
2897         caller makes sure this is not the case.
2898         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
2900 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
2902         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
2903         calls.
2905         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
2906         [Coverity CID 229, 230]
2908         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
2909         DGETTEXT calls.
2910         (hol_help): Likewise.  [Coverity CID 226, 227]
2912         * string/argz-replace.c (__argz_replace): Unconditionally call
2913         free on SRC.  [Coverity CID 225]
2915         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
2916         the return value of __nis_default_owner and __nis_default_group,
2917         it has been especially allocated.  [Coverity CID 224]
2919         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
2920         searchgroup and searchowner.  Significantly simplified.
2921         (__nis_default_owner): Remove duplication.  Do not locally copy the
2922         string before duplicating it.
2923         (__nis_default_group): Likewise.
2925         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
2926         we must clear the variable before calling __nisfind_server.
2928         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
2929         nis_getnames.  [Coverity CID 223]
2931         * locale/programs/locfile.c (locfile_read): Use alloca instead of
2932         xmalloc to allocate local repertoire name.  [Coverity CID 222]
2934         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
2935         allocate memory for the input to add_bytes.  [Coverity CID 221]
2937         * posix/wordexp.c (w_addword): Free word if realloc fails and it
2938         was allocated here.  [Coverity CID 219, 220]
2940         * posix/getconf.c (print_all): Free confstr data after printing.
2941         [Coverity CID 218]
2943         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
2944         list allocation fails.  [Coverity CID 215]
2946         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
2947         [Coverity CID 213]
2949         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
2950         string is NULL.  [Coverity CID 212]
2951         * argp/Makefile: Add rules to build and run bug-argp1.
2952         * argp/bug-argp1.c: New file.
2954         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
2955         end of string.
2956         * stdlib/canonicalize.c (__realpath): Likewise.
2958         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
2959         pointer.  [Coverity CID 206]
2961         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
2962         in statically linked code.
2963         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
2964         statically built code, be prepared to have no link map.
2965         [Coverity CID 205]
2967         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
2968         dgettext calls. [Coverity CID 204]
2970         * argp/argp-help.c (struct uparams): Remove valid member.  Change
2971         the one user.
2972         (uparam_names): Reduce size.  Avoid relative relocations.
2973         Moved to read-only segment.
2974         (fill_in_uparams): Update for new layout.
2976         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
2977         assumed to always be != NULL. [Coverity CID 202]
2979         * argp/argp-help.c (hol_entry_help): Remove some dead code
2980         [Coverity CID 200].
2982         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
2983         away a few more unconditional yperr2nss calls.
2984         (_nss_nis_getservbyname_r): Likewise.
2986 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
2988         * sysdeps/generic/ldsodefs.h: Remove support for non-core
2989         architectures.
2991         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
2992         that unused memory passed to sendto is nevertheless initialized.
2994         [BZ #2499]
2995         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
2996         possibly unaligned memory accesses.
2998         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
2999         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
3000         and __putlong respectively.  Correct buffer overflow check for
3001         NS_NOTIFY_OP.
3003         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
3005         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
3006         (send_dg): Rewrite error handling to be more compact and avoid
3007         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
3009         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
3011         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
3012         instead of ns_get16.
3013         (res_queriesmatch): Likewise.  Minor optimization.
3015         [BZ #2499]
3016         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
3017         __libc_res_nsend might reallocate the buffer for the answer.  In
3018         this case we have to reload the HP pointer.
3020 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
3022         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
3023         some branch prediction hints.
3025         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
3026         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3027         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3028         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3029         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3030         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3031         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3032         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3034 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3036         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
3037         by a GOT relocation to make Scrt1.o position independent.
3038         * sysdeps/s390/s390-64/elf/start.S: Likewise.
3040         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
3041         six system call parameters.
3042         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
3044 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
3046         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
3047         malloc&bzero.
3049         * sunrpc/svc_udp.c (BZERO): Remove definition.
3050         (CALLOC): Define.
3051         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
3053         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
3054         (des_SPtrans): Use uint32_t type.
3055         (des_skb): Likewise.
3057         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
3059 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
3061         [BZ #2509]
3062         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
3063         on 32-bit arches.
3065 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
3067         * locale/programs/ld-address.c (address_finish): Fix one more
3068         place where the iso639 array might be accessed beyond the limits.
3070 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
3072         * nis/nis_table.c (nis_list): Avoid clearing res twice before
3073         filling it for the first time.
3075         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
3076         Adjust all callers.
3077         Free res object content before returning.
3079         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
3081         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
3082         client->cl_auth.
3084         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
3085         cleanup for initial thread, just the free call on TVP.
3087         * nscd/gai.c (__getline): Define.
3090 See ChangeLog.16 for earlier changes.