1 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
4 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5 Preserve sign in signgamp when x is zero.
7 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
9 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
10 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
11 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
12 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
13 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
14 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
16 2008-04-09 Ulrich Drepper <drepper@redhat.com>
19 * sysdeps/i386/i686/memcpy.S: Optimize copying of aligned buffers.
22 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't return
25 * stdlib/tst-makecontext.c: Change parameter to cf to negative
26 value to check for correct sign extension.
29 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
30 Copy 64-bit parameter values even though this is not required in
33 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
36 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
38 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
41 2008-04-09 Jakub Jelinek <jakub@redhat.com>
43 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
45 2008-04-09 Ulrich Drepper <drepper@redhat.com>
48 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
49 in line-buffered stream failed.
50 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
52 2008-04-08 Ulrich Drepper <drepper@redhat.com>
55 * scripts/abi-versions.awk: If the version specified by
56 --enable-oldest-abi is older than the first version for this
57 architecture, use the default version.
59 * locale/programs/ld-collate.c (collate_read): Ignore script lines
60 as well when ignoring the whole category.
62 2008-04-07 Ulrich Drepper <drepper@redhat.com>
65 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
66 ETHERTYPE_* definitions.
67 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
69 2008-04-07 Jakub Jelinek <jakub@redhat.com>
71 * stdlib/mbtowc.c (__no_r_state): Remove.
72 (mbtowc): New static state variable. Use it instead of
74 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
75 (__wctomb_state): New hidden variable.
76 (wctomb): Use __wctomb_state instead of __no_r_state.
77 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
78 (__wctomb_state): New extern decl.
79 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
81 2008-04-07 Ulrich Drepper <drepper@redhat.com>
84 * resolv/res_init.c: Handle scope IDs in resolv.conf.
86 2008-04-07 Jakub Jelinek <jakub@redhat.com>
88 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
90 2008-04-06 Ulrich Drepper <drepper@redhat.com>
92 * po/nl.po: Update from translation team.
94 2008-03-31 Ulrich Drepper <drepper@redhat.com>
97 * string/strfry.c: Handle empty strings again.
99 2008-03-30 Ulrich Drepper <drepper@redhat.com>
102 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
103 before looking for translation.
104 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
105 * locale/freelocale.c: Likewise.
106 * locale/newlocale.c: Likewise.
107 * locale/setlocale.c: Likewise.
108 Based partially on a patch by ryo@np.css.fujitsu.com.
110 2008-03-30 Jakub Jelinek <jakub@redhat.com>
112 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
113 acquiring wrlock. Do conv_tab allocation while holding lock.
114 * intl/Makefile: Add rules to build and run tst-gettext6.
115 * intl/tst-gettext6.c: New test.
116 * intl/tst-gettext6.sh: New file.
118 2008-03-30 Ulrich Drepper <drepper@redhat.com>
120 * po/nl.po: Update from translation team.
122 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
123 provided through st_blksize, try the default size before giving up.
125 2008-03-29 Ulrich Drepper <drepper@redhat.com>
127 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
130 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
132 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
133 error message. POSIX today does not require the messages to be in
134 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
137 * sunrpc/auth_unix.c: Unify printed strings.
138 * sunrpc/clnt_tcp.c: Likewise.
139 * sunrpc/clnt_udp.c: Likewise.
140 * sunrpc/clnt_unix.c: Likewise.
141 * sunrpc/svc_tcp.c: Likewise.
142 * sunrpc/svc_udp.c: Likewise.
143 * sunrpc/svc_unix.c: Likewise.
144 * sunrpc/xdr.c: Likewise.
145 * sunrpc/xdr_array.c: Likewise.
146 * sunrpc/xdr_rec.c: Likewise.
147 * sunrpc/xdr_ref.c: Likewise.
148 * locale/programs/ld-time.c (time_finish): Unify messages.
149 * locale/programs/locfile.c (handle_copy): Fix typo.
150 * nscd/nscd.c (options): Fix typo.
153 * stdlib/strtod_l.c: Use correct sign for result in one more
155 Patch by Eric Blake <ebb9@byu.net>.
157 2008-03-27 Jakub Jelinek <jakub@redhat.com>
159 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
160 and creat system calls.
161 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
163 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
165 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
166 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
167 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
169 2008-03-27 Ulrich Drepper <drepper@redhat.com>
171 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
172 <linux/limits.h> has defined it.
173 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
174 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
176 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
177 it instead of ARG_MAX.
179 2008-03-25 Jakub Jelinek <jakub@redhat.com>
181 * posix/gai.conf: Fix comment for scope nullbits.
182 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
183 default to 128 bits for v4 mapped addresses.
185 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
187 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
188 ptrace call to get the ieee_instruction_pointer from the kernel.
189 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
190 ptrace call to set the ieee_instructtion_pointer.
191 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
192 Add comment that ieee_instruction_pointer is always 0.
194 2008-03-09 Andreas Jaeger <aj@suse.de>
197 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
198 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
199 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
201 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
202 (rint_test): Likewise.
204 2008-03-24 Ulrich Drepper <drepper@redhat.com>
206 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
208 (__nisfind_server): Similar for open readColdStartFile call.
209 Patch partially by Jim Meyering.
210 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
211 around internal_setent call.
213 * po/vi.po: New Vietnamese translation.
215 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
218 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
219 remove CLONE_STOPPED.
221 2008-02-10 Jim Meyering <meyering@redhat.com>
223 Remove useless "if" before "free":
224 * elf/ldconfig.c (parse_conf_include): Likewise.
225 * gmon/gmon.c (weak_alias): Likewise.
226 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
227 * inet/rcmd.c (__validuser2_sa): Likewise.
228 * intl/bindtextdom.c (set_binding_values): Likewise.
229 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
230 * libio/genops.c (save_for_backup): Likewise.
231 * libio/wgenops.c (save_for_wbackup): Likewise.
232 * locale/programs/ld-collate.c (collate_read): Likewise.
233 * locale/programs/linereader.c (get_string): Likewise.
234 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
235 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
236 * resolv/res_debug.c (do_section): Likewise.
237 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
238 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
239 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
240 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
241 * time/tzset.c (tzset_internal): Likewise.
243 2008-03-18 Jakub Jelinek <jakub@redhat.com>
245 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
248 2008-03-11 Ulrich Drepper <drepper@redhat.com>
251 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
252 not stream for output file. Open output file here.
253 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
254 and output file name.
255 (process_fd): Likewise.
256 (process_file): Likewise.
257 (main): Adjust callers of changed functions.
258 * iconv/iconv_prog.h: Adjust prototype.
260 2008-03-09 Andreas Jaeger <aj@suse.de>
263 * sysdeps/ia64/ieee754.h: Use protected namespace
264 __BIG_ENDIAN/__LITTLE_ENDIAN.
265 * sysdeps/ieee754/ieee754.h: Likewise.
266 Patch by Aurelien Jarno <aurelien@aurel32.net>.
268 2008-03-08 Roland McGrath <roland@frob.com>
270 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
271 ignore a signal that came from a machine exception, treat it as a
272 fatal core-dump signal instead.
273 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
275 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
276 Clear DF bit in thread state's eflags.
277 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
279 2008-03-08 Ulrich Drepper <drepper@redhat.com>
282 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
283 of NAN(...) sequence.
284 * stdlib/Makefile (tests): Add tst-strtod6.
285 * stdlib/tst-strtod6.c: New file.
287 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
290 * posix/getopt.c (_getopt_internal_r): Clarify error message by
291 putting offending option character in quotes. Clean up error
293 * po/be.po: Adjust msgstr in translation file.
294 * po/bg.po: Likewise.
295 * po/ca.po: Likewise.
296 * po/cs.po: Likewise.
297 * po/da.po: Likewise.
298 * po/de.po: Likewise.
299 * po/es.po: Likewise.
300 * po/fr.po: Likewise.
301 * po/hr.po: Likewise.
302 * po/ko.po: Likewise.
303 * po/nl.po: Likewise.
304 * po/rw.po: Likewise.
305 * po/sk.po: Likewise.
306 * po/sv.po: Likewise.
307 * po/tr.po: Likewise.
308 * po/zh_CN.po: Likewise.
309 * po/zh_TW.po: Likewise.
312 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
313 Patch by Roland Bless <roland@bless.de>.
315 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
317 * elf/Makefile (routines): Add dl-sysdep.
318 (elide-routines.os): Likewise.
320 2008-03-07 Ulrich Drepper <drepper@redhat.com>
323 * elf/dl-sysdep.c: Undefine ROUND after use.
324 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
325 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
326 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
327 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
329 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
330 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
332 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
334 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
335 _dl_tls_get_addr_soft element.
336 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
337 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
338 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
340 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
341 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
342 of internal_function.
344 * stdlib/Makefile (aux): Add tens_in_limb.
345 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
346 * stdlib/tens_in_limb.c: ...here. New file.
349 * sysdeps/unix/sysv/linux/pathconf.h: Declare
350 __statfs_chown_restricted.
351 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
352 for _PC_CHOWN_RESTRICTED.
353 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
354 Implement __statfs_chown_restricted.
355 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
356 _POSIX_CHOWN_RESTRICTED value to zero.
357 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
360 * sysdeps/x86_64/rtld-memset.c: New file.
362 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
364 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
366 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
367 Barcelona machine. Make default fall through branch of
368 __x86_64_preferred_memory_instruction check as the integer code path.
370 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
372 * sysdeps/x86_64/cacheinfo.c
373 (__x86_64_preferred_memory_instruction): New variable.
374 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
376 * sysdeps/x86_64/memset.S: Rewrite.
378 2008-03-04 Jakub Jelinek <jakub@redhat.com>
380 * include/stdio.h (__asprintf_chk, __dprintf_chk,
381 __obstack_printf_chk): New prototypes.
382 (__vasprintf_chk, __vdprintf_chk,
383 __obstack_vprintf_chk): Likewise.
384 Add libc_hidden_proto.
386 (_IO_obstack_jumps): No longer static, add attribute_hidden.
387 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
388 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
389 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
390 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
391 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
392 __obstack_vprintf_chk): New prototypes.
393 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
394 obstack_vprintf): New inlines.
395 * debug/dprintf_chk.c: New file.
396 * debug/vdprintf_chk.c: New file.
397 * debug/asprintf_chk.c: New file.
398 * debug/vasprintf_chk.c: New file.
399 * debug/obprintf_chk.c: New file.
400 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
401 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
402 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
404 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
405 vdprintf_chk and obprintf_chk, set CFLAGS for them.
406 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
407 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
409 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
410 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
411 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
412 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
413 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
415 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
416 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
418 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
419 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
420 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
421 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
422 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
423 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
425 2008-03-04 Ulrich Drepper <drepper@redhat.com>
428 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
429 Patch by Roy Marples <roy@marples.name>.
432 * malloc/malloc.c: Fix typo in comment.
435 * locale/iso-639.def: Add Shuswap.
437 2008-02-25 Jakub Jelinek <jakub@redhat.com>
440 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
441 overwrite *h_errnop/*errnop values from getanswer_r in case of
444 2008-03-03 Ulrich Drepper <drepper@redhat.com>
447 * nscd/connections.c (dbs): Add initializers for .suggested_module.
448 (verify_persistent_db): Remove one unnecessary test and add a new one
449 for bad configuration.
450 (nscd_init): Improve error reported when persistent database cannot
452 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
453 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
454 .suggested_module and .max_db_size and case config file says the
456 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
459 * nis/ypclnt.c (yp_order): Fix handling of return value of
461 Patch by Jeff Moyer <jmoyer@redhat.com>.
463 * po/fr.po: Update from translation team.
465 2008-02-22 Andreas Jaeger <aj@suse.de>,
466 Carlos O'Donell <carlos@systemhalted.org>
469 * FAQ.in: Describe why glibc needs to be compiled with
472 2008-02-19 Roland McGrath <roland@redhat.com>
474 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
476 2008-02-15 Ulrich Drepper <drepper@redhat.com>
479 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
480 __USE_MISC is defined.
482 2008-02-10 Ulrich Drepper <drepper@redhat.com>
484 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
485 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
487 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
488 timerfd_gettime, timerfd_settime.
489 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
490 timerfd_gettime, timerfd_settime for GLIBC_2.8.
492 2008-02-08 Roland McGrath <roland@redhat.com>
494 * elf/elf.h (NT_PPC_SPE): New macro.
496 2008-02-06 Roland McGrath <roland@redhat.com>
498 * Makerules ($(common-objpfx)sysd-rules):
499 Depend on $(sysdep-makeconfigs).
501 2008-01-31 Roland McGrath <roland@redhat.com>
504 * configure.in: Use -print-file-name if it yields a directory,
505 for each of include and include-fixed.
506 * configure: Regenerated.
508 * Makeconfig (sysd-rules-targets): New variable.
509 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
510 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
512 2008-01-30 Roland McGrath <roland@redhat.com>
514 * manual/libc.texinfo: Update back-cover text.
516 * elf/elf.h (NT_386_TLS): New macro.
518 2008-01-29 Roland McGrath <roland@redhat.com>
520 * Makeconfig (sysd-rules-patterns): New variable.
521 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
522 (check-inhibit-asm): New canned sequence, replaces ...
523 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
524 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
525 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
526 (CFLAGS-rtld): Variable removed.
528 2008-01-24 Roland McGrath <roland@redhat.com>
530 * configure.in: Let configure fragments set base_os.
531 * configure: Regenerated.
533 2008-01-22 Ulrich Drepper <drepper@redhat.com>
535 * po/ko.po: Update from translation team.
537 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
539 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
541 2008-01-12 Andreas Jaeger <aj@suse.de>
544 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
547 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
549 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
550 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
551 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
553 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
555 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
556 * elf/dl-close.c (_dl_close): Check for it.
557 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
558 (_dl_allocate_static_tls): Likewise.
559 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
560 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
562 * elf/tst-tls16.c: New file.
563 * elf/tst-tlsmod16a.c: New file.
564 * elf/tst-tlsmod16b.c: New file.
565 * elf/Makefile: Add rules to build and run tst-tls16.
567 2008-01-16 Ulrich Drepper <drepper@redhat.com>
570 * bits/shm.h: Fix comment describing shmid_ds.
571 * sysdeps/gnu/bits/shm.h: Likewise.
572 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
573 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
574 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
575 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
576 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
577 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
578 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
579 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
580 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
583 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
585 * conform/data/limits.h-data: Adjust limits changed in v6 and add
587 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
588 Add optional functions mq_timedreceive and mq_timedsend.
589 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
590 * conform/data/pthread.h-data: Fix prototype of
591 pthread_condattr_setclock. pthread_sigmask is not required in v6.
592 * conform/data/semaphore.h-data: Allow time.h definitions.
593 * conform/data/signal.h-data: Likewise.
594 * conform/data/stdio.h-data: getw and putw are not required in v6.
595 * conform/data/stdlib.h-data: Change setstate prototype.
596 * conform/data/string.h-data: Fix strerror_r prototype.
597 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
598 * conform/data/unistd.h-data: pthread_atfork not required in v6.
599 Fix readlink prototype.
600 * conform/data/netinet/in.h-data: Add const to in6addr_any and
602 * inet/netinet/in.h: Cleanup namespace.
603 * posix/regex.h: Likewise.
604 * resolv/netdb.h: Likewise.
605 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
606 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
607 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
608 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
609 of names of in in6_addr.
610 (default_precedence): Likewise.
611 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
614 2008-01-15 Ulrich Drepper <drepper@redhat.com>
616 * conform/data/fmtmsg.h-data: Add missing allows.
617 * conform/data/ftw.h-data: Likewise.
618 * conform/data/inttypes.h-data: Likewise.
619 * conform/data/math.h-data: Likewise.
620 * conform/data/signal.h-data: Likewise.
621 * conform/data/net/if.h-data: Likewise.
622 * conform/data/netinet/in.h-data: Likewise.
623 * conform/data/sys/socket.h-data: Likewise.
626 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
627 (__strtok_r): Simplify.
628 * string/tester.c (test_strtok_r): Add test case for futile search
629 with single-character seach string.
631 2008-01-12 Ulrich Drepper <drepper@redhat.com>
633 * po/ko.po: Update from translation team.
635 2008-01-11 Andreas Jaeger <aj@suse.de>
638 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
639 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
642 2008-01-10 Ulrich Drepper <drepper@redhat.com>
644 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
645 native interface lookup in all the relevant places.
647 2008-01-10 Jakub Jelinek <jakub@redhat.com>
648 Ulrich Drepper <drepper@redhat.com>
650 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
651 field. Use sockaddr_in6 for source_addr.
652 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
653 (match_prefix): Likewise.
654 (get_label): Likewise.
655 (get_precedence): Likewise.
656 (rfc3484_sort): Change to use indirect access to results array.
657 Adjust to use of sockaddr_in6. Replace service_order test with
658 simple index comparison.
659 (getaddrinfo): Define order array. Initialize it. Don't initialize
660 service_order field. Adjust qsort_t calls. Access sorted result
661 array indirectly through order array.
662 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
663 * posix/tst-rfc3484-2.c: Likewise.
664 * posix/tst-rfc3484-3.c: Likewise.
666 2008-01-09 Ulrich Drepper <drepper@redhat.com>
669 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
671 Patch by André Cruz.
674 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
675 (clnt_spcreateerror): Likewise.
678 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
679 (public_mEMALIGn): Likewise.
680 Patch mostly by Daniel Jacobowitz.
682 2008-01-09 Jakub Jelinek <jakub@redhat.com>
684 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
685 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
686 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
687 * stdlib/tst-makecontext2.c: New test.
689 2008-01-08 Jakub Jelinek <jakub@redhat.com>
691 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
693 (REINIT_PARAMS): Likewise. Undefine before end of file.
694 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
695 transliteration hooks and REINIT_PARAMS afterwards.
696 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
698 (REINIT_PARAMS): Define.
699 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
700 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
701 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
702 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
703 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
704 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
705 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
706 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
707 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
708 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
709 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
710 * iconvdata/tst-iconv7.c: New test.
712 2008-01-07 Ulrich Drepper <drepper@redhat.com>
714 * libio/stdio.h (vscanf): Fix definition for loser compilers.
716 2008-01-05 Jakub Jelinek <jakub@redhat.com>
719 * nscd/connections.c (restart): Fix condition.
721 2008-01-03 Jakub Jelinek <jakub@redhat.com>
723 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
724 __ctype_toupper_loc): Add __THROW.
726 2008-01-02 Ulrich Drepper <drepper@redhat.com>
728 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
729 recognition of interface family.
731 * posix/getconf.c: Update copyright year.
732 * nss/getent.c: Likewise.
733 * iconv/iconvconfig.c: Likewise.
734 * iconv/iconv_prog.c: Likewise.
735 * elf/ldconfig.c: Likewise.
736 * catgets/gencat.c: Likewise.
737 * csu/version.c: Likewise.
738 * elf/ldd.bash.in: Likewise.
739 * elf/sprof.c (print_version): Likewise.
740 * locale/programs/locale.c: Likewise.
741 * locale/programs/localedef.c: Likewise.
742 * nscd/nscd.c (print_version): Likewise.
743 * debug/xtrace.sh: Likewise.
744 * malloc/memusage.sh: Likewise.
745 * malloc/mtrace.pl: Likewise.
746 * debug/catchsegv.sh: Likewise.
748 2007-12-26 Ulrich Drepper <drepper@redhat.com>
750 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
753 2007-12-23 Ulrich Drepper <drepper@redhat.com>
755 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
756 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
758 2007-12-17 Roland McGrath <roland@redhat.com>
760 * inet/ether_line.c (ether_line): Remove unused variable.
762 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
764 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
766 * login/openpty.c (openpty): Likewise.
767 * login/pty.h (openpty, forkpty): Likewise.
768 * manual/terminal.texi (openpty, forkpty): Likewise.
770 2007-12-17 Ulrich Drepper <drepper@redhat.com>
772 * malloc/malloc.c (public_cALLOc): For arenas other than
773 main_arena, count all bytes inside the mprotect_size range of the
774 heap as uninitialized.
776 2007-12-16 Ulrich Drepper <drepper@redhat.com>
778 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
781 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
782 mTRIm for all of them.
783 (mTRIm): Additionally iterate over all free blocks and use madvise
784 to free memory for all those blocks which contain at least one
786 * malloc/tst-trim1.c: New file.
787 * malloc/Makefile (tests): Add tst-trim1.
789 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
791 2007-12-14 Ulrich Drepper <drepper@redhat.com>
793 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
794 First cast argument to long
795 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
797 (__vdso_clock_gettime): Likewise.
798 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
801 2007-12-13 Ulrich Drepper <drepper@redhat.com>
803 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
804 * locale/nl_langinfo_l.c: Real implementation, copied from
806 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
808 2007-12-01 Jim Meyering <meyering@redhat.com>
810 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
811 that would inhibit utf8-optimization of a regexp containing line-
812 or buffer-anchors, e.g., `^', `$'.
814 2007-12-12 Ulrich Drepper <drepper@redhat.com>
816 * time/bug-getdate1.c (do_test): Don't use century values which
817 aren't valid on 32-bit systems.
819 2007-12-12 Jakub Jelinek <jakub@redhat.com>
821 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
822 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
823 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
824 __strcat_g, __strncat_g): Add __asm__.
826 2007-12-12 Ulrich Drepper <drepper@redhat.com>
829 * io/fchmodat.c: Fix typo in stub_warning use.
830 Patch by Petr Salinger.
832 2007-12-11 Ulrich Drepper <drepper@redhat.com>
834 * iconvdata/hp-thai8.c: New file.
835 * iconvdata/Makefile: Add rules for hp-thai8.c.
836 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
837 * iconvdata/gconv-modules: Likewise.
840 * iconvdata/hp-greek8.c: New file.
841 * iconvdata/Makefile: Add rules for hp-greek8.c.
842 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
843 * iconvdata/gconv-modules: Likewise.
846 * iconvdata/hp-turkish8.c: New file.
847 * iconvdata/Makefile: Add rules for hp-turkish8.c.
848 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
849 * iconvdata/gconv-modules: Likewise.
851 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
852 (shrink_heap): ... this new function.
853 (heap_trim): Call shrink_heap instead of grow_heap.
855 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
856 case don't call alloc_perturb.
858 2007-12-10 Ulrich Drepper <drepper@redhat.com>
860 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
862 * sysdeps/unix/sysv/linux/kernel-features.h
863 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
864 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
866 2007-12-08 Ulrich Drepper <drepper@redhat.com>
869 * stdio-common/vfprintf.c: Do not overflow when adding to done.
870 * stdio-common/Makefile (tests): Add bug22.
871 * stdio-common/bug22.c: New file.
874 * time/getdate.c: Fix filling in default values.
875 * time/bug-getdate1.c: New file.
876 * time/Makefile: Add rules to build and run bug-getdate1.
878 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
879 * iconvdata/ebcdic-es.c: Likewise.
880 * iconvdata/ebcdic-es-a.c: Likewise.
881 * iconvdata/ebcdic-uk.c: Likewise.
882 * iconvdata/iso8859-16.c: Likewise.
883 * iconvdata/viscii.c: Likewise.
884 * iconvdata/iso8859-9e.c: Likewise.
885 * iconvdata/Makefile: Adjust appropriately.
888 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
891 2007-12-07 Ulrich Drepper <drepper@redhat.com>
894 * iconvdata/hp-roman9.c: New file.
895 * iconvdata/Makefile: Add rules for hp-roman9.c.
896 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
897 * iconvdata/gconv-modules: Likewise.
899 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
900 * iconvdata/Makefile: Adjust appropriately.
903 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
904 structure, it's allocated with alloca.
905 * stdio-common/Makefile (tests): Add bug21.
906 * stdio-common/bug21.c: New file.
908 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
911 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
912 keyword for gcc's braced-groups.
914 2007-12-07 Ulrich Drepper <drepper@redhat.com>
917 * inet/ether_line.c: Strip hostname of whitespaces.
918 * inet/Makefile (tests): Add tst-ether_line.
919 * inet/tst-ether_line.c: New file.
921 2007-12-03 Ulrich Drepper <drepper@redhat.com>
924 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
927 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
929 * stdlib/tst-setcontext.c: Catch the case where the links gets
930 messed up and we do not reach main again.
932 * po/ca.po: Update from translation team.
934 2007-11-26 Ulrich Drepper <drepper@redhat.com>
936 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
937 * posix/regex.h (REG_ENOSYS): Likewise.
938 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
940 2007-11-25 Ulrich Drepper <drepper@redhat.com>
942 * nscd/nscd.h (MAX_STACK_USE): Define.
943 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
944 (gc): Initialize stack_used based on allocation in prune_cache.
945 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
946 Clear array before use.
948 * nscd/aicache.c (addhstaiX): Update statistics counter in case
949 memory allocation failed.
950 * nscd/hstcache.c (cache_addhst): Likewise.
951 * nscd/grpcache.c (cache_addgr): Likewise.
952 * nscd/servicescache.c (cache_addserv): Likewise.
953 * nscd/pwdcache.c (cache_addpw): Likewise.
954 * nscd/initgrcache.c (addinitgroupsX): Likewise.
956 2007-11-23 Ulrich Drepper <drepper@redhat.com>
958 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
959 and creat system calls.
961 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
963 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
965 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
967 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
968 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
970 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
971 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
972 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
974 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
976 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
977 strncat): Define as macros to avoid compile errors.
979 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
982 2007-11-22 Ulrich Drepper <drepper@redhat.com>
985 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
986 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
987 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
989 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
991 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
992 Return zero in case the thread library is not NPTL.
995 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
996 initializing interface list.
999 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
1000 use result of nss_getgrgid_r if nothing was found. For other
1001 error return with a failure.
1002 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
1004 * locale/programs/ld-collate.c (collate_read): Fix loop to match
1007 2007-11-19 Ulrich Drepper <drepper@redhat.com>
1009 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
1010 (get_scope): For IPv4 scope, use scopes table.
1011 (fini): Free scopes table if necessary.
1012 (free_scopelist): New function.
1013 (scopecmp): New function.
1014 (gaiconf_init): Also handle scopev4 entries.
1015 * posix/tst-rfc3484.c (do_test): Initialize scopes.
1016 * posix/tst-rfc3484-2.c (do_test): Likewise.
1017 * posix/gai.conf: Document scopev4 defaults.
1018 * posix/Makefile (tests): Add tst-rfc3484-3.
1019 * posix/tst-rfc3484-3.c: New file.
1021 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
1023 * posix/gai.conf: Update for current default tables.
1025 2007-11-19 Ulrich Drepper <drepper@redhat.com>
1027 * po/tr.po: Update from translation team.
1029 2007-11-18 Roland McGrath <roland@frob.com>
1031 * manual/arith.texi (Remainder Functions): Spelling fix.
1032 From Shaun Silk <genix@mysoul.com.au>.
1034 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
1036 2007-11-17 Ulrich Drepper <drepper@redhat.com>
1038 * po/zh_CN.po: Update from translation team.
1040 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
1041 Add sys/signalfd.h and sys/eventfd.h.
1043 2007-11-15 Bruno Haible <bruno@clisp.org>
1046 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
1048 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
1049 (DCIGETTEXT): Change the allocation of the 'search' variable so that
1050 it needs only fixed stack space. Delay the initialization of
1051 msgid_len until it is needed.
1053 2007-11-15 Andreas Jaeger <aj@suse.de>
1055 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
1056 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
1058 2007-11-15 Ulrich Drepper <drepper@redhat.com>
1060 * po/ko.po: Update from translation team.
1062 2007-11-14 Ulrich Drepper <drepper@redhat.com>
1064 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
1065 significantly. The device type is also part of the ifinfomsg data.
1067 * po/sv.po: Update from translation team.
1068 * po/nl.po: Likewise.
1070 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
1071 to wake up in 24 hours.
1073 * nscd/gai.c (__ioctl): Define. Include check_native.c.
1075 2007-11-13 Ulrich Drepper <drepper@redhat.com>
1077 * po/cs.po: Update from translation team.
1078 * po/pl.po: Likewise.
1080 * include/ifaddrs.h: Remove in6ai_temporary.
1081 (struct in6addrinfo): Add index element.
1082 Declare __check_native.
1083 * inet/Makefile (aux): Add check_native.
1084 * sysdeps/unix/sysv/linux/check_native.c: New file.
1085 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
1086 IFA_F_TEMPORARY. Pass back ifa_index.
1087 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
1088 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
1089 call __check_native if necessary.
1090 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
1091 to sort addresses. Pass information about the results.
1092 * posix/tst-rfc3484.c: Adjust for addition of index field and change
1093 of rfc3484_sort interface.
1094 * posix/tst-rfc3484-2.c: Likewise.
1096 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
1097 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
1099 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
1100 (qsort_r): Renamed from qsort. Take additional parameter and pass it
1101 on as third parameter to compare function and _quicksort.
1102 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
1103 to the compare function.
1104 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
1105 * Versions.def: Add GLIBC_2.8 for libc.
1107 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
1108 * posix/tst-rfc3484-2.c: Likewise.
1110 * include/kernel-features.h: Moved to...
1111 * sysdeps/mach/hurd/kernel-features.h: ...here.
1113 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
1115 * sysdeps/i386/i586/memcpy_chk.S: New file.
1116 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
1117 * sysdeps/i386/i586/memset_chk.S: Likewise.
1119 2007-11-12 Ulrich Drepper <drepper@redhat.com>
1121 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
1122 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
1123 list of interfaces. Also store prefix length.
1124 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
1125 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
1126 prefix if source and destination address are in the same subnet.
1127 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
1128 Always look for matching record in in6ai list.
1129 Correct source_addr_len value for IPv6->IPv4 converted records.
1131 2007-11-11 Roland McGrath <roland@frob.com>
1133 * include/kernel-features.h: New file.
1135 2007-11-10 Ulrich Drepper <drepper@redhat.com>
1137 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
1138 complications for 64-bit platforms.
1140 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
1141 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
1142 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
1144 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
1146 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1147 * sysdeps/wordsize-64/alphasort.c: New file.
1148 * sysdeps/wordsize-64/alphasort64.c: New file.
1149 * sysdeps/wordsize-64/fseeko.c: New file.
1150 * sysdeps/wordsize-64/fseeko64.c: New file.
1151 * sysdeps/wordsize-64/ftello.c: New file.
1152 * sysdeps/wordsize-64/ftello64.c: New file.
1153 * sysdeps/wordsize-64/ftw.c: New file.
1154 * sysdeps/wordsize-64/ftw64.c: New file.
1155 * sysdeps/wordsize-64/iofgetpos.c: New file.
1156 * sysdeps/wordsize-64/iofgetpos64.c: New file.
1157 * sysdeps/wordsize-64/iofopen.c: New file.
1158 * sysdeps/wordsize-64/iofopen64.c: New file.
1159 * sysdeps/wordsize-64/iofsetpos.c: New file.
1160 * sysdeps/wordsize-64/iofsetpos64.c: New file.
1161 * sysdeps/wordsize-64/lockf.c: New file.
1162 * sysdeps/wordsize-64/lockf64.c: New file.
1163 * sysdeps/wordsize-64/mkostemp.c: New file.
1164 * sysdeps/wordsize-64/mkostemp64.c: New file.
1165 * sysdeps/wordsize-64/mkstemp.c: New file.
1166 * sysdeps/wordsize-64/mkstemp64.c: New file.
1167 * sysdeps/wordsize-64/scandir.c: New file.
1168 * sysdeps/wordsize-64/scandir64.c: New file.
1169 * sysdeps/wordsize-64/tmpfile.c: New file.
1170 * sysdeps/wordsize-64/tmpfile64.c: New file.
1171 * sysdeps/wordsize-64/versionsort.c: New file.
1172 * sysdeps/wordsize-64/versionsort64.c: New file.
1173 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
1174 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
1175 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
1176 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
1177 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
1178 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
1179 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
1180 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
1181 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
1182 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
1183 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
1184 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
1186 * crypt/sha256-crypt.c: Fix a comment.
1187 * crypt/sha512-crypt.c: Likewise.
1189 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
1191 * sysdeps/x86_64/memset.S: Add sfence after movnti.
1193 2007-11-07 Ulrich Drepper <drepper@redhat.com>
1196 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
1197 because output buffer is too small break, don't loop.
1198 * iconvdata/Makefile (tests): Add bug-iconv6.
1199 * iconvdata/bug-iconv6.c: New file.
1201 2007-11-06 Ulrich Drepper <drepper@redhat.com>
1203 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
1205 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
1206 size_t. Add casts where needed.
1208 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
1209 old headers, don't call avc_has_perm if we don't have the
1210 permission information.
1212 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
1214 * elf/rtld.c (dl_main): Use the page size to find the map start.
1216 2007-11-05 Ulrich Drepper <drepper@redhat.com>
1218 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
1219 Patch by Szymon Siwek <sls@poczta.wp.pl>.
1221 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
1222 when the lookup call failed.
1224 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
1225 Add prune_cond and wakeup_time.
1226 (CACHE_PRUNE_INTERNAL): Define.
1227 Update declarations of prune_cache and setup_thread.
1228 * nscd/connections.c (dbs): Update initializers.
1229 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
1230 (nscd_init): Default number of threads is now 4.
1231 (invalidate_cache): Take lock before calling prune_cache.
1232 (handle_request): If SELinux forbids the request, say so.
1233 (readylist_cond): Use static initializer.
1234 (nscd_run_prune): New function. Used only by pruning threads.
1235 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
1237 (fd_ready): Update nscd_run reference.
1238 (start_threads): No need to initialize readylist_cond.
1239 Start pruning threads separately.
1240 * nscd/nscd_setup_thread.c: Change return value type to int and always
1242 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
1243 to int and return nonzero value if we can use the TID address hack.
1244 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
1245 the database is later than the new entry's timeout, update the
1246 wakeup time and wake the cleanup thread.
1247 (prune_cache): Return seconds the next entry in the database is still
1248 valid. Remove locking for pruning here.
1249 * nscd/nscd.conf: Document default number of threads.
1251 2007-10-31 Ulrich Drepper <drepper@redhat.com>
1253 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
1254 stack is properly aligned for the target function.
1255 Correct unwind info.
1257 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
1258 when using auditing libraries.
1260 2007-10-29 Ulrich Drepper <drepper@redhat.com>
1262 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
1263 _nss_dns_getnetbyaddr2_r.
1264 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
1265 extra parameter to getanswer_r.
1266 (_nss_dns_getnetbyaddr_r): Now a wrapper around
1267 _nss_dns_getnetbyaddr2_r.
1269 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
1271 * nscd/gethstbynm2_r.c: Remove.
1272 * nscd/gethstbynm3_r.c: New file.
1273 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
1275 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
1276 __gethostbyaddr_r compatibility wrapper.
1277 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
1278 determining timeout of entry.
1279 (lookup): Take new parameter and pass it to __gethostbyname3_r and
1281 (addhstbyX): Pass reference to variable for TTL to lookup and
1283 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
1284 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
1285 and __nss_next2. Remove __nss_services_lookup.
1286 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
1288 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
1290 * nss/getXXent_r.c: Likewise.
1291 * nss/getnssent_r.c: Likewise.
1292 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
1293 does not exist in module, try the optional second name.
1294 (__nss_next2): New function.
1295 (__nss_next): Now wrapper around __nss_next2.
1296 * nss/nsswitch.h: Adjust __nss_lookup prototype.
1297 Declare __nss_next2.
1298 Adjust definition of db_lookup_function type.
1299 * nss/service-lookup.c: Define NO_COMPAT.
1300 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
1301 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
1302 * inet/ether_ntoh.c: Likewise.
1303 * sunrpc/netname.c: Likewise.
1304 * sunrpc/publickey.c: Likewise.
1305 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
1306 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
1307 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
1308 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
1309 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
1311 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
1313 * inet/getnetgrent.c (setup): Encrypt static pointer.
1315 2007-10-28 Ulrich Drepper <drepper@redhat.com>
1318 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
1319 * crypt/sha512c-test.c: Likewise.
1322 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
1323 to keep track of end of %[ format string element.
1324 * stdio-common/Makefile (tests): Add bug20.
1325 * stdio-common/bug20.c: New file.
1328 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
1329 path elements in counting mode.
1331 2007-10-27 Andreas Jaeger <aj@suse.de>
1334 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
1337 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
1338 (__cleanup): Free shared library when exiting.
1339 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
1340 (__cleanup): Free shared library when exiting.
1342 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
1345 * math/libm-test.inc (check_float_internal): Support
1346 denormalized return.
1348 2007-10-23 Andreas Jaeger <aj@suse.de>
1351 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
1352 __LONG_LONG_PAIR to handle little endian byte order.
1353 Suggested by abhishekrai@google.com
1355 2007-10-27 Ulrich Drepper <drepper@redhat.com>
1357 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
1359 2007-10-26 Ulrich Drepper <drepper@redhat.com>
1361 * nscd/cache.c (prune_cache): Move test for modified file outside
1364 2007-10-21 Andreas Jaeger <aj@suse.de>
1366 * manual/texinfo.tex: Update to latest version.
1368 * manual/sysinfo.texi (System Parameters): Fix Formatting.
1370 * manual/arith.texi (Status bit operations): Fix formatting.
1372 * manual/errno.texi (Error Messages): Fix formatting.
1374 * manual/sysinfo.texi (System Parameters): Fix formatting.
1376 * manual/libc.texinfo: Update VERSION and UPDATED.
1378 2007-10-19 Roland McGrath <roland@redhat.com>
1380 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
1382 2007-10-06 David S. Miller <davem@davemloft.net>
1384 * configure.in: Add sparcv9v2 and sparc64v2.
1385 * scripts/config.sub: Likewise.
1386 * configure: Regenerate.
1387 * elf/elf.h (HWCAP_SPARC_N2): New.
1388 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
1389 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
1390 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
1391 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
1392 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
1393 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
1394 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
1396 2007-10-18 Ulrich Drepper <drepper@redhat.com>
1398 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
1399 even if the poll result indicates there is data to read.
1400 Patch by Jeff Moyer <jmoyer@redhat.com>.
1402 2007-10-18 Roland McGrath <roland@redhat.com>
1404 * elf/elf.h (NT_PPC_VMX): New macro.
1406 2007-10-17 Ulrich Drepper <drepper@redhat.com>
1408 * version.h (VERSION): Set to 2.7.90.
1410 2007-10-17 Jakub Jelinek <jakub@redhat.com>
1412 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
1415 2007-10-17 Roland McGrath <roland@frob.com>
1417 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
1418 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
1420 2007-10-17 Ulrich Drepper <drepper@redhat.com>
1422 * version.h (VERSION): Bump to 2.7.
1423 * include/features.h (__GLIBC_MINOR__): Bump to 7.
1426 * time/tzset.c (__tz_convert): Don't force testing for a change of
1427 TZ if not called from localtime. But then also see whether the
1428 file changed, in case __use_tzfile is set.
1430 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
1431 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1432 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1433 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1434 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1435 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1436 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1437 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1439 2007-10-17 Jakub Jelinek <jakub@redhat.com>
1441 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
1442 and admin selects to be able to replace the gai.conf file, lock
1443 data structures around the qsort call.
1445 2007-10-17 Ulrich Drepper <drepper@redhat.com>
1447 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
1449 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
1450 too high for the improvements. Implement bzero unconditionally for
1453 2007-10-17 Ulrich Drepper <drepper@redhat.com>
1454 Jakub Jelinek <jakub@redhat.com>
1456 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
1457 even when time_t is 32-bit.
1458 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
1459 timezone data read by __tzfile_default. Ensure __tzname[0] is
1460 always set after the search.
1462 2007-10-16 Ulrich Drepper <drepper@redhat.com>
1464 * time/tzfile.c (__tzfile_read): Help the compiler recognize
1465 unreachable code on 32-bit machines.
1467 2007-10-16 Jakub Jelinek <jakub@redhat.com>
1470 * time/strftime_l.c: Include stdbool.h.
1471 (my_strftime): New wrapper, old function renamed to...
1472 (__strftime_internal): ... new function. Add tzset_called
1473 argument, pass it down to recursive calls, don't call tzset ()
1474 if already true, set to true after call to tzset ().
1476 2007-10-16 Ulrich Drepper <drepper@redhat.com>
1478 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
1479 into account when copying TZ string.
1481 2007-10-16 Jakub Jelinek <jakub@redhat.com>
1483 * time/tzfile.c (__tzfile_compute): For use_last case set i to
1484 num_transition rather than num_transitions - 1.
1486 2007-10-16 Jakub Jelinek <jakub@redhat.com>
1488 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
1491 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
1492 a local label rather than HIDDEN_JUMPTARGET.
1494 2007-10-15 Ulrich Drepper <drepper@redhat.com>
1496 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
1497 (init_cacheinfo): Initialize it.
1498 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
1499 Always define bzero.
1500 Remove non-glibc code.
1501 * sysdeps/x86_64/bzero.S: Make an empty file.
1503 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
1505 * sysdeps/x86_64/cacheinfo.c
1506 (__x86_64_preferred_memory_instruction): New.
1507 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
1509 * sysdeps/x86_64/memset.S: Rewrite.
1511 2007-10-15 Roland McGrath <roland@redhat.com>
1513 * po/libc.pot: Regenerated.
1515 2007-10-15 Ulrich Drepper <drepper@redhat.com>
1517 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
1521 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
1522 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
1523 address record to T_A/T_AAAA requests.
1525 2007-10-14 Ulrich Drepper <drepper@redhat.com>
1527 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
1529 * posix/glob.c: Add some branch prediction throughout.
1531 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
1534 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
1536 (rfc3484_sort): Make sure that even if qsort doesn't support
1537 stable sorting out sorting here is stable by comparing service_order.
1538 (getaddrinfo): Initialize service_order.
1539 * posix/tst-rfc3484.c (do_test): Adjust for addition of
1540 service_order field to sorting structure.
1541 * posix/tst-rfc3484-2.c (do_test): Likewise.
1543 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
1544 * time/tzset.c (tzset_internal): Break TZ string parsing out into
1545 __tzset_parse_tz and updating of daylight, timezone, tzname into
1547 (__tz_compute): Renamed from tz_compute. Take additional parameters.
1548 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
1549 happens in __tz_compute.
1550 * time/tzfile.c (__tzfile_read): Also read TZ string.
1551 (find_transition): Fold into __tzfile_compute.
1552 (__tzfile_compute): For times beyond the last transition try to
1554 * timezone/tst-timezone.c: Information in daylight and tzname does
1555 change for Asia/Tokyo timezone with more concrete information.
1558 * include/stdio.h: Add libc_hidden_proto for ftello.
1559 * libio/ftello.c: Add libc_hidden_def.
1562 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
1563 on the specified time and not the last entries in the file. Move
1564 code to determine tzname[] to...
1565 (find_transition): ...here. Add ugly guess for times before the
1568 2007-10-13 Ulrich Drepper <drepper@redhat.com>
1571 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
1573 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
1574 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
1575 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1576 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1578 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
1579 read mechanism when there are no group members and avoid no-op
1580 read syscall in this case.
1583 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
1584 (__readall): If reading failed due to EAGAIN error wait a bit
1585 and possibly try again.
1586 (__readvall): Likewise.
1588 2007-10-13 Bruno Haible <bruno@clisp.org>
1590 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
1591 when we cannot recode the message.
1593 2007-10-13 Ulrich Drepper <drepper@redhat.com>
1596 * libio/__freading.c (__freading): Don't return true for
1597 write-only streams. For read/write streams, check whether we
1598 performed a read operation already.
1599 * libio/Makefile (tests): Add tst-ext2.
1600 * libio/tst-ext2.c: New file.
1602 2007-10-12 Ulrich Drepper <drepper@redhat.com>
1604 * locale/programs/repertoire.c (repertoire_read): Always free
1605 memory for repertoire file name [Coverity CID 270].
1607 * elf/cache.c (save_aux_cache): Free memory allocated for
1608 temporary file name [Coverity CID 267].
1610 2007-10-12 Jakub Jelinek <jakub@redhat.com>
1612 * misc/Makefile (headers): Add bits/error.h.
1614 2007-10-12 Ulrich Drepper <drepper@redhat.com>
1616 * posix/fnmatch_loop.c: Take rule index returned as part of
1617 findidx return value into account when accessing weights.
1618 * posix/regcomp.c: Likewise.
1619 * posix/regexec.c: Likewise.
1621 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
1622 (skip_to): Fix problems with parameter of elifdef/elifndef.
1624 2007-10-11 Ulrich Drepper <drepper@redhat.com>
1626 * iconv/gconv_simple.c: Add some branch prediction.
1628 2007-10-12 Jakub Jelinek <jakub@redhat.com>
1630 * locale/programs/ld-collate.c (collate_read): If ignore_content
1631 and nowtok is tok_define, eat any tok_eol tokens.
1633 2007-10-11 Jakub Jelinek <jakub@redhat.com>
1635 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
1636 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
1638 * inet/netinet/in.h: Don't include bits/socket.h.
1639 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
1641 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1643 2007-10-10 Ulrich Drepper <drepper@redhat.com>
1645 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
1647 * locale/programs/locfile-kw.gperf: Likewise.
1648 * locale/programs/ld-collate.c: Implement primitive preprocessor.
1650 2007-10-10 Jakub Jelinek <jakub@redhat.com>
1652 * stdio-common/printf-parse.h: Include string.h and wchar.h.
1653 (__find_specwc): Change into __extern_always_inline function.
1654 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
1655 (__parse_one_specmb): Remove ps argument.
1656 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
1657 Adjust __find_specmb and __parse_one_specmb callers.
1658 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
1659 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
1661 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
1664 2007-10-09 Ulrich Drepper <drepper@redhat.com>
1666 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
1667 with some Pentium Ds.
1669 2007-10-08 Ulrich Drepper <drepper@redhat.com>
1671 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
1673 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
1676 2007-10-07 Ulrich Drepper <drepper@redhat.com>
1679 * locale/C-time.c: Set week_1stday data to 19971201.
1680 * locale/programs/ld-time.c (time_finish): Default for
1681 first_workday is Monday.
1684 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
1687 * posix/glob.c (glob): Recognize patterns starting \/.
1688 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
1689 (main): Add test for pattern starting \/.
1691 * misc/error.h: Use __const instead of const.
1692 * misc/bits/error.h: Likewise.
1694 2007-10-07 Andreas Jaeger <aj@suse.de>
1696 * include/bits/error.h: New file.
1698 * misc/bits/error.h (error_at_line): Fix prototype.
1700 2007-10-06 Ulrich Drepper <drepper@redhat.com>
1703 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
1704 more little bugs in creating the stack frame when pltexit has to
1707 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
1708 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
1711 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
1712 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
1713 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1714 * math/libm-test.inc: Add test for this case.
1717 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
1718 (svc_register): Initialize sc_mapped. Set to TRUE if call to
1719 map service succeeded.
1720 (svc_is_mapped): New function.
1721 (svc_unregister): Use it before trying to unmap service.
1723 2007-10-05 Ulrich Drepper <drepper@redhat.com>
1725 * timezone/zic.c: Update from tzcode2007h.
1728 * timezone/africa: Update from tzdata2007h.
1729 * timezone/antarctica: Likewise.
1730 * timezone/asia: Likewise.
1731 * timezone/australasia: Likewise.
1732 * timezone/europe: Likewise.
1733 * timezone/leapseconds: Likewise.
1734 * timezone/northamerica: Likewise.
1735 * timezone/southamerica: Likewise.
1736 * timzeone/zone.tab: Likewise.
1739 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
1742 * string/bits/string2.h (__strdup): Cast parameters to calloc to
1743 avoid warning with -Wconversion.
1744 (__strndup): Likewise.
1745 Half the patch by Christian Iseli <christian.iseli@licr.org>.
1748 * nscd/connections.c (restart): Don't resync if database is
1749 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
1751 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
1752 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
1754 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
1755 evetnfd_read, eventfd_write.
1756 * sysdeps/unix/sysv/linux/eventfd.c: New file.
1757 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
1758 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
1759 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
1760 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
1761 eventfd_write for GLIBC_2.7.
1763 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
1764 * sysdeps/unix/sysv/linux/signalfd.c: New file.
1765 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
1766 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
1768 2007-10-04 Jakub Jelinek <jakub@redhat.com>
1770 * stdlib/msort.c: Include stdint.h.
1771 (struct msort_param): New type.
1772 (msort_with_tmp): Use struct msort_param pointer for unchanging
1773 parameters. Add optimized handling for several common sizes
1774 and indirect sorting mode.
1775 (qsort): Adjust msort_with_tmp callers. For big S use indirect
1777 Suggested by Belazougui Djamel .
1779 * stdlib/Makefile (tests): Add tst-qsort2.
1780 * stdlib/tst-qsort2.c: New test.
1782 2007-10-04 Ulrich Drepper <drepper@redhat.com>
1784 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
1785 for dup2 in case another thread races with the current one. Retry
1788 * misc/error.h: Remove support for use outside of libc. We have to
1789 include <features.h> now. Include <bits/error.h> if possible.
1790 * misc/bits/error.h: New file.
1792 2007-10-03 Jakub Jelinek <jakub@redhat.com>
1794 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
1795 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
1796 __extern_always_inline functions unconditionally, drop macros.
1798 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
1799 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
1800 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
1802 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
1803 add __artificial__ attribute.
1805 2007-10-02 Ulrich Drepper <drepper@redhat.com>
1807 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
1808 backward to forward direction.
1810 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
1813 * locale/programs/ld-collate.c (collate_finish): Compare against last
1814 used section which is known to have rules defined.
1815 (collate_read): After order_start, correctly record order of sections
1816 and queue sections up.
1818 2007-10-01 Ulrich Drepper <drepper@redhat.com>
1821 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
1822 the same number of pages.
1823 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
1825 * locale/programs/ld-collate.c (collate_read): After initial copy
1826 statement, continue in state 0.
1828 * include/stdio_ext.h (__fsetlocking): Define as macro.
1830 2007-09-30 Ulrich Drepper <drepper@redhat.com>
1832 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
1835 * po/pt_BR.po: Fix typo.
1837 2007-09-29 Ulrich Drepper <drepper@redhat.com>
1839 * iconvdata/Makefile (modules): Add ISO8859-9E.
1840 (distribute): Add iso8859-9e.c.
1841 (gen-8bit-gap-modules): Add iso8859-9e.
1842 * iconvdata/iso8859-9e.c: New file.
1843 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
1844 * iconvdata/TESTS: Likewise.
1845 * iconvdata/tst-tables.sh: Likewise.
1847 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
1849 * locale/iso-639.def: Add several new entries.
1851 2007-09-24 Jakub Jelinek <jakub@redhat.com>
1853 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
1854 void * pointers instead of struct link_map **.
1855 (_dl_scope_free): Change argument type to void *.
1856 * include/link.h (struct link_map): Change type of l_reldeps
1857 to struct link_map_reldeps, move l_reldepsact into that
1859 * elf/dl-deps.c: Include atomic.h.
1860 (_dl_map_object_deps): Only change l->l_initfini when it is
1861 fully populated, use _dl_scope_free for freeing it. Optimize
1862 removal of libs from reldeps by using l_reserved flag, when
1863 some removal is needed, allocate a new list instead of
1864 reallocating and free the old with _dl_scope_free. Adjust
1865 for l_reldeps and l_reldepsact changes.
1866 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
1867 searching in l_initfini and l_reldeps without holding dl_load_lock.
1868 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
1869 l_reldepsact changes.
1870 * elf/dl-close.c (_dl_close_worker): Likewise.
1871 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
1873 2007-09-28 Ulrich Drepper <drepper@redhat.com>
1875 * iconvdata/Makefile (modules): Add KOI8-RU.
1876 (distribute): Add koi8-ru.c.
1877 (gen-8bit-gap-modules): Add koi8-ru.
1878 * iconvdata/koi8-ru.c: New file.
1879 * iconvdata/gconv-modules: Add entries for KOI8-RU.
1880 * iconvdata/TESTS: Likewise.
1881 * iconvdata/tst-tables.sh: Likewise.
1883 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
1885 2007-09-26 Jakub Jelinek <jakub@redhat.com>
1887 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
1888 with __warning__/__error__ attributes.
1889 (__warnattr): Define.
1890 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
1891 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
1893 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
1894 of __*_chk if compile time detectable overflow is found.
1895 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
1896 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
1898 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
1899 instead of __*_chk if compile time detectable overflow is found.
1900 (__gets_alias): Rename to...
1901 (__gets_warn): ... this. Add __warnattr.
1902 (gets): Call __gets_warn instead of __gets_alias.
1903 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
1904 aliases with __warnattr.
1905 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
1906 time detectable overflow is found.
1907 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
1908 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
1909 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
1910 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
1911 __getdomainname_chk_warn): New aliases with __warnattr.
1912 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
1913 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
1914 __*_chk_warn instead of __*_chk if compile time detectable overflow
1916 (__getgroups_chk): Rename argument to __listlen from listlen.
1917 (__getwd_alias): Rename to...
1918 (__getwd_warn): ... this. Add __warnattr.
1919 (getwd): Call __getwd_warn instead of __getwd_alias.
1920 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
1921 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
1922 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
1923 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
1924 __wcsnrtombs_chk_warn): New aliases with __warnattr.
1925 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
1926 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
1927 compile time detectable overflow is found.
1928 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
1929 to use __*_chk or not.
1930 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
1931 in comparisons which function should be called and in __*_chk*
1932 arguments. Call __*_chk_warn instead of __*_chk if compile time
1933 detectable overflow is found.
1934 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
1936 * debug/tst-chk1.c (do_test): Add a few more tests.
1938 2007-09-24 Ulrich Drepper <drepper@redhat.com>
1941 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
1942 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
1943 (_nl_unload_domain): Finalize conversions_lock.
1944 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
1945 handling table of known conversions.
1947 2007-09-24 Jakub Jelinek <jakub@redhat.com>
1949 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
1950 close_not_cancel_no_status instead of close.
1952 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
1955 * posix/regcomp.c (lookup_collation_sequence_value): Check that
1956 nrules != 0 for multibyte chars.
1958 2007-09-23 Ulrich Drepper <drepper@redhat.com>
1960 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
1961 Provide better error message in case the type is unknown.
1964 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
1965 * string/stratcliff.c: Make usable to test wide char functions.
1966 * wcsmbs/wcsatcliff.c: New file.
1967 * wcsmbs/Makefiel (tests): Add wcsatcliff.
1970 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
1971 (distribute): Add mac-centraleurope.c.
1972 (gen-8bit-gap-modules): Add mac-centraleurope.
1973 * iconvdata/mac-centraleurope.c: New file.
1974 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
1975 * iconvdata/TESTS: Likewise.
1976 * iconvdata/tst-tables.sh: Likewise.
1979 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
1981 2007-09-21 Ulrich Drepper <drepper@redhat.com>
1983 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
1984 from __x86_64_core_cache_size_half.
1985 (init_cacheinfo): Compute shared cache size for AMD processors with
1986 shared L3 correctly.
1987 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
1989 Patch in large parts by Evandro Menezes.
1991 2007-09-19 Ulrich Drepper <drepper@redhat.com>
1993 * elf/dl-lookup.c (add_dependency): Handle failing memory
1994 allocation for dependency list. Remove unnecessary check.
1996 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
1997 open/close when determining source addresses.
1999 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
2000 sha512-crypt, and sha512.
2001 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
2002 (distribute): Add sha256.h and sha512.h.
2003 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
2004 and call the appropriate code.
2005 * crypt/sha256-crypt.c: New file.
2006 * crypt/sha256.c: New file.
2007 * crypt/sha256.h: New file.
2008 * crypt/sha256c-test.c: New file.
2009 * crypt/sha256test.c: New file.
2010 * crypt/sha512-crypt.c: New file.
2011 * crypt/sha512.c: New file.
2012 * crypt/sha512.h: New file.
2013 * crypt/sha512c-test.c: New file.
2014 * crypt/sha512test.c: New file.
2016 2007-09-19 Jakub Jelinek <jakub@redhat.com>
2018 * misc/bits/syslog.h (syslog): Remove extraneous argument from
2019 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
2022 2007-09-18 Jakub Jelinek <jakub@redhat.com>
2024 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
2025 %as in fscanf format strings.
2027 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
2028 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2029 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
2031 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
2034 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
2035 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
2036 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
2037 * elf/dl-sym.c (do_sym): Likewise.
2038 * include/link.h (struct link_map): Add l_serial field.
2039 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
2040 * elf/dl-lookup.c (add_dependency): Add flags argument.
2041 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
2042 flags, use THREAD_GSCOPE_RESET_FLAG before and
2043 THREAD_GSCOPE_SET_FLAG after
2044 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
2045 Don't dereference map until it has been found on some list.
2046 If map->l_serial changed, return -1.
2048 2007-09-17 Jakub Jelinek <jakub@redhat.com>
2050 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
2051 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
2052 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
2054 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
2055 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
2056 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
2057 add libc_hidden_proto.
2058 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
2059 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
2060 conformance requested.
2061 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
2062 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
2063 conformance requested.
2064 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
2065 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
2066 conformance requested.
2067 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
2068 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
2069 ISO C99 or POSIX conformance requested.
2070 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
2071 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
2072 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
2073 and __isoc99_vsscanf@@GLIBC_2.7.
2074 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
2075 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
2076 (tests): Add scanf14.
2077 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
2078 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
2079 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
2080 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
2081 CFLAGS-isoc99_scanf.c): Add $(exceptions).
2082 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
2083 from using internal headers.
2084 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
2085 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
2086 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
2087 and __isoc99_vswscanf@@GLIBC_2.7.
2088 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
2089 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
2090 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
2091 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
2092 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
2093 * stdio-common/isoc99_scanf.c: New file.
2094 * stdio-common/isoc99_vsscanf.c: New file.
2095 * stdio-common/isoc99_vscanf.c: New file.
2096 * stdio-common/isoc99_vfscanf.c: New file.
2097 * stdio-common/isoc99_fscanf.c: New file.
2098 * stdio-common/isoc99_sscanf.c: New file.
2099 * wcsmbs/isoc99_fwscanf.c: New file.
2100 * wcsmbs/isoc99_vswscanf.c: New file.
2101 * wcsmbs/isoc99_swscanf.c: New file.
2102 * wcsmbs/isoc99_wscanf.c: New file.
2103 * wcsmbs/isoc99_vwscanf.c: New file.
2104 * wcsmbs/isoc99_vfwscanf.c: New file.
2105 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
2106 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
2107 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
2108 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
2109 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
2110 * stdio-common/scanf14.c: New test.
2111 * stdio-common/scanf15.c: New test.
2112 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2113 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
2114 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
2115 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
2116 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
2117 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
2118 __nldbl___isoc99_scanf@@GLIBC_2.7,
2119 __nldbl___isoc99_fscanf@@GLIBC_2.7,
2120 __nldbl___isoc99_sscanf@@GLIBC_2.7,
2121 __nldbl___isoc99_vscanf@@GLIBC_2.7,
2122 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
2123 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
2124 __nldbl___isoc99_wscanf@@GLIBC_2.7,
2125 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
2126 __nldbl___isoc99_swscanf@@GLIBC_2.7,
2127 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
2128 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
2129 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
2130 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
2131 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
2132 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
2133 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
2134 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
2135 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2136 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
2137 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
2138 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
2139 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
2140 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
2141 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
2143 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
2144 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
2145 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
2146 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
2147 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
2148 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
2149 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
2150 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
2151 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
2152 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
2153 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
2154 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
2156 * stdio-common/Makefile (tests): Add scanf13.
2158 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
2159 m modifier followed by l.
2160 (STRING_ARG): Add width argument.
2161 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
2162 <case L_('C')>: Handle %mlc and %mC.
2163 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
2165 * stdio-common/scanf13.c: New test.
2167 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
2168 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
2170 2007-09-18 Ulrich Drepper <drepper@redhat.com>
2172 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
2173 type and __THROW marker of splice, vmsplice, and tee.
2174 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2175 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2176 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2177 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2178 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2179 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2180 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2181 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
2182 as cancellation points.
2184 2003-11-01 Daniel Jacobowitz <dan@debian.org>
2186 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
2187 parse more than three parts of the version number.
2189 2007-09-15 Ulrich Drepper <drepper@redhat.com>
2191 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
2192 modifier. Patch by Jakub Jelinek.
2194 2007-08-26 Jakub Jelinek <jakub@redhat.com>
2196 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
2197 call_fallocate in misc subdir.
2198 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
2199 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
2200 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
2201 instead of __fallocate64.
2202 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
2204 2007-09-15 Jakub Jelinek <jakub@redhat.com>
2206 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
2207 * rt/Makefile (headers): Add bits/mqueue2.h.
2208 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
2209 optimizing with GCC and __va_arg_pack_len is defined.
2210 * rt/bits/mqueue2.h: New file.
2211 * rt/mq_open.c (__mq_open): Renamed from mq_open.
2212 (mq_open): New strong_alias.
2213 (__mq_open_2): New function.
2214 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
2215 (mq_open): New strong_alias.
2216 (__mq_open_2): New function.
2217 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
2218 * Versions.def (librt): Add GLIBC_2.7 version.
2219 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
2220 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
2222 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
2223 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
2224 is defined rather than when not C++.
2225 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
2226 __openat64_alias): New redirects.
2227 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
2228 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
2229 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
2230 (open, open64, openat, openat64): Rewrite as __extern_always_inline
2231 functions instead of function-like macros.
2233 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
2235 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
2236 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
2237 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
2239 2007-09-15 Mike Frysinger <vapier@gentoo.org>
2241 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
2242 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
2244 2007-09-14 Mike Frysinger <vapier@gentoo.org>
2246 * inet/tst-network.c: Increment ERRORS for failing tests.
2248 2007-09-07 Jakub Jelinek <jakub@redhat.com>
2250 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
2251 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
2252 implement as __extern_always_inline function.
2253 (vsyslog): Define as __extern_always_inline function unconditionally.
2254 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
2255 When __va_arg_pack is defined, implement as __extern_always_inline
2257 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
2258 __extern_always_inline functions unconditionally.
2259 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
2260 bits/stdio2.h will be included.
2261 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
2262 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
2263 implement as __extern_always_inline functions.
2264 (vswprintf, vwprintf, vfwprintf): Define as
2265 __extern_always_inline functions unconditionally.
2266 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
2268 2007-09-03 Jakub Jelinek <jakub@redhat.com>
2270 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
2271 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
2273 * include/features.h (__USE_EXTERN_INLINES): Define only when
2274 __extern_inline is defined.
2275 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
2276 is defined instead of when not __cplusplus.
2277 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
2278 is defined instead of when not __cplusplus.
2279 * socket/sys/socket.h: Include bits/socket2.h when
2280 __extern_always_inline is defined instead of when not __cplusplus.
2281 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
2282 is defined instead of when not __cplusplus.
2283 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
2284 is defined instead of when not __cplusplus.
2285 * string/string.h: Include bits/string3.h when __extern_always_inline
2286 is defined instead of when not __cplusplus.
2287 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
2288 is defined instead of when not __cplusplus.
2289 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
2290 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
2292 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
2293 defined __extern_always_inline instead of !defined __cplusplus.
2294 * libio/bits/stdio-ldbl.h: Likewise.
2295 * wcsmbs/bits/wchar-ldbl.h: Likewise.
2296 * misc/bits/syslog.h (syslog): Don't define for C++.
2297 (vsyslog): Use __extern_always_inline function for C++ instead of
2299 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
2300 whenever that macro is defined.
2301 (vprintf): Don't provide the inline for C++.
2302 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
2303 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
2304 define the macros for C++.
2305 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
2306 __extern_always_inline functions for C++.
2307 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
2308 stat64, lstat64, fstat64, fstatat64): Don't define if not
2309 __USE_EXTERN_INLINES.
2310 * wcsmbs/bits/wchar2.h: Fix #error message.
2311 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
2312 (vswprintf, vwprintf, vfwprintf): Define using
2313 __extern_always_inline functions for C++.
2314 * string/bits/string3.h: Don't #undef macros if __cplusplus.
2315 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
2316 strncpy, strcat, strncat): Define as __extern_always_inline
2317 functions instead of macros for C++.
2318 * math/bits/cmathcalls.h: Guard __extern_inline routines with
2319 defined __extern_inline.
2320 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
2321 to __extern_inline whenever that macro is defined.
2322 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2323 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2324 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
2325 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
2326 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2327 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2328 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2329 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
2330 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
2331 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
2332 prototypes. Only provide __extern_inline routines if
2333 __USE_EXTERN_INLINES.
2334 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
2336 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
2337 For now avoid some *printf tests in C++. Skip all testing
2338 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
2340 * debug/tst-chk4.cc: New file.
2341 * debug/tst-chk5.cc: New file.
2342 * debug/tst-chk6.cc: New file.
2343 * debug/tst-lfschk4.cc: New file.
2344 * debug/tst-lfschk5.cc: New file.
2345 * debug/tst-lfschk6.cc: New file.
2346 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
2348 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
2349 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
2350 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
2352 2007-09-13 Ulrich Drepper <drepper@redhat.com>
2354 * po/cs.po: Update from translation team.
2356 2007-09-11 Roland McGrath <roland@redhat.com>
2358 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
2361 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
2363 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
2365 2007-09-05 Roland McGrath <roland@redhat.com>
2367 * manual/signal.texi (Signaling Another Process): Typo fix.
2368 From Karl Berry <karl@freefriends.org>.
2370 2007-08-29 Ulrich Drepper <drepper@redhat.com>
2372 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
2373 zero if not defined.
2374 (make_request): Recognize optimistic addresses and treat them like
2375 deprecated addresses.
2376 Reported by Neil Horman <nhorman@redhat.com>.
2378 2007-08-28 Ulrich Drepper <drepper@redhat.com>
2380 * nscd/connections.c (send_ro_fd): Also transfer file size.
2381 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
2382 file size don't call fstat.
2384 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
2385 ahead and map the file. This should always be correct and we can
2386 catch problems later.
2388 2007-08-28 Jakub Jelinek <jakub@redhat.com>
2390 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
2392 (__fread_alias, __fread_unlocked_alias): New aliases.
2393 (fread): New extern inline.
2394 (fread_unlocked): Likewise. Undef macro before definition of
2395 the inline function.
2396 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
2397 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
2398 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
2399 and __fread_unlocked_chk@@GLIBC_2.7.
2400 * debug/fread_chk.c: New file.
2401 * debug/fread_u_chk.c: New file.
2402 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
2404 2007-08-27 Jakub Jelinek <jakub@redhat.com>
2406 * sysdeps/unix/sysv/linux/syscalls.list
2407 (personality): Change caller to EXTRA.
2409 2007-08-25 Ulrich Drepper <drepper@redhat.com>
2411 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
2413 * iconvdata/iso-2022-cn.c (BODY): Likewise.
2415 * locale/programs/ld-collate.c (collate_output): Avoid warning if
2418 * Makerules: Use -p option with mkdir.
2420 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
2421 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
2422 (_xdr_directory_obj): Likewise.
2423 (xdr_entry_obj): Likewise.
2424 (xdr_group_obj): Likewise.
2425 (xdr_link_obj): Likewise.
2426 (xdr_table_obj): Likewise.
2427 (_xdr_nis_result): Likewise.
2428 (_xdr_ns_request): Likewise.
2429 (_xdr_ib_request): Likewise.
2430 (_xdr_nis_taglist): Likewise.
2431 (xdr_cback_data): Likewise.
2432 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
2433 (xdr_ypresp_maplist): Likewise.
2435 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
2437 * posix/regex_internal.h: Prevent some declarations and definitions
2438 to be seen when used in tests.
2440 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
2441 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
2443 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
2445 * config.make.in (datarootdir): Add to shut up configure.
2447 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
2448 associativity for fully-associative caches.
2450 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
2451 requests. Fill on more associativity values for L2.
2452 Patch mostly by Evandro Menezes.
2454 2007-08-24 Ulrich Drepper <drepper@redhat.com>
2456 * sysdeps/unix/sysv/linux/x86_64/init-first.c
2457 (_libc_vdso_platform_setup): Avoid using exported variable by using
2460 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
2462 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
2463 fallocate64 as EXTRA. It is not referenced if the symbol isn't
2466 2007-08-23 Ulrich Drepper <drepper@redhat.com>
2468 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
2469 align stack for call if pltexit is to be used.
2472 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
2473 align for function call in case pltexit has to be called later.
2475 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
2476 implicit atomic operation when storing function pointer.
2477 (_dl_runtime_profile): Likewise.
2479 2007-08-17 Jakub Jelinek <jakub@redhat.com>
2481 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
2484 2007-08-21 Ulrich Drepper <drepper@redhat.com>
2487 * string/strtok.c: Fix typo in comment.
2490 * debug/segfault.c: Fix typos in comments.
2493 * stdio-common/tempnam.c: Fix comment, it is not checked that
2494 TMPDIR points to a writable directory.
2497 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
2498 memory allocated for the name server address.
2501 * nscd/connections.c (handle_request): Using sendfile always
2502 requires that mmap is used for the database.
2503 Patch by Petr Baudis <pasky@suse.cz>.
2506 * nscd/hstcache.c (cache_addhst): When reloading an entry which
2507 suddenly has two or more addresses, ignore it and remove the old
2511 * resolv/res_hconf.c: Prepare for compiling outside libc.
2512 * nscd/res_hconf.c: New file.
2513 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
2515 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
2516 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
2518 * nscd/hstcache.c (cache_addhst): Minimal optimization.
2521 * debug/pcprofiledump.c: Turn on internationalization by calling
2522 setlocale. Patch mostly by Benno Schulenberg.
2525 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
2527 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
2528 * iconvdata/bug-iconv5.c: New file.
2530 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
2533 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
2534 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
2535 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
2536 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
2537 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
2538 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
2539 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
2540 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
2542 2007-08-21 Ulrich Drepper <drepper@redhat.com>
2545 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
2546 lookup loop. Suggested by John Reiser.
2548 2007-08-21 Jakub Jelinek <jakub@redhat.com>
2550 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
2552 2007-08-20 Ulrich Drepper <drepper@redhat.com>
2554 * csu/libc-start.c: Don't handle VDSO_SETUP here.
2555 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
2556 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
2557 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
2558 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
2560 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
2562 2007-08-18 Ulrich Drepper <drepper@redhat.com>
2564 * po/nl.po: Update from translation team.
2566 2007-08-16 Andreas Jaeger <aj@suse.de>
2568 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
2569 Reported by Peter Festner <peter.festner@ewetel.net>.
2571 2007-08-17 Jakub Jelinek <jakub@redhat.com>
2573 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
2575 2007-08-16 Jakub Jelinek <jakub@redhat.com>
2577 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
2578 to check for undefined symbols.
2580 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
2581 If the syscall fails, set errno to the actual returned error number
2583 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
2584 arguments are incorrect, set errno to EINVAL, if the syscall
2585 fails, set errno to the actual returned error number.
2587 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
2588 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
2590 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
2591 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
2593 (ASI_PNF, ASI_BLK_P): Don't define.
2594 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
2595 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
2597 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
2598 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
2601 2007-08-15 Jakub Jelinek <jakub@redhat.com>
2603 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
2604 FE_UNDERFLOW on Niagara CPUs.
2606 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
2609 2007-08-14 Jakub Jelinek <jakub@redhat.com>
2611 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
2612 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
2613 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
2614 flush should be used or not inside of the function.
2615 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
2617 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
2618 __thread_start): Use HIDDEN_JUMPTARGET.
2619 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
2620 __thread_start): Likewise.
2621 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
2623 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
2624 Add libc_hidden_proto.
2625 (STRTOF): Add libc_hidden_proto.
2626 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
2627 (strtold_l, wcstold_l): Use them as second argument for
2630 2007-08-14 Ulrich Drepper <drepper@redhat.com>
2632 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
2634 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2636 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
2638 2007-08-14 Ulrich Drepper <drepper@redhat.com>
2640 * po/bg.po: New file. From the translation team.
2642 2007-08-13 Jakub Jelinek <jakub@redhat.com>
2644 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
2645 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
2646 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
2647 when each feature was introduced.
2649 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
2650 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
2651 (CHECK_HASH): New macro.
2652 (PREPARE_VERSION): Use it.
2654 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
2655 prototype if not __ASSUME_PSELECT.
2656 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
2657 prototype if not __ASSUME_PPOLL.
2659 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
2661 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
2662 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
2665 2007-08-13 Ulrich Drepper <drepper@redhat.com>
2667 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
2668 (_libc_vdso_platform_setup): If vDSO is not available point
2669 __vdso_gettimeofday to the vsyscall.
2670 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
2671 __vdso_gettimeofday instead of vsyscall.
2673 2007-08-13 Jakub Jelinek <jakub@redhat.com>
2675 * nscd/servicescache.c: Include kernel-features.h.
2676 * nscd/gai.c: Likewise.
2677 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
2678 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
2679 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
2680 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
2681 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
2682 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
2683 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
2684 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
2685 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
2687 2007-08-12 Ulrich Drepper <drepper@redhat.com>
2689 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
2690 and _dl_get_origin defines anymore.
2692 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
2693 Build fix for systems which might lack POSIX timer support.
2695 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
2696 (_libc_vdso_platform_setup): Mangle function pointers before storing
2698 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
2699 Demangle vdso pointer before use.
2700 (INTERNAL_VSYSCALL): Likewise.
2702 * elf/cache.c (primes): Mark as const.
2703 Noted by Roland McGrath.
2705 2007-08-01 Andreas Jaeger <aj@suse.de>
2706 Jakub Jelinek <jakub@redhat.com>
2708 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
2709 (options): Add option.
2710 (parse_opt): Handle option.
2711 (manual_link): Adjust process_file caller. Call implicit_soname.
2712 (search_dir): Formatting. Use and populate auxiliary cache.
2713 (main): Load and save auxiliary cache.
2714 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
2715 stat64 from fstat64 to caller.
2716 (implicit_soname): New function.
2717 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
2718 leave *soname as NULL.
2719 * elf/cache.c: Include libgen.h.
2720 (print_entry, print_cache, compare, save_cache, add_to_cache):
2721 Formatting and cleanups.
2722 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
2723 aux_cache_file): New structures.
2724 (AUX_CACHEMAGIC): Define.
2725 (primes): New array.
2726 (aux_hash_size, aux_hash): New variables.
2727 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
2728 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
2729 load_aux_cache, save_aux_cache): New functions.
2730 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
2731 (init_aux_cache, search_aux_cache, add_to_aux_cache,
2732 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
2733 (process_file): Adjust prototype.
2735 2007-08-12 Jakub Jelinek <jakub@redhat.com>
2737 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
2740 2007-08-12 Ulrich Drepper <drepper@redhat.com>
2742 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
2743 r_found_version structure as second parameter.
2744 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
2745 (_dl_vdso_vsym): Change type of second parameter accordingly.
2746 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
2747 (_libc_vdso_platform_setup): Adjust.
2748 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
2749 (_libc_vdso_platform_setup): Likewise.
2751 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
2752 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
2753 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
2754 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
2755 * csu/libc-start.c: Pretty printing.
2756 Use VDSO_SETUP if defined.
2757 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
2758 and let generic code call into _libc_vdso_platform_setup.
2759 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
2760 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
2761 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
2762 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
2763 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
2765 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
2766 (sysdep_rountines): Add dl-vdso.
2768 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
2771 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
2772 attribute_hidden to __vdso_gettimeofday prototype.
2774 2007-08-12 Roland McGrath <roland@redhat.com>
2776 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
2777 From: Karl Berry <karl@freefriends.org>.
2779 2007-08-11 Ulrich Drepper <drepper@redhat.com>
2781 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
2782 an atime update for the files we read.
2784 2007-08-10 Ulrich Drepper <drepper@redhat.com>
2786 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
2788 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
2791 * misc/Makefile (routines): Add mkostemp and mkostemp64.
2792 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
2793 * misc/mkostemp.c: New file.
2794 * misc/mkostemp64.c: New file.
2795 * stdlib/stdlib.h: Declare the new functions.
2796 * sysdeps/posix/tempname.c: Add new parameter which is added to
2797 the flags for open. Remove __GT_BIGFILE handling.
2798 * stdio-common/tempname.c: Likewise.
2799 * include/stdio.h: Adjust __gen_tempname prototype.
2800 Renumber __GT_* constants.
2801 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
2802 * misc/mkdtemp.c: Likewise.
2803 * misc/mkstemp.c: Likewise.
2804 * misc/mkstemp64.c: Likewise.
2805 * misc/mktemp.c: Likewise.
2806 * stdio-common/tempnam.c: Likewise.
2807 * stdio-common/tmpfile.c: Likewise.
2808 * stdio-common/tmpfile64.c: Likewise.
2809 * stdio-common/tmpnam.c: Likewise.
2810 * stdio-common/tmpnam_r.c: Likewise.
2812 2007-08-10 Roland McGrath <roland@frob.com>
2814 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
2816 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
2817 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2819 2007-08-10 Ulrich Drepper <drepper@redhat.com>
2821 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
2823 * nss/nss_files/files-alias.c (internal_setent): Likewise.
2824 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
2825 * nss/nss_files/files-have_o_cloexec.c: New file.
2827 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
2830 2007-08-10 Jakub Jelinek <jakub@redhat.com>
2832 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
2833 ___new_wcstold_l): New weak aliases.
2834 (strtold_l, wcstold_l): Use them as second argument for
2837 2007-08-09 Ulrich Drepper <drepper@redhat.com>
2839 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
2840 register in test for error.
2842 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
2843 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
2845 * po/sv.po: Update from translation team.
2847 2007-08-06 Roland McGrath <roland@redhat.com>
2849 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
2850 Remove __strto*_l inlines.
2851 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
2852 * stdlib/strtod.c: Add libc_hidden_def.
2853 * stdlib/strtod_l.c: Likewise.
2854 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
2855 for __new_strtold and __new_wcstold.
2856 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
2858 * stdlib/strtol.c: Add libc_hidden_def.
2859 * stdlib/strtol_l.c: Likewise.
2860 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
2863 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
2865 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
2866 * scripts/data/localplt-generic.data: ... here.
2867 * elf/Makefile (check-data): Get generic file if no other.
2868 ($(objpfx)check-localplt.out): Make target unconditional.
2870 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
2873 2007-08-05 Ulrich Drepper <drepper@redhat.com>
2875 * po/zh_CN.po: Updated translation from translation team.
2877 2007-08-05 Jakub Jelinek <jakub@redhat.com>
2879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
2880 Don't use CGOTSETUP and CGOTRESTORE macros.
2882 2007-08-04 Roland McGrath <roland@redhat.com>
2884 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
2886 2007-08-04 Jakub Jelinek <jakub@redhat.com>
2888 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
2889 __extension__ around the whole statement expression.
2891 2007-08-04 Ulrich Drepper <drepper@redhat.com>
2893 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
2894 elements during initialization.
2896 * po/pl.po: Updated translation from translation team.
2897 * po/tr.po: Likewise.
2898 * po/nl.po: Likewise.
2900 2007-08-03 Ulrich Drepper <drepper@redhat.com>
2902 * rt/aio.h: Add __nonnull attributes.
2904 2007-08-03 Jakub Jelinek <jakub@redhat.com>
2906 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
2907 * stdlib/Makefile (tests): Add tst-strtod5.
2908 (tst-strtod5-ENV): New.
2909 * stdlib/tst-strtod5.c: New file.
2911 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
2913 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
2916 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
2919 2007-08-03 Jakub Jelinek <jakub@redhat.com>
2921 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
2924 2007-08-02 Ulrich Drepper <drepper@redhat.com>
2926 * io/Makefile (aux): Add have_o_cloexec.
2927 * include/fcntl.h: Declare __have_o_cloexec.
2928 * io/have_o_cloexec.c: New file.
2929 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
2930 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
2931 fcntl call if not necessary.
2932 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
2935 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
2936 Avoid memset, add explicit initialization.
2937 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
2938 to the end and change into zero-sized array.
2939 Move lock member to fill a hole on 64-bit platforms.
2941 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
2943 * include/stdlib.h: Add __strto*_internal prototypes here.
2944 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
2946 * include/wchar.h: Add __wcsto*_internal prototypes.
2947 * sysdeps/generic/inttypes.h: No need to protect the declaration
2948 of the __strto*_internal and __wcsto*_internal members here.
2950 * rt/mqueue.h: Change const to __const and add nonnull attributes.
2952 2007-08-02 Roland McGrath <roland@redhat.com>
2954 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
2955 $(inst_bindir)/getconf if possible.
2957 * posix/Makefile ($(objpfx)getconf.speclist): New target.
2958 (generated): Add it.
2959 ($(inst_libexecdir)/getconf): Use it.
2961 2007-08-01 Ulrich Drepper <drepper@redhat.com>
2963 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
2964 /proc is faster and sufficient. /sys is still needed for
2967 2007-08-01 Jakub Jelinek <jakub@redhat.com>
2969 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
2970 syscall as __fallocate64.
2971 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
2972 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
2974 2007-07-30 Jakub Jelinek <jakub@redhat.com>
2976 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
2979 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
2980 if off_t is different rank from size_t.
2982 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
2983 uw_frame_state_for): Avoid type punning warnings.
2984 * sysdeps/generic/unwind-dw2-fde-glibc.c
2985 (_Unwind_IteratePhdrCallback): Likewise.
2986 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
2987 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
2988 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
2991 2007-07-31 Ulrich Drepper <drepper@redhat.com>
2993 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
2994 total processors using sysfs.
2995 (__get_nprocs): Use sysfs to determine which processors are online.
2997 2007-07-31 Jakub Jelinek <jakub@redhat.com>
2999 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
3000 syscall arguments count.
3002 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
3004 2007-07-30 Roland McGrath <roland@redhat.com>
3006 * manual/libc.texinfo: Update copyrights, formatting magic, and
3007 @dircategory. From Karl Berry <karl@freefriends.org>.
3009 2007-07-29 Ulrich Drepper <drepper@redhat.com>
3012 * io/Makefile (headers): Add bits/fcntl2.h.
3014 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
3016 (__CPU_EQUAL_S): Likewise.
3018 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
3019 (tests): Add tst-cpuset.
3020 * posix/sched_cpualloc.c: New file.
3021 * posix/sched_cpufree.c: New file.
3022 * posix/tst-cpuset.c: New file.
3023 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
3025 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
3026 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
3027 macros. Define CPU_*_S macros.
3029 2007-07-28 Ulrich Drepper <drepper@redhat.com>
3031 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
3035 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
3036 #.0g and value rounded to 1.0.
3037 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
3039 2007-07-26 Jakub Jelinek <jakub@redhat.com>
3041 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
3042 for int_frac_digits and frac_digits.
3044 * login/logout.c (logout): Avoid aliasing violation.
3045 * login/logwtmp.c (logwtmp): Likewise.
3047 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
3049 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
3051 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
3053 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
3055 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
3058 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
3060 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
3062 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
3063 char * to avoid warning.
3064 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
3066 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
3068 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
3069 allocate_arrays): Cast second argument to charmap_find_symbol
3070 to char * to avoid warnings.
3072 * locale/programs/repertoire.c (repertoire_new_char): Change
3073 from_nr, to_nr and cnt to unsigned long, adjust printf format
3076 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
3077 Cast second argument to new_element to char * to avoid warnings.
3079 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
3081 * intl/gettextP.h (struct loaded_domain): Change plural to const
3082 struct expression *.
3083 * intl/plural-eval.c (plural_eval): Change first argument to
3084 const struct expression *.
3085 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
3086 argument to const struct expression **.
3087 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
3089 * intl/loadmsgcat (_nl_unload_domain): Cast away const
3090 in call to __gettext_free_exp.
3092 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
3093 unitialized wstring/wpattern var warnings.
3095 * posix/runtests.c (struct a_test): Make data field const char *.
3097 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
3098 vars if not LDBL_MANT_DIG >= 106.
3100 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
3102 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
3103 __find_specmb to avoid warning.
3105 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
3107 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
3110 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
3113 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
3114 tv var when it will be actually used.
3116 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
3119 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
3120 char array resp. pointer.
3121 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
3123 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
3124 to const unsigned char **.
3125 (ucs4_to_cns11643): Change second argument to unsigned char *.
3126 * iconvdata/euc-tw.c (BODY): Change endp type to
3127 const unsigned char *.
3128 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
3130 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
3131 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
3132 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
3133 types to unsigned char pointers/arrays instead of char.
3134 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
3136 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
3137 * iconvdata/jis0212.h: Include assert.h.
3138 (ucs4_to_jisx0212): Change second argument to unsigned char *.
3139 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
3140 of trying to handle that.
3141 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
3143 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
3144 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
3145 two dimensional const unsigned char arrays.
3146 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
3147 Initialize endp to inptr to shut up a warning.
3149 2007-07-20 Jakub Jelinek <jakub@redhat.com>
3152 * time/strptime_l.c (__strptime_internal): Silently ignore
3153 strftime modifiers and field width in recursive calls.
3155 * include/time.h (enum ptime_locale_status): Remove.
3156 (__strptime_internal): Remove decided and era_cnt arguments,
3157 add statep argument.
3158 * time/strptime_l.c (__strptime_internal): Remove decided
3159 and era_cnt arguments, add statep argument. Don't recompute
3160 any fields in recursive calls, only update caller's tm
3161 and state, if recursive call fails, don't change tm nor
3163 (get_alt_number): Adjust.
3164 (recursive): Adjust caller.
3165 (strptime): Likewise.
3166 * time/strptime.c (strptime): Likewise.
3168 2007-07-19 Jakub Jelinek <jakub@redhat.com>
3170 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
3171 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
3172 if from and to charsets are the same.
3173 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
3174 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
3175 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
3177 2007-07-17 Jakub Jelinek <jakub@redhat.com>
3179 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
3180 Don't define wint_t when __need_mbstate_t unless it
3182 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
3183 in the typedef if possible.
3184 * wctype/wctype.h (wint_t): Define by including
3185 wchar.h with __need_wint_t instead of including stddef.h
3186 with __need_wint_t and as fallback definining it ourselves.
3187 * iconv/gconv.h (__need_wint_t): Define before including
3189 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
3190 or _GLIBCPP_USE_WCHAR_T.
3191 (__need_wchar_t): Don't define
3192 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
3193 (__need_wint_t): Don't define before including stddef.h,
3194 define before including wchar.h only if _LIBC or
3195 _GLIBCPP_USE_WCHAR_T.
3196 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
3197 * sysdeps/mach/hurd/_G_config.h: Likewise.
3198 * sysdeps/generic/_G_config.h: Likewise.
3199 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
3200 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
3201 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
3202 if _LIBC or _GLIBCPP_USE_WCHAR_T.
3204 2007-07-28 Ulrich Drepper <drepper@redhat.com>
3206 * sysdeps/posix/posix_fallocate64.c: Undefine
3207 __posix_fallocate64_l64 before alias handling.
3208 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
3209 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
3210 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
3211 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
3213 * io/tst-posix_fallocate.c: Include <fcntl.h>.
3215 2007-07-23 Jakub Jelinek <jakub@redhat.com>
3217 * locale/programs/ld-collate.c (atwc): New variable.
3218 (add_to_tablewc): New toplevel function, moved from collate_output.
3219 (collate_output): Remove add_to_tablewc nested function.
3221 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
3222 (name_insert): New function.
3223 (write_output): Remove hash_table and hash_size vars and name_insert
3226 2007-07-24 Roland McGrath <roland@redhat.com>
3228 * Makerules (install-others-programs-nosubdir): New target.
3229 (install-no-libc.a-nosubdir): Depend on it.
3231 * iconv/Makefile (install-others-programs): Set this instead of
3233 * login/Makefile (install-others-programs): Likewise.
3234 * posix/Makefile (install-others-programs): Likewise.
3236 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
3239 2007-07-23 Ulrich Drepper <drepper@redhat.com>
3241 * io/Makefile (tests): Add tst-posix_fallocate.
3242 * io/tst-posix_fallocate.c: New file.
3244 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3247 2007-07-22 Roland McGrath <roland@frob.com>
3249 * hurd/getdport.c: Add missing copyright year update.
3251 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
3252 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
3254 2007-07-22 Ulrich Drepper <drepper@redhat.com>
3256 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
3258 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
3259 O_CLOEXEC is needed.
3260 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
3261 Avoid additional fcntl to set O_CLOEXEC if not needed.
3262 * nis/nss_compat/compat-initgroups.c: Likewise.
3263 * nis/nss_compat/compat-pwd.c: Likewise.
3264 * nis/nss_compat/compat-spwd.c: Likewise.
3266 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
3269 * manual/errno.texi: Change ECANCELED value to 119.
3272 * mach/lock-intern.h: Include <sys/cdefs.h>.
3275 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
3279 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
3282 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
3284 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
3286 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
3288 * sysdeps/mach/hurd/i386/tls.h: Likewise.
3290 2007-07-21 Ulrich Drepper <drepper@redhat.com>
3292 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
3293 descriptor received from nscd.
3295 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
3297 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
3298 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3299 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3300 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3301 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3302 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3304 2007-07-20 Jakub Jelinek <jakub@redhat.com>
3307 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
3310 * login/forkpty.c (forkpty): Close master and slave fds on
3311 fork failure. Patch by
3312 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
3314 2007-07-18 Jakub Jelinek <jakub@redhat.com>
3316 * include/features.h (__USE_ISOC95): New define.
3317 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
3318 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
3319 for -std=iso9899:199409.
3320 * CONFORMANCE: Remove comments about unsupported AMD1.
3322 2007-07-17 Jakub Jelinek <jakub@redhat.com>
3324 * sysdeps/ia64/sched_cpucount.c: New file.
3325 * sysdeps/powerpc/sched_cpucount.c: New file.
3327 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
3328 __BEGIN_DECLS/__END_DECLS around the prototype.
3329 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
3330 pointer to const cpu_set_t.
3332 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
3333 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
3334 __need_size_t and include stddef.h.
3335 * sysvipc/sys/msg.h: Likewise.
3336 * posix/sched.h: Likewise.
3337 * hurd/hurd/signal.h (__need_size_t): Define.
3339 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
3340 neither does signal.h in pedantic ISO C namespaces. stdio.h
3341 no longer defines wint_t or wchar_t.
3343 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
3344 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
3345 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
3346 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
3347 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
3348 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
3349 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
3350 * debug/printf_chk.c (__printf_chk): Likewise.
3351 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
3352 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
3354 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
3357 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
3358 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
3360 2007-07-16 Jakub Jelinek <jakub@redhat.com>
3363 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
3364 * malloc/malloc.h (realloc): Likewise.
3366 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
3367 if one of proc_file_chain streams has that fileno.
3368 * stdio-common/Makefile (tests): Add tst-popen2.
3369 * stdio-common/tst-popen2.c: New test.
3371 2007-07-14 Jakub Jelinek <jakub@redhat.com>
3373 * elf/ldconfig.c: Allow GPLv2 or any later version.
3374 * elf/readlib.c: Likewise.
3375 * elf/chroot_canon.c: Likewise.
3376 * elf/cache.c: Likewise.
3377 * nscd/mem.c: Likewise.
3378 * nscd/getpwuid_r.c: Likewise.
3379 * nscd/grpcache.c: Likewise.
3380 * nscd/aicache.c: Likewise.
3381 * nscd/getsrvbynm_r.c: Likewise.
3382 * nscd/nscd.c: Likewise.
3383 * nscd/servicescache.c: Likewise.
3384 * nscd/getsrvbypt_r.c: Likewise.
3385 * nscd/initgrcache.c: Likewise.
3386 * nscd/gethstbyad_r.c: Likewise.
3387 * nscd/gethstbynm2_r.c: Likewise.
3388 * nscd/getgrnam_r.c: Likewise.
3389 * nscd/nscd_setup_thread.c: Likewise.
3390 * nscd/getpwnam_r.c: Likewise.
3391 * nscd/gai.c: Likewise.
3392 * nscd/connections.c: Likewise.
3393 * nscd/dbg_log.c: Likewise.
3394 * nscd/cache.c: Likewise.
3395 * nscd/hstcache.c: Likewise.
3396 * nscd/nscd_conf.c: Likewise.
3397 * nscd/getgrgid_r.c: Likewise.
3398 * nscd/pwdcache.c: Likewise.
3399 * catgets/gencat.c: Likewise.
3400 * locale/programs/linereader.h: Likewise.
3401 * locale/programs/locarchive.c: Likewise.
3402 * locale/programs/ld-paper.c: Likewise.
3403 * locale/programs/locfile-kw.h: Likewise.
3404 * locale/programs/ld-address.c: Likewise.
3405 * locale/programs/xmalloc.c: Likewise.
3406 * locale/programs/ld-time.c: Likewise.
3407 * locale/programs/localedef.c: Likewise.
3408 * locale/programs/simple-hash.c: Likewise.
3409 * locale/programs/xstrdup.c: Likewise.
3410 * locale/programs/ld-numeric.c: Likewise.
3411 * locale/programs/locfile-kw.gperf: Likewise.
3412 * locale/programs/ld-collate.c: Likewise.
3413 * locale/programs/charmap-kw.gperf: Likewise.
3414 * locale/programs/charmap.h: Likewise.
3415 * locale/programs/charmap-kw.h: Likewise.
3416 * locale/programs/config.h: Likewise.
3417 * locale/programs/locfile.c: Likewise.
3418 * locale/programs/ld-ctype.c: Likewise.
3419 * locale/programs/charmap.c: Likewise.
3420 * locale/programs/ld-messages.c: Likewise.
3421 * locale/programs/repertoire.h: Likewise.
3422 * locale/programs/locale.c: Likewise.
3423 * locale/programs/ld-name.c: Likewise.
3424 * locale/programs/linereader.c: Likewise.
3425 * locale/programs/locfile.h: Likewise.
3426 * locale/programs/3level.h: Likewise.
3427 * locale/programs/ld-monetary.c: Likewise.
3428 * locale/programs/ld-measurement.c: Likewise.
3429 * locale/programs/charmap-dir.c: Likewise.
3430 * locale/programs/ld-identification.c: Likewise.
3431 * locale/programs/localedef.h: Likewise.
3432 * locale/programs/charmap-dir.h: Likewise.
3433 * locale/programs/repertoire.c: Likewise.
3434 * locale/programs/simple-hash.h: Likewise.
3435 * locale/programs/ld-telephone.c: Likewise.
3436 * locale/programs/locale-spec.c: Likewise.
3437 * locale/programs/locfile-token.h: Likewise.
3438 * posix/getconf.c: Likewise.
3439 * iconv/dummy-repertoire.c: Likewise.
3440 * iconv/iconv_charmap.c: Likewise.
3441 * iconv/iconvconfig.c: Likewise.
3442 * iconv/iconv_prog.c: Likewise.
3443 * malloc/memusagestat.c: Likewise.
3444 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
3446 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3448 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
3449 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
3450 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
3451 check for the first argument.
3453 2007-07-12 Jakub Jelinek <jakub@redhat.com>
3456 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
3457 (__tgmath_real_type): Fix if expr is const int or other const
3458 qualified integral type.
3459 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
3460 expressions and handle const qualified arguments.
3461 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
3462 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
3463 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
3464 statement expressions.
3465 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
3466 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
3467 (__TGMATH_UNARY_IMAG): Define.
3468 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
3469 * math/Makefile (tests): Add test-tgmath2.
3470 (CFLAGS-test-tgmath2.c): Add.
3471 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
3472 count_cfloat, count_cldouble): New variables.
3474 (main): Check number of complex calls as well.
3475 (F(compile_test)): Add complex tests and tests with const qualified
3477 (y, z, ccount): Define.
3478 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
3479 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
3480 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
3481 F(cproj)): New functions.
3482 * math/test-tgmath2.c: New test.
3484 2007-07-11 Jakub Jelinek <jakub@redhat.com>
3487 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
3488 RPATH etc. as "/" rather than "", don't segfault on empty paths,
3490 * dlfcn/Makefile (distribute): Add glreflib3.c.
3491 (module-names): Add glreflib3.
3492 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
3494 (LDFLAGS_glreflib3.so): New.
3495 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
3497 * dlfcn/glreflib3.c: New file.
3499 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
3500 returned -1, return NULL.
3501 * intl/explodename.c (_nl_explode_name): Return -1 if
3502 _nl_normalize_codeset failed.
3504 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
3506 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
3507 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
3508 and avoid branch misspredicts for > 31 bytes memset case.
3509 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
3510 Remove toc ref to __cache_line_size.
3512 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
3513 to get ISA-V2.0 branch hints.
3514 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
3515 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
3516 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
3517 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
3518 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
3519 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
3520 Remove toc ref to __cache_line_size.
3522 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
3523 Include math_ldbl_opt.h.
3525 2007-07-10 Ulrich Drepper <drepper@redhat.com>
3528 * time/strptime_l.c (__strptime_internal): Implement greedy
3529 matching of weekday and month names.
3531 2007-07-09 Roland McGrath <roland@redhat.com>
3533 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
3534 (ELF_NOTE_ABI): Use it.
3535 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
3537 2007-07-09 Ulrich Drepper <drepper@redhat.com>
3539 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
3540 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3542 2007-07-07 Ulrich Drepper <drepper@redhat.com>
3545 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
3546 in loop to look for conversion specifier to avoid testing of
3548 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
3549 * stdio-common/bug18.c: New file.
3550 * stdio-common/bug18a.c: New file.
3551 * stdio-common/bug19.c: New file.
3552 * stdio-common/bug19a.c: New file.
3554 2007-07-05 Mike Frysinger <vapier@gentoo.org>
3556 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
3559 2007-07-01 Jakub Jelinek <jakub@redhat.com>
3561 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
3562 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
3563 Return NULL if mmap failed instead of asserting it does not.
3564 (calloc): Check for integer overflow.
3566 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
3569 2007-07-03 Jakub Jelinek <jakub@redhat.com>
3572 * nis/nss-default.c: Include errno.h.
3573 (init): Preserve errno.
3575 2007-07-02 Ulrich Drepper <drepper@redhat.com>
3577 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
3579 2007-06-30 Ulrich Drepper <drepper@redhat.com>
3581 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
3583 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
3585 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
3587 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
3589 * sysdeps/s390/dl-procinfo.c: New file.
3590 * sysdeps/s390/dl-procinfo.h: New file.
3591 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
3593 2007-06-29 Jakub Jelinek <jakub@redhat.com>
3595 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
3596 in PT_NOTE segments with multiple notes.
3597 * elf/readelflib.c (process_elf_file): Likewise.
3599 2007-06-22 Ulrich Drepper <drepper@redhat.com>
3601 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
3604 2007-06-19 Ulrich Drepper <drepper@redhat.com>
3606 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
3608 2007-06-13 Jakub Jelinek <jakub@redhat.com>
3610 * include/link.h: Don't include rtld-lowlevel.h.
3611 (struct link_map): Remove l_scope_lock.
3612 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
3613 (_dl_scope_free_list): New field (variable) in _rtld_global.
3614 (DL_LOOKUP_SCOPE_LOCK): Remove.
3615 (_dl_scope_free): New prototype.
3616 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
3617 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
3618 (_dl_profile_fixup): Likewise.
3619 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
3620 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
3621 THREAD_GSCOPE_RESET_FLAG around it.
3622 * elf/dl-close.c (_dl_close_worker): Don't use
3623 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
3624 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
3625 scopes were queued or if l_scope_mem has been abandoned.
3626 * elf/dl-open.c (_dl_scope_free): New function.
3627 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
3628 * elf/dl-support.c (_dl_scope_free_list): New variable.
3629 * elf/dl-lookup.c (add_dependency): Remove flags argument.
3630 Remove DL_LOOKUP_SCOPE_LOCK handling.
3631 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
3633 * elf/dl-object.c (_dl_new_object): Don't use
3634 __rtld_mrlock_initialize.
3636 2007-06-19 Ulrich Drepper <drepper@redhat.com>
3638 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
3640 (rtld_global_ro): Likewise.
3642 2007-06-18 Jakub Jelinek <jakub@redhat.com>
3644 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
3645 Move PT_LOAD checking to...
3646 (_dl_addr_inside_object): ... here, new function.
3647 * elf/dl-sym.c (do_sym): If not l_contiguous,
3648 call _dl_addr_inside_object.
3649 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3650 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
3651 * elf/dl-open.c (dl_open_worker): Likewise.
3652 (_dl_addr_inside_object): New function if IS_IN_rtld.
3653 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
3654 holes are present or are PROT_NONE protected.
3655 * include/link.h (struct link_map): Add l_contiguous field.
3656 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
3658 2007-06-18 Jakub Jelinek <jakub@redhat.com>
3659 Tomas Janousek <tjanouse@redhat.com>
3660 Ulrich Drepper <drepper@redhat.com>
3663 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
3664 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
3666 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
3667 unused member a bitmap.
3668 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
3669 servers are configured.
3671 2007-06-18 Jakub Jelinek <jakub@redhat.com>
3673 * elf/rtld.c (dl_main): Don't call init_tls more than once.
3675 2007-06-17 Andreas Schwab <schwab@suse.de>
3677 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
3679 2007-06-16 Andreas Jaeger <aj@suse.de>
3682 * sysdeps/unix/sysv/linux/sys/ptrace.h
3683 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
3684 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
3685 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
3686 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
3687 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
3689 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
3690 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
3691 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
3692 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
3694 2007-06-16 Ulrich Drepper <drepper@redhat.com>
3697 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
3698 determining whether there are IPv4/IPv6 addresses, ignore loopback
3701 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
3703 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
3704 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
3705 as the return type. Change type of "r" variable to CMPtype.
3706 * soft-fp/eqsf2.c (__eqsf2): Likewise.
3707 * soft-fp/eqtf2.c (__eqtf2): Likewise.
3708 * soft-fp/gedf2.c (__gedf2): Likewise.
3709 * soft-fp/gesf2.c (__gesf2): Likewise.
3710 * soft-fp/getf2.c (__getf2): Likewise.
3711 * soft-fp/ledf2.c (__ledf2): Likewise.
3712 * soft-fp/lesf2.c (__lesf2): Likewise.
3713 * soft-fp/letf2.c (__letf2): Likewise.
3714 * soft-fp/unorddf2 (__unorddf2): Likewise.
3715 * soft-fp/unordsf2 (__unordsf2): Likewise.
3716 * soft-fp/unordtf2 (__unordtf2): Likewise.
3718 2007-06-09 Ulrich Drepper <drepper@redhat.com>
3720 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
3721 make sure gcc doesn't mess around with this.
3723 2007-06-08 Ulrich Drepper <drepper@redhat.com>
3725 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
3727 2007-06-08 Jakub Jelinek <jakub@redhat.com>
3729 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
3730 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
3731 at most once per _dl_close_worker.
3733 2007-06-08 Ulrich Drepper <drepper@redhat.com>
3735 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
3736 __sched_cpucount as const.
3737 * posix/sched_cpucount.c: Adjust.
3739 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
3740 instruction for counting bits.
3741 * sysdeps/x86_64/sched_cpucount.c: New file.
3743 2007-06-07 Ulrich Drepper <drepper@redhat.com>
3745 * configure.in: Avoid variable named BASH.
3746 * config.make.in: Likewise.
3747 Patch in part by Mike Frysinger.
3749 2007-06-06 Jakub Jelinek <jakub@redhat.com>
3752 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
3753 pseudo-zeros as zero.
3754 * sysdeps/x86_64/ldbl2mpn.c: New file.
3755 * sysdeps/ia64/ldbl2mpn.c: New file.
3757 2007-06-04 Jakub Jelinek <jakub@redhat.com>
3759 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
3760 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
3761 Remove unreachable code at the end.
3763 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
3765 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
3766 ldbl-128ibm in comment.
3767 (fpclassifyl): Correct classification of denormals.
3768 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
3769 return value for MIN denormal. Rewrite using long double math too
3770 correctly handle denormals and canonicalize the results.
3772 2007-06-05 Jakub Jelinek <jakub@redhat.com>
3774 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
3775 (__mpn_construct_long_double): Fix conversion where result ought
3776 to be smaller than __LDBL_MIN__, or the low double should be
3777 denormal. Fix decision where to negate low double - honor round
3779 * stdio-common/tst-sprintf2.c: Include string.h.
3780 (COMPARE_LDBL): Define.
3781 (TEST): Also test whether a string hexadecimal float representation
3782 can be parsed back to the number.
3783 (main): Add a couple of further tests.
3785 2007-06-04 Jakub Jelinek <jakub@redhat.com>
3787 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
3788 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
3789 is non-zero, but smaller than 2 * __DBL_MIN__.
3790 * stdio-common/tst-sprintf2.c: New test.
3791 * stdio-common/Makefile (tests): Add tst-sprintf2.
3793 * math/test-misc.c (main): Don't run last batch of tests with
3794 IBM long double format.
3796 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
3798 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
3799 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
3800 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
3801 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
3802 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
3803 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
3804 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
3805 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
3806 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
3807 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
3808 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
3809 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
3811 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
3813 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
3815 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
3817 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
3819 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
3820 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
3822 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
3824 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
3826 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
3828 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
3831 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
3833 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
3834 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
3835 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
3836 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
3837 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
3838 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
3839 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
3840 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
3842 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
3844 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
3845 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
3846 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
3847 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
3848 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
3849 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
3850 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
3851 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
3853 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
3855 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
3856 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
3857 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
3858 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
3860 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
3862 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
3863 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
3865 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
3867 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
3868 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
3869 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
3870 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
3872 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
3874 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
3875 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
3877 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
3879 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
3880 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
3882 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
3883 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
3884 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
3885 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
3887 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
3889 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
3890 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
3891 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
3892 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
3894 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
3896 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
3897 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
3898 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
3899 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
3900 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
3901 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
3903 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
3905 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
3906 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
3907 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
3908 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
3910 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
3912 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
3913 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
3914 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
3915 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
3916 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
3917 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
3918 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
3919 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
3920 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
3921 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
3922 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
3923 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
3924 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
3925 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
3926 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
3927 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
3929 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
3931 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
3932 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
3934 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
3936 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
3937 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
3939 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
3941 * sysdeps/powerpc/powerpc32/970/Implies: New file.
3942 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
3943 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
3944 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
3945 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
3946 * sysdeps/powerpc/powerpc64/970/Implies: New file.
3947 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
3948 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
3949 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
3950 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
3952 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
3954 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
3956 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
3958 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
3959 branch miss-predicts. Ensure that cache line crossing does not impact
3962 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
3964 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
3965 "../../powerpc32/power4/memcopy.h".
3966 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
3967 "../../powerpc32/power4/wordcopy.c".
3969 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
3971 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
3972 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
3973 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
3974 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
3975 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
3976 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
3978 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
3980 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
3982 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
3984 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
3985 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
3986 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
3987 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
3988 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
3989 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
3990 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
3991 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
3993 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
3995 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
3997 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
3999 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
4000 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
4001 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
4002 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
4003 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
4004 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
4005 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
4007 2007-05-29 Roland McGrath <roland@redhat.com>
4009 * po/Makefile (po-sed-cmd): New variable.
4010 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
4012 2007-05-29 Ulrich Drepper <drepper@redhat.com>
4014 * crypt/md5-crypt.c: Fix comment.
4016 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
4017 of crashing. When this is the case or if the reply is malformed,
4018 don't try to close the new file descriptor since it does not
4020 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
4022 2007-05-28 Jakub Jelinek <jakub@redhat.com>
4024 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
4025 if __NR_utimensat is not defined.
4027 2007-05-26 Ulrich Drepper <drepper@redhat.com>
4029 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
4031 2007-05-25 Jakub Jelinek <jakub@redhat.com>
4033 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
4034 (open): Fix comment typos. Don't call __open_2 if flags
4035 is a compile time constant without O_CREAT.
4036 (__open64_2): Add nonnull attribute.
4037 (open64): Fix comment typos. Don't call __open64_2 if flags
4038 is a compile time constant without O_CREAT.
4039 (__openat_2): Add nonnull attribute, fix nonnull attribute
4041 (openat): Fix comment typos. Don't call __openat_2 if flags
4042 is a compile time constant without O_CREAT.
4043 (__openat64_2): Add nonnull attribute, fix nonnull attribute
4045 (openat64): Fix comment typos. Don't call __openat64_2 if flags
4046 is a compile time constant without O_CREAT.
4048 2007-05-24 Ulrich Drepper <drepper@redhat.com>
4050 * Makerules (sysd-rules): Define PTW for ptw-* files.
4051 * Versions: Define GLIBC_2.7 for libc.
4052 * include/stdio.h: Declare __fortify_fail.
4053 * debug/fortify_fail.c: New file.
4054 * debug/Makefile (routines): Add fortify_fail.
4055 * debug/chk_fail.c: Use __fortify_fail.
4056 * debug/stack_chk_fail.c: Likewise.
4057 * io/Versions: Export __open_2, __open64_2, __openat_2, and
4058 __openat64_2 for GLIBC_2.7.
4059 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
4060 * io/open.c: Define *_2 variant of function which checks for O_CREAT
4061 and fails if necessary.
4062 * io/open64.c: Likewise.
4063 * io/openat.c: Likewise.
4064 * io/openat64.c: Likewise.
4065 * sysdeps/unix/sysv/linux/open64.c: Likewise.
4066 * sysdeps/unix/sysv/linux/openat.c: Likewise.
4067 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
4068 * io/bits/fcntl2.h: New file.
4069 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
4071 * include/bits/fcntl2.h: New file.
4072 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4074 * sysdeps/unix/sysv/linux/open_2.c: New file.
4076 2007-05-21 Ulrich Drepper <drepper@redhat.com>
4078 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
4079 as second parameter to handle_intel.
4081 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
4084 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
4086 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
4087 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
4089 * sysdeps/x86_64/memcpy.S: Complete rewrite.
4090 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
4091 Patch by Evandro Menezes <evandro.menezes@amd.com>.
4093 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
4095 2007-05-21 Jakub Jelinek <jakub@redhat.com>
4098 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
4099 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
4100 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
4102 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
4105 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
4106 reinitialize workend at the start of each do_positional format spec
4107 loop, free workstart before do_positional loops.
4108 (printf_unknown): Fix size of work_buffer.
4109 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
4111 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
4112 (public_sET_STATe): If ms->version < 3, put all chunks into
4113 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
4116 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
4117 * malloc/hooks.c: Likewise.
4118 * malloc/arena.c: Likewise.
4119 * malloc/malloc.c (do_check_malloc_state): Don't assert
4120 n_mmaps is not greater than n_mmaps_max. This removes the need
4121 for the previous change.
4123 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
4126 2007-05-19 Ulrich Drepper <drepper@redhat.com>
4128 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
4129 Define for kernel >= 2.6.22.
4131 2007-05-18 Ulrich Drepper <drepper@redhat.com>
4133 * elf/dl-close.c (_dl_close_worker): When removing object from
4134 global scope, wait for all lookups to finish afterwards.
4135 * elf/dl-open.c (add_to_global): When global scope array must
4136 grow, allocate a new one and free old array only after all
4138 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
4139 (_dl_lookup_symbol_x): Likewise.
4140 * elf/dl-support.c: Define _dl_wait_lookup_done.
4141 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
4142 _dl_wait_lookup_done.
4144 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
4145 not overlapping with arena.
4147 * malloc/mcheck.c (reallochook): If size==0, free the block.
4149 * rt/tst-shm.c: Use fstat64 instead of fstat.
4151 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
4152 __NR_sync_file_range is not defined.
4154 2007-05-17 Ulrich Drepper <drepper@redhat.com>
4156 Dummy files to prevent stub versions from being used.
4157 * sysdeps/x86_64/fpu/k_cosl.c: New file.
4158 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
4159 * sysdeps/x86_64/fpu/k_sinl.c: New file.
4160 * sysdeps/x86_64/fpu/k_tanl.c: New file.
4162 * version.h (VERSION): Set to 2.6.90.
4164 2007-05-14 Ulrich Drepper <drepper@redhat.com>
4166 * version.h (VERSION): Define to 2.6.
4167 * include/features.h (__GLIBC_MINOR__): Define to 6.
4169 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
4171 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
4174 2007-05-13 Ulrich Drepper <drepper@redhat.com>
4176 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
4177 number of mmaps. n_mmaps_max is the target.
4178 * malloc/hooks.c: Likewise.
4179 * malloc/arena.c: Likewise.
4181 2007-05-12 Andreas Jaeger <aj@suse.de>
4183 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
4186 2007-05-11 Ulrich Drepper <drepper@redhat.com>
4188 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
4189 adding new variables.
4191 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
4192 optimize. Completely extend global scope array before making the
4193 new entries visible.
4195 2007-05-10 Ulrich Drepper <drepper@redhat.com>
4197 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
4198 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
4201 * include/link.h: Move l_version and l_nversion members around to
4204 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
4206 * sysdeps/unix/sysv/linux/sched_setaffinity.c
4207 (__sched_setaffinity_new): If syscall was successful and
4208 RESET_VGETCPU_CACHE is defined, use it before returning.
4209 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
4211 * io/sys/stat.h: Make sure struct timespec is defined for
4214 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
4216 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4217 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4218 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
4219 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4220 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
4221 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4222 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
4223 * io/sys/stat.h: Declare utimensat, futimens.
4224 * io/utimensat.c: New file.
4225 * io/futimens.c: New file.
4226 * sysdeps/unix/sysv/linux/utimensat.c: New file.
4227 * sysdeps/unix/sysv/linux/futimens.c: New file.
4228 * io/Makefile (routines): Add utimensat, futimens.
4229 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
4230 * sysdeps/unix/sysv/linux/lutimes.c: New file.
4231 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
4234 * include/sys/cdefs.h: Redefine __nonnull so that test for
4235 incorrect parameters in the libc code itself are not omitted.
4237 2007-05-09 Jakub Jelinek <jakub@redhat.com>
4239 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
4240 exception in addition to inexact when asked to raise only FE_INEXACT.
4243 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
4246 2007-05-07 Ulrich Drepper <drepper@redhat.com>
4249 * string/strfry.c (strfry): Make result more random.
4251 2007-05-07 Richard Henderson <rth@redhat.com>
4253 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
4254 if __NO_LONG_DOUBLE_MATH.
4255 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
4256 available in the compiler, add .arch directive to the assembly.
4258 2007-05-07 Jakub Jelinek <jakub@redhat.com>
4260 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
4261 compat_symbol to GLIBC_2_1.
4262 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
4263 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
4264 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
4265 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
4266 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
4267 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
4268 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
4270 (__isnanl): New compat_symbol.
4272 2007-05-07 Ulrich Drepper <drepper@redhat.com>
4273 Jakub Jelinek <jakub@redhat.com>
4275 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
4276 (new_heap): Initialize mprotect_size.
4277 (grow_heap): When growing, only mprotect from mprotect_size till
4278 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
4279 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
4281 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
4282 Peter Bergner <bergner@us.ibm.com>
4284 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
4285 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
4286 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
4287 * sysdeps/powerpc/fpu/fe_mask.c: New file.
4288 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
4289 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
4290 Call __fe_mask_env() if all FP exceptions disabled.
4291 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
4292 from old FPSCR to new fenv to propagate DFP rounding modes.
4293 Call __fe_mask_env() if FP exceptions previously enabled.
4294 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
4295 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
4296 transitioning from all exceptions disabled to any exception enabled
4298 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
4299 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
4300 when transitioning from all exceptions disabled to any exception
4301 enabled or visa versa.
4302 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
4303 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
4304 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
4305 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
4306 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
4307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
4309 2007-05-06 Ulrich Drepper <drepper@redhat.com>
4312 * posix/unistd.h: Remove __THROW from fdatasync.
4314 2007-05-06 Mike Frysinger <vapier@gentoo.org>
4317 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
4319 2007-05-06 Ulrich Drepper <drepper@redhat.com>
4321 * stdio-common/vfprintf.c (process_string_arg): Optimize
4322 ridiculous precision in wide char code printing multi-byte string.
4323 Reported by Jim Meyering <jim@meyering.net>.
4326 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
4327 boundaries to work around systems with overlapping binary loading.
4328 Based on a patch by Suzuki <suzuki@in.ibm.com>.
4330 2007-05-04 Ulrich Drepper <drepper@redhat.com>
4332 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
4333 __mbsnrtowcs after last change.
4335 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
4336 (get_ident): Likewise.
4338 2007-05-03 Jakub Jelinek <jakub@redhat.com>
4340 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
4341 with setting the sticky bit.
4342 * math/test-misc.c (main): Add more truncation tests.
4344 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
4346 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
4347 double in the function declaration.
4348 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
4349 double in the function declaration.
4350 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
4351 float in the function declaration.
4352 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
4353 float in the function declaration.
4355 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
4356 denormal operands. Do not generate FP_EX_DENORM exception.
4357 (FP_UNPACK_RAW_EP): Ditto.
4358 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
4359 undefined _FP_UNPACK_RAW_E.
4360 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
4361 undefined _FP_UNPACK_RAW_EP.
4362 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
4363 undefined _FP_PACK_RAW_E.
4364 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
4365 undefined _FP_PACK_RAW_EP.
4367 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
4369 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
4372 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
4373 Jakub Jelinek <jakub@redhat.com>
4375 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
4376 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
4378 * soft-fp/op-common.h (FP_TRUNC): Ditto.
4380 2007-05-03 Jakub Jelinek <jakub@redhat.com>
4382 * math/test-misc.c (main): Add tests for rounding long double
4383 values close to smallest double denormalized value to double.
4385 2007-04-30 Joseph Myers <joseph@codesourcery.com>
4387 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
4388 condition for truncating to 0. Set sticky bit for such
4391 2007-05-02 Jakub Jelinek <jakub@redhat.com>
4393 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
4394 fixed length array for ignore.
4396 2007-04-30 Ulrich Drepper <drepper@redhat.com>
4399 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
4400 stack for large precisions.
4401 * stdio-common/test-vfprintf.c (main): Add test for large
4404 2007-04-30 Jakub Jelinek <jakub@redhat.com>
4406 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
4408 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
4411 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
4412 account in the size check.
4413 * resolv/tst-inet_ntop.c: New test.
4414 * resolv/Makefile (tests): Add tst-inet_ntop.
4416 2007-04-30 Ulrich Drepper <drepper@redhat.com>
4417 Jakub Jelinek <jakub@redhat.com>
4420 * malloc/malloc.c: Keep separate list for first blocks on the bin
4421 lists with a given size. This helps skipping over list elements
4422 we know won't fit in two places.
4423 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
4425 2007-04-28 Ulrich Drepper <drepper@redhat.com>
4428 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
4429 label to Teredo tunnel addresses 2001://32.
4431 2007-04-27 Ulrich Drepper <drepper@redhat.com>
4433 * locale/programs/ld-collate.c (collate_read): Allow order_start
4436 * locale/programs/ld-collate.c (collate_read): Fix printing of
4440 * locale/C-translit.h.in: Add entry for U2044.
4443 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
4444 hexa-decimal floats without exponent.
4445 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
4447 2007-04-25 Ulrich Drepper <drepper@redhat.com>
4449 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
4450 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
4451 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
4452 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
4454 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
4457 2007-04-25 Jakub Jelinek <jakub@redhat.com>
4459 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
4460 of 0 after the out_fail label.
4462 2007-04-25 Ulrich Drepper <drepper@redhat.com>
4465 * iconv/gconv_charset.h (strip): Allow ':'.
4466 * iconv/iconv_open.c (iconv_open): Adjust comment.
4468 2007-04-25 Jakub Jelinek <jakub@redhat.com>
4470 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
4473 2007-04-23 Jakub Jelinek <jakub@redhat.com>
4476 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
4477 alignment of buffer and tmp_buffer.
4478 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
4479 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
4480 alignment of buffer.
4481 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
4482 bigger than INT_MAX.
4483 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
4484 h_errnop arguments. Fail if buflen is too small.
4485 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
4487 2007-04-23 Jakub Jelinek <jakub@redhat.com>
4490 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
4491 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
4493 2007-04-22 Roland McGrath <roland@redhat.com>
4495 * elf/elf.h (NT_PRXFPREG): New macro.
4497 2007-04-19 Andreas Jaeger <aj@suse.de>
4500 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
4501 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
4504 2007-04-19 Ulrich Drepper <drepper@redhat.com>
4506 * include/sys/mman.h: Mark madvise hidden.
4507 * misc/madvise.c: Add libc_hidden_def.
4509 2007-04-06 Jakub Jelinek <jakub@redhat.com>
4511 * nis/nis_domain_of.c (__nis_domain_of): New function.
4512 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
4513 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
4514 * nis/nis_call.c (rec_dirsearch): Likewise.
4515 (first_shoot): Likewise. Remove search_parent_first argument.
4516 (struct nis_server_cache): Rename search_parent_first field
4518 (nis_server_cache_search, nis_server_cache_add): Rename
4519 search_parent_first argument to search_parent.
4520 (__nisfind_server): Likewise. If search_parent, call
4523 2007-04-18 Ulrich Drepper <drepper@redhat.com>
4525 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
4527 2007-04-17 Ulrich Drepper <drepper@redhat.com>
4530 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
4532 2007-04-16 Ulrich Drepper <drepper@redhat.com>
4535 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
4537 2007-04-15 Jakub Jelinek <jakub@redhat.com>
4539 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
4540 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
4541 current number of locales in SUPPORTED.
4542 (create_archive): Initialize serial.
4543 (enlarge_archive): Preserve aliases rather than duplicating
4546 2007-04-13 Jakub Jelinek <jakub@redhat.com>
4548 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
4549 after _IO_un_link, not before it.
4551 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
4552 special case handling when wcp == wstartp + 1. Fix a comment typo.
4553 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
4555 2007-03-30 Jakub Jelinek <jakub@redhat.com>
4557 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
4558 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
4559 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
4561 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
4562 _IO_file_xsgetn_maybe_mmap): Likewise.
4563 * libio/oldfileops.c (old_do_write): Likewise.
4564 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
4565 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
4566 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
4567 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
4568 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
4569 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
4570 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
4571 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
4572 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
4573 _IO_file_underflow, _IO_file_underflow_mmap,
4574 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
4575 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
4576 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
4577 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
4578 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
4579 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
4580 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
4581 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
4582 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
4583 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
4584 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
4585 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
4586 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
4587 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
4588 _IO_adjust_column_internal, _IO_default_uflow_internal,
4589 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
4590 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
4591 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
4592 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
4593 _IO_file_close_it_internal, _IO_file_underflow_internal,
4594 _IO_file_overflow_internal, _IO_file_attach_internal,
4595 _IO_file_fopen_internal, _IO_file_sync_internal,
4596 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
4597 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
4598 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
4599 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
4600 _IO_seekpos_unlocked): Likewise.
4601 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
4602 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
4604 2007-04-16 Jakub Jelinek <jakub@redhat.com>
4606 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
4607 argument in xmalloc size computation.
4609 2007-04-01 Jakub Jelinek <jakub@redhat.com>
4611 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
4612 math_opt_barrier and math_force_eval macros.
4614 2007-03-27 Jakub Jelinek <jakub@redhat.com>
4617 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
4618 * sysdeps/i386/fpu/math_private.h: New file.
4619 * sysdeps/x86_64/fpu/math_private.h: New file.
4620 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
4621 math_force_eval macros. Use "+m" constraint on asm rather than
4623 * math/s_nextafter.c (__nextafter): Likewise.
4624 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
4626 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
4627 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
4628 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
4629 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
4630 math_opt_barrier and math_force_eval macros.
4631 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
4632 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
4633 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
4634 (__nexttoward): Use math_opt_barrier and
4635 math_force_eval macros. Use "+m" constraint on asm rather than
4636 "=m" and "m". Only use asm to force double result if
4637 FLT_EVAL_METHOD is 2.
4638 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
4639 (__nexttowardf): Use math_opt_barrier and
4640 math_force_eval macros. Use "+m" constraint on asm rather than
4641 "=m" and "m". Only use asm to force double result if
4642 FLT_EVAL_METHOD is not 0.
4643 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
4644 (__nexttowardf): Use math_opt_barrier and
4645 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
4646 x to float using asm.
4647 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
4648 (__nldbl_nexttowardf): Use math_opt_barrier and
4649 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
4650 x to float using asm.
4651 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
4652 (__nexttowardf): Use math_opt_barrier and math_force_eval
4653 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
4654 * math/bug-nextafter.c (zero, inf): New variables.
4655 (main): Add new tests.
4656 * math/bug-nexttoward.c (zero, inf): New variables.
4657 (main): Add new tests.
4659 2007-03-22 Jakub Jelinek <jakub@redhat.com>
4662 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
4663 exceptions both in SW and MXCSR.
4664 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
4665 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
4666 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4667 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
4668 in MXCSR if SSE is available.
4669 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
4671 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
4673 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
4674 Return 0 rather than 1.
4675 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
4676 Remove incorrect part of a comment. Fix argument to feraiseexcept.
4677 * math/test-fenv.c (feholdexcept_tests): New function.
4680 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
4683 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
4686 2007-04-13 Jakub Jelinek <jakub@redhat.com>
4689 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
4690 Reported by David Anderson <davea42@earthlink.net>.
4692 2007-04-07 Ulrich Drepper <drepper@redhat.com>
4694 * posix/sys/wait.h: Remove unnecessary forward declaration.
4696 2007-04-05 Jakub Jelinek <jakub@redhat.com>
4698 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
4699 with obj->do_servers after first_shoot.
4701 2007-04-03 Ulrich Drepper <drepper@redhat.com>
4703 * posix/Makefile (routines): Add sched_cpucount.
4704 (tests): Add tst-cpucount.
4705 * posix/sched_cpucount.c: New file.
4706 * posix/tst-cpucount.c: New file.
4707 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
4708 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
4709 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
4710 * posix/sched.h: Define CPU_COUNT.
4712 2007-03-27 Jakub Jelinek <jakub@redhat.com>
4714 * posix/fnmatch.c (STRUCT): Define.
4715 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
4716 * posix/fnmatch_loop.c (struct STRUCT): New type.
4717 (FCT): Add ends argument. If ends != NULL and normal * is
4718 seen in the pattern, store current pattern and string pointers
4719 and return. Adjust recursive calls.
4720 (EXT): Adjust FCT callers.
4721 (STRUCT): Undef at the end of the file.
4722 * posix/Makefile (tests): Add tst-fnmatch2.
4723 * posix/tst-fnmatch2.c: New test.
4725 2007-04-01 Jakub Jelinek <jakub@redhat.com>
4727 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
4730 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
4731 Change last argument to unsigned int.
4733 2007-03-23 Jakub Jelinek <jakub@redhat.com>
4735 * scripts/check-local-headers.sh: Filter out sys/capability.h.
4737 2007-03-22 Jakub Jelinek <jakub@redhat.com>
4739 * config.h.in (HAVE_LIBCAP): Add.
4740 * nscd/selinux.h: Include sys/capability.h rather than non-existent
4742 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
4743 free_caps. Cast away const from 4th cap_set_flag argument.
4745 2007-03-26 Ulrich Drepper <drepper@redhat.com>
4747 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
4749 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4750 Add sync_file_range.
4751 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
4753 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
4755 * sysdeps/powerpc/bits/atomic.h
4756 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
4757 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
4758 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
4759 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
4760 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
4761 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
4762 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
4763 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
4764 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
4765 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
4766 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
4767 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
4768 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
4769 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
4770 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
4771 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
4772 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
4773 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
4774 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
4775 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
4777 2007-03-20 Jakub Jelinek <jakub@redhat.com>
4779 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4780 (__cache_line_size): Define the variable here. Add
4781 attribute_hidden, remove weak_extern.
4782 (__libc_start_main): Set __cache_line_size
4784 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4785 (__cache_line_size): Define the variable here. Add
4786 attribute_hidden, remove weak_extern.
4787 (DL_PLATFORM_AUXV): Set __cache_line_size
4789 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
4790 weak_extern, add attribute_hidden.
4791 (__elf_machine_runtime_setup): Assume __cache_line_size is always
4793 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
4795 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
4797 2007-03-26 Jakub Jelinek <jakub@redhat.com>
4800 * timezone/africa: Update from tzdata2007d.
4801 * timezone/asia: Likewise.
4802 * timezone/australasia: Likewise.
4803 * timezone/backward: Likewise.
4804 * timezone/europe: Likewise.
4805 * timezone/iso3166.tab: Likewise.
4806 * timezone/leapseconds: Likewise.
4807 * timezone/northamerica: Likewise.
4808 * timezone/southamerica: Likewise.
4809 * timezone/zone.tab: Likewise.
4811 * timezone/private.h: Update from tzcode2007d.
4812 * timezone/zdump.c: Likewise.
4813 * timezone/zic.c: Likewise.
4815 2007-03-21 Jakub Jelinek <jakub@redhat.com>
4817 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
4818 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
4820 (nis_server_cache_search, nis_server_cache_add): New functions.
4821 (__nisfind_server): Use them. Add dbp and flags argument, if
4822 call __nisbind_create.
4823 (__nisbind_create): Add server_used and current_ep arguments,
4824 only call __nis_findfastest if server_used is ~0.
4825 (__do_niscall2, __prepare_niscall): Adjust callers.
4826 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
4827 ckey_cache_euid, ckey_cache_lock): New variables.
4828 (get_ckey): New function.
4829 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
4830 __pmap_getnisport. Save __pmap_getnisport result in
4831 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
4833 * nis/nis_lookup.c (nis_lookup): Likewise.
4834 * nis/nis_table.c (nis_list): Likewise.
4835 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
4838 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
4839 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
4840 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
4841 _nss_nisplus_getservbyport_r): Likewise.
4842 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
4843 _nss_nisplus_getnetbyaddr_r): Likewise.
4844 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
4845 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
4846 _nss_nisplus_getntohost_r): Likewise.
4847 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
4848 _nss_nisplus_getrpcbynumber_r): Likewise.
4850 2007-03-20 Jakub Jelinek <jakub@redhat.com>
4852 * configure.in (libc_cv_gnu89_inline): Only do compile test.
4853 * configure: Rebuilt.
4855 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
4857 * soft-fp/extended.h (_FP_UNION_E): Likewise.
4859 2006-06-07 Joseph Myers <joseph@codesourcery.com>
4862 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
4865 2007-03-18 Jakub Jelinek <jakub@redhat.com>
4867 * nscd/gai.c: Include alloca.h.
4868 (__libc_use_alloca): Define.
4870 2007-03-16 Jakub Jelinek <jakub@redhat.com>
4872 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
4874 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
4875 (DL_DST_REQUIRED): Adjust user.
4877 * include/dlfcn.h (struct link_map): New forward decl.
4879 * inet/getnameinfo.c: Include stddef.h.
4880 (getnameinfo): Use offsetof.
4882 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
4884 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
4886 * string/strerror_l.c: Include stdlib.h.
4888 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
4889 * config.make.in (gnu89-inline-CFLAGS): New variable.
4890 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
4892 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
4893 * argp/argp.h: Use it.
4894 * bits/mathinline.h: Likewise.
4895 * bits/sigset.h: Likewise.
4896 * bits/string.h: Likewise.
4897 * ctype/ctype.h: Likewise.
4898 * hurd/hurd.h: Likewise.
4899 * hurd/hurd/fd.h: Likewise.
4900 * hurd/hurd/port.h: Likewise.
4901 * hurd/hurd/signal.h: Likewise.
4902 * hurd/hurd/threadvar.h: Likewise.
4903 * hurd/hurd/userlink.h: Likewise.
4904 * io/sys/stat.h: Likewise.
4905 * libio/bits/stdio.h: Likewise.
4906 * libio/bits/stdio2.h: Likewise.
4907 * mach/lock-intern.h: Likewise.
4908 * mach/mach/mig_support.h: Likewise.
4909 * math/bits/cmathcalls.h: Likewise.
4910 * posix/bits/unistd.h: Likewise.
4911 * socket/bits/socket2.h: Likewise.
4912 * stdlib/bits/stdlib.h: Likewise.
4913 * stdlib/stdlib.h: Likewise.
4914 * string/argz.h: Likewise.
4915 * string/bits/string2.h: Likewise.
4916 * string/bits/string3.h: Likewise.
4917 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
4918 * sysdeps/generic/inttypes.h: Likewise.
4919 * sysdeps/generic/machine-lock.h: Likewise.
4920 * sysdeps/generic/machine-sp.h: Likewise.
4921 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
4922 * sysdeps/i386/i486/bits/string.h: Likewise.
4923 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
4924 * sysdeps/mach/alpha/machine-lock.h: Likewise.
4925 * sysdeps/mach/alpha/machine-sp.h: Likewise.
4926 * sysdeps/mach/i386/machine-lock.h: Likewise.
4927 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
4928 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
4929 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
4930 * sysdeps/s390/bits/string.h: Likewise.
4931 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
4932 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4933 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
4934 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
4935 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4936 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
4937 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
4938 * wcsmbs/bits/wchar2.h: Likewise.
4939 * wcsmbs/wchar.h: Likewise.
4940 * stdlib/gmp.h: Likewise. Include <features.h> to get
4941 __extern_inline definition.
4943 2007-03-15 Jakub Jelinek <jakub@redhat.com>
4945 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
4949 * math/libm-test.inc (log_test): Test -Inf and NaN.
4950 (log10_test, log1p_test, log2_test): Test -Inf.
4951 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
4952 FE_INVALID when argument is qNaN.
4953 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
4954 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
4955 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
4956 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
4957 andb $1, %ah with testb $1, %ah, don't test for parity, instead
4958 testb $4, %ah and jump if non-zero.
4959 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
4960 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
4963 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
4964 ancestors with the same depths.
4965 Patch by Niels Moeller <nisse@lysator.liu.se>.
4966 (filter_doc): Don't crash if argp is NULL.
4967 * argp/Makefile (tests): Add tst-argp2.
4968 * argp/tst-argp2.c: New test.
4971 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
4973 (updwtmp_file): Likewise.
4976 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
4977 (inet6_opt_append): Don't check extlen is big enough if extbuf
4979 (inet6_opt_finish): Likewise.
4980 * inet/Makefile (tests): Add test-inet6_opt.
4981 * inet/test-inet6_opt.c: New test.
4983 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
4984 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
4985 NLMSG_ERR. Instead use a page sized buffer.
4986 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
4989 2007-03-14 Richard Henderson <rth@redhat.com>
4991 * sysdeps/alpha/fpu/s_llround.c: New file.
4992 * sysdeps/alpha/fpu/s_llroundf.c: New file.
4993 * sysdeps/alpha/fpu/s_lround.c: New file.
4994 * sysdeps/alpha/fpu/s_lroundf.c: New file.
4995 * sysdeps/alpha/fpu/s_round.c: New file.
4996 * sysdeps/alpha/fpu/s_roundf.c: New file.
4997 * sysdeps/alpha/fpu/s_trunc.c: New file.
4998 * sysdeps/alpha/fpu/s_truncf.c: New file.
5000 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
5001 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
5002 * sysdeps/alpha/fpu/s_floor.c: Likewise.
5003 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
5004 * sysdeps/alpha/fpu/s_rint.c: Likewise.
5005 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
5007 * sysdeps/alpha/fpu/s_fmax.S: New file.
5008 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
5009 * sysdeps/alpha/fpu/s_fmin.S: New file.
5010 * sysdeps/alpha/fpu/s_fminf.S: New file.
5011 * sysdeps/alpha/fpu/s_isnan.c: New file.
5012 * sysdeps/alpha/fpu/s_isnanf.c: New file.
5013 * sysdeps/alpha/fpu/s_llrint.c: New file.
5014 * sysdeps/alpha/fpu/s_llrintf.c: New file.
5015 * sysdeps/alpha/fpu/s_lrint.c: New file.
5016 * sysdeps/alpha/fpu/s_lrintf.c: New file.
5017 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
5018 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
5020 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
5021 (__fdimf, fdimf, __fdim, fdim): Remove.
5022 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
5023 (__isnanf, __isnan, __isnanl): New.
5025 2007-03-13 Richard Henderson <rth@redhat.com>
5027 * sysdeps/ieee754/ldbl-128/Makefile: New file.
5029 2007-03-13 Richard Henderson <rth@redhat.com>
5031 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
5032 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
5033 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
5034 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
5035 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
5036 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
5038 2007-03-13 Richard Henderson <rth@redhat.com>
5040 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
5041 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
5042 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
5043 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
5044 Move to dl-auxv.h; initialize instead of extern weak.
5045 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
5047 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
5048 Extern instead of initialized.
5050 2007-03-13 Richard Henderson <rth@redhat.com>
5052 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
5053 __sigsuspend_nocancel.
5055 2007-03-06 Ulrich Drepper <drepper@redhat.com>
5057 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
5058 172.16/12 address range.
5060 2007-03-02 Jakub Jelinek <jakub@redhat.com>
5062 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
5063 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
5066 2007-03-01 Jakub Jelinek <jakub@redhat.com>
5069 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
5071 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
5073 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
5074 for x qNaN and y either +-inf or non-integer value.
5075 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
5076 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
5077 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
5079 2007-02-10 Mike Frysinger <vapier@gentoo.org>
5081 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
5082 from sysdep_headers.
5084 2007-02-28 Jakub Jelinek <jakub@redhat.com>
5086 * time/tzfile.c (find_transition): Instead of a linear search try to
5087 guess the transition index, use a linear search if the result is at
5088 most 10 transitions away from the guess or binary search otherwise.
5090 2007-02-27 Jakub Jelinek <jakub@redhat.com>
5092 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
5093 memory reallocation.
5095 2007-02-21 Ulrich Drepper <drepper@redhat.com>
5097 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
5099 Optimize use of TOLOWER.
5102 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
5103 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
5104 * sysdeps/i386/fpu/e_fmod.S: Likewise.
5107 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
5108 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
5111 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
5112 (open_dir_stream): Likewise.
5113 * io/Makefile (tests): Add bug-ftw5.
5114 * io/bug-ftw5.c: New file.
5116 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
5117 * nscd/servicescache.c (cache_addserv): Likewise.
5119 * nscd/grpcache.c (cache_addgr): In case a record changed on
5120 refresh, adjust key_copy.
5123 * nscd/pwdcache.c (cache_addpw): In case a record changed on
5124 refresh, adjust key_copy.
5127 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
5129 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
5131 2007-02-19 Ulrich Drepper <drepper@redhat.com>
5133 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
5136 * stdio-common/vfscanf.c: Small cleanups throughout.
5138 2007-02-18 Ulrich Drepper <drepper@redhat.com>
5141 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
5142 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
5143 * sysdeps/i386/fpu/e_fmod.S: Likewise.
5144 Patch by Jared Casper <jaredcasper@gmail.com>.
5146 * sysdeps/unix/closedir.c: Outside libc don't use locking.
5147 * sysdeps/unix/opendir.c: Likewise.
5148 * sysdeps/unix/readdir.c: Likewise.
5151 * stdio-common/vfscanf.c: Handle localized digits etc for floating
5153 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
5155 * stdio-common/vfscanf.c: Fix problems in width accounting.
5156 * stdio-common/tst-sscanf.c (double_tests): New tests.
5157 (main): Hook them up.
5159 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
5160 More simplifications of floating-point reader.
5162 * stdio-common/Makefile (tests): Add tst-swscanf.
5163 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
5165 * stdio-common/tst-swscanf.c: New file.
5167 2007-02-17 Ulrich Drepper <drepper@redhat.com>
5170 * libio/stdio.h: Define struct _IO_FILE in global namespace.
5171 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
5172 Remove using for __jmp_buf_tag.
5173 * locale/locale.h (struct lconv): Also define in std namespace.
5174 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
5177 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
5178 using __libc_enable_secure.
5181 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
5184 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
5185 of names for ellipsises.
5188 * malloc/memusage.sh: Cleanups.
5189 * debug/xtrace.sh: Quoting and trap changes.
5191 2007-02-16 Ulrich Drepper <drepper@redhat.com>
5193 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
5195 * locale/iso-3166.def: Update entry for Serbia.
5196 * locale/iso-4217.def: Define RSD, remove CSD.
5198 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
5199 and 64-bit operations.
5202 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
5205 * nscd/nscd.c (parse_opt): One more conversion to use send instead
5208 2007-02-15 Ulrich Drepper <drepper@redhat.com>
5211 * assert/assert.h (assert): Simplify.
5212 (assert_perror): Likewise.
5213 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
5215 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
5218 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
5219 change: don't pass NULL in place of an integer.
5221 2007-02-02 Bruno Haible <bruno@clisp.org>
5224 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
5225 Add mapping for U+327E.
5226 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
5227 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
5228 mapping of 0xD9 0xE8.
5229 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
5231 Reported by Jungshik Shin <jungshik@google.com>.
5234 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
5235 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
5236 Reported by Jungshik Shin <jungshik@google.com>.
5238 2007-02-14 Ulrich Drepper <drepper@redhat.com>
5240 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
5244 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
5245 byte variants. Patch mostly be tom@tommay.net.
5247 2007-02-14 Jakub Jelinek <jakub@redhat.com>
5250 * posix/glob.c (attribute_hidden): Define if not defined.
5251 (glob): Unescape dirname, filename or username when needed and not
5252 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
5253 is NULL. Handle unescaped [ in pattern without closing ].
5254 Don't pass GLOB_CHECK down to recursive glob for directories.
5255 (__glob_pattern_type): New function.
5256 (__glob_pattern_p): Implement using __glob_pattern_type.
5257 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
5258 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
5259 Remove unreachable code.
5260 * posix/globtest.sh: Add a couple of new tests.
5262 2007-02-13 Ulrich Drepper <drepper@redhat.com>
5264 * po/ru.po: Update from translation team.
5266 2007-02-12 Jakub Jelinek <jakub@redhat.com>
5268 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
5269 to the list of i486+ CPUs.
5270 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
5272 2007-02-12 Ulrich Drepper <drepper@redhat.com>
5274 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
5275 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
5278 2007-02-09 Ulrich Drepper <drepper@redhat.com>
5280 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
5282 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
5283 * resolv/res_mkquery.c: Define __res_nopt.
5284 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
5285 try adding EDNS0 record.
5286 * resolv/res_send.c (send_dg): If request failed with FORMERR and
5287 EDNS0 record was send make sure we don't try it again.
5288 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
5289 * include/resolv.h: Declare __res_nopt.
5291 2007-02-08 Jakub Jelinek <jakub@redhat.com>
5294 * time/strptime_l.c (__strptime_internal): Set have_mon for
5295 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
5296 have been computed from tm_yday and tm_year. Don't crash
5297 in day_of_the_week or day_of_the_year if not have_mon
5298 and tm_mon contains bogus value.
5299 * time/Makefile (tests): Add tst-strptime3.
5300 * time/tst-strptime3.c: New test.
5302 2007-02-05 Jakub Jelinek <jakub@redhat.com>
5305 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
5306 bit for RE_HAT_LISTS_NOT_NEWLINE.
5307 (build_charclass_op): Remove bogus comment.
5308 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
5309 * posix/bug-regex27.c: New test.
5310 * posix/bug-regex28.c: New test.
5312 2007-02-03 Ulrich Drepper <drepper@redhat.com>
5314 * po/sv.po: Update from translation team.
5316 2007-02-02 Ulrich Drepper <drepper@redhat.com>
5318 * nscd/nscd_helper.c (open_socket): Minor size optimization.
5320 2007-02-02 Jakub Jelinek <jakub@redhat.com>
5322 * include/locale.h (__uselocale): Add libc_hidden_proto.
5323 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
5325 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
5328 2007-02-01 Ulrich Drepper <drepper@redhat.com>
5330 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
5332 (PTR_DEMANGLE): Real definition now that it's not the same as
5334 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
5336 * string/strerror_l.c: New file.
5337 * string/Makefile (routines): Add strerror_l.
5338 * string/string.h: Declare strerror_l.
5339 * string/Versions: Export strerror_l for GLIBC_2.6.
5341 2007-01-31 Ulrich Drepper <drepper@redhat.com>
5343 * nscd/nscd_helper.c (open_socket): Now takes request type and key
5344 as parameter. Construct request record. Try sending request
5345 before the first poll use, it usually succeeds. Adjust all
5347 * nscd/nscd-client.h: Define MAXKEYLEN.
5348 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
5350 2007-01-31 Jakub Jelinek <jakub@redhat.com>
5352 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
5354 * nscd/nscd_helper.c: Include string.h.
5355 (__nscd_cache_search): Remove const qualifier from return value.
5356 On strict alignment architectures check hash entry and data head
5358 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
5359 mmapped data during GC cycle contains garbage. If
5360 __nscd_drop_map_ref fails, decrement mapped->counter when returning
5361 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
5363 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5364 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
5365 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5366 * nscd/nscd_getai.c (__nscd_getai): Likewise.
5367 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5369 2007-01-30 Ulrich Drepper <drepper@redhat.com>
5371 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
5373 2007-01-26 Ulrich Drepper <drepper@redhat.com>
5375 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
5376 names not numbers in cfi_*.
5378 2007-01-26 Andreas Jaeger <aj@suse.de>
5380 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
5381 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
5382 Correct values of PER_HPUX and PER_OSF4.
5384 2007-01-24 Ulrich Drepper <drepper@redhat.com>
5386 * elf/dl-minimal.c: Undefine _itoa first.
5387 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
5388 * malloc/mtrace.c: Revert last change.
5389 * posix/wordexp.c: Likewise.
5391 2007-01-24 Jakub Jelinek <jakub@redhat.com>
5393 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
5394 and __geode__ to the list of i486+ CPUs.
5395 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
5397 2007-01-23 Ulrich Drepper <drepper@redhat.com>
5399 * stdio-common/_itoa.c: Include <limits.h>.
5400 * stdio-common/_itowa.c: Likewise.
5402 2007-01-22 Ulrich Drepper <drepper@redhat.com>
5404 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
5406 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
5408 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
5410 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
5414 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
5415 * stdio-common/Makefile (tests): Add bug17.
5416 * stdio-common/bug17.c: New file.
5418 2007-01-19 Ulrich Drepper <drepper@redhat.com>
5420 * iconvdata/brf.c: New file.
5421 * iconvdata/testdata/BRF: New file.
5422 * iconvdata/testdata/BRF..UTF8: New file.
5423 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5424 * iconvdata/Makefile: Add rules to build BRF.
5425 * iconvdata/TESTS: Add BRF entry.
5426 * iconvdata/gconv-modules: Likewise.
5427 * iconvdata/tst-tables.sh: Likewise.
5429 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
5431 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
5432 type `long long int', not `long int'.
5435 2007-01-18 Ulrich Drepper <drepper@redhat.com>
5437 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
5438 of values on 64-bit platforms which are too large.
5440 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
5441 Joe Kerian <jkerian@us.us.ibm.com>
5444 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
5445 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
5446 (__copysignl): Use signbit() for comparison.
5447 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
5448 SET_LDOUBLE_WORDS64.
5451 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
5452 (__ceill): Remove calls to fegetround(), fesetround().
5453 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
5454 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5455 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
5457 2007-01-17 Jakub Jelinek <jakub@redhat.com>
5459 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
5461 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
5463 2007-01-17 Ulrich Drepper <drepper@redhat.com>
5465 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
5467 * csu/libc-start.c: Likewise.
5469 2007-01-16 Ulrich Drepper <drepper@redhat.com>
5471 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
5474 2007-01-15 Ulrich Drepper <drepper@redhat.com>
5476 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
5478 (handle_request): Remove unnecessary tests.
5480 * nscd/cache.c (cache_add): Record the failure to add to the cache.
5482 2007-01-15 Jakub Jelinek <jakub@redhat.com>
5484 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
5485 workbits in semi-raw fraction.
5487 * math/test-misc.c: Add new tests.
5489 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
5491 * math/basic-test.c: Include test-skeleton.c.
5492 (TEST_TRUNC): Define.
5493 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
5494 (main): Rename to ...
5495 (do_test): ...this. Run new tests.
5496 (TEST_FUNCTION): Define.
5498 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
5499 Joe Kerian <jkerian@us.us.ibm.com>
5502 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
5503 handling for high words.
5504 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
5505 and overflow for infinity.
5507 2007-01-15 Ulrich Drepper <drepper@redhat.com>
5509 * nscd/connections.c (handle_request): Add a __builtin_expect.
5511 * nscd/connections.c (serv2db): Change type into structure which
5512 also says whether this is a request for data. Renamed to
5513 servinfo. All users changed.
5514 (handle_request): Much simpler test whether we should search the cache.
5516 * nscd/connections.c (handle_request): Fix thinko in selinux test
5519 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
5520 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
5521 it before getting dl_load_lock and then relock.
5522 (_dl_lookup_symbol_x): Pass flags to add_dependency.
5523 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
5524 case we unlocked the scope.
5525 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
5526 _dl_lookup_symbol_x in case we locked the scope.
5527 (_dl_profile_fixup): Likewise.
5528 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
5529 set DL_LOOKUP_SCOPE_LOCK.
5531 2007-01-13 Ulrich Drepper <drepper@redhat.com>
5533 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
5534 CFLAGS-getsrvbynpt_r.c.
5535 * nscd/getsrvbynm_r.c: New file.
5536 * nscd/getsrvbypt_r.c: New file.
5537 * nscd/nscd_getserv_r.c: New file.
5538 * nscd/servicescache.c: New file.
5539 * nscd/Makefile (routines): Add nscd_getserv_r.
5540 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
5541 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
5542 CFLAGS-getsrvbypt_r.c.
5543 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
5544 table. Add entries for services database.
5545 * nscd/connections.c (serv2str): Mark as const. Add entries for
5547 (dbs): Add .reset_res and servdb initialization.
5548 (serv2db): Add entries for services database.
5549 (verify_persistent_db): Accept dbnr == servdb.
5550 (invalidate_cache): Rewrite database name recognition to use a table.
5551 Call res_init() if .reset_res is set for database.
5552 (handle_request): Add code to handle services database.
5553 * nscd/gai.c: Don't define __getservbyname_r.
5554 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
5555 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
5556 (serv_response_header): Define.
5557 (struct datahead): Add serv_response_header member.
5558 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
5560 * nscd/nscd.conf: Add entries for services database.
5561 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
5562 Declare serv_iov_disabled.
5563 Declare addservbyname, readdservbyname, addservbyport, and
5565 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
5566 (find_db): Fix error message.
5567 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
5568 __nscd_getservbyname_r, and __nscd_getservbyport_r.
5569 * nscd/selinux.c (perms): Add entries for services database.
5570 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
5571 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
5573 * nscd/grpcache.c: Remove obsolete code. Cleanups.
5574 * nscd/hstcache.c: Likewise.
5575 * nscd/pwdcache.c: Likewise.
5577 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
5578 computation of keylen.
5580 * include/string.h: Only redefine strndupa if this is really for
5583 2007-01-12 Ulrich Drepper <drepper@redhat.com>
5585 * nscd/nscd_gethst_r.c: Minor cleanups.
5587 * nscd/connections.c (handle_request): Check selinux permissions
5588 for all non-admin commands.
5590 * sysdeps/i386/i486/bits/atomic.h: Define
5591 atomic_compare_and_exchange_val_acq,
5592 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
5593 using __sync_* built-ins for gcc >= 4.1.
5594 * sysdeps/x86_64/bits/atomic.h: Likewise.
5597 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
5600 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
5602 * stdlib/tst-makecontext.c: Include errno.h. Change main()
5603 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
5604 (do_test): Check errno and exit(0) if ENOSYS.
5606 2007-01-11 Jakub Jelinek <jakub@redhat.com>
5608 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
5609 thousands separators.
5610 * stdlib/Makefile: Add rules to build and run tst-strtod4.
5611 * stdlib/tst-strtod4.c: New test.
5614 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
5615 hexadecimal digit should accept just the initial 0.
5616 * stdlib/tst-strtod2.c (tests): New variable.
5617 (do_test): Run several tests rather than just one.
5619 2007-01-11 Jakub Jelinek <jakub@redhat.com>
5621 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
5622 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
5624 2007-01-10 Ulrich Drepper <drepper@redhat.com>
5626 * io/fts.c: Make sure fts_cur is always valid after return from
5628 Patch by Miloslav Trmac <mitr@redhat.com>.
5630 2006-10-27 Richard Sandiford <richard@codesourcery.com>
5632 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
5633 (R_MIPS_NUM): Bump by 1.
5635 2007-01-03 Jakub Jelinek <jakub@redhat.com>
5637 * posix/execvp.c: Include alloca.h.
5638 (allocate_scripts_argv): Renamed to...
5639 (scripts_argv): ... this. Don't allocate buffer here nor count
5641 (execvp): Use alloca if possible.
5642 * posix/Makefile: Add rules to build and run tst-vfork3 test.
5643 * posix/tst-vfork3.c: New test.
5645 2007-01-03 Ulrich Drepper <drepper@redhat.com>
5647 * string/Makefile (tst-strxfrm2-ENV): Define.
5648 * stdlib/Makefile (tst-strtod3-ENV): Define.
5650 2007-01-02 Ulrich Drepper <drepper@redhat.com>
5652 * posix/getconf.c: Update copyright year.
5653 * nss/getent.c: Likewise.
5654 * iconv/iconvconfig.c: Likewise.
5655 * iconv/iconv_prog.c: Likewise.
5656 * elf/ldconfig.c: Likewise.
5657 * catgets/gencat.c: Likewise.
5658 * csu/version.c: Likewise.
5659 * elf/ldd.bash.in: Likewise.
5660 * elf/sprof.c (print_version): Likewise.
5661 * locale/programs/locale.c: Likewise.
5662 * locale/programs/localedef.c: Likewise.
5663 * nscd/nscd.c (print_version): Likewise.
5664 * debug/xtrace.sh: Likewise.
5665 * malloc/memusage.sh: Likewise.
5666 * malloc/mtrace.pl: Likewise.
5667 * debug/catchsegv.sh: Likewise.
5669 2006-12-24 Ulrich Drepper <drepper@redhat.com>
5671 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
5674 2006-12-23 Ulrich Drepper <drepper@redhat.com>
5676 * posix/wordexp.c: Remove some unnecessary tests.
5678 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
5680 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
5681 blacklist the group till after we look it up.
5683 2006-12-21 Ulrich Drepper <drepper@redhat.com>
5685 * include/atomic.h (atomic_forced_read): New macro.
5687 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
5689 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
5691 2006-12-19 Jakub Jelinek <jakub@redhat.com>
5693 * nss/getXXbyYY_r.c: Include atomic.h.
5694 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
5695 add atomic_write_barrier () in between.
5697 * stdlib/Makefile (tests): Add tst-makecontext.
5698 * stdlib/tst-makecontext.c: New test.
5700 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
5701 (__makecontext): Don't realign uc_mcontext.uc_regs.
5703 2006-11-28 Jakub Jelinek <jakub@redhat.com>
5705 * elf/dl-support.c: Include dl-procinfo.h.
5706 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
5707 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
5708 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
5710 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
5711 hardcoded constants.
5712 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
5713 PPC_PLATFORM_* macros for array designators.
5715 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
5717 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
5718 names to the beginning.
5719 (_dl_powerpc_platforms): Add "power6x".
5720 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
5721 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
5722 (_DL_PLATFORMS_COUNT): Increase.
5723 (_dl_string_platform): Handle power6x case.
5724 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
5725 PPC_FEATURE_POWER6_EXT): Define.
5726 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
5728 2006-12-18 Jakub Jelinek <jakub@redhat.com>
5731 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
5732 [-2^31 .. 2^31) range.
5733 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
5735 * stdlib/tst-rand48-2.c: New test.
5736 * stdlib/Makefile (tests): Add tst-rand48-2.
5738 2006-12-14 Jakub Jelinek <jakub@redhat.com>
5740 * misc/tst-pselect.c (do_test): Fix sigblock argument.
5742 2006-12-14 Ulrich Drepper <drepper@redhat.com>
5744 * misc/tst-pselect.c (do_test): Make sure the helper process is
5745 terminating when the test is aborted.
5747 2006-12-13 Ulrich Drepper <drepper@redhat.com>
5749 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
5750 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
5751 Handle relatime mount option.
5754 * libio/Makefile (tests): Add tst-setvbuf1.
5755 * libio/tst-setvbuf1.c: New file.
5757 2006-12-08 Jakub Jelinek <jakub@redhat.com>
5760 * libio/genops.c (__uflow): Fix a typo.
5761 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
5762 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
5763 the narrow buffer size.
5765 2006-11-24 Jakub Jelinek <jakub@redhat.com>
5768 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
5769 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
5770 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
5772 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
5773 _IO_wstr_finish): Likewise.
5774 * libio/wmemstream.c (open_wmemstream): Likewise.
5775 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
5776 even for wide streams.
5778 2006-12-13 Jakub Jelinek <jakub@redhat.com>
5780 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
5783 2006-12-11 Ulrich Drepper <drepper@redhat.com>
5785 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
5786 separators also if no non-zero digits found.
5787 * stdlib/Makefile (tests): Add tst-strtod3.
5789 2006-12-09 Ulrich Drepper <drepper@redhat.com>
5792 * include/features.h: Fix comment about default value for
5796 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
5797 empty parsed strings.
5798 * stdlib/Makefile (tests): Add tst-strtod2.
5799 * stdlib/tst-strtod2.c: New file.
5802 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
5804 * stdlib/Makefile (tests): Add tst-atof2.
5805 * stdlib/tst-atof2.c: New file.
5808 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
5809 correctly if removing trailing zero of hex-float.
5810 * stdlib/Makefile (tests): Add tst-atof1.
5811 * stdlib/tst-atof1.c: New file.
5813 2006-12-09 Jakub Jelinek <jakub@redhat.com>
5815 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
5816 Start searching for next comma at p rather than rest.
5817 * misc/Makefile (tests): Add tst-mntent2.
5818 * misc/tst-mntent2.c: New test.
5820 * misc/getusershell.c (initshells): Check for integer overflows.
5821 Make strings buffer one bigger as fgets always succeeds when second
5822 argument is 1. Don't use calloc for shells array. Disallow
5825 2006-12-08 Ulrich Drepper <drepper@redhat.com>
5827 * malloc/memusage.c: Handle realloc with new size of zero and
5828 non-NULL pointer correctly.
5829 (me): Really write first record twice.
5830 (struct entry): Make format bi-arch safe.
5831 (dest): Write out more realloc statistics.
5832 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
5834 2006-12-05 Jakub Jelinek <jakub@redhat.com>
5836 * nis/nis_subr.c (nis_getnames): Revert last change.
5838 2006-12-04 Jakub Jelinek <jakub@redhat.com>
5840 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
5841 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
5842 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
5843 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
5845 * io/Makefile: Add rules to build and run tst-ttyname_r test.
5846 * io/tst-ttyname_r.c: New test.
5848 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5850 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5852 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
5854 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
5857 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5859 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
5860 `clone' function to ensure proper unwinding stop of gdb.
5861 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5863 2006-12-01 Ulrich Drepper <drepper@redhat.com>
5865 * nscd/nscd.init: Remove obsolete and commented-out -S option
5868 2006-11-23 Jakub Jelinek <jakub@redhat.com>
5871 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
5874 * manual/string.texi (strtok): Remove duplicate paragraph.
5876 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5878 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
5879 libgcc not supporting `rflags' unwinding (register # >= 17).
5881 2006-11-30 Jakub Jelinek <jakub@redhat.com>
5883 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
5886 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
5887 Jakub Jelinek <jakub@redhat.com>
5888 Jan Kratochvil <jan.kratochvil@redhat.com>
5890 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
5892 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
5893 'restore_rt' even in the 'signal' directory.
5894 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
5896 2006-11-27 Jakub Jelinek <jakub@redhat.com>
5899 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
5900 malloc crashed. Don't allocate memory unnecessarily in each
5903 2006-10-21 Jakub Jelinek <jakub@redhat.com>
5905 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
5907 2006-11-20 Ulrich Drepper <drepper@redhat.com>
5909 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
5911 2006-11-18 Bruno Haible <bruno@clisp.org>
5913 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
5914 __sysconf only after having tried to call getgroups32.
5916 2006-11-19 Ulrich Drepper <drepper@redhat.com>
5918 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
5919 addresses for IPv4 queries if they can be mapped.
5921 2006-11-16 Jakub Jelinek <jakub@redhat.com>
5923 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
5924 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
5925 (signmask): Add .size directive.
5926 (othermask): Add .type directive.
5928 2006-11-14 Ulrich Drepper <drepper@redhat.com>
5930 * po/nl.po: Update from translation team.
5932 * timezone/zdump.c: Redo fix for BZ #3137.
5934 2006-11-14 Jakub Jelinek <jakub@redhat.com>
5936 * nss/nss_files/files-alias.c (get_next_alias): Set line back
5937 to first_unused after parsing :include: file.
5939 2006-11-10 Ulrich Drepper <drepper@redhat.com>
5941 * timezone/africa: Update from tzdata2006o.
5942 * timezone/antarctica: Likewise.
5943 * timezone/asia: Likewise.
5944 * timezone/australasia: Likewise.
5945 * timezone/backward: Likewise.
5946 * timezone/europe: Likewise.
5947 * timezone/iso3166.tab: Likewise.
5948 * timezone/northamerica: Likewise.
5949 * timezone/southamerica: Likewise.
5950 * timezone/zone.tab: Likewise.
5952 * time/tzfile.c (__tzfile_read): Extend to handle new file format
5953 on machines with 64-bit time_t.
5955 * timezone/checktab.awk: Update from tzcode2006o.
5956 * timezone/ialloc.c: Likewise.
5957 * timezone/private.h: Likewise.
5958 * timezone/scheck.c: Likewise.
5959 * timezone/tzfile.h: Likewise.
5960 * timezone/tzselect.ksh: Likewise.
5961 * timezone/zdump.c: Likewise.
5962 * timezone/zic.c: Likewise.
5965 * elf/ldconfig.c (main): Call setlocale and textdomain.
5966 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
5969 * manual/argp.texi: Fix typos.
5970 * manual/charset.texi: Likewise.
5971 * manual/errno.texi: Likewise.
5972 * manual/filesys.texi: Likewise.
5973 * manual/lang.texi: Likewise.
5974 * manual/maint.texi: Likewise.
5975 * manual/memory.texi: Likewise.
5976 * manual/message.texi: Likewise.
5977 * manual/resource.texi: Likewise.
5978 * manual/search.texi: Likewise.
5979 * manual/signal.texi: Likewise.
5980 * manual/startup.texi: Likewise.
5981 * manual/stdio.texi: Likewise.
5982 * manual/sysinfo.texi: Likewise.
5983 * manual/syslog.texi: Likewise.
5984 * manual/time.texi: Likewise.
5985 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5988 * sunrpc/clnt_raw.c: Minimal message improvements.
5989 * sunrpc/pm_getmaps.c: Likewise.
5990 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
5991 * nis/nis_print_group_entry.c: Likewise.
5992 * locale/programs/repertoire.c: Likewise.
5993 * locale/programs/charmap.c: Likewise.
5994 * malloc/memusage.sh: Likewise.
5995 * elf/dl-deps.c: Likewise.
5996 * locale/programs/ld-collate.c: Likewise.
5997 * libio/vswprintf.c: Likewise.
5998 * malloc/memusagestat.c: Likewise.
5999 * sunrpc/auth_unix.c: Likewise.
6000 * sunrpc/rpc_main.c: Likewise.
6001 * nscd/cache.c: Likewise.
6002 * locale/programs/repertoire.c: Unify output messages.
6003 * locale/programs/charmap.c: Likewise.
6004 * locale/programs/ld-ctype.c: Likewise.
6005 * locale/programs/ld-monetary.c: Likewise.
6006 * locale/programs/ld-numeric.c: Likewise.
6007 * locale/programs/ld-time.c: Likewise.
6008 * elf/ldconfig.c: Likewise.
6009 * nscd/selinux.c: Likewise.
6010 * elf/cache.c: Likewise.
6011 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
6014 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
6018 2006-11-10 Jakub Jelinek <jakub@redhat.com>
6020 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
6021 if N is one bigger than return value.
6022 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
6023 and l1 last arguments, if buf is defined, verify the return value
6024 equals to strlen (buf) and verify no byte beyond passed length
6027 2006-11-10 Ulrich Drepper <drepper@redhat.com>
6029 * po/sv.po: Update from translation team.
6031 2006-11-09 Ulrich Drepper <drepper@redhat.com>
6033 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
6036 2006-11-10 Jakub Jelinek <jakub@redhat.com>
6038 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
6041 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
6042 Use __new_sys_siglist instead of _sys_siglist_internal as
6043 second macro argument.
6044 (_old_sys_siglist): Use declare_symbol_alias macro instead of
6047 2006-11-09 Ulrich Drepper <drepper@redhat.com>
6050 * posix/unistd.h (sysconf): Remove const attribute.
6052 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
6053 temporary or deprecated addresses.
6054 Patch by Sridhar Samudrala <sri@us.ibm.com>.
6056 * string/Makefile (tests): Add tst-strxfrm2.
6057 * string/tst-strxfrm2.c: New file.
6059 2006-10-09 Jakub Jelinek <jakub@redhat.com>
6061 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
6062 rather than r->r_brk.
6064 2006-11-08 Jakub Jelinek <jakub@redhat.com>
6066 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
6067 optimization even if needed > n.
6069 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
6070 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
6071 return false, otherwise return true.
6072 (cache_rpath): Return decompose_rpath return value.
6074 2006-11-07 Jakub Jelinek <jakub@redhat.com>
6076 * include/libc-symbols.h (declare_symbol): Rename to...
6077 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
6078 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
6080 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
6082 * sysdeps/gnu/siglist.c: Likewise.
6084 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
6086 * sysdeps/powerpc/fpu/bits/mathinline.h
6087 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
6088 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
6090 2006-11-05 Ulrich Drepper <drepper@redhat.com>
6092 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
6093 Update handling of cache descriptor 0x49 for new models.
6094 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
6097 2006-11-02 Jakub Jelinek <jakub@redhat.com>
6099 * malloc/memusage.c (dest): Reset not_me back to false after
6100 printing statistics.
6102 2006-11-02 Ulrich Drepper <drepper@redhat.com>
6104 * configure.in: Work around ld --help change and avoid -z relro
6105 test completely if the architecture doesn't care about security.
6107 2006-11-01 Ulrich Drepper <drepper@redhat.com>
6109 * po/sv.po: Update from translation team.
6111 2006-10-31 Ulrich Drepper <drepper@redhat.com>
6113 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
6114 generate compatibility version.
6116 2006-10-29 Ulrich Drepper <drepper@redhat.com>
6118 * configure.in: Relax -z relro requirement a bit.
6120 * po/sv.po: Update from translation team.
6122 2006-10-29 Jakub Jelinek <jakub@redhat.com>
6124 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
6125 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
6126 * elf/dl-close.c (_dl_close_worker): Likewise.
6127 * elf/dl-open.c (_dl_open_worker): Likewise.
6128 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
6130 2006-10-27 Ulrich Drepper <drepper@redhat.com>
6132 * configure.in: Require assembler support for visibility, compiler
6133 support for visibility and aliases, linker support for various -z
6135 * Makeconfig: Remove conditional code which now is unnecessary.
6136 * config.h.in: Likewise.
6137 * config.make.in: Likewise.
6138 * dlfcn/Makefile: Likewise.
6139 * elf/Makefile: Likewise.
6140 * elf/dl-load.c: Likewise.
6141 * elf/rtld.c: Likewise.
6142 * include/libc-symbols.h: Likewise.
6143 * include/stdio.h: Likewise.
6144 * io/Makefile: Likewise.
6145 * io/fstat.c: Likewise.
6146 * io/fstat64.c: Likewise.
6147 * io/fstatat.c: Likewise.
6148 * io/fstatat64.c: Likewise.
6149 * io/lstat.c: Likewise.
6150 * io/lstat64.c: Likewise.
6151 * io/mknod.c: Likewise.
6152 * io/mknodat.c: Likewise.
6153 * io/stat.c: Likewise.
6154 * io/stat64.c: Likewise.
6155 * libio/stdio.c: Likewise.
6156 * nscd/Makefile: Likewise.
6157 * stdlib/Makefile: Likewise.
6158 * stdlib/atexit.c: Likewise.
6159 * sysdeps/generic/ldsodefs.h: Likewise.
6160 * sysdeps/i386/dl-machine.h: Likewise.
6161 * sysdeps/i386/sysdep.h: Likewise.
6162 * sysdeps/i386/i686/memcmp.S: Likewise.
6163 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
6164 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6165 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
6167 * Makerules: USE_TLS support is now default.
6168 * tls.make.c: Likewise.
6169 * csu/Versions: Likewise.
6170 * csu/libc-start.c: Likewise.
6171 * csu/libc-tls.c: Likewise.
6172 * csu/version.c: Likewise.
6173 * dlfcn/dlinfo.c: Likewise.
6174 * elf/dl-addr.c: Likewise.
6175 * elf/dl-cache.c: Likewise.
6176 * elf/dl-close.c: Likewise.
6177 * elf/dl-iteratephdr.c: Likewise.
6178 * elf/dl-load.c: Likewise.
6179 * elf/dl-lookup.c: Likewise.
6180 * elf/dl-object.c: Likewise.
6181 * elf/dl-open.c: Likewise.
6182 * elf/dl-reloc.c: Likewise.
6183 * elf/dl-support.c: Likewise.
6184 * elf/dl-sym.c: Likewise.
6185 * elf/dl-sysdep.c: Likewise.
6186 * elf/dl-tls.c: Likewise.
6187 * elf/ldconfig.c: Likewise.
6188 * elf/rtld.c: Likewise.
6189 * elf/tst-tls-dlinfo.c: Likewise.
6190 * elf/tst-tls1.c: Likewise.
6191 * elf/tst-tls10.h: Likewise.
6192 * elf/tst-tls14.c: Likewise.
6193 * elf/tst-tls2.c: Likewise.
6194 * elf/tst-tls3.c: Likewise.
6195 * elf/tst-tls4.c: Likewise.
6196 * elf/tst-tls5.c: Likewise.
6197 * elf/tst-tls6.c: Likewise.
6198 * elf/tst-tls7.c: Likewise.
6199 * elf/tst-tls8.c: Likewise.
6200 * elf/tst-tls9.c: Likewise.
6201 * elf/tst-tlsmod1.c: Likewise.
6202 * elf/tst-tlsmod13.c: Likewise.
6203 * elf/tst-tlsmod13a.c: Likewise.
6204 * elf/tst-tlsmod14a.c: Likewise.
6205 * elf/tst-tlsmod2.c: Likewise.
6206 * elf/tst-tlsmod3.c: Likewise.
6207 * elf/tst-tlsmod4.c: Likewise.
6208 * elf/tst-tlsmod5.c: Likewise.
6209 * elf/tst-tlsmod6.c: Likewise.
6210 * include/errno.h: Likewise.
6211 * include/link.h: Likewise.
6212 * include/tls.h: Likewise.
6213 * locale/global-locale.c: Likewise.
6214 * locale/localeinfo.h: Likewise.
6215 * malloc/arena.c: Likewise.
6216 * malloc/hooks.c: Likewise.
6217 * malloc/malloc.c: Likewise.
6218 * resolv/Versions: Likewise.
6219 * sysdeps/alpha/dl-machine.h: Likewise.
6220 * sysdeps/alpha/libc-tls.c: Likewise.
6221 * sysdeps/generic/ldsodefs.h: Likewise.
6222 * sysdeps/generic/tls.h: Likewise.
6223 * sysdeps/i386/dl-machine.h: Likewise.
6224 * sysdeps/ia64/dl-machine.h: Likewise.
6225 * sysdeps/ia64/libc-tls.c: Likewise.
6226 * sysdeps/mach/hurd/fork.c: Likewise.
6227 * sysdeps/mach/hurd/i386/tls.h: Likewise.
6228 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
6229 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
6230 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
6231 * sysdeps/s390/libc-tls.c: Likewise.
6232 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6233 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6234 * sysdeps/sh/dl-machine.h: Likewise.
6235 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6236 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6237 * sysdeps/x86_64/dl-machine.h: Likewise.
6239 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
6240 split out locking and parameter checking.
6241 (_dl_close): Call _dl_close_worker after locking and checking.
6242 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
6244 * elf/Makefile: Add rules to build and run tst-thrlock.
6245 * elf/tst-thrlock.c: New file.
6248 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
6252 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
6253 we are sure we do not need it anymore for _dl_close. Also move
6254 the asserts inside the lock region.
6255 Patch mostly by Suzuki <suzuki@in.ibm.com>.
6257 2006-10-27 Jakub Jelinek <jakub@redhat.com>
6259 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
6261 (_dl_lookup_symbol_x): Adjust caller.
6263 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
6265 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
6267 * elf/dl-libc.c: Revert l_scope name changes.
6268 * elf/dl-load.c: Likewise.
6269 * elf/dl-object.c: Likewise.
6270 * elf/rtld.c: Likewise.
6271 * elf/dl-close.c (_dl_close): Likewise.
6272 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
6273 always use __rtld_mrlock_{change,done}. Always free old scope list
6274 here if not l_scope_mem.
6275 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
6276 change. Never free scope list here. Just __rtld_mrlock_lock before
6277 the lookup and __rtld_mrlock_unlock it after the lookup.
6278 * elf/dl-sym.c: Likewise.
6279 * include/link.h (struct r_scoperec): Remove.
6280 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
6281 with l_scope_mem and l_scoperec_lock with l_scope_lock.
6283 2006-10-25 Ulrich Drepper <drepper@redhat.com>
6285 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
6287 2006-10-18 Ulrich Drepper <drepper@redhat.com>
6289 * configure.in: Disable building profile libraries by default.
6291 2006-10-17 Jakub Jelinek <jakub@redhat.com>
6293 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
6294 as signed longs, check for x_base + pos overflow.
6295 * sunrpc/Makefile (tests): Add tst-xdrmem2.
6296 * sunrpc/tst-xdrmem2.c: New test.
6298 2006-10-18 Ulrich Drepper <drepper@redhat.com>
6300 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
6301 _dl_lookup_symbol_x code.
6303 2006-10-17 Jakub Jelinek <jakub@redhat.com>
6305 * elf/dl-runtime.c: Include sysdep-cancel.h.
6306 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
6307 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
6308 instead of catomic_* macros.
6309 * elf/dl-sym.c: Include sysdep-cancel.h.
6310 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
6311 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
6312 * elf/dl-close.c: Include sysdep-cancel.h.
6313 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
6314 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
6315 * elf/dl-open.c: Include sysdep-cancel.h.
6316 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
6317 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
6319 2006-10-17 Jakub Jelinek <jakub@redhat.com>
6322 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
6323 fastbin rather than end of fastbin array.
6325 2006-10-18 Ulrich Drepper <drepper@redhat.com>
6327 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
6329 * sysdeps/x86_64/bits/atomic.h
6330 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
6331 (catomic_decrement): Use correct body macro.
6333 2006-10-17 Jakub Jelinek <jakub@redhat.com>
6335 * include/atomic.h: Add a unique prefix to all local variables
6337 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
6339 2006-10-16 Ulrich Drepper <drepper@redhat.com>
6342 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
6345 2006-10-14 Ulrich Drepper <drepper@redhat.com>
6347 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
6349 2006-10-13 Ulrich Drepper <drepper@redhat.com>
6352 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
6353 determine highest fast bin to consolidate, always look into all of
6355 (do_check_malloc_state): Only require for empty bins for large
6356 sizes in main arena.
6358 * libio/stdio.h: Add more __wur attributes.
6360 * elf/dl-minimal.c (realloc): Optimize last patch.
6362 2006-10-12 Richard Sandiford <richard@codesourcery.com>
6365 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
6366 and use memcpy() if it does.
6368 2006-11-12 Andreas Jaeger <aj@suse.de>
6371 * manual/search.texi (Hash Search Function): Clarify.
6372 (Array Search Function): Clarify.
6374 2006-11-12 Joseph Myers <joseph@codesourcery.com>
6377 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
6379 * math/atest-exp2.c (read_mpn_hex): Likewise.
6380 * math/atest-sincos.c (main): Likewise.
6382 2006-10-11 Ulrich Drepper <drepper@redhat.com>
6384 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
6385 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
6386 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
6388 * Versions.def: Add GLIBC_2.6 for libc.
6390 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
6392 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
6394 2006-10-11 Jakub Jelinek <jakub@redhat.com>
6396 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
6398 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
6400 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
6401 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
6403 2006-10-11 Ulrich Drepper <drepper@redhat.com>
6405 * include/atomic.c: Define catomic_* operations.
6406 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
6407 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
6408 * malloc/memusage.c: Likewise.
6409 * gmon/mcount.c: Likewise.
6410 * elf/dl-close.c: Likewise.
6411 * elf/dl-open.c: Likewise.
6412 * elf/dl-profile.c: Likewise.
6413 * elf/dl-sym.c: Likewise.
6414 * elf/dl-runtime.c: Likewise.
6415 * elf/dl-fptr.c: Likewise.
6416 * resolv/res_libc.c: Likewise.
6418 2006-10-10 Ulrich Drepper <drepper@redhat.com>
6420 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
6421 components which lack them.
6423 * nis/nis_subr.c (nis_getnames): Make sure that we always return
6424 at least one entry consisting of the parameter concatenated with
6427 2006-10-10 Roland McGrath <roland@frob.com>
6429 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
6430 * sysdeps/mach/hurd/futimes.c: Likewise.
6431 * sysdeps/mach/hurd/lutimes.c: Likewise.
6433 2006-10-09 Ulrich Drepper <drepper@redhat.com>
6434 Jakub Jelinek <jakub@redhat.com>
6436 Implement reference counting of scope records.
6437 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
6438 from the list in objects which remain. Always allocate new scope
6440 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
6441 don't resize, allocate a new one.
6442 * elf/dl-runtime.c: Update reference counters before using a scope
6444 * elf/dl-sym.c: Likewise.
6445 * elf/dl-libc.c: Adjust for l_scope name change.
6446 * elf/dl-load.c: Likewise.
6447 * elf/dl-object.c: Likewise.
6448 * elf/rtld.c: Likewise.
6449 * include/link.h: Include <rtld-lowlevel.h>. Define struct
6450 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
6451 Add l_scoperec_lock.
6452 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
6453 * sysdeps/generic/rtld-lowlevel.h: New file.
6455 * include/atomic.h: Rename atomic_and to atomic_and_val and
6456 atomic_or to atomic_or_val. Define new macros atomic_and and
6457 atomic_or which do not return values.
6458 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
6460 * sysdeps/i386/i486/bits/atomic.h: Likewise.
6462 * po/sv.po: Update from translation team.
6464 2006-10-07 Ulrich Drepper <drepper@redhat.com>
6466 * Versions.def: Add GLIBC_2.6 to libpthread.
6468 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
6469 (versioned_symbol): Likewise.
6470 (compat_symbol): Likewise.
6472 * po/tr.po: Update from translation team.
6474 2006-10-06 Ulrich Drepper <drepper@redhat.com>
6476 * nis/Banner: Removed. It's been integral part forever and the
6477 author info is incomplete anyway.
6478 * libio/Banner: Likewise.
6480 * nis/nis_table.c (nis_list): If __follow_path fails in the new
6481 code, make sure the nis_freeresult call doesn't crash and that the
6482 result is reported correctly.
6484 2006-09-27 Jakub Jelinek <jakub@redhat.com>
6486 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
6487 when callback is NULL.
6489 * nis/Versions (libnss_nisplus): Add
6490 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
6491 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
6492 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
6493 _nss_create_tablename): Rename to...
6494 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
6495 ... these. No longer static.
6496 (internal_setgrent): Adjust users.
6497 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
6498 Don't use locking around _nss_grp_create_tablename call.
6499 * nis/nss_nisplus/nisplus-initgroups.c: New file.
6501 2006-10-06 Ulrich Drepper <drepper@redhat.com>
6503 * version.h (VERSION): Bump to 2.5.90 for new development tree.
6505 2006-10-06 Andreas Jaeger <aj@suse.de>
6507 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
6509 2006-10-06 Ulrich Drepper <drepper@redhat.com>
6511 * po/pl.po: Update from translation team.
6513 * nscd/nscd.c (main): Fix typo in message.
6514 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
6516 2006-10-02 Jakub Jelinek <jakub@redhat.com>
6519 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
6520 errno.h, signal.h, unistd.h and sysdep-cancel.h.
6521 (__sigprocmask): Define.
6523 2006-10-02 Ulrich Drepper <drepper@redhat.com>
6525 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
6528 2006-10-02 Jakub Jelinek <jakub@redhat.com>
6530 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
6531 in oldtotal and newtotal calculation.
6532 * nscd/nscd-client.h (struct mapped_database): Add datasize
6534 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
6535 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
6537 (__nscd_cache_search): Add checks to make sure we never reference
6538 data beyond the current mapping.
6540 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
6542 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
6543 variables const to avoid compiler warnings.
6545 * io/fts.c (fts_close): Remove redundant checks.
6546 (fts_build): Likewise.
6547 (fts_palloc): Likewise.
6549 * manual/message.texi (Advanced gettext functions,
6550 Using gettextized software): Fix typos.
6552 2006-09-30 Ulrich Drepper <drepper@redhat.com>
6554 * posix/glob.c (glob_in_dir): Add some comments and asserts to
6555 explain why there are no leaks.
6557 2006-09-29 Ulrich Drepper <drepper@redhat.com>
6559 * libio/wmemstream.c: Include <wchar.h>.
6560 * libio/bug-wmemstream1.c: Likewise.
6561 * libio/tst-wmemstream1.c: Likewise.
6562 * libio/tst-wmemstream2.c: Likewise.
6564 * version.h (RELEASE): Bump to 2.5.
6565 * README: Regenerated.
6567 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
6570 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
6571 found no group members.
6572 Patch by Petr Baudis.
6574 2006-09-29 Jakub Jelinek <jakub@redhat.com>
6576 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
6577 assert bootstrap_map.l_tls_modid is zero.
6578 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
6581 2006-09-27 Ulrich Drepper <drepper@redhat.com>
6583 * libio/stdio.h: Move open_wmemstream prototype to ...
6584 * wcsmbs/wchar.h: ... here.
6586 2006-09-25 Jakub Jelinek <jakub@redhat.com>
6589 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
6590 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
6591 __{,l}chown to handle the rest.
6592 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
6593 fchownat syscall and __ASSUME_32BITUIDS case inline, call
6594 __{,l}chown to handle the rest.
6595 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
6597 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
6598 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
6601 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
6602 time, rather allocate increasingly bigger arrays of pointers, if
6603 possible with alloca, if too large with malloc.
6605 2006-09-24 Jakub Jelinek <jakub@redhat.com>
6607 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
6609 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
6611 2006-09-24 Ulrich Drepper <drepper@redhat.com>
6613 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
6615 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
6616 IFA_F_HOMEADDRESS flag for interfaces.
6617 * include/ifaddrs.h (struct in6addrinfo): Define
6620 2006-09-21 Jakub Jelinek <jakub@redhat.com>
6623 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
6624 PTR_DEMANGLE3): Define.
6625 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
6626 PTR_DEMANGLE3): Likewise.
6627 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
6628 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
6630 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
6632 2006-09-20 Jakub Jelinek <jakub@redhat.com>
6634 * po/libc.pot: Regenerated.
6635 * po/be.po: Updated.
6636 * po/ca.po: Likewise.
6637 * po/cs.po: Likewise.
6638 * po/da.po: Likewise.
6639 * po/de.po: Likewise.
6640 * po/el.po: Likewise.
6641 * po/en_GB.po: Likewise.
6642 * po/es.po: Likewise.
6643 * po/fi.po: Likewise.
6644 * po/fr.po: Likewise.
6645 * po/gl.po: Likewise.
6646 * po/hr.po: Likewise.
6647 * po/hu.po: Likewise.
6648 * po/ja.po: Likewise.
6649 * po/ko.po: Likewise.
6650 * po/nb.po: Likewise.
6651 * po/nl.po: Likewise.
6652 * po/pl.po: Likewise.
6653 * po/pt_BR.po: Likewise.
6654 * po/ru.po: Likewise.
6655 * po/rw.po: Likewise.
6656 * po/sk.po: Likewise.
6657 * po/sv.po: Likewise.
6658 * po/tr.po: Likewise.
6659 * po/zh_CN.po: Likewise.
6660 * po/zh_TW.po: Likewise.
6663 * iconv/iconv_prog.c (main): Fix spelling in error message.
6664 * iconv/iconvconfig.c (main): Likewise.
6665 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
6666 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
6667 * locale/programs/localedef.c (main): Likewise.
6668 * locale/programs/repertoire.c (repertoire_read): Likewise.
6669 * timezone/zdump.c (main): Likewise.
6670 * nscd/connections.c (handle_request): Fix spelling in log message.
6671 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
6673 2006-09-20 Ulrich Drepper <drepper@redhat.com>
6675 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
6678 2006-09-20 Andreas Jaeger <aj@suse.de>
6680 * math/libm-test.inc (lrint_test_upward): Fix typo.
6682 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
6685 * math/libm-test.inc (lrint_test_tonearest): New function.
6686 (lrint_test_towardzero): New function.
6687 (lrint_test_downward): New function.
6688 (lrint_test_upward): New function.
6689 (main): Run these new tests.
6690 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
6691 of values near to 0.
6692 (two52): Use double not long double.
6693 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
6694 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
6695 (two23): Use float not double.
6696 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
6697 (two23): Use float not double.
6698 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
6699 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
6700 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
6701 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
6703 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
6705 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
6706 Cast sp to unsigned long to avoid compiler warning.
6707 Use __makecontext_ret function instead of a trampoline on the stack.
6708 (__makecontext_ret): New function.
6709 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
6711 2006-09-19 Jakub Jelinek <jakub@redhat.com>
6713 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
6714 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
6717 2006-09-19 Ulrich Drepper <drepper@redhat.com>
6719 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
6720 sure no reference to the unloaded map's search list remains in the
6723 2006-09-16 Jakub Jelinek <jakub@redhat.com>
6725 * elf/Makefile: Add rules to build and run unload7 test.
6726 * elf/unload7.c: New test.
6727 * elf/unload7mod1.c: New file.
6728 * elf/unload7mod2.c: New file.
6730 2006-09-18 Jakub Jelinek <jakub@redhat.com>
6732 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
6733 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
6734 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
6735 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
6736 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
6737 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
6738 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
6739 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
6740 PTRACE_GETEVENTMSG): Likewise.
6741 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
6744 2006-09-17 Mike Frysinger <vapier@gentoo.org>
6746 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
6747 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
6748 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
6749 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
6751 2006-09-16 Jakub Jelinek <jakub@redhat.com>
6753 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
6754 write '\0' to the fd.
6755 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
6756 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
6757 Change regs to unsigned long pointer from unsigned int, fix fscr
6760 2006-09-14 Jakub Jelinek <jakub@redhat.com>
6762 * io/Makefile (CFLAGS-fstatat.c): Set.
6763 (CFLAGS-fstatat64.c): Likewise.
6764 (CFLAGS-mknodat.c): Likewise.
6766 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
6767 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6768 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
6769 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
6771 2006-09-14 Jakub Jelinek <jakub@redhat.com>
6772 Steven Munroe <sjmunroe@us.ibm.com>
6774 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
6775 names to the beginning. Rename "cell" to "cellbe".
6776 (_dl_powerpc_platforms): New.
6777 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
6778 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
6779 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
6780 (_DL_HWCAP_PLATFORM): Define to new mask.
6781 (_dl_platform_string, _dl_string_platform): New functions.
6782 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
6783 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
6785 2006-09-12 Jakub Jelinek <jakub@redhat.com>
6788 * README.libm: Fix a thinko in sqrt algorithm description.
6791 * manual/string.texi (argz_delete): Fix prototype.
6792 Patch by <alpt@freaknet.org>.
6794 2006-08-26 Joseph Myers <joseph@codesourcery.com>
6797 * io/test-lfs.c (do_prepare): Give name_len type size_t.
6798 * io/tst-fcntl.c (do_prepare): Likewise.
6799 * posix/tst-exec.c (do_prepare): Likewise.
6800 * posix/tst-preadwrite.c (do_prepare): Likewise.
6801 * posix/tst-spawn.c (do_prepare): Likewise.
6802 * posix/tst-truncate.c (do_prepare): Likewise.
6803 * rt/tst-aio.c (do_prepare): Likewise.
6804 * rt/tst-aio64.c (do_prepare): Likewise.
6805 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
6808 2006-09-09 Ulrich Drepper <drepper@redhat.com>
6811 * time/mktime.c (guess_time_tm): Fix overflow detection.
6812 * time/Makefile (tests): Add bug-mktime1.
6813 * time/bug-mktime1.c: New file.
6816 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
6819 2006-09-07 Jakub Jelinek <jakub@redhat.com>
6822 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
6823 Ensure relocation doesn't clobber any bits outside of the
6824 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
6825 R_SPARC_HI22 and R_SPARC_H44.
6828 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
6829 (long) (MINSIZE + nb - old_size) is positive.
6831 * malloc/arena.c (grow_heap): When growing bail even if new_size
6835 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
6838 2006-09-06 Jakub Jelinek <jakub@redhat.com>
6840 * posix/regex_internal.c (re_string_reconstruct): Handle
6841 offset < pstr->valid_raw_len && pstr->offsets_needed case.
6842 Ensure no bytes read before raw_mbs array. Pass a saved copy of
6843 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
6844 re_string_context_at.
6845 * posix/Makefile: Add rules to build and run bug-regex26 test.
6846 * posix/bug-regex26.c: New test.
6848 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
6849 rather than col_sym_free. Move seqp declaration earlier.
6851 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
6853 2006-09-05 Jakub Jelinek <jakub@redhat.com>
6855 * nscd/initgrcache.c (addinitgroupsX): Move any_success
6856 decl before first goto out.
6858 2006-09-04 Jakub Jelinek <jakub@redhat.com>
6860 * Makerules (shlib.lds): If have-hash-style, put .hash section
6861 at the end of the RO segment.
6863 2006-09-04 Ulrich Drepper <drepper@redhat.com>
6865 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
6866 style hash table format is used.
6868 2006-09-04 Jakub Jelinek <jakub@redhat.com>
6870 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
6871 randomization rather than before.
6872 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
6874 2006-08-31 Jakub Jelinek <jakub@redhat.com>
6876 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
6878 * malloc/malloc.c (_int_malloc): Use full list insert and not
6879 shortcut which assumes the list is empty for large requests
6882 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
6884 2006-08-30 Jakub Jelinek <jakub@redhat.com>
6886 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
6887 and offout arguments to the prototype.
6888 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
6889 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
6890 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
6891 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
6892 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
6893 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
6894 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
6895 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
6897 2006-08-28 Ulrich Drepper <drepper@redhat.com>
6899 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
6901 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
6904 2006-08-28 Jakub Jelinek <jakub@redhat.com>
6906 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
6907 only if herrno is NETDB_INTERNAL. Handle errors other than
6908 ERANGE outside of the loops, handle TRY_AGAIN.
6910 * locale/programs/ld-ctype.c (translit_flatten): Issue error
6911 if other's ctype category was missing.
6912 * locale/programs/ld-collate.c (collate_read): Return if
6913 copy_locale's collate category is missing.
6915 2006-08-27 Ulrich Drepper <drepper@redhat.com>
6918 * malloc/malloc.c (public_rEALLOc): Try harder by using other
6919 arenas if allocation failed.
6920 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
6922 2006-08-26 Ulrich Drepper <drepper@redhat.com>
6924 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
6926 (malloc_state): Reduce bins size by 2.
6927 (_int_malloc): Fix test for large enough buffer for early termination.
6928 When no unsorted block matches perfectly and an exiting block has
6929 to be split, use full list insert and not shortcut which assumes
6932 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
6935 2006-08-24 Ulrich Drepper <drepper@redhat.com>
6937 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
6940 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
6941 symbol require exact match (these are PLTs).
6942 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
6943 (_dl_ppc64_addr_sym_match): Likewise.
6946 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
6947 If symbol has a value use it.
6948 * elf/tst-dladdr1.c: New file.
6949 * elf/Makefile: Add rules to build and run tst-addr1.
6951 2006-08-24 Jakub Jelinek <jakub@redhat.com>
6953 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
6954 keeps failing and heap growth or new heap creation isn't
6956 * malloc/tst-malloc.c (main): Add new tests.
6958 2006-08-24 Ulrich Drepper <drepper@redhat.com>
6961 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
6962 as in the x86-64 code to use bswap.
6964 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
6967 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
6969 * posix/bits/unistd.h: Likewise.
6971 2006-05-15 Mike Frysinger <vapier@gentoo.org>
6974 * string/strchr.c: Add cast to avoid warning.
6976 2006-08-21 Ulrich Drepper <drepper@redhat.com>
6978 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
6979 platforms define as 512K. For 64-bit platforms as 32MB. The lower
6980 limit is needed to avoid the exploding of the address space
6981 requirement for secondary heaps.
6982 * malloc/arena.c (HEAP_MAX_SIZE): Define using
6983 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
6985 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
6988 * Makerules (depfiles): Handle extra-test-objs the same as
6990 (common-mostlyclean): Likewise.
6991 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
6993 * elf/Makefile (extra-objs): Likewise.
6994 * stdlib/Makefile (extra-objs): Likewise.
6996 2006-08-14 Eric Blake <ebb9@byu.net>
6999 * misc/error.h: Assume C89 or better.
7000 * misc/error.c: Likewise.
7002 2006-08-21 Ulrich Drepper <drepper@redhat.com>
7005 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
7006 __ASSUME_ATFCTS is defined.
7008 2006-08-19 Ulrich Drepper <drepper@redhat.com>
7010 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
7011 to sort in each call.
7013 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
7014 is empty simply return and use next service.
7015 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
7017 * locale/programs/charmap.c (charmap_read): Add new parameter. It
7018 tells us when not finding a charmap file is an error.
7019 * locale/programs/charmap.h: Adjust charmap_read prototype.
7020 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
7021 cannot find a charmap.
7022 * locale/programs/localedef.c (main): Adjust charmap_read call.
7024 2006-08-15 Jakub Jelinek <jakub@redhat.com>
7026 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
7027 sysdeps/posix/pause.c implementation instead.
7029 2006-08-09 Jakub Jelinek <jakub@redhat.com>
7031 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
7034 2006-08-13 Andreas Schwab <schwab@suse.de>
7036 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
7037 Don't clobber caller's LRSAVE.
7038 (_dl_prof_resolve): Likewise.
7040 2006-08-14 Ulrich Drepper <drepper@redhat.com>
7043 * libio/memstream.c (open_memstream): Allocate initial buffer with
7045 * libio/wmemstream.c (open_wmemstream): Likewise.
7046 * libio/strops.c: Pretty printing.
7047 (_IO_str_overflow): Clear uninitialized part of the new buffer.
7048 (enlarge_userbuf): New function.
7049 (_IO_str_seekoff): Call it if seek position is larger than current
7051 * libio/wstrops.c: Likewise.
7052 * libio/vasprintf.c: Add comment as to why we do not have to use
7053 calloc instead of malloc to allocate initial buffer.
7054 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
7055 * libio/bug-memstream1.c: New file.
7056 * libio/bug-wmemstream1.c: New file.
7058 2006-08-13 Ulrich Drepper <drepper@redhat.com>
7060 * libio/wstrops.c: Remove dead macro definitions and comments.
7061 * libio/strops.c: Likewise.
7064 * login/utmpname.c (__utmpname): Remove unnecessary test.
7066 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
7069 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
7072 2006-08-13 Ulrich Drepper <drepper@redhat.com>
7075 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
7077 * sysdeps/unix/clock_settime.c: Add support for platform-specific
7078 setting of CPU clocks.
7080 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
7083 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
7084 since C99 requires the result to promote to 'int' when uint_least8_t
7085 and uint_least16_t promote to 'int'.
7087 2006-08-12 Ulrich Drepper <drepper@redhat.com>
7090 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
7091 lenght of one output field, correct bitmask creation.
7092 * locale/programs/ld-time.c: Add alignment.
7095 * misc/error.c: Add space between program name and message if file
7098 2006-08-03 Eric Blake <ebb9@byu.net>
7101 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
7103 2006-08-09 Ulrich Drepper <drepper@redhat.com>
7105 * malloc/memusagestat.c: Silence warnings.
7107 * malloc/malloc.c: Dynamically size mmap treshold if the program
7108 frees mmaped blocks.
7109 Patch by Valerie Henson and Arjan van de Ven.
7111 2006-08-08 Jakub Jelinek <jakub@redhat.com>
7113 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
7116 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
7117 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
7118 (DEF): Don't put the var into .gnu.linkonce.r.* section.
7119 Only provide var definitions in strtol_l (or for *ull*
7122 * stdio-common/bug16.c (tests): New array.
7123 (do_tests): Allow the first hexadecimal digit
7124 to be 1, 2, 4 or 8. Do 3 additional tests.
7126 * sysdeps/s390/fpu/libm-test-ulps: Update.
7128 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
7129 fchownat syscall if available.
7130 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
7131 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
7132 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
7134 2006-08-07 Ulrich Drepper <drepper@redhat.com>
7136 * nis/nis_xdr.c: Avoid some function calls.
7138 2006-08-07 Jakub Jelinek <jakub@redhat.com>
7139 Ulrich Drepper <drepper@redhat.com>
7141 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
7142 short cut if only one name component is stripped away.
7144 2006-08-07 Ulrich Drepper <drepper@redhat.com>
7146 * nis/nis_call.c: Minor cleanups throughout.
7147 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
7148 (first_shoot): Add search_parent_first parameter. Only if it is set
7149 search parent server first.
7150 If directory for table found through cold start cache is not the same
7151 as referenced in the cache, don't use it.
7152 (__nisfind_server): Take additional parameter. Pass it on to
7154 (__prepare_niscall): Adjust __nisfind_server call.
7155 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
7156 * nis/nis_table.c: Adjust __nisfind_server call.
7157 * nis/nis_lookup.c: Likewise.
7158 (nis_lookup): Don't loop endlessly if name is reduced to ".".
7160 2006-08-03 Ulrich Drepper <drepper@redhat.com>
7163 * math/s_cacosh.c: Return values from positive branch.
7164 * math/s_cacoshf.c: Likewise.
7165 * math/s_cacoshl.c: Likewise.
7168 * sysvipc/sys/msg.h: Change return value to ssize_t.
7169 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
7170 * sysvipc/msgrcv.c: Likewise.
7171 * include/sys/msg.h: Likewise.
7173 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
7174 test introduced in patch for bz #661.
7175 (getgrouplist): Simplify code a bit. Don't allocate one additional
7176 element for NEWGROUPS.
7179 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
7180 'f', use '1' as leading digit not '\1'.
7181 * stdio-common/Makefile (tests): Add bug16.
7182 * stdio-common/bug16.c: New file.
7185 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
7186 and don't try to open it. The patch introducing the macro
7187 contained a bug and used the same file name as the new file
7188 instead of using /var/adm/hostid. Nobody complaint so I'm taking
7189 this out completely.
7192 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
7193 Patch by Jerry James <Jerry.James@usu.edu>.
7195 * rt/Makefile (tests): Add tst-clock2.
7196 * rt/tst-clock2.c: New file.
7199 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
7200 function and its parameters and pass it to new thread.
7201 (__gai_notify): Add support for alternative waiting for completion.
7202 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
7203 waiting for completion.
7204 * resolv/getaddrinfo_a.c: Likewise.
7205 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
7206 waiting for completion is used.
7207 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
7208 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
7209 * resolv/gai_error.c: Likewise.
7210 * resolv/gai_sigqueue.c: Likewise.
7212 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
7214 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
7215 errno to EBADF and return MACH_PORT_NULL.
7217 2006-06-23 Joseph Myers <joseph@codesourcery.com>
7220 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
7222 2006-08-02 Ulrich Drepper <drepper@redhat.com>
7224 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
7225 walk them instead of the symbol table.
7227 2006-08-01 Ulrich Drepper <drepper@redhat.com>
7230 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
7231 status of NSS calls, not the number of returned entries.
7233 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
7234 request_key, keyctl.
7236 2006-07-31 Ulrich Drepper <drepper@redhat.com>
7238 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
7240 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
7242 * elf/tst-auditmod1.c: Fix typo in #error.
7244 2006-07-31 Ulrich Drepper <drepper@redhat.com>
7246 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
7248 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
7250 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
7252 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
7253 that the directory is empty even on non-POSIX filesystems.
7255 2006-07-31 Ulrich Drepper <drepper@redhat.com>
7257 * elf/dl-open.c (dl_open_worker): Add branch prediction.
7259 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
7260 the backend NSS module. If backend setgrent call failed, don't have
7261 internal_setgrent fail. Just remember this until it is needed.
7262 * nis/nss_compat/compat-pwd.c: Likewise.
7263 * nis/nss_compat/compat-spwd.c: Likewise.
7265 2006-07-30 Roland McGrath <roland@redhat.com>
7267 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
7268 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
7269 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
7270 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
7272 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
7273 (nanosleep_not_cancel): New macro.
7274 (sigsuspend_not_cancel): new macro.
7275 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
7276 (do_sigsuspend): Define as inline.
7277 (__sigsuspend): Always use do_sigsuspend.
7278 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
7279 * include/signal.h: Declare __sigsuspend_nocancel.
7280 * sysdeps/posix/pause.c
7281 [! NO_CANCELLATION] (__pause_nocancel): New function.
7283 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
7284 * include/time.h (__nanosleep_nocancel): Likewise.
7286 2006-07-30 Ulrich Drepper <drepper@redhat.com>
7288 * locale/programs/localedef.c (add_to_readlist): Rename local
7289 variables to avoid confusion.
7291 * locale/programs/charmap.c (charmap_read): Emit error message if
7292 charmap couldn't be found or read.
7294 2006-07-28 Ulrich Drepper <drepper@redhat.com>
7296 * sysdeps/unix/sysv/linux/kernel-features.h: Define
7297 __ASSUME_FUTEX_LOCK_PI.
7298 * include/time.h: Declare __nanosleep_nocancel.
7299 * include/unistd.h: Declare __pause_nocancel.
7301 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
7302 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
7303 get the __stack_chk_fail_local definition when it's needed.
7305 2006-07-26 Ulrich Drepper <drepper@redhat.com>
7307 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
7308 * dlfcn/bug-atexit3.c: New file.
7309 * dlfcn/bug-atexit3-lib.cc: New file.
7311 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
7312 used when the namespace is not the base namespace.
7314 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
7316 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
7317 (__new_exitfn): Bump it in every successful call.
7318 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
7319 more exit handlers, call them right away.
7320 * stdlib/exit.h: Declare __new_exitfn_called.
7322 2006-07-25 Ulrich Drepper <drepper@redhat.com>
7324 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
7325 calling registered handler.
7327 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
7328 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7329 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7330 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
7331 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7332 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7333 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7334 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7336 2006-07-10 Ulrich Drepper <drepper@redhat.com>
7338 * elf/dl-lookup.c (dl_new_hash): New functions.
7339 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
7340 value here. Compute new-style hash value. Pass new hash value
7341 and reference to variable with the old value to do_lookup_x.
7342 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
7343 old-style hash table.
7344 (_dl_debug_bindings): Pass new hash value and reference to variable
7345 with the old value to do_lookup_x.
7346 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
7347 new-style hash value and change old-style hash value parameter to
7348 be a reference. Reoganize functions to determine whether
7349 new-style hash table is available. Only fall back on old-style
7350 table. If old-style hash value is needed, compute it here.
7351 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
7353 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
7354 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
7355 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
7356 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
7357 * Makeconfig: If linker supports --hash-style option add it to all
7358 linker command lines to build DSOs.
7359 * config.make.in: Define have-hash-style.
7360 * configure.in: Test whether linker supports --hash-style option.
7362 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
7363 * sysdeps/generic/ldsodefs.h: Adjust prototype.
7365 2006-06-27 Ulrich Drepper <drepper@redhat.com>
7367 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
7370 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
7371 RPATH of main map twice.
7373 2006-06-22 Ulrich Drepper <drepper@redhat.com>
7375 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
7376 look further, return original strings.
7377 (_nl_find_msg): Do not return found translation if the conversion
7378 failed. Either signal the string is unusable or that something went
7379 wrong and the original should be used.
7381 2006-06-21 Ulrich Drepper <drepper@redhat.com>
7383 * string/_strerror.c (__strerror_r): Add __builtin_expect.
7385 2006-06-14 Jakub Jelinek <jakub@redhat.com>
7388 * misc/insremque.c (insque): Handle prev == NULL.
7389 * misc/Makefile (tests): Add tst-insremque.
7390 * misc/tst-insremque.c: New test.
7392 2006-06-17 Ulrich Drepper <drepper@redhat.com>
7395 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
7396 conflict with DL_DST_REQUIRED.
7398 2006-06-16 Ulrich Drepper <drepper@redhat.com>
7400 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
7401 match what Solaris does.
7403 2006-06-04 Ulrich Drepper <drepper@redhat.com>
7405 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
7406 local_setegid instead of seteuid and setegid.
7407 * sysdeps/generic/local-setxid.h: New file.
7408 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
7410 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
7412 * string/Makefile (tests): Add bug-envz1.
7413 * string/bug-envz1.c: New file.
7415 2006-06-02 Jakub Jelinek <jakub@redhat.com>
7417 * posix/regex_internal.c (re_string_skip_chars): If no character has
7418 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
7419 to the byte which couldn't be converted.
7420 (re_string_reconstruct): Don't clear valid_raw_len before calling
7421 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
7422 tip_context using re_string_context_at.
7423 * posix/Makefile: Add rules to build and run bug-regex25 test.
7424 * posix/bug-regex25.c: New test.
7426 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
7429 * string/envz.c (envz_strip): Correct erroneously reversed src
7430 and dest parameters to memmove() invocation.
7432 2006-05-30 Jakub Jelinek <jakub@redhat.com>
7434 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
7435 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
7436 to make sure the database has been already invalidated.
7437 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
7438 after the cache has been invalidated. Use pthread_mutex_lock rather
7439 than pthread_mutex_trylock if fd != -1.
7440 * nscd/connections.c (invalidate_cache): Add fd argument, write
7441 response to fd if not calling prune_cache, pass fd to prune_cache.
7442 (handle_request): Adjust invalidate_cache caller.
7443 (nscd_run): Pass -1 as fd to prune_cache.
7445 2006-05-30 Ulrich Drepper <drepper@redhat.com>
7447 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
7450 2006-05-29 Ulrich Drepper <drepper@redhat.com>
7452 * nscd/nscd.h (struct database_dyn): Add prunelock field.
7453 * nscd/cache.c (prune_cache): Take prunelock before starting the
7454 work. Just return in case it is already taken.
7455 * nscd/connections.c (dbs): Initialize .prunelock.
7457 2006-05-25 Ulrich Drepper <drepper@redhat.com>
7459 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
7460 copying. No need to allocate new array for group members. Just
7461 move the pointers and update the size.
7463 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
7464 Avoid memory leak in case realloc fails. Simplification for
7465 better code generation.
7467 Avoid deprecation warning because of libc_hidden_proto for
7469 * inet/inet6_option.c (option_alloc): Renamed from
7470 inet6_option_alloc. Made static.
7471 (inet6_option_alloc): Now a simple wrapper around option_alloc.
7472 (inet6_option_append): Call option_alloc.
7473 * include/netinet/in.h: Remove libc_hidden_proto for
7476 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
7477 for cleanup when cb!=NULL [Coverity CID 233].
7479 2006-05-24 Ulrich Drepper <drepper@redhat.com>
7482 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
7483 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
7484 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
7485 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
7486 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
7487 and inet6_rth_getaddr.
7488 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
7490 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
7491 Mark inet6_option_* interfaces as deprecated.
7492 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
7493 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
7494 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
7495 inet6_rth_segments, and inet6_rth_getaddr.
7496 * inet/inet6_opt.c: New file.
7497 * inet/inet6_rth.c: New file.
7499 * inet/netinet/icmp6.h: Pretty printing.
7502 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
7504 2006-05-23 Ulrich Drepper <drepper@redhat.com>
7506 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
7507 doing it all here. When server does not know the answer do not
7508 fail immediate, try parent first.
7510 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
7513 2006-05-20 Ulrich Drepper <drepper@redhat.com>
7515 * nis/nis_call.c (__prepare_niscall): New function. Split out
7517 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
7519 (__follow_path): New function. Split out from nis_list.
7520 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
7522 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
7524 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
7526 * nis/Versions: Export __prepare_niscall, __create_ib_request,
7527 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
7528 from libnsl for version GLIBC_PRIVATE.
7529 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
7530 Remove entry parameter from _nss_nisplus_parse_pwent and
7531 _nss_nisplus_parse_grent.
7532 * nis/nss_nisplus/nisplus-parser.c: Likewise.
7533 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
7534 again. Rewrite getpwent handling to not use nis_first_entry and
7535 nis_next_entry. Roll out own niscall handling.
7536 * nis/nss_nisplus/nisplus-grp.c: Likewise.
7538 * sunrpc/xdr_rec.c: Fix typo in comment.
7540 2006-05-19 Ulrich Drepper <drepper@redhat.com>
7542 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
7545 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
7546 to allocate memory for my_pollfd. Better initialization of
7547 cb_is_running. Use TEMP_FAILURE_RETRY.
7549 * malloc/memusage.sh (memusageso): Add quotes.
7550 (memusagestat): Likewise.
7551 * debug/xtrace.sh (pcprofileso): Likewise.
7552 (pcprofiledump): Likewise.
7553 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
7555 * malloc/Makefile ($(objpfx)memusage): Likewise.
7557 * nis/nis_callback.c (__nis_create_callback): Calls to
7558 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
7559 asprintf call fails.
7561 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
7562 no uninitialized memory is passed to sendto.
7564 2006-05-18 Ulrich Drepper <drepper@redhat.com>
7566 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
7567 of snprintf+strdup. Handle OOM.
7568 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
7569 cb->serv together. Remove now obsolete free calls.
7570 (__nis_destroy_callback): Remove now obsolete free call.
7572 2006-05-18 David Woodhouse <dwmw2@redhat.com>
7574 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
7575 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
7576 and ULA respectively). Set precedence for IPv4 address to 10 as
7577 defined in RFC3484 for preferring IPv6.
7578 * posix/gai.conf: Update to match the new default tables.
7580 2006-05-18 Jakub Jelinek <jakub@redhat.com>
7582 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
7583 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
7584 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
7585 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
7587 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
7589 (init_nss_interface): Remove initialization of these variables.
7591 2006-05-18 Ulrich Drepper <drepper@redhat.com>
7593 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
7594 nis_free_directory forward to avoid duplication.
7596 2006-05-17 Ulrich Drepper <drepper@redhat.com>
7598 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
7599 rec_dirsearch returning NULL.
7600 (first_shoot): Handle __nis_finddirectory returning NULL.
7601 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
7603 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
7604 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
7606 2006-05-17 Jakub Jelinek <jakub@redhat.com>
7608 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
7611 2006-05-15 Ulrich Drepper <drepper@redhat.com>
7613 * include/rpc/pmap_prot.h: Mark all functions as hidden.
7615 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
7616 * nscd/nscd_getgr_r.c: Likewise.
7618 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
7620 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
7621 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
7623 * stdlib/longlong.h (__clz_tab): Mark as hidden.
7625 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
7627 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
7629 * include/rpc/auth.h: Mark xdr_des_block_internal and
7630 xdr_opaque_auth_internal as hidden.
7632 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
7635 * include/rpc/xdr.h: Mark all _internal functions as hidden.
7637 * misc/getusershell.c (okshells): Don't use static initializers,
7640 * stdlib/fmtmsg.c (keywords): Change type of len element to
7641 uint32_t to not waste space on 64bit machines.
7643 * locale/setlocale.c: Change _nl_category_names into a string.
7644 Add new _nl_category_name_idxs. Change all users.
7645 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
7646 Declare _nl_category_name_idxs.
7647 * locale/findlocale.c: Adjust for _nl_category_names change.
7648 * locale/loadlocale.c: Likewise.
7649 * locale/newlocale.c: Likewise.
7650 * intl/dcigettext.c: Likewise.
7652 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
7653 (add_alias2): ...here. New function.
7654 (__gconv_read_conf): Simplify builtin alias handling.
7655 (builtin_aliases): Convert to string to avoid relocations.
7656 * iconv/gconv_builtin.h: Add comment about correct formatting.
7658 2006-05-15 Jakub Jelinek <jakub@redhat.com>
7660 * resolv/res_debug.c (loc_ntoa): Make error const.
7662 2006-05-14 Andreas Schwab <schwab@suse.de>
7664 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
7666 2006-05-12 Jakub Jelinek <jakub@redhat.com>
7668 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
7669 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
7672 2006-05-11 Ulrich Drepper <drepper@redhat.com>
7674 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
7676 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
7678 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
7679 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
7681 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
7682 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
7684 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
7685 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
7688 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
7689 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
7692 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
7693 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
7695 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
7696 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
7698 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
7699 * include/rpcsvc/nis_callback.h: New file.
7701 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
7702 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
7704 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
7705 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
7707 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
7708 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
7710 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
7711 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
7713 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
7714 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
7717 * nis/nis_xdr.h: Mark all functions as hidden. Remove
7718 __BEGIN_DECLS and __END_DECLS, the header is not installed.
7720 * nis/nis_error.c: Remove table of strings. Use position
7721 independent mechanism.
7722 * nis/nis_error.h: New file.
7724 2006-05-11 Jakub Jelinek <jakub@redhat.com>
7726 * locale/programs/ld-time.c (time_finish): If wide era name or
7727 format aren't provided, set both wname and wformat to L"".
7729 2006-05-10 Ulrich Drepper <drepper@redhat.com>
7731 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
7732 results if the call was succesful.
7734 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
7736 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
7739 2006-05-10 Jakub Jelinek <jakub@redhat.com>
7741 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
7743 2006-05-10 Ulrich Drepper <drepper@redhat.com>
7745 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
7746 caller makes sure this is not the case.
7747 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
7749 2006-05-09 Ulrich Drepper <drepper@redhat.com>
7751 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
7754 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
7755 [Coverity CID 229, 230]
7757 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
7759 (hol_help): Likewise. [Coverity CID 226, 227]
7761 * string/argz-replace.c (__argz_replace): Unconditionally call
7762 free on SRC. [Coverity CID 225]
7764 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
7765 the return value of __nis_default_owner and __nis_default_group,
7766 it has been especially allocated. [Coverity CID 224]
7768 * nis/nis_defaults.c (searchXYX): New functions. Used by both
7769 searchgroup and searchowner. Significantly simplified.
7770 (__nis_default_owner): Remove duplication. Do not locally copy the
7771 string before duplicating it.
7772 (__nis_default_group): Likewise.
7774 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
7775 we must clear the variable before calling __nisfind_server.
7777 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
7778 nis_getnames. [Coverity CID 223]
7780 * locale/programs/locfile.c (locfile_read): Use alloca instead of
7781 xmalloc to allocate local repertoire name. [Coverity CID 222]
7783 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
7784 allocate memory for the input to add_bytes. [Coverity CID 221]
7786 * posix/wordexp.c (w_addword): Free word if realloc fails and it
7787 was allocated here. [Coverity CID 219, 220]
7789 * posix/getconf.c (print_all): Free confstr data after printing.
7792 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
7793 list allocation fails. [Coverity CID 215]
7795 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
7798 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
7799 string is NULL. [Coverity CID 212]
7800 * argp/Makefile: Add rules to build and run bug-argp1.
7801 * argp/bug-argp1.c: New file.
7803 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
7805 * stdlib/canonicalize.c (__realpath): Likewise.
7807 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
7808 pointer. [Coverity CID 206]
7810 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
7811 in statically linked code.
7812 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
7813 statically built code, be prepared to have no link map.
7816 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
7817 dgettext calls. [Coverity CID 204]
7819 * argp/argp-help.c (struct uparams): Remove valid member. Change
7821 (uparam_names): Reduce size. Avoid relative relocations.
7822 Moved to read-only segment.
7823 (fill_in_uparams): Update for new layout.
7825 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
7826 assumed to always be != NULL. [Coverity CID 202]
7828 * argp/argp-help.c (hol_entry_help): Remove some dead code
7831 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
7832 away a few more unconditional yperr2nss calls.
7833 (_nss_nis_getservbyname_r): Likewise.
7835 2006-05-06 Ulrich Drepper <drepper@redhat.com>
7837 * sysdeps/generic/ldsodefs.h: Remove support for non-core
7840 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
7841 that unused memory passed to sendto is nevertheless initialized.
7844 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
7845 possibly unaligned memory accesses.
7847 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
7848 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
7849 and __putlong respectively. Correct buffer overflow check for
7852 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
7854 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
7855 (send_dg): Rewrite error handling to be more compact and avoid
7856 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
7858 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
7860 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
7861 instead of ns_get16.
7862 (res_queriesmatch): Likewise. Minor optimization.
7865 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
7866 __libc_res_nsend might reallocate the buffer for the answer. In
7867 this case we have to reload the HP pointer.
7869 2006-05-05 Ulrich Drepper <drepper@redhat.com>
7871 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
7872 some branch prediction hints.
7874 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
7875 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7876 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7877 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
7878 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7879 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7880 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7881 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7883 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
7885 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
7886 by a GOT relocation to make Scrt1.o position independent.
7887 * sysdeps/s390/s390-64/elf/start.S: Likewise.
7889 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
7890 six system call parameters.
7891 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
7893 2006-05-05 Ulrich Drepper <drepper@redhat.com>
7895 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
7898 * sunrpc/svc_udp.c (BZERO): Remove definition.
7900 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
7902 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
7903 (des_SPtrans): Use uint32_t type.
7904 (des_skb): Likewise.
7906 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
7908 2006-05-05 Jakub Jelinek <jakub@redhat.com>
7911 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
7914 2006-05-05 Ulrich Drepper <drepper@redhat.com>
7916 * locale/programs/ld-address.c (address_finish): Fix one more
7917 place where the iso639 array might be accessed beyond the limits.
7919 2006-05-04 Ulrich Drepper <drepper@redhat.com>
7921 * nis/nis_table.c (nis_list): Avoid clearing res twice before
7922 filling it for the first time.
7924 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
7926 Free res object content before returning.
7928 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
7930 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
7933 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
7934 cleanup for initial thread, just the free call on TVP.
7936 * nscd/gai.c (__getline): Define.
7939 See ChangeLog.16 for earlier changes.