1 2007-07-31 Jakub Jelinek <jakub@redhat.com>
3 * NEWS, version.h (VERSION): 2.5.1.
5 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
7 2007-07-28 Ulrich Drepper <drepper@redhat.com>
10 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
11 #.0g and value rounded to 1.0.
12 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
14 2007-07-03 Jakub Jelinek <jakub@redhat.com>
17 * nis/nss-default.c: Include errno.h.
18 (init): Preserve errno.
20 2007-07-01 Jakub Jelinek <jakub@redhat.com>
22 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
23 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
24 Return NULL if mmap failed instead of asserting it does not.
25 (calloc): Check for integer overflow.
27 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
30 2007-06-19 Ulrich Drepper <drepper@redhat.com>
32 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
34 (rtld_global_ro): Likewise.
36 2007-06-18 Jakub Jelinek <jakub@redhat.com>
38 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
39 Move PT_LOAD checking to...
40 (_dl_addr_inside_object): ... here, new function.
41 * elf/dl-sym.c (do_sym): If not l_contiguous,
42 call _dl_addr_inside_object.
43 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
44 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
45 * elf/dl-open.c (dl_open_worker): Likewise.
46 (_dl_addr_inside_object): New function if IS_IN_rtld.
47 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
48 holes are present or are PROT_NONE protected.
49 * include/link.h (struct link_map): Add l_contiguous field.
50 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
52 2007-06-18 Jakub Jelinek <jakub@redhat.com>
54 * elf/rtld.c (dl_main): Don't call init_tls more than once.
56 2007-06-19 Ulrich Drepper <drepper@redhat.com>
58 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
60 2007-06-13 Jakub Jelinek <jakub@redhat.com>
62 * include/link.h: Don't include rtld-lowlevel.h.
63 (struct link_map): Remove l_scope_lock.
64 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
65 (_dl_scope_free_list): New field (variable) in _rtld_global.
66 (DL_LOOKUP_SCOPE_LOCK): Remove.
67 (_dl_scope_free): New prototype.
68 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
69 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
70 (_dl_profile_fixup): Likewise.
71 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
72 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
73 THREAD_GSCOPE_RESET_FLAG around it.
74 * elf/dl-close.c (_dl_close_worker): Don't use
75 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
76 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
77 scopes were queued or if l_scope_mem has been abandoned.
78 * elf/dl-open.c (_dl_scope_free): New function.
79 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
80 * elf/dl-support.c (_dl_scope_free_list): New variable.
81 * elf/dl-lookup.c (add_dependency): Remove flags argument.
82 Remove DL_LOOKUP_SCOPE_LOCK handling.
83 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
85 * elf/dl-object.c (_dl_new_object): Don't use
86 __rtld_mrlock_initialize.
88 2007-06-09 Ulrich Drepper <drepper@redhat.com>
90 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
91 make sure gcc doesn't mess around with this.
93 2007-06-08 Ulrich Drepper <drepper@redhat.com>
95 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
97 2007-06-08 Jakub Jelinek <jakub@redhat.com>
99 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
100 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
101 at most once per _dl_close_worker.
103 2007-05-18 Ulrich Drepper <drepper@redhat.com>
105 * elf/dl-close.c (_dl_close_worker): When removing object from
106 global scope, wait for all lookups to finish afterwards.
107 * elf/dl-open.c (add_to_global): When global scope array must
108 grow, allocate a new one and free old array only after all
110 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
111 (_dl_lookup_symbol_x): Likewise.
112 * elf/dl-support.c: Define _dl_wait_lookup_done.
113 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
114 _dl_wait_lookup_done.
116 2007-05-11 Ulrich Drepper <drepper@redhat.com>
118 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
119 adding new variables.
121 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
122 optimize. Completely extend global scope array before making the
125 2007-01-15 Ulrich Drepper <drepper@redhat.com>
127 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
128 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
129 it before getting dl_load_lock and then relock.
130 (_dl_lookup_symbol_x): Pass flags to add_dependency.
131 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
132 case we unlocked the scope.
133 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
134 _dl_lookup_symbol_x in case we locked the scope.
135 (_dl_profile_fixup): Likewise.
136 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
137 set DL_LOOKUP_SCOPE_LOCK.
139 2006-10-29 Jakub Jelinek <jakub@redhat.com>
141 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
142 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
143 * elf/dl-close.c (_dl_close_worker): Likewise.
144 * elf/dl-open.c (_dl_open_worker): Likewise.
145 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
147 2006-10-27 Jakub Jelinek <jakub@redhat.com>
149 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
151 (_dl_lookup_symbol_x): Adjust caller.
153 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
155 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
157 * elf/dl-libc.c: Revert l_scope name changes.
158 * elf/dl-load.c: Likewise.
159 * elf/dl-object.c: Likewise.
160 * elf/rtld.c: Likewise.
161 * elf/dl-close.c (_dl_close): Likewise.
162 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
163 always use __rtld_mrlock_{change,done}. Always free old scope list
164 here if not l_scope_mem.
165 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
166 change. Never free scope list here. Just __rtld_mrlock_lock before
167 the lookup and __rtld_mrlock_unlock it after the lookup.
168 * elf/dl-sym.c: Likewise.
169 * include/link.h (struct r_scoperec): Remove.
170 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
171 with l_scope_mem and l_scoperec_lock with l_scope_lock.
173 2006-10-18 Ulrich Drepper <drepper@redhat.com>
175 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
176 _dl_lookup_symbol_x code.
178 2006-10-17 Jakub Jelinek <jakub@redhat.com>
180 * elf/dl-runtime.c: Include sysdep-cancel.h.
181 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
182 scoperec->nusers only if !SINGLE_THREAD_P.
183 * elf/dl-sym.c: Include sysdep-cancel.h.
184 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
186 * elf/dl-close.c: Include sysdep-cancel.h.
187 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
189 * elf/dl-open.c: Include sysdep-cancel.h.
190 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
193 2006-10-09 Ulrich Drepper <drepper@redhat.com>
194 Jakub Jelinek <jakub@redhat.com>
196 Implement reference counting of scope records.
197 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
198 from the list in objects which remain. Always allocate new scope
200 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
201 don't resize, allocate a new one.
202 * elf/dl-runtime.c: Update reference counters before using a scope
204 * elf/dl-sym.c: Likewise.
205 * elf/dl-libc.c: Adjust for l_scope name change.
206 * elf/dl-load.c: Likewise.
207 * elf/dl-object.c: Likewise.
208 * elf/rtld.c: Likewise.
209 * include/link.h: Include <rtld-lowlevel.h>. Define struct
210 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
212 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
213 * sysdeps/generic/rtld-lowlevel.h: New file.
215 2007-06-06 Jakub Jelinek <jakub@redhat.com>
218 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
219 pseudo-zeros as zero.
220 * sysdeps/x86_64/ldbl2mpn.c: New file.
221 * sysdeps/ia64/ldbl2mpn.c: New file.
223 2007-06-05 Jakub Jelinek <jakub@redhat.com>
225 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
226 (__mpn_construct_long_double): Fix conversion where result ought
227 to be smaller than __LDBL_MIN__, or the low double should be
228 denormal. Fix decision where to negate low double - honor round
230 * stdio-common/tst-sprintf2.c: Include string.h.
231 (COMPARE_LDBL): Define.
232 (TEST): Also test whether a string hexadecimal float representation
233 can be parsed back to the number.
234 (main): Add a couple of further tests.
236 2007-06-04 Jakub Jelinek <jakub@redhat.com>
238 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
239 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
240 is non-zero, but smaller than 2 * __DBL_MIN__.
241 * stdio-common/tst-sprintf2.c: New test.
242 * stdio-common/Makefile (tests): Add tst-sprintf2.
244 2007-06-04 Jakub Jelinek <jakub@redhat.com>
246 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
247 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
248 Remove unreachable code at the end.
250 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
252 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
253 ldbl-128ibm in comment.
254 (fpclassifyl): Correct classification of denormals.
255 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
256 return value for MIN denormal. Rewrite using long double math too
257 correctly handle denormals and canonicalize the results.
259 2007-05-29 Ulrich Drepper <drepper@redhat.com>
261 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
262 of crashing. When this is the case or if the reply is malformed,
263 don't try to close the new file descriptor since it does not
265 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
267 2007-05-21 Jakub Jelinek <jakub@redhat.com>
270 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
271 reinitialize workend at the start of each do_positional format spec
272 loop, free workstart before do_positional loops.
273 (printf_unknown): Fix size of work_buffer.
274 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
276 2007-05-10 Ulrich Drepper <drepper@redhat.com>
278 * include/sys/cdefs.h: Redefine __nonnull so that test for
279 incorrect parameters in the libc code itself are not omitted.
281 2007-05-07 Ulrich Drepper <drepper@redhat.com>
282 Jakub Jelinek <jakub@redhat.com>
284 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
285 (new_heap): Initialize mprotect_size.
286 (grow_heap): When growing, only mprotect from mprotect_size till
287 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
288 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
290 2007-05-06 Ulrich Drepper <drepper@redhat.com>
292 * stdio-common/vfprintf.c (process_string_arg): Optimize
293 ridiculous precision in wide char code printing multi-byte string.
294 Reported by Jim Meyering <jim@meyering.net>.
296 2007-05-06 Ulrich Drepper <drepper@redhat.com>
299 * posix/unistd.h: Remove __THROW from fdatasync.
301 2007-05-06 Mike Frysinger <vapier@gentoo.org>
304 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
306 2007-05-06 Ulrich Drepper <drepper@redhat.com>
309 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
310 boundaries to work around systems with overlapping binary loading.
311 Based on a patch by Suzuki <suzuki@in.ibm.com>.
313 2007-05-04 Ulrich Drepper <drepper@redhat.com>
315 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
316 __mbsnrtowcs after last change.
318 2007-05-02 Jakub Jelinek <jakub@redhat.com>
320 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
321 fixed length array for ignore.
323 2007-04-30 Ulrich Drepper <drepper@redhat.com>
326 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
327 stack for large precisions.
328 * stdio-common/test-vfprintf.c (main): Add test for large
331 2007-04-30 Jakub Jelinek <jakub@redhat.com>
333 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
335 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
337 2007-04-30 Jakub Jelinek <jakub@redhat.com>
340 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
341 account in the size check.
342 * resolv/tst-inet_ntop.c: New test.
343 * resolv/Makefile (tests): Add tst-inet_ntop.
345 2007-04-28 Ulrich Drepper <drepper@redhat.com>
348 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
349 label to Teredo tunnel addresses 2001://32.
351 2007-04-27 Ulrich Drepper <drepper@redhat.com>
354 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
355 hexa-decimal floats without exponent.
356 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
358 2007-04-27 Ulrich Drepper <drepper@redhat.com>
361 * locale/C-translit.h.in: Add entry for U2044.
363 2007-04-25 Jakub Jelinek <jakub@redhat.com>
365 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
366 of 0 after the out_fail label.
368 2007-03-18 Jakub Jelinek <jakub@redhat.com>
370 * nscd/gai.c: Include alloca.h.
371 (__libc_use_alloca): Define.
373 2007-03-15 Jakub Jelinek <jakub@redhat.com>
375 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
376 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
377 NLMSG_ERR. Instead use a page sized buffer.
378 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
381 2007-03-02 Jakub Jelinek <jakub@redhat.com>
383 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
384 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
387 2007-02-27 Jakub Jelinek <jakub@redhat.com>
389 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
392 2007-04-25 Jakub Jelinek <jakub@redhat.com>
394 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
397 2007-04-25 Ulrich Drepper <drepper@redhat.com>
400 * iconv/gconv_charset.h (strip): Allow ':'
401 * iconv/iconv_open.c (iconv_open): Adjust comment.
403 2007-04-23 Jakub Jelinek <jakub@redhat.com>
406 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
407 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
409 2007-04-23 Jakub Jelinek <jakub@redhat.com>
412 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
413 alignment of buffer and tmp_buffer.
414 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
415 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
417 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
419 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
420 h_errnop arguments. Fail if buflen is too small.
421 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
423 2007-04-19 Ulrich Drepper <drepper@redhat.com>
425 * include/sys/mman.h: Mark madvise hidden.
426 * misc/madvise.c: Add libc_hidden_def.
428 2007-04-17 Ulrich Drepper <drepper@redhat.com>
431 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
433 2007-04-16 Ulrich Drepper <drepper@redhat.com>
436 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
438 2007-04-13 Jakub Jelinek <jakub@redhat.com>
441 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
442 Reported by David Anderson <davea42@earthlink.net>.
444 2007-04-13 Jakub Jelinek <jakub@redhat.com>
446 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
447 special case handling when wcp == wstartp + 1. Fix a comment typo.
448 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
450 2007-02-21 Ulrich Drepper <drepper@redhat.com>
453 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
455 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
457 2007-02-19 Ulrich Drepper <drepper@redhat.com>
459 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
462 2007-04-06 Jakub Jelinek <jakub@redhat.com>
464 * nis/nis_domain_of.c (__nis_domain_of): New function.
465 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
466 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
467 * nis/nis_call.c (rec_dirsearch): Likewise.
468 (first_shoot): Likewise. Remove search_parent_first argument.
469 (struct nis_server_cache): Rename search_parent_first field
471 (nis_server_cache_search, nis_server_cache_add): Rename
472 search_parent_first argument to search_parent.
473 (__nisfind_server): Likewise. If search_parent, call
476 2007-04-05 Jakub Jelinek <jakub@redhat.com>
478 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
479 with obj->do_servers after first_shoot.
481 2007-03-21 Jakub Jelinek <jakub@redhat.com>
483 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
484 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
486 (nis_server_cache_search, nis_server_cache_add): New functions.
487 (__nisfind_server): Use them. Add dbp and flags argument, if
488 call __nisbind_create.
489 (__nisbind_create): Add server_used and current_ep arguments,
490 only call __nis_findfastest if server_used is ~0.
491 (__do_niscall2, __prepare_niscall): Adjust callers.
492 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
493 ckey_cache_euid, ckey_cache_lock): New variables.
494 (get_ckey): New function.
495 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
496 __pmap_getnisport. Save __pmap_getnisport result in
497 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
499 * nis/nis_lookup.c (nis_lookup): Likewise.
500 * nis/nis_table.c (nis_list): Likewise.
501 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
504 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
505 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
506 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
507 _nss_nisplus_getservbyport_r): Likewise.
508 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
509 _nss_nisplus_getnetbyaddr_r): Likewise.
510 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
511 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
512 _nss_nisplus_getntohost_r): Likewise.
513 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
514 _nss_nisplus_getrpcbynumber_r): Likewise.
516 2007-04-01 Jakub Jelinek <jakub@redhat.com>
518 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
521 2007-04-01 Jakub Jelinek <jakub@redhat.com>
523 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
524 math_opt_barrier and math_force_eval macros.
526 2007-03-27 Jakub Jelinek <jakub@redhat.com>
529 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
530 * sysdeps/i386/fpu/math_private.h: New file.
531 * sysdeps/x86_64/fpu/math_private.h: New file.
532 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
533 math_force_eval macros. Use "+m" constraint on asm rather than
535 * math/s_nextafter.c (__nextafter): Likewise.
536 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
538 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
539 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
540 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
541 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
542 math_opt_barrier and math_force_eval macros.
543 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
544 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
545 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
546 (__nexttoward): Use math_opt_barrier and
547 math_force_eval macros. Use "+m" constraint on asm rather than
548 "=m" and "m". Only use asm to force double result if
549 FLT_EVAL_METHOD is 2.
550 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
551 (__nexttowardf): Use math_opt_barrier and
552 math_force_eval macros. Use "+m" constraint on asm rather than
553 "=m" and "m". Only use asm to force double result if
554 FLT_EVAL_METHOD is not 0.
555 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
556 (__nexttowardf): Use math_opt_barrier and
557 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
558 x to float using asm.
559 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
560 (__nldbl_nexttowardf): Use math_opt_barrier and
561 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
562 x to float using asm.
563 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
564 (__nexttowardf): Use math_opt_barrier and math_force_eval
565 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
566 * math/bug-nextafter.c (zero, inf): New variables.
567 (main): Add new tests.
568 * math/bug-nexttoward.c (zero, inf): New variables.
569 (main): Add new tests.
571 2007-03-30 Jakub Jelinek <jakub@redhat.com>
573 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
574 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
575 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
577 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
578 _IO_file_xsgetn_maybe_mmap): Likewise.
579 * libio/oldfileops.c (old_do_write): Likewise.
580 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
581 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
582 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
583 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
584 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
585 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
586 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
587 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
588 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
589 _IO_file_underflow, _IO_file_underflow_mmap,
590 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
591 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
592 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
593 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
594 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
595 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
596 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
597 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
598 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
599 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
600 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
601 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
602 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
603 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
604 _IO_adjust_column_internal, _IO_default_uflow_internal,
605 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
606 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
607 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
608 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
609 _IO_file_close_it_internal, _IO_file_underflow_internal,
610 _IO_file_overflow_internal, _IO_file_attach_internal,
611 _IO_file_fopen_internal, _IO_file_sync_internal,
612 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
613 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
614 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
615 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
616 _IO_seekpos_unlocked): Likewise.
617 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
618 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
620 2007-03-23 Jakub Jelinek <jakub@redhat.com>
622 * scripts/check-local-headers.sh: Filter out sys/capability.h.
624 2007-03-22 Jakub Jelinek <jakub@redhat.com>
626 * config.h.in (HAVE_LIBCAP): Add.
627 * nscd/selinux.h: Include sys/capability.h rather than non-existent
629 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
630 free_caps. Cast away const from 4th cap_set_flag argument.
632 2007-03-16 Jakub Jelinek <jakub@redhat.com>
634 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
636 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
637 (DL_DST_REQUIRED): Adjust user.
639 2007-03-15 Jakub Jelinek <jakub@redhat.com>
641 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
644 2007-03-15 Jakub Jelinek <jakub@redhat.com>
647 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
648 (inet6_opt_append): Don't check extlen is big enough if extbuf
650 (inet6_opt_finish): Likewise.
651 * inet/Makefile (tests): Add test-inet6_opt.
652 * inet/test-inet6_opt.c: New test.
654 2007-03-15 Jakub Jelinek <jakub@redhat.com>
657 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
659 (updwtmp_file): Likewise.
661 2007-03-15 Jakub Jelinek <jakub@redhat.com>
664 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
665 ancestors with the same depths.
666 Patch by Niels Moeller <nisse@lysator.liu.se>.
667 (filter_doc): Don't crash if argp is NULL.
668 * argp/Makefile (tests): Add tst-argp2.
669 * argp/tst-argp2.c: New test.
671 2007-03-15 Jakub Jelinek <jakub@redhat.com>
674 * math/libm-test.inc (log_test): Test -Inf and NaN.
675 (log10_test, log1p_test, log2_test): Test -Inf.
676 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
677 FE_INVALID when argument is qNaN.
678 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
679 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
680 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
681 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
682 andb $1, %ah with testb $1, %ah, don't test for parity, instead
683 testb $4, %ah and jump if non-zero.
684 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
685 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
687 2007-03-06 Ulrich Drepper <drepper@redhat.com>
689 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
690 172.16/12 address range.
692 2007-03-01 Jakub Jelinek <jakub@redhat.com>
695 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
697 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
699 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
700 for x qNaN and y either +-inf or non-integer value.
701 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
702 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
703 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
705 2007-02-21 Ulrich Drepper <drepper@redhat.com>
708 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
709 (open_dir_stream): Likewise.
710 * io/Makefile (tests): Add bug-ftw5.
711 * io/bug-ftw5.c: New file.
713 2007-02-21 Ulrich Drepper <drepper@redhat.com>
715 * nscd/grpcache.c (cache_addgr): In case a record changed on
716 refresh, adjust key_copy.
719 * nscd/pwdcache.c (cache_addpw): In case a record changed on
720 refresh, adjust key_copy.
722 2007-02-21 Ulrich Drepper <drepper@redhat.com>
725 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
726 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
728 2007-02-17 Ulrich Drepper <drepper@redhat.com>
731 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
732 using __libc_enable_secure.
734 2007-02-17 Ulrich Drepper <drepper@redhat.com>
737 * malloc/memusage.sh: Cleanups.
738 * debug/xtrace.sh: Quoting and trap changes.
740 2007-02-16 Ulrich Drepper <drepper@redhat.com>
742 * locale/iso-3166.def: Add entry for Serbia.
743 * locale/iso-4217.def: Define RSD.
745 2007-02-15 Ulrich Drepper <drepper@redhat.com>
747 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
750 2007-02-13 Ulrich Drepper <drepper@redhat.com>
752 * po/ru.po: Update from translation team.
754 2007-02-03 Ulrich Drepper <drepper@redhat.com>
756 * po/sv.po: Update from translation team.
758 2007-02-12 Jakub Jelinek <jakub@redhat.com>
760 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
761 to the list of i486+ CPUs.
762 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
764 2007-01-24 Jakub Jelinek <jakub@redhat.com>
766 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
767 and __geode__ to the list of i486+ CPUs.
768 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
770 2007-02-08 Jakub Jelinek <jakub@redhat.com>
773 * time/strptime_l.c (__strptime_internal): Set have_mon for
774 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
775 have been computed from tm_yday and tm_year. Don't crash
776 in day_of_the_week or day_of_the_year if not have_mon
777 and tm_mon contains bogus value.
778 * time/Makefile (tests): Add tst-strptime3.
779 * time/tst-strptime3.c: New test.
781 2007-02-05 Jakub Jelinek <jakub@redhat.com>
784 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
785 bit for RE_HAT_LISTS_NOT_NEWLINE.
786 (build_charclass_op): Remove bogus comment.
787 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
788 * posix/bug-regex27.c: New test.
789 * posix/bug-regex28.c: New test.
791 2007-02-02 Bruno Haible <bruno@clisp.org>
794 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
795 Add mapping for U+327E.
796 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
797 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
798 mapping of 0xD9 0xE8.
799 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
801 Reported by Jungshik Shin <jungshik@google.com>.
804 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
805 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
806 Reported by Jungshik Shin <jungshik@google.com>.
808 2007-01-31 Jakub Jelinek <jakub@redhat.com>
810 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
812 * nscd/nscd_helper.c: Include string.h.
813 (__nscd_cache_search): Remove const qualifier from return value.
814 On strict alignment architectures check hash entry and data head
816 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
817 mmapped data during GC cycle contains garbage. If
818 __nscd_drop_map_ref fails, decrement mapped->counter when returning
819 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
821 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
822 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
823 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
824 * nscd/nscd_getai.c (__nscd_getai): Likewise.
826 2007-01-22 Ulrich Drepper <drepper@redhat.com>
829 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
830 * stdio-common/Makefile (tests): Add bug17.
831 * stdio-common/bug17.c: New file.
833 2007-01-15 Jakub Jelinek <jakub@redhat.com>
835 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
836 workbits in semi-raw fraction.
838 * math/test-misc.c: Add new tests.
840 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
842 * math/basic-test.c: Include test-skeleton.c.
843 (TEST_TRUNC): Define.
844 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
845 (main): Rename to ...
846 (do_test): ...this. Run new tests.
847 (TEST_FUNCTION): Define.
849 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
850 Joe Kerian <jkerian@us.us.ibm.com>
853 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
854 handling for high words.
855 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
856 and overflow for infinity.
858 2007-01-13 Ulrich Drepper <drepper@redhat.com>
860 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
861 computation of keylen.
863 2007-01-10 Ulrich Drepper <drepper@redhat.com>
865 * io/fts.c: Make sure fts_cur is always valid after return from
867 Patch by Miloslav Trmac <mitr@redhat.com>.
869 2007-01-03 Jakub Jelinek <jakub@redhat.com>
871 * posix/execvp.c: Include alloca.h.
872 (allocate_scripts_argv): Renamed to...
873 (scripts_argv): ... this. Don't allocate buffer here nor count
875 (execvp): Use alloca if possible.
876 * posix/Makefile: Add rules to build and run tst-vfork3 test.
877 * posix/tst-vfork3.c: New test.
879 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
881 * stdlib/tst-makecontext.c: Include errno.h. Change main()
882 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
883 (do_test): Check errno and exit(0) if ENOSYS.
885 2007-01-11 Jakub Jelinek <jakub@redhat.com>
887 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
888 thousands separators.
889 * stdlib/Makefile: Add rules to build and run tst-strtod4.
890 * stdlib/tst-strtod4.c: New test.
893 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
894 hexadecimal digit should accept just the initial 0.
895 * stdlib/tst-strtod2.c (tests): New variable.
896 (do_test): Run several tests rather than just one.
898 2007-01-03 Ulrich Drepper <drepper@redhat.com>
900 * stdlib/Makefile (tst-strtod3-ENV): Define.
902 2006-12-11 Ulrich Drepper <drepper@redhat.com>
904 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
905 separators also if no non-zero digits found.
906 * stdlib/Makefile (tests): Add tst-strtod3.
908 2006-12-09 Ulrich Drepper <drepper@redhat.com>
911 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
912 empty parsed strings.
913 * stdlib/Makefile (tests): Add tst-strtod2.
914 * stdlib/tst-strtod2.c: New file.
917 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
919 * stdlib/Makefile (tests): Add tst-atof2.
920 * stdlib/tst-atof2.c: New file.
923 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
924 correctly if removing trailing zero of hex-float.
925 * stdlib/Makefile (tests): Add tst-atof1.
926 * stdlib/tst-atof1.c: New file.
928 2007-01-03 Ulrich Drepper <drepper@redhat.com>
930 * string/Makefile (tst-strxfrm2-ENV): Define.
932 2006-11-10 Jakub Jelinek <jakub@redhat.com>
934 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
935 if N is one bigger than return value.
936 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
937 and l1 last arguments, if buf is defined, verify the return value
938 equals to strlen (buf) and verify no byte beyond passed length
941 2006-11-09 Ulrich Drepper <drepper@redhat.com>
943 * string/Makefile (tests): Add tst-strxfrm2.
944 * string/tst-strxfrm2.c: New file.
946 2006-11-08 Jakub Jelinek <jakub@redhat.com>
948 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
949 optimization even if needed > n.
951 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
953 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
954 blacklist the group till after we look it up.
956 2006-12-21 Ulrich Drepper <drepper@redhat.com>
958 * include/atomic.h (atomic_forced_read): New macro.
960 2006-12-19 Jakub Jelinek <jakub@redhat.com>
962 * stdlib/Makefile (tests): Add tst-makecontext.
963 * stdlib/tst-makecontext.c: New test.
965 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
966 (__makecontext): Don't realign uc_mcontext.uc_regs.
968 2006-12-13 Jakub Jelinek <jakub@redhat.com>
970 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
973 2006-12-19 Jakub Jelinek <jakub@redhat.com>
975 * nss/getXXbyYY_r.c: Include atomic.h.
976 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
977 add atomic_write_barrier () in between.
979 2006-12-18 Jakub Jelinek <jakub@redhat.com>
982 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
984 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
986 * stdlib/tst-rand48-2.c: New test.
987 * stdlib/Makefile (tests): Add tst-rand48-2.
989 2006-12-14 Jakub Jelinek <jakub@redhat.com>
991 * misc/tst-pselect.c (do_test): Fix sigblock argument.
993 2006-12-14 Ulrich Drepper <drepper@redhat.com>
995 * misc/tst-pselect.c (do_test): Make sure the helper process is
996 terminating when the test is aborted.
998 2006-12-13 Ulrich Drepper <drepper@redhat.com>
1001 * libio/Makefile (tests): Add tst-setvbuf1.
1002 * libio/tst-setvbuf1.c: New file.
1004 2006-12-08 Jakub Jelinek <jakub@redhat.com>
1007 * libio/genops.c (__uflow): Fix a typo.
1008 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
1009 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
1010 the narrow buffer size.
1012 2006-11-24 Jakub Jelinek <jakub@redhat.com>
1015 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
1016 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
1017 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
1019 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
1020 _IO_wstr_finish): Likewise.
1021 * libio/wmemstream.c (open_wmemstream): Likewise.
1022 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
1023 even for wide streams.
1025 2006-12-09 Jakub Jelinek <jakub@redhat.com>
1027 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
1028 Start searching for next comma at p rather than rest.
1029 * misc/Makefile (tests): Add tst-mntent2.
1030 * misc/tst-mntent2.c: New test.
1032 2006-12-09 Ulrich Drepper <drepper@redhat.com>
1035 * include/features.h: Fix comment about default value for
1038 2006-12-09 Jakub Jelinek <jakub@redhat.com>
1040 * misc/getusershell.c (initshells): Check for integer overflows.
1041 Make strings buffer one bigger as fgets always succeeds when second
1042 argument is 1. Don't use calloc for shells array. Disallow
1045 2006-12-05 Jakub Jelinek <jakub@redhat.com>
1047 * nis/nis_subr.c (nis_getnames): Revert last change.
1049 2006-10-11 Jakub Jelinek <jakub@redhat.com>
1051 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
1053 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
1054 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
1056 2006-12-04 Jakub Jelinek <jakub@redhat.com>
1058 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
1059 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
1060 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
1061 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
1063 * io/Makefile: Add rules to build and run tst-ttyname_r test.
1064 * io/tst-ttyname_r.c: New test.
1066 2006-11-28 Jakub Jelinek <jakub@redhat.com>
1068 * elf/dl-support.c: Include dl-procinfo.h.
1069 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
1070 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
1071 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
1073 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
1074 hardcoded constants.
1075 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
1076 PPC_PLATFORM_* macros for array designators.
1078 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
1080 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
1081 names to the beginning.
1082 (_dl_powerpc_platforms): Add "power6x".
1083 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
1084 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
1085 (_DL_PLATFORMS_COUNT): Increase.
1086 (_dl_string_platform): Handle power6x case.
1087 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
1088 PPC_FEATURE_POWER6_EXT): Define.
1089 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
1091 2006-11-27 Jakub Jelinek <jakub@redhat.com>
1094 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
1097 2006-11-14 Jakub Jelinek <jakub@redhat.com>
1099 * nss/nss_files/files-alias.c (get_next_alias): Set line back
1100 to first_unused after parsing :include: file.
1102 2006-11-14 Ulrich Drepper <drepper@redhat.com>
1104 * po/nl.po: Update from translation team.
1106 2006-11-10 Ulrich Drepper <drepper@redhat.com>
1108 * po/sv.po: Update from translation team.
1110 2006-11-01 Ulrich Drepper <drepper@redhat.com>
1112 * po/sv.po: Update from translation team.
1114 2006-10-29 Ulrich Drepper <drepper@redhat.com>
1116 * po/sv.po: Update from translation team.
1118 2006-10-09 Ulrich Drepper <drepper@redhat.com>
1120 * po/sv.po: Update from translation team.
1122 2006-10-07 Ulrich Drepper <drepper@redhat.com>
1124 * po/tr.po: Update from translation team.
1126 2006-10-06 Ulrich Drepper <drepper@redhat.com>
1128 * po/pl.po: Update from translation team.
1130 2006-11-10 Ulrich Drepper <drepper@redhat.com>
1133 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
1137 2006-11-09 Ulrich Drepper <drepper@redhat.com>
1139 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
1142 2006-11-10 Jakub Jelinek <jakub@redhat.com>
1144 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
1147 2006-11-05 Ulrich Drepper <drepper@redhat.com>
1149 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
1150 Update handling of cache descriptor 0x49 for new models.
1151 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
1154 2006-11-08 Jakub Jelinek <jakub@redhat.com>
1156 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
1157 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
1158 return false, otherwise return true.
1159 (cache_rpath): Return decompose_rpath return value.
1161 2006-11-02 Jakub Jelinek <jakub@redhat.com>
1163 * malloc/memusage.c (dest): Reset not_me back to false after
1164 printing statistics.
1166 2006-10-27 Ulrich Drepper <drepper@redhat.com>
1168 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
1169 split out locking and parameter checking.
1170 (_dl_close): Call _dl_close_worker after locking and checking.
1171 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
1173 * elf/Makefile: Add rules to build and run tst-thrlock.
1174 * elf/tst-thrlock.c: New file.
1177 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
1178 we are sure we do not need it anymore for _dl_close. Also move
1179 the asserts inside the lock region.
1180 Patch mostly by Suzuki <suzuki@in.ibm.com>.
1182 2006-10-17 Jakub Jelinek <jakub@redhat.com>
1184 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
1185 as signed longs, check for x_base + pos overflow.
1186 * sunrpc/Makefile (tests): Add tst-xdrmem2.
1187 * sunrpc/tst-xdrmem2.c: New test.
1189 2006-10-16 Ulrich Drepper <drepper@redhat.com>
1192 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
1195 2006-10-13 Ulrich Drepper <drepper@redhat.com>
1197 * elf/dl-minimal.c (realloc): Optimize last patch.
1199 2006-10-12 Richard Sandiford <richard@codesourcery.com>
1202 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
1203 and use memcpy() if it does.
1205 2006-10-11 Ulrich Drepper <drepper@redhat.com>
1207 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
1209 2006-10-10 Ulrich Drepper <drepper@redhat.com>
1211 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
1212 components which lack them.
1214 * nis/nis_subr.c (nis_getnames): Make sure that we always return
1215 at least one entry consisting of the parameter concatenated with
1218 2006-10-09 Jakub Jelinek <jakub@redhat.com>
1220 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
1221 rather than r->r_brk.
1223 2006-10-06 Ulrich Drepper <drepper@redhat.com>
1225 * nis/nis_table.c (nis_list): If __follow_path fails in the new
1226 code, make sure the nis_freeresult call doesn't crash and that the
1227 result is reported correctly.
1229 2006-09-27 Jakub Jelinek <jakub@redhat.com>
1231 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
1232 when callback is NULL.
1234 * nis/Versions (libnss_nisplus): Add
1235 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
1236 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
1237 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
1238 _nss_create_tablename): Rename to...
1239 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
1240 ... these. No longer static.
1241 (internal_setgrent): Adjust users.
1242 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
1243 Don't use locking around _nss_grp_create_tablename call.
1244 * nis/nss_nisplus/nisplus-initgroups.c: New file.
1246 2006-10-06 Andreas Jaeger <aj@suse.de>
1248 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
1250 2006-10-06 Ulrich Drepper <drepper@redhat.com>
1252 * po/pl.po: Update from translation team.
1254 * nscd/nscd.c (main): Fix typo in message.
1255 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
1257 2006-10-02 Jakub Jelinek <jakub@redhat.com>
1260 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
1261 errno.h, signal.h, unistd.h and sysdep-cancel.h.
1262 (__sigprocmask): Define.
1264 2006-10-02 Ulrich Drepper <drepper@redhat.com>
1266 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
1269 2006-10-02 Jakub Jelinek <jakub@redhat.com>
1271 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
1272 in oldtotal and newtotal calculation.
1273 * nscd/nscd-client.h (struct mapped_database): Add datasize
1275 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
1276 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
1278 (__nscd_cache_search): Add checks to make sure we never reference
1279 data beyond the current mapping.
1281 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
1283 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
1284 variables const to avoid compiler warnings.
1286 * io/fts.c (fts_close): Remove redundant checks.
1287 (fts_build): Likewise.
1288 (fts_palloc): Likewise.
1290 * manual/message.texi (Advanced gettext functions,
1291 Using gettextized software): Fix typos.
1293 2006-09-30 Ulrich Drepper <drepper@redhat.com>
1295 * posix/glob.c (glob_in_dir): Add some comments and asserts to
1296 explain why there are no leaks.
1298 2006-09-29 Ulrich Drepper <drepper@redhat.com>
1300 * libio/wmemstream.c: Include <wchar.h>.
1301 * libio/bug-wmemstream1.c: Likewise.
1302 * libio/tst-wmemstream1.c: Likewise.
1303 * libio/tst-wmemstream2.c: Likewise.
1305 * version.h (RELEASE): Bump to 2.5.
1306 * README: Regenerated.
1308 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
1311 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
1312 found no group members.
1313 Patch by Petr Baudis.
1315 2006-09-29 Jakub Jelinek <jakub@redhat.com>
1317 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
1318 assert bootstrap_map.l_tls_modid is zero.
1319 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
1322 2006-09-27 Ulrich Drepper <drepper@redhat.com>
1324 * libio/stdio.h: Move open_wmemstream prototype to ...
1325 * wcsmbs/wchar.h: ... here.
1327 2006-09-25 Jakub Jelinek <jakub@redhat.com>
1330 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
1331 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
1332 __{,l}chown to handle the rest.
1333 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
1334 fchownat syscall and __ASSUME_32BITUIDS case inline, call
1335 __{,l}chown to handle the rest.
1336 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
1338 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
1339 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
1342 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
1343 time, rather allocate increasingly bigger arrays of pointers, if
1344 possible with alloca, if too large with malloc.
1346 2006-09-24 Jakub Jelinek <jakub@redhat.com>
1348 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
1350 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
1352 2006-09-24 Ulrich Drepper <drepper@redhat.com>
1354 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
1356 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
1357 IFA_F_HOMEADDRESS flag for interfaces.
1358 * include/ifaddrs.h (struct in6addrinfo): Define
1361 2006-09-21 Jakub Jelinek <jakub@redhat.com>
1364 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
1365 PTR_DEMANGLE3): Define.
1366 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
1367 PTR_DEMANGLE3): Likewise.
1368 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
1369 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1371 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
1373 2006-09-20 Jakub Jelinek <jakub@redhat.com>
1375 * po/libc.pot: Regenerated.
1376 * po/be.po: Updated.
1377 * po/ca.po: Likewise.
1378 * po/cs.po: Likewise.
1379 * po/da.po: Likewise.
1380 * po/de.po: Likewise.
1381 * po/el.po: Likewise.
1382 * po/en_GB.po: Likewise.
1383 * po/es.po: Likewise.
1384 * po/fi.po: Likewise.
1385 * po/fr.po: Likewise.
1386 * po/gl.po: Likewise.
1387 * po/hr.po: Likewise.
1388 * po/hu.po: Likewise.
1389 * po/ja.po: Likewise.
1390 * po/ko.po: Likewise.
1391 * po/nb.po: Likewise.
1392 * po/nl.po: Likewise.
1393 * po/pl.po: Likewise.
1394 * po/pt_BR.po: Likewise.
1395 * po/ru.po: Likewise.
1396 * po/rw.po: Likewise.
1397 * po/sk.po: Likewise.
1398 * po/sv.po: Likewise.
1399 * po/tr.po: Likewise.
1400 * po/zh_CN.po: Likewise.
1401 * po/zh_TW.po: Likewise.
1404 * iconv/iconv_prog.c (main): Fix spelling in error message.
1405 * iconv/iconvconfig.c (main): Likewise.
1406 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
1407 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
1408 * locale/programs/localedef.c (main): Likewise.
1409 * locale/programs/repertoire.c (repertoire_read): Likewise.
1410 * timezone/zdump.c (main): Likewise.
1411 * nscd/connections.c (handle_request): Fix spelling in log message.
1412 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
1414 2006-09-20 Ulrich Drepper <drepper@redhat.com>
1416 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
1419 2006-09-20 Andreas Jaeger <aj@suse.de>
1421 * math/libm-test.inc (lrint_test_upward): Fix typo.
1423 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
1426 * math/libm-test.inc (lrint_test_tonearest): New function.
1427 (lrint_test_towardzero): New function.
1428 (lrint_test_downward): New function.
1429 (lrint_test_upward): New function.
1430 (main): Run these new tests.
1431 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
1432 of values near to 0.
1433 (two52): Use double not long double.
1434 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
1435 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
1436 (two23): Use float not double.
1437 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
1438 (two23): Use float not double.
1439 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
1440 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
1441 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
1442 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
1444 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1446 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
1447 Cast sp to unsigned long to avoid compiler warning.
1448 Use __makecontext_ret function instead of a trampoline on the stack.
1449 (__makecontext_ret): New function.
1450 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
1452 2006-09-19 Jakub Jelinek <jakub@redhat.com>
1454 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
1455 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
1458 2006-09-19 Ulrich Drepper <drepper@redhat.com>
1460 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
1461 sure no reference to the unloaded map's search list remains in the
1464 2006-09-16 Jakub Jelinek <jakub@redhat.com>
1466 * elf/Makefile: Add rules to build and run unload7 test.
1467 * elf/unload7.c: New test.
1468 * elf/unload7mod1.c: New file.
1469 * elf/unload7mod2.c: New file.
1471 2006-09-18 Jakub Jelinek <jakub@redhat.com>
1473 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
1474 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
1475 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1476 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
1477 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1478 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
1479 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1480 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
1481 PTRACE_GETEVENTMSG): Likewise.
1482 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
1485 2006-09-17 Mike Frysinger <vapier@gentoo.org>
1487 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
1488 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1489 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
1490 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
1492 2006-09-16 Jakub Jelinek <jakub@redhat.com>
1494 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
1495 write '\0' to the fd.
1496 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
1497 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
1498 Change regs to unsigned long pointer from unsigned int, fix fscr
1501 2006-09-14 Jakub Jelinek <jakub@redhat.com>
1503 * io/Makefile (CFLAGS-fstatat.c): Set.
1504 (CFLAGS-fstatat64.c): Likewise.
1505 (CFLAGS-mknodat.c): Likewise.
1507 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
1508 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
1509 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
1510 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
1512 2006-09-14 Jakub Jelinek <jakub@redhat.com>
1513 Steven Munroe <sjmunroe@us.ibm.com>
1515 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
1516 names to the beginning. Rename "cell" to "cellbe".
1517 (_dl_powerpc_platforms): New.
1518 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
1519 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
1520 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
1521 (_DL_HWCAP_PLATFORM): Define to new mask.
1522 (_dl_platform_string, _dl_string_platform): New functions.
1523 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
1524 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
1526 2006-09-12 Jakub Jelinek <jakub@redhat.com>
1529 * README.libm: Fix a thinko in sqrt algorithm description.
1532 * manual/string.texi (argz_delete): Fix prototype.
1533 Patch by <alpt@freaknet.org>.
1535 2006-08-26 Joseph Myers <joseph@codesourcery.com>
1538 * io/test-lfs.c (do_prepare): Give name_len type size_t.
1539 * io/tst-fcntl.c (do_prepare): Likewise.
1540 * posix/tst-exec.c (do_prepare): Likewise.
1541 * posix/tst-preadwrite.c (do_prepare): Likewise.
1542 * posix/tst-spawn.c (do_prepare): Likewise.
1543 * posix/tst-truncate.c (do_prepare): Likewise.
1544 * rt/tst-aio.c (do_prepare): Likewise.
1545 * rt/tst-aio64.c (do_prepare): Likewise.
1546 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
1549 2006-09-09 Ulrich Drepper <drepper@redhat.com>
1552 * time/mktime.c (guess_time_tm): Fix overflow detection.
1553 * time/Makefile (tests): Add bug-mktime1.
1554 * time/bug-mktime1.c: New file.
1557 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
1560 2006-09-07 Jakub Jelinek <jakub@redhat.com>
1563 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
1564 Ensure relocation doesn't clobber any bits outside of the
1565 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
1566 R_SPARC_HI22 and R_SPARC_H44.
1569 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
1570 (long) (MINSIZE + nb - old_size) is positive.
1572 * malloc/arena.c (grow_heap): When growing bail even if new_size
1576 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
1579 2006-09-06 Jakub Jelinek <jakub@redhat.com>
1581 * posix/regex_internal.c (re_string_reconstruct): Handle
1582 offset < pstr->valid_raw_len && pstr->offsets_needed case.
1583 Ensure no bytes read before raw_mbs array. Pass a saved copy of
1584 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
1585 re_string_context_at.
1586 * posix/Makefile: Add rules to build and run bug-regex26 test.
1587 * posix/bug-regex26.c: New test.
1589 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
1590 rather than col_sym_free. Move seqp declaration earlier.
1592 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
1594 2006-09-05 Jakub Jelinek <jakub@redhat.com>
1596 * nscd/initgrcache.c (addinitgroupsX): Move any_success
1597 decl before first goto out.
1599 2006-09-04 Jakub Jelinek <jakub@redhat.com>
1601 * Makerules (shlib.lds): If have-hash-style, put .hash section
1602 at the end of the RO segment.
1604 2006-09-04 Ulrich Drepper <drepper@redhat.com>
1606 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
1607 style hash table format is used.
1609 2006-09-04 Jakub Jelinek <jakub@redhat.com>
1611 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
1612 randomization rather than before.
1613 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
1615 2006-08-31 Jakub Jelinek <jakub@redhat.com>
1617 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
1619 * malloc/malloc.c (_int_malloc): Use full list insert and not
1620 shortcut which assumes the list is empty for large requests
1623 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
1625 2006-08-30 Jakub Jelinek <jakub@redhat.com>
1627 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
1628 and offout arguments to the prototype.
1629 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
1630 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
1631 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
1632 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
1633 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
1634 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
1635 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
1636 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
1638 2006-08-28 Ulrich Drepper <drepper@redhat.com>
1640 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
1642 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
1645 2006-08-28 Jakub Jelinek <jakub@redhat.com>
1647 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
1648 only if herrno is NETDB_INTERNAL. Handle errors other than
1649 ERANGE outside of the loops, handle TRY_AGAIN.
1651 * locale/programs/ld-ctype.c (translit_flatten): Issue error
1652 if other's ctype category was missing.
1653 * locale/programs/ld-collate.c (collate_read): Return if
1654 copy_locale's collate category is missing.
1656 2006-08-27 Ulrich Drepper <drepper@redhat.com>
1659 * malloc/malloc.c (public_rEALLOc): Try harder by using other
1660 arenas if allocation failed.
1661 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
1663 2006-08-26 Ulrich Drepper <drepper@redhat.com>
1665 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
1667 (malloc_state): Reduce bins size by 2.
1668 (_int_malloc): Fix test for large enough buffer for early termination.
1669 When no unsorted block matches perfectly and an exiting block has
1670 to be split, use full list insert and not shortcut which assumes
1673 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
1676 2006-08-24 Ulrich Drepper <drepper@redhat.com>
1678 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
1681 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
1682 symbol require exact match (these are PLTs).
1683 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
1684 (_dl_ppc64_addr_sym_match): Likewise.
1687 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
1688 If symbol has a value use it.
1689 * elf/tst-dladdr1.c: New file.
1690 * elf/Makefile: Add rules to build and run tst-addr1.
1692 2006-08-24 Jakub Jelinek <jakub@redhat.com>
1694 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
1695 keeps failing and heap growth or new heap creation isn't
1697 * malloc/tst-malloc.c (main): Add new tests.
1699 2006-08-24 Ulrich Drepper <drepper@redhat.com>
1702 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
1703 as in the x86-64 code to use bswap.
1705 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
1708 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
1710 * posix/bits/unistd.h: Likewise.
1712 2006-05-15 Mike Frysinger <vapier@gentoo.org>
1715 * string/strchr.c: Add cast to avoid warning.
1717 2006-08-21 Ulrich Drepper <drepper@redhat.com>
1719 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
1720 platforms define as 512K. For 64-bit platforms as 32MB. The lower
1721 limit is needed to avoid the exploding of the address space
1722 requirement for secondary heaps.
1723 * malloc/arena.c (HEAP_MAX_SIZE): Define using
1724 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
1726 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
1729 * Makerules (depfiles): Handle extra-test-objs the same as
1731 (common-mostlyclean): Likewise.
1732 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
1734 * elf/Makefile (extra-objs): Likewise.
1735 * stdlib/Makefile (extra-objs): Likewise.
1737 2006-08-14 Eric Blake <ebb9@byu.net>
1740 * misc/error.h: Assume C89 or better.
1741 * misc/error.c: Likewise.
1743 2006-08-21 Ulrich Drepper <drepper@redhat.com>
1746 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
1747 __ASSUME_ATFCTS is defined.
1749 2006-08-19 Ulrich Drepper <drepper@redhat.com>
1751 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
1752 to sort in each call.
1754 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
1755 is empty simply return and use next service.
1756 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
1758 * locale/programs/charmap.c (charmap_read): Add new parameter. It
1759 tells us when not finding a charmap file is an error.
1760 * locale/programs/charmap.h: Adjust charmap_read prototype.
1761 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
1762 cannot find a charmap.
1763 * locale/programs/localedef.c (main): Adjust charmap_read call.
1765 2006-08-15 Jakub Jelinek <jakub@redhat.com>
1767 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
1768 sysdeps/posix/pause.c implementation instead.
1770 2006-08-09 Jakub Jelinek <jakub@redhat.com>
1772 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
1775 2006-08-13 Andreas Schwab <schwab@suse.de>
1777 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
1778 Don't clobber caller's LRSAVE.
1779 (_dl_prof_resolve): Likewise.
1781 2006-08-14 Ulrich Drepper <drepper@redhat.com>
1784 * libio/memstream.c (open_memstream): Allocate initial buffer with
1786 * libio/wmemstream.c (open_wmemstream): Likewise.
1787 * libio/strops.c: Pretty printing.
1788 (_IO_str_overflow): Clear uninitialized part of the new buffer.
1789 (enlarge_userbuf): New function.
1790 (_IO_str_seekoff): Call it if seek position is larger than current
1792 * libio/wstrops.c: Likewise.
1793 * libio/vasprintf.c: Add comment as to why we do not have to use
1794 calloc instead of malloc to allocate initial buffer.
1795 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
1796 * libio/bug-memstream1.c: New file.
1797 * libio/bug-wmemstream1.c: New file.
1799 2006-08-13 Ulrich Drepper <drepper@redhat.com>
1801 * libio/wstrops.c: Remove dead macro definitions and comments.
1802 * libio/strops.c: Likewise.
1805 * login/utmpname.c (__utmpname): Remove unnecessary test.
1807 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
1810 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
1813 2006-08-13 Ulrich Drepper <drepper@redhat.com>
1816 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
1818 * sysdeps/unix/clock_settime.c: Add support for platform-specific
1819 setting of CPU clocks.
1821 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
1824 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
1825 since C99 requires the result to promote to 'int' when uint_least8_t
1826 and uint_least16_t promote to 'int'.
1828 2006-08-12 Ulrich Drepper <drepper@redhat.com>
1831 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
1832 lenght of one output field, correct bitmask creation.
1833 * locale/programs/ld-time.c: Add alignment.
1836 * misc/error.c: Add space between program name and message if file
1839 2006-08-03 Eric Blake <ebb9@byu.net>
1842 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
1844 2006-08-09 Ulrich Drepper <drepper@redhat.com>
1846 * malloc/memusagestat.c: Silence warnings.
1848 * malloc/malloc.c: Dynamically size mmap treshold if the program
1849 frees mmaped blocks.
1850 Patch by Valerie Henson and Arjan van de Ven.
1852 2006-08-08 Jakub Jelinek <jakub@redhat.com>
1854 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
1857 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
1858 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
1859 (DEF): Don't put the var into .gnu.linkonce.r.* section.
1860 Only provide var definitions in strtol_l (or for *ull*
1863 * stdio-common/bug16.c (tests): New array.
1864 (do_tests): Allow the first hexadecimal digit
1865 to be 1, 2, 4 or 8. Do 3 additional tests.
1867 * sysdeps/s390/fpu/libm-test-ulps: Update.
1869 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
1870 fchownat syscall if available.
1871 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
1872 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
1873 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
1875 2006-08-07 Ulrich Drepper <drepper@redhat.com>
1877 * nis/nis_xdr.c: Avoid some function calls.
1879 2006-08-07 Jakub Jelinek <jakub@redhat.com>
1880 Ulrich Drepper <drepper@redhat.com>
1882 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
1883 short cut if only one name component is stripped away.
1885 2006-08-07 Ulrich Drepper <drepper@redhat.com>
1887 * nis/nis_call.c: Minor cleanups throughout.
1888 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
1889 (first_shoot): Add search_parent_first parameter. Only if it is set
1890 search parent server first.
1891 If directory for table found through cold start cache is not the same
1892 as referenced in the cache, don't use it.
1893 (__nisfind_server): Take additional parameter. Pass it on to
1895 (__prepare_niscall): Adjust __nisfind_server call.
1896 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
1897 * nis/nis_table.c: Adjust __nisfind_server call.
1898 * nis/nis_lookup.c: Likewise.
1899 (nis_lookup): Don't loop endlessly if name is reduced to ".".
1901 2006-08-03 Ulrich Drepper <drepper@redhat.com>
1904 * math/s_cacosh.c: Return values from positive branch.
1905 * math/s_cacoshf.c: Likewise.
1906 * math/s_cacoshl.c: Likewise.
1909 * sysvipc/sys/msg.h: Change return value to ssize_t.
1910 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
1911 * sysvipc/msgrcv.c: Likewise.
1912 * include/sys/msg.h: Likewise.
1914 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
1915 test introduced in patch for bz #661.
1916 (getgrouplist): Simplify code a bit. Don't allocate one additional
1917 element for NEWGROUPS.
1920 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
1921 'f', use '1' as leading digit not '\1'.
1922 * stdio-common/Makefile (tests): Add bug16.
1923 * stdio-common/bug16.c: New file.
1926 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
1927 and don't try to open it. The patch introducing the macro
1928 contained a bug and used the same file name as the new file
1929 instead of using /var/adm/hostid. Nobody complaint so I'm taking
1930 this out completely.
1933 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
1934 Patch by Jerry James <Jerry.James@usu.edu>.
1936 * rt/Makefile (tests): Add tst-clock2.
1937 * rt/tst-clock2.c: New file.
1940 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
1941 function and its parameters and pass it to new thread.
1942 (__gai_notify): Add support for alternative waiting for completion.
1943 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
1944 waiting for completion.
1945 * resolv/getaddrinfo_a.c: Likewise.
1946 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
1947 waiting for completion is used.
1948 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
1949 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
1950 * resolv/gai_error.c: Likewise.
1951 * resolv/gai_sigqueue.c: Likewise.
1953 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
1955 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
1956 errno to EBADF and return MACH_PORT_NULL.
1958 2006-06-23 Joseph Myers <joseph@codesourcery.com>
1961 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
1963 2006-08-02 Ulrich Drepper <drepper@redhat.com>
1965 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
1966 walk them instead of the symbol table.
1968 2006-08-01 Ulrich Drepper <drepper@redhat.com>
1971 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
1972 status of NSS calls, not the number of returned entries.
1974 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
1975 request_key, keyctl.
1977 2006-07-31 Ulrich Drepper <drepper@redhat.com>
1979 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
1981 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
1983 * elf/tst-auditmod1.c: Fix typo in #error.
1985 2006-07-31 Ulrich Drepper <drepper@redhat.com>
1987 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
1989 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
1991 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
1993 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
1994 that the directory is empty even on non-POSIX filesystems.
1996 2006-07-31 Ulrich Drepper <drepper@redhat.com>
1998 * elf/dl-open.c (dl_open_worker): Add branch prediction.
2000 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
2001 the backend NSS module. If backend setgrent call failed, don't have
2002 internal_setgrent fail. Just remember this until it is needed.
2003 * nis/nss_compat/compat-pwd.c: Likewise.
2004 * nis/nss_compat/compat-spwd.c: Likewise.
2006 2006-07-30 Roland McGrath <roland@redhat.com>
2008 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
2009 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
2010 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
2011 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
2013 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
2014 (nanosleep_not_cancel): New macro.
2015 (sigsuspend_not_cancel): new macro.
2016 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
2017 (do_sigsuspend): Define as inline.
2018 (__sigsuspend): Always use do_sigsuspend.
2019 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
2020 * include/signal.h: Declare __sigsuspend_nocancel.
2021 * sysdeps/posix/pause.c
2022 [! NO_CANCELLATION] (__pause_nocancel): New function.
2024 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
2025 * include/time.h (__nanosleep_nocancel): Likewise.
2027 2006-07-30 Ulrich Drepper <drepper@redhat.com>
2029 * locale/programs/localedef.c (add_to_readlist): Rename local
2030 variables to avoid confusion.
2032 * locale/programs/charmap.c (charmap_read): Emit error message if
2033 charmap couldn't be found or read.
2035 2006-07-28 Ulrich Drepper <drepper@redhat.com>
2037 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2038 __ASSUME_FUTEX_LOCK_PI.
2039 * include/time.h: Declare __nanosleep_nocancel.
2040 * include/unistd.h: Declare __pause_nocancel.
2042 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
2043 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
2044 get the __stack_chk_fail_local definition when it's needed.
2046 2006-07-26 Ulrich Drepper <drepper@redhat.com>
2048 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
2049 * dlfcn/bug-atexit3.c: New file.
2050 * dlfcn/bug-atexit3-lib.cc: New file.
2052 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
2053 used when the namespace is not the base namespace.
2055 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
2057 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
2058 (__new_exitfn): Bump it in every successful call.
2059 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
2060 more exit handlers, call them right away.
2061 * stdlib/exit.h: Declare __new_exitfn_called.
2063 2006-07-25 Ulrich Drepper <drepper@redhat.com>
2065 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
2066 calling registered handler.
2068 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
2069 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2070 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2071 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2072 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2073 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2074 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2075 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2077 2006-07-10 Ulrich Drepper <drepper@redhat.com>
2079 * elf/dl-lookup.c (dl_new_hash): New functions.
2080 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
2081 value here. Compute new-style hash value. Pass new hash value
2082 and reference to variable with the old value to do_lookup_x.
2083 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
2084 old-style hash table.
2085 (_dl_debug_bindings): Pass new hash value and reference to variable
2086 with the old value to do_lookup_x.
2087 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
2088 new-style hash value and change old-style hash value parameter to
2089 be a reference. Reoganize functions to determine whether
2090 new-style hash table is available. Only fall back on old-style
2091 table. If old-style hash value is needed, compute it here.
2092 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
2094 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
2095 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
2096 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
2097 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
2098 * Makeconfig: If linker supports --hash-style option add it to all
2099 linker command lines to build DSOs.
2100 * config.make.in: Define have-hash-style.
2101 * configure.in: Test whether linker supports --hash-style option.
2103 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
2104 * sysdeps/generic/ldsodefs.h: Adjust prototype.
2106 2006-06-27 Ulrich Drepper <drepper@redhat.com>
2108 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
2111 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
2112 RPATH of main map twice.
2114 2006-06-22 Ulrich Drepper <drepper@redhat.com>
2116 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
2117 look further, return original strings.
2118 (_nl_find_msg): Do not return found translation if the conversion
2119 failed. Either signal the string is unusable or that something went
2120 wrong and the original should be used.
2122 2006-06-21 Ulrich Drepper <drepper@redhat.com>
2124 * string/_strerror.c (__strerror_r): Add __builtin_expect.
2126 2006-06-14 Jakub Jelinek <jakub@redhat.com>
2129 * misc/insremque.c (insque): Handle prev == NULL.
2130 * misc/Makefile (tests): Add tst-insremque.
2131 * misc/tst-insremque.c: New test.
2133 2006-06-17 Ulrich Drepper <drepper@redhat.com>
2136 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
2137 conflict with DL_DST_REQUIRED.
2139 2006-06-16 Ulrich Drepper <drepper@redhat.com>
2141 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
2142 match what Solaris does.
2144 2006-06-04 Ulrich Drepper <drepper@redhat.com>
2146 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
2147 local_setegid instead of seteuid and setegid.
2148 * sysdeps/generic/local-setxid.h: New file.
2149 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
2151 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
2153 * string/Makefile (tests): Add bug-envz1.
2154 * string/bug-envz1.c: New file.
2156 2006-06-02 Jakub Jelinek <jakub@redhat.com>
2158 * posix/regex_internal.c (re_string_skip_chars): If no character has
2159 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
2160 to the byte which couldn't be converted.
2161 (re_string_reconstruct): Don't clear valid_raw_len before calling
2162 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
2163 tip_context using re_string_context_at.
2164 * posix/Makefile: Add rules to build and run bug-regex25 test.
2165 * posix/bug-regex25.c: New test.
2167 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
2170 * string/envz.c (envz_strip): Correct erroneously reversed src
2171 and dest parameters to memmove() invocation.
2173 2006-05-30 Jakub Jelinek <jakub@redhat.com>
2175 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
2176 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
2177 to make sure the database has been already invalidated.
2178 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
2179 after the cache has been invalidated. Use pthread_mutex_lock rather
2180 than pthread_mutex_trylock if fd != -1.
2181 * nscd/connections.c (invalidate_cache): Add fd argument, write
2182 response to fd if not calling prune_cache, pass fd to prune_cache.
2183 (handle_request): Adjust invalidate_cache caller.
2184 (nscd_run): Pass -1 as fd to prune_cache.
2186 2006-05-30 Ulrich Drepper <drepper@redhat.com>
2188 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
2191 2006-05-29 Ulrich Drepper <drepper@redhat.com>
2193 * nscd/nscd.h (struct database_dyn): Add prunelock field.
2194 * nscd/cache.c (prune_cache): Take prunelock before starting the
2195 work. Just return in case it is already taken.
2196 * nscd/connections.c (dbs): Initialize .prunelock.
2198 2006-05-25 Ulrich Drepper <drepper@redhat.com>
2200 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
2201 copying. No need to allocate new array for group members. Just
2202 move the pointers and update the size.
2204 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
2205 Avoid memory leak in case realloc fails. Simplification for
2206 better code generation.
2208 Avoid deprecation warning because of libc_hidden_proto for
2210 * inet/inet6_option.c (option_alloc): Renamed from
2211 inet6_option_alloc. Made static.
2212 (inet6_option_alloc): Now a simple wrapper around option_alloc.
2213 (inet6_option_append): Call option_alloc.
2214 * include/netinet/in.h: Remove libc_hidden_proto for
2217 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
2218 for cleanup when cb!=NULL [Coverity CID 233].
2220 2006-05-24 Ulrich Drepper <drepper@redhat.com>
2223 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
2224 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
2225 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
2226 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
2227 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
2228 and inet6_rth_getaddr.
2229 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
2231 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
2232 Mark inet6_option_* interfaces as deprecated.
2233 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
2234 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
2235 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
2236 inet6_rth_segments, and inet6_rth_getaddr.
2237 * inet/inet6_opt.c: New file.
2238 * inet/inet6_rth.c: New file.
2240 * inet/netinet/icmp6.h: Pretty printing.
2243 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
2245 2006-05-23 Ulrich Drepper <drepper@redhat.com>
2247 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
2248 doing it all here. When server does not know the answer do not
2249 fail immediate, try parent first.
2251 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
2254 2006-05-20 Ulrich Drepper <drepper@redhat.com>
2256 * nis/nis_call.c (__prepare_niscall): New function. Split out
2258 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
2260 (__follow_path): New function. Split out from nis_list.
2261 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
2263 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
2265 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
2267 * nis/Versions: Export __prepare_niscall, __create_ib_request,
2268 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
2269 from libnsl for version GLIBC_PRIVATE.
2270 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
2271 Remove entry parameter from _nss_nisplus_parse_pwent and
2272 _nss_nisplus_parse_grent.
2273 * nis/nss_nisplus/nisplus-parser.c: Likewise.
2274 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
2275 again. Rewrite getpwent handling to not use nis_first_entry and
2276 nis_next_entry. Roll out own niscall handling.
2277 * nis/nss_nisplus/nisplus-grp.c: Likewise.
2279 * sunrpc/xdr_rec.c: Fix typo in comment.
2281 2006-05-19 Ulrich Drepper <drepper@redhat.com>
2283 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
2286 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
2287 to allocate memory for my_pollfd. Better initialization of
2288 cb_is_running. Use TEMP_FAILURE_RETRY.
2290 * malloc/memusage.sh (memusageso): Add quotes.
2291 (memusagestat): Likewise.
2292 * debug/xtrace.sh (pcprofileso): Likewise.
2293 (pcprofiledump): Likewise.
2294 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
2296 * malloc/Makefile ($(objpfx)memusage): Likewise.
2298 * nis/nis_callback.c (__nis_create_callback): Calls to
2299 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
2300 asprintf call fails.
2302 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
2303 no uninitialized memory is passed to sendto.
2305 2006-05-18 Ulrich Drepper <drepper@redhat.com>
2307 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
2308 of snprintf+strdup. Handle OOM.
2309 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
2310 cb->serv together. Remove now obsolete free calls.
2311 (__nis_destroy_callback): Remove now obsolete free call.
2313 2006-05-18 David Woodhouse <dwmw2@redhat.com>
2315 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
2316 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
2317 and ULA respectively). Set precedence for IPv4 address to 10 as
2318 defined in RFC3484 for preferring IPv6.
2319 * posix/gai.conf: Update to match the new default tables.
2321 2006-05-18 Jakub Jelinek <jakub@redhat.com>
2323 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
2324 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
2325 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
2326 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
2328 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
2330 (init_nss_interface): Remove initialization of these variables.
2332 2006-05-18 Ulrich Drepper <drepper@redhat.com>
2334 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
2335 nis_free_directory forward to avoid duplication.
2337 2006-05-17 Ulrich Drepper <drepper@redhat.com>
2339 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
2340 rec_dirsearch returning NULL.
2341 (first_shoot): Handle __nis_finddirectory returning NULL.
2342 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
2344 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
2345 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
2347 2006-05-17 Jakub Jelinek <jakub@redhat.com>
2349 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
2352 2006-05-15 Ulrich Drepper <drepper@redhat.com>
2354 * include/rpc/pmap_prot.h: Mark all functions as hidden.
2356 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
2357 * nscd/nscd_getgr_r.c: Likewise.
2359 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
2361 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
2362 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
2364 * stdlib/longlong.h (__clz_tab): Mark as hidden.
2366 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
2368 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
2370 * include/rpc/auth.h: Mark xdr_des_block_internal and
2371 xdr_opaque_auth_internal as hidden.
2373 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
2376 * include/rpc/xdr.h: Mark all _internal functions as hidden.
2378 * misc/getusershell.c (okshells): Don't use static initializers,
2381 * stdlib/fmtmsg.c (keywords): Change type of len element to
2382 uint32_t to not waste space on 64bit machines.
2384 * locale/setlocale.c: Change _nl_category_names into a string.
2385 Add new _nl_category_name_idxs. Change all users.
2386 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
2387 Declare _nl_category_name_idxs.
2388 * locale/findlocale.c: Adjust for _nl_category_names change.
2389 * locale/loadlocale.c: Likewise.
2390 * locale/newlocale.c: Likewise.
2391 * intl/dcigettext.c: Likewise.
2393 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
2394 (add_alias2): ...here. New function.
2395 (__gconv_read_conf): Simplify builtin alias handling.
2396 (builtin_aliases): Convert to string to avoid relocations.
2397 * iconv/gconv_builtin.h: Add comment about correct formatting.
2399 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2401 * resolv/res_debug.c (loc_ntoa): Make error const.
2403 2006-05-14 Andreas Schwab <schwab@suse.de>
2405 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
2407 2006-05-12 Jakub Jelinek <jakub@redhat.com>
2409 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
2410 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
2413 2006-05-11 Ulrich Drepper <drepper@redhat.com>
2415 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
2417 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
2419 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
2420 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
2422 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
2423 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
2425 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
2426 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
2429 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
2430 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
2433 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
2434 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
2436 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
2437 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
2439 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
2440 * include/rpcsvc/nis_callback.h: New file.
2442 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
2443 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
2445 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
2446 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
2448 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
2449 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
2451 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
2452 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
2454 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
2455 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
2458 * nis/nis_xdr.h: Mark all functions as hidden. Remove
2459 __BEGIN_DECLS and __END_DECLS, the header is not installed.
2461 * nis/nis_error.c: Remove table of strings. Use position
2462 independent mechanism.
2463 * nis/nis_error.h: New file.
2465 2006-05-11 Jakub Jelinek <jakub@redhat.com>
2467 * locale/programs/ld-time.c (time_finish): If wide era name or
2468 format aren't provided, set both wname and wformat to L"".
2470 2006-05-10 Ulrich Drepper <drepper@redhat.com>
2472 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
2473 results if the call was succesful.
2475 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
2477 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
2480 2006-05-10 Jakub Jelinek <jakub@redhat.com>
2482 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
2484 2006-05-10 Ulrich Drepper <drepper@redhat.com>
2486 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
2487 caller makes sure this is not the case.
2488 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
2490 2006-05-09 Ulrich Drepper <drepper@redhat.com>
2492 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
2495 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
2496 [Coverity CID 229, 230]
2498 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
2500 (hol_help): Likewise. [Coverity CID 226, 227]
2502 * string/argz-replace.c (__argz_replace): Unconditionally call
2503 free on SRC. [Coverity CID 225]
2505 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
2506 the return value of __nis_default_owner and __nis_default_group,
2507 it has been especially allocated. [Coverity CID 224]
2509 * nis/nis_defaults.c (searchXYX): New functions. Used by both
2510 searchgroup and searchowner. Significantly simplified.
2511 (__nis_default_owner): Remove duplication. Do not locally copy the
2512 string before duplicating it.
2513 (__nis_default_group): Likewise.
2515 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
2516 we must clear the variable before calling __nisfind_server.
2518 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
2519 nis_getnames. [Coverity CID 223]
2521 * locale/programs/locfile.c (locfile_read): Use alloca instead of
2522 xmalloc to allocate local repertoire name. [Coverity CID 222]
2524 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
2525 allocate memory for the input to add_bytes. [Coverity CID 221]
2527 * posix/wordexp.c (w_addword): Free word if realloc fails and it
2528 was allocated here. [Coverity CID 219, 220]
2530 * posix/getconf.c (print_all): Free confstr data after printing.
2533 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
2534 list allocation fails. [Coverity CID 215]
2536 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
2539 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
2540 string is NULL. [Coverity CID 212]
2541 * argp/Makefile: Add rules to build and run bug-argp1.
2542 * argp/bug-argp1.c: New file.
2544 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
2546 * stdlib/canonicalize.c (__realpath): Likewise.
2548 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
2549 pointer. [Coverity CID 206]
2551 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
2552 in statically linked code.
2553 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
2554 statically built code, be prepared to have no link map.
2557 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
2558 dgettext calls. [Coverity CID 204]
2560 * argp/argp-help.c (struct uparams): Remove valid member. Change
2562 (uparam_names): Reduce size. Avoid relative relocations.
2563 Moved to read-only segment.
2564 (fill_in_uparams): Update for new layout.
2566 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
2567 assumed to always be != NULL. [Coverity CID 202]
2569 * argp/argp-help.c (hol_entry_help): Remove some dead code
2572 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
2573 away a few more unconditional yperr2nss calls.
2574 (_nss_nis_getservbyname_r): Likewise.
2576 2006-05-06 Ulrich Drepper <drepper@redhat.com>
2578 * sysdeps/generic/ldsodefs.h: Remove support for non-core
2581 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
2582 that unused memory passed to sendto is nevertheless initialized.
2585 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
2586 possibly unaligned memory accesses.
2588 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
2589 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
2590 and __putlong respectively. Correct buffer overflow check for
2593 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
2595 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
2596 (send_dg): Rewrite error handling to be more compact and avoid
2597 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
2599 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
2601 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
2602 instead of ns_get16.
2603 (res_queriesmatch): Likewise. Minor optimization.
2606 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
2607 __libc_res_nsend might reallocate the buffer for the answer. In
2608 this case we have to reload the HP pointer.
2610 2006-05-05 Ulrich Drepper <drepper@redhat.com>
2612 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
2613 some branch prediction hints.
2615 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
2616 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2617 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2618 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2619 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2620 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2621 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2622 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2624 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
2626 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
2627 by a GOT relocation to make Scrt1.o position independent.
2628 * sysdeps/s390/s390-64/elf/start.S: Likewise.
2630 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
2631 six system call parameters.
2632 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
2634 2006-05-05 Ulrich Drepper <drepper@redhat.com>
2636 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
2639 * sunrpc/svc_udp.c (BZERO): Remove definition.
2641 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
2643 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
2644 (des_SPtrans): Use uint32_t type.
2645 (des_skb): Likewise.
2647 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
2649 2006-05-05 Jakub Jelinek <jakub@redhat.com>
2652 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
2655 2006-05-05 Ulrich Drepper <drepper@redhat.com>
2657 * locale/programs/ld-address.c (address_finish): Fix one more
2658 place where the iso639 array might be accessed beyond the limits.
2660 2006-05-04 Ulrich Drepper <drepper@redhat.com>
2662 * nis/nis_table.c (nis_list): Avoid clearing res twice before
2663 filling it for the first time.
2665 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
2667 Free res object content before returning.
2669 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
2671 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
2674 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
2675 cleanup for initial thread, just the free call on TVP.
2677 * nscd/gai.c (__getline): Define.
2680 See ChangeLog.16 for earlier changes.