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