1 2007-04-06 Jakub Jelinek <jakub@redhat.com>
3 * nis/nis_domain_of.c (__nis_domain_of): New function.
4 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
5 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6 * nis/nis_call.c (rec_dirsearch): Likewise.
7 (first_shoot): Likewise. Remove search_parent_first argument.
8 (struct nis_server_cache): Rename search_parent_first field
10 (nis_server_cache_search, nis_server_cache_add): Rename
11 search_parent_first argument to search_parent.
12 (__nisfind_server): Likewise. If search_parent, call
15 2007-04-05 Jakub Jelinek <jakub@redhat.com>
17 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
18 with obj->do_servers after first_shoot.
20 2007-03-21 Jakub Jelinek <jakub@redhat.com>
22 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
23 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
25 (nis_server_cache_search, nis_server_cache_add): New functions.
26 (__nisfind_server): Use them. Add dbp and flags argument, if
27 call __nisbind_create.
28 (__nisbind_create): Add server_used and current_ep arguments,
29 only call __nis_findfastest if server_used is ~0.
30 (__do_niscall2, __prepare_niscall): Adjust callers.
31 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
32 ckey_cache_euid, ckey_cache_lock): New variables.
33 (get_ckey): New function.
34 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
35 __pmap_getnisport. Save __pmap_getnisport result in
36 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
38 * nis/nis_lookup.c (nis_lookup): Likewise.
39 * nis/nis_table.c (nis_list): Likewise.
40 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
43 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
44 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
45 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
46 _nss_nisplus_getservbyport_r): Likewise.
47 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
48 _nss_nisplus_getnetbyaddr_r): Likewise.
49 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
50 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
51 _nss_nisplus_getntohost_r): Likewise.
52 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
53 _nss_nisplus_getrpcbynumber_r): Likewise.
55 2007-04-01 Jakub Jelinek <jakub@redhat.com>
57 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
60 2007-04-01 Jakub Jelinek <jakub@redhat.com>
62 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
63 math_opt_barrier and math_force_eval macros.
65 2007-03-27 Jakub Jelinek <jakub@redhat.com>
68 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
69 * sysdeps/i386/fpu/math_private.h: New file.
70 * sysdeps/x86_64/fpu/math_private.h: New file.
71 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
72 math_force_eval macros. Use "+m" constraint on asm rather than
74 * math/s_nextafter.c (__nextafter): Likewise.
75 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
77 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
78 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
79 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
80 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
81 math_opt_barrier and math_force_eval macros.
82 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
83 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
84 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
85 (__nexttoward): Use math_opt_barrier and
86 math_force_eval macros. Use "+m" constraint on asm rather than
87 "=m" and "m". Only use asm to force double result if
89 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
90 (__nexttowardf): Use math_opt_barrier and
91 math_force_eval macros. Use "+m" constraint on asm rather than
92 "=m" and "m". Only use asm to force double result if
93 FLT_EVAL_METHOD is not 0.
94 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
95 (__nexttowardf): Use math_opt_barrier and
96 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
98 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
99 (__nldbl_nexttowardf): Use math_opt_barrier and
100 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
101 x to float using asm.
102 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
103 (__nexttowardf): Use math_opt_barrier and math_force_eval
104 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
105 * math/bug-nextafter.c (zero, inf): New variables.
106 (main): Add new tests.
107 * math/bug-nexttoward.c (zero, inf): New variables.
108 (main): Add new tests.
110 2007-03-30 Jakub Jelinek <jakub@redhat.com>
112 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
113 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
114 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
116 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
117 _IO_file_xsgetn_maybe_mmap): Likewise.
118 * libio/oldfileops.c (old_do_write): Likewise.
119 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
120 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
121 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
122 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
123 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
124 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
125 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
126 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
127 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
128 _IO_file_underflow, _IO_file_underflow_mmap,
129 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
130 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
131 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
132 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
133 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
134 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
135 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
136 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
137 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
138 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
139 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
140 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
141 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
142 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
143 _IO_adjust_column_internal, _IO_default_uflow_internal,
144 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
145 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
146 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
147 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
148 _IO_file_close_it_internal, _IO_file_underflow_internal,
149 _IO_file_overflow_internal, _IO_file_attach_internal,
150 _IO_file_fopen_internal, _IO_file_sync_internal,
151 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
152 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
153 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
154 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
155 _IO_seekpos_unlocked): Likewise.
156 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
157 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
159 2007-03-23 Jakub Jelinek <jakub@redhat.com>
161 * scripts/check-local-headers.sh: Filter out sys/capability.h.
163 2007-03-22 Jakub Jelinek <jakub@redhat.com>
165 * config.h.in (HAVE_LIBCAP): Add.
166 * nscd/selinux.h: Include sys/capability.h rather than non-existent
168 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
169 free_caps. Cast away const from 4th cap_set_flag argument.
171 2007-03-16 Jakub Jelinek <jakub@redhat.com>
173 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
175 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
176 (DL_DST_REQUIRED): Adjust user.
178 2007-03-15 Jakub Jelinek <jakub@redhat.com>
180 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
183 2007-03-15 Jakub Jelinek <jakub@redhat.com>
186 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
187 (inet6_opt_append): Don't check extlen is big enough if extbuf
189 (inet6_opt_finish): Likewise.
190 * inet/Makefile (tests): Add test-inet6_opt.
191 * inet/test-inet6_opt.c: New test.
193 2007-03-15 Jakub Jelinek <jakub@redhat.com>
196 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
198 (updwtmp_file): Likewise.
200 2007-03-15 Jakub Jelinek <jakub@redhat.com>
203 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
204 ancestors with the same depths.
205 Patch by Niels Moeller <nisse@lysator.liu.se>.
206 (filter_doc): Don't crash if argp is NULL.
207 * argp/Makefile (tests): Add tst-argp2.
208 * argp/tst-argp2.c: New test.
210 2007-03-15 Jakub Jelinek <jakub@redhat.com>
213 * math/libm-test.inc (log_test): Test -Inf and NaN.
214 (log10_test, log1p_test, log2_test): Test -Inf.
215 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
216 FE_INVALID when argument is qNaN.
217 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
218 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
219 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
220 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
221 andb $1, %ah with testb $1, %ah, don't test for parity, instead
222 testb $4, %ah and jump if non-zero.
223 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
224 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
226 2007-03-06 Ulrich Drepper <drepper@redhat.com>
228 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
229 172.16/12 address range.
231 2007-03-01 Jakub Jelinek <jakub@redhat.com>
234 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
236 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
238 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
239 for x qNaN and y either +-inf or non-integer value.
240 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
241 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
242 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
244 2007-02-21 Ulrich Drepper <drepper@redhat.com>
247 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
248 (open_dir_stream): Likewise.
249 * io/Makefile (tests): Add bug-ftw5.
250 * io/bug-ftw5.c: New file.
252 2007-02-21 Ulrich Drepper <drepper@redhat.com>
254 * nscd/grpcache.c (cache_addgr): In case a record changed on
255 refresh, adjust key_copy.
258 * nscd/pwdcache.c (cache_addpw): In case a record changed on
259 refresh, adjust key_copy.
261 2007-02-21 Ulrich Drepper <drepper@redhat.com>
264 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
265 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
267 2007-02-17 Ulrich Drepper <drepper@redhat.com>
270 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
271 using __libc_enable_secure.
273 2007-02-17 Ulrich Drepper <drepper@redhat.com>
276 * malloc/memusage.sh: Cleanups.
277 * debug/xtrace.sh: Quoting and trap changes.
279 2007-02-16 Ulrich Drepper <drepper@redhat.com>
281 * locale/iso-3166.def: Add entry for Serbia.
282 * locale/iso-4217.def: Define RSD.
284 2007-02-15 Ulrich Drepper <drepper@redhat.com>
286 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
289 2007-02-13 Ulrich Drepper <drepper@redhat.com>
291 * po/ru.po: Update from translation team.
293 2007-02-03 Ulrich Drepper <drepper@redhat.com>
295 * po/sv.po: Update from translation team.
297 2007-02-12 Jakub Jelinek <jakub@redhat.com>
299 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
300 to the list of i486+ CPUs.
301 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
303 2007-01-24 Jakub Jelinek <jakub@redhat.com>
305 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
306 and __geode__ to the list of i486+ CPUs.
307 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
309 2007-02-08 Jakub Jelinek <jakub@redhat.com>
312 * time/strptime_l.c (__strptime_internal): Set have_mon for
313 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
314 have been computed from tm_yday and tm_year. Don't crash
315 in day_of_the_week or day_of_the_year if not have_mon
316 and tm_mon contains bogus value.
317 * time/Makefile (tests): Add tst-strptime3.
318 * time/tst-strptime3.c: New test.
320 2007-02-05 Jakub Jelinek <jakub@redhat.com>
323 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
324 bit for RE_HAT_LISTS_NOT_NEWLINE.
325 (build_charclass_op): Remove bogus comment.
326 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
327 * posix/bug-regex27.c: New test.
328 * posix/bug-regex28.c: New test.
330 2007-02-02 Bruno Haible <bruno@clisp.org>
333 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
334 Add mapping for U+327E.
335 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
336 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
337 mapping of 0xD9 0xE8.
338 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
340 Reported by Jungshik Shin <jungshik@google.com>.
343 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
344 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
345 Reported by Jungshik Shin <jungshik@google.com>.
347 2007-01-31 Jakub Jelinek <jakub@redhat.com>
349 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
351 * nscd/nscd_helper.c: Include string.h.
352 (__nscd_cache_search): Remove const qualifier from return value.
353 On strict alignment architectures check hash entry and data head
355 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
356 mmapped data during GC cycle contains garbage. If
357 __nscd_drop_map_ref fails, decrement mapped->counter when returning
358 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
360 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
361 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
362 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
363 * nscd/nscd_getai.c (__nscd_getai): Likewise.
365 2007-01-22 Ulrich Drepper <drepper@redhat.com>
368 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
369 * stdio-common/Makefile (tests): Add bug17.
370 * stdio-common/bug17.c: New file.
372 2007-01-15 Jakub Jelinek <jakub@redhat.com>
374 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
375 workbits in semi-raw fraction.
377 * math/test-misc.c: Add new tests.
379 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
381 * math/basic-test.c: Include test-skeleton.c.
382 (TEST_TRUNC): Define.
383 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
384 (main): Rename to ...
385 (do_test): ...this. Run new tests.
386 (TEST_FUNCTION): Define.
388 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
389 Joe Kerian <jkerian@us.us.ibm.com>
392 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
393 handling for high words.
394 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
395 and overflow for infinity.
397 2007-01-13 Ulrich Drepper <drepper@redhat.com>
399 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
400 computation of keylen.
402 2007-01-10 Ulrich Drepper <drepper@redhat.com>
404 * io/fts.c: Make sure fts_cur is always valid after return from
406 Patch by Miloslav Trmac <mitr@redhat.com>.
408 2007-01-03 Jakub Jelinek <jakub@redhat.com>
410 * posix/execvp.c: Include alloca.h.
411 (allocate_scripts_argv): Renamed to...
412 (scripts_argv): ... this. Don't allocate buffer here nor count
414 (execvp): Use alloca if possible.
415 * posix/Makefile: Add rules to build and run tst-vfork3 test.
416 * posix/tst-vfork3.c: New test.
418 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
420 * stdlib/tst-makecontext.c: Include errno.h. Change main()
421 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
422 (do_test): Check errno and exit(0) if ENOSYS.
424 2007-01-11 Jakub Jelinek <jakub@redhat.com>
426 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
427 thousands separators.
428 * stdlib/Makefile: Add rules to build and run tst-strtod4.
429 * stdlib/tst-strtod4.c: New test.
432 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
433 hexadecimal digit should accept just the initial 0.
434 * stdlib/tst-strtod2.c (tests): New variable.
435 (do_test): Run several tests rather than just one.
437 2007-01-03 Ulrich Drepper <drepper@redhat.com>
439 * stdlib/Makefile (tst-strtod3-ENV): Define.
441 2006-12-11 Ulrich Drepper <drepper@redhat.com>
443 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
444 separators also if no non-zero digits found.
445 * stdlib/Makefile (tests): Add tst-strtod3.
447 2006-12-09 Ulrich Drepper <drepper@redhat.com>
450 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
451 empty parsed strings.
452 * stdlib/Makefile (tests): Add tst-strtod2.
453 * stdlib/tst-strtod2.c: New file.
456 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
458 * stdlib/Makefile (tests): Add tst-atof2.
459 * stdlib/tst-atof2.c: New file.
462 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
463 correctly if removing trailing zero of hex-float.
464 * stdlib/Makefile (tests): Add tst-atof1.
465 * stdlib/tst-atof1.c: New file.
467 2007-01-03 Ulrich Drepper <drepper@redhat.com>
469 * string/Makefile (tst-strxfrm2-ENV): Define.
471 2006-11-10 Jakub Jelinek <jakub@redhat.com>
473 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
474 if N is one bigger than return value.
475 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
476 and l1 last arguments, if buf is defined, verify the return value
477 equals to strlen (buf) and verify no byte beyond passed length
480 2006-11-09 Ulrich Drepper <drepper@redhat.com>
482 * string/Makefile (tests): Add tst-strxfrm2.
483 * string/tst-strxfrm2.c: New file.
485 2006-11-08 Jakub Jelinek <jakub@redhat.com>
487 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
488 optimization even if needed > n.
490 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
492 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
493 blacklist the group till after we look it up.
495 2006-12-21 Ulrich Drepper <drepper@redhat.com>
497 * include/atomic.h (atomic_forced_read): New macro.
499 2006-12-19 Jakub Jelinek <jakub@redhat.com>
501 * stdlib/Makefile (tests): Add tst-makecontext.
502 * stdlib/tst-makecontext.c: New test.
504 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
505 (__makecontext): Don't realign uc_mcontext.uc_regs.
507 2006-12-13 Jakub Jelinek <jakub@redhat.com>
509 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
512 2006-12-19 Jakub Jelinek <jakub@redhat.com>
514 * nss/getXXbyYY_r.c: Include atomic.h.
515 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
516 add atomic_write_barrier () in between.
518 2006-12-18 Jakub Jelinek <jakub@redhat.com>
521 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
523 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
525 * stdlib/tst-rand48-2.c: New test.
526 * stdlib/Makefile (tests): Add tst-rand48-2.
528 2006-12-14 Jakub Jelinek <jakub@redhat.com>
530 * misc/tst-pselect.c (do_test): Fix sigblock argument.
532 2006-12-14 Ulrich Drepper <drepper@redhat.com>
534 * misc/tst-pselect.c (do_test): Make sure the helper process is
535 terminating when the test is aborted.
537 2006-12-13 Ulrich Drepper <drepper@redhat.com>
540 * libio/Makefile (tests): Add tst-setvbuf1.
541 * libio/tst-setvbuf1.c: New file.
543 2006-12-08 Jakub Jelinek <jakub@redhat.com>
546 * libio/genops.c (__uflow): Fix a typo.
547 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
548 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
549 the narrow buffer size.
551 2006-11-24 Jakub Jelinek <jakub@redhat.com>
554 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
555 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
556 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
558 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
559 _IO_wstr_finish): Likewise.
560 * libio/wmemstream.c (open_wmemstream): Likewise.
561 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
562 even for wide streams.
564 2006-12-09 Jakub Jelinek <jakub@redhat.com>
566 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
567 Start searching for next comma at p rather than rest.
568 * misc/Makefile (tests): Add tst-mntent2.
569 * misc/tst-mntent2.c: New test.
571 2006-12-09 Ulrich Drepper <drepper@redhat.com>
574 * include/features.h: Fix comment about default value for
577 2006-12-09 Jakub Jelinek <jakub@redhat.com>
579 * misc/getusershell.c (initshells): Check for integer overflows.
580 Make strings buffer one bigger as fgets always succeeds when second
581 argument is 1. Don't use calloc for shells array. Disallow
584 2006-12-05 Jakub Jelinek <jakub@redhat.com>
586 * nis/nis_subr.c (nis_getnames): Revert last change.
588 2006-10-11 Jakub Jelinek <jakub@redhat.com>
590 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
592 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
593 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
595 2006-12-04 Jakub Jelinek <jakub@redhat.com>
597 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
598 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
599 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
600 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
602 * io/Makefile: Add rules to build and run tst-ttyname_r test.
603 * io/tst-ttyname_r.c: New test.
605 2006-11-28 Jakub Jelinek <jakub@redhat.com>
607 * elf/dl-support.c: Include dl-procinfo.h.
608 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
609 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
610 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
612 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
614 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
615 PPC_PLATFORM_* macros for array designators.
617 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
619 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
620 names to the beginning.
621 (_dl_powerpc_platforms): Add "power6x".
622 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
623 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
624 (_DL_PLATFORMS_COUNT): Increase.
625 (_dl_string_platform): Handle power6x case.
626 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
627 PPC_FEATURE_POWER6_EXT): Define.
628 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
630 2006-11-27 Jakub Jelinek <jakub@redhat.com>
633 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
636 2006-11-14 Jakub Jelinek <jakub@redhat.com>
638 * nss/nss_files/files-alias.c (get_next_alias): Set line back
639 to first_unused after parsing :include: file.
641 2006-11-14 Ulrich Drepper <drepper@redhat.com>
643 * po/nl.po: Update from translation team.
645 2006-11-10 Ulrich Drepper <drepper@redhat.com>
647 * po/sv.po: Update from translation team.
649 2006-11-01 Ulrich Drepper <drepper@redhat.com>
651 * po/sv.po: Update from translation team.
653 2006-10-29 Ulrich Drepper <drepper@redhat.com>
655 * po/sv.po: Update from translation team.
657 2006-10-09 Ulrich Drepper <drepper@redhat.com>
659 * po/sv.po: Update from translation team.
661 2006-10-07 Ulrich Drepper <drepper@redhat.com>
663 * po/tr.po: Update from translation team.
665 2006-10-06 Ulrich Drepper <drepper@redhat.com>
667 * po/pl.po: Update from translation team.
669 2006-11-10 Ulrich Drepper <drepper@redhat.com>
672 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
676 2006-11-09 Ulrich Drepper <drepper@redhat.com>
678 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
681 2006-11-10 Jakub Jelinek <jakub@redhat.com>
683 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
686 2006-11-05 Ulrich Drepper <drepper@redhat.com>
688 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
689 Update handling of cache descriptor 0x49 for new models.
690 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
693 2006-11-08 Jakub Jelinek <jakub@redhat.com>
695 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
696 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
697 return false, otherwise return true.
698 (cache_rpath): Return decompose_rpath return value.
700 2006-11-02 Jakub Jelinek <jakub@redhat.com>
702 * malloc/memusage.c (dest): Reset not_me back to false after
705 2006-10-27 Ulrich Drepper <drepper@redhat.com>
707 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
708 split out locking and parameter checking.
709 (_dl_close): Call _dl_close_worker after locking and checking.
710 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
712 * elf/Makefile: Add rules to build and run tst-thrlock.
713 * elf/tst-thrlock.c: New file.
716 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
717 we are sure we do not need it anymore for _dl_close. Also move
718 the asserts inside the lock region.
719 Patch mostly by Suzuki <suzuki@in.ibm.com>.
721 2006-10-17 Jakub Jelinek <jakub@redhat.com>
723 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
724 as signed longs, check for x_base + pos overflow.
725 * sunrpc/Makefile (tests): Add tst-xdrmem2.
726 * sunrpc/tst-xdrmem2.c: New test.
728 2006-10-16 Ulrich Drepper <drepper@redhat.com>
731 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
734 2006-10-13 Ulrich Drepper <drepper@redhat.com>
736 * elf/dl-minimal.c (realloc): Optimize last patch.
738 2006-10-12 Richard Sandiford <richard@codesourcery.com>
741 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
742 and use memcpy() if it does.
744 2006-10-11 Ulrich Drepper <drepper@redhat.com>
746 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
748 2006-10-10 Ulrich Drepper <drepper@redhat.com>
750 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
751 components which lack them.
753 * nis/nis_subr.c (nis_getnames): Make sure that we always return
754 at least one entry consisting of the parameter concatenated with
757 2006-10-09 Jakub Jelinek <jakub@redhat.com>
759 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
760 rather than r->r_brk.
762 2006-10-06 Ulrich Drepper <drepper@redhat.com>
764 * nis/nis_table.c (nis_list): If __follow_path fails in the new
765 code, make sure the nis_freeresult call doesn't crash and that the
766 result is reported correctly.
768 2006-09-27 Jakub Jelinek <jakub@redhat.com>
770 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
771 when callback is NULL.
773 * nis/Versions (libnss_nisplus): Add
774 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
775 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
776 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
777 _nss_create_tablename): Rename to...
778 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
779 ... these. No longer static.
780 (internal_setgrent): Adjust users.
781 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
782 Don't use locking around _nss_grp_create_tablename call.
783 * nis/nss_nisplus/nisplus-initgroups.c: New file.
785 2006-10-06 Andreas Jaeger <aj@suse.de>
787 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
789 2006-10-06 Ulrich Drepper <drepper@redhat.com>
791 * po/pl.po: Update from translation team.
793 * nscd/nscd.c (main): Fix typo in message.
794 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
796 2006-10-02 Jakub Jelinek <jakub@redhat.com>
799 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
800 errno.h, signal.h, unistd.h and sysdep-cancel.h.
801 (__sigprocmask): Define.
803 2006-10-02 Ulrich Drepper <drepper@redhat.com>
805 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
808 2006-10-02 Jakub Jelinek <jakub@redhat.com>
810 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
811 in oldtotal and newtotal calculation.
812 * nscd/nscd-client.h (struct mapped_database): Add datasize
814 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
815 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
817 (__nscd_cache_search): Add checks to make sure we never reference
818 data beyond the current mapping.
820 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
822 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
823 variables const to avoid compiler warnings.
825 * io/fts.c (fts_close): Remove redundant checks.
826 (fts_build): Likewise.
827 (fts_palloc): Likewise.
829 * manual/message.texi (Advanced gettext functions,
830 Using gettextized software): Fix typos.
832 2006-09-30 Ulrich Drepper <drepper@redhat.com>
834 * posix/glob.c (glob_in_dir): Add some comments and asserts to
835 explain why there are no leaks.
837 2006-09-29 Ulrich Drepper <drepper@redhat.com>
839 * libio/wmemstream.c: Include <wchar.h>.
840 * libio/bug-wmemstream1.c: Likewise.
841 * libio/tst-wmemstream1.c: Likewise.
842 * libio/tst-wmemstream2.c: Likewise.
844 * version.h (RELEASE): Bump to 2.5.
845 * README: Regenerated.
847 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
850 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
851 found no group members.
852 Patch by Petr Baudis.
854 2006-09-29 Jakub Jelinek <jakub@redhat.com>
856 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
857 assert bootstrap_map.l_tls_modid is zero.
858 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
861 2006-09-27 Ulrich Drepper <drepper@redhat.com>
863 * libio/stdio.h: Move open_wmemstream prototype to ...
864 * wcsmbs/wchar.h: ... here.
866 2006-09-25 Jakub Jelinek <jakub@redhat.com>
869 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
870 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
871 __{,l}chown to handle the rest.
872 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
873 fchownat syscall and __ASSUME_32BITUIDS case inline, call
874 __{,l}chown to handle the rest.
875 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
877 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
878 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
881 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
882 time, rather allocate increasingly bigger arrays of pointers, if
883 possible with alloca, if too large with malloc.
885 2006-09-24 Jakub Jelinek <jakub@redhat.com>
887 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
889 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
891 2006-09-24 Ulrich Drepper <drepper@redhat.com>
893 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
895 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
896 IFA_F_HOMEADDRESS flag for interfaces.
897 * include/ifaddrs.h (struct in6addrinfo): Define
900 2006-09-21 Jakub Jelinek <jakub@redhat.com>
903 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
904 PTR_DEMANGLE3): Define.
905 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
906 PTR_DEMANGLE3): Likewise.
907 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
908 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
910 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
912 2006-09-20 Jakub Jelinek <jakub@redhat.com>
914 * po/libc.pot: Regenerated.
916 * po/ca.po: Likewise.
917 * po/cs.po: Likewise.
918 * po/da.po: Likewise.
919 * po/de.po: Likewise.
920 * po/el.po: Likewise.
921 * po/en_GB.po: Likewise.
922 * po/es.po: Likewise.
923 * po/fi.po: Likewise.
924 * po/fr.po: Likewise.
925 * po/gl.po: Likewise.
926 * po/hr.po: Likewise.
927 * po/hu.po: Likewise.
928 * po/ja.po: Likewise.
929 * po/ko.po: Likewise.
930 * po/nb.po: Likewise.
931 * po/nl.po: Likewise.
932 * po/pl.po: Likewise.
933 * po/pt_BR.po: Likewise.
934 * po/ru.po: Likewise.
935 * po/rw.po: Likewise.
936 * po/sk.po: Likewise.
937 * po/sv.po: Likewise.
938 * po/tr.po: Likewise.
939 * po/zh_CN.po: Likewise.
940 * po/zh_TW.po: Likewise.
943 * iconv/iconv_prog.c (main): Fix spelling in error message.
944 * iconv/iconvconfig.c (main): Likewise.
945 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
946 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
947 * locale/programs/localedef.c (main): Likewise.
948 * locale/programs/repertoire.c (repertoire_read): Likewise.
949 * timezone/zdump.c (main): Likewise.
950 * nscd/connections.c (handle_request): Fix spelling in log message.
951 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
953 2006-09-20 Ulrich Drepper <drepper@redhat.com>
955 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
958 2006-09-20 Andreas Jaeger <aj@suse.de>
960 * math/libm-test.inc (lrint_test_upward): Fix typo.
962 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
965 * math/libm-test.inc (lrint_test_tonearest): New function.
966 (lrint_test_towardzero): New function.
967 (lrint_test_downward): New function.
968 (lrint_test_upward): New function.
969 (main): Run these new tests.
970 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
972 (two52): Use double not long double.
973 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
974 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
975 (two23): Use float not double.
976 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
977 (two23): Use float not double.
978 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
979 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
980 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
981 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
983 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
985 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
986 Cast sp to unsigned long to avoid compiler warning.
987 Use __makecontext_ret function instead of a trampoline on the stack.
988 (__makecontext_ret): New function.
989 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
991 2006-09-19 Jakub Jelinek <jakub@redhat.com>
993 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
994 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
997 2006-09-19 Ulrich Drepper <drepper@redhat.com>
999 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
1000 sure no reference to the unloaded map's search list remains in the
1003 2006-09-16 Jakub Jelinek <jakub@redhat.com>
1005 * elf/Makefile: Add rules to build and run unload7 test.
1006 * elf/unload7.c: New test.
1007 * elf/unload7mod1.c: New file.
1008 * elf/unload7mod2.c: New file.
1010 2006-09-18 Jakub Jelinek <jakub@redhat.com>
1012 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
1013 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
1014 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1015 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
1016 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1017 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
1018 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
1019 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
1020 PTRACE_GETEVENTMSG): Likewise.
1021 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
1024 2006-09-17 Mike Frysinger <vapier@gentoo.org>
1026 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
1027 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
1028 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
1029 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
1031 2006-09-16 Jakub Jelinek <jakub@redhat.com>
1033 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
1034 write '\0' to the fd.
1035 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
1036 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
1037 Change regs to unsigned long pointer from unsigned int, fix fscr
1040 2006-09-14 Jakub Jelinek <jakub@redhat.com>
1042 * io/Makefile (CFLAGS-fstatat.c): Set.
1043 (CFLAGS-fstatat64.c): Likewise.
1044 (CFLAGS-mknodat.c): Likewise.
1046 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
1047 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
1048 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
1049 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
1051 2006-09-14 Jakub Jelinek <jakub@redhat.com>
1052 Steven Munroe <sjmunroe@us.ibm.com>
1054 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
1055 names to the beginning. Rename "cell" to "cellbe".
1056 (_dl_powerpc_platforms): New.
1057 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
1058 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
1059 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
1060 (_DL_HWCAP_PLATFORM): Define to new mask.
1061 (_dl_platform_string, _dl_string_platform): New functions.
1062 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
1063 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
1065 2006-09-12 Jakub Jelinek <jakub@redhat.com>
1068 * README.libm: Fix a thinko in sqrt algorithm description.
1071 * manual/string.texi (argz_delete): Fix prototype.
1072 Patch by <alpt@freaknet.org>.
1074 2006-08-26 Joseph Myers <joseph@codesourcery.com>
1077 * io/test-lfs.c (do_prepare): Give name_len type size_t.
1078 * io/tst-fcntl.c (do_prepare): Likewise.
1079 * posix/tst-exec.c (do_prepare): Likewise.
1080 * posix/tst-preadwrite.c (do_prepare): Likewise.
1081 * posix/tst-spawn.c (do_prepare): Likewise.
1082 * posix/tst-truncate.c (do_prepare): Likewise.
1083 * rt/tst-aio.c (do_prepare): Likewise.
1084 * rt/tst-aio64.c (do_prepare): Likewise.
1085 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
1088 2006-09-09 Ulrich Drepper <drepper@redhat.com>
1091 * time/mktime.c (guess_time_tm): Fix overflow detection.
1092 * time/Makefile (tests): Add bug-mktime1.
1093 * time/bug-mktime1.c: New file.
1096 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
1099 2006-09-07 Jakub Jelinek <jakub@redhat.com>
1102 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
1103 Ensure relocation doesn't clobber any bits outside of the
1104 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
1105 R_SPARC_HI22 and R_SPARC_H44.
1108 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
1109 (long) (MINSIZE + nb - old_size) is positive.
1111 * malloc/arena.c (grow_heap): When growing bail even if new_size
1115 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
1118 2006-09-06 Jakub Jelinek <jakub@redhat.com>
1120 * posix/regex_internal.c (re_string_reconstruct): Handle
1121 offset < pstr->valid_raw_len && pstr->offsets_needed case.
1122 Ensure no bytes read before raw_mbs array. Pass a saved copy of
1123 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
1124 re_string_context_at.
1125 * posix/Makefile: Add rules to build and run bug-regex26 test.
1126 * posix/bug-regex26.c: New test.
1128 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
1129 rather than col_sym_free. Move seqp declaration earlier.
1131 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
1133 2006-09-05 Jakub Jelinek <jakub@redhat.com>
1135 * nscd/initgrcache.c (addinitgroupsX): Move any_success
1136 decl before first goto out.
1138 2006-09-04 Jakub Jelinek <jakub@redhat.com>
1140 * Makerules (shlib.lds): If have-hash-style, put .hash section
1141 at the end of the RO segment.
1143 2006-09-04 Ulrich Drepper <drepper@redhat.com>
1145 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
1146 style hash table format is used.
1148 2006-09-04 Jakub Jelinek <jakub@redhat.com>
1150 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
1151 randomization rather than before.
1152 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
1154 2006-08-31 Jakub Jelinek <jakub@redhat.com>
1156 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
1158 * malloc/malloc.c (_int_malloc): Use full list insert and not
1159 shortcut which assumes the list is empty for large requests
1162 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
1164 2006-08-30 Jakub Jelinek <jakub@redhat.com>
1166 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
1167 and offout arguments to the prototype.
1168 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
1169 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
1170 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
1171 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
1172 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
1173 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
1174 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
1175 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
1177 2006-08-28 Ulrich Drepper <drepper@redhat.com>
1179 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
1181 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
1184 2006-08-28 Jakub Jelinek <jakub@redhat.com>
1186 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
1187 only if herrno is NETDB_INTERNAL. Handle errors other than
1188 ERANGE outside of the loops, handle TRY_AGAIN.
1190 * locale/programs/ld-ctype.c (translit_flatten): Issue error
1191 if other's ctype category was missing.
1192 * locale/programs/ld-collate.c (collate_read): Return if
1193 copy_locale's collate category is missing.
1195 2006-08-27 Ulrich Drepper <drepper@redhat.com>
1198 * malloc/malloc.c (public_rEALLOc): Try harder by using other
1199 arenas if allocation failed.
1200 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
1202 2006-08-26 Ulrich Drepper <drepper@redhat.com>
1204 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
1206 (malloc_state): Reduce bins size by 2.
1207 (_int_malloc): Fix test for large enough buffer for early termination.
1208 When no unsorted block matches perfectly and an exiting block has
1209 to be split, use full list insert and not shortcut which assumes
1212 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
1215 2006-08-24 Ulrich Drepper <drepper@redhat.com>
1217 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
1220 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
1221 symbol require exact match (these are PLTs).
1222 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
1223 (_dl_ppc64_addr_sym_match): Likewise.
1226 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
1227 If symbol has a value use it.
1228 * elf/tst-dladdr1.c: New file.
1229 * elf/Makefile: Add rules to build and run tst-addr1.
1231 2006-08-24 Jakub Jelinek <jakub@redhat.com>
1233 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
1234 keeps failing and heap growth or new heap creation isn't
1236 * malloc/tst-malloc.c (main): Add new tests.
1238 2006-08-24 Ulrich Drepper <drepper@redhat.com>
1241 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
1242 as in the x86-64 code to use bswap.
1244 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
1247 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
1249 * posix/bits/unistd.h: Likewise.
1251 2006-05-15 Mike Frysinger <vapier@gentoo.org>
1254 * string/strchr.c: Add cast to avoid warning.
1256 2006-08-21 Ulrich Drepper <drepper@redhat.com>
1258 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
1259 platforms define as 512K. For 64-bit platforms as 32MB. The lower
1260 limit is needed to avoid the exploding of the address space
1261 requirement for secondary heaps.
1262 * malloc/arena.c (HEAP_MAX_SIZE): Define using
1263 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
1265 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
1268 * Makerules (depfiles): Handle extra-test-objs the same as
1270 (common-mostlyclean): Likewise.
1271 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
1273 * elf/Makefile (extra-objs): Likewise.
1274 * stdlib/Makefile (extra-objs): Likewise.
1276 2006-08-14 Eric Blake <ebb9@byu.net>
1279 * misc/error.h: Assume C89 or better.
1280 * misc/error.c: Likewise.
1282 2006-08-21 Ulrich Drepper <drepper@redhat.com>
1285 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
1286 __ASSUME_ATFCTS is defined.
1288 2006-08-19 Ulrich Drepper <drepper@redhat.com>
1290 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
1291 to sort in each call.
1293 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
1294 is empty simply return and use next service.
1295 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
1297 * locale/programs/charmap.c (charmap_read): Add new parameter. It
1298 tells us when not finding a charmap file is an error.
1299 * locale/programs/charmap.h: Adjust charmap_read prototype.
1300 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
1301 cannot find a charmap.
1302 * locale/programs/localedef.c (main): Adjust charmap_read call.
1304 2006-08-15 Jakub Jelinek <jakub@redhat.com>
1306 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
1307 sysdeps/posix/pause.c implementation instead.
1309 2006-08-09 Jakub Jelinek <jakub@redhat.com>
1311 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
1314 2006-08-13 Andreas Schwab <schwab@suse.de>
1316 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
1317 Don't clobber caller's LRSAVE.
1318 (_dl_prof_resolve): Likewise.
1320 2006-08-14 Ulrich Drepper <drepper@redhat.com>
1323 * libio/memstream.c (open_memstream): Allocate initial buffer with
1325 * libio/wmemstream.c (open_wmemstream): Likewise.
1326 * libio/strops.c: Pretty printing.
1327 (_IO_str_overflow): Clear uninitialized part of the new buffer.
1328 (enlarge_userbuf): New function.
1329 (_IO_str_seekoff): Call it if seek position is larger than current
1331 * libio/wstrops.c: Likewise.
1332 * libio/vasprintf.c: Add comment as to why we do not have to use
1333 calloc instead of malloc to allocate initial buffer.
1334 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
1335 * libio/bug-memstream1.c: New file.
1336 * libio/bug-wmemstream1.c: New file.
1338 2006-08-13 Ulrich Drepper <drepper@redhat.com>
1340 * libio/wstrops.c: Remove dead macro definitions and comments.
1341 * libio/strops.c: Likewise.
1344 * login/utmpname.c (__utmpname): Remove unnecessary test.
1346 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
1349 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
1352 2006-08-13 Ulrich Drepper <drepper@redhat.com>
1355 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
1357 * sysdeps/unix/clock_settime.c: Add support for platform-specific
1358 setting of CPU clocks.
1360 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
1363 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
1364 since C99 requires the result to promote to 'int' when uint_least8_t
1365 and uint_least16_t promote to 'int'.
1367 2006-08-12 Ulrich Drepper <drepper@redhat.com>
1370 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
1371 lenght of one output field, correct bitmask creation.
1372 * locale/programs/ld-time.c: Add alignment.
1375 * misc/error.c: Add space between program name and message if file
1378 2006-08-03 Eric Blake <ebb9@byu.net>
1381 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
1383 2006-08-09 Ulrich Drepper <drepper@redhat.com>
1385 * malloc/memusagestat.c: Silence warnings.
1387 * malloc/malloc.c: Dynamically size mmap treshold if the program
1388 frees mmaped blocks.
1389 Patch by Valerie Henson and Arjan van de Ven.
1391 2006-08-08 Jakub Jelinek <jakub@redhat.com>
1393 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
1396 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
1397 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
1398 (DEF): Don't put the var into .gnu.linkonce.r.* section.
1399 Only provide var definitions in strtol_l (or for *ull*
1402 * stdio-common/bug16.c (tests): New array.
1403 (do_tests): Allow the first hexadecimal digit
1404 to be 1, 2, 4 or 8. Do 3 additional tests.
1406 * sysdeps/s390/fpu/libm-test-ulps: Update.
1408 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
1409 fchownat syscall if available.
1410 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
1411 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
1412 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
1414 2006-08-07 Ulrich Drepper <drepper@redhat.com>
1416 * nis/nis_xdr.c: Avoid some function calls.
1418 2006-08-07 Jakub Jelinek <jakub@redhat.com>
1419 Ulrich Drepper <drepper@redhat.com>
1421 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
1422 short cut if only one name component is stripped away.
1424 2006-08-07 Ulrich Drepper <drepper@redhat.com>
1426 * nis/nis_call.c: Minor cleanups throughout.
1427 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
1428 (first_shoot): Add search_parent_first parameter. Only if it is set
1429 search parent server first.
1430 If directory for table found through cold start cache is not the same
1431 as referenced in the cache, don't use it.
1432 (__nisfind_server): Take additional parameter. Pass it on to
1434 (__prepare_niscall): Adjust __nisfind_server call.
1435 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
1436 * nis/nis_table.c: Adjust __nisfind_server call.
1437 * nis/nis_lookup.c: Likewise.
1438 (nis_lookup): Don't loop endlessly if name is reduced to ".".
1440 2006-08-03 Ulrich Drepper <drepper@redhat.com>
1443 * math/s_cacosh.c: Return values from positive branch.
1444 * math/s_cacoshf.c: Likewise.
1445 * math/s_cacoshl.c: Likewise.
1448 * sysvipc/sys/msg.h: Change return value to ssize_t.
1449 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
1450 * sysvipc/msgrcv.c: Likewise.
1451 * include/sys/msg.h: Likewise.
1453 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
1454 test introduced in patch for bz #661.
1455 (getgrouplist): Simplify code a bit. Don't allocate one additional
1456 element for NEWGROUPS.
1459 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
1460 'f', use '1' as leading digit not '\1'.
1461 * stdio-common/Makefile (tests): Add bug16.
1462 * stdio-common/bug16.c: New file.
1465 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
1466 and don't try to open it. The patch introducing the macro
1467 contained a bug and used the same file name as the new file
1468 instead of using /var/adm/hostid. Nobody complaint so I'm taking
1469 this out completely.
1472 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
1473 Patch by Jerry James <Jerry.James@usu.edu>.
1475 * rt/Makefile (tests): Add tst-clock2.
1476 * rt/tst-clock2.c: New file.
1479 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
1480 function and its parameters and pass it to new thread.
1481 (__gai_notify): Add support for alternative waiting for completion.
1482 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
1483 waiting for completion.
1484 * resolv/getaddrinfo_a.c: Likewise.
1485 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
1486 waiting for completion is used.
1487 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
1488 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
1489 * resolv/gai_error.c: Likewise.
1490 * resolv/gai_sigqueue.c: Likewise.
1492 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
1494 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
1495 errno to EBADF and return MACH_PORT_NULL.
1497 2006-06-23 Joseph Myers <joseph@codesourcery.com>
1500 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
1502 2006-08-02 Ulrich Drepper <drepper@redhat.com>
1504 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
1505 walk them instead of the symbol table.
1507 2006-08-01 Ulrich Drepper <drepper@redhat.com>
1510 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
1511 status of NSS calls, not the number of returned entries.
1513 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
1514 request_key, keyctl.
1516 2006-07-31 Ulrich Drepper <drepper@redhat.com>
1518 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
1520 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
1522 * elf/tst-auditmod1.c: Fix typo in #error.
1524 2006-07-31 Ulrich Drepper <drepper@redhat.com>
1526 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
1528 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
1530 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
1532 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
1533 that the directory is empty even on non-POSIX filesystems.
1535 2006-07-31 Ulrich Drepper <drepper@redhat.com>
1537 * elf/dl-open.c (dl_open_worker): Add branch prediction.
1539 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
1540 the backend NSS module. If backend setgrent call failed, don't have
1541 internal_setgrent fail. Just remember this until it is needed.
1542 * nis/nss_compat/compat-pwd.c: Likewise.
1543 * nis/nss_compat/compat-spwd.c: Likewise.
1545 2006-07-30 Roland McGrath <roland@redhat.com>
1547 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
1548 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
1549 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
1550 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
1552 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
1553 (nanosleep_not_cancel): New macro.
1554 (sigsuspend_not_cancel): new macro.
1555 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
1556 (do_sigsuspend): Define as inline.
1557 (__sigsuspend): Always use do_sigsuspend.
1558 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
1559 * include/signal.h: Declare __sigsuspend_nocancel.
1560 * sysdeps/posix/pause.c
1561 [! NO_CANCELLATION] (__pause_nocancel): New function.
1563 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
1564 * include/time.h (__nanosleep_nocancel): Likewise.
1566 2006-07-30 Ulrich Drepper <drepper@redhat.com>
1568 * locale/programs/localedef.c (add_to_readlist): Rename local
1569 variables to avoid confusion.
1571 * locale/programs/charmap.c (charmap_read): Emit error message if
1572 charmap couldn't be found or read.
1574 2006-07-28 Ulrich Drepper <drepper@redhat.com>
1576 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1577 __ASSUME_FUTEX_LOCK_PI.
1578 * include/time.h: Declare __nanosleep_nocancel.
1579 * include/unistd.h: Declare __pause_nocancel.
1581 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
1582 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
1583 get the __stack_chk_fail_local definition when it's needed.
1585 2006-07-26 Ulrich Drepper <drepper@redhat.com>
1587 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
1588 * dlfcn/bug-atexit3.c: New file.
1589 * dlfcn/bug-atexit3-lib.cc: New file.
1591 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
1592 used when the namespace is not the base namespace.
1594 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
1596 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
1597 (__new_exitfn): Bump it in every successful call.
1598 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
1599 more exit handlers, call them right away.
1600 * stdlib/exit.h: Declare __new_exitfn_called.
1602 2006-07-25 Ulrich Drepper <drepper@redhat.com>
1604 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
1605 calling registered handler.
1607 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
1608 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1609 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1610 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1611 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1612 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1613 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1614 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1616 2006-07-10 Ulrich Drepper <drepper@redhat.com>
1618 * elf/dl-lookup.c (dl_new_hash): New functions.
1619 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
1620 value here. Compute new-style hash value. Pass new hash value
1621 and reference to variable with the old value to do_lookup_x.
1622 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
1623 old-style hash table.
1624 (_dl_debug_bindings): Pass new hash value and reference to variable
1625 with the old value to do_lookup_x.
1626 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
1627 new-style hash value and change old-style hash value parameter to
1628 be a reference. Reoganize functions to determine whether
1629 new-style hash table is available. Only fall back on old-style
1630 table. If old-style hash value is needed, compute it here.
1631 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
1633 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
1634 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
1635 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
1636 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
1637 * Makeconfig: If linker supports --hash-style option add it to all
1638 linker command lines to build DSOs.
1639 * config.make.in: Define have-hash-style.
1640 * configure.in: Test whether linker supports --hash-style option.
1642 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
1643 * sysdeps/generic/ldsodefs.h: Adjust prototype.
1645 2006-06-27 Ulrich Drepper <drepper@redhat.com>
1647 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
1650 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
1651 RPATH of main map twice.
1653 2006-06-22 Ulrich Drepper <drepper@redhat.com>
1655 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
1656 look further, return original strings.
1657 (_nl_find_msg): Do not return found translation if the conversion
1658 failed. Either signal the string is unusable or that something went
1659 wrong and the original should be used.
1661 2006-06-21 Ulrich Drepper <drepper@redhat.com>
1663 * string/_strerror.c (__strerror_r): Add __builtin_expect.
1665 2006-06-14 Jakub Jelinek <jakub@redhat.com>
1668 * misc/insremque.c (insque): Handle prev == NULL.
1669 * misc/Makefile (tests): Add tst-insremque.
1670 * misc/tst-insremque.c: New test.
1672 2006-06-17 Ulrich Drepper <drepper@redhat.com>
1675 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
1676 conflict with DL_DST_REQUIRED.
1678 2006-06-16 Ulrich Drepper <drepper@redhat.com>
1680 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
1681 match what Solaris does.
1683 2006-06-04 Ulrich Drepper <drepper@redhat.com>
1685 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
1686 local_setegid instead of seteuid and setegid.
1687 * sysdeps/generic/local-setxid.h: New file.
1688 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
1690 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
1692 * string/Makefile (tests): Add bug-envz1.
1693 * string/bug-envz1.c: New file.
1695 2006-06-02 Jakub Jelinek <jakub@redhat.com>
1697 * posix/regex_internal.c (re_string_skip_chars): If no character has
1698 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
1699 to the byte which couldn't be converted.
1700 (re_string_reconstruct): Don't clear valid_raw_len before calling
1701 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
1702 tip_context using re_string_context_at.
1703 * posix/Makefile: Add rules to build and run bug-regex25 test.
1704 * posix/bug-regex25.c: New test.
1706 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
1709 * string/envz.c (envz_strip): Correct erroneously reversed src
1710 and dest parameters to memmove() invocation.
1712 2006-05-30 Jakub Jelinek <jakub@redhat.com>
1714 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
1715 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
1716 to make sure the database has been already invalidated.
1717 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
1718 after the cache has been invalidated. Use pthread_mutex_lock rather
1719 than pthread_mutex_trylock if fd != -1.
1720 * nscd/connections.c (invalidate_cache): Add fd argument, write
1721 response to fd if not calling prune_cache, pass fd to prune_cache.
1722 (handle_request): Adjust invalidate_cache caller.
1723 (nscd_run): Pass -1 as fd to prune_cache.
1725 2006-05-30 Ulrich Drepper <drepper@redhat.com>
1727 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
1730 2006-05-29 Ulrich Drepper <drepper@redhat.com>
1732 * nscd/nscd.h (struct database_dyn): Add prunelock field.
1733 * nscd/cache.c (prune_cache): Take prunelock before starting the
1734 work. Just return in case it is already taken.
1735 * nscd/connections.c (dbs): Initialize .prunelock.
1737 2006-05-25 Ulrich Drepper <drepper@redhat.com>
1739 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
1740 copying. No need to allocate new array for group members. Just
1741 move the pointers and update the size.
1743 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
1744 Avoid memory leak in case realloc fails. Simplification for
1745 better code generation.
1747 Avoid deprecation warning because of libc_hidden_proto for
1749 * inet/inet6_option.c (option_alloc): Renamed from
1750 inet6_option_alloc. Made static.
1751 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1752 (inet6_option_append): Call option_alloc.
1753 * include/netinet/in.h: Remove libc_hidden_proto for
1756 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
1757 for cleanup when cb!=NULL [Coverity CID 233].
1759 2006-05-24 Ulrich Drepper <drepper@redhat.com>
1762 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
1763 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
1764 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
1765 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
1766 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
1767 and inet6_rth_getaddr.
1768 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
1770 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
1771 Mark inet6_option_* interfaces as deprecated.
1772 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
1773 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
1774 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
1775 inet6_rth_segments, and inet6_rth_getaddr.
1776 * inet/inet6_opt.c: New file.
1777 * inet/inet6_rth.c: New file.
1779 * inet/netinet/icmp6.h: Pretty printing.
1782 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
1784 2006-05-23 Ulrich Drepper <drepper@redhat.com>
1786 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
1787 doing it all here. When server does not know the answer do not
1788 fail immediate, try parent first.
1790 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
1793 2006-05-20 Ulrich Drepper <drepper@redhat.com>
1795 * nis/nis_call.c (__prepare_niscall): New function. Split out
1797 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
1799 (__follow_path): New function. Split out from nis_list.
1800 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
1802 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
1804 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
1806 * nis/Versions: Export __prepare_niscall, __create_ib_request,
1807 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
1808 from libnsl for version GLIBC_PRIVATE.
1809 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
1810 Remove entry parameter from _nss_nisplus_parse_pwent and
1811 _nss_nisplus_parse_grent.
1812 * nis/nss_nisplus/nisplus-parser.c: Likewise.
1813 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
1814 again. Rewrite getpwent handling to not use nis_first_entry and
1815 nis_next_entry. Roll out own niscall handling.
1816 * nis/nss_nisplus/nisplus-grp.c: Likewise.
1818 * sunrpc/xdr_rec.c: Fix typo in comment.
1820 2006-05-19 Ulrich Drepper <drepper@redhat.com>
1822 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
1825 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
1826 to allocate memory for my_pollfd. Better initialization of
1827 cb_is_running. Use TEMP_FAILURE_RETRY.
1829 * malloc/memusage.sh (memusageso): Add quotes.
1830 (memusagestat): Likewise.
1831 * debug/xtrace.sh (pcprofileso): Likewise.
1832 (pcprofiledump): Likewise.
1833 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
1835 * malloc/Makefile ($(objpfx)memusage): Likewise.
1837 * nis/nis_callback.c (__nis_create_callback): Calls to
1838 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
1839 asprintf call fails.
1841 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
1842 no uninitialized memory is passed to sendto.
1844 2006-05-18 Ulrich Drepper <drepper@redhat.com>
1846 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
1847 of snprintf+strdup. Handle OOM.
1848 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
1849 cb->serv together. Remove now obsolete free calls.
1850 (__nis_destroy_callback): Remove now obsolete free call.
1852 2006-05-18 David Woodhouse <dwmw2@redhat.com>
1854 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
1855 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
1856 and ULA respectively). Set precedence for IPv4 address to 10 as
1857 defined in RFC3484 for preferring IPv6.
1858 * posix/gai.conf: Update to match the new default tables.
1860 2006-05-18 Jakub Jelinek <jakub@redhat.com>
1862 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
1863 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
1864 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
1865 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
1867 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
1869 (init_nss_interface): Remove initialization of these variables.
1871 2006-05-18 Ulrich Drepper <drepper@redhat.com>
1873 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
1874 nis_free_directory forward to avoid duplication.
1876 2006-05-17 Ulrich Drepper <drepper@redhat.com>
1878 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
1879 rec_dirsearch returning NULL.
1880 (first_shoot): Handle __nis_finddirectory returning NULL.
1881 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
1883 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
1884 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
1886 2006-05-17 Jakub Jelinek <jakub@redhat.com>
1888 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
1891 2006-05-15 Ulrich Drepper <drepper@redhat.com>
1893 * include/rpc/pmap_prot.h: Mark all functions as hidden.
1895 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
1896 * nscd/nscd_getgr_r.c: Likewise.
1898 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
1900 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
1901 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
1903 * stdlib/longlong.h (__clz_tab): Mark as hidden.
1905 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
1907 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
1909 * include/rpc/auth.h: Mark xdr_des_block_internal and
1910 xdr_opaque_auth_internal as hidden.
1912 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
1915 * include/rpc/xdr.h: Mark all _internal functions as hidden.
1917 * misc/getusershell.c (okshells): Don't use static initializers,
1920 * stdlib/fmtmsg.c (keywords): Change type of len element to
1921 uint32_t to not waste space on 64bit machines.
1923 * locale/setlocale.c: Change _nl_category_names into a string.
1924 Add new _nl_category_name_idxs. Change all users.
1925 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
1926 Declare _nl_category_name_idxs.
1927 * locale/findlocale.c: Adjust for _nl_category_names change.
1928 * locale/loadlocale.c: Likewise.
1929 * locale/newlocale.c: Likewise.
1930 * intl/dcigettext.c: Likewise.
1932 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
1933 (add_alias2): ...here. New function.
1934 (__gconv_read_conf): Simplify builtin alias handling.
1935 (builtin_aliases): Convert to string to avoid relocations.
1936 * iconv/gconv_builtin.h: Add comment about correct formatting.
1938 2006-05-15 Jakub Jelinek <jakub@redhat.com>
1940 * resolv/res_debug.c (loc_ntoa): Make error const.
1942 2006-05-14 Andreas Schwab <schwab@suse.de>
1944 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
1946 2006-05-12 Jakub Jelinek <jakub@redhat.com>
1948 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
1949 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
1952 2006-05-11 Ulrich Drepper <drepper@redhat.com>
1954 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
1956 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
1958 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
1959 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
1961 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
1962 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
1964 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
1965 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
1968 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
1969 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
1972 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
1973 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
1975 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
1976 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
1978 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
1979 * include/rpcsvc/nis_callback.h: New file.
1981 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
1982 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
1984 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
1985 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
1987 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
1988 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
1990 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
1991 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
1993 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
1994 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
1997 * nis/nis_xdr.h: Mark all functions as hidden. Remove
1998 __BEGIN_DECLS and __END_DECLS, the header is not installed.
2000 * nis/nis_error.c: Remove table of strings. Use position
2001 independent mechanism.
2002 * nis/nis_error.h: New file.
2004 2006-05-11 Jakub Jelinek <jakub@redhat.com>
2006 * locale/programs/ld-time.c (time_finish): If wide era name or
2007 format aren't provided, set both wname and wformat to L"".
2009 2006-05-10 Ulrich Drepper <drepper@redhat.com>
2011 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
2012 results if the call was succesful.
2014 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
2016 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
2019 2006-05-10 Jakub Jelinek <jakub@redhat.com>
2021 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
2023 2006-05-10 Ulrich Drepper <drepper@redhat.com>
2025 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
2026 caller makes sure this is not the case.
2027 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
2029 2006-05-09 Ulrich Drepper <drepper@redhat.com>
2031 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
2034 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
2035 [Coverity CID 229, 230]
2037 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
2039 (hol_help): Likewise. [Coverity CID 226, 227]
2041 * string/argz-replace.c (__argz_replace): Unconditionally call
2042 free on SRC. [Coverity CID 225]
2044 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
2045 the return value of __nis_default_owner and __nis_default_group,
2046 it has been especially allocated. [Coverity CID 224]
2048 * nis/nis_defaults.c (searchXYX): New functions. Used by both
2049 searchgroup and searchowner. Significantly simplified.
2050 (__nis_default_owner): Remove duplication. Do not locally copy the
2051 string before duplicating it.
2052 (__nis_default_group): Likewise.
2054 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
2055 we must clear the variable before calling __nisfind_server.
2057 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
2058 nis_getnames. [Coverity CID 223]
2060 * locale/programs/locfile.c (locfile_read): Use alloca instead of
2061 xmalloc to allocate local repertoire name. [Coverity CID 222]
2063 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
2064 allocate memory for the input to add_bytes. [Coverity CID 221]
2066 * posix/wordexp.c (w_addword): Free word if realloc fails and it
2067 was allocated here. [Coverity CID 219, 220]
2069 * posix/getconf.c (print_all): Free confstr data after printing.
2072 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
2073 list allocation fails. [Coverity CID 215]
2075 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
2078 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
2079 string is NULL. [Coverity CID 212]
2080 * argp/Makefile: Add rules to build and run bug-argp1.
2081 * argp/bug-argp1.c: New file.
2083 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
2085 * stdlib/canonicalize.c (__realpath): Likewise.
2087 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
2088 pointer. [Coverity CID 206]
2090 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
2091 in statically linked code.
2092 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
2093 statically built code, be prepared to have no link map.
2096 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
2097 dgettext calls. [Coverity CID 204]
2099 * argp/argp-help.c (struct uparams): Remove valid member. Change
2101 (uparam_names): Reduce size. Avoid relative relocations.
2102 Moved to read-only segment.
2103 (fill_in_uparams): Update for new layout.
2105 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
2106 assumed to always be != NULL. [Coverity CID 202]
2108 * argp/argp-help.c (hol_entry_help): Remove some dead code
2111 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
2112 away a few more unconditional yperr2nss calls.
2113 (_nss_nis_getservbyname_r): Likewise.
2115 2006-05-06 Ulrich Drepper <drepper@redhat.com>
2117 * sysdeps/generic/ldsodefs.h: Remove support for non-core
2120 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
2121 that unused memory passed to sendto is nevertheless initialized.
2124 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
2125 possibly unaligned memory accesses.
2127 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
2128 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
2129 and __putlong respectively. Correct buffer overflow check for
2132 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
2134 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
2135 (send_dg): Rewrite error handling to be more compact and avoid
2136 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
2138 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
2140 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
2141 instead of ns_get16.
2142 (res_queriesmatch): Likewise. Minor optimization.
2145 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
2146 __libc_res_nsend might reallocate the buffer for the answer. In
2147 this case we have to reload the HP pointer.
2149 2006-05-05 Ulrich Drepper <drepper@redhat.com>
2151 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
2152 some branch prediction hints.
2154 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
2155 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2156 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2157 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2158 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2159 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2160 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2161 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2163 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
2165 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
2166 by a GOT relocation to make Scrt1.o position independent.
2167 * sysdeps/s390/s390-64/elf/start.S: Likewise.
2169 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
2170 six system call parameters.
2171 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
2173 2006-05-05 Ulrich Drepper <drepper@redhat.com>
2175 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
2178 * sunrpc/svc_udp.c (BZERO): Remove definition.
2180 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
2182 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
2183 (des_SPtrans): Use uint32_t type.
2184 (des_skb): Likewise.
2186 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
2188 2006-05-05 Jakub Jelinek <jakub@redhat.com>
2191 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
2194 2006-05-05 Ulrich Drepper <drepper@redhat.com>
2196 * locale/programs/ld-address.c (address_finish): Fix one more
2197 place where the iso639 array might be accessed beyond the limits.
2199 2006-05-04 Ulrich Drepper <drepper@redhat.com>
2201 * nis/nis_table.c (nis_list): Avoid clearing res twice before
2202 filling it for the first time.
2204 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
2206 Free res object content before returning.
2208 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
2210 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
2213 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
2214 cleanup for initial thread, just the free call on TVP.
2216 * nscd/gai.c (__getline): Define.
2219 See ChangeLog.16 for earlier changes.