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