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