1 2009-03-15 Ulrich Drepper <drepper@redhat.com>
4 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
5 correctly. Set segleft member in output as required.
6 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
7 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
10 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
11 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
12 * inet/Makefile (tests): Add tst-inet6_rth.
13 * inet/tst-inet6_rth.c: New file.
16 * string/strlen.c (strlen): Fix omission in the expression to test
19 2009-03-14 Ulrich Drepper <drepper@redhat.com>
21 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
23 * elf/dl-runtime.c (reloc_offset): Define.
24 (reloc_index): Define.
25 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
26 (_dl_fixup_profile): Likewise. Use reloc_index instead of
27 computing index from reloc_offset.
28 (_dl_call_pltexit): Likewise.
29 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
30 the relocation index to _dl_fixup.
31 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
33 * sysdeps/x86_64/dl-runtime.c: New file.
36 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
37 alignment of La_x86_64_regs. Store xmm parameters.
38 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
41 * string/strverscmp.c (__strverscmp): Fix case of different digits
42 in fractional part of string.
43 Patch by Jingyu Liu <jyliu@fortinet.com>.
44 * string/Makefile (tests): Add tst-svc2.
45 * string/tst-svc2.c: New file.
47 * string/strverscmp.c (__strverscmp): Optimize size of tables.
49 * locale/iso-639.def: Add Min Nan.
51 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
54 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
56 2009-03-14 Ulrich Drepper <drepper@redhat.com>
58 * elf/dl-sysdep.c (auxvars): Compress data structure.
60 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
61 STT_GNU_IFUNC handling.
62 (elf_machine_rela): Likewise.
64 2009-03-13 Ulrich Drepper <drepper@redhat.com>
66 * config.h.in (USE_MULTIARCH): Define.
67 * configure.in: Handle --enable-multi-arch.
68 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
69 (_dl_fixup_profile): Likewise.
70 * elf/do-lookup.c (dl_lookup_x): Likewise.
71 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
72 * elf/elf.h (STT_GNU_IFUNC): Define.
73 * include/libc-symbols.h (libc_ifunc): Define.
74 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
75 framework in init-arch.h to get CPUID values.
76 * sysdeps/x86_64/multiarch/Makefile: New file.
77 * sysdeps/x86_64/multiarch/init-arch.c: New file.
78 * sysdeps/x86_64/multiarch/init-arch.h: New file.
79 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
81 * config.make.in (experimental-malloc): Define.
82 * configure.in: Handle --enable-experimental-malloc.
83 * malloc/Makefile: Handle experimental-malloc flag.
84 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
85 * malloc/arena.c: Likewise.
86 * malloc/hooks.c: Likewise.
87 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
89 2009-03-11 Ulrich Drepper <drepper@redhat.com>
91 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
92 prediction. A few size optimizations.
94 2009-03-10 Ulrich Drepper <drepper@redhat.com>
96 * time/tzset.c: Optimize a bit for size.
98 2009-03-10 Jakub Jelinek <jakub@redhat.com>
100 * include/stdio.h (fmemopen): Add libc_hidden_proto.
101 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
103 * elf/sprof.c: Avoid warning about multi-line comment.
105 2009-03-10 Ulrich Drepper <drepper@redhat.com>
107 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
109 * time/tst-posixtz.c: Add tests for quoted timezone names.
111 2009-03-10 Jakub Jelinek <jakub@redhat.com>
113 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
114 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
115 200809L instead of 200112L.
116 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
117 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
119 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
120 instead of __quick_exit_funcs to __run_exit_handlers.
121 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
122 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
123 (__cxa_at_quick_exit): Remove attribute_hidden.
124 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
125 to __run_exit_handlers.
126 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
129 2009-03-10 Ulrich Drepper <drepper@redhat.com>
131 * po/id.po: Update from translation team.
133 2009-02-18 Jakub Jelinek <jakub@redhat.com>
135 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
136 .machine push; .machine "power6" and .machine pop around mtfsf
137 insns outside of _ARCH_PWR6 define.
138 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
139 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
141 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
143 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
144 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
145 relax_fenv_state): Likewise.
147 2009-03-08 Ulrich Drepper <drepper@redhat.com>
149 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
151 (static-only-routines): Add at_quick_exit.
152 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
154 * stdlib/quick_exit.c: New file.
155 * stdlib/at_quick_exit.c: New file.
156 * stdlib/cxa_at_quick_exit.c: New file.
157 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
159 (__internal_atexit): New function.
160 (__new_exitfn): Now takes parameter to point to the list to use.
161 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
162 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
163 (exit): ...here. Just call __run_exit_handlers appropriately.
164 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
165 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
166 * stdlib/on_exit.c: Adjust call to __new_exitfn.
167 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
169 * po/id.po: Update from translation team.
171 2009-03-07 Ulrich Drepper <drepper@redhat.com>
173 * po/ru.po: Update from translation team.
175 2009-03-04 Ulrich Drepper <drepper@redhat.com>
177 * po/nl.po: Update from translation team.
179 2009-03-03 Ulrich Drepper <drepper@redhat.com>
181 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
182 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
183 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
184 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
185 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
186 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
187 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
189 * po/pl.po: Update from translation team.
191 2009-03-02 Ulrich Drepper <drepper@redhat.com>
194 * sysdeps/unix/sysv/linux/fallocate.c: New file.
195 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
196 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
197 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
198 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
199 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
200 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
202 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
203 Add fallocate and fallocate64.
205 * io/fcntl.h: Pretty printing.
207 2009-03-02 Richard Guenther <rguenther@suse.de>
209 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
210 attribute also for non-C99 inline semantics variant.
212 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
214 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
215 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
216 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
217 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
218 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
223 2009-03-02 Ulrich Drepper <drepper@redhat.com>
225 * po/cs.po: Update from translation team.
227 2009-02-28 Ulrich Drepper <drepper@redhat.com>
229 * po/bg.po: Update from translation team.
230 * po/sv.po: Likewise.
231 * po/fi.po: Likewise.
232 * po/vi.po: Likewise.
234 2009-02-27 Roland McGrath <roland@redhat.com>
236 * Makeconfig (%.v.i): Depend on Makeconfig.
237 Exclude % lines from initial #-comment removal.
239 2009-02-27 Ulrich Drepper <drepper@redhat.com>
241 * po/ko.po: Update from translation team.
243 2009-02-26 Roland McGrath <roland@redhat.com>
245 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
246 avoids unused warning.
248 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
249 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
251 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
252 sys/ucontext.h and asm/elf.h. Include sys/user.h.
253 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
254 and asm/user.h. Include asm/ptrace.h.
255 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
256 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
257 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
259 (start_thread): Don't undefine.
260 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
263 2009-02-26 Ulrich Drepper <drepper@redhat.com>
265 * wctype/wctype.h: The *_l functions are in POSIX 2008.
266 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
267 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
268 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
269 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
271 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
272 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
273 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
274 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
275 _SC_THREAD_ROBUST_PRIO_PROTECT.
276 * posix/unistd.h: fexecve is in POSIX 2008.
277 * time/time.h: strftime_l is in POSIX 2008.
278 * io/sys/stat.h: futimens is in POSIX 2008.
279 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
280 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
281 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
282 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
283 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
284 open_memstream, and vdprintf are in POSIX 2008.
286 2009-02-25 Ulrich Drepper <drepper@redhat.com>
288 * include/features.h: Define macros for XPG7/POSIX 2008.
289 * ctype/ctype.h: The *_l functions are in POSIX 2008.
290 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
292 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
293 * locale/xlocale.h: Define locale_t type.
294 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
295 in POSIX 2008. Don't define locale_t here.
296 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
297 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
298 UTIME_OMIT only with __USE_ATFILE.
299 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
300 * stdio-common/psiginfo.c: New file.
301 * stdio-common/psiginfo-data.h: New file.
302 * stdio-common/psiginfo-define.h: New file.
303 * stdio-common/Makefile (routines): Add psiginfo.
304 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
305 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
306 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
307 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
308 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
309 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
310 * io/sys/stat.h: Move mknodat definition into same conditional as
312 * time/sys/time.h: futimesat is not among the functions accepted
313 into the POSIX standard.
315 * include/features.h: If no feature selection given and we select
316 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
317 * posix/Versions: Export __posix_getopt.
318 * posix/getopt.c (_getopt_initialize): Take additional parameter.
319 Use it to alternatively initialize __posixly_correct.
320 (_getopt_internal_r): Take addition parameter. Pass on to
322 (_getopt_internal): Take addition parameter. Pass on to
324 (getopt): Pass additional zero to _getopt_internal.
325 (__posix_getopt): New function.
326 * posix/getopt.h: Add redirection for getopt.
327 * posix/getopt1.c (getopt_long): Pass additional zero to
329 (getopt_long_only): Likewise.
330 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
331 (_getopt_long_only_r): Likewise.
332 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
335 2009-02-24 Ulrich Drepper <drepper@redhat.com>
337 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
338 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
339 * sysdeps/posix/sysconf.c (__sysconf): Handle
340 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
341 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
343 2009-02-24 Roland McGrath <roland@redhat.com>
346 * README.template: Reworded not to use substituted version number.
348 * README: ... here (no longer generated).
349 * Makefile (README): Target removed.
351 2009-02-24 Ulrich Drepper <drepper@redhat.com>
353 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
354 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
357 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
359 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
361 2009-02-22 Ulrich Drepper <drepper@redhat.com>
363 * po/bg.po: Update from translation team.
365 2009-02-16 Jakub Jelinek <jakub@redhat.com>
367 * stdlib/monetary.h: Uglify function parameter names.
368 * sunrpc/rpc/pmap_clnt.h: Likewise.
369 * sunrpc/rpc/svc.h: Likewise.
370 * sunrpc/rpc/xdr.h: Likewise.
371 * sunrpc/rpc/clnt.h: Likewise.
372 * resolv/netdb.h: Likewise.
373 * resolv/arpa/nameser.h: Likewise.
374 * resolv/resolv.h: Likewise.
375 * argp/argp.h: Likewise.
376 * locale/langinfo.h: Likewise.
377 * io/sys/stat.h: Likewise.
378 * posix/spawn.h: Likewise.
379 * nis/rpcsvc/nislib.h: Likewise.
380 * malloc/obstack.h: Likewise.
381 * sysdeps/ia64/bits/link.h: Likewise.
382 * sysdeps/i386/bits/link.h: Likewise.
383 * sysdeps/s390/bits/link.h: Likewise.
384 * sysdeps/powerpc/bits/link.h: Likewise.
385 * sysdeps/x86_64/bits/link.h: Likewise.
386 * sysdeps/sparc/bits/link.h: Likewise.
387 * sysdeps/sh/bits/link.h: Likewise.
388 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
389 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
390 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
391 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
393 2008-12-01 Fredrik Unger <fred@tree.se>
395 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
396 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
397 _FP_UNPACK_RAW_2, fix up first argument.
399 2009-02-15 Ulrich Drepper <drepper@redhat.com>
401 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
402 (GET_NPROCS_PARSER): Change parameters and use next_line.
403 (__get_nprocs): Rewrite to not use stdio routines.
404 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
405 Change parameters and use next_line.
407 2009-02-13 Ulrich Drepper <drepper@redhat.com>
410 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
411 Change mempool_alloc prototype.
412 * nscd/mem.c (gc): Don't handle mem_in_flight.
413 (mempool_alloc): Third parameter now only indicates whether this is the
414 first call (to allocate data) or not. If it is, get db rdlock.
415 Release it on error. Don't handle mem_in_flight.
416 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
417 Adjust third parameter of mempool_alloc calls.
418 Nothing to do here in case mempool_alloc fails.
419 Avoid local variable shadowing parameter. No need to get db rdlock
420 before calling cache_add.
421 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
422 no mem_in_flight array anymore.
423 * nscd/connections.c: Remove definition and handling of mem_in_flight.
424 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
425 mempool_alloc calls. Mark he parameter as const. Nothing to do here
426 in case mempool_alloc fails. No need to get db rdlock before calling
428 * nscd/hstcache.c (cache_addhst): Likewise.
429 * nscd/initgrcache.c (addinitgroupsX): Likewise.
430 * nscd/servicescache.c (cache_addserv): Likewise.
431 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
433 2009-02-11 Ulrich Drepper <drepper@redhat.com>
435 * po/lt.po: Update from translation team.
437 2009-02-10 Ulrich Drepper <drepper@redhat.com>
439 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
440 defined, allow additional data to be added using the optional
441 MORE_ELF_HEADER_DATA macro.
442 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
443 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
445 2009-02-08 Ulrich Drepper <drepper@redhat.com>
447 * include/atomic.h: Define catomic_and if not already defined.
448 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
449 * sysdeps/i386/i486/bits/atomic.h: Likewise.
451 2009-02-07 Ulrich Drepper <drepper@redhat.com>
453 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
455 (_int_realloc): Likewise. Third argument is now padded size
456 All _int_* functions are now static.
458 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
459 * malloc/arena.c: Likewise.
460 * include/malloc.h: Remove now unnecessary declarations of the _int_*
463 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
466 * malloc/malloc.c: Add branch prediction for use of the hooks.
468 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
470 2009-02-06 Ulrich Drepper <drepper@redhat.com>
473 * bits/confname.h: Add SUSv7 macros for getconf environments.
474 * bits/environments.h: Likewise.
475 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
476 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
477 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
478 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
479 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
480 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
481 * posix/getconf.c: Likewise.
482 * posix/sysconf.c: Likewise.
483 * sysdeps/posix/sysconf.c: Likewise.
484 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
487 2009-01-16 Petr Baudis <pasky@suse.cz>
490 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
491 even if we currently have zero nscount.
493 2009-02-06 Ulrich Drepper <drepper@redhat.com>
496 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
497 the input line is too long.
499 * po/Makefile (libc.pot): Add f_print as function taking c-format
502 * debug/xtrace.sh: Unify translatable messages.
503 * elf/ldd.bash.in: Likewise.
504 * elf/sprof.c: Likewise.
505 * locale/programs/locale.c: Likewise.
506 * malloc/memusage.sh: Likewise.
507 * nss/getent.c: Likewise.
509 2009-02-06 Joseph Myers <joseph@codesourcery.com>
511 * debug/pcprofiledump.c (print_version,
512 argp_program_version_hook): New function.
513 * elf/ldconfig.c (more_help): New function.
515 * elf/sln.c (usage): New function.
516 (main): Support --help and --version.
517 * malloc/memusagestat.c (print_version): New function.
518 (argp_program_version_hook): New variable.
519 * nscd/nscd.c (more_help): New function.
521 * posix/getconf.c (main): Send --version output to stdout.
523 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
524 arguments. All callers changed.
525 (print_version): New function.
526 (parseargs): Support --help and --version.
527 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
529 (print_version): New function.
530 (main): Use getopt_long. Support --help and --version.
531 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
534 2009-02-06 Ulrich Drepper <drepper@redhat.com>
536 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
537 (update_data): Fix handling of wrapping back
538 to the beginning of the buffer.
541 * stdio-common/psignal.c (psignal): Fix test for empty string.
543 2009-02-05 Ulrich Drepper <drepper@redhat.com>
545 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
546 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
547 move _null_auth to .rodata.
549 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
552 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
554 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
555 today than when the original code was written. Use larger
556 buffers. This also makes it unnecessary to have stat information,
557 if this causes extra efforts.
558 (__opendir): In case O_DIRECTORY works, don't call fstat just for
561 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
563 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
565 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
566 * sysdeps/sh/sh4/__longjmp.S: Likewise.
567 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
568 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
569 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
570 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
572 2009-02-04 Ulrich Drepper <drepper@redhat.com>
574 * po/ru.po: Update from translation team.
576 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
578 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
579 Add _tid slot to maintain consistency with kernel.
581 2009-02-04 Ulrich Drepper <drepper@redhat.com>
583 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
584 incomplete characters at end of input buffer.
585 * libio/Makefile (tests): Add tst-fgetwc.
586 * libio/tst-fgetwc.c: New file.
587 * libio/tst-fgetwc.input: New file.
589 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
591 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
593 2009-02-02 Ulrich Drepper <drepper@redhat.com>
596 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
597 *OUTBUFSTART unless the whole output fit into the buffer.
598 * iconv/Makefile (tests): Add tst-iconv4.
599 * iconv/tst-iconv4.c: New file.
601 2009-02-01 Ulrich Drepper <drepper@redhat.com>
603 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
604 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
606 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
608 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
609 newer linker scripts.
611 2009-01-30 Ulrich Drepper <drepper@redhat.com>
614 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
615 inotify_rm_watch should have type int.
617 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
619 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
620 Make aligned_restore_vmx a local symbol.
621 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
624 2009-01-30 Andreas Jaeger <aj@suse.de>
626 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
627 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
628 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
629 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
630 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
631 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
632 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
634 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
637 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
638 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
640 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
643 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
644 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
645 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
646 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
648 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
650 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
651 memcpy instead of memcmp.
652 (_dl_setup_pointer_guard): Likewise.
654 2009-01-30 Ulrich Drepper <drepper@redhat.com>
656 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
657 manipulated brk, use malloc_printerr.
658 * misc/sbrk.c (__sbrk): Better error handling for nonsense
661 2009-01-30 Jakub Jelinek <jakub@redhat.com>
663 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
664 rindex): For C++ add inlines so that they can be recognized as
666 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
668 2009-01-29 Ulrich Drepper <drepper@redhat.com>
669 Jakub Jelinek <jakub@redhat.com>
671 * string/string.h: Define correct C++ prototypes for gcc 4.4.
672 * wcsmbs/wchar.h: Likewise.
674 2009-01-29 Ulrich Drepper <drepper@redhat.com>
676 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
677 (stackinfo_sub_sp): Define.
679 2009-01-28 Ulrich Drepper <drepper@redhat.com>
682 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
683 * include/alloca.h (alloca_account): Define.
684 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
685 (stackinfo_sub_sp): Define.
687 * nscd/connections.c (nscd_init): If database file access fails
688 check whether this is due to permission problems and bail in that
692 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
693 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
695 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
697 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
698 Add "t" to clobber list.
699 (INTERNAL_SYSCALL_NCS): Likewise.
701 2009-01-28 Ulrich Drepper <drepper@redhat.com>
703 * nss/getent.c (print_networks): Don't print comma between aliases.
705 2009-01-23 Ulrich Drepper <drepper@redhat.com>
707 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
709 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
711 * misc/Makefile (tests): Add bug-hsearch1.
712 * misc/bug-hsearch1.c: New file.
714 2009-01-22 Roland McGrath <roland@redhat.com>
716 * Makeconfig (%.v.i): Strip trailing # comments,
717 not only whole-line comments.
719 2009-01-10 Ulrich Drepper <drepper@redhat.com>
721 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
722 one parameter. If non-NULL use it to initialize return value.
723 (_dl_setup_pointer_guard): New function.
724 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
725 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
726 * elf/rtld.c (security_init): Pass _dl_random to
727 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
729 * elf/dl-sysdep.c (_dl_random): New variable.
730 (_dl_sysdep_start): Handle AT_RANDOM.
731 (_dl_show_auxv): Likewise.
732 * elf/dl-support.c (_dl_random): New variable.
733 (_dl_aux_init): Handle AT_RANDOM.
734 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
735 to _dl_setup_stack_chk_guard.
737 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
739 2009-01-10 Roland McGrath <roland@redhat.com>
741 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
743 2009-01-08 Ulrich Drepper <drepper@redhat.com>
745 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
748 * nss/nss_files/files-parse.c (strtou32): New function.
749 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
750 across 32-bit and 64-bit platforms.
751 (INT_FIELD_MAYBE_NULL): Likewise.
753 2009-01-08 Jakub Jelinek <jakub@redhat.com>
756 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
757 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
758 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
761 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
764 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
765 being NULL also if there are no backreferences.
766 * posix/rxspencer/tests: Add testcases.
768 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
771 * posix/bug-regex17.c: Add testcases.
772 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
775 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
777 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
778 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
779 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
780 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
782 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
783 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
784 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
785 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
786 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
787 * sysdeps/unix/sysv/linux/s390/Versions: New file.
789 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
791 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
792 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
793 re_string_skip_chars, re_string_reconstruct): Likewise.
794 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
796 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
798 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
799 adjust the buffer alignment.
801 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
803 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
804 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
807 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
808 flavor to description only when flavor is not NULL.
810 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
811 mutex after SIGIO/SIGURG lookup loop.
813 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
815 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
817 2009-01-03 Ulrich Drepper <drepper@redhat.com>
819 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
822 2009-01-02 Ulrich Drepper <drepper@redhat.com>
824 * sysdeps/unix/sysv/linux/kernel-features.h
825 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
827 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
828 if no output is written.
830 * version.h: Bump to 2.10 development.
832 * posix/getconf.c: Update copyright year.
833 * nss/getent.c: Likewise.
834 * iconv/iconvconfig.c: Likewise.
835 * iconv/iconv_prog.c: Likewise.
836 * elf/ldconfig.c: Likewise.
837 * catgets/gencat.c: Likewise.
838 * csu/version.c: Likewise.
839 * elf/ldd.bash.in: Likewise.
840 * elf/sprof.c (print_version): Likewise.
841 * locale/programs/locale.c: Likewise.
842 * locale/programs/localedef.c: Likewise.
843 * nscd/nscd.c (print_version): Likewise.
844 * debug/xtrace.sh: Likewise.
845 * malloc/memusage.sh: Likewise.
846 * malloc/mtrace.pl: Likewise.
847 * debug/catchsegv.sh: Likewise.
849 2008-12-29 Mike Frysinger <vapier@gentoo.org>
851 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
854 2008-12-29 Ulrich Drepper <drepper@redhat.com>
856 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
857 gethostbyname4_r function call succeeded, just leave the loop.
860 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
862 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
863 * wctype/Makefile (tests): Add bug-wctypeh.
864 * wctype/bug-wctypeh.c: New file.
866 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
867 LOCALDOMAIN is defined.
868 * nscd/nscd_getai.c (__nscd_getai): Likewise.
870 * sysdeps/x86_64/bits/select.h: New file.
872 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
874 2008-12-21 Bruno Haible <bruno@clisp.org>
877 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
878 if no output is written.
880 2008-12-13 Klaus Dittrich <kladit@arcor.de>
882 * login/utmp_file.c (pututline_file): Replace call to dup2 with
883 libc internal symbol __dup2 to avoid access through the PLT.
885 2008-12-08 Ulrich Drepper <drepper@redhat.com>
888 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
889 available only for __USE_GNU.
891 * inet/Makefile (tests): Add tst-getni2.
892 * inet/tst-getni2.c: New file.
895 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
896 NULL when NI_NAMEREQD is set.
897 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
898 * inet/Makefile (tests): Add tst-getni1.
899 * inet/tst-getni1.c: New file.
901 2008-12-03 Petr Baudis <pasky@suse.cz>
904 * nscd/connections.c (invalidate_cache): Use prune_run_lock
905 instead of prune_lock.
906 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
907 * nscd/nscd.h (database_dyn): Add prune_run_cache.
909 2008-12-07 Ulrich Drepper <drepper@redhat.com>
911 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
914 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
917 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
918 after reading name server list.
921 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
922 handling for host name aliases.
924 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
926 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
927 instead of doing things manually.
929 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
931 * posix/regex_internal.h (build_wcs_upper_buffer):
932 Return type is reg_error_t.
934 2008-12-05 Ulrich Drepper <drepper@redhat.com>
936 * posix/globtest.sh: Use mktemp to create temporary file and
939 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
941 (__CPU_CLR_S): Likewise.
942 (__CPU_ISSET_S): Likewise.
944 2008-12-05 Joseph Myers <joseph@codesourcery.com>
945 Ulrich Drepper <drepper@redhat.com>
947 * scripts/firstversion.awk: Use custom comparison function to compare
949 * scripts/versions.awk: Use sort invocation which can handle
950 multi-digit sub-version numbers.
952 2008-12-04 Ulrich Drepper <drepper@redhat.com>
954 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
955 * locale/iso-639.def: Add Chhattisgarhi entry.
957 2008-12-02 Ulrich Drepper <drepper@redhat.com>
959 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
961 (_nss_dns_gethostbyname4_r): Likewise.
962 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
963 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
964 gethostbyname4_r, we don't have a separate IPv6 status, so copy
965 the no_data variable.
967 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
968 information at the correct index.
970 * socket/sys/socket.h: Declare accept4.
971 * socket/accept4.c: New file.
972 * sysdeps/unix/sysv/linux/accept4.c: New file.
973 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
974 * socket/Makefile (routines): Add accept4.
975 * socket/Versions: Export accept4 with version GLIBC_2.10.
976 * socket/paccept.c: Removed.
977 * sysdeps/unix/sysv/linux/paccept.c: Removed.
978 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
979 * Versions.def: Define GLIBC_2.10 for libc.
980 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
982 * nscd/connections.c: Use accept4.
984 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
986 2008-12-01 Ulrich Drepper <drepper@redhat.com>
988 * resolv/res_send.c (send_dg): Create sockets with non-blocking
991 * stdlib/setenv.c (unsetenv): Don't search environment if it does
993 * stdlib/Makefile (tests): Add tst-unsetenv1.
994 * stdlib/tst-unsetenv1.c: New file.
996 2008-11-29 Ulrich Drepper <drepper@redhat.com>
998 * login/utmp_file.c (file_writable): New variable.
999 (setutent_file): Don't try to open file for writing.
1000 (pututline_file): Before writing, make descriptor writable if
1003 2008-11-26 Ulrich Drepper <drepper@redhat.com>
1005 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1006 to IPv4 or IPv6 if an interface has been found.
1008 2008-11-26 Roland McGrath <roland@redhat.com>
1010 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1011 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1013 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1014 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1015 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1017 * elf/elf.h (NT_386_IOPERM): New macro.
1018 (NT_PPC_VSX): New macro.
1020 2008-11-25 Roland McGrath <roland@redhat.com>
1022 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1023 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1024 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1025 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1026 Subdirectories moved to ports repository.
1027 * configure.in (base_machine): Remove alpha case.
1029 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
1031 * sysdeps/mach/strerror_l.c: New file.
1033 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
1036 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1037 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1039 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1040 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1041 (relax_fenv_state): Same as above.
1042 (FPSCR_29): Reserve bit in ISA 2.05.
1043 (FPSCR_NI): Provide define for compat.
1044 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1046 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1048 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
1049 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1050 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1051 access to hwcap to account for hwcap size increase to uint64_t.
1052 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1054 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1055 (*setcontext): Likewise.
1056 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1058 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1060 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1061 (*setcontext): dynamically select mtfsf insn based on
1062 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1063 increase to uint64_t.
1064 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1065 (*swapcontext): dynamically select mtfsf insn based on
1066 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1067 increase to uint64_t.
1068 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1070 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1072 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1073 (*setcontext): dynamically select mtfsf insn based on
1074 PPC_FEATURE_HAS_DFP.
1075 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1076 (*swapcontext): dynamically select mtfsf insn based on
1077 PPC_FEATURE_HAS_DFP.
1079 2008-11-13 Ulrich Drepper <drepper@redhat.com>
1081 * version.h: Bump for 2.9 release.
1082 * include/features.h (__GLIBC_MINOR__): Bump to 9.
1085 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
1086 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
1089 2008-11-11 Ulrich Drepper <drepper@redhat.com>
1092 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
1093 unknown request types for now.
1095 2008-11-11 Roland McGrath <roland@redhat.com>
1097 * sysdeps/x86_64/configure: New file.
1099 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
1100 * configure: Regenerated.
1102 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1104 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
1105 correct instruction to remove the stack frame.
1107 2008-11-03 Michael Matz <matz@suse.de>
1109 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
1110 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
1112 2008-11-07 Jakub Jelinek <jakub@redhat.com>
1114 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
1117 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
1118 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
1119 of the thread variable instead of void *.
1120 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
1121 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
1122 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1123 __libc_tsd_define arguments.
1124 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
1125 __libc_tsd_address arguments. Remove union hack.
1126 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
1127 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
1128 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
1129 Adjust __libc_tsd_{set,get} arguments.
1130 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1131 __libc_tsd_define arguments.
1132 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
1134 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1135 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
1136 (LOCALE): Adjust __libc_tsd_define arguments.
1137 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
1139 (LOCALE): Adjust __libc_tsd_define arguments.
1140 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
1142 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
1145 2008-11-02 Ulrich Drepper <drepper@redhat.com>
1147 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
1148 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1150 2008-11-01 Ulrich Drepper <drepper@redhat.com>
1153 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
1155 2008-10-24 Joseph Myers <joseph@codesourcery.com>
1156 Ulrich Drepper <drepper@redhat.com>
1158 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
1159 definition for GCC 3.1 and later.
1161 2008-10-31 Jakub Jelinek <jakub@redhat.com>
1163 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
1164 refetch dtv, as it might have changed.
1165 * elf/Makefile: Add rules to build and run tst-tls18.
1166 * elf/tst-tls18.c: New test.
1167 * elf/tst-tlsmod18a.c: New file.
1169 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
1172 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
1174 2008-10-31 Ulrich Drepper <drepper@redhat.com>
1177 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
1180 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
1181 Fix length of copy operation.
1183 2008-10-02 Pierre Habouzit <madcoder@debian.org>
1185 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
1186 and fix its calling convention.
1188 2008-10-07 Andreas Schwab <schwab@suse.de>
1191 * resolv/res_send.c (send_vc): Fix last change.
1192 (send_dg): Align here as well.
1194 2008-10-31 Ulrich Drepper <drepper@redhat.com>
1196 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
1197 return value in case rlimit is RLIM_INFINITY.
1200 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
1202 * resource/Makefile (tests): Add bug-ulimit1.
1203 * resource/bug-ulimit1.c: New file.
1206 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
1207 without dot. Properly terminate the string with a null byte.
1208 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
1211 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
1213 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
1217 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
1219 2008-10-30 Ulrich Drepper <drepper@redhat.com>
1221 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
1222 abort if there is no initgroups_dyn function.
1224 * resolv/res_send.c (send_dg): On timeout, only return nonzero
1225 result if any of the queries really provided an answer.
1227 2008-10-28 Ulrich Drepper <drepper@redhat.com>
1229 * po/lt.po: Update from translation team.
1231 2008-10-26 Ulrich Drepper <drepper@redhat.com>
1233 * po/id.po: Update from translation team.
1235 2008-10-24 Ulrich Drepper <drepper@redhat.com>
1237 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
1238 Fix tests for existence of second reply.
1240 2008-10-23 Ulrich Drepper <drepper@redhat.com>
1242 * po/id.po: New file.
1243 Contributed by the Indonesian translation team.
1245 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
1247 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
1250 2008-10-17 Jakub Jelinek <jakub@redhat.com>
1252 * elf/Makefile: Add rules to build and run tst-tls17.
1253 * elf/tst-tls17.c: New test.
1254 * elf/tst-tlsmod17a.c: New file.
1255 * elf/tst-tlsmod17b.c: Likewise.
1257 2008-10-17 Ulrich Drepper <drepper@redhat.com>
1259 * stdlib/divmod_1.c: Use correct type for dummy variable.
1260 * stdlib/mod_1.c: Likewise.
1262 2008-10-16 Ulrich Drepper <drepper@redhat.com>
1264 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
1266 2008-10-16 Jakub Jelinek <jakub@redhat.com>
1268 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
1269 __nonnull order for C++.
1270 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
1271 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
1273 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
1275 * stdlib/longlong.h: Update from GCC.
1277 2008-10-09 Jakub Jelinek <jakub@redhat.com>
1278 David S. Miller <davem@davemloft.net>
1280 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
1281 make sure any registers used with 64-bit 'branch-on-register'
1282 instructions have their top 32-bits clear.
1283 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
1284 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
1286 2008-09-18 Andreas Schwab <schwab@suse.de>
1289 * resolv/res_send.c (send_vc): Fix use of unaligned address.
1290 Properly handle partial reads.
1292 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
1294 * elf/elf.h (STO_MIPS_PLT): New.
1296 (R_MIPS_JUMP_SLOT): New.
1297 (R_MIPS_NUM): Redefine to 128.
1298 (DT_MIPS_PLTGOT): New.
1299 (DT_MIPS_RWPLT): New.
1300 (DT_MIPS_NUM): Redefine to 0x35.
1302 2008-10-01 Ulrich Drepper <drepper@redhat.com>
1304 * timezone/africa: Update from tzdata2008f.
1305 * timezone/asia: Likewise.
1306 * timezone/australasia: Likewise.
1307 * timezone/europe: Likewise.
1308 * timezone/leapseconds: Likewise.
1309 * timezone/northamerica: Likewise.
1310 * timezone/southamerica: Likewise.
1311 * timezone/zone.tab: Likewise.
1313 2008-09-30 Ulrich Drepper <drepper@redhat.com>
1315 * nscd/connections.c: Disable use of paccept for now.
1317 2008-09-29 Ulrich Drepper <drepper@redhat.com>
1319 * socket/Versions: Remove paccept export for GLIBC_2.9.
1320 * socket/Makefile (routines): Remove paccept.
1321 * socket/sys/socket.h: Remove paccept declaration.
1323 * po/sv.po: Update from translation team.
1325 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
1327 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
1328 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
1330 2008-09-16 Ulrich Drepper <drepper@redhat.com>
1332 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
1333 Patch by Olivier Fourdan <ofourdan@redhat.com>.
1335 2008-09-15 Ulrich Drepper <drepper@redhat.com>
1337 * sunrpc/rpc/svc.h: Declare svcfd_create.
1338 Patch by Michael Solberg <msolberg@redhat.com>.
1340 2008-09-12 Flavio Leitner <fleitner@redhat.com>
1341 Ulrich Drepper <drepper@redhat.com>
1343 * malloc/malloc.c (public_vALLOc): Try other arenas in case
1345 (public_pVALLOc): Likewise.
1347 2008-09-02 Andreas Jaeger <aj@suse.de>
1349 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
1352 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
1355 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
1357 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
1359 * Makefile (check-data): Check data directory in add-ons.
1360 * elf/Makefile (check-data): Likewise.
1362 2008-08-18 Roland McGrath <roland@redhat.com>
1364 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
1365 * configure: Regenerated.
1366 * config.make.in (cflags-cpu): New substituted variable.
1367 (with-cpu): Variable removed.
1368 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
1370 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
1373 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
1374 __signbitl definition and __LONG_DOUBLE_128__ guard from:
1375 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
1376 redundant. Functions which call floating point assembler operations
1377 should go into a sysdeps powerpc/fpu directory.
1379 2008-08-15 Ulrich Drepper <drepper@redhat.com>
1381 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
1382 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1384 2008-08-14 Ulrich Drepper <drepper@redhat.com>
1386 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
1388 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
1389 change related to AT_EXECFN. We cannot use that string.
1390 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
1392 * elf/dl-support.c: Remove _dl_execfn variable.
1393 (_dl_aux_init): Remove handling of AT_EXECFN.
1394 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
1395 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
1397 2008-08-13 Ulrich Drepper <drepper@redhat.com>
1400 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
1401 byte gets added to writes and seeks from the end use the length of
1402 the buffer and not the currently terminating NUL byte.
1405 * login/utmp_file.c (getutent_r_file): Take additional parameter.
1406 Set to true if locking failed.
1407 (getutid_r_file): Adjust caller.
1408 (pututline_file): Likewise. Return NULL in this case.
1409 Patch mostly by halesh.s@gmail.com.
1411 2008-08-12 Ulrich Drepper <drepper@redhat.com>
1414 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
1416 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
1418 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
1421 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
1422 macro since it is now available in elf/dynamic-link.h.
1424 2008-08-12 Roland McGrath <roland@frob.com>
1426 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
1427 in case used outside of libc.
1428 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
1430 2008-08-11 Ulrich Drepper <drepper@redhat.com>
1432 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
1433 directly instead of going through dn_comp.
1435 2008-08-11 Aurelien Jarno <aurel32@debian.org>
1437 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1438 Fix asm constraints.
1440 2008-08-07 Ulrich Drepper <drepper@redhat.com>
1443 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
1444 (IPV6_PMTUDISC_PROBE): Likewise.
1446 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
1449 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
1451 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
1452 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1455 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
1456 Added the members 'vsx' and 'arch_2_06'.
1457 (_dl_powerpc_platforms): Add the member 'power7'.
1458 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
1459 to reflect the changes required by VSX and ISA 2.06.
1460 Modify _DL_PLATFORMS_COUNT to reflect the addition of
1462 Defined PPC_PLATFORM_POWER7.
1463 (_dl_string_platform): Add support for POWER7.
1464 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
1465 capability and ISA 2.06.
1467 2008-08-07 Ulrich Drepper <drepper@redhat.com>
1470 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
1471 macro to detect use of 128 bit long double.
1472 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
1474 2008-08-05 Ulrich Drepper <drepper@redhat.com>
1476 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
1479 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
1481 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1482 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1484 2008-08-03 Ulrich Drepper <drepper@redhat.com>
1486 * nscd/connections.c (main_loop_poll): Pass a buffer which is
1487 guaranteed to be large enough to read inotify event. Ignore
1488 EAGAIN error. Better error message. Add branch predicition.
1489 (main_loop_epoll): Likewise.
1491 2008-08-02 Roland McGrath <roland@frob.com>
1493 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1494 Add memory clobbers.
1496 2008-08-02 Ulrich Drepper <drepper@redhat.com>
1498 * manual/arith.texi: Avoid @strong{Note:}.
1499 * manual/creature.texi: Likewise.
1500 * manual/filesys.texi: Likewise.
1501 * manual/math.texi: Likewise.
1502 * manual/memory.texi: Likewise.
1503 * manual/resource.texi: Likewise.
1504 * manual/syslog.texi: Likewise.
1505 * manual/time.texi: Likewise.
1507 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
1510 2008-08-01 Ulrich Drepper <drepper@redhat.com>
1512 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
1513 new epoll_create1 interface.
1514 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1515 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
1516 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
1518 * include/arpa/nameser.h (NS_GET16): Use const pointer.
1519 (NS_GET32): Likewise.
1521 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
1524 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
1525 use the AT_EXECFN value if it is no absolute path.
1526 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
1529 * Versions.def: Add GLIBC_2.9 to libresolv.
1530 * include/resolv.h: Remove hidden proto declarations for __ns_*
1531 functions. Add them for __dn_count_labels and __p_secstodate.
1532 * include/arpa/nameser.h: Add a number of hidden proto declarations.
1533 Define ns_msg_getflags macro here.
1534 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
1536 * resolv/Versions: Export functions from <arpa/nameser.h> from
1537 libresolv in version GLIBC_2.9.
1538 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
1540 * resolv/ns_netint.c: Likewise.
1541 * resolv/ns_parse.c: Likewise.
1542 * resolv/ns_print.c: Likewise.
1543 * resolv/ns_samedomain.c: Likewise.
1544 * resolv/ns_ttl.c: Likewise.
1545 * resolv/arpa/nameser_compat.h: Likewise.
1546 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
1548 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
1549 instead of ns_get16.
1550 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
1551 __ns_get32 instead of ns_get16 and ns_get32 respectively.
1552 (gaih_getanswer_slice): Likewise.
1553 * resolv/Makefile (libresolv-routines): Add ns_date.
1554 * resolv/ns_date.c: New file.
1556 * elf/Makefile (check-localplt.out): Also check libresolv and
1559 2008-07-31 Ulrich Drepper <drepper@redhat.com>
1561 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1564 2008-07-30 Ulrich Drepper <drepper@redhat.com>
1566 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
1567 buffer passed to NSS functions.
1569 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
1571 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
1574 * misc/syslog.c (openlog_internal): Fix compile problem.
1576 2008-07-28 Roland McGrath <roland@redhat.com>
1578 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
1580 2008-07-28 Ulrich Drepper <drepper@redhat.com>
1582 * io/ftw.c (add_object): Remove inline to avoid warning.
1584 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
1586 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
1587 Use it instead of locally defined resplen2 variable.
1588 (res_nsend): Adjust for __libc_res_nsend interface change.
1589 (send_vc): Initialize *resplen2 if necessary. Read length of
1590 package into an appropriately aligned variable. Store converted length
1591 in new variable and use it appropriately.
1592 Add branch prediction help.
1593 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
1594 and pass it on to __libc_res_nsend. Adjust all callers.
1595 (__libc_res_nsearch): Likewise.
1596 (__libc_res_nqeurydomain): Likewise.
1597 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
1599 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
1600 Define resplen2 variable and pass it to __libc_res_nsearch and then
1602 (getanswer_r): In case of incorrect DNS data don't overread buffer.
1603 Add branch prediction.
1604 (gaih_getanswer_slice): Likewise. Check for invalid data types.
1605 (gaih_getanswer): Don't decode second slice if first one failed due
1606 to a too small buffer. Don't let not found status of second
1607 decoder shadow results of the first.
1608 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
1609 and __libc_res_nquery interface changes
1610 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
1611 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
1612 __libc_res_nsearch, and __libc_res_nsend.
1613 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
1615 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
1616 __libc_res_nsearch interface changes.
1618 2008-07-27 Ulrich Drepper <drepper@redhat.com>
1620 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
1622 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
1623 file descriptors with close-on-exec set.
1624 (exec_comm_child): Fix the case where the write end of the pipe is
1625 STDOUT_FILENO already. In case it is, clear close-on-exec.
1627 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
1628 * io/pipe2.c: Likewise.
1629 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
1630 instead of __ASSUME_PACCEPT.
1631 * include/unistd.h: Declare __have_pipe2.
1632 * libio/iopopen.c: Implement "e" flag.
1633 * libio/Makefile (tests): Add tst-popen1.
1634 * libio/tst-popen1.c: New file.
1636 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
1637 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1639 2008-07-26 Ulrich Drepper <drepper@redhat.com>
1642 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
1643 success call of _IO_SEEKOFF or calls which failed because the
1644 descriptor is for a pipe.
1646 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
1649 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
1651 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
1652 F_SETFD use if we know fopen set the flag.
1654 * login/utmp_file.c (setutent_file): Minor optimization in case
1655 O_CLOEXEC is available.
1657 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
1659 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
1660 * elf/Makefile: Use pie-ccflag variable.
1661 * nscd/Makefile: Likewise.
1662 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
1664 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
1667 * Versions.def: Add GLIBC_2.9 version tag for libutil.
1668 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
1669 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
1670 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
1671 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
1672 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
1673 utmp32, utmpx32 and login32.
1674 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
1675 versions of struct utmp functions to libc and libutil.
1676 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
1677 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
1678 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
1679 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
1680 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
1681 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
1682 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
1683 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1684 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1685 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1686 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1687 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1688 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1689 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1690 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1691 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1692 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1693 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1694 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1695 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1696 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1697 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1699 2008-07-26 Ulrich Drepper <drepper@redhat.com>
1701 * scripts/gen-as-const.awk: Generate more widely usable code by
1702 using 64-bit arithmetic.
1704 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1705 the same treatment as narrow output code in last patch.
1707 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1710 * elf/dl-load.c (local_strdup): Remove inline.
1711 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1712 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1715 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1717 2008-07-25 Ulrich Drepper <drepper@redhat.com>
1719 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1720 the new syscalls, too.
1722 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1723 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1726 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1727 parameter for end of buffer. If temporary copy is too large use
1729 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1731 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
1732 string rewrite when allocating buffer.
1734 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1737 * nscd/connections.c (nscd_init): Clean up fcntl call.
1739 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1740 SOCK_NONBLOCK if possible.
1742 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1743 SOCK_CLOEXEC if available.
1745 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1746 __libc_clntudp_bufcreate_internal.
1747 * include/sys/socket.h: Declare __have_sock_cloexec.
1748 * socket/Makefile (aux): Add have_sock_cloexec.
1749 * socket/have_sock_cloexec.c: New file.
1750 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1751 __libc_clntudp_bufcreate.
1752 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1753 which takes an additional parameter. Create socket with non-blocking
1754 mode and close-on-exec flag set, if wanted.
1755 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1756 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1757 instead of clntudp_create. The socket has already the close-on-exec
1758 flag set if SOCK_CLOEXEC is defined.
1760 2008-07-24 Ulrich Drepper <drepper@redhat.com>
1762 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1763 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1765 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1766 non-blocking mode by using socket, paccept, and inotify_init1.
1768 * Versions.def (glibc): Add GLIBC_2.9.
1769 * io/Makefile (routines): Add dup3 and pipe2.
1770 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1771 * io/dup3.c: New file.
1772 * io/pipe2.c: New file.
1773 * posix/unistd.h: Declare dup3 and pipe2.
1774 * socket/Makefile (routines): Add paccept.
1775 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1776 * socket/paccept.c: New file.
1777 * socket/sys/socket.h: Declare paccept.
1778 * sysdeps/unix/syscalls.list: Add entry for dup3.
1779 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1780 epoll_create2 and inotify_init1.
1781 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1782 * sysdeps/unix/sysv/linux/paccept.c: New file.
1783 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1785 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1786 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1787 inotify_init1, and pipe2 entries.
1788 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1789 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1790 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1791 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1792 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1793 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1795 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1796 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1797 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1798 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1799 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1800 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1801 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1802 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1803 EPOLL_NONBLOCK. Declare epoll_create2.
1804 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1806 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1807 IN_NONBLOCK. Declare inotify_init1.
1808 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1810 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1813 * elf/elf.h: Define AT_EXECFN.
1814 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1816 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1817 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
1818 if __ASSUME_AT_EXECFN is defined.
1819 (_dl_aux_init): Handle AT_EXECFN.
1820 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1822 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1823 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1824 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1825 _dl_execfn if available and avoid compatibility code if
1826 __ASSUME_AT_EXECFN is defined.
1828 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1829 _dl_discover_osversion only for older kernels.
1831 2008-07-22 Roland McGrath <roland@frob.com>
1833 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1835 2008-07-21 Roland McGrath <roland@frob.com>
1837 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1838 returned too much data out of line.
1840 2008-07-20 Ulrich Drepper <drepper@redhat.com>
1842 * locale/setlocale.c (setname): Remove inline to avoid compiler
1846 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1848 2008-07-15 Ulrich Drepper <drepper@redhat.com>
1850 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1851 doesn't manage to write anything, fail.
1853 * malloc/hooks.c (__malloc_check_init): Remove printf.
1855 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1857 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1859 2008-07-12 Ulrich Drepper <drepper@redhat.com>
1861 * nscd/connections.c (main_loop_poll): Fix handling of read errors
1863 (main_loop_epoll): Likewise.
1865 2008-07-09 Ulrich Drepper <drepper@redhat.com>
1867 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1869 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1870 if DEBUG is defined.
1872 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1873 query. Adjust buffer size computation for padding.
1875 2008-07-08 Ulrich Drepper <drepper@redhat.com>
1877 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1878 * stdio-common/tst-setvbuf1.c: New file.
1879 * stdio-common/tst-setvbuf1.expect: New file.
1882 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1883 when selecting fully-buffered stream.
1884 Patch by Wang Xin <wxinee@gmail.com>.
1886 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
1888 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1889 (__open_2): New function.
1890 (__open64_2): New alias to __open_2.
1891 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1892 (__openat_2): New function.
1893 (__openat64_2): New alias to __openat_2.
1895 2008-07-06 Ulrich Drepper <drepper@redhat.com>
1898 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1900 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
1902 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1903 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1904 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1906 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1907 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1908 * sysdeps/mach/hurd/send.c (__send): Likewise.
1909 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1910 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1912 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1914 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1915 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1916 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1917 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1918 * hurd/get-host.c (_hurd_get_host_config): Likewise.
1919 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1921 2008-06-27 Ulrich Drepper <drepper@redhat.com>
1924 * time/strptime_l.c: Don't clear s.era_cnt after successful match
1926 Patch by Petr Baudis.
1928 2008-06-26 Ulrich Drepper <drepper@redhat.com>
1930 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1931 Patch by Peter Jones <pjones@redhat.com>.
1933 2008-06-25 Ulrich Drepper <drepper@redhat.com>
1936 * stdlib/canonicalize.c (__realpath): readlink can write too much
1937 into the buffer on platforms without PATH_MAX.
1939 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
1942 * posix/tst-regex.c (main): Rename to...
1943 (do_test): ... this. Remove cmdline option processing.
1945 (TEST_FUNCTION): Define.
1946 (CMDLINE_OPTIONS): Define.
1948 2008-06-25 Ulrich Drepper <drepper@redhat.com>
1951 * configure.in: Add -Werror to -fstack-protector test to catch
1952 unsupported architectures.
1953 Patch by Gilles Esponasse <g.esp@free.fr>.
1955 2008-06-17 Joseph Myers <joseph@codesourcery.com>
1957 * stdlib/tst-setcontext.c: Set back_in_main before exit if
1958 getcontext returns ENOSYS.
1960 2008-06-18 Ulrich Drepper <drepper@redhat.com>
1962 * nscd/connections.c (main_loop_poll): Fix test for read error.
1963 (main_loop_epoll): Likewise.
1965 2008-06-13 Ulrich Drepper <drepper@redhat.com>
1967 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1968 better place so it is not called when nscd is used.
1970 * nscd/connections.c: Also recognize and handle changes to the
1971 resolver configuration file.
1973 2008-06-12 Ulrich Drepper <drepper@redhat.com>
1975 * time/strftime.c: Pass reference to tzset_called around to handle
1979 * time/strftime.c (__strftime_internal): Call tzset() only
1980 when printing timezone-dependent values.
1981 Based on a patch by Petr Baudis <pasky@suse.cz>.
1983 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1984 unconditionally use second gaih_getanswer_slice result.
1986 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1987 (getaddrinfo): RES must always be non-NULL.
1989 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1991 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1993 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1994 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1996 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1999 2008-06-12 Ulrich Drepper <drepper@redhat.com>
2001 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2003 * nscd/connections.c (inotify_fd): New variable.
2004 (nscd_init): Try to open an inotify descriptor.
2005 If successful, watch files for databases using inotify instead of
2006 having prune threads stat the files.
2007 (nscd_run_prune): Recognize clear_cache flag being set and call
2008 prune_cache appropriately.
2009 (main_loop_poll): Add inotify descriptor to wait set and handle the
2011 (main_loop_epoll): Likewise.
2012 * nscd/cache.c (prune_cache): Don't stat files for databases if
2014 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2015 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2017 * nscd/grpcache.c (cache_addgr): Correctly compute size of
2018 fixed-size portion of the record.
2019 * nscd/servicescache.c (cache_addserv): Likewise.
2020 * nscd/pwdcache.c (cache_addpw): Likewise.
2021 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2023 2008-06-11 Ulrich Drepper <drepper@redhat.com>
2025 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2026 out we don't use uninitialized memory.
2028 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2031 2008-06-10 Ulrich Drepper <drepper@redhat.com>
2033 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2034 ignore T_DNAME messages.
2035 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2037 2008-06-05 Jakub Jelinek <jakub@redhat.com>
2039 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2040 Avoid segfault if first GETC returns eof/'\0'/'\n'.
2042 2008-06-03 Jakub Jelinek <jakub@redhat.com>
2044 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2045 instead of portstr to nscd_getserv_r. Patch by
2046 Roman Kagan <rkagan@mail.ru>.
2048 2008-05-26 Jim Meyering <meyering@redhat.com>
2050 Remove more useless "if" tests before "free".
2051 * include/inline-hashtab.h (htab_delete): Likewise.
2052 * libio/freopen.c (freopen): Likewise.
2053 * libio/freopen64.c (freopen64): Likewise.
2054 * locale/programs/ld-collate.c (collate_read): Likewise.
2055 * misc/fstab.c (libc_freeres_fn): Likewise.
2056 * posix/glob.c (globfree): Likewise.
2058 2008-05-24 Ulrich Drepper <drepper@redhat.com>
2060 * string/Makefile (strop-tests): Add memmem.
2061 * string/test-memmem.c: New file.
2062 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2063 (test_init): Size buf1 according to BUF1PAGES.
2065 2008-05-24 Jakub Jelinek <jakub@redhat.com>
2067 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2068 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2069 (CFLAGS-scanf17.c): New.
2070 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2071 * stdio-common/scanf15.c (main): Likewise.
2072 * stdio-common/scanf16.c: New file.
2073 * stdio-common/scanf17.c: New file.
2075 2008-05-24 Ulrich Drepper <drepper@redhat.com>
2077 * resolv/res_send.c (send_dg): If we already have one of two
2078 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
2079 use the one answer insted of failing.
2081 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
2083 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
2084 being executed on PowerPC as the expected result exceeds IBM
2085 long double 128 __LDBL_MAX__.
2087 2008-05-21 Roland McGrath <roland@redhat.com>
2089 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
2091 * Makefile (check-data): Use $(abi-name) before other guesses.
2092 Look in $(add-ons) dirs before scripts/data/.
2093 * elf/Makefile (check-data): Likewise.
2095 * scripts/soversions.awk: Grok ABI line.
2096 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
2097 Emit definition for abi-name variable.
2099 2008-05-21 Ulrich Drepper <drepper@redhat.com>
2101 * string/endian.h: Define new fixed-size hto* and *toh macros only
2104 * iconvdata/Depend: Add localedata.
2106 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
2108 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
2110 2008-05-08 David S. Miller <davem@davemloft.net>
2112 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
2114 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2115 (__SYSCALL_CLOBBERS): Remove %g* registers.
2116 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2117 (__SYSCALL_CLOBBERS): Likewise.
2118 * scripts/data/localplt-sparc-linux-gnu.data: New file.
2119 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
2121 2008-05-21 Jakub Jelinek <jakub@redhat.com>
2123 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2124 (CALL_ERRNO_LOCATION): Define.
2125 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2126 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2127 (CALL_ERRNO_LOCATION): Define.
2128 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2129 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
2130 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
2132 2008-05-20 Ulrich Drepper <drepper@redhat.com>
2134 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
2137 2008-05-20 Jakub Jelinek <jakub@redhat.com>
2139 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
2140 (FIRST_FRAME_POINTER): Define.
2142 2008-05-09 David S. Miller <davem@davemloft.net>
2144 * sysdeps/sparc/sparc64/backtrace.c: New file.
2146 2008-05-14 David S. Miller <davem@davemloft.net>
2148 * sysdeps/sparc/machine-gmon.h: New file.
2149 * sysdeps/sparc/sparc-mcount.S: Likewise.
2150 * sysdeps/sparc/Makefile: Add sparc-mcount target to
2151 sysdep_routines in gmon directory.
2153 2008-05-19 Jakub Jelinek <jakub@redhat.com>
2155 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
2157 2008-05-19 Ulrich Drepper <drepper@redhat.com>
2159 * resolv/res_query.c (__libc_res_nquery): In case one of two
2160 answer was too short don't try to read that answer's header.
2162 * resolv/res_send.c (send_dg): In case of timeout and there are
2163 two queries and one has been answered, return value indicating
2166 2008-05-18 Ulrich Drepper <drepper@redhat.com>
2168 * nscd/cache.c (cache_add): Take additional parameter specifying
2169 whether this is in response of a cache refill. Check alignment
2170 of package data. Revamp waking of pruning thread.
2171 (prune_cache): Small optimization.
2172 * nscd/nscd.h: Adjust cache_add prototypes.
2173 * nscd/aicache.c: Adjust cache_add calls.
2174 * nscd/grpcache.c: Likewise.
2175 * nscd/hstcache.c: Likewise.
2176 * nscd/initgrcache.c: Likewise.
2177 * nscd/pwdcache.c: Likewise.
2178 * nscd/servicescache.c: Likewise.
2179 * nscd/connections.c (restart): Really disable cache use before
2180 exec attempt. If it fails, reenable cache.
2181 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
2182 time to max to be able to notice concurrent cache additions. Unlock
2183 prune_lock while performing gc. Afterwards compute wakeup time with
2184 current wakeup_time value in mind.
2186 2008-05-17 Ulrich Drepper <drepper@redhat.com>
2188 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
2190 * nscd/mem.c (gc): Correctly determine highest used array element
2193 * nscd/mem.c (markrange): Add assert to check entries are all
2194 aligned. Small cleanup in bitmap use.
2196 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
2197 blockoff of type nscd_ssize_t.
2198 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
2199 (mempoll_alloc): Record block offset and not address.
2201 * nscd/mem.c (gc): Fix test for stack overuse.
2203 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
2206 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
2207 entry is available, believe it.
2209 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
2210 no answers return NSS_STATUS_NOTFOUND.
2211 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
2212 buffer does not have any content.
2214 2008-05-16 Ulrich Drepper <drepper@redhat.com>
2216 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
2218 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
2219 lookup, don't assign canon unconditionally.
2221 2008-05-14 Ulrich Drepper <drepper@redhat.com>
2223 * string/Makefile (distribute): Add str-two-way.h.
2225 2008-03-29 Eric Blake <ebb9@byu.net>
2227 Rewrite string searches to O(n) rather than O(n^2).
2228 * string/str-two-way.h: New file. For linear fixed-allocation
2230 * string/memmem.c: New implementation.
2231 * string/strstr.c: New implementation.
2232 * string/strcasestr.c: New implementation.
2234 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
2236 * posix/regcomp.c (optimize_utf8): Add a note on why we test
2238 (calc_first): Initialize constraint field.
2239 (duplicate_node_closure): Use it instead of special casing ANCHORS.
2240 Use search_duplicated_node to avoid loops. Fix grammar.
2241 (duplicate_node): Merge constraint field for all node types.
2242 (calc_eclosure_iter): Look at constraint field for all node types.
2243 * posix/regex_internal.c (create_cd_newstate): Don't look at
2246 2008-05-14 Ulrich Drepper <drepper@redhat.com>
2249 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
2252 * string/endian.h: Add macros for fixed-size endian conversion.
2253 * bits/byteswap.h: Allow inclusion from <endian.h>.
2254 * sysdeps/i386/bits/byteswap.h: Likewise.
2255 * sysdeps/ia64/bits/byteswap.h: Likewise.
2256 * sysdeps/s390/bits/byteswap.h: Likewise.
2257 * sysdeps/x86_64/bits/byteswap.h: Likewise.
2258 * string/Makefile (tests): Add tst-endian.
2259 * string/tst-endian.c: New file.
2261 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
2262 Patch by Reuben Thomas.
2264 2008-05-14 Joseph Myers <joseph@codesourcery.com>
2266 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
2268 2008-05-14 Ulrich Drepper <drepper@redhat.com>
2270 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
2273 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
2275 (BODY for __gconv_transform_internal_ascii): Likewise.
2278 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
2279 to be treated like link-local addresses.
2280 (match_prefix): Don't treat IPv4 loopback address special when
2281 converting to v4 mapped addressed.
2283 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
2285 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
2286 * posix/tst-rfc3484-2.c: Likewise.
2287 * posix/tst-rfc3484-3.c: Likewise.
2289 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
2292 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
2294 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
2296 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
2298 2008-05-13 Ulrich Drepper <drepper@redhat.com>
2300 * po/lt.po: New file. From Lituanian translation team.
2302 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
2304 Introduce TLS descriptors for i386 and x86_64.
2305 * include/inline-hashtab.h: New file, copied from 2005's
2306 libiberty, with fix for memory leak imported afterwards by
2307 Glauber de Oliveira Costa.
2308 * elf/tlsdeschtab.h: New file.
2309 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
2310 (_dl_allocate_static_tls): ... here. Rearrange failure path.
2311 (CHECK_STATIC_TLS): Move to...
2312 * elf/dynamic-link.h: ... this file.
2313 (TRY_STATIC_TLS): New macro.
2314 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
2315 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
2316 R_386_TLS_DESC): Define.
2317 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
2319 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
2320 R_X86_64_TLSDESC): Define.
2321 (R_386_NUM, R_X86_64_NUM): Adjust.
2322 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
2323 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2324 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2325 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
2326 release tlsdesc_table.
2327 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
2328 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
2329 (elf_machine_rel): Handle R_386_TLS_DESC.
2330 (elf_machine_rela): Likewise.
2331 (elf_machine_lazy_rel): Likewise.
2332 (elf_machine_lazy_rela): Likewise.
2333 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
2334 * sysdeps/i386/dl-tlsdesc.S: New file.
2335 * sysdeps/i386/dl-tlsdesc.h: New file.
2336 * sysdeps/i386/tlsdesc.c: New file.
2337 * sysdeps/i386/tlsdesc.sym: New file.
2338 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
2340 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
2341 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2342 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2343 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
2344 release tlsdesc_table.
2345 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
2346 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
2347 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
2348 (elf_machine_rel): Handle R_X86_64_TLSDESC.
2349 (elf_machine_rela): Likewise.
2350 (elf_machine_lazy_rel): Likewise.
2351 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
2352 (__tls_get_addr): Do not declare for non-shared compiles.
2353 * sysdeps/x86_64/dl-tlsdesc.S: New file.
2354 * sysdeps/x86_64/dl-tlsdesc.h: New file.
2355 * sysdeps/x86_64/tlsdesc.c: New file.
2356 * sysdeps/x86_64/tlsdesc.sym: New file.
2357 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
2358 tlsdesc_table for both 32- and 64-bit structs.
2360 2008-05-11 Ulrich Drepper <drepper@redhat.com>
2362 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
2363 its own function. This reduces the frame setup costs and more.
2365 2008-02-11 Joseph Myers <joseph@codesourcery.com>
2368 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
2369 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
2371 2008-05-11 Ulrich Drepper <drepper@redhat.com>
2373 * io/openat.c (__openat_2): Also pass fd to __openat.
2374 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
2375 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
2377 * string/tester.c (test_memcmp): Add a few more tests.
2378 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
2380 2008-05-10 Ulrich Drepper <drepper@redhat.com>
2382 * nscd/cache.c (cache_add): Before returning with failure and this
2383 is the first use of the record, mark it as unusable.
2384 * nscd/aicache.c: Don't touch the dataset after cache_add returns
2385 reporting a failure.
2386 * nscd/grpcache.c: Likewise
2387 * nscd/hstcache.c: Likewise.
2388 * nscd/initgrcache.c: Likewise.
2389 * nscd/pwdcache.c: Likewise.
2390 * nscd/servicescache.c: Likewise.
2392 2008-05-10 Roland McGrath <roland@redhat.com>
2395 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
2397 2008-05-08 David S. Miller <davem@davemloft.net>
2399 * misc/truncate64.c (truncate64): Use __truncate not truncate.
2401 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
2402 (__ieee754_y0l): Likewise.
2403 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
2404 (__ieee754_y1l): Likewise.
2405 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
2406 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
2407 frexpl and ldexpl. math_private.h provides them and the latter
2409 (__log1pl): Use __frexpl.
2411 2008-05-10 Ulrich Drepper <drepper@redhat.com>
2413 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
2415 * include/arpa/nameser_compat.h: Define T_UNSPEC.
2416 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
2417 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
2418 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
2420 (_nss_nis_gethostbyname4_r): New function.
2421 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
2422 Change to also handle af==AF_UNSPEC.
2423 (get_tablename): New function. Use it to avoid duplication.
2424 (_nss_nisplus_gethostbyname4_r): New function.
2425 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
2427 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
2428 * nss/nss.h: Define struct gaih_addrtuple.
2429 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
2431 (_nss_files_gethostbyname4_r): New function.
2432 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
2433 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
2435 * resolv/res_query.c (__libc_res_nquery): Take two additional
2436 parameters for second answer buffer. Handle type=T_UNSPEC to mean
2437 look up IPv4 and IPv6.
2439 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
2440 for an additional query and answer buffer. Pass to send_vc and
2442 (send_vc): Send possibly two requests and receive two answers.
2443 (send_dg): Likewise.
2444 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
2446 (_nss_dns_gethostbyname4_r): New function.
2447 (gaih_getanswer_slice): Likewise.
2448 (gaih_getanswer): Likewise.
2449 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
2450 __libc_res_nquery call.
2451 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2452 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
2453 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
2456 2008-05-05 David S. Miller <davem@davemloft.net>
2458 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
2459 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
2461 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2463 Fix termios bit macros.
2464 Move *DLY definitions where they belong, in termios.h.
2465 Add *[0-3] definitions.
2466 Fixes confusion between VT and FF.
2467 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
2468 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
2469 are already defined to avoid collision with termios.h.
2470 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
2471 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
2472 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
2473 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
2474 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
2475 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
2476 VTDLY, VT0, VT1): New macros.
2477 [__USE_GNU] (OLCUC): Change value of macro.
2478 [__USE_XOPEN] (OFILL): New macro.
2479 [__USE_BSD] (CRTSCTS): Change value.
2480 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
2481 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
2482 (B7200, B14400, B28800, B76800): New macros.
2484 2008-05-01 David S. Miller <davem@davemloft.net>
2486 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
2487 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
2488 (gen-as-const-headers): Add it.
2489 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
2490 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
2491 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
2492 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2494 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
2495 six system call parameters.
2496 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
2498 2008-04-30 Ulrich Drepper <drepper@redhat.com>
2500 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
2502 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2503 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2505 2008-04-30 Jakub Jelinek <jakub@redhat.com>
2507 * stdlib/tst-setcontext.c: Include unistd.h.
2509 2008-04-25 David S. Miller <davem@davemloft.net>
2511 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
2512 Pass "union semun" properly in to sys_ipc, it must be passed
2513 by value, not by reference.
2515 2008-04-22 Jakub Jelinek <jakub@redhat.com>
2517 * nscd/Makefile (nscd-cflags): Set back to -fpie.
2518 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
2519 * nscd/connections.c (mem_in_flight): Likewise.
2521 * nscd/nscd.h (dbs): Make hidden.
2523 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
2524 Avoid returning -1, return 0 instead.
2526 2008-04-19 Ulrich Drepper <drepper@redhat.com>
2528 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
2530 2008-04-15 Ulrich Drepper <drepper@redhat.com>
2533 * sysdeps/unix/sysv/linux/times.c: New file.
2536 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
2537 mem_in_flight_list variables. Add new parameter to mempool_alloc
2539 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
2540 appropriate mem_in_flight element.
2541 (gc): Take allocations which have not yet been committed to the
2542 database into account.
2543 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
2544 Reset mem_in_flight before returning.
2545 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
2546 cue it up in mem_in_flight_list.
2547 * nscd/aicache.c: Adjust mempool_alloc call.
2548 * nscd/grpcache.c: Likewise.
2549 * nscd/hstcache.c: Likewise.
2550 * nscd/initgrcache.c: Likewise.
2551 * nscd/pwdcache.c: Likewise.
2552 * nscd/servicescache.c: Likewise.
2553 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
2556 * nscd/connections.c (handle_request): Provide better error message
2557 in case SELinux forbids the service.
2559 * version.h (VERSION): Bump to 2.8.90.
2561 2008-04-17 Jakub Jelinek <jakub@redhat.com>
2563 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
2565 2008-04-11 Ulrich Drepper <drepper@redhat.com>
2567 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
2568 Also use for 32-bit.
2569 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
2570 __nextafter instead of nextafter to avoid local PLT.
2571 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
2572 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2574 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
2576 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
2578 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
2579 <fenv_libc.h> instead of <fenv.h>.
2580 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
2581 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
2583 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
2585 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
2586 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
2587 function from fegetexcept and make old name weak alias.
2588 * include/fenv.h: Declare __fegetexcept.
2589 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
2591 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
2592 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
2594 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
2595 instead of frexpl to avoid local PLT.
2596 * math/s_significandl.c (__significandl): Use __ilogbl instead of
2597 ilogbl to avoid local PLT.
2598 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
2599 instead of ldexpl to avoid local PLT.
2600 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
2601 __roundl not roundl to avoid local PLT.
2602 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
2603 local PLTs. Use __sincosl instead of separate sinl and cosl
2605 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2607 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
2608 version for ppc64 to 2.4.21 since without it makecontext will fail.
2610 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
2612 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
2614 [__powerpc64__] (TLS_GD): Likewise.
2616 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
2619 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
2620 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
2622 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2623 Likewise. Also account for when x is an odd number between 2^52
2625 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
2626 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2627 * math/libm-test.inc (lround_test, llround_test): Added test cases to
2628 detect aforementioned erroneous conditions.
2630 2008-04-11 Jakub Jelinek <jakub@redhat.com>
2632 * configure.in: Check for -fno-section-anchors in addition to
2633 -fno-toplevel-reorder.
2635 2008-04-11 Ulrich Drepper <drepper@redhat.com>
2637 * include/features.h (__GLIBC_MINOR__): Bump to 8.
2639 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
2640 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2641 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2642 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2643 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2644 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2646 2008-04-11 Jakub Jelinek <jakub@redhat.com>
2649 * time/era.c: Transform __libc_setlocale_lock into rwlock.
2650 * time/alt_digit.c: Likewise.
2651 * wcsmbs/wcsmbsload.c: Likewise.
2653 2008-04-10 Ulrich Drepper <drepper@redhat.com>
2655 * version.h (VERSION): Bump to 2.8.
2657 * timzeone/asia: Update from tzdata2008b.
2658 * timezone/backward: Likewise.
2659 * timezone/europe: Likewise.
2660 * timezone/northamerica: Likewise.
2661 * timezone/southamerica: Likewise.
2662 * timezone/iso3166.tab: Likewise.
2663 * timezone/leapseconds: Likewise.
2664 * timezone/zone.tab: Likewise.
2665 * timezone/private.h: Update from tzcode2008a.
2666 * timezone/zdump.c: Likewise.
2667 * timezone/zic.c: Likewise.
2669 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
2672 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
2673 Define additonal Data Cache Block instruction macros.
2674 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
2675 Replace dcbst with dcbf and sync with sync/isync.
2677 2008-02-21 Alan Modra <amodra@bigpond.net.au>
2679 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
2680 Always set ELF_RTYPE_CLASS_PLT.
2681 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
2683 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
2685 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2686 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2687 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2688 For ISA 2.01 and later replace mftb with mfspr 268.
2690 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
2693 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2694 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2696 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
2699 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2700 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2701 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2702 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2704 2008-04-10 Jakub Jelinek <jakub@redhat.com>
2706 * stdlib/tst-makecontext.c (othervar): New variable.
2707 (cf): Test sign extending the argument to long.
2709 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
2711 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2712 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2713 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2714 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2715 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2716 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2717 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2719 2008-02-22 Alan Modra <amodra@bigpond.net.au>
2721 * elf/Makefile (tests): Substitute tests-vis-yes here.
2722 (tests-vis-yes): Delete.
2723 (modules-name, modules-vis-yes): Similarly.
2725 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
2728 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2729 Preserve sign in signgamp when x is zero.
2731 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
2733 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2734 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2735 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2736 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2737 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2738 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2740 2008-04-09 Ulrich Drepper <drepper@redhat.com>
2743 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2747 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2748 a reserved error value.
2750 * stdlib/tst-makecontext.c: Change parameter to cf to negative
2751 value to check for correct sign extension.
2754 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2755 Copy 64-bit parameter values even though this is not required in
2758 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2761 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
2763 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2766 2008-04-09 Jakub Jelinek <jakub@redhat.com>
2768 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2770 2008-04-09 Ulrich Drepper <drepper@redhat.com>
2773 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2774 in line-buffered stream failed.
2775 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2777 2008-04-08 Ulrich Drepper <drepper@redhat.com>
2780 * scripts/abi-versions.awk: If the version specified by
2781 --enable-oldest-abi is older than the first version for this
2782 architecture, use the default version.
2784 * locale/programs/ld-collate.c (collate_read): Ignore script lines
2785 as well when ignoring the whole category.
2787 2008-04-07 Ulrich Drepper <drepper@redhat.com>
2790 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2791 ETHERTYPE_* definitions.
2792 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2794 2008-04-07 Jakub Jelinek <jakub@redhat.com>
2796 * stdlib/mbtowc.c (__no_r_state): Remove.
2797 (mbtowc): New static state variable. Use it instead of
2799 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2800 (__wctomb_state): New hidden variable.
2801 (wctomb): Use __wctomb_state instead of __no_r_state.
2802 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2803 (__wctomb_state): New extern decl.
2804 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2806 2008-04-07 Ulrich Drepper <drepper@redhat.com>
2809 * resolv/res_init.c: Handle scope IDs in resolv.conf.
2811 2008-04-07 Jakub Jelinek <jakub@redhat.com>
2813 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2815 2008-04-06 Ulrich Drepper <drepper@redhat.com>
2817 * po/nl.po: Update from translation team.
2819 2008-03-31 Ulrich Drepper <drepper@redhat.com>
2822 * string/strfry.c: Handle empty strings again.
2824 2008-03-30 Ulrich Drepper <drepper@redhat.com>
2827 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2828 before looking for translation.
2829 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2830 * locale/freelocale.c: Likewise.
2831 * locale/newlocale.c: Likewise.
2832 * locale/setlocale.c: Likewise.
2833 Based partially on a patch by ryo@np.css.fujitsu.com.
2835 2008-03-30 Jakub Jelinek <jakub@redhat.com>
2837 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2838 acquiring wrlock. Do conv_tab allocation while holding lock.
2839 * intl/Makefile: Add rules to build and run tst-gettext6.
2840 * intl/tst-gettext6.c: New test.
2841 * intl/tst-gettext6.sh: New file.
2843 2008-03-30 Ulrich Drepper <drepper@redhat.com>
2845 * po/nl.po: Update from translation team.
2847 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2848 provided through st_blksize, try the default size before giving up.
2850 2008-03-29 Ulrich Drepper <drepper@redhat.com>
2852 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2855 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2857 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2858 error message. POSIX today does not require the messages to be in
2859 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
2862 * sunrpc/auth_unix.c: Unify printed strings.
2863 * sunrpc/clnt_tcp.c: Likewise.
2864 * sunrpc/clnt_udp.c: Likewise.
2865 * sunrpc/clnt_unix.c: Likewise.
2866 * sunrpc/svc_tcp.c: Likewise.
2867 * sunrpc/svc_udp.c: Likewise.
2868 * sunrpc/svc_unix.c: Likewise.
2869 * sunrpc/xdr.c: Likewise.
2870 * sunrpc/xdr_array.c: Likewise.
2871 * sunrpc/xdr_rec.c: Likewise.
2872 * sunrpc/xdr_ref.c: Likewise.
2873 * locale/programs/ld-time.c (time_finish): Unify messages.
2874 * locale/programs/locfile.c (handle_copy): Fix typo.
2875 * nscd/nscd.c (options): Fix typo.
2878 * stdlib/strtod_l.c: Use correct sign for result in one more
2880 Patch by Eric Blake <ebb9@byu.net>.
2882 2008-03-27 Jakub Jelinek <jakub@redhat.com>
2884 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2885 and creat system calls.
2886 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2888 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2890 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2891 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2892 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2894 2008-03-27 Ulrich Drepper <drepper@redhat.com>
2896 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2897 <linux/limits.h> has defined it.
2898 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2899 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2901 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2902 it instead of ARG_MAX.
2904 2008-03-25 Jakub Jelinek <jakub@redhat.com>
2906 * posix/gai.conf: Fix comment for scope nullbits.
2907 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2908 default to 128 bits for v4 mapped addresses.
2910 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
2912 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2913 ptrace call to get the ieee_instruction_pointer from the kernel.
2914 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2915 ptrace call to set the ieee_instructtion_pointer.
2916 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2917 Add comment that ieee_instruction_pointer is always 0.
2919 2008-03-09 Andreas Jaeger <aj@suse.de>
2922 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2923 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2924 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2926 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2927 (rint_test): Likewise.
2929 2008-03-24 Ulrich Drepper <drepper@redhat.com>
2931 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2933 (__nisfind_server): Similar for open readColdStartFile call.
2934 Patch partially by Jim Meyering.
2935 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2936 around internal_setent call.
2938 * po/vi.po: New Vietnamese translation.
2940 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2943 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2944 remove CLONE_STOPPED.
2946 2008-02-10 Jim Meyering <meyering@redhat.com>
2948 Remove useless "if" before "free":
2949 * elf/ldconfig.c (parse_conf_include): Likewise.
2950 * gmon/gmon.c (weak_alias): Likewise.
2951 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2952 * inet/rcmd.c (__validuser2_sa): Likewise.
2953 * intl/bindtextdom.c (set_binding_values): Likewise.
2954 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2955 * libio/genops.c (save_for_backup): Likewise.
2956 * libio/wgenops.c (save_for_wbackup): Likewise.
2957 * locale/programs/ld-collate.c (collate_read): Likewise.
2958 * locale/programs/linereader.c (get_string): Likewise.
2959 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2960 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2961 * resolv/res_debug.c (do_section): Likewise.
2962 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2963 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2964 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2965 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2966 * time/tzset.c (tzset_internal): Likewise.
2968 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2970 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2973 2008-03-11 Ulrich Drepper <drepper@redhat.com>
2976 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2977 not stream for output file. Open output file here.
2978 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2979 and output file name.
2980 (process_fd): Likewise.
2981 (process_file): Likewise.
2982 (main): Adjust callers of changed functions.
2983 * iconv/iconv_prog.h: Adjust prototype.
2985 2008-03-09 Andreas Jaeger <aj@suse.de>
2988 * sysdeps/ia64/ieee754.h: Use protected namespace
2989 __BIG_ENDIAN/__LITTLE_ENDIAN.
2990 * sysdeps/ieee754/ieee754.h: Likewise.
2991 Patch by Aurelien Jarno <aurelien@aurel32.net>.
2993 2008-03-08 Roland McGrath <roland@frob.com>
2995 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2996 ignore a signal that came from a machine exception, treat it as a
2997 fatal core-dump signal instead.
2998 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3000 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3001 Clear DF bit in thread state's eflags.
3002 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3004 2008-03-08 Ulrich Drepper <drepper@redhat.com>
3007 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
3008 of NAN(...) sequence.
3009 * stdlib/Makefile (tests): Add tst-strtod6.
3010 * stdlib/tst-strtod6.c: New file.
3012 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3015 * posix/getopt.c (_getopt_internal_r): Clarify error message by
3016 putting offending option character in quotes. Clean up error
3018 * po/be.po: Adjust msgstr in translation file.
3019 * po/bg.po: Likewise.
3020 * po/ca.po: Likewise.
3021 * po/cs.po: Likewise.
3022 * po/da.po: Likewise.
3023 * po/de.po: Likewise.
3024 * po/es.po: Likewise.
3025 * po/fr.po: Likewise.
3026 * po/hr.po: Likewise.
3027 * po/ko.po: Likewise.
3028 * po/nl.po: Likewise.
3029 * po/rw.po: Likewise.
3030 * po/sk.po: Likewise.
3031 * po/sv.po: Likewise.
3032 * po/tr.po: Likewise.
3033 * po/zh_CN.po: Likewise.
3034 * po/zh_TW.po: Likewise.
3037 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3038 Patch by Roland Bless <roland@bless.de>.
3040 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3042 * elf/Makefile (routines): Add dl-sysdep.
3043 (elide-routines.os): Likewise.
3045 2008-03-07 Ulrich Drepper <drepper@redhat.com>
3048 * elf/dl-sysdep.c: Undefine ROUND after use.
3049 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3050 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3051 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3052 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3054 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3055 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3057 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3059 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3060 _dl_tls_get_addr_soft element.
3061 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3062 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3063 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3065 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3066 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3067 of internal_function.
3069 * stdlib/Makefile (aux): Add tens_in_limb.
3070 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3071 * stdlib/tens_in_limb.c: ...here. New file.
3074 * sysdeps/unix/sysv/linux/pathconf.h: Declare
3075 __statfs_chown_restricted.
3076 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
3077 for _PC_CHOWN_RESTRICTED.
3078 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3079 Implement __statfs_chown_restricted.
3080 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
3081 _POSIX_CHOWN_RESTRICTED value to zero.
3082 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
3085 * sysdeps/x86_64/rtld-memset.c: New file.
3087 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
3089 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
3091 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
3092 Barcelona machine. Make default fall through branch of
3093 __x86_64_preferred_memory_instruction check as the integer code path.
3095 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3097 * sysdeps/x86_64/cacheinfo.c
3098 (__x86_64_preferred_memory_instruction): New variable.
3099 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3101 * sysdeps/x86_64/memset.S: Rewrite.
3103 2008-03-04 Jakub Jelinek <jakub@redhat.com>
3105 * include/stdio.h (__asprintf_chk, __dprintf_chk,
3106 __obstack_printf_chk): New prototypes.
3107 (__vasprintf_chk, __vdprintf_chk,
3108 __obstack_vprintf_chk): Likewise.
3109 Add libc_hidden_proto.
3111 (_IO_obstack_jumps): No longer static, add attribute_hidden.
3112 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
3113 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3114 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
3115 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
3116 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3117 __obstack_vprintf_chk): New prototypes.
3118 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
3119 obstack_vprintf): New inlines.
3120 * debug/dprintf_chk.c: New file.
3121 * debug/vdprintf_chk.c: New file.
3122 * debug/asprintf_chk.c: New file.
3123 * debug/vasprintf_chk.c: New file.
3124 * debug/obprintf_chk.c: New file.
3125 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
3126 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
3127 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
3129 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
3130 vdprintf_chk and obprintf_chk, set CFLAGS for them.
3131 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
3132 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
3134 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
3135 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
3136 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
3137 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
3138 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
3140 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
3141 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
3142 obstack_vprintf_chk.
3143 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
3144 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
3145 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
3146 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
3147 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
3148 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
3150 2008-03-04 Ulrich Drepper <drepper@redhat.com>
3153 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
3154 Patch by Roy Marples <roy@marples.name>.
3157 * malloc/malloc.c: Fix typo in comment.
3160 * locale/iso-639.def: Add Shuswap.
3162 2008-02-25 Jakub Jelinek <jakub@redhat.com>
3165 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
3166 overwrite *h_errnop/*errnop values from getanswer_r in case of
3169 2008-03-03 Ulrich Drepper <drepper@redhat.com>
3172 * nscd/connections.c (dbs): Add initializers for .suggested_module.
3173 (verify_persistent_db): Remove one unnecessary test and add a new one
3174 for bad configuration.
3175 (nscd_init): Improve error reported when persistent database cannot
3177 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
3178 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
3179 .suggested_module and .max_db_size and case config file says the
3181 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
3184 * nis/ypclnt.c (yp_order): Fix handling of return value of
3186 Patch by Jeff Moyer <jmoyer@redhat.com>.
3188 * po/fr.po: Update from translation team.
3190 2008-02-22 Andreas Jaeger <aj@suse.de>,
3191 Carlos O'Donell <carlos@systemhalted.org>
3194 * FAQ.in: Describe why glibc needs to be compiled with
3197 2008-02-19 Roland McGrath <roland@redhat.com>
3199 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
3201 2008-02-15 Ulrich Drepper <drepper@redhat.com>
3204 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
3205 __USE_MISC is defined.
3207 2008-02-10 Ulrich Drepper <drepper@redhat.com>
3209 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
3210 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
3212 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
3213 timerfd_gettime, timerfd_settime.
3214 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
3215 timerfd_gettime, timerfd_settime for GLIBC_2.8.
3217 2008-02-08 Roland McGrath <roland@redhat.com>
3219 * elf/elf.h (NT_PPC_SPE): New macro.
3221 2008-02-06 Roland McGrath <roland@redhat.com>
3223 * Makerules ($(common-objpfx)sysd-rules):
3224 Depend on $(sysdep-makeconfigs).
3226 2008-01-31 Roland McGrath <roland@redhat.com>
3229 * configure.in: Use -print-file-name if it yields a directory,
3230 for each of include and include-fixed.
3231 * configure: Regenerated.
3233 * Makeconfig (sysd-rules-targets): New variable.
3234 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
3235 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
3237 2008-01-30 Roland McGrath <roland@redhat.com>
3239 * manual/libc.texinfo: Update back-cover text.
3241 * elf/elf.h (NT_386_TLS): New macro.
3243 2008-01-29 Roland McGrath <roland@redhat.com>
3245 * Makeconfig (sysd-rules-patterns): New variable.
3246 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
3247 (check-inhibit-asm): New canned sequence, replaces ...
3248 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
3249 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
3250 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
3251 (CFLAGS-rtld): Variable removed.
3253 2008-01-24 Roland McGrath <roland@redhat.com>
3255 * configure.in: Let configure fragments set base_os.
3256 * configure: Regenerated.
3258 2008-01-22 Ulrich Drepper <drepper@redhat.com>
3260 * po/ko.po: Update from translation team.
3262 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
3264 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
3266 2008-01-12 Andreas Jaeger <aj@suse.de>
3269 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
3272 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
3274 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
3275 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
3276 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
3278 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
3280 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
3281 * elf/dl-close.c (_dl_close): Check for it.
3282 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
3283 (_dl_allocate_static_tls): Likewise.
3284 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
3285 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
3287 * elf/tst-tls16.c: New file.
3288 * elf/tst-tlsmod16a.c: New file.
3289 * elf/tst-tlsmod16b.c: New file.
3290 * elf/Makefile: Add rules to build and run tst-tls16.
3292 2008-01-16 Ulrich Drepper <drepper@redhat.com>
3295 * bits/shm.h: Fix comment describing shmid_ds.
3296 * sysdeps/gnu/bits/shm.h: Likewise.
3297 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3298 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3299 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3300 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3301 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3302 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3303 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3304 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3305 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
3308 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
3310 * conform/data/limits.h-data: Adjust limits changed in v6 and add
3311 additional suffixes.
3312 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
3313 Add optional functions mq_timedreceive and mq_timedsend.
3314 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
3315 * conform/data/pthread.h-data: Fix prototype of
3316 pthread_condattr_setclock. pthread_sigmask is not required in v6.
3317 * conform/data/semaphore.h-data: Allow time.h definitions.
3318 * conform/data/signal.h-data: Likewise.
3319 * conform/data/stdio.h-data: getw and putw are not required in v6.
3320 * conform/data/stdlib.h-data: Change setstate prototype.
3321 * conform/data/string.h-data: Fix strerror_r prototype.
3322 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
3323 * conform/data/unistd.h-data: pthread_atfork not required in v6.
3324 Fix readlink prototype.
3325 * conform/data/netinet/in.h-data: Add const to in6addr_any and
3327 * inet/netinet/in.h: Cleanup namespace.
3328 * posix/regex.h: Likewise.
3329 * resolv/netdb.h: Likewise.
3330 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3331 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3332 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3333 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
3334 of names of in in6_addr.
3335 (default_precedence): Likewise.
3336 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
3339 2008-01-15 Ulrich Drepper <drepper@redhat.com>
3341 * conform/data/fmtmsg.h-data: Add missing allows.
3342 * conform/data/ftw.h-data: Likewise.
3343 * conform/data/inttypes.h-data: Likewise.
3344 * conform/data/math.h-data: Likewise.
3345 * conform/data/signal.h-data: Likewise.
3346 * conform/data/net/if.h-data: Likewise.
3347 * conform/data/netinet/in.h-data: Likewise.
3348 * conform/data/sys/socket.h-data: Likewise.
3351 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
3352 (__strtok_r): Simplify.
3353 * string/tester.c (test_strtok_r): Add test case for futile search
3354 with single-character seach string.
3356 2008-01-12 Ulrich Drepper <drepper@redhat.com>
3358 * po/ko.po: Update from translation team.
3360 2008-01-11 Andreas Jaeger <aj@suse.de>
3363 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
3364 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
3367 2008-01-10 Ulrich Drepper <drepper@redhat.com>
3369 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
3370 native interface lookup in all the relevant places.
3372 2008-01-10 Jakub Jelinek <jakub@redhat.com>
3373 Ulrich Drepper <drepper@redhat.com>
3375 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
3376 field. Use sockaddr_in6 for source_addr.
3377 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
3378 (match_prefix): Likewise.
3379 (get_label): Likewise.
3380 (get_precedence): Likewise.
3381 (rfc3484_sort): Change to use indirect access to results array.
3382 Adjust to use of sockaddr_in6. Replace service_order test with
3383 simple index comparison.
3384 (getaddrinfo): Define order array. Initialize it. Don't initialize
3385 service_order field. Adjust qsort_t calls. Access sorted result
3386 array indirectly through order array.
3387 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
3388 * posix/tst-rfc3484-2.c: Likewise.
3389 * posix/tst-rfc3484-3.c: Likewise.
3391 2008-01-09 Ulrich Drepper <drepper@redhat.com>
3394 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
3396 Patch by André Cruz.
3399 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
3400 (clnt_spcreateerror): Likewise.
3403 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
3404 (public_mEMALIGn): Likewise.
3405 Patch mostly by Daniel Jacobowitz.
3407 2008-01-09 Jakub Jelinek <jakub@redhat.com>
3409 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
3410 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
3411 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
3412 * stdlib/tst-makecontext2.c: New test.
3414 2008-01-08 Jakub Jelinek <jakub@redhat.com>
3416 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
3418 (REINIT_PARAMS): Likewise. Undefine before end of file.
3419 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
3420 transliteration hooks and REINIT_PARAMS afterwards.
3421 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
3423 (REINIT_PARAMS): Define.
3424 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
3425 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
3426 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
3427 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
3428 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
3429 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
3430 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
3431 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
3432 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
3433 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
3434 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
3435 * iconvdata/tst-iconv7.c: New test.
3437 2008-01-07 Ulrich Drepper <drepper@redhat.com>
3439 * libio/stdio.h (vscanf): Fix definition for loser compilers.
3441 2008-01-05 Jakub Jelinek <jakub@redhat.com>
3444 * nscd/connections.c (restart): Fix condition.
3446 2008-01-03 Jakub Jelinek <jakub@redhat.com>
3448 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
3449 __ctype_toupper_loc): Add __THROW.
3451 2008-01-02 Ulrich Drepper <drepper@redhat.com>
3453 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
3454 recognition of interface family.
3456 * posix/getconf.c: Update copyright year.
3457 * nss/getent.c: Likewise.
3458 * iconv/iconvconfig.c: Likewise.
3459 * iconv/iconv_prog.c: Likewise.
3460 * elf/ldconfig.c: Likewise.
3461 * catgets/gencat.c: Likewise.
3462 * csu/version.c: Likewise.
3463 * elf/ldd.bash.in: Likewise.
3464 * elf/sprof.c (print_version): Likewise.
3465 * locale/programs/locale.c: Likewise.
3466 * locale/programs/localedef.c: Likewise.
3467 * nscd/nscd.c (print_version): Likewise.
3468 * debug/xtrace.sh: Likewise.
3469 * malloc/memusage.sh: Likewise.
3470 * malloc/mtrace.pl: Likewise.
3471 * debug/catchsegv.sh: Likewise.
3473 2007-12-26 Ulrich Drepper <drepper@redhat.com>
3475 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
3478 2007-12-23 Ulrich Drepper <drepper@redhat.com>
3480 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
3481 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3483 2007-12-17 Roland McGrath <roland@redhat.com>
3485 * inet/ether_line.c (ether_line): Remove unused variable.
3487 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
3489 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
3491 * login/openpty.c (openpty): Likewise.
3492 * login/pty.h (openpty, forkpty): Likewise.
3493 * manual/terminal.texi (openpty, forkpty): Likewise.
3495 2007-12-17 Ulrich Drepper <drepper@redhat.com>
3497 * malloc/malloc.c (public_cALLOc): For arenas other than
3498 main_arena, count all bytes inside the mprotect_size range of the
3499 heap as uninitialized.
3501 2007-12-16 Ulrich Drepper <drepper@redhat.com>
3503 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
3506 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
3507 mTRIm for all of them.
3508 (mTRIm): Additionally iterate over all free blocks and use madvise
3509 to free memory for all those blocks which contain at least one
3511 * malloc/tst-trim1.c: New file.
3512 * malloc/Makefile (tests): Add tst-trim1.
3514 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
3516 2007-12-14 Ulrich Drepper <drepper@redhat.com>
3518 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
3519 First cast argument to long
3520 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
3522 (__vdso_clock_gettime): Likewise.
3523 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
3526 2007-12-13 Ulrich Drepper <drepper@redhat.com>
3528 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
3529 * locale/nl_langinfo_l.c: Real implementation, copied from
3531 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
3533 2007-12-01 Jim Meyering <meyering@redhat.com>
3535 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
3536 that would inhibit utf8-optimization of a regexp containing line-
3537 or buffer-anchors, e.g., `^', `$'.
3539 2007-12-12 Ulrich Drepper <drepper@redhat.com>
3541 * time/bug-getdate1.c (do_test): Don't use century values which
3542 aren't valid on 32-bit systems.
3544 2007-12-12 Jakub Jelinek <jakub@redhat.com>
3546 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
3547 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
3548 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
3549 __strcat_g, __strncat_g): Add __asm__.
3551 2007-12-12 Ulrich Drepper <drepper@redhat.com>
3554 * io/fchmodat.c: Fix typo in stub_warning use.
3555 Patch by Petr Salinger.
3557 2007-12-11 Ulrich Drepper <drepper@redhat.com>
3559 * iconvdata/hp-thai8.c: New file.
3560 * iconvdata/Makefile: Add rules for hp-thai8.c.
3561 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
3562 * iconvdata/gconv-modules: Likewise.
3565 * iconvdata/hp-greek8.c: New file.
3566 * iconvdata/Makefile: Add rules for hp-greek8.c.
3567 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
3568 * iconvdata/gconv-modules: Likewise.
3571 * iconvdata/hp-turkish8.c: New file.
3572 * iconvdata/Makefile: Add rules for hp-turkish8.c.
3573 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
3574 * iconvdata/gconv-modules: Likewise.
3576 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
3577 (shrink_heap): ... this new function.
3578 (heap_trim): Call shrink_heap instead of grow_heap.
3580 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
3581 case don't call alloc_perturb.
3583 2007-12-10 Ulrich Drepper <drepper@redhat.com>
3585 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
3587 * sysdeps/unix/sysv/linux/kernel-features.h
3588 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
3589 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
3591 2007-12-08 Ulrich Drepper <drepper@redhat.com>
3594 * stdio-common/vfprintf.c: Do not overflow when adding to done.
3595 * stdio-common/Makefile (tests): Add bug22.
3596 * stdio-common/bug22.c: New file.
3599 * time/getdate.c: Fix filling in default values.
3600 * time/bug-getdate1.c: New file.
3601 * time/Makefile: Add rules to build and run bug-getdate1.
3603 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
3604 * iconvdata/ebcdic-es.c: Likewise.
3605 * iconvdata/ebcdic-es-a.c: Likewise.
3606 * iconvdata/ebcdic-uk.c: Likewise.
3607 * iconvdata/iso8859-16.c: Likewise.
3608 * iconvdata/viscii.c: Likewise.
3609 * iconvdata/iso8859-9e.c: Likewise.
3610 * iconvdata/Makefile: Adjust appropriately.
3613 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
3616 2007-12-07 Ulrich Drepper <drepper@redhat.com>
3619 * iconvdata/hp-roman9.c: New file.
3620 * iconvdata/Makefile: Add rules for hp-roman9.c.
3621 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
3622 * iconvdata/gconv-modules: Likewise.
3624 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
3625 * iconvdata/Makefile: Adjust appropriately.
3628 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
3629 structure, it's allocated with alloca.
3630 * stdio-common/Makefile (tests): Add bug21.
3631 * stdio-common/bug21.c: New file.
3633 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
3636 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
3637 keyword for gcc's braced-groups.
3639 2007-12-07 Ulrich Drepper <drepper@redhat.com>
3642 * inet/ether_line.c: Strip hostname of whitespaces.
3643 * inet/Makefile (tests): Add tst-ether_line.
3644 * inet/tst-ether_line.c: New file.
3646 2007-12-03 Ulrich Drepper <drepper@redhat.com>
3649 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
3652 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
3654 * stdlib/tst-setcontext.c: Catch the case where the links gets
3655 messed up and we do not reach main again.
3657 * po/ca.po: Update from translation team.
3659 2007-11-26 Ulrich Drepper <drepper@redhat.com>
3661 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
3662 * posix/regex.h (REG_ENOSYS): Likewise.
3663 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
3665 2007-11-25 Ulrich Drepper <drepper@redhat.com>
3667 * nscd/nscd.h (MAX_STACK_USE): Define.
3668 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
3669 (gc): Initialize stack_used based on allocation in prune_cache.
3670 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
3671 Clear array before use.
3673 * nscd/aicache.c (addhstaiX): Update statistics counter in case
3674 memory allocation failed.
3675 * nscd/hstcache.c (cache_addhst): Likewise.
3676 * nscd/grpcache.c (cache_addgr): Likewise.
3677 * nscd/servicescache.c (cache_addserv): Likewise.
3678 * nscd/pwdcache.c (cache_addpw): Likewise.
3679 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3681 2007-11-23 Ulrich Drepper <drepper@redhat.com>
3683 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3684 and creat system calls.
3686 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3688 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
3690 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3692 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3693 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3695 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3696 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3697 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3699 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
3701 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3702 strncat): Define as macros to avoid compile errors.
3704 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
3707 2007-11-22 Ulrich Drepper <drepper@redhat.com>
3710 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3711 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3712 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3714 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3716 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3717 Return zero in case the thread library is not NPTL.
3720 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3721 initializing interface list.
3724 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3725 use result of nss_getgrgid_r if nothing was found. For other
3726 error return with a failure.
3727 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3729 * locale/programs/ld-collate.c (collate_read): Fix loop to match
3732 2007-11-19 Ulrich Drepper <drepper@redhat.com>
3734 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3735 (get_scope): For IPv4 scope, use scopes table.
3736 (fini): Free scopes table if necessary.
3737 (free_scopelist): New function.
3738 (scopecmp): New function.
3739 (gaiconf_init): Also handle scopev4 entries.
3740 * posix/tst-rfc3484.c (do_test): Initialize scopes.
3741 * posix/tst-rfc3484-2.c (do_test): Likewise.
3742 * posix/gai.conf: Document scopev4 defaults.
3743 * posix/Makefile (tests): Add tst-rfc3484-3.
3744 * posix/tst-rfc3484-3.c: New file.
3746 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3748 * posix/gai.conf: Update for current default tables.
3750 2007-11-19 Ulrich Drepper <drepper@redhat.com>
3752 * po/tr.po: Update from translation team.
3754 2007-11-18 Roland McGrath <roland@frob.com>
3756 * manual/arith.texi (Remainder Functions): Spelling fix.
3757 From Shaun Silk <genix@mysoul.com.au>.
3759 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3761 2007-11-17 Ulrich Drepper <drepper@redhat.com>
3763 * po/zh_CN.po: Update from translation team.
3765 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3766 Add sys/signalfd.h and sys/eventfd.h.
3768 2007-11-15 Bruno Haible <bruno@clisp.org>
3771 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3773 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3774 (DCIGETTEXT): Change the allocation of the 'search' variable so that
3775 it needs only fixed stack space. Delay the initialization of
3776 msgid_len until it is needed.
3778 2007-11-15 Andreas Jaeger <aj@suse.de>
3780 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3781 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3783 2007-11-15 Ulrich Drepper <drepper@redhat.com>
3785 * po/ko.po: Update from translation team.
3787 2007-11-14 Ulrich Drepper <drepper@redhat.com>
3789 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3790 significantly. The device type is also part of the ifinfomsg data.
3792 * po/sv.po: Update from translation team.
3793 * po/nl.po: Likewise.
3795 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3796 to wake up in 24 hours.
3798 * nscd/gai.c (__ioctl): Define. Include check_native.c.
3800 2007-11-13 Ulrich Drepper <drepper@redhat.com>
3802 * po/cs.po: Update from translation team.
3803 * po/pl.po: Likewise.
3805 * include/ifaddrs.h: Remove in6ai_temporary.
3806 (struct in6addrinfo): Add index element.
3807 Declare __check_native.
3808 * inet/Makefile (aux): Add check_native.
3809 * sysdeps/unix/sysv/linux/check_native.c: New file.
3810 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3811 IFA_F_TEMPORARY. Pass back ifa_index.
3812 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3813 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
3814 call __check_native if necessary.
3815 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
3816 to sort addresses. Pass information about the results.
3817 * posix/tst-rfc3484.c: Adjust for addition of index field and change
3818 of rfc3484_sort interface.
3819 * posix/tst-rfc3484-2.c: Likewise.
3821 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
3822 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3824 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3825 (qsort_r): Renamed from qsort. Take additional parameter and pass it
3826 on as third parameter to compare function and _quicksort.
3827 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3828 to the compare function.
3829 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3830 * Versions.def: Add GLIBC_2.8 for libc.
3832 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3833 * posix/tst-rfc3484-2.c: Likewise.
3835 * include/kernel-features.h: Moved to...
3836 * sysdeps/mach/hurd/kernel-features.h: ...here.
3838 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
3840 * sysdeps/i386/i586/memcpy_chk.S: New file.
3841 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3842 * sysdeps/i386/i586/memset_chk.S: Likewise.
3844 2007-11-12 Ulrich Drepper <drepper@redhat.com>
3846 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3847 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3848 list of interfaces. Also store prefix length.
3849 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3850 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3851 prefix if source and destination address are in the same subnet.
3852 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
3853 Always look for matching record in in6ai list.
3854 Correct source_addr_len value for IPv6->IPv4 converted records.
3856 2007-11-11 Roland McGrath <roland@frob.com>
3858 * include/kernel-features.h: New file.
3860 2007-11-10 Ulrich Drepper <drepper@redhat.com>
3862 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3863 complications for 64-bit platforms.
3865 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3866 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
3867 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3869 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3871 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3872 * sysdeps/wordsize-64/alphasort.c: New file.
3873 * sysdeps/wordsize-64/alphasort64.c: New file.
3874 * sysdeps/wordsize-64/fseeko.c: New file.
3875 * sysdeps/wordsize-64/fseeko64.c: New file.
3876 * sysdeps/wordsize-64/ftello.c: New file.
3877 * sysdeps/wordsize-64/ftello64.c: New file.
3878 * sysdeps/wordsize-64/ftw.c: New file.
3879 * sysdeps/wordsize-64/ftw64.c: New file.
3880 * sysdeps/wordsize-64/iofgetpos.c: New file.
3881 * sysdeps/wordsize-64/iofgetpos64.c: New file.
3882 * sysdeps/wordsize-64/iofopen.c: New file.
3883 * sysdeps/wordsize-64/iofopen64.c: New file.
3884 * sysdeps/wordsize-64/iofsetpos.c: New file.
3885 * sysdeps/wordsize-64/iofsetpos64.c: New file.
3886 * sysdeps/wordsize-64/lockf.c: New file.
3887 * sysdeps/wordsize-64/lockf64.c: New file.
3888 * sysdeps/wordsize-64/mkostemp.c: New file.
3889 * sysdeps/wordsize-64/mkostemp64.c: New file.
3890 * sysdeps/wordsize-64/mkstemp.c: New file.
3891 * sysdeps/wordsize-64/mkstemp64.c: New file.
3892 * sysdeps/wordsize-64/scandir.c: New file.
3893 * sysdeps/wordsize-64/scandir64.c: New file.
3894 * sysdeps/wordsize-64/tmpfile.c: New file.
3895 * sysdeps/wordsize-64/tmpfile64.c: New file.
3896 * sysdeps/wordsize-64/versionsort.c: New file.
3897 * sysdeps/wordsize-64/versionsort64.c: New file.
3898 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3899 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3900 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3901 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3902 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3903 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3904 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3905 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3906 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3907 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3908 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3909 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3911 * crypt/sha256-crypt.c: Fix a comment.
3912 * crypt/sha512-crypt.c: Likewise.
3914 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
3916 * sysdeps/x86_64/memset.S: Add sfence after movnti.
3918 2007-11-07 Ulrich Drepper <drepper@redhat.com>
3921 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3922 because output buffer is too small break, don't loop.
3923 * iconvdata/Makefile (tests): Add bug-iconv6.
3924 * iconvdata/bug-iconv6.c: New file.
3926 2007-11-06 Ulrich Drepper <drepper@redhat.com>
3928 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3930 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3931 size_t. Add casts where needed.
3933 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3934 old headers, don't call avc_has_perm if we don't have the
3935 permission information.
3937 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
3939 * elf/rtld.c (dl_main): Use the page size to find the map start.
3941 2007-11-05 Ulrich Drepper <drepper@redhat.com>
3943 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3944 Patch by Szymon Siwek <sls@poczta.wp.pl>.
3946 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3947 when the lookup call failed.
3949 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3950 Add prune_cond and wakeup_time.
3951 (CACHE_PRUNE_INTERNAL): Define.
3952 Update declarations of prune_cache and setup_thread.
3953 * nscd/connections.c (dbs): Update initializers.
3954 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3955 (nscd_init): Default number of threads is now 4.
3956 (invalidate_cache): Take lock before calling prune_cache.
3957 (handle_request): If SELinux forbids the request, say so.
3958 (readylist_cond): Use static initializer.
3959 (nscd_run_prune): New function. Used only by pruning threads.
3960 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
3962 (fd_ready): Update nscd_run reference.
3963 (start_threads): No need to initialize readylist_cond.
3964 Start pruning threads separately.
3965 * nscd/nscd_setup_thread.c: Change return value type to int and always
3967 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3968 to int and return nonzero value if we can use the TID address hack.
3969 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3970 the database is later than the new entry's timeout, update the
3971 wakeup time and wake the cleanup thread.
3972 (prune_cache): Return seconds the next entry in the database is still
3973 valid. Remove locking for pruning here.
3974 * nscd/nscd.conf: Document default number of threads.
3976 2007-10-31 Ulrich Drepper <drepper@redhat.com>
3978 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3979 stack is properly aligned for the target function.
3980 Correct unwind info.
3982 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3983 when using auditing libraries.
3985 2007-10-29 Ulrich Drepper <drepper@redhat.com>
3987 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3988 _nss_dns_getnetbyaddr2_r.
3989 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
3990 extra parameter to getanswer_r.
3991 (_nss_dns_getnetbyaddr_r): Now a wrapper around
3992 _nss_dns_getnetbyaddr2_r.
3994 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3996 * nscd/gethstbynm2_r.c: Remove.
3997 * nscd/gethstbynm3_r.c: New file.
3998 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4000 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
4001 __gethostbyaddr_r compatibility wrapper.
4002 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
4003 determining timeout of entry.
4004 (lookup): Take new parameter and pass it to __gethostbyname3_r and
4006 (addhstbyX): Pass reference to variable for TTL to lookup and
4008 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4009 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4010 and __nss_next2. Remove __nss_services_lookup.
4011 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
4013 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4015 * nss/getXXent_r.c: Likewise.
4016 * nss/getnssent_r.c: Likewise.
4017 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
4018 does not exist in module, try the optional second name.
4019 (__nss_next2): New function.
4020 (__nss_next): Now wrapper around __nss_next2.
4021 * nss/nsswitch.h: Adjust __nss_lookup prototype.
4022 Declare __nss_next2.
4023 Adjust definition of db_lookup_function type.
4024 * nss/service-lookup.c: Define NO_COMPAT.
4025 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4026 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4027 * inet/ether_ntoh.c: Likewise.
4028 * sunrpc/netname.c: Likewise.
4029 * sunrpc/publickey.c: Likewise.
4030 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
4031 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4032 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4033 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4034 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4036 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4038 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
4040 2007-10-28 Ulrich Drepper <drepper@redhat.com>
4043 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4044 * crypt/sha512c-test.c: Likewise.
4047 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4048 to keep track of end of %[ format string element.
4049 * stdio-common/Makefile (tests): Add bug20.
4050 * stdio-common/bug20.c: New file.
4053 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4054 path elements in counting mode.
4056 2007-10-27 Andreas Jaeger <aj@suse.de>
4059 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4062 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4063 (__cleanup): Free shared library when exiting.
4064 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4065 (__cleanup): Free shared library when exiting.
4067 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
4070 * math/libm-test.inc (check_float_internal): Support
4071 denormalized return.
4073 2007-10-23 Andreas Jaeger <aj@suse.de>
4076 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
4077 __LONG_LONG_PAIR to handle little endian byte order.
4078 Suggested by abhishekrai@google.com
4080 2007-10-27 Ulrich Drepper <drepper@redhat.com>
4082 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
4084 2007-10-26 Ulrich Drepper <drepper@redhat.com>
4086 * nscd/cache.c (prune_cache): Move test for modified file outside
4089 2007-10-21 Andreas Jaeger <aj@suse.de>
4091 * manual/texinfo.tex: Update to latest version.
4093 * manual/sysinfo.texi (System Parameters): Fix Formatting.
4095 * manual/arith.texi (Status bit operations): Fix formatting.
4097 * manual/errno.texi (Error Messages): Fix formatting.
4099 * manual/sysinfo.texi (System Parameters): Fix formatting.
4101 * manual/libc.texinfo: Update VERSION and UPDATED.
4103 2007-10-19 Roland McGrath <roland@redhat.com>
4105 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
4107 2007-10-06 David S. Miller <davem@davemloft.net>
4109 * configure.in: Add sparcv9v2 and sparc64v2.
4110 * scripts/config.sub: Likewise.
4111 * configure: Regenerate.
4112 * elf/elf.h (HWCAP_SPARC_N2): New.
4113 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
4114 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
4115 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
4116 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
4117 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
4118 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
4119 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
4121 2007-10-18 Ulrich Drepper <drepper@redhat.com>
4123 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
4124 even if the poll result indicates there is data to read.
4125 Patch by Jeff Moyer <jmoyer@redhat.com>.
4127 2007-10-18 Roland McGrath <roland@redhat.com>
4129 * elf/elf.h (NT_PPC_VMX): New macro.
4131 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4133 * version.h (VERSION): Set to 2.7.90.
4135 2007-10-17 Jakub Jelinek <jakub@redhat.com>
4137 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
4140 2007-10-17 Roland McGrath <roland@frob.com>
4142 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
4143 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
4145 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4147 * version.h (VERSION): Bump to 2.7.
4148 * include/features.h (__GLIBC_MINOR__): Bump to 7.
4151 * time/tzset.c (__tz_convert): Don't force testing for a change of
4152 TZ if not called from localtime. But then also see whether the
4153 file changed, in case __use_tzfile is set.
4155 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
4156 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4157 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4158 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4159 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4160 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4161 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4162 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4164 2007-10-17 Jakub Jelinek <jakub@redhat.com>
4166 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
4167 and admin selects to be able to replace the gai.conf file, lock
4168 data structures around the qsort call.
4170 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4172 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
4174 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
4175 too high for the improvements. Implement bzero unconditionally for
4178 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4179 Jakub Jelinek <jakub@redhat.com>
4181 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
4182 even when time_t is 32-bit.
4183 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
4184 timezone data read by __tzfile_default. Ensure __tzname[0] is
4185 always set after the search.
4187 2007-10-16 Ulrich Drepper <drepper@redhat.com>
4189 * time/tzfile.c (__tzfile_read): Help the compiler recognize
4190 unreachable code on 32-bit machines.
4192 2007-10-16 Jakub Jelinek <jakub@redhat.com>
4195 * time/strftime_l.c: Include stdbool.h.
4196 (my_strftime): New wrapper, old function renamed to...
4197 (__strftime_internal): ... new function. Add tzset_called
4198 argument, pass it down to recursive calls, don't call tzset ()
4199 if already true, set to true after call to tzset ().
4201 2007-10-16 Ulrich Drepper <drepper@redhat.com>
4203 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
4204 into account when copying TZ string.
4206 2007-10-16 Jakub Jelinek <jakub@redhat.com>
4208 * time/tzfile.c (__tzfile_compute): For use_last case set i to
4209 num_transition rather than num_transitions - 1.
4211 2007-10-16 Jakub Jelinek <jakub@redhat.com>
4213 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
4216 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
4217 a local label rather than HIDDEN_JUMPTARGET.
4219 2007-10-15 Ulrich Drepper <drepper@redhat.com>
4221 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
4222 (init_cacheinfo): Initialize it.
4223 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
4224 Always define bzero.
4225 Remove non-glibc code.
4226 * sysdeps/x86_64/bzero.S: Make an empty file.
4228 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
4230 * sysdeps/x86_64/cacheinfo.c
4231 (__x86_64_preferred_memory_instruction): New.
4232 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4234 * sysdeps/x86_64/memset.S: Rewrite.
4236 2007-10-15 Roland McGrath <roland@redhat.com>
4238 * po/libc.pot: Regenerated.
4240 2007-10-15 Ulrich Drepper <drepper@redhat.com>
4242 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
4246 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
4247 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
4248 address record to T_A/T_AAAA requests.
4250 2007-10-14 Ulrich Drepper <drepper@redhat.com>
4252 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
4254 * posix/glob.c: Add some branch prediction throughout.
4256 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
4259 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
4261 (rfc3484_sort): Make sure that even if qsort doesn't support
4262 stable sorting out sorting here is stable by comparing service_order.
4263 (getaddrinfo): Initialize service_order.
4264 * posix/tst-rfc3484.c (do_test): Adjust for addition of
4265 service_order field to sorting structure.
4266 * posix/tst-rfc3484-2.c (do_test): Likewise.
4268 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
4269 * time/tzset.c (tzset_internal): Break TZ string parsing out into
4270 __tzset_parse_tz and updating of daylight, timezone, tzname into
4272 (__tz_compute): Renamed from tz_compute. Take additional parameters.
4273 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
4274 happens in __tz_compute.
4275 * time/tzfile.c (__tzfile_read): Also read TZ string.
4276 (find_transition): Fold into __tzfile_compute.
4277 (__tzfile_compute): For times beyond the last transition try to
4279 * timezone/tst-timezone.c: Information in daylight and tzname does
4280 change for Asia/Tokyo timezone with more concrete information.
4283 * include/stdio.h: Add libc_hidden_proto for ftello.
4284 * libio/ftello.c: Add libc_hidden_def.
4287 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
4288 on the specified time and not the last entries in the file. Move
4289 code to determine tzname[] to...
4290 (find_transition): ...here. Add ugly guess for times before the
4293 2007-10-13 Ulrich Drepper <drepper@redhat.com>
4296 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
4298 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
4299 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4300 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4301 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4303 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
4304 read mechanism when there are no group members and avoid no-op
4305 read syscall in this case.
4308 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
4309 (__readall): If reading failed due to EAGAIN error wait a bit
4310 and possibly try again.
4311 (__readvall): Likewise.
4313 2007-10-13 Bruno Haible <bruno@clisp.org>
4315 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
4316 when we cannot recode the message.
4318 2007-10-13 Ulrich Drepper <drepper@redhat.com>
4321 * libio/__freading.c (__freading): Don't return true for
4322 write-only streams. For read/write streams, check whether we
4323 performed a read operation already.
4324 * libio/Makefile (tests): Add tst-ext2.
4325 * libio/tst-ext2.c: New file.
4327 2007-10-12 Ulrich Drepper <drepper@redhat.com>
4329 * locale/programs/repertoire.c (repertoire_read): Always free
4330 memory for repertoire file name [Coverity CID 270].
4332 * elf/cache.c (save_aux_cache): Free memory allocated for
4333 temporary file name [Coverity CID 267].
4335 2007-10-12 Jakub Jelinek <jakub@redhat.com>
4337 * misc/Makefile (headers): Add bits/error.h.
4339 2007-10-12 Ulrich Drepper <drepper@redhat.com>
4341 * posix/fnmatch_loop.c: Take rule index returned as part of
4342 findidx return value into account when accessing weights.
4343 * posix/regcomp.c: Likewise.
4344 * posix/regexec.c: Likewise.
4346 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
4347 (skip_to): Fix problems with parameter of elifdef/elifndef.
4349 2007-10-11 Ulrich Drepper <drepper@redhat.com>
4351 * iconv/gconv_simple.c: Add some branch prediction.
4353 2007-10-12 Jakub Jelinek <jakub@redhat.com>
4355 * locale/programs/ld-collate.c (collate_read): If ignore_content
4356 and nowtok is tok_define, eat any tok_eol tokens.
4358 2007-10-11 Jakub Jelinek <jakub@redhat.com>
4360 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
4361 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
4363 * inet/netinet/in.h: Don't include bits/socket.h.
4364 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
4366 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
4368 2007-10-10 Ulrich Drepper <drepper@redhat.com>
4370 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
4372 * locale/programs/locfile-kw.gperf: Likewise.
4373 * locale/programs/ld-collate.c: Implement primitive preprocessor.
4375 2007-10-10 Jakub Jelinek <jakub@redhat.com>
4377 * stdio-common/printf-parse.h: Include string.h and wchar.h.
4378 (__find_specwc): Change into __extern_always_inline function.
4379 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
4380 (__parse_one_specmb): Remove ps argument.
4381 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
4382 Adjust __find_specmb and __parse_one_specmb callers.
4383 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
4384 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
4386 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
4389 2007-10-09 Ulrich Drepper <drepper@redhat.com>
4391 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
4392 with some Pentium Ds.
4394 2007-10-08 Ulrich Drepper <drepper@redhat.com>
4396 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
4398 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
4401 2007-10-07 Ulrich Drepper <drepper@redhat.com>
4404 * locale/C-time.c: Set week_1stday data to 19971201.
4405 * locale/programs/ld-time.c (time_finish): Default for
4406 first_workday is Monday.
4409 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
4412 * posix/glob.c (glob): Recognize patterns starting \/.
4413 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
4414 (main): Add test for pattern starting \/.
4416 * misc/error.h: Use __const instead of const.
4417 * misc/bits/error.h: Likewise.
4419 2007-10-07 Andreas Jaeger <aj@suse.de>
4421 * include/bits/error.h: New file.
4423 * misc/bits/error.h (error_at_line): Fix prototype.
4425 2007-10-06 Ulrich Drepper <drepper@redhat.com>
4428 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
4429 more little bugs in creating the stack frame when pltexit has to
4432 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
4433 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
4436 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
4437 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4438 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
4439 * math/libm-test.inc: Add test for this case.
4442 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
4443 (svc_register): Initialize sc_mapped. Set to TRUE if call to
4444 map service succeeded.
4445 (svc_is_mapped): New function.
4446 (svc_unregister): Use it before trying to unmap service.
4448 2007-10-05 Ulrich Drepper <drepper@redhat.com>
4450 * timezone/zic.c: Update from tzcode2007h.
4453 * timezone/africa: Update from tzdata2007h.
4454 * timezone/antarctica: Likewise.
4455 * timezone/asia: Likewise.
4456 * timezone/australasia: Likewise.
4457 * timezone/europe: Likewise.
4458 * timezone/leapseconds: Likewise.
4459 * timezone/northamerica: Likewise.
4460 * timezone/southamerica: Likewise.
4461 * timzeone/zone.tab: Likewise.
4464 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
4467 * string/bits/string2.h (__strdup): Cast parameters to calloc to
4468 avoid warning with -Wconversion.
4469 (__strndup): Likewise.
4470 Half the patch by Christian Iseli <christian.iseli@licr.org>.
4473 * nscd/connections.c (restart): Don't resync if database is
4474 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
4476 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
4477 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
4479 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
4480 evetnfd_read, eventfd_write.
4481 * sysdeps/unix/sysv/linux/eventfd.c: New file.
4482 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
4483 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
4484 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
4485 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
4486 eventfd_write for GLIBC_2.7.
4488 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
4489 * sysdeps/unix/sysv/linux/signalfd.c: New file.
4490 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
4491 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
4493 2007-10-04 Jakub Jelinek <jakub@redhat.com>
4495 * stdlib/msort.c: Include stdint.h.
4496 (struct msort_param): New type.
4497 (msort_with_tmp): Use struct msort_param pointer for unchanging
4498 parameters. Add optimized handling for several common sizes
4499 and indirect sorting mode.
4500 (qsort): Adjust msort_with_tmp callers. For big S use indirect
4502 Suggested by Belazougui Djamel .
4504 * stdlib/Makefile (tests): Add tst-qsort2.
4505 * stdlib/tst-qsort2.c: New test.
4507 2007-10-04 Ulrich Drepper <drepper@redhat.com>
4509 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
4510 for dup2 in case another thread races with the current one. Retry
4513 * misc/error.h: Remove support for use outside of libc. We have to
4514 include <features.h> now. Include <bits/error.h> if possible.
4515 * misc/bits/error.h: New file.
4517 2007-10-03 Jakub Jelinek <jakub@redhat.com>
4519 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
4520 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
4521 __extern_always_inline functions unconditionally, drop macros.
4523 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
4524 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
4525 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
4527 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
4528 add __artificial__ attribute.
4530 2007-10-02 Ulrich Drepper <drepper@redhat.com>
4532 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
4533 backward to forward direction.
4535 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
4538 * locale/programs/ld-collate.c (collate_finish): Compare against last
4539 used section which is known to have rules defined.
4540 (collate_read): After order_start, correctly record order of sections
4541 and queue sections up.
4543 2007-10-01 Ulrich Drepper <drepper@redhat.com>
4546 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
4547 the same number of pages.
4548 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
4550 * locale/programs/ld-collate.c (collate_read): After initial copy
4551 statement, continue in state 0.
4553 * include/stdio_ext.h (__fsetlocking): Define as macro.
4555 2007-09-30 Ulrich Drepper <drepper@redhat.com>
4557 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
4560 * po/pt_BR.po: Fix typo.
4562 2007-09-29 Ulrich Drepper <drepper@redhat.com>
4564 * iconvdata/Makefile (modules): Add ISO8859-9E.
4565 (distribute): Add iso8859-9e.c.
4566 (gen-8bit-gap-modules): Add iso8859-9e.
4567 * iconvdata/iso8859-9e.c: New file.
4568 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
4569 * iconvdata/TESTS: Likewise.
4570 * iconvdata/tst-tables.sh: Likewise.
4572 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4574 * locale/iso-639.def: Add several new entries.
4576 2007-09-24 Jakub Jelinek <jakub@redhat.com>
4578 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
4579 void * pointers instead of struct link_map **.
4580 (_dl_scope_free): Change argument type to void *.
4581 * include/link.h (struct link_map): Change type of l_reldeps
4582 to struct link_map_reldeps, move l_reldepsact into that
4584 * elf/dl-deps.c: Include atomic.h.
4585 (_dl_map_object_deps): Only change l->l_initfini when it is
4586 fully populated, use _dl_scope_free for freeing it. Optimize
4587 removal of libs from reldeps by using l_reserved flag, when
4588 some removal is needed, allocate a new list instead of
4589 reallocating and free the old with _dl_scope_free. Adjust
4590 for l_reldeps and l_reldepsact changes.
4591 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
4592 searching in l_initfini and l_reldeps without holding dl_load_lock.
4593 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
4594 l_reldepsact changes.
4595 * elf/dl-close.c (_dl_close_worker): Likewise.
4596 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
4598 2007-09-28 Ulrich Drepper <drepper@redhat.com>
4600 * iconvdata/Makefile (modules): Add KOI8-RU.
4601 (distribute): Add koi8-ru.c.
4602 (gen-8bit-gap-modules): Add koi8-ru.
4603 * iconvdata/koi8-ru.c: New file.
4604 * iconvdata/gconv-modules: Add entries for KOI8-RU.
4605 * iconvdata/TESTS: Likewise.
4606 * iconvdata/tst-tables.sh: Likewise.
4608 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4610 2007-09-26 Jakub Jelinek <jakub@redhat.com>
4612 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
4613 with __warning__/__error__ attributes.
4614 (__warnattr): Define.
4615 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
4616 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
4618 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
4619 of __*_chk if compile time detectable overflow is found.
4620 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
4621 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
4623 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
4624 instead of __*_chk if compile time detectable overflow is found.
4625 (__gets_alias): Rename to...
4626 (__gets_warn): ... this. Add __warnattr.
4627 (gets): Call __gets_warn instead of __gets_alias.
4628 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
4629 aliases with __warnattr.
4630 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
4631 time detectable overflow is found.
4632 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
4633 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
4634 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
4635 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
4636 __getdomainname_chk_warn): New aliases with __warnattr.
4637 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
4638 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
4639 __*_chk_warn instead of __*_chk if compile time detectable overflow
4641 (__getgroups_chk): Rename argument to __listlen from listlen.
4642 (__getwd_alias): Rename to...
4643 (__getwd_warn): ... this. Add __warnattr.
4644 (getwd): Call __getwd_warn instead of __getwd_alias.
4645 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
4646 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
4647 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
4648 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
4649 __wcsnrtombs_chk_warn): New aliases with __warnattr.
4650 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
4651 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
4652 compile time detectable overflow is found.
4653 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
4654 to use __*_chk or not.
4655 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
4656 in comparisons which function should be called and in __*_chk*
4657 arguments. Call __*_chk_warn instead of __*_chk if compile time
4658 detectable overflow is found.
4659 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
4661 * debug/tst-chk1.c (do_test): Add a few more tests.
4663 2007-09-24 Ulrich Drepper <drepper@redhat.com>
4666 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
4667 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
4668 (_nl_unload_domain): Finalize conversions_lock.
4669 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
4670 handling table of known conversions.
4672 2007-09-24 Jakub Jelinek <jakub@redhat.com>
4674 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
4675 close_not_cancel_no_status instead of close.
4677 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
4680 * posix/regcomp.c (lookup_collation_sequence_value): Check that
4681 nrules != 0 for multibyte chars.
4683 2007-09-23 Ulrich Drepper <drepper@redhat.com>
4685 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4686 Provide better error message in case the type is unknown.
4689 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4690 * string/stratcliff.c: Make usable to test wide char functions.
4691 * wcsmbs/wcsatcliff.c: New file.
4692 * wcsmbs/Makefiel (tests): Add wcsatcliff.
4695 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4696 (distribute): Add mac-centraleurope.c.
4697 (gen-8bit-gap-modules): Add mac-centraleurope.
4698 * iconvdata/mac-centraleurope.c: New file.
4699 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4700 * iconvdata/TESTS: Likewise.
4701 * iconvdata/tst-tables.sh: Likewise.
4704 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4706 2007-09-21 Ulrich Drepper <drepper@redhat.com>
4708 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4709 from __x86_64_core_cache_size_half.
4710 (init_cacheinfo): Compute shared cache size for AMD processors with
4711 shared L3 correctly.
4712 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4714 Patch in large parts by Evandro Menezes.
4716 2007-09-19 Ulrich Drepper <drepper@redhat.com>
4718 * elf/dl-lookup.c (add_dependency): Handle failing memory
4719 allocation for dependency list. Remove unnecessary check.
4721 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4722 open/close when determining source addresses.
4724 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4725 sha512-crypt, and sha512.
4726 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4727 (distribute): Add sha256.h and sha512.h.
4728 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4729 and call the appropriate code.
4730 * crypt/sha256-crypt.c: New file.
4731 * crypt/sha256.c: New file.
4732 * crypt/sha256.h: New file.
4733 * crypt/sha256c-test.c: New file.
4734 * crypt/sha256test.c: New file.
4735 * crypt/sha512-crypt.c: New file.
4736 * crypt/sha512.c: New file.
4737 * crypt/sha512.h: New file.
4738 * crypt/sha512c-test.c: New file.
4739 * crypt/sha512test.c: New file.
4741 2007-09-19 Jakub Jelinek <jakub@redhat.com>
4743 * misc/bits/syslog.h (syslog): Remove extraneous argument from
4744 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4747 2007-09-18 Jakub Jelinek <jakub@redhat.com>
4749 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4750 %as in fscanf format strings.
4752 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4753 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4754 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4756 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4759 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4760 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4761 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4762 * elf/dl-sym.c (do_sym): Likewise.
4763 * include/link.h (struct link_map): Add l_serial field.
4764 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4765 * elf/dl-lookup.c (add_dependency): Add flags argument.
4766 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4767 flags, use THREAD_GSCOPE_RESET_FLAG before and
4768 THREAD_GSCOPE_SET_FLAG after
4769 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4770 Don't dereference map until it has been found on some list.
4771 If map->l_serial changed, return -1.
4773 2007-09-17 Jakub Jelinek <jakub@redhat.com>
4775 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4776 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4777 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4779 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4780 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4781 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4782 add libc_hidden_proto.
4783 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4784 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4785 conformance requested.
4786 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4787 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4788 conformance requested.
4789 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4790 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4791 conformance requested.
4792 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4793 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4794 ISO C99 or POSIX conformance requested.
4795 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4796 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4797 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4798 and __isoc99_vsscanf@@GLIBC_2.7.
4799 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4800 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4801 (tests): Add scanf14.
4802 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4803 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4804 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4805 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4806 CFLAGS-isoc99_scanf.c): Add $(exceptions).
4807 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4808 from using internal headers.
4809 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4810 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4811 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4812 and __isoc99_vswscanf@@GLIBC_2.7.
4813 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4814 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4815 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4816 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4817 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4818 * stdio-common/isoc99_scanf.c: New file.
4819 * stdio-common/isoc99_vsscanf.c: New file.
4820 * stdio-common/isoc99_vscanf.c: New file.
4821 * stdio-common/isoc99_vfscanf.c: New file.
4822 * stdio-common/isoc99_fscanf.c: New file.
4823 * stdio-common/isoc99_sscanf.c: New file.
4824 * wcsmbs/isoc99_fwscanf.c: New file.
4825 * wcsmbs/isoc99_vswscanf.c: New file.
4826 * wcsmbs/isoc99_swscanf.c: New file.
4827 * wcsmbs/isoc99_wscanf.c: New file.
4828 * wcsmbs/isoc99_vwscanf.c: New file.
4829 * wcsmbs/isoc99_vfwscanf.c: New file.
4830 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4831 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4832 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4833 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4834 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4835 * stdio-common/scanf14.c: New test.
4836 * stdio-common/scanf15.c: New test.
4837 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4838 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4839 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4840 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4841 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4842 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4843 __nldbl___isoc99_scanf@@GLIBC_2.7,
4844 __nldbl___isoc99_fscanf@@GLIBC_2.7,
4845 __nldbl___isoc99_sscanf@@GLIBC_2.7,
4846 __nldbl___isoc99_vscanf@@GLIBC_2.7,
4847 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4848 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4849 __nldbl___isoc99_wscanf@@GLIBC_2.7,
4850 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4851 __nldbl___isoc99_swscanf@@GLIBC_2.7,
4852 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4853 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4854 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4855 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4856 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4857 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4858 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4859 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4860 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4861 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4862 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4863 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4864 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4865 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4866 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4868 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4869 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4870 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4871 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4872 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4873 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4874 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4875 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4876 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4877 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4878 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4879 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4881 * stdio-common/Makefile (tests): Add scanf13.
4883 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4884 m modifier followed by l.
4885 (STRING_ARG): Add width argument.
4886 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4887 <case L_('C')>: Handle %mlc and %mC.
4888 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4890 * stdio-common/scanf13.c: New test.
4892 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4893 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4895 2007-09-18 Ulrich Drepper <drepper@redhat.com>
4897 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4898 type and __THROW marker of splice, vmsplice, and tee.
4899 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4900 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4901 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4902 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4903 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4904 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4905 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4906 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4907 as cancellation points.
4909 2003-11-01 Daniel Jacobowitz <dan@debian.org>
4911 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4912 parse more than three parts of the version number.
4914 2007-09-15 Ulrich Drepper <drepper@redhat.com>
4916 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4917 modifier. Patch by Jakub Jelinek.
4919 2007-08-26 Jakub Jelinek <jakub@redhat.com>
4921 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4922 call_fallocate in misc subdir.
4923 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4924 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4925 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4926 instead of __fallocate64.
4927 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4929 2007-09-15 Jakub Jelinek <jakub@redhat.com>
4931 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4932 * rt/Makefile (headers): Add bits/mqueue2.h.
4933 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4934 optimizing with GCC and __va_arg_pack_len is defined.
4935 * rt/bits/mqueue2.h: New file.
4936 * rt/mq_open.c (__mq_open): Renamed from mq_open.
4937 (mq_open): New strong_alias.
4938 (__mq_open_2): New function.
4939 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4940 (mq_open): New strong_alias.
4941 (__mq_open_2): New function.
4942 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4943 * Versions.def (librt): Add GLIBC_2.7 version.
4944 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4945 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4947 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4948 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4949 is defined rather than when not C++.
4950 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4951 __openat64_alias): New redirects.
4952 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4953 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4954 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4955 (open, open64, openat, openat64): Rewrite as __extern_always_inline
4956 functions instead of function-like macros.
4958 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
4960 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4961 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4962 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4964 2007-09-15 Mike Frysinger <vapier@gentoo.org>
4966 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4967 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4969 2007-09-14 Mike Frysinger <vapier@gentoo.org>
4971 * inet/tst-network.c: Increment ERRORS for failing tests.
4973 2007-09-07 Jakub Jelinek <jakub@redhat.com>
4975 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4976 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4977 implement as __extern_always_inline function.
4978 (vsyslog): Define as __extern_always_inline function unconditionally.
4979 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4980 When __va_arg_pack is defined, implement as __extern_always_inline
4982 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4983 __extern_always_inline functions unconditionally.
4984 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4985 bits/stdio2.h will be included.
4986 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4987 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4988 implement as __extern_always_inline functions.
4989 (vswprintf, vwprintf, vfwprintf): Define as
4990 __extern_always_inline functions unconditionally.
4991 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4993 2007-09-03 Jakub Jelinek <jakub@redhat.com>
4995 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4996 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4998 * include/features.h (__USE_EXTERN_INLINES): Define only when
4999 __extern_inline is defined.
5000 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5001 is defined instead of when not __cplusplus.
5002 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5003 is defined instead of when not __cplusplus.
5004 * socket/sys/socket.h: Include bits/socket2.h when
5005 __extern_always_inline is defined instead of when not __cplusplus.
5006 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5007 is defined instead of when not __cplusplus.
5008 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5009 is defined instead of when not __cplusplus.
5010 * string/string.h: Include bits/string3.h when __extern_always_inline
5011 is defined instead of when not __cplusplus.
5012 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5013 is defined instead of when not __cplusplus.
5014 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5015 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5017 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5018 defined __extern_always_inline instead of !defined __cplusplus.
5019 * libio/bits/stdio-ldbl.h: Likewise.
5020 * wcsmbs/bits/wchar-ldbl.h: Likewise.
5021 * misc/bits/syslog.h (syslog): Don't define for C++.
5022 (vsyslog): Use __extern_always_inline function for C++ instead of
5024 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5025 whenever that macro is defined.
5026 (vprintf): Don't provide the inline for C++.
5027 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5028 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5029 define the macros for C++.
5030 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5031 __extern_always_inline functions for C++.
5032 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5033 stat64, lstat64, fstat64, fstatat64): Don't define if not
5034 __USE_EXTERN_INLINES.
5035 * wcsmbs/bits/wchar2.h: Fix #error message.
5036 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5037 (vswprintf, vwprintf, vfwprintf): Define using
5038 __extern_always_inline functions for C++.
5039 * string/bits/string3.h: Don't #undef macros if __cplusplus.
5040 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5041 strncpy, strcat, strncat): Define as __extern_always_inline
5042 functions instead of macros for C++.
5043 * math/bits/cmathcalls.h: Guard __extern_inline routines with
5044 defined __extern_inline.
5045 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5046 to __extern_inline whenever that macro is defined.
5047 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5048 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5049 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5050 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5051 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5052 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5053 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5054 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5055 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5056 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5057 prototypes. Only provide __extern_inline routines if
5058 __USE_EXTERN_INLINES.
5059 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5061 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5062 For now avoid some *printf tests in C++. Skip all testing
5063 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5065 * debug/tst-chk4.cc: New file.
5066 * debug/tst-chk5.cc: New file.
5067 * debug/tst-chk6.cc: New file.
5068 * debug/tst-lfschk4.cc: New file.
5069 * debug/tst-lfschk5.cc: New file.
5070 * debug/tst-lfschk6.cc: New file.
5071 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5073 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
5074 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
5075 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
5077 2007-09-13 Ulrich Drepper <drepper@redhat.com>
5079 * po/cs.po: Update from translation team.
5081 2007-09-11 Roland McGrath <roland@redhat.com>
5083 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
5086 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5088 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
5090 2007-09-05 Roland McGrath <roland@redhat.com>
5092 * manual/signal.texi (Signaling Another Process): Typo fix.
5093 From Karl Berry <karl@freefriends.org>.
5095 2007-08-29 Ulrich Drepper <drepper@redhat.com>
5097 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
5098 zero if not defined.
5099 (make_request): Recognize optimistic addresses and treat them like
5100 deprecated addresses.
5101 Reported by Neil Horman <nhorman@redhat.com>.
5103 2007-08-28 Ulrich Drepper <drepper@redhat.com>
5105 * nscd/connections.c (send_ro_fd): Also transfer file size.
5106 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
5107 file size don't call fstat.
5109 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
5110 ahead and map the file. This should always be correct and we can
5111 catch problems later.
5113 2007-08-28 Jakub Jelinek <jakub@redhat.com>
5115 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
5117 (__fread_alias, __fread_unlocked_alias): New aliases.
5118 (fread): New extern inline.
5119 (fread_unlocked): Likewise. Undef macro before definition of
5120 the inline function.
5121 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
5122 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
5123 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
5124 and __fread_unlocked_chk@@GLIBC_2.7.
5125 * debug/fread_chk.c: New file.
5126 * debug/fread_u_chk.c: New file.
5127 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
5129 2007-08-27 Jakub Jelinek <jakub@redhat.com>
5131 * sysdeps/unix/sysv/linux/syscalls.list
5132 (personality): Change caller to EXTRA.
5134 2007-08-25 Ulrich Drepper <drepper@redhat.com>
5136 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
5138 * iconvdata/iso-2022-cn.c (BODY): Likewise.
5140 * locale/programs/ld-collate.c (collate_output): Avoid warning if
5143 * Makerules: Use -p option with mkdir.
5145 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
5146 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
5147 (_xdr_directory_obj): Likewise.
5148 (xdr_entry_obj): Likewise.
5149 (xdr_group_obj): Likewise.
5150 (xdr_link_obj): Likewise.
5151 (xdr_table_obj): Likewise.
5152 (_xdr_nis_result): Likewise.
5153 (_xdr_ns_request): Likewise.
5154 (_xdr_ib_request): Likewise.
5155 (_xdr_nis_taglist): Likewise.
5156 (xdr_cback_data): Likewise.
5157 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
5158 (xdr_ypresp_maplist): Likewise.
5160 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
5162 * posix/regex_internal.h: Prevent some declarations and definitions
5163 to be seen when used in tests.
5165 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
5166 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
5168 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
5170 * config.make.in (datarootdir): Add to shut up configure.
5172 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
5173 associativity for fully-associative caches.
5175 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
5176 requests. Fill on more associativity values for L2.
5177 Patch mostly by Evandro Menezes.
5179 2007-08-24 Ulrich Drepper <drepper@redhat.com>
5181 * sysdeps/unix/sysv/linux/x86_64/init-first.c
5182 (_libc_vdso_platform_setup): Avoid using exported variable by using
5185 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
5187 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
5188 fallocate64 as EXTRA. It is not referenced if the symbol isn't
5191 2007-08-23 Ulrich Drepper <drepper@redhat.com>
5193 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
5194 align stack for call if pltexit is to be used.
5197 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
5198 align for function call in case pltexit has to be called later.
5200 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
5201 implicit atomic operation when storing function pointer.
5202 (_dl_runtime_profile): Likewise.
5204 2007-08-17 Jakub Jelinek <jakub@redhat.com>
5206 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
5209 2007-08-21 Ulrich Drepper <drepper@redhat.com>
5212 * string/strtok.c: Fix typo in comment.
5215 * debug/segfault.c: Fix typos in comments.
5218 * stdio-common/tempnam.c: Fix comment, it is not checked that
5219 TMPDIR points to a writable directory.
5222 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
5223 memory allocated for the name server address.
5226 * nscd/connections.c (handle_request): Using sendfile always
5227 requires that mmap is used for the database.
5228 Patch by Petr Baudis <pasky@suse.cz>.
5231 * nscd/hstcache.c (cache_addhst): When reloading an entry which
5232 suddenly has two or more addresses, ignore it and remove the old
5236 * resolv/res_hconf.c: Prepare for compiling outside libc.
5237 * nscd/res_hconf.c: New file.
5238 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
5240 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
5241 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
5243 * nscd/hstcache.c (cache_addhst): Minimal optimization.
5246 * debug/pcprofiledump.c: Turn on internationalization by calling
5247 setlocale. Patch mostly by Benno Schulenberg.
5250 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
5252 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
5253 * iconvdata/bug-iconv5.c: New file.
5255 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
5258 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
5259 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
5260 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
5261 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
5262 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
5263 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
5264 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
5265 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
5267 2007-08-21 Ulrich Drepper <drepper@redhat.com>
5270 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
5271 lookup loop. Suggested by John Reiser.
5273 2007-08-21 Jakub Jelinek <jakub@redhat.com>
5275 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
5277 2007-08-20 Ulrich Drepper <drepper@redhat.com>
5279 * csu/libc-start.c: Don't handle VDSO_SETUP here.
5280 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
5281 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
5282 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
5283 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
5285 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
5287 2007-08-18 Ulrich Drepper <drepper@redhat.com>
5289 * po/nl.po: Update from translation team.
5291 2007-08-16 Andreas Jaeger <aj@suse.de>
5293 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
5294 Reported by Peter Festner <peter.festner@ewetel.net>.
5296 2007-08-17 Jakub Jelinek <jakub@redhat.com>
5298 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
5300 2007-08-16 Jakub Jelinek <jakub@redhat.com>
5302 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
5303 to check for undefined symbols.
5305 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
5306 If the syscall fails, set errno to the actual returned error number
5308 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
5309 arguments are incorrect, set errno to EINVAL, if the syscall
5310 fails, set errno to the actual returned error number.
5312 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
5313 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
5315 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
5316 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
5318 (ASI_PNF, ASI_BLK_P): Don't define.
5319 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
5320 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
5322 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
5323 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
5326 2007-08-15 Jakub Jelinek <jakub@redhat.com>
5328 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
5329 FE_UNDERFLOW on Niagara CPUs.
5331 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
5334 2007-08-14 Jakub Jelinek <jakub@redhat.com>
5336 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
5337 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
5338 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
5339 flush should be used or not inside of the function.
5340 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
5342 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
5343 __thread_start): Use HIDDEN_JUMPTARGET.
5344 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
5345 __thread_start): Likewise.
5346 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
5348 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
5349 Add libc_hidden_proto.
5350 (STRTOF): Add libc_hidden_proto.
5351 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
5352 (strtold_l, wcstold_l): Use them as second argument for
5355 2007-08-14 Ulrich Drepper <drepper@redhat.com>
5357 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
5359 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5361 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
5363 2007-08-14 Ulrich Drepper <drepper@redhat.com>
5365 * po/bg.po: New file. From the translation team.
5367 2007-08-13 Jakub Jelinek <jakub@redhat.com>
5369 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
5370 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
5371 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
5372 when each feature was introduced.
5374 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
5375 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
5376 (CHECK_HASH): New macro.
5377 (PREPARE_VERSION): Use it.
5379 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
5380 prototype if not __ASSUME_PSELECT.
5381 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
5382 prototype if not __ASSUME_PPOLL.
5384 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
5386 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
5387 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
5390 2007-08-13 Ulrich Drepper <drepper@redhat.com>
5392 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5393 (_libc_vdso_platform_setup): If vDSO is not available point
5394 __vdso_gettimeofday to the vsyscall.
5395 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
5396 __vdso_gettimeofday instead of vsyscall.
5398 2007-08-13 Jakub Jelinek <jakub@redhat.com>
5400 * nscd/servicescache.c: Include kernel-features.h.
5401 * nscd/gai.c: Likewise.
5402 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
5403 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
5404 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
5405 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
5406 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
5407 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
5408 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
5409 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
5410 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
5412 2007-08-12 Ulrich Drepper <drepper@redhat.com>
5414 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
5415 and _dl_get_origin defines anymore.
5417 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
5418 Build fix for systems which might lack POSIX timer support.
5420 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5421 (_libc_vdso_platform_setup): Mangle function pointers before storing
5423 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
5424 Demangle vdso pointer before use.
5425 (INTERNAL_VSYSCALL): Likewise.
5427 * elf/cache.c (primes): Mark as const.
5428 Noted by Roland McGrath.
5430 2007-08-01 Andreas Jaeger <aj@suse.de>
5431 Jakub Jelinek <jakub@redhat.com>
5433 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
5434 (options): Add option.
5435 (parse_opt): Handle option.
5436 (manual_link): Adjust process_file caller. Call implicit_soname.
5437 (search_dir): Formatting. Use and populate auxiliary cache.
5438 (main): Load and save auxiliary cache.
5439 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
5440 stat64 from fstat64 to caller.
5441 (implicit_soname): New function.
5442 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
5443 leave *soname as NULL.
5444 * elf/cache.c: Include libgen.h.
5445 (print_entry, print_cache, compare, save_cache, add_to_cache):
5446 Formatting and cleanups.
5447 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
5448 aux_cache_file): New structures.
5449 (AUX_CACHEMAGIC): Define.
5450 (primes): New array.
5451 (aux_hash_size, aux_hash): New variables.
5452 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
5453 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
5454 load_aux_cache, save_aux_cache): New functions.
5455 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
5456 (init_aux_cache, search_aux_cache, add_to_aux_cache,
5457 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
5458 (process_file): Adjust prototype.
5460 2007-08-12 Jakub Jelinek <jakub@redhat.com>
5462 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
5465 2007-08-12 Ulrich Drepper <drepper@redhat.com>
5467 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
5468 r_found_version structure as second parameter.
5469 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
5470 (_dl_vdso_vsym): Change type of second parameter accordingly.
5471 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
5472 (_libc_vdso_platform_setup): Adjust.
5473 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
5474 (_libc_vdso_platform_setup): Likewise.
5476 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
5477 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
5478 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
5479 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
5480 * csu/libc-start.c: Pretty printing.
5481 Use VDSO_SETUP if defined.
5482 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
5483 and let generic code call into _libc_vdso_platform_setup.
5484 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
5485 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
5486 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
5487 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
5488 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
5490 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
5491 (sysdep_rountines): Add dl-vdso.
5493 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
5496 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
5497 attribute_hidden to __vdso_gettimeofday prototype.
5499 2007-08-12 Roland McGrath <roland@redhat.com>
5501 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
5502 From: Karl Berry <karl@freefriends.org>.
5504 2007-08-11 Ulrich Drepper <drepper@redhat.com>
5506 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
5507 an atime update for the files we read.
5509 2007-08-10 Ulrich Drepper <drepper@redhat.com>
5511 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
5513 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
5516 * misc/Makefile (routines): Add mkostemp and mkostemp64.
5517 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
5518 * misc/mkostemp.c: New file.
5519 * misc/mkostemp64.c: New file.
5520 * stdlib/stdlib.h: Declare the new functions.
5521 * sysdeps/posix/tempname.c: Add new parameter which is added to
5522 the flags for open. Remove __GT_BIGFILE handling.
5523 * stdio-common/tempname.c: Likewise.
5524 * include/stdio.h: Adjust __gen_tempname prototype.
5525 Renumber __GT_* constants.
5526 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
5527 * misc/mkdtemp.c: Likewise.
5528 * misc/mkstemp.c: Likewise.
5529 * misc/mkstemp64.c: Likewise.
5530 * misc/mktemp.c: Likewise.
5531 * stdio-common/tempnam.c: Likewise.
5532 * stdio-common/tmpfile.c: Likewise.
5533 * stdio-common/tmpfile64.c: Likewise.
5534 * stdio-common/tmpnam.c: Likewise.
5535 * stdio-common/tmpnam_r.c: Likewise.
5537 2007-08-10 Roland McGrath <roland@frob.com>
5539 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
5541 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
5542 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5544 2007-08-10 Ulrich Drepper <drepper@redhat.com>
5546 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
5548 * nss/nss_files/files-alias.c (internal_setent): Likewise.
5549 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
5550 * nss/nss_files/files-have_o_cloexec.c: New file.
5552 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
5555 2007-08-10 Jakub Jelinek <jakub@redhat.com>
5557 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
5558 ___new_wcstold_l): New weak aliases.
5559 (strtold_l, wcstold_l): Use them as second argument for
5562 2007-08-09 Ulrich Drepper <drepper@redhat.com>
5564 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
5565 register in test for error.
5567 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
5568 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
5570 * po/sv.po: Update from translation team.
5572 2007-08-06 Roland McGrath <roland@redhat.com>
5574 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
5575 Remove __strto*_l inlines.
5576 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
5577 * stdlib/strtod.c: Add libc_hidden_def.
5578 * stdlib/strtod_l.c: Likewise.
5579 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
5580 for __new_strtold and __new_wcstold.
5581 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
5583 * stdlib/strtol.c: Add libc_hidden_def.
5584 * stdlib/strtol_l.c: Likewise.
5585 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
5588 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
5590 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
5591 * scripts/data/localplt-generic.data: ... here.
5592 * elf/Makefile (check-data): Get generic file if no other.
5593 ($(objpfx)check-localplt.out): Make target unconditional.
5595 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
5598 2007-08-05 Ulrich Drepper <drepper@redhat.com>
5600 * po/zh_CN.po: Updated translation from translation team.
5602 2007-08-05 Jakub Jelinek <jakub@redhat.com>
5604 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
5605 Don't use CGOTSETUP and CGOTRESTORE macros.
5607 2007-08-04 Roland McGrath <roland@redhat.com>
5609 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
5611 2007-08-04 Jakub Jelinek <jakub@redhat.com>
5613 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
5614 __extension__ around the whole statement expression.
5616 2007-08-04 Ulrich Drepper <drepper@redhat.com>
5618 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
5619 elements during initialization.
5621 * po/pl.po: Updated translation from translation team.
5622 * po/tr.po: Likewise.
5623 * po/nl.po: Likewise.
5625 2007-08-03 Ulrich Drepper <drepper@redhat.com>
5627 * rt/aio.h: Add __nonnull attributes.
5629 2007-08-03 Jakub Jelinek <jakub@redhat.com>
5631 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
5632 * stdlib/Makefile (tests): Add tst-strtod5.
5633 (tst-strtod5-ENV): New.
5634 * stdlib/tst-strtod5.c: New file.
5636 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
5638 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
5641 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
5644 2007-08-03 Jakub Jelinek <jakub@redhat.com>
5646 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
5649 2007-08-02 Ulrich Drepper <drepper@redhat.com>
5651 * io/Makefile (aux): Add have_o_cloexec.
5652 * include/fcntl.h: Declare __have_o_cloexec.
5653 * io/have_o_cloexec.c: New file.
5654 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
5655 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
5656 fcntl call if not necessary.
5657 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
5660 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
5661 Avoid memset, add explicit initialization.
5662 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
5663 to the end and change into zero-sized array.
5664 Move lock member to fill a hole on 64-bit platforms.
5666 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
5668 * include/stdlib.h: Add __strto*_internal prototypes here.
5669 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
5671 * include/wchar.h: Add __wcsto*_internal prototypes.
5672 * sysdeps/generic/inttypes.h: No need to protect the declaration
5673 of the __strto*_internal and __wcsto*_internal members here.
5675 * rt/mqueue.h: Change const to __const and add nonnull attributes.
5677 2007-08-02 Roland McGrath <roland@redhat.com>
5679 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
5680 $(inst_bindir)/getconf if possible.
5682 * posix/Makefile ($(objpfx)getconf.speclist): New target.
5683 (generated): Add it.
5684 ($(inst_libexecdir)/getconf): Use it.
5686 2007-08-01 Ulrich Drepper <drepper@redhat.com>
5688 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5689 /proc is faster and sufficient. /sys is still needed for
5692 2007-08-01 Jakub Jelinek <jakub@redhat.com>
5694 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5695 syscall as __fallocate64.
5696 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5697 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5699 2007-07-30 Jakub Jelinek <jakub@redhat.com>
5701 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5704 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5705 if off_t is different rank from size_t.
5707 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5708 uw_frame_state_for): Avoid type punning warnings.
5709 * sysdeps/generic/unwind-dw2-fde-glibc.c
5710 (_Unwind_IteratePhdrCallback): Likewise.
5711 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5712 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5713 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5716 2007-07-31 Ulrich Drepper <drepper@redhat.com>
5718 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5719 total processors using sysfs.
5720 (__get_nprocs): Use sysfs to determine which processors are online.
5722 2007-07-31 Jakub Jelinek <jakub@redhat.com>
5724 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5725 syscall arguments count.
5727 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5729 2007-07-30 Roland McGrath <roland@redhat.com>
5731 * manual/libc.texinfo: Update copyrights, formatting magic, and
5732 @dircategory. From Karl Berry <karl@freefriends.org>.
5734 2007-07-29 Ulrich Drepper <drepper@redhat.com>
5737 * io/Makefile (headers): Add bits/fcntl2.h.
5739 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5741 (__CPU_EQUAL_S): Likewise.
5743 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5744 (tests): Add tst-cpuset.
5745 * posix/sched_cpualloc.c: New file.
5746 * posix/sched_cpufree.c: New file.
5747 * posix/tst-cpuset.c: New file.
5748 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5750 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5751 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5752 macros. Define CPU_*_S macros.
5754 2007-07-28 Ulrich Drepper <drepper@redhat.com>
5756 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5760 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5761 #.0g and value rounded to 1.0.
5762 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5764 2007-07-26 Jakub Jelinek <jakub@redhat.com>
5766 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5767 for int_frac_digits and frac_digits.
5769 * login/logout.c (logout): Avoid aliasing violation.
5770 * login/logwtmp.c (logwtmp): Likewise.
5772 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5774 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5776 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5778 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5780 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5783 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5785 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5787 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5788 char * to avoid warning.
5789 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5791 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5793 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5794 allocate_arrays): Cast second argument to charmap_find_symbol
5795 to char * to avoid warnings.
5797 * locale/programs/repertoire.c (repertoire_new_char): Change
5798 from_nr, to_nr and cnt to unsigned long, adjust printf format
5801 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5802 Cast second argument to new_element to char * to avoid warnings.
5804 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5806 * intl/gettextP.h (struct loaded_domain): Change plural to const
5807 struct expression *.
5808 * intl/plural-eval.c (plural_eval): Change first argument to
5809 const struct expression *.
5810 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5811 argument to const struct expression **.
5812 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5814 * intl/loadmsgcat (_nl_unload_domain): Cast away const
5815 in call to __gettext_free_exp.
5817 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5818 unitialized wstring/wpattern var warnings.
5820 * posix/runtests.c (struct a_test): Make data field const char *.
5822 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5823 vars if not LDBL_MANT_DIG >= 106.
5825 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5827 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5828 __find_specmb to avoid warning.
5830 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5832 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5835 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5838 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5839 tv var when it will be actually used.
5841 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5844 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5845 char array resp. pointer.
5846 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5848 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5849 to const unsigned char **.
5850 (ucs4_to_cns11643): Change second argument to unsigned char *.
5851 * iconvdata/euc-tw.c (BODY): Change endp type to
5852 const unsigned char *.
5853 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5855 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5856 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5857 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5858 types to unsigned char pointers/arrays instead of char.
5859 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5861 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5862 * iconvdata/jis0212.h: Include assert.h.
5863 (ucs4_to_jisx0212): Change second argument to unsigned char *.
5864 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5865 of trying to handle that.
5866 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5868 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5869 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5870 two dimensional const unsigned char arrays.
5871 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5872 Initialize endp to inptr to shut up a warning.
5874 2007-07-20 Jakub Jelinek <jakub@redhat.com>
5877 * time/strptime_l.c (__strptime_internal): Silently ignore
5878 strftime modifiers and field width in recursive calls.
5880 * include/time.h (enum ptime_locale_status): Remove.
5881 (__strptime_internal): Remove decided and era_cnt arguments,
5882 add statep argument.
5883 * time/strptime_l.c (__strptime_internal): Remove decided
5884 and era_cnt arguments, add statep argument. Don't recompute
5885 any fields in recursive calls, only update caller's tm
5886 and state, if recursive call fails, don't change tm nor
5888 (get_alt_number): Adjust.
5889 (recursive): Adjust caller.
5890 (strptime): Likewise.
5891 * time/strptime.c (strptime): Likewise.
5893 2007-07-19 Jakub Jelinek <jakub@redhat.com>
5895 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5896 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5897 if from and to charsets are the same.
5898 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5899 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5900 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5902 2007-07-17 Jakub Jelinek <jakub@redhat.com>
5904 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5905 Don't define wint_t when __need_mbstate_t unless it
5907 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5908 in the typedef if possible.
5909 * wctype/wctype.h (wint_t): Define by including
5910 wchar.h with __need_wint_t instead of including stddef.h
5911 with __need_wint_t and as fallback definining it ourselves.
5912 * iconv/gconv.h (__need_wint_t): Define before including
5914 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5915 or _GLIBCPP_USE_WCHAR_T.
5916 (__need_wchar_t): Don't define
5917 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5918 (__need_wint_t): Don't define before including stddef.h,
5919 define before including wchar.h only if _LIBC or
5920 _GLIBCPP_USE_WCHAR_T.
5921 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5922 * sysdeps/mach/hurd/_G_config.h: Likewise.
5923 * sysdeps/generic/_G_config.h: Likewise.
5924 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5925 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5926 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5927 if _LIBC or _GLIBCPP_USE_WCHAR_T.
5929 2007-07-28 Ulrich Drepper <drepper@redhat.com>
5931 * sysdeps/posix/posix_fallocate64.c: Undefine
5932 __posix_fallocate64_l64 before alias handling.
5933 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5934 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5935 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5936 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5938 * io/tst-posix_fallocate.c: Include <fcntl.h>.
5940 2007-07-23 Jakub Jelinek <jakub@redhat.com>
5942 * locale/programs/ld-collate.c (atwc): New variable.
5943 (add_to_tablewc): New toplevel function, moved from collate_output.
5944 (collate_output): Remove add_to_tablewc nested function.
5946 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5947 (name_insert): New function.
5948 (write_output): Remove hash_table and hash_size vars and name_insert
5951 2007-07-24 Roland McGrath <roland@redhat.com>
5953 * Makerules (install-others-programs-nosubdir): New target.
5954 (install-no-libc.a-nosubdir): Depend on it.
5956 * iconv/Makefile (install-others-programs): Set this instead of
5958 * login/Makefile (install-others-programs): Likewise.
5959 * posix/Makefile (install-others-programs): Likewise.
5961 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5964 2007-07-23 Ulrich Drepper <drepper@redhat.com>
5966 * io/Makefile (tests): Add tst-posix_fallocate.
5967 * io/tst-posix_fallocate.c: New file.
5969 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5972 2007-07-22 Roland McGrath <roland@frob.com>
5974 * hurd/getdport.c: Add missing copyright year update.
5976 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5977 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5979 2007-07-22 Ulrich Drepper <drepper@redhat.com>
5981 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5983 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5984 O_CLOEXEC is needed.
5985 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5986 Avoid additional fcntl to set O_CLOEXEC if not needed.
5987 * nis/nss_compat/compat-initgroups.c: Likewise.
5988 * nis/nss_compat/compat-pwd.c: Likewise.
5989 * nis/nss_compat/compat-spwd.c: Likewise.
5991 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5994 * manual/errno.texi: Change ECANCELED value to 119.
5997 * mach/lock-intern.h: Include <sys/cdefs.h>.
6000 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6004 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6007 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6009 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
6011 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6013 * sysdeps/mach/hurd/i386/tls.h: Likewise.
6015 2007-07-21 Ulrich Drepper <drepper@redhat.com>
6017 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6018 descriptor received from nscd.
6020 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6022 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6023 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6024 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6025 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6026 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6027 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6029 2007-07-20 Jakub Jelinek <jakub@redhat.com>
6032 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6035 * login/forkpty.c (forkpty): Close master and slave fds on
6036 fork failure. Patch by
6037 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6039 2007-07-18 Jakub Jelinek <jakub@redhat.com>
6041 * include/features.h (__USE_ISOC95): New define.
6042 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6043 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6044 for -std=iso9899:199409.
6045 * CONFORMANCE: Remove comments about unsupported AMD1.
6047 2007-07-17 Jakub Jelinek <jakub@redhat.com>
6049 * sysdeps/ia64/sched_cpucount.c: New file.
6050 * sysdeps/powerpc/sched_cpucount.c: New file.
6052 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6053 __BEGIN_DECLS/__END_DECLS around the prototype.
6054 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
6055 pointer to const cpu_set_t.
6057 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6058 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6059 __need_size_t and include stddef.h.
6060 * sysvipc/sys/msg.h: Likewise.
6061 * posix/sched.h: Likewise.
6062 * hurd/hurd/signal.h (__need_size_t): Define.
6064 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6065 neither does signal.h in pedantic ISO C namespaces. stdio.h
6066 no longer defines wint_t or wchar_t.
6068 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6069 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6070 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6071 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6072 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
6073 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
6074 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
6075 * debug/printf_chk.c (__printf_chk): Likewise.
6076 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
6077 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
6079 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
6082 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
6083 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
6085 2007-07-16 Jakub Jelinek <jakub@redhat.com>
6088 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
6089 * malloc/malloc.h (realloc): Likewise.
6091 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
6092 if one of proc_file_chain streams has that fileno.
6093 * stdio-common/Makefile (tests): Add tst-popen2.
6094 * stdio-common/tst-popen2.c: New test.
6096 2007-07-14 Jakub Jelinek <jakub@redhat.com>
6098 * elf/ldconfig.c: Allow GPLv2 or any later version.
6099 * elf/readlib.c: Likewise.
6100 * elf/chroot_canon.c: Likewise.
6101 * elf/cache.c: Likewise.
6102 * nscd/mem.c: Likewise.
6103 * nscd/getpwuid_r.c: Likewise.
6104 * nscd/grpcache.c: Likewise.
6105 * nscd/aicache.c: Likewise.
6106 * nscd/getsrvbynm_r.c: Likewise.
6107 * nscd/nscd.c: Likewise.
6108 * nscd/servicescache.c: Likewise.
6109 * nscd/getsrvbypt_r.c: Likewise.
6110 * nscd/initgrcache.c: Likewise.
6111 * nscd/gethstbyad_r.c: Likewise.
6112 * nscd/gethstbynm2_r.c: Likewise.
6113 * nscd/getgrnam_r.c: Likewise.
6114 * nscd/nscd_setup_thread.c: Likewise.
6115 * nscd/getpwnam_r.c: Likewise.
6116 * nscd/gai.c: Likewise.
6117 * nscd/connections.c: Likewise.
6118 * nscd/dbg_log.c: Likewise.
6119 * nscd/cache.c: Likewise.
6120 * nscd/hstcache.c: Likewise.
6121 * nscd/nscd_conf.c: Likewise.
6122 * nscd/getgrgid_r.c: Likewise.
6123 * nscd/pwdcache.c: Likewise.
6124 * catgets/gencat.c: Likewise.
6125 * locale/programs/linereader.h: Likewise.
6126 * locale/programs/locarchive.c: Likewise.
6127 * locale/programs/ld-paper.c: Likewise.
6128 * locale/programs/locfile-kw.h: Likewise.
6129 * locale/programs/ld-address.c: Likewise.
6130 * locale/programs/xmalloc.c: Likewise.
6131 * locale/programs/ld-time.c: Likewise.
6132 * locale/programs/localedef.c: Likewise.
6133 * locale/programs/simple-hash.c: Likewise.
6134 * locale/programs/xstrdup.c: Likewise.
6135 * locale/programs/ld-numeric.c: Likewise.
6136 * locale/programs/locfile-kw.gperf: Likewise.
6137 * locale/programs/ld-collate.c: Likewise.
6138 * locale/programs/charmap-kw.gperf: Likewise.
6139 * locale/programs/charmap.h: Likewise.
6140 * locale/programs/charmap-kw.h: Likewise.
6141 * locale/programs/config.h: Likewise.
6142 * locale/programs/locfile.c: Likewise.
6143 * locale/programs/ld-ctype.c: Likewise.
6144 * locale/programs/charmap.c: Likewise.
6145 * locale/programs/ld-messages.c: Likewise.
6146 * locale/programs/repertoire.h: Likewise.
6147 * locale/programs/locale.c: Likewise.
6148 * locale/programs/ld-name.c: Likewise.
6149 * locale/programs/linereader.c: Likewise.
6150 * locale/programs/locfile.h: Likewise.
6151 * locale/programs/3level.h: Likewise.
6152 * locale/programs/ld-monetary.c: Likewise.
6153 * locale/programs/ld-measurement.c: Likewise.
6154 * locale/programs/charmap-dir.c: Likewise.
6155 * locale/programs/ld-identification.c: Likewise.
6156 * locale/programs/localedef.h: Likewise.
6157 * locale/programs/charmap-dir.h: Likewise.
6158 * locale/programs/repertoire.c: Likewise.
6159 * locale/programs/simple-hash.h: Likewise.
6160 * locale/programs/ld-telephone.c: Likewise.
6161 * locale/programs/locale-spec.c: Likewise.
6162 * locale/programs/locfile-token.h: Likewise.
6163 * posix/getconf.c: Likewise.
6164 * iconv/dummy-repertoire.c: Likewise.
6165 * iconv/iconv_charmap.c: Likewise.
6166 * iconv/iconvconfig.c: Likewise.
6167 * iconv/iconv_prog.c: Likewise.
6168 * malloc/memusagestat.c: Likewise.
6169 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
6171 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6173 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
6174 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
6175 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
6176 check for the first argument.
6178 2007-07-12 Jakub Jelinek <jakub@redhat.com>
6181 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
6182 (__tgmath_real_type): Fix if expr is const int or other const
6183 qualified integral type.
6184 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
6185 expressions and handle const qualified arguments.
6186 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
6187 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
6188 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
6189 statement expressions.
6190 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
6191 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
6192 (__TGMATH_UNARY_IMAG): Define.
6193 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
6194 * math/Makefile (tests): Add test-tgmath2.
6195 (CFLAGS-test-tgmath2.c): Add.
6196 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
6197 count_cfloat, count_cldouble): New variables.
6199 (main): Check number of complex calls as well.
6200 (F(compile_test)): Add complex tests and tests with const qualified
6202 (y, z, ccount): Define.
6203 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
6204 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
6205 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
6206 F(cproj)): New functions.
6207 * math/test-tgmath2.c: New test.
6209 2007-07-11 Jakub Jelinek <jakub@redhat.com>
6212 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
6213 RPATH etc. as "/" rather than "", don't segfault on empty paths,
6215 * dlfcn/Makefile (distribute): Add glreflib3.c.
6216 (module-names): Add glreflib3.
6217 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
6219 (LDFLAGS_glreflib3.so): New.
6220 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
6222 * dlfcn/glreflib3.c: New file.
6224 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
6225 returned -1, return NULL.
6226 * intl/explodename.c (_nl_explode_name): Return -1 if
6227 _nl_normalize_codeset failed.
6229 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
6231 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
6232 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
6233 and avoid branch misspredicts for > 31 bytes memset case.
6234 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6235 Remove toc ref to __cache_line_size.
6237 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
6238 to get ISA-V2.0 branch hints.
6239 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
6240 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
6241 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6242 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6243 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6244 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
6245 Remove toc ref to __cache_line_size.
6247 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
6248 Include math_ldbl_opt.h.
6250 2007-07-10 Ulrich Drepper <drepper@redhat.com>
6253 * time/strptime_l.c (__strptime_internal): Implement greedy
6254 matching of weekday and month names.
6256 2007-07-09 Roland McGrath <roland@redhat.com>
6258 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
6259 (ELF_NOTE_ABI): Use it.
6260 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
6262 2007-07-09 Ulrich Drepper <drepper@redhat.com>
6264 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
6265 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6267 2007-07-07 Ulrich Drepper <drepper@redhat.com>
6270 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
6271 in loop to look for conversion specifier to avoid testing of
6273 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
6274 * stdio-common/bug18.c: New file.
6275 * stdio-common/bug18a.c: New file.
6276 * stdio-common/bug19.c: New file.
6277 * stdio-common/bug19a.c: New file.
6279 2007-07-05 Mike Frysinger <vapier@gentoo.org>
6281 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
6284 2007-07-01 Jakub Jelinek <jakub@redhat.com>
6286 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
6287 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
6288 Return NULL if mmap failed instead of asserting it does not.
6289 (calloc): Check for integer overflow.
6291 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
6294 2007-07-03 Jakub Jelinek <jakub@redhat.com>
6297 * nis/nss-default.c: Include errno.h.
6298 (init): Preserve errno.
6300 2007-07-02 Ulrich Drepper <drepper@redhat.com>
6302 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
6304 2007-06-30 Ulrich Drepper <drepper@redhat.com>
6306 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
6308 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
6310 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
6312 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
6314 * sysdeps/s390/dl-procinfo.c: New file.
6315 * sysdeps/s390/dl-procinfo.h: New file.
6316 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
6318 2007-06-29 Jakub Jelinek <jakub@redhat.com>
6320 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
6321 in PT_NOTE segments with multiple notes.
6322 * elf/readelflib.c (process_elf_file): Likewise.
6324 2007-06-22 Ulrich Drepper <drepper@redhat.com>
6326 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
6329 2007-06-19 Ulrich Drepper <drepper@redhat.com>
6331 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
6333 2007-06-13 Jakub Jelinek <jakub@redhat.com>
6335 * include/link.h: Don't include rtld-lowlevel.h.
6336 (struct link_map): Remove l_scope_lock.
6337 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
6338 (_dl_scope_free_list): New field (variable) in _rtld_global.
6339 (DL_LOOKUP_SCOPE_LOCK): Remove.
6340 (_dl_scope_free): New prototype.
6341 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
6342 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
6343 (_dl_profile_fixup): Likewise.
6344 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
6345 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
6346 THREAD_GSCOPE_RESET_FLAG around it.
6347 * elf/dl-close.c (_dl_close_worker): Don't use
6348 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
6349 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
6350 scopes were queued or if l_scope_mem has been abandoned.
6351 * elf/dl-open.c (_dl_scope_free): New function.
6352 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
6353 * elf/dl-support.c (_dl_scope_free_list): New variable.
6354 * elf/dl-lookup.c (add_dependency): Remove flags argument.
6355 Remove DL_LOOKUP_SCOPE_LOCK handling.
6356 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
6358 * elf/dl-object.c (_dl_new_object): Don't use
6359 __rtld_mrlock_initialize.
6361 2007-06-19 Ulrich Drepper <drepper@redhat.com>
6363 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
6365 (rtld_global_ro): Likewise.
6367 2007-06-18 Jakub Jelinek <jakub@redhat.com>
6369 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
6370 Move PT_LOAD checking to...
6371 (_dl_addr_inside_object): ... here, new function.
6372 * elf/dl-sym.c (do_sym): If not l_contiguous,
6373 call _dl_addr_inside_object.
6374 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6375 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
6376 * elf/dl-open.c (dl_open_worker): Likewise.
6377 (_dl_addr_inside_object): New function if IS_IN_rtld.
6378 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
6379 holes are present or are PROT_NONE protected.
6380 * include/link.h (struct link_map): Add l_contiguous field.
6381 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
6383 2007-06-18 Jakub Jelinek <jakub@redhat.com>
6384 Tomas Janousek <tjanouse@redhat.com>
6385 Ulrich Drepper <drepper@redhat.com>
6388 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
6389 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
6391 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
6392 unused member a bitmap.
6393 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
6394 servers are configured.
6396 2007-06-18 Jakub Jelinek <jakub@redhat.com>
6398 * elf/rtld.c (dl_main): Don't call init_tls more than once.
6400 2007-06-17 Andreas Schwab <schwab@suse.de>
6402 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
6404 2007-06-16 Andreas Jaeger <aj@suse.de>
6407 * sysdeps/unix/sysv/linux/sys/ptrace.h
6408 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
6409 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
6410 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
6411 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
6412 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
6414 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6415 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6416 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6417 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6419 2007-06-16 Ulrich Drepper <drepper@redhat.com>
6422 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
6423 determining whether there are IPv4/IPv6 addresses, ignore loopback
6426 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
6428 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
6429 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
6430 as the return type. Change type of "r" variable to CMPtype.
6431 * soft-fp/eqsf2.c (__eqsf2): Likewise.
6432 * soft-fp/eqtf2.c (__eqtf2): Likewise.
6433 * soft-fp/gedf2.c (__gedf2): Likewise.
6434 * soft-fp/gesf2.c (__gesf2): Likewise.
6435 * soft-fp/getf2.c (__getf2): Likewise.
6436 * soft-fp/ledf2.c (__ledf2): Likewise.
6437 * soft-fp/lesf2.c (__lesf2): Likewise.
6438 * soft-fp/letf2.c (__letf2): Likewise.
6439 * soft-fp/unorddf2 (__unorddf2): Likewise.
6440 * soft-fp/unordsf2 (__unordsf2): Likewise.
6441 * soft-fp/unordtf2 (__unordtf2): Likewise.
6443 2007-06-09 Ulrich Drepper <drepper@redhat.com>
6445 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
6446 make sure gcc doesn't mess around with this.
6448 2007-06-08 Ulrich Drepper <drepper@redhat.com>
6450 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
6452 2007-06-08 Jakub Jelinek <jakub@redhat.com>
6454 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
6455 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
6456 at most once per _dl_close_worker.
6458 2007-06-08 Ulrich Drepper <drepper@redhat.com>
6460 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
6461 __sched_cpucount as const.
6462 * posix/sched_cpucount.c: Adjust.
6464 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
6465 instruction for counting bits.
6466 * sysdeps/x86_64/sched_cpucount.c: New file.
6468 2007-06-07 Ulrich Drepper <drepper@redhat.com>
6470 * configure.in: Avoid variable named BASH.
6471 * config.make.in: Likewise.
6472 Patch in part by Mike Frysinger.
6474 2007-06-06 Jakub Jelinek <jakub@redhat.com>
6477 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
6478 pseudo-zeros as zero.
6479 * sysdeps/x86_64/ldbl2mpn.c: New file.
6480 * sysdeps/ia64/ldbl2mpn.c: New file.
6482 2007-06-04 Jakub Jelinek <jakub@redhat.com>
6484 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
6485 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
6486 Remove unreachable code at the end.
6488 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
6490 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
6491 ldbl-128ibm in comment.
6492 (fpclassifyl): Correct classification of denormals.
6493 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
6494 return value for MIN denormal. Rewrite using long double math too
6495 correctly handle denormals and canonicalize the results.
6497 2007-06-05 Jakub Jelinek <jakub@redhat.com>
6499 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
6500 (__mpn_construct_long_double): Fix conversion where result ought
6501 to be smaller than __LDBL_MIN__, or the low double should be
6502 denormal. Fix decision where to negate low double - honor round
6504 * stdio-common/tst-sprintf2.c: Include string.h.
6505 (COMPARE_LDBL): Define.
6506 (TEST): Also test whether a string hexadecimal float representation
6507 can be parsed back to the number.
6508 (main): Add a couple of further tests.
6510 2007-06-04 Jakub Jelinek <jakub@redhat.com>
6512 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
6513 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
6514 is non-zero, but smaller than 2 * __DBL_MIN__.
6515 * stdio-common/tst-sprintf2.c: New test.
6516 * stdio-common/Makefile (tests): Add tst-sprintf2.
6518 * math/test-misc.c (main): Don't run last batch of tests with
6519 IBM long double format.
6521 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
6523 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
6524 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
6525 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
6526 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
6527 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6528 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
6529 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
6530 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
6531 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
6532 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6533 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
6534 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
6536 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
6538 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
6540 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
6542 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
6544 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
6545 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
6547 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
6549 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
6551 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
6553 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
6556 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
6558 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
6559 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
6560 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
6561 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
6562 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
6563 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
6564 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
6565 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
6567 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
6569 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
6570 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6571 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
6572 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6573 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
6574 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6575 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
6576 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6578 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
6580 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
6581 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
6582 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
6583 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
6585 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
6587 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
6588 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
6590 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
6592 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
6593 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
6594 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
6595 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
6597 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
6599 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
6600 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
6602 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
6604 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
6605 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
6607 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
6608 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
6609 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
6610 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6612 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
6614 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
6615 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
6616 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
6617 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
6619 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
6621 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
6622 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
6623 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
6624 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6625 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
6626 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6628 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
6630 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
6631 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
6632 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
6633 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
6635 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
6637 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
6638 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
6639 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
6640 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
6641 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
6642 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
6643 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
6644 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
6645 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
6646 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
6647 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
6648 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
6649 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
6650 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
6651 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
6652 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
6654 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
6656 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
6657 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
6659 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
6661 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
6662 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
6664 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
6666 * sysdeps/powerpc/powerpc32/970/Implies: New file.
6667 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
6668 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
6669 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
6670 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
6671 * sysdeps/powerpc/powerpc64/970/Implies: New file.
6672 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
6673 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
6674 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
6675 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
6677 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
6679 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
6681 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
6683 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6684 branch miss-predicts. Ensure that cache line crossing does not impact
6687 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
6689 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6690 "../../powerpc32/power4/memcopy.h".
6691 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6692 "../../powerpc32/power4/wordcopy.c".
6694 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
6696 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6697 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6698 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6699 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6700 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6701 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6703 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
6705 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6707 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
6709 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6710 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6711 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6712 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6713 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6714 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6715 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6716 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6718 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
6720 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6722 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
6724 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6725 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6726 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6727 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6728 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6729 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6730 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6732 2007-05-29 Roland McGrath <roland@redhat.com>
6734 * po/Makefile (po-sed-cmd): New variable.
6735 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6737 2007-05-29 Ulrich Drepper <drepper@redhat.com>
6739 * crypt/md5-crypt.c: Fix comment.
6741 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6742 of crashing. When this is the case or if the reply is malformed,
6743 don't try to close the new file descriptor since it does not
6745 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6747 2007-05-28 Jakub Jelinek <jakub@redhat.com>
6749 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6750 if __NR_utimensat is not defined.
6752 2007-05-26 Ulrich Drepper <drepper@redhat.com>
6754 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6756 2007-05-25 Jakub Jelinek <jakub@redhat.com>
6758 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6759 (open): Fix comment typos. Don't call __open_2 if flags
6760 is a compile time constant without O_CREAT.
6761 (__open64_2): Add nonnull attribute.
6762 (open64): Fix comment typos. Don't call __open64_2 if flags
6763 is a compile time constant without O_CREAT.
6764 (__openat_2): Add nonnull attribute, fix nonnull attribute
6766 (openat): Fix comment typos. Don't call __openat_2 if flags
6767 is a compile time constant without O_CREAT.
6768 (__openat64_2): Add nonnull attribute, fix nonnull attribute
6770 (openat64): Fix comment typos. Don't call __openat64_2 if flags
6771 is a compile time constant without O_CREAT.
6773 2007-05-24 Ulrich Drepper <drepper@redhat.com>
6775 * Makerules (sysd-rules): Define PTW for ptw-* files.
6776 * Versions: Define GLIBC_2.7 for libc.
6777 * include/stdio.h: Declare __fortify_fail.
6778 * debug/fortify_fail.c: New file.
6779 * debug/Makefile (routines): Add fortify_fail.
6780 * debug/chk_fail.c: Use __fortify_fail.
6781 * debug/stack_chk_fail.c: Likewise.
6782 * io/Versions: Export __open_2, __open64_2, __openat_2, and
6783 __openat64_2 for GLIBC_2.7.
6784 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6785 * io/open.c: Define *_2 variant of function which checks for O_CREAT
6786 and fails if necessary.
6787 * io/open64.c: Likewise.
6788 * io/openat.c: Likewise.
6789 * io/openat64.c: Likewise.
6790 * sysdeps/unix/sysv/linux/open64.c: Likewise.
6791 * sysdeps/unix/sysv/linux/openat.c: Likewise.
6792 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6793 * io/bits/fcntl2.h: New file.
6794 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6796 * include/bits/fcntl2.h: New file.
6797 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6799 * sysdeps/unix/sysv/linux/open_2.c: New file.
6801 2007-05-21 Ulrich Drepper <drepper@redhat.com>
6803 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6804 as second parameter to handle_intel.
6806 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6809 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6811 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
6812 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6814 * sysdeps/x86_64/memcpy.S: Complete rewrite.
6815 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6816 Patch by Evandro Menezes <evandro.menezes@amd.com>.
6818 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6820 2007-05-21 Jakub Jelinek <jakub@redhat.com>
6823 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6824 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6825 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6827 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6830 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6831 reinitialize workend at the start of each do_positional format spec
6832 loop, free workstart before do_positional loops.
6833 (printf_unknown): Fix size of work_buffer.
6834 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6836 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6837 (public_sET_STATe): If ms->version < 3, put all chunks into
6838 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6841 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6842 * malloc/hooks.c: Likewise.
6843 * malloc/arena.c: Likewise.
6844 * malloc/malloc.c (do_check_malloc_state): Don't assert
6845 n_mmaps is not greater than n_mmaps_max. This removes the need
6846 for the previous change.
6848 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6851 2007-05-19 Ulrich Drepper <drepper@redhat.com>
6853 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6854 Define for kernel >= 2.6.22.
6856 2007-05-18 Ulrich Drepper <drepper@redhat.com>
6858 * elf/dl-close.c (_dl_close_worker): When removing object from
6859 global scope, wait for all lookups to finish afterwards.
6860 * elf/dl-open.c (add_to_global): When global scope array must
6861 grow, allocate a new one and free old array only after all
6863 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6864 (_dl_lookup_symbol_x): Likewise.
6865 * elf/dl-support.c: Define _dl_wait_lookup_done.
6866 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6867 _dl_wait_lookup_done.
6869 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6870 not overlapping with arena.
6872 * malloc/mcheck.c (reallochook): If size==0, free the block.
6874 * rt/tst-shm.c: Use fstat64 instead of fstat.
6876 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6877 __NR_sync_file_range is not defined.
6879 2007-05-17 Ulrich Drepper <drepper@redhat.com>
6881 Dummy files to prevent stub versions from being used.
6882 * sysdeps/x86_64/fpu/k_cosl.c: New file.
6883 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6884 * sysdeps/x86_64/fpu/k_sinl.c: New file.
6885 * sysdeps/x86_64/fpu/k_tanl.c: New file.
6887 * version.h (VERSION): Set to 2.6.90.
6889 2007-05-14 Ulrich Drepper <drepper@redhat.com>
6891 * version.h (VERSION): Define to 2.6.
6892 * include/features.h (__GLIBC_MINOR__): Define to 6.
6894 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6896 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6899 2007-05-13 Ulrich Drepper <drepper@redhat.com>
6901 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6902 number of mmaps. n_mmaps_max is the target.
6903 * malloc/hooks.c: Likewise.
6904 * malloc/arena.c: Likewise.
6906 2007-05-12 Andreas Jaeger <aj@suse.de>
6908 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6911 2007-05-11 Ulrich Drepper <drepper@redhat.com>
6913 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6914 adding new variables.
6916 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6917 optimize. Completely extend global scope array before making the
6918 new entries visible.
6920 2007-05-10 Ulrich Drepper <drepper@redhat.com>
6922 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6923 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6926 * include/link.h: Move l_version and l_nversion members around to
6929 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6931 * sysdeps/unix/sysv/linux/sched_setaffinity.c
6932 (__sched_setaffinity_new): If syscall was successful and
6933 RESET_VGETCPU_CACHE is defined, use it before returning.
6934 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6936 * io/sys/stat.h: Make sure struct timespec is defined for
6939 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6941 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6942 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6943 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6944 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6945 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6946 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6947 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6948 * io/sys/stat.h: Declare utimensat, futimens.
6949 * io/utimensat.c: New file.
6950 * io/futimens.c: New file.
6951 * sysdeps/unix/sysv/linux/utimensat.c: New file.
6952 * sysdeps/unix/sysv/linux/futimens.c: New file.
6953 * io/Makefile (routines): Add utimensat, futimens.
6954 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6955 * sysdeps/unix/sysv/linux/lutimes.c: New file.
6956 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6959 * include/sys/cdefs.h: Redefine __nonnull so that test for
6960 incorrect parameters in the libc code itself are not omitted.
6962 2007-05-09 Jakub Jelinek <jakub@redhat.com>
6964 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6965 exception in addition to inexact when asked to raise only FE_INEXACT.
6968 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6971 2007-05-07 Ulrich Drepper <drepper@redhat.com>
6974 * string/strfry.c (strfry): Make result more random.
6976 2007-05-07 Richard Henderson <rth@redhat.com>
6978 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6979 if __NO_LONG_DOUBLE_MATH.
6980 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6981 available in the compiler, add .arch directive to the assembly.
6983 2007-05-07 Jakub Jelinek <jakub@redhat.com>
6985 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6986 compat_symbol to GLIBC_2_1.
6987 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6988 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6989 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6990 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6991 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6992 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6993 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6995 (__isnanl): New compat_symbol.
6997 2007-05-07 Ulrich Drepper <drepper@redhat.com>
6998 Jakub Jelinek <jakub@redhat.com>
7000 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7001 (new_heap): Initialize mprotect_size.
7002 (grow_heap): When growing, only mprotect from mprotect_size till
7003 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
7004 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7006 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
7007 Peter Bergner <bergner@us.ibm.com>
7009 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7010 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
7011 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7012 * sysdeps/powerpc/fpu/fe_mask.c: New file.
7013 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7014 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7015 Call __fe_mask_env() if all FP exceptions disabled.
7016 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7017 from old FPSCR to new fenv to propagate DFP rounding modes.
7018 Call __fe_mask_env() if FP exceptions previously enabled.
7019 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7020 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
7021 transitioning from all exceptions disabled to any exception enabled
7023 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7024 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
7025 when transitioning from all exceptions disabled to any exception
7026 enabled or visa versa.
7027 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7028 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7029 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7030 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7031 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7032 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7034 2007-05-06 Ulrich Drepper <drepper@redhat.com>
7037 * posix/unistd.h: Remove __THROW from fdatasync.
7039 2007-05-06 Mike Frysinger <vapier@gentoo.org>
7042 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7044 2007-05-06 Ulrich Drepper <drepper@redhat.com>
7046 * stdio-common/vfprintf.c (process_string_arg): Optimize
7047 ridiculous precision in wide char code printing multi-byte string.
7048 Reported by Jim Meyering <jim@meyering.net>.
7051 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7052 boundaries to work around systems with overlapping binary loading.
7053 Based on a patch by Suzuki <suzuki@in.ibm.com>.
7055 2007-05-04 Ulrich Drepper <drepper@redhat.com>
7057 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7058 __mbsnrtowcs after last change.
7060 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7061 (get_ident): Likewise.
7063 2007-05-03 Jakub Jelinek <jakub@redhat.com>
7065 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7066 with setting the sticky bit.
7067 * math/test-misc.c (main): Add more truncation tests.
7069 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
7071 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7072 double in the function declaration.
7073 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
7074 double in the function declaration.
7075 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7076 float in the function declaration.
7077 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7078 float in the function declaration.
7080 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
7081 denormal operands. Do not generate FP_EX_DENORM exception.
7082 (FP_UNPACK_RAW_EP): Ditto.
7083 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
7084 undefined _FP_UNPACK_RAW_E.
7085 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
7086 undefined _FP_UNPACK_RAW_EP.
7087 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
7088 undefined _FP_PACK_RAW_E.
7089 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
7090 undefined _FP_PACK_RAW_EP.
7092 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
7094 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
7097 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
7098 Jakub Jelinek <jakub@redhat.com>
7100 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
7101 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
7103 * soft-fp/op-common.h (FP_TRUNC): Ditto.
7105 2007-05-03 Jakub Jelinek <jakub@redhat.com>
7107 * math/test-misc.c (main): Add tests for rounding long double
7108 values close to smallest double denormalized value to double.
7110 2007-04-30 Joseph Myers <joseph@codesourcery.com>
7112 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
7113 condition for truncating to 0. Set sticky bit for such
7116 2007-05-02 Jakub Jelinek <jakub@redhat.com>
7118 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
7119 fixed length array for ignore.
7121 2007-04-30 Ulrich Drepper <drepper@redhat.com>
7124 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
7125 stack for large precisions.
7126 * stdio-common/test-vfprintf.c (main): Add test for large
7129 2007-04-30 Jakub Jelinek <jakub@redhat.com>
7131 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
7133 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
7136 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
7137 account in the size check.
7138 * resolv/tst-inet_ntop.c: New test.
7139 * resolv/Makefile (tests): Add tst-inet_ntop.
7141 2007-04-30 Ulrich Drepper <drepper@redhat.com>
7142 Jakub Jelinek <jakub@redhat.com>
7145 * malloc/malloc.c: Keep separate list for first blocks on the bin
7146 lists with a given size. This helps skipping over list elements
7147 we know won't fit in two places.
7148 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
7150 2007-04-28 Ulrich Drepper <drepper@redhat.com>
7153 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
7154 label to Teredo tunnel addresses 2001://32.
7156 2007-04-27 Ulrich Drepper <drepper@redhat.com>
7158 * locale/programs/ld-collate.c (collate_read): Allow order_start
7161 * locale/programs/ld-collate.c (collate_read): Fix printing of
7165 * locale/C-translit.h.in: Add entry for U2044.
7168 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
7169 hexa-decimal floats without exponent.
7170 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
7172 2007-04-25 Ulrich Drepper <drepper@redhat.com>
7174 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
7175 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
7176 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
7177 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
7179 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
7182 2007-04-25 Jakub Jelinek <jakub@redhat.com>
7184 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
7185 of 0 after the out_fail label.
7187 2007-04-25 Ulrich Drepper <drepper@redhat.com>
7190 * iconv/gconv_charset.h (strip): Allow ':'.
7191 * iconv/iconv_open.c (iconv_open): Adjust comment.
7193 2007-04-25 Jakub Jelinek <jakub@redhat.com>
7195 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
7198 2007-04-23 Jakub Jelinek <jakub@redhat.com>
7201 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
7202 alignment of buffer and tmp_buffer.
7203 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
7204 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
7205 alignment of buffer.
7206 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
7207 bigger than INT_MAX.
7208 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
7209 h_errnop arguments. Fail if buflen is too small.
7210 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
7212 2007-04-23 Jakub Jelinek <jakub@redhat.com>
7215 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
7216 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
7218 2007-04-22 Roland McGrath <roland@redhat.com>
7220 * elf/elf.h (NT_PRXFPREG): New macro.
7222 2007-04-19 Andreas Jaeger <aj@suse.de>
7225 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
7226 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
7229 2007-04-19 Ulrich Drepper <drepper@redhat.com>
7231 * include/sys/mman.h: Mark madvise hidden.
7232 * misc/madvise.c: Add libc_hidden_def.
7234 2007-04-06 Jakub Jelinek <jakub@redhat.com>
7236 * nis/nis_domain_of.c (__nis_domain_of): New function.
7237 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
7238 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
7239 * nis/nis_call.c (rec_dirsearch): Likewise.
7240 (first_shoot): Likewise. Remove search_parent_first argument.
7241 (struct nis_server_cache): Rename search_parent_first field
7243 (nis_server_cache_search, nis_server_cache_add): Rename
7244 search_parent_first argument to search_parent.
7245 (__nisfind_server): Likewise. If search_parent, call
7248 2007-04-18 Ulrich Drepper <drepper@redhat.com>
7250 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
7252 2007-04-17 Ulrich Drepper <drepper@redhat.com>
7255 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
7257 2007-04-16 Ulrich Drepper <drepper@redhat.com>
7260 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
7262 2007-04-15 Jakub Jelinek <jakub@redhat.com>
7264 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
7265 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
7266 current number of locales in SUPPORTED.
7267 (create_archive): Initialize serial.
7268 (enlarge_archive): Preserve aliases rather than duplicating
7271 2007-04-13 Jakub Jelinek <jakub@redhat.com>
7273 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
7274 after _IO_un_link, not before it.
7276 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
7277 special case handling when wcp == wstartp + 1. Fix a comment typo.
7278 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
7280 2007-03-30 Jakub Jelinek <jakub@redhat.com>
7282 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
7283 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
7284 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
7286 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
7287 _IO_file_xsgetn_maybe_mmap): Likewise.
7288 * libio/oldfileops.c (old_do_write): Likewise.
7289 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
7290 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
7291 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
7292 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
7293 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
7294 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
7295 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
7296 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
7297 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
7298 _IO_file_underflow, _IO_file_underflow_mmap,
7299 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
7300 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
7301 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
7302 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
7303 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
7304 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
7305 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
7306 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
7307 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
7308 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
7309 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
7310 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
7311 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
7312 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
7313 _IO_adjust_column_internal, _IO_default_uflow_internal,
7314 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
7315 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
7316 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
7317 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
7318 _IO_file_close_it_internal, _IO_file_underflow_internal,
7319 _IO_file_overflow_internal, _IO_file_attach_internal,
7320 _IO_file_fopen_internal, _IO_file_sync_internal,
7321 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
7322 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
7323 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
7324 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
7325 _IO_seekpos_unlocked): Likewise.
7326 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
7327 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
7329 2007-04-16 Jakub Jelinek <jakub@redhat.com>
7331 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
7332 argument in xmalloc size computation.
7334 2007-04-01 Jakub Jelinek <jakub@redhat.com>
7336 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
7337 math_opt_barrier and math_force_eval macros.
7339 2007-03-27 Jakub Jelinek <jakub@redhat.com>
7342 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
7343 * sysdeps/i386/fpu/math_private.h: New file.
7344 * sysdeps/x86_64/fpu/math_private.h: New file.
7345 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
7346 math_force_eval macros. Use "+m" constraint on asm rather than
7348 * math/s_nextafter.c (__nextafter): Likewise.
7349 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
7351 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
7352 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
7353 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7354 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
7355 math_opt_barrier and math_force_eval macros.
7356 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
7357 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
7358 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
7359 (__nexttoward): Use math_opt_barrier and
7360 math_force_eval macros. Use "+m" constraint on asm rather than
7361 "=m" and "m". Only use asm to force double result if
7362 FLT_EVAL_METHOD is 2.
7363 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
7364 (__nexttowardf): Use math_opt_barrier and
7365 math_force_eval macros. Use "+m" constraint on asm rather than
7366 "=m" and "m". Only use asm to force double result if
7367 FLT_EVAL_METHOD is not 0.
7368 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
7369 (__nexttowardf): Use math_opt_barrier and
7370 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
7371 x to float using asm.
7372 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
7373 (__nldbl_nexttowardf): Use math_opt_barrier and
7374 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
7375 x to float using asm.
7376 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
7377 (__nexttowardf): Use math_opt_barrier and math_force_eval
7378 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
7379 * math/bug-nextafter.c (zero, inf): New variables.
7380 (main): Add new tests.
7381 * math/bug-nexttoward.c (zero, inf): New variables.
7382 (main): Add new tests.
7384 2007-03-22 Jakub Jelinek <jakub@redhat.com>
7387 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
7388 exceptions both in SW and MXCSR.
7389 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
7390 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
7391 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
7392 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7393 in MXCSR if SSE is available.
7394 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
7396 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
7398 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
7399 Return 0 rather than 1.
7400 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
7401 Remove incorrect part of a comment. Fix argument to feraiseexcept.
7402 * math/test-fenv.c (feholdexcept_tests): New function.
7405 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
7408 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7411 2007-04-13 Jakub Jelinek <jakub@redhat.com>
7414 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
7415 Reported by David Anderson <davea42@earthlink.net>.
7417 2007-04-07 Ulrich Drepper <drepper@redhat.com>
7419 * posix/sys/wait.h: Remove unnecessary forward declaration.
7421 2007-04-05 Jakub Jelinek <jakub@redhat.com>
7423 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
7424 with obj->do_servers after first_shoot.
7426 2007-04-03 Ulrich Drepper <drepper@redhat.com>
7428 * posix/Makefile (routines): Add sched_cpucount.
7429 (tests): Add tst-cpucount.
7430 * posix/sched_cpucount.c: New file.
7431 * posix/tst-cpucount.c: New file.
7432 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
7433 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
7434 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7435 * posix/sched.h: Define CPU_COUNT.
7437 2007-03-27 Jakub Jelinek <jakub@redhat.com>
7439 * posix/fnmatch.c (STRUCT): Define.
7440 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
7441 * posix/fnmatch_loop.c (struct STRUCT): New type.
7442 (FCT): Add ends argument. If ends != NULL and normal * is
7443 seen in the pattern, store current pattern and string pointers
7444 and return. Adjust recursive calls.
7445 (EXT): Adjust FCT callers.
7446 (STRUCT): Undef at the end of the file.
7447 * posix/Makefile (tests): Add tst-fnmatch2.
7448 * posix/tst-fnmatch2.c: New test.
7450 2007-04-01 Jakub Jelinek <jakub@redhat.com>
7452 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
7455 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
7456 Change last argument to unsigned int.
7458 2007-03-23 Jakub Jelinek <jakub@redhat.com>
7460 * scripts/check-local-headers.sh: Filter out sys/capability.h.
7462 2007-03-22 Jakub Jelinek <jakub@redhat.com>
7464 * config.h.in (HAVE_LIBCAP): Add.
7465 * nscd/selinux.h: Include sys/capability.h rather than non-existent
7467 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
7468 free_caps. Cast away const from 4th cap_set_flag argument.
7470 2007-03-26 Ulrich Drepper <drepper@redhat.com>
7472 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
7474 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7475 Add sync_file_range.
7476 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
7478 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
7480 * sysdeps/powerpc/bits/atomic.h
7481 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
7482 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
7483 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7484 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
7485 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7486 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
7487 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
7488 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7489 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7490 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7491 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
7492 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7493 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7494 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7495 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7496 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
7497 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7498 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
7499 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7500 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
7502 2007-03-20 Jakub Jelinek <jakub@redhat.com>
7504 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7505 (__cache_line_size): Define the variable here. Add
7506 attribute_hidden, remove weak_extern.
7507 (__libc_start_main): Set __cache_line_size
7509 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
7510 (__cache_line_size): Define the variable here. Add
7511 attribute_hidden, remove weak_extern.
7512 (DL_PLATFORM_AUXV): Set __cache_line_size
7514 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
7515 weak_extern, add attribute_hidden.
7516 (__elf_machine_runtime_setup): Assume __cache_line_size is always
7518 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
7520 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
7522 2007-03-26 Jakub Jelinek <jakub@redhat.com>
7525 * timezone/africa: Update from tzdata2007d.
7526 * timezone/asia: Likewise.
7527 * timezone/australasia: Likewise.
7528 * timezone/backward: Likewise.
7529 * timezone/europe: Likewise.
7530 * timezone/iso3166.tab: Likewise.
7531 * timezone/leapseconds: Likewise.
7532 * timezone/northamerica: Likewise.
7533 * timezone/southamerica: Likewise.
7534 * timezone/zone.tab: Likewise.
7536 * timezone/private.h: Update from tzcode2007d.
7537 * timezone/zdump.c: Likewise.
7538 * timezone/zic.c: Likewise.
7540 2007-03-21 Jakub Jelinek <jakub@redhat.com>
7542 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
7543 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
7545 (nis_server_cache_search, nis_server_cache_add): New functions.
7546 (__nisfind_server): Use them. Add dbp and flags argument, if
7547 call __nisbind_create.
7548 (__nisbind_create): Add server_used and current_ep arguments,
7549 only call __nis_findfastest if server_used is ~0.
7550 (__do_niscall2, __prepare_niscall): Adjust callers.
7551 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
7552 ckey_cache_euid, ckey_cache_lock): New variables.
7553 (get_ckey): New function.
7554 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
7555 __pmap_getnisport. Save __pmap_getnisport result in
7556 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
7558 * nis/nis_lookup.c (nis_lookup): Likewise.
7559 * nis/nis_table.c (nis_list): Likewise.
7560 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
7563 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
7564 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
7565 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
7566 _nss_nisplus_getservbyport_r): Likewise.
7567 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
7568 _nss_nisplus_getnetbyaddr_r): Likewise.
7569 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
7570 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
7571 _nss_nisplus_getntohost_r): Likewise.
7572 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
7573 _nss_nisplus_getrpcbynumber_r): Likewise.
7575 2007-03-20 Jakub Jelinek <jakub@redhat.com>
7577 * configure.in (libc_cv_gnu89_inline): Only do compile test.
7578 * configure: Rebuilt.
7580 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
7582 * soft-fp/extended.h (_FP_UNION_E): Likewise.
7584 2006-06-07 Joseph Myers <joseph@codesourcery.com>
7587 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
7590 2007-03-18 Jakub Jelinek <jakub@redhat.com>
7592 * nscd/gai.c: Include alloca.h.
7593 (__libc_use_alloca): Define.
7595 2007-03-16 Jakub Jelinek <jakub@redhat.com>
7597 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
7599 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
7600 (DL_DST_REQUIRED): Adjust user.
7602 * include/dlfcn.h (struct link_map): New forward decl.
7604 * inet/getnameinfo.c: Include stddef.h.
7605 (getnameinfo): Use offsetof.
7607 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
7609 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
7611 * string/strerror_l.c: Include stdlib.h.
7613 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
7614 * config.make.in (gnu89-inline-CFLAGS): New variable.
7615 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
7617 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
7618 * argp/argp.h: Use it.
7619 * bits/mathinline.h: Likewise.
7620 * bits/sigset.h: Likewise.
7621 * bits/string.h: Likewise.
7622 * ctype/ctype.h: Likewise.
7623 * hurd/hurd.h: Likewise.
7624 * hurd/hurd/fd.h: Likewise.
7625 * hurd/hurd/port.h: Likewise.
7626 * hurd/hurd/signal.h: Likewise.
7627 * hurd/hurd/threadvar.h: Likewise.
7628 * hurd/hurd/userlink.h: Likewise.
7629 * io/sys/stat.h: Likewise.
7630 * libio/bits/stdio.h: Likewise.
7631 * libio/bits/stdio2.h: Likewise.
7632 * mach/lock-intern.h: Likewise.
7633 * mach/mach/mig_support.h: Likewise.
7634 * math/bits/cmathcalls.h: Likewise.
7635 * posix/bits/unistd.h: Likewise.
7636 * socket/bits/socket2.h: Likewise.
7637 * stdlib/bits/stdlib.h: Likewise.
7638 * stdlib/stdlib.h: Likewise.
7639 * string/argz.h: Likewise.
7640 * string/bits/string2.h: Likewise.
7641 * string/bits/string3.h: Likewise.
7642 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
7643 * sysdeps/generic/inttypes.h: Likewise.
7644 * sysdeps/generic/machine-lock.h: Likewise.
7645 * sysdeps/generic/machine-sp.h: Likewise.
7646 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7647 * sysdeps/i386/i486/bits/string.h: Likewise.
7648 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
7649 * sysdeps/mach/alpha/machine-lock.h: Likewise.
7650 * sysdeps/mach/alpha/machine-sp.h: Likewise.
7651 * sysdeps/mach/i386/machine-lock.h: Likewise.
7652 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7653 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
7654 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7655 * sysdeps/s390/bits/string.h: Likewise.
7656 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
7657 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7658 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7659 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7660 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7661 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
7662 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7663 * wcsmbs/bits/wchar2.h: Likewise.
7664 * wcsmbs/wchar.h: Likewise.
7665 * stdlib/gmp.h: Likewise. Include <features.h> to get
7666 __extern_inline definition.
7668 2007-03-15 Jakub Jelinek <jakub@redhat.com>
7670 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
7674 * math/libm-test.inc (log_test): Test -Inf and NaN.
7675 (log10_test, log1p_test, log2_test): Test -Inf.
7676 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
7677 FE_INVALID when argument is qNaN.
7678 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
7679 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
7680 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7681 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
7682 andb $1, %ah with testb $1, %ah, don't test for parity, instead
7683 testb $4, %ah and jump if non-zero.
7684 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7685 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7688 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7689 ancestors with the same depths.
7690 Patch by Niels Moeller <nisse@lysator.liu.se>.
7691 (filter_doc): Don't crash if argp is NULL.
7692 * argp/Makefile (tests): Add tst-argp2.
7693 * argp/tst-argp2.c: New test.
7696 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7698 (updwtmp_file): Likewise.
7701 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7702 (inet6_opt_append): Don't check extlen is big enough if extbuf
7704 (inet6_opt_finish): Likewise.
7705 * inet/Makefile (tests): Add test-inet6_opt.
7706 * inet/test-inet6_opt.c: New test.
7708 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7709 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7710 NLMSG_ERR. Instead use a page sized buffer.
7711 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7714 2007-03-14 Richard Henderson <rth@redhat.com>
7716 * sysdeps/alpha/fpu/s_llround.c: New file.
7717 * sysdeps/alpha/fpu/s_llroundf.c: New file.
7718 * sysdeps/alpha/fpu/s_lround.c: New file.
7719 * sysdeps/alpha/fpu/s_lroundf.c: New file.
7720 * sysdeps/alpha/fpu/s_round.c: New file.
7721 * sysdeps/alpha/fpu/s_roundf.c: New file.
7722 * sysdeps/alpha/fpu/s_trunc.c: New file.
7723 * sysdeps/alpha/fpu/s_truncf.c: New file.
7725 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7726 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7727 * sysdeps/alpha/fpu/s_floor.c: Likewise.
7728 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7729 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7730 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7732 * sysdeps/alpha/fpu/s_fmax.S: New file.
7733 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7734 * sysdeps/alpha/fpu/s_fmin.S: New file.
7735 * sysdeps/alpha/fpu/s_fminf.S: New file.
7736 * sysdeps/alpha/fpu/s_isnan.c: New file.
7737 * sysdeps/alpha/fpu/s_isnanf.c: New file.
7738 * sysdeps/alpha/fpu/s_llrint.c: New file.
7739 * sysdeps/alpha/fpu/s_llrintf.c: New file.
7740 * sysdeps/alpha/fpu/s_lrint.c: New file.
7741 * sysdeps/alpha/fpu/s_lrintf.c: New file.
7742 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7743 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7745 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7746 (__fdimf, fdimf, __fdim, fdim): Remove.
7747 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7748 (__isnanf, __isnan, __isnanl): New.
7750 2007-03-13 Richard Henderson <rth@redhat.com>
7752 * sysdeps/ieee754/ldbl-128/Makefile: New file.
7754 2007-03-13 Richard Henderson <rth@redhat.com>
7756 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7757 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7758 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7759 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7760 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7761 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7763 2007-03-13 Richard Henderson <rth@redhat.com>
7765 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7766 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7767 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7768 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7769 Move to dl-auxv.h; initialize instead of extern weak.
7770 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7772 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7773 Extern instead of initialized.
7775 2007-03-13 Richard Henderson <rth@redhat.com>
7777 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7778 __sigsuspend_nocancel.
7780 2007-03-06 Ulrich Drepper <drepper@redhat.com>
7782 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7783 172.16/12 address range.
7785 2007-03-02 Jakub Jelinek <jakub@redhat.com>
7787 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7788 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7791 2007-03-01 Jakub Jelinek <jakub@redhat.com>
7794 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7796 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7798 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7799 for x qNaN and y either +-inf or non-integer value.
7800 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7801 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7802 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7804 2007-02-10 Mike Frysinger <vapier@gentoo.org>
7806 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7807 from sysdep_headers.
7809 2007-02-28 Jakub Jelinek <jakub@redhat.com>
7811 * time/tzfile.c (find_transition): Instead of a linear search try to
7812 guess the transition index, use a linear search if the result is at
7813 most 10 transitions away from the guess or binary search otherwise.
7815 2007-02-27 Jakub Jelinek <jakub@redhat.com>
7817 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7818 memory reallocation.
7820 2007-02-21 Ulrich Drepper <drepper@redhat.com>
7822 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7824 Optimize use of TOLOWER.
7827 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7828 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7829 * sysdeps/i386/fpu/e_fmod.S: Likewise.
7832 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7833 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7836 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7837 (open_dir_stream): Likewise.
7838 * io/Makefile (tests): Add bug-ftw5.
7839 * io/bug-ftw5.c: New file.
7841 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7842 * nscd/servicescache.c (cache_addserv): Likewise.
7844 * nscd/grpcache.c (cache_addgr): In case a record changed on
7845 refresh, adjust key_copy.
7848 * nscd/pwdcache.c (cache_addpw): In case a record changed on
7849 refresh, adjust key_copy.
7852 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7854 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7856 2007-02-19 Ulrich Drepper <drepper@redhat.com>
7858 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7861 * stdio-common/vfscanf.c: Small cleanups throughout.
7863 2007-02-18 Ulrich Drepper <drepper@redhat.com>
7866 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7867 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7868 * sysdeps/i386/fpu/e_fmod.S: Likewise.
7869 Patch by Jared Casper <jaredcasper@gmail.com>.
7871 * sysdeps/unix/closedir.c: Outside libc don't use locking.
7872 * sysdeps/unix/opendir.c: Likewise.
7873 * sysdeps/unix/readdir.c: Likewise.
7876 * stdio-common/vfscanf.c: Handle localized digits etc for floating
7878 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7880 * stdio-common/vfscanf.c: Fix problems in width accounting.
7881 * stdio-common/tst-sscanf.c (double_tests): New tests.
7882 (main): Hook them up.
7884 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7885 More simplifications of floating-point reader.
7887 * stdio-common/Makefile (tests): Add tst-swscanf.
7888 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7890 * stdio-common/tst-swscanf.c: New file.
7892 2007-02-17 Ulrich Drepper <drepper@redhat.com>
7895 * libio/stdio.h: Define struct _IO_FILE in global namespace.
7896 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7897 Remove using for __jmp_buf_tag.
7898 * locale/locale.h (struct lconv): Also define in std namespace.
7899 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7902 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7903 using __libc_enable_secure.
7906 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7909 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7910 of names for ellipsises.
7913 * malloc/memusage.sh: Cleanups.
7914 * debug/xtrace.sh: Quoting and trap changes.
7916 2007-02-16 Ulrich Drepper <drepper@redhat.com>
7918 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7920 * locale/iso-3166.def: Update entry for Serbia.
7921 * locale/iso-4217.def: Define RSD, remove CSD.
7923 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7924 and 64-bit operations.
7927 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7930 * nscd/nscd.c (parse_opt): One more conversion to use send instead
7933 2007-02-15 Ulrich Drepper <drepper@redhat.com>
7936 * assert/assert.h (assert): Simplify.
7937 (assert_perror): Likewise.
7938 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7940 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7943 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7944 change: don't pass NULL in place of an integer.
7946 2007-02-02 Bruno Haible <bruno@clisp.org>
7949 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7950 Add mapping for U+327E.
7951 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7952 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7953 mapping of 0xD9 0xE8.
7954 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7956 Reported by Jungshik Shin <jungshik@google.com>.
7959 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7960 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7961 Reported by Jungshik Shin <jungshik@google.com>.
7963 2007-02-14 Ulrich Drepper <drepper@redhat.com>
7965 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7969 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7970 byte variants. Patch mostly be tom@tommay.net.
7972 2007-02-14 Jakub Jelinek <jakub@redhat.com>
7975 * posix/glob.c (attribute_hidden): Define if not defined.
7976 (glob): Unescape dirname, filename or username when needed and not
7977 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
7978 is NULL. Handle unescaped [ in pattern without closing ].
7979 Don't pass GLOB_CHECK down to recursive glob for directories.
7980 (__glob_pattern_type): New function.
7981 (__glob_pattern_p): Implement using __glob_pattern_type.
7982 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7983 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7984 Remove unreachable code.
7985 * posix/globtest.sh: Add a couple of new tests.
7987 2007-02-13 Ulrich Drepper <drepper@redhat.com>
7989 * po/ru.po: Update from translation team.
7991 2007-02-12 Jakub Jelinek <jakub@redhat.com>
7993 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7994 to the list of i486+ CPUs.
7995 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7997 2007-02-12 Ulrich Drepper <drepper@redhat.com>
7999 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8000 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8003 2007-02-09 Ulrich Drepper <drepper@redhat.com>
8005 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8007 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8008 * resolv/res_mkquery.c: Define __res_nopt.
8009 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8010 try adding EDNS0 record.
8011 * resolv/res_send.c (send_dg): If request failed with FORMERR and
8012 EDNS0 record was send make sure we don't try it again.
8013 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8014 * include/resolv.h: Declare __res_nopt.
8016 2007-02-08 Jakub Jelinek <jakub@redhat.com>
8019 * time/strptime_l.c (__strptime_internal): Set have_mon for
8020 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
8021 have been computed from tm_yday and tm_year. Don't crash
8022 in day_of_the_week or day_of_the_year if not have_mon
8023 and tm_mon contains bogus value.
8024 * time/Makefile (tests): Add tst-strptime3.
8025 * time/tst-strptime3.c: New test.
8027 2007-02-05 Jakub Jelinek <jakub@redhat.com>
8030 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8031 bit for RE_HAT_LISTS_NOT_NEWLINE.
8032 (build_charclass_op): Remove bogus comment.
8033 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8034 * posix/bug-regex27.c: New test.
8035 * posix/bug-regex28.c: New test.
8037 2007-02-03 Ulrich Drepper <drepper@redhat.com>
8039 * po/sv.po: Update from translation team.
8041 2007-02-02 Ulrich Drepper <drepper@redhat.com>
8043 * nscd/nscd_helper.c (open_socket): Minor size optimization.
8045 2007-02-02 Jakub Jelinek <jakub@redhat.com>
8047 * include/locale.h (__uselocale): Add libc_hidden_proto.
8048 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8050 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8053 2007-02-01 Ulrich Drepper <drepper@redhat.com>
8055 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8057 (PTR_DEMANGLE): Real definition now that it's not the same as
8059 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8061 * string/strerror_l.c: New file.
8062 * string/Makefile (routines): Add strerror_l.
8063 * string/string.h: Declare strerror_l.
8064 * string/Versions: Export strerror_l for GLIBC_2.6.
8066 2007-01-31 Ulrich Drepper <drepper@redhat.com>
8068 * nscd/nscd_helper.c (open_socket): Now takes request type and key
8069 as parameter. Construct request record. Try sending request
8070 before the first poll use, it usually succeeds. Adjust all
8072 * nscd/nscd-client.h: Define MAXKEYLEN.
8073 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
8075 2007-01-31 Jakub Jelinek <jakub@redhat.com>
8077 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
8079 * nscd/nscd_helper.c: Include string.h.
8080 (__nscd_cache_search): Remove const qualifier from return value.
8081 On strict alignment architectures check hash entry and data head
8083 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
8084 mmapped data during GC cycle contains garbage. If
8085 __nscd_drop_map_ref fails, decrement mapped->counter when returning
8086 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
8088 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8089 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8090 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8091 * nscd/nscd_getai.c (__nscd_getai): Likewise.
8092 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8094 2007-01-30 Ulrich Drepper <drepper@redhat.com>
8096 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
8098 2007-01-26 Ulrich Drepper <drepper@redhat.com>
8100 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
8101 names not numbers in cfi_*.
8103 2007-01-26 Andreas Jaeger <aj@suse.de>
8105 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
8106 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
8107 Correct values of PER_HPUX and PER_OSF4.
8109 2007-01-24 Ulrich Drepper <drepper@redhat.com>
8111 * elf/dl-minimal.c: Undefine _itoa first.
8112 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
8113 * malloc/mtrace.c: Revert last change.
8114 * posix/wordexp.c: Likewise.
8116 2007-01-24 Jakub Jelinek <jakub@redhat.com>
8118 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
8119 and __geode__ to the list of i486+ CPUs.
8120 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8122 2007-01-23 Ulrich Drepper <drepper@redhat.com>
8124 * stdio-common/_itoa.c: Include <limits.h>.
8125 * stdio-common/_itowa.c: Likewise.
8127 2007-01-22 Ulrich Drepper <drepper@redhat.com>
8129 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
8131 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
8133 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
8135 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
8139 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
8140 * stdio-common/Makefile (tests): Add bug17.
8141 * stdio-common/bug17.c: New file.
8143 2007-01-19 Ulrich Drepper <drepper@redhat.com>
8145 * iconvdata/brf.c: New file.
8146 * iconvdata/testdata/BRF: New file.
8147 * iconvdata/testdata/BRF..UTF8: New file.
8148 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8149 * iconvdata/Makefile: Add rules to build BRF.
8150 * iconvdata/TESTS: Add BRF entry.
8151 * iconvdata/gconv-modules: Likewise.
8152 * iconvdata/tst-tables.sh: Likewise.
8154 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
8156 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
8157 type `long long int', not `long int'.
8160 2007-01-18 Ulrich Drepper <drepper@redhat.com>
8162 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
8163 of values on 64-bit platforms which are too large.
8165 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
8166 Joe Kerian <jkerian@us.us.ibm.com>
8169 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
8170 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
8171 (__copysignl): Use signbit() for comparison.
8172 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
8173 SET_LDOUBLE_WORDS64.
8176 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
8177 (__ceill): Remove calls to fegetround(), fesetround().
8178 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8179 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8180 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8182 2007-01-17 Jakub Jelinek <jakub@redhat.com>
8184 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
8186 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
8188 2007-01-17 Ulrich Drepper <drepper@redhat.com>
8190 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
8192 * csu/libc-start.c: Likewise.
8194 2007-01-16 Ulrich Drepper <drepper@redhat.com>
8196 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
8199 2007-01-15 Ulrich Drepper <drepper@redhat.com>
8201 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
8203 (handle_request): Remove unnecessary tests.
8205 * nscd/cache.c (cache_add): Record the failure to add to the cache.
8207 2007-01-15 Jakub Jelinek <jakub@redhat.com>
8209 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
8210 workbits in semi-raw fraction.
8212 * math/test-misc.c: Add new tests.
8214 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
8216 * math/basic-test.c: Include test-skeleton.c.
8217 (TEST_TRUNC): Define.
8218 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
8219 (main): Rename to ...
8220 (do_test): ...this. Run new tests.
8221 (TEST_FUNCTION): Define.
8223 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
8224 Joe Kerian <jkerian@us.us.ibm.com>
8227 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
8228 handling for high words.
8229 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
8230 and overflow for infinity.
8232 2007-01-15 Ulrich Drepper <drepper@redhat.com>
8234 * nscd/connections.c (handle_request): Add a __builtin_expect.
8236 * nscd/connections.c (serv2db): Change type into structure which
8237 also says whether this is a request for data. Renamed to
8238 servinfo. All users changed.
8239 (handle_request): Much simpler test whether we should search the cache.
8241 * nscd/connections.c (handle_request): Fix thinko in selinux test
8244 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
8245 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
8246 it before getting dl_load_lock and then relock.
8247 (_dl_lookup_symbol_x): Pass flags to add_dependency.
8248 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
8249 case we unlocked the scope.
8250 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
8251 _dl_lookup_symbol_x in case we locked the scope.
8252 (_dl_profile_fixup): Likewise.
8253 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
8254 set DL_LOOKUP_SCOPE_LOCK.
8256 2007-01-13 Ulrich Drepper <drepper@redhat.com>
8258 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
8259 CFLAGS-getsrvbynpt_r.c.
8260 * nscd/getsrvbynm_r.c: New file.
8261 * nscd/getsrvbypt_r.c: New file.
8262 * nscd/nscd_getserv_r.c: New file.
8263 * nscd/servicescache.c: New file.
8264 * nscd/Makefile (routines): Add nscd_getserv_r.
8265 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
8266 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
8267 CFLAGS-getsrvbypt_r.c.
8268 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
8269 table. Add entries for services database.
8270 * nscd/connections.c (serv2str): Mark as const. Add entries for
8272 (dbs): Add .reset_res and servdb initialization.
8273 (serv2db): Add entries for services database.
8274 (verify_persistent_db): Accept dbnr == servdb.
8275 (invalidate_cache): Rewrite database name recognition to use a table.
8276 Call res_init() if .reset_res is set for database.
8277 (handle_request): Add code to handle services database.
8278 * nscd/gai.c: Don't define __getservbyname_r.
8279 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
8280 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
8281 (serv_response_header): Define.
8282 (struct datahead): Add serv_response_header member.
8283 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
8285 * nscd/nscd.conf: Add entries for services database.
8286 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
8287 Declare serv_iov_disabled.
8288 Declare addservbyname, readdservbyname, addservbyport, and
8290 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
8291 (find_db): Fix error message.
8292 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
8293 __nscd_getservbyname_r, and __nscd_getservbyport_r.
8294 * nscd/selinux.c (perms): Add entries for services database.
8295 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
8296 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
8298 * nscd/grpcache.c: Remove obsolete code. Cleanups.
8299 * nscd/hstcache.c: Likewise.
8300 * nscd/pwdcache.c: Likewise.
8302 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
8303 computation of keylen.
8305 * include/string.h: Only redefine strndupa if this is really for
8308 2007-01-12 Ulrich Drepper <drepper@redhat.com>
8310 * nscd/nscd_gethst_r.c: Minor cleanups.
8312 * nscd/connections.c (handle_request): Check selinux permissions
8313 for all non-admin commands.
8315 * sysdeps/i386/i486/bits/atomic.h: Define
8316 atomic_compare_and_exchange_val_acq,
8317 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
8318 using __sync_* built-ins for gcc >= 4.1.
8319 * sysdeps/x86_64/bits/atomic.h: Likewise.
8322 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
8325 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
8327 * stdlib/tst-makecontext.c: Include errno.h. Change main()
8328 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
8329 (do_test): Check errno and exit(0) if ENOSYS.
8331 2007-01-11 Jakub Jelinek <jakub@redhat.com>
8333 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
8334 thousands separators.
8335 * stdlib/Makefile: Add rules to build and run tst-strtod4.
8336 * stdlib/tst-strtod4.c: New test.
8339 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
8340 hexadecimal digit should accept just the initial 0.
8341 * stdlib/tst-strtod2.c (tests): New variable.
8342 (do_test): Run several tests rather than just one.
8344 2007-01-11 Jakub Jelinek <jakub@redhat.com>
8346 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
8347 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
8349 2007-01-10 Ulrich Drepper <drepper@redhat.com>
8351 * io/fts.c: Make sure fts_cur is always valid after return from
8353 Patch by Miloslav Trmac <mitr@redhat.com>.
8355 2006-10-27 Richard Sandiford <richard@codesourcery.com>
8357 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
8358 (R_MIPS_NUM): Bump by 1.
8360 2007-01-03 Jakub Jelinek <jakub@redhat.com>
8362 * posix/execvp.c: Include alloca.h.
8363 (allocate_scripts_argv): Renamed to...
8364 (scripts_argv): ... this. Don't allocate buffer here nor count
8366 (execvp): Use alloca if possible.
8367 * posix/Makefile: Add rules to build and run tst-vfork3 test.
8368 * posix/tst-vfork3.c: New test.
8370 2007-01-03 Ulrich Drepper <drepper@redhat.com>
8372 * string/Makefile (tst-strxfrm2-ENV): Define.
8373 * stdlib/Makefile (tst-strtod3-ENV): Define.
8375 2007-01-02 Ulrich Drepper <drepper@redhat.com>
8377 * posix/getconf.c: Update copyright year.
8378 * nss/getent.c: Likewise.
8379 * iconv/iconvconfig.c: Likewise.
8380 * iconv/iconv_prog.c: Likewise.
8381 * elf/ldconfig.c: Likewise.
8382 * catgets/gencat.c: Likewise.
8383 * csu/version.c: Likewise.
8384 * elf/ldd.bash.in: Likewise.
8385 * elf/sprof.c (print_version): Likewise.
8386 * locale/programs/locale.c: Likewise.
8387 * locale/programs/localedef.c: Likewise.
8388 * nscd/nscd.c (print_version): Likewise.
8389 * debug/xtrace.sh: Likewise.
8390 * malloc/memusage.sh: Likewise.
8391 * malloc/mtrace.pl: Likewise.
8392 * debug/catchsegv.sh: Likewise.
8394 2006-12-24 Ulrich Drepper <drepper@redhat.com>
8396 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
8399 2006-12-23 Ulrich Drepper <drepper@redhat.com>
8401 * posix/wordexp.c: Remove some unnecessary tests.
8403 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
8405 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
8406 blacklist the group till after we look it up.
8408 2006-12-21 Ulrich Drepper <drepper@redhat.com>
8410 * include/atomic.h (atomic_forced_read): New macro.
8412 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
8414 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
8416 2006-12-19 Jakub Jelinek <jakub@redhat.com>
8418 * nss/getXXbyYY_r.c: Include atomic.h.
8419 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
8420 add atomic_write_barrier () in between.
8422 * stdlib/Makefile (tests): Add tst-makecontext.
8423 * stdlib/tst-makecontext.c: New test.
8425 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
8426 (__makecontext): Don't realign uc_mcontext.uc_regs.
8428 2006-11-28 Jakub Jelinek <jakub@redhat.com>
8430 * elf/dl-support.c: Include dl-procinfo.h.
8431 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
8432 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
8433 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
8435 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
8436 hardcoded constants.
8437 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
8438 PPC_PLATFORM_* macros for array designators.
8440 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
8442 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
8443 names to the beginning.
8444 (_dl_powerpc_platforms): Add "power6x".
8445 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8446 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
8447 (_DL_PLATFORMS_COUNT): Increase.
8448 (_dl_string_platform): Handle power6x case.
8449 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
8450 PPC_FEATURE_POWER6_EXT): Define.
8451 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
8453 2006-12-18 Jakub Jelinek <jakub@redhat.com>
8456 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
8457 [-2^31 .. 2^31) range.
8458 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
8460 * stdlib/tst-rand48-2.c: New test.
8461 * stdlib/Makefile (tests): Add tst-rand48-2.
8463 2006-12-14 Jakub Jelinek <jakub@redhat.com>
8465 * misc/tst-pselect.c (do_test): Fix sigblock argument.
8467 2006-12-14 Ulrich Drepper <drepper@redhat.com>
8469 * misc/tst-pselect.c (do_test): Make sure the helper process is
8470 terminating when the test is aborted.
8472 2006-12-13 Ulrich Drepper <drepper@redhat.com>
8474 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
8475 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8476 Handle relatime mount option.
8479 * libio/Makefile (tests): Add tst-setvbuf1.
8480 * libio/tst-setvbuf1.c: New file.
8482 2006-12-08 Jakub Jelinek <jakub@redhat.com>
8485 * libio/genops.c (__uflow): Fix a typo.
8486 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
8487 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
8488 the narrow buffer size.
8490 2006-11-24 Jakub Jelinek <jakub@redhat.com>
8493 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
8494 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
8495 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
8497 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
8498 _IO_wstr_finish): Likewise.
8499 * libio/wmemstream.c (open_wmemstream): Likewise.
8500 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
8501 even for wide streams.
8503 2006-12-13 Jakub Jelinek <jakub@redhat.com>
8505 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
8508 2006-12-11 Ulrich Drepper <drepper@redhat.com>
8510 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
8511 separators also if no non-zero digits found.
8512 * stdlib/Makefile (tests): Add tst-strtod3.
8514 2006-12-09 Ulrich Drepper <drepper@redhat.com>
8517 * include/features.h: Fix comment about default value for
8521 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
8522 empty parsed strings.
8523 * stdlib/Makefile (tests): Add tst-strtod2.
8524 * stdlib/tst-strtod2.c: New file.
8527 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
8529 * stdlib/Makefile (tests): Add tst-atof2.
8530 * stdlib/tst-atof2.c: New file.
8533 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
8534 correctly if removing trailing zero of hex-float.
8535 * stdlib/Makefile (tests): Add tst-atof1.
8536 * stdlib/tst-atof1.c: New file.
8538 2006-12-09 Jakub Jelinek <jakub@redhat.com>
8540 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
8541 Start searching for next comma at p rather than rest.
8542 * misc/Makefile (tests): Add tst-mntent2.
8543 * misc/tst-mntent2.c: New test.
8545 * misc/getusershell.c (initshells): Check for integer overflows.
8546 Make strings buffer one bigger as fgets always succeeds when second
8547 argument is 1. Don't use calloc for shells array. Disallow
8550 2006-12-08 Ulrich Drepper <drepper@redhat.com>
8552 * malloc/memusage.c: Handle realloc with new size of zero and
8553 non-NULL pointer correctly.
8554 (me): Really write first record twice.
8555 (struct entry): Make format bi-arch safe.
8556 (dest): Write out more realloc statistics.
8557 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
8559 2006-12-05 Jakub Jelinek <jakub@redhat.com>
8561 * nis/nis_subr.c (nis_getnames): Revert last change.
8563 2006-12-04 Jakub Jelinek <jakub@redhat.com>
8565 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
8566 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
8567 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
8568 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
8570 * io/Makefile: Add rules to build and run tst-ttyname_r test.
8571 * io/tst-ttyname_r.c: New test.
8573 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8575 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
8577 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
8579 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
8582 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
8584 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
8585 `clone' function to ensure proper unwinding stop of gdb.
8586 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8588 2006-12-01 Ulrich Drepper <drepper@redhat.com>
8590 * nscd/nscd.init: Remove obsolete and commented-out -S option
8593 2006-11-23 Jakub Jelinek <jakub@redhat.com>
8596 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
8599 * manual/string.texi (strtok): Remove duplicate paragraph.
8601 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8603 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
8604 libgcc not supporting `rflags' unwinding (register # >= 17).
8606 2006-11-30 Jakub Jelinek <jakub@redhat.com>
8608 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
8611 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
8612 Jakub Jelinek <jakub@redhat.com>
8613 Jan Kratochvil <jan.kratochvil@redhat.com>
8615 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
8617 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
8618 'restore_rt' even in the 'signal' directory.
8619 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
8621 2006-11-27 Jakub Jelinek <jakub@redhat.com>
8624 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
8625 malloc crashed. Don't allocate memory unnecessarily in each
8628 2006-10-21 Jakub Jelinek <jakub@redhat.com>
8630 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
8632 2006-11-20 Ulrich Drepper <drepper@redhat.com>
8634 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
8636 2006-11-18 Bruno Haible <bruno@clisp.org>
8638 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
8639 __sysconf only after having tried to call getgroups32.
8641 2006-11-19 Ulrich Drepper <drepper@redhat.com>
8643 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
8644 addresses for IPv4 queries if they can be mapped.
8646 2006-11-16 Jakub Jelinek <jakub@redhat.com>
8648 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
8649 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
8650 (signmask): Add .size directive.
8651 (othermask): Add .type directive.
8653 2006-11-14 Ulrich Drepper <drepper@redhat.com>
8655 * po/nl.po: Update from translation team.
8657 * timezone/zdump.c: Redo fix for BZ #3137.
8659 2006-11-14 Jakub Jelinek <jakub@redhat.com>
8661 * nss/nss_files/files-alias.c (get_next_alias): Set line back
8662 to first_unused after parsing :include: file.
8664 2006-11-10 Ulrich Drepper <drepper@redhat.com>
8666 * timezone/africa: Update from tzdata2006o.
8667 * timezone/antarctica: Likewise.
8668 * timezone/asia: Likewise.
8669 * timezone/australasia: Likewise.
8670 * timezone/backward: Likewise.
8671 * timezone/europe: Likewise.
8672 * timezone/iso3166.tab: Likewise.
8673 * timezone/northamerica: Likewise.
8674 * timezone/southamerica: Likewise.
8675 * timezone/zone.tab: Likewise.
8677 * time/tzfile.c (__tzfile_read): Extend to handle new file format
8678 on machines with 64-bit time_t.
8680 * timezone/checktab.awk: Update from tzcode2006o.
8681 * timezone/ialloc.c: Likewise.
8682 * timezone/private.h: Likewise.
8683 * timezone/scheck.c: Likewise.
8684 * timezone/tzfile.h: Likewise.
8685 * timezone/tzselect.ksh: Likewise.
8686 * timezone/zdump.c: Likewise.
8687 * timezone/zic.c: Likewise.
8690 * elf/ldconfig.c (main): Call setlocale and textdomain.
8691 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8694 * manual/argp.texi: Fix typos.
8695 * manual/charset.texi: Likewise.
8696 * manual/errno.texi: Likewise.
8697 * manual/filesys.texi: Likewise.
8698 * manual/lang.texi: Likewise.
8699 * manual/maint.texi: Likewise.
8700 * manual/memory.texi: Likewise.
8701 * manual/message.texi: Likewise.
8702 * manual/resource.texi: Likewise.
8703 * manual/search.texi: Likewise.
8704 * manual/signal.texi: Likewise.
8705 * manual/startup.texi: Likewise.
8706 * manual/stdio.texi: Likewise.
8707 * manual/sysinfo.texi: Likewise.
8708 * manual/syslog.texi: Likewise.
8709 * manual/time.texi: Likewise.
8710 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8713 * sunrpc/clnt_raw.c: Minimal message improvements.
8714 * sunrpc/pm_getmaps.c: Likewise.
8715 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8716 * nis/nis_print_group_entry.c: Likewise.
8717 * locale/programs/repertoire.c: Likewise.
8718 * locale/programs/charmap.c: Likewise.
8719 * malloc/memusage.sh: Likewise.
8720 * elf/dl-deps.c: Likewise.
8721 * locale/programs/ld-collate.c: Likewise.
8722 * libio/vswprintf.c: Likewise.
8723 * malloc/memusagestat.c: Likewise.
8724 * sunrpc/auth_unix.c: Likewise.
8725 * sunrpc/rpc_main.c: Likewise.
8726 * nscd/cache.c: Likewise.
8727 * locale/programs/repertoire.c: Unify output messages.
8728 * locale/programs/charmap.c: Likewise.
8729 * locale/programs/ld-ctype.c: Likewise.
8730 * locale/programs/ld-monetary.c: Likewise.
8731 * locale/programs/ld-numeric.c: Likewise.
8732 * locale/programs/ld-time.c: Likewise.
8733 * elf/ldconfig.c: Likewise.
8734 * nscd/selinux.c: Likewise.
8735 * elf/cache.c: Likewise.
8736 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8739 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8743 2006-11-10 Jakub Jelinek <jakub@redhat.com>
8745 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8746 if N is one bigger than return value.
8747 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8748 and l1 last arguments, if buf is defined, verify the return value
8749 equals to strlen (buf) and verify no byte beyond passed length
8752 2006-11-10 Ulrich Drepper <drepper@redhat.com>
8754 * po/sv.po: Update from translation team.
8756 2006-11-09 Ulrich Drepper <drepper@redhat.com>
8758 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8761 2006-11-10 Jakub Jelinek <jakub@redhat.com>
8763 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8766 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8767 Use __new_sys_siglist instead of _sys_siglist_internal as
8768 second macro argument.
8769 (_old_sys_siglist): Use declare_symbol_alias macro instead of
8772 2006-11-09 Ulrich Drepper <drepper@redhat.com>
8775 * posix/unistd.h (sysconf): Remove const attribute.
8777 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8778 temporary or deprecated addresses.
8779 Patch by Sridhar Samudrala <sri@us.ibm.com>.
8781 * string/Makefile (tests): Add tst-strxfrm2.
8782 * string/tst-strxfrm2.c: New file.
8784 2006-10-09 Jakub Jelinek <jakub@redhat.com>
8786 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8787 rather than r->r_brk.
8789 2006-11-08 Jakub Jelinek <jakub@redhat.com>
8791 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8792 optimization even if needed > n.
8794 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8795 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8796 return false, otherwise return true.
8797 (cache_rpath): Return decompose_rpath return value.
8799 2006-11-07 Jakub Jelinek <jakub@redhat.com>
8801 * include/libc-symbols.h (declare_symbol): Rename to...
8802 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
8803 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8805 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8807 * sysdeps/gnu/siglist.c: Likewise.
8809 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
8811 * sysdeps/powerpc/fpu/bits/mathinline.h
8812 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8813 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
8815 2006-11-05 Ulrich Drepper <drepper@redhat.com>
8817 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8818 Update handling of cache descriptor 0x49 for new models.
8819 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8822 2006-11-02 Jakub Jelinek <jakub@redhat.com>
8824 * malloc/memusage.c (dest): Reset not_me back to false after
8825 printing statistics.
8827 2006-11-02 Ulrich Drepper <drepper@redhat.com>
8829 * configure.in: Work around ld --help change and avoid -z relro
8830 test completely if the architecture doesn't care about security.
8832 2006-11-01 Ulrich Drepper <drepper@redhat.com>
8834 * po/sv.po: Update from translation team.
8836 2006-10-31 Ulrich Drepper <drepper@redhat.com>
8838 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8839 generate compatibility version.
8841 2006-10-29 Ulrich Drepper <drepper@redhat.com>
8843 * configure.in: Relax -z relro requirement a bit.
8845 * po/sv.po: Update from translation team.
8847 2006-10-29 Jakub Jelinek <jakub@redhat.com>
8849 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8850 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8851 * elf/dl-close.c (_dl_close_worker): Likewise.
8852 * elf/dl-open.c (_dl_open_worker): Likewise.
8853 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8855 2006-10-27 Ulrich Drepper <drepper@redhat.com>
8857 * configure.in: Require assembler support for visibility, compiler
8858 support for visibility and aliases, linker support for various -z
8860 * Makeconfig: Remove conditional code which now is unnecessary.
8861 * config.h.in: Likewise.
8862 * config.make.in: Likewise.
8863 * dlfcn/Makefile: Likewise.
8864 * elf/Makefile: Likewise.
8865 * elf/dl-load.c: Likewise.
8866 * elf/rtld.c: Likewise.
8867 * include/libc-symbols.h: Likewise.
8868 * include/stdio.h: Likewise.
8869 * io/Makefile: Likewise.
8870 * io/fstat.c: Likewise.
8871 * io/fstat64.c: Likewise.
8872 * io/fstatat.c: Likewise.
8873 * io/fstatat64.c: Likewise.
8874 * io/lstat.c: Likewise.
8875 * io/lstat64.c: Likewise.
8876 * io/mknod.c: Likewise.
8877 * io/mknodat.c: Likewise.
8878 * io/stat.c: Likewise.
8879 * io/stat64.c: Likewise.
8880 * libio/stdio.c: Likewise.
8881 * nscd/Makefile: Likewise.
8882 * stdlib/Makefile: Likewise.
8883 * stdlib/atexit.c: Likewise.
8884 * sysdeps/generic/ldsodefs.h: Likewise.
8885 * sysdeps/i386/dl-machine.h: Likewise.
8886 * sysdeps/i386/sysdep.h: Likewise.
8887 * sysdeps/i386/i686/memcmp.S: Likewise.
8888 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8889 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8890 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8892 * Makerules: USE_TLS support is now default.
8893 * tls.make.c: Likewise.
8894 * csu/Versions: Likewise.
8895 * csu/libc-start.c: Likewise.
8896 * csu/libc-tls.c: Likewise.
8897 * csu/version.c: Likewise.
8898 * dlfcn/dlinfo.c: Likewise.
8899 * elf/dl-addr.c: Likewise.
8900 * elf/dl-cache.c: Likewise.
8901 * elf/dl-close.c: Likewise.
8902 * elf/dl-iteratephdr.c: Likewise.
8903 * elf/dl-load.c: Likewise.
8904 * elf/dl-lookup.c: Likewise.
8905 * elf/dl-object.c: Likewise.
8906 * elf/dl-open.c: Likewise.
8907 * elf/dl-reloc.c: Likewise.
8908 * elf/dl-support.c: Likewise.
8909 * elf/dl-sym.c: Likewise.
8910 * elf/dl-sysdep.c: Likewise.
8911 * elf/dl-tls.c: Likewise.
8912 * elf/ldconfig.c: Likewise.
8913 * elf/rtld.c: Likewise.
8914 * elf/tst-tls-dlinfo.c: Likewise.
8915 * elf/tst-tls1.c: Likewise.
8916 * elf/tst-tls10.h: Likewise.
8917 * elf/tst-tls14.c: Likewise.
8918 * elf/tst-tls2.c: Likewise.
8919 * elf/tst-tls3.c: Likewise.
8920 * elf/tst-tls4.c: Likewise.
8921 * elf/tst-tls5.c: Likewise.
8922 * elf/tst-tls6.c: Likewise.
8923 * elf/tst-tls7.c: Likewise.
8924 * elf/tst-tls8.c: Likewise.
8925 * elf/tst-tls9.c: Likewise.
8926 * elf/tst-tlsmod1.c: Likewise.
8927 * elf/tst-tlsmod13.c: Likewise.
8928 * elf/tst-tlsmod13a.c: Likewise.
8929 * elf/tst-tlsmod14a.c: Likewise.
8930 * elf/tst-tlsmod2.c: Likewise.
8931 * elf/tst-tlsmod3.c: Likewise.
8932 * elf/tst-tlsmod4.c: Likewise.
8933 * elf/tst-tlsmod5.c: Likewise.
8934 * elf/tst-tlsmod6.c: Likewise.
8935 * include/errno.h: Likewise.
8936 * include/link.h: Likewise.
8937 * include/tls.h: Likewise.
8938 * locale/global-locale.c: Likewise.
8939 * locale/localeinfo.h: Likewise.
8940 * malloc/arena.c: Likewise.
8941 * malloc/hooks.c: Likewise.
8942 * malloc/malloc.c: Likewise.
8943 * resolv/Versions: Likewise.
8944 * sysdeps/alpha/dl-machine.h: Likewise.
8945 * sysdeps/alpha/libc-tls.c: Likewise.
8946 * sysdeps/generic/ldsodefs.h: Likewise.
8947 * sysdeps/generic/tls.h: Likewise.
8948 * sysdeps/i386/dl-machine.h: Likewise.
8949 * sysdeps/ia64/dl-machine.h: Likewise.
8950 * sysdeps/ia64/libc-tls.c: Likewise.
8951 * sysdeps/mach/hurd/fork.c: Likewise.
8952 * sysdeps/mach/hurd/i386/tls.h: Likewise.
8953 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8954 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8955 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8956 * sysdeps/s390/libc-tls.c: Likewise.
8957 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8958 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8959 * sysdeps/sh/dl-machine.h: Likewise.
8960 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8961 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8962 * sysdeps/x86_64/dl-machine.h: Likewise.
8964 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8965 split out locking and parameter checking.
8966 (_dl_close): Call _dl_close_worker after locking and checking.
8967 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8969 * elf/Makefile: Add rules to build and run tst-thrlock.
8970 * elf/tst-thrlock.c: New file.
8973 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8977 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8978 we are sure we do not need it anymore for _dl_close. Also move
8979 the asserts inside the lock region.
8980 Patch mostly by Suzuki <suzuki@in.ibm.com>.
8982 2006-10-27 Jakub Jelinek <jakub@redhat.com>
8984 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8986 (_dl_lookup_symbol_x): Adjust caller.
8988 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8990 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8992 * elf/dl-libc.c: Revert l_scope name changes.
8993 * elf/dl-load.c: Likewise.
8994 * elf/dl-object.c: Likewise.
8995 * elf/rtld.c: Likewise.
8996 * elf/dl-close.c (_dl_close): Likewise.
8997 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
8998 always use __rtld_mrlock_{change,done}. Always free old scope list
8999 here if not l_scope_mem.
9000 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9001 change. Never free scope list here. Just __rtld_mrlock_lock before
9002 the lookup and __rtld_mrlock_unlock it after the lookup.
9003 * elf/dl-sym.c: Likewise.
9004 * include/link.h (struct r_scoperec): Remove.
9005 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9006 with l_scope_mem and l_scoperec_lock with l_scope_lock.
9008 2006-10-25 Ulrich Drepper <drepper@redhat.com>
9010 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9012 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9014 * configure.in: Disable building profile libraries by default.
9016 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9018 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9019 as signed longs, check for x_base + pos overflow.
9020 * sunrpc/Makefile (tests): Add tst-xdrmem2.
9021 * sunrpc/tst-xdrmem2.c: New test.
9023 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9025 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9026 _dl_lookup_symbol_x code.
9028 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9030 * elf/dl-runtime.c: Include sysdep-cancel.h.
9031 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9032 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
9033 instead of catomic_* macros.
9034 * elf/dl-sym.c: Include sysdep-cancel.h.
9035 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9036 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9037 * elf/dl-close.c: Include sysdep-cancel.h.
9038 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9039 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9040 * elf/dl-open.c: Include sysdep-cancel.h.
9041 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9042 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9044 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9047 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9048 fastbin rather than end of fastbin array.
9050 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9052 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9054 * sysdeps/x86_64/bits/atomic.h
9055 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9056 (catomic_decrement): Use correct body macro.
9058 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9060 * include/atomic.h: Add a unique prefix to all local variables
9062 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9064 2006-10-16 Ulrich Drepper <drepper@redhat.com>
9067 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9070 2006-10-14 Ulrich Drepper <drepper@redhat.com>
9072 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
9074 2006-10-13 Ulrich Drepper <drepper@redhat.com>
9077 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
9078 determine highest fast bin to consolidate, always look into all of
9080 (do_check_malloc_state): Only require for empty bins for large
9081 sizes in main arena.
9083 * libio/stdio.h: Add more __wur attributes.
9085 * elf/dl-minimal.c (realloc): Optimize last patch.
9087 2006-10-12 Richard Sandiford <richard@codesourcery.com>
9090 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
9091 and use memcpy() if it does.
9093 2006-11-12 Andreas Jaeger <aj@suse.de>
9096 * manual/search.texi (Hash Search Function): Clarify.
9097 (Array Search Function): Clarify.
9099 2006-11-12 Joseph Myers <joseph@codesourcery.com>
9102 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
9104 * math/atest-exp2.c (read_mpn_hex): Likewise.
9105 * math/atest-sincos.c (main): Likewise.
9107 2006-10-11 Ulrich Drepper <drepper@redhat.com>
9109 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
9110 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
9111 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
9113 * Versions.def: Add GLIBC_2.6 for libc.
9115 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
9117 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
9119 2006-10-11 Jakub Jelinek <jakub@redhat.com>
9121 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
9123 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
9125 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
9126 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
9128 2006-10-11 Ulrich Drepper <drepper@redhat.com>
9130 * include/atomic.c: Define catomic_* operations.
9131 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
9132 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
9133 * malloc/memusage.c: Likewise.
9134 * gmon/mcount.c: Likewise.
9135 * elf/dl-close.c: Likewise.
9136 * elf/dl-open.c: Likewise.
9137 * elf/dl-profile.c: Likewise.
9138 * elf/dl-sym.c: Likewise.
9139 * elf/dl-runtime.c: Likewise.
9140 * elf/dl-fptr.c: Likewise.
9141 * resolv/res_libc.c: Likewise.
9143 2006-10-10 Ulrich Drepper <drepper@redhat.com>
9145 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
9146 components which lack them.
9148 * nis/nis_subr.c (nis_getnames): Make sure that we always return
9149 at least one entry consisting of the parameter concatenated with
9152 2006-10-10 Roland McGrath <roland@frob.com>
9154 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
9155 * sysdeps/mach/hurd/futimes.c: Likewise.
9156 * sysdeps/mach/hurd/lutimes.c: Likewise.
9158 2006-10-09 Ulrich Drepper <drepper@redhat.com>
9159 Jakub Jelinek <jakub@redhat.com>
9161 Implement reference counting of scope records.
9162 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
9163 from the list in objects which remain. Always allocate new scope
9165 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
9166 don't resize, allocate a new one.
9167 * elf/dl-runtime.c: Update reference counters before using a scope
9169 * elf/dl-sym.c: Likewise.
9170 * elf/dl-libc.c: Adjust for l_scope name change.
9171 * elf/dl-load.c: Likewise.
9172 * elf/dl-object.c: Likewise.
9173 * elf/rtld.c: Likewise.
9174 * include/link.h: Include <rtld-lowlevel.h>. Define struct
9175 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
9176 Add l_scoperec_lock.
9177 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
9178 * sysdeps/generic/rtld-lowlevel.h: New file.
9180 * include/atomic.h: Rename atomic_and to atomic_and_val and
9181 atomic_or to atomic_or_val. Define new macros atomic_and and
9182 atomic_or which do not return values.
9183 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
9185 * sysdeps/i386/i486/bits/atomic.h: Likewise.
9187 * po/sv.po: Update from translation team.
9189 2006-10-07 Ulrich Drepper <drepper@redhat.com>
9191 * Versions.def: Add GLIBC_2.6 to libpthread.
9193 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
9194 (versioned_symbol): Likewise.
9195 (compat_symbol): Likewise.
9197 * po/tr.po: Update from translation team.
9199 2006-10-06 Ulrich Drepper <drepper@redhat.com>
9201 * nis/Banner: Removed. It's been integral part forever and the
9202 author info is incomplete anyway.
9203 * libio/Banner: Likewise.
9205 * nis/nis_table.c (nis_list): If __follow_path fails in the new
9206 code, make sure the nis_freeresult call doesn't crash and that the
9207 result is reported correctly.
9209 2006-09-27 Jakub Jelinek <jakub@redhat.com>
9211 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
9212 when callback is NULL.
9214 * nis/Versions (libnss_nisplus): Add
9215 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
9216 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
9217 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
9218 _nss_create_tablename): Rename to...
9219 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
9220 ... these. No longer static.
9221 (internal_setgrent): Adjust users.
9222 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
9223 Don't use locking around _nss_grp_create_tablename call.
9224 * nis/nss_nisplus/nisplus-initgroups.c: New file.
9226 2006-10-06 Ulrich Drepper <drepper@redhat.com>
9228 * version.h (VERSION): Bump to 2.5.90 for new development tree.
9230 2006-10-06 Andreas Jaeger <aj@suse.de>
9232 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
9234 2006-10-06 Ulrich Drepper <drepper@redhat.com>
9236 * po/pl.po: Update from translation team.
9238 * nscd/nscd.c (main): Fix typo in message.
9239 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
9241 2006-10-02 Jakub Jelinek <jakub@redhat.com>
9244 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
9245 errno.h, signal.h, unistd.h and sysdep-cancel.h.
9246 (__sigprocmask): Define.
9248 2006-10-02 Ulrich Drepper <drepper@redhat.com>
9250 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
9253 2006-10-02 Jakub Jelinek <jakub@redhat.com>
9255 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
9256 in oldtotal and newtotal calculation.
9257 * nscd/nscd-client.h (struct mapped_database): Add datasize
9259 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
9260 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
9262 (__nscd_cache_search): Add checks to make sure we never reference
9263 data beyond the current mapping.
9265 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
9267 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
9268 variables const to avoid compiler warnings.
9270 * io/fts.c (fts_close): Remove redundant checks.
9271 (fts_build): Likewise.
9272 (fts_palloc): Likewise.
9274 * manual/message.texi (Advanced gettext functions,
9275 Using gettextized software): Fix typos.
9277 2006-09-30 Ulrich Drepper <drepper@redhat.com>
9279 * posix/glob.c (glob_in_dir): Add some comments and asserts to
9280 explain why there are no leaks.
9282 2006-09-29 Ulrich Drepper <drepper@redhat.com>
9284 * libio/wmemstream.c: Include <wchar.h>.
9285 * libio/bug-wmemstream1.c: Likewise.
9286 * libio/tst-wmemstream1.c: Likewise.
9287 * libio/tst-wmemstream2.c: Likewise.
9289 * version.h (RELEASE): Bump to 2.5.
9290 * README: Regenerated.
9292 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
9295 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
9296 found no group members.
9297 Patch by Petr Baudis.
9299 2006-09-29 Jakub Jelinek <jakub@redhat.com>
9301 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
9302 assert bootstrap_map.l_tls_modid is zero.
9303 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
9306 2006-09-27 Ulrich Drepper <drepper@redhat.com>
9308 * libio/stdio.h: Move open_wmemstream prototype to ...
9309 * wcsmbs/wchar.h: ... here.
9311 2006-09-25 Jakub Jelinek <jakub@redhat.com>
9314 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
9315 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
9316 __{,l}chown to handle the rest.
9317 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
9318 fchownat syscall and __ASSUME_32BITUIDS case inline, call
9319 __{,l}chown to handle the rest.
9320 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
9322 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
9323 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
9326 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9327 time, rather allocate increasingly bigger arrays of pointers, if
9328 possible with alloca, if too large with malloc.
9330 2006-09-24 Jakub Jelinek <jakub@redhat.com>
9332 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
9334 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
9336 2006-09-24 Ulrich Drepper <drepper@redhat.com>
9338 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
9340 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
9341 IFA_F_HOMEADDRESS flag for interfaces.
9342 * include/ifaddrs.h (struct in6addrinfo): Define
9345 2006-09-21 Jakub Jelinek <jakub@redhat.com>
9348 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
9349 PTR_DEMANGLE3): Define.
9350 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
9351 PTR_DEMANGLE3): Likewise.
9352 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
9353 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
9355 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
9357 2006-09-20 Jakub Jelinek <jakub@redhat.com>
9359 * po/libc.pot: Regenerated.
9360 * po/be.po: Updated.
9361 * po/ca.po: Likewise.
9362 * po/cs.po: Likewise.
9363 * po/da.po: Likewise.
9364 * po/de.po: Likewise.
9365 * po/el.po: Likewise.
9366 * po/en_GB.po: Likewise.
9367 * po/es.po: Likewise.
9368 * po/fi.po: Likewise.
9369 * po/fr.po: Likewise.
9370 * po/gl.po: Likewise.
9371 * po/hr.po: Likewise.
9372 * po/hu.po: Likewise.
9373 * po/ja.po: Likewise.
9374 * po/ko.po: Likewise.
9375 * po/nb.po: Likewise.
9376 * po/nl.po: Likewise.
9377 * po/pl.po: Likewise.
9378 * po/pt_BR.po: Likewise.
9379 * po/ru.po: Likewise.
9380 * po/rw.po: Likewise.
9381 * po/sk.po: Likewise.
9382 * po/sv.po: Likewise.
9383 * po/tr.po: Likewise.
9384 * po/zh_CN.po: Likewise.
9385 * po/zh_TW.po: Likewise.
9388 * iconv/iconv_prog.c (main): Fix spelling in error message.
9389 * iconv/iconvconfig.c (main): Likewise.
9390 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
9391 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
9392 * locale/programs/localedef.c (main): Likewise.
9393 * locale/programs/repertoire.c (repertoire_read): Likewise.
9394 * timezone/zdump.c (main): Likewise.
9395 * nscd/connections.c (handle_request): Fix spelling in log message.
9396 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
9398 2006-09-20 Ulrich Drepper <drepper@redhat.com>
9400 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
9403 2006-09-20 Andreas Jaeger <aj@suse.de>
9405 * math/libm-test.inc (lrint_test_upward): Fix typo.
9407 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
9410 * math/libm-test.inc (lrint_test_tonearest): New function.
9411 (lrint_test_towardzero): New function.
9412 (lrint_test_downward): New function.
9413 (lrint_test_upward): New function.
9414 (main): Run these new tests.
9415 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
9416 of values near to 0.
9417 (two52): Use double not long double.
9418 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
9419 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
9420 (two23): Use float not double.
9421 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
9422 (two23): Use float not double.
9423 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
9424 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
9425 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
9426 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
9428 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9430 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
9431 Cast sp to unsigned long to avoid compiler warning.
9432 Use __makecontext_ret function instead of a trampoline on the stack.
9433 (__makecontext_ret): New function.
9434 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
9436 2006-09-19 Jakub Jelinek <jakub@redhat.com>
9438 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
9439 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
9442 2006-09-19 Ulrich Drepper <drepper@redhat.com>
9444 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
9445 sure no reference to the unloaded map's search list remains in the
9448 2006-09-16 Jakub Jelinek <jakub@redhat.com>
9450 * elf/Makefile: Add rules to build and run unload7 test.
9451 * elf/unload7.c: New test.
9452 * elf/unload7mod1.c: New file.
9453 * elf/unload7mod2.c: New file.
9455 2006-09-18 Jakub Jelinek <jakub@redhat.com>
9457 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
9458 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
9459 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9460 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
9461 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9462 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
9463 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9464 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
9465 PTRACE_GETEVENTMSG): Likewise.
9466 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
9469 2006-09-17 Mike Frysinger <vapier@gentoo.org>
9471 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
9472 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9473 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
9474 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9476 2006-09-16 Jakub Jelinek <jakub@redhat.com>
9478 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
9479 write '\0' to the fd.
9480 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
9481 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
9482 Change regs to unsigned long pointer from unsigned int, fix fscr
9485 2006-09-14 Jakub Jelinek <jakub@redhat.com>
9487 * io/Makefile (CFLAGS-fstatat.c): Set.
9488 (CFLAGS-fstatat64.c): Likewise.
9489 (CFLAGS-mknodat.c): Likewise.
9491 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
9492 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9493 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
9494 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
9496 2006-09-14 Jakub Jelinek <jakub@redhat.com>
9497 Steven Munroe <sjmunroe@us.ibm.com>
9499 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
9500 names to the beginning. Rename "cell" to "cellbe".
9501 (_dl_powerpc_platforms): New.
9502 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9503 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
9504 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
9505 (_DL_HWCAP_PLATFORM): Define to new mask.
9506 (_dl_platform_string, _dl_string_platform): New functions.
9507 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
9508 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
9510 2006-09-12 Jakub Jelinek <jakub@redhat.com>
9513 * README.libm: Fix a thinko in sqrt algorithm description.
9516 * manual/string.texi (argz_delete): Fix prototype.
9517 Patch by <alpt@freaknet.org>.
9519 2006-08-26 Joseph Myers <joseph@codesourcery.com>
9522 * io/test-lfs.c (do_prepare): Give name_len type size_t.
9523 * io/tst-fcntl.c (do_prepare): Likewise.
9524 * posix/tst-exec.c (do_prepare): Likewise.
9525 * posix/tst-preadwrite.c (do_prepare): Likewise.
9526 * posix/tst-spawn.c (do_prepare): Likewise.
9527 * posix/tst-truncate.c (do_prepare): Likewise.
9528 * rt/tst-aio.c (do_prepare): Likewise.
9529 * rt/tst-aio64.c (do_prepare): Likewise.
9530 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
9533 2006-09-09 Ulrich Drepper <drepper@redhat.com>
9536 * time/mktime.c (guess_time_tm): Fix overflow detection.
9537 * time/Makefile (tests): Add bug-mktime1.
9538 * time/bug-mktime1.c: New file.
9541 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
9544 2006-09-07 Jakub Jelinek <jakub@redhat.com>
9547 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
9548 Ensure relocation doesn't clobber any bits outside of the
9549 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
9550 R_SPARC_HI22 and R_SPARC_H44.
9553 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
9554 (long) (MINSIZE + nb - old_size) is positive.
9556 * malloc/arena.c (grow_heap): When growing bail even if new_size
9560 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
9563 2006-09-06 Jakub Jelinek <jakub@redhat.com>
9565 * posix/regex_internal.c (re_string_reconstruct): Handle
9566 offset < pstr->valid_raw_len && pstr->offsets_needed case.
9567 Ensure no bytes read before raw_mbs array. Pass a saved copy of
9568 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
9569 re_string_context_at.
9570 * posix/Makefile: Add rules to build and run bug-regex26 test.
9571 * posix/bug-regex26.c: New test.
9573 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
9574 rather than col_sym_free. Move seqp declaration earlier.
9576 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
9578 2006-09-05 Jakub Jelinek <jakub@redhat.com>
9580 * nscd/initgrcache.c (addinitgroupsX): Move any_success
9581 decl before first goto out.
9583 2006-09-04 Jakub Jelinek <jakub@redhat.com>
9585 * Makerules (shlib.lds): If have-hash-style, put .hash section
9586 at the end of the RO segment.
9588 2006-09-04 Ulrich Drepper <drepper@redhat.com>
9590 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
9591 style hash table format is used.
9593 2006-09-04 Jakub Jelinek <jakub@redhat.com>
9595 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
9596 randomization rather than before.
9597 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
9599 2006-08-31 Jakub Jelinek <jakub@redhat.com>
9601 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
9603 * malloc/malloc.c (_int_malloc): Use full list insert and not
9604 shortcut which assumes the list is empty for large requests
9607 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
9609 2006-08-30 Jakub Jelinek <jakub@redhat.com>
9611 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
9612 and offout arguments to the prototype.
9613 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
9614 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
9615 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
9616 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
9617 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
9618 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
9619 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
9620 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
9622 2006-08-28 Ulrich Drepper <drepper@redhat.com>
9624 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
9626 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
9629 2006-08-28 Jakub Jelinek <jakub@redhat.com>
9631 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
9632 only if herrno is NETDB_INTERNAL. Handle errors other than
9633 ERANGE outside of the loops, handle TRY_AGAIN.
9635 * locale/programs/ld-ctype.c (translit_flatten): Issue error
9636 if other's ctype category was missing.
9637 * locale/programs/ld-collate.c (collate_read): Return if
9638 copy_locale's collate category is missing.
9640 2006-08-27 Ulrich Drepper <drepper@redhat.com>
9643 * malloc/malloc.c (public_rEALLOc): Try harder by using other
9644 arenas if allocation failed.
9645 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
9647 2006-08-26 Ulrich Drepper <drepper@redhat.com>
9649 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
9651 (malloc_state): Reduce bins size by 2.
9652 (_int_malloc): Fix test for large enough buffer for early termination.
9653 When no unsorted block matches perfectly and an exiting block has
9654 to be split, use full list insert and not shortcut which assumes
9657 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
9660 2006-08-24 Ulrich Drepper <drepper@redhat.com>
9662 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
9665 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
9666 symbol require exact match (these are PLTs).
9667 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9668 (_dl_ppc64_addr_sym_match): Likewise.
9671 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
9672 If symbol has a value use it.
9673 * elf/tst-dladdr1.c: New file.
9674 * elf/Makefile: Add rules to build and run tst-addr1.
9676 2006-08-24 Jakub Jelinek <jakub@redhat.com>
9678 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
9679 keeps failing and heap growth or new heap creation isn't
9681 * malloc/tst-malloc.c (main): Add new tests.
9683 2006-08-24 Ulrich Drepper <drepper@redhat.com>
9686 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9687 as in the x86-64 code to use bswap.
9689 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
9692 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9694 * posix/bits/unistd.h: Likewise.
9696 2006-05-15 Mike Frysinger <vapier@gentoo.org>
9699 * string/strchr.c: Add cast to avoid warning.
9701 2006-08-21 Ulrich Drepper <drepper@redhat.com>
9703 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9704 platforms define as 512K. For 64-bit platforms as 32MB. The lower
9705 limit is needed to avoid the exploding of the address space
9706 requirement for secondary heaps.
9707 * malloc/arena.c (HEAP_MAX_SIZE): Define using
9708 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9710 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
9713 * Makerules (depfiles): Handle extra-test-objs the same as
9715 (common-mostlyclean): Likewise.
9716 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9718 * elf/Makefile (extra-objs): Likewise.
9719 * stdlib/Makefile (extra-objs): Likewise.
9721 2006-08-14 Eric Blake <ebb9@byu.net>
9724 * misc/error.h: Assume C89 or better.
9725 * misc/error.c: Likewise.
9727 2006-08-21 Ulrich Drepper <drepper@redhat.com>
9730 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9731 __ASSUME_ATFCTS is defined.
9733 2006-08-19 Ulrich Drepper <drepper@redhat.com>
9735 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9736 to sort in each call.
9738 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9739 is empty simply return and use next service.
9740 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9742 * locale/programs/charmap.c (charmap_read): Add new parameter. It
9743 tells us when not finding a charmap file is an error.
9744 * locale/programs/charmap.h: Adjust charmap_read prototype.
9745 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9746 cannot find a charmap.
9747 * locale/programs/localedef.c (main): Adjust charmap_read call.
9749 2006-08-15 Jakub Jelinek <jakub@redhat.com>
9751 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9752 sysdeps/posix/pause.c implementation instead.
9754 2006-08-09 Jakub Jelinek <jakub@redhat.com>
9756 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9759 2006-08-13 Andreas Schwab <schwab@suse.de>
9761 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9762 Don't clobber caller's LRSAVE.
9763 (_dl_prof_resolve): Likewise.
9765 2006-08-14 Ulrich Drepper <drepper@redhat.com>
9768 * libio/memstream.c (open_memstream): Allocate initial buffer with
9770 * libio/wmemstream.c (open_wmemstream): Likewise.
9771 * libio/strops.c: Pretty printing.
9772 (_IO_str_overflow): Clear uninitialized part of the new buffer.
9773 (enlarge_userbuf): New function.
9774 (_IO_str_seekoff): Call it if seek position is larger than current
9776 * libio/wstrops.c: Likewise.
9777 * libio/vasprintf.c: Add comment as to why we do not have to use
9778 calloc instead of malloc to allocate initial buffer.
9779 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9780 * libio/bug-memstream1.c: New file.
9781 * libio/bug-wmemstream1.c: New file.
9783 2006-08-13 Ulrich Drepper <drepper@redhat.com>
9785 * libio/wstrops.c: Remove dead macro definitions and comments.
9786 * libio/strops.c: Likewise.
9789 * login/utmpname.c (__utmpname): Remove unnecessary test.
9791 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
9794 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9797 2006-08-13 Ulrich Drepper <drepper@redhat.com>
9800 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9802 * sysdeps/unix/clock_settime.c: Add support for platform-specific
9803 setting of CPU clocks.
9805 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
9808 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9809 since C99 requires the result to promote to 'int' when uint_least8_t
9810 and uint_least16_t promote to 'int'.
9812 2006-08-12 Ulrich Drepper <drepper@redhat.com>
9815 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9816 lenght of one output field, correct bitmask creation.
9817 * locale/programs/ld-time.c: Add alignment.
9820 * misc/error.c: Add space between program name and message if file
9823 2006-08-03 Eric Blake <ebb9@byu.net>
9826 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9828 2006-08-09 Ulrich Drepper <drepper@redhat.com>
9830 * malloc/memusagestat.c: Silence warnings.
9832 * malloc/malloc.c: Dynamically size mmap treshold if the program
9833 frees mmaped blocks.
9834 Patch by Valerie Henson and Arjan van de Ven.
9836 2006-08-08 Jakub Jelinek <jakub@redhat.com>
9838 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9841 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9842 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9843 (DEF): Don't put the var into .gnu.linkonce.r.* section.
9844 Only provide var definitions in strtol_l (or for *ull*
9847 * stdio-common/bug16.c (tests): New array.
9848 (do_tests): Allow the first hexadecimal digit
9849 to be 1, 2, 4 or 8. Do 3 additional tests.
9851 * sysdeps/s390/fpu/libm-test-ulps: Update.
9853 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9854 fchownat syscall if available.
9855 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9856 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9857 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9859 2006-08-07 Ulrich Drepper <drepper@redhat.com>
9861 * nis/nis_xdr.c: Avoid some function calls.
9863 2006-08-07 Jakub Jelinek <jakub@redhat.com>
9864 Ulrich Drepper <drepper@redhat.com>
9866 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9867 short cut if only one name component is stripped away.
9869 2006-08-07 Ulrich Drepper <drepper@redhat.com>
9871 * nis/nis_call.c: Minor cleanups throughout.
9872 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9873 (first_shoot): Add search_parent_first parameter. Only if it is set
9874 search parent server first.
9875 If directory for table found through cold start cache is not the same
9876 as referenced in the cache, don't use it.
9877 (__nisfind_server): Take additional parameter. Pass it on to
9879 (__prepare_niscall): Adjust __nisfind_server call.
9880 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9881 * nis/nis_table.c: Adjust __nisfind_server call.
9882 * nis/nis_lookup.c: Likewise.
9883 (nis_lookup): Don't loop endlessly if name is reduced to ".".
9885 2006-08-03 Ulrich Drepper <drepper@redhat.com>
9888 * math/s_cacosh.c: Return values from positive branch.
9889 * math/s_cacoshf.c: Likewise.
9890 * math/s_cacoshl.c: Likewise.
9893 * sysvipc/sys/msg.h: Change return value to ssize_t.
9894 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9895 * sysvipc/msgrcv.c: Likewise.
9896 * include/sys/msg.h: Likewise.
9898 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9899 test introduced in patch for bz #661.
9900 (getgrouplist): Simplify code a bit. Don't allocate one additional
9901 element for NEWGROUPS.
9904 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9905 'f', use '1' as leading digit not '\1'.
9906 * stdio-common/Makefile (tests): Add bug16.
9907 * stdio-common/bug16.c: New file.
9910 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9911 and don't try to open it. The patch introducing the macro
9912 contained a bug and used the same file name as the new file
9913 instead of using /var/adm/hostid. Nobody complaint so I'm taking
9914 this out completely.
9917 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9918 Patch by Jerry James <Jerry.James@usu.edu>.
9920 * rt/Makefile (tests): Add tst-clock2.
9921 * rt/tst-clock2.c: New file.
9924 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9925 function and its parameters and pass it to new thread.
9926 (__gai_notify): Add support for alternative waiting for completion.
9927 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9928 waiting for completion.
9929 * resolv/getaddrinfo_a.c: Likewise.
9930 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9931 waiting for completion is used.
9932 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9933 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9934 * resolv/gai_error.c: Likewise.
9935 * resolv/gai_sigqueue.c: Likewise.
9937 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
9939 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9940 errno to EBADF and return MACH_PORT_NULL.
9942 2006-06-23 Joseph Myers <joseph@codesourcery.com>
9945 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9947 2006-08-02 Ulrich Drepper <drepper@redhat.com>
9949 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9950 walk them instead of the symbol table.
9952 2006-08-01 Ulrich Drepper <drepper@redhat.com>
9955 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9956 status of NSS calls, not the number of returned entries.
9958 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9959 request_key, keyctl.
9961 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9963 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9965 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
9967 * elf/tst-auditmod1.c: Fix typo in #error.
9969 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9971 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9973 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9975 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
9977 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9978 that the directory is empty even on non-POSIX filesystems.
9980 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9982 * elf/dl-open.c (dl_open_worker): Add branch prediction.
9984 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9985 the backend NSS module. If backend setgrent call failed, don't have
9986 internal_setgrent fail. Just remember this until it is needed.
9987 * nis/nss_compat/compat-pwd.c: Likewise.
9988 * nis/nss_compat/compat-spwd.c: Likewise.
9990 2006-07-30 Roland McGrath <roland@redhat.com>
9992 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9993 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9994 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9995 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9997 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9998 (nanosleep_not_cancel): New macro.
9999 (sigsuspend_not_cancel): new macro.
10000 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10001 (do_sigsuspend): Define as inline.
10002 (__sigsuspend): Always use do_sigsuspend.
10003 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10004 * include/signal.h: Declare __sigsuspend_nocancel.
10005 * sysdeps/posix/pause.c
10006 [! NO_CANCELLATION] (__pause_nocancel): New function.
10008 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10009 * include/time.h (__nanosleep_nocancel): Likewise.
10011 2006-07-30 Ulrich Drepper <drepper@redhat.com>
10013 * locale/programs/localedef.c (add_to_readlist): Rename local
10014 variables to avoid confusion.
10016 * locale/programs/charmap.c (charmap_read): Emit error message if
10017 charmap couldn't be found or read.
10019 2006-07-28 Ulrich Drepper <drepper@redhat.com>
10021 * sysdeps/unix/sysv/linux/kernel-features.h: Define
10022 __ASSUME_FUTEX_LOCK_PI.
10023 * include/time.h: Declare __nanosleep_nocancel.
10024 * include/unistd.h: Declare __pause_nocancel.
10026 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10027 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
10028 get the __stack_chk_fail_local definition when it's needed.
10030 2006-07-26 Ulrich Drepper <drepper@redhat.com>
10032 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10033 * dlfcn/bug-atexit3.c: New file.
10034 * dlfcn/bug-atexit3-lib.cc: New file.
10036 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10037 used when the namespace is not the base namespace.
10039 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
10041 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10042 (__new_exitfn): Bump it in every successful call.
10043 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10044 more exit handlers, call them right away.
10045 * stdlib/exit.h: Declare __new_exitfn_called.
10047 2006-07-25 Ulrich Drepper <drepper@redhat.com>
10049 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10050 calling registered handler.
10052 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10053 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10054 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10055 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10056 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10057 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10058 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10059 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10061 2006-07-10 Ulrich Drepper <drepper@redhat.com>
10063 * elf/dl-lookup.c (dl_new_hash): New functions.
10064 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10065 value here. Compute new-style hash value. Pass new hash value
10066 and reference to variable with the old value to do_lookup_x.
10067 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10068 old-style hash table.
10069 (_dl_debug_bindings): Pass new hash value and reference to variable
10070 with the old value to do_lookup_x.
10071 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10072 new-style hash value and change old-style hash value parameter to
10073 be a reference. Reoganize functions to determine whether
10074 new-style hash table is available. Only fall back on old-style
10075 table. If old-style hash value is needed, compute it here.
10076 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
10078 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
10079 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
10080 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
10081 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
10082 * Makeconfig: If linker supports --hash-style option add it to all
10083 linker command lines to build DSOs.
10084 * config.make.in: Define have-hash-style.
10085 * configure.in: Test whether linker supports --hash-style option.
10087 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
10088 * sysdeps/generic/ldsodefs.h: Adjust prototype.
10090 2006-06-27 Ulrich Drepper <drepper@redhat.com>
10092 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
10095 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
10096 RPATH of main map twice.
10098 2006-06-22 Ulrich Drepper <drepper@redhat.com>
10100 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
10101 look further, return original strings.
10102 (_nl_find_msg): Do not return found translation if the conversion
10103 failed. Either signal the string is unusable or that something went
10104 wrong and the original should be used.
10106 2006-06-21 Ulrich Drepper <drepper@redhat.com>
10108 * string/_strerror.c (__strerror_r): Add __builtin_expect.
10110 2006-06-14 Jakub Jelinek <jakub@redhat.com>
10113 * misc/insremque.c (insque): Handle prev == NULL.
10114 * misc/Makefile (tests): Add tst-insremque.
10115 * misc/tst-insremque.c: New test.
10117 2006-06-17 Ulrich Drepper <drepper@redhat.com>
10120 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
10121 conflict with DL_DST_REQUIRED.
10123 2006-06-16 Ulrich Drepper <drepper@redhat.com>
10125 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
10126 match what Solaris does.
10128 2006-06-04 Ulrich Drepper <drepper@redhat.com>
10130 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
10131 local_setegid instead of seteuid and setegid.
10132 * sysdeps/generic/local-setxid.h: New file.
10133 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
10135 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
10137 * string/Makefile (tests): Add bug-envz1.
10138 * string/bug-envz1.c: New file.
10140 2006-06-02 Jakub Jelinek <jakub@redhat.com>
10142 * posix/regex_internal.c (re_string_skip_chars): If no character has
10143 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
10144 to the byte which couldn't be converted.
10145 (re_string_reconstruct): Don't clear valid_raw_len before calling
10146 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
10147 tip_context using re_string_context_at.
10148 * posix/Makefile: Add rules to build and run bug-regex25 test.
10149 * posix/bug-regex25.c: New test.
10151 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
10154 * string/envz.c (envz_strip): Correct erroneously reversed src
10155 and dest parameters to memmove() invocation.
10157 2006-05-30 Jakub Jelinek <jakub@redhat.com>
10159 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
10160 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
10161 to make sure the database has been already invalidated.
10162 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
10163 after the cache has been invalidated. Use pthread_mutex_lock rather
10164 than pthread_mutex_trylock if fd != -1.
10165 * nscd/connections.c (invalidate_cache): Add fd argument, write
10166 response to fd if not calling prune_cache, pass fd to prune_cache.
10167 (handle_request): Adjust invalidate_cache caller.
10168 (nscd_run): Pass -1 as fd to prune_cache.
10170 2006-05-30 Ulrich Drepper <drepper@redhat.com>
10172 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
10175 2006-05-29 Ulrich Drepper <drepper@redhat.com>
10177 * nscd/nscd.h (struct database_dyn): Add prunelock field.
10178 * nscd/cache.c (prune_cache): Take prunelock before starting the
10179 work. Just return in case it is already taken.
10180 * nscd/connections.c (dbs): Initialize .prunelock.
10182 2006-05-25 Ulrich Drepper <drepper@redhat.com>
10184 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
10185 copying. No need to allocate new array for group members. Just
10186 move the pointers and update the size.
10188 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
10189 Avoid memory leak in case realloc fails. Simplification for
10190 better code generation.
10192 Avoid deprecation warning because of libc_hidden_proto for
10193 inet6_option_alloc.
10194 * inet/inet6_option.c (option_alloc): Renamed from
10195 inet6_option_alloc. Made static.
10196 (inet6_option_alloc): Now a simple wrapper around option_alloc.
10197 (inet6_option_append): Call option_alloc.
10198 * include/netinet/in.h: Remove libc_hidden_proto for
10199 inet6_option_alloc.
10201 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
10202 for cleanup when cb!=NULL [Coverity CID 233].
10204 2006-05-24 Ulrich Drepper <drepper@redhat.com>
10207 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
10208 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
10209 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
10210 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
10211 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
10212 and inet6_rth_getaddr.
10213 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
10215 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
10216 Mark inet6_option_* interfaces as deprecated.
10217 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
10218 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
10219 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
10220 inet6_rth_segments, and inet6_rth_getaddr.
10221 * inet/inet6_opt.c: New file.
10222 * inet/inet6_rth.c: New file.
10224 * inet/netinet/icmp6.h: Pretty printing.
10227 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
10229 2006-05-23 Ulrich Drepper <drepper@redhat.com>
10231 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
10232 doing it all here. When server does not know the answer do not
10233 fail immediate, try parent first.
10235 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
10238 2006-05-20 Ulrich Drepper <drepper@redhat.com>
10240 * nis/nis_call.c (__prepare_niscall): New function. Split out
10242 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
10244 (__follow_path): New function. Split out from nis_list.
10245 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
10247 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
10249 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
10251 * nis/Versions: Export __prepare_niscall, __create_ib_request,
10252 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
10253 from libnsl for version GLIBC_PRIVATE.
10254 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
10255 Remove entry parameter from _nss_nisplus_parse_pwent and
10256 _nss_nisplus_parse_grent.
10257 * nis/nss_nisplus/nisplus-parser.c: Likewise.
10258 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
10259 again. Rewrite getpwent handling to not use nis_first_entry and
10260 nis_next_entry. Roll out own niscall handling.
10261 * nis/nss_nisplus/nisplus-grp.c: Likewise.
10263 * sunrpc/xdr_rec.c: Fix typo in comment.
10265 2006-05-19 Ulrich Drepper <drepper@redhat.com>
10267 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
10270 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
10271 to allocate memory for my_pollfd. Better initialization of
10272 cb_is_running. Use TEMP_FAILURE_RETRY.
10274 * malloc/memusage.sh (memusageso): Add quotes.
10275 (memusagestat): Likewise.
10276 * debug/xtrace.sh (pcprofileso): Likewise.
10277 (pcprofiledump): Likewise.
10278 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
10280 * malloc/Makefile ($(objpfx)memusage): Likewise.
10282 * nis/nis_callback.c (__nis_create_callback): Calls to
10283 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
10284 asprintf call fails.
10286 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
10287 no uninitialized memory is passed to sendto.
10289 2006-05-18 Ulrich Drepper <drepper@redhat.com>
10291 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
10292 of snprintf+strdup. Handle OOM.
10293 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
10294 cb->serv together. Remove now obsolete free calls.
10295 (__nis_destroy_callback): Remove now obsolete free call.
10297 2006-05-18 David Woodhouse <dwmw2@redhat.com>
10299 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
10300 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
10301 and ULA respectively). Set precedence for IPv4 address to 10 as
10302 defined in RFC3484 for preferring IPv6.
10303 * posix/gai.conf: Update to match the new default tables.
10305 2006-05-18 Jakub Jelinek <jakub@redhat.com>
10307 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
10308 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
10309 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
10310 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
10312 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
10314 (init_nss_interface): Remove initialization of these variables.
10316 2006-05-18 Ulrich Drepper <drepper@redhat.com>
10318 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
10319 nis_free_directory forward to avoid duplication.
10321 2006-05-17 Ulrich Drepper <drepper@redhat.com>
10323 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
10324 rec_dirsearch returning NULL.
10325 (first_shoot): Handle __nis_finddirectory returning NULL.
10326 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
10328 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
10329 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
10331 2006-05-17 Jakub Jelinek <jakub@redhat.com>
10333 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
10336 2006-05-15 Ulrich Drepper <drepper@redhat.com>
10338 * include/rpc/pmap_prot.h: Mark all functions as hidden.
10340 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
10341 * nscd/nscd_getgr_r.c: Likewise.
10343 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
10345 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
10346 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
10348 * stdlib/longlong.h (__clz_tab): Mark as hidden.
10350 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
10352 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
10354 * include/rpc/auth.h: Mark xdr_des_block_internal and
10355 xdr_opaque_auth_internal as hidden.
10357 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
10360 * include/rpc/xdr.h: Mark all _internal functions as hidden.
10362 * misc/getusershell.c (okshells): Don't use static initializers,
10365 * stdlib/fmtmsg.c (keywords): Change type of len element to
10366 uint32_t to not waste space on 64bit machines.
10368 * locale/setlocale.c: Change _nl_category_names into a string.
10369 Add new _nl_category_name_idxs. Change all users.
10370 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
10371 Declare _nl_category_name_idxs.
10372 * locale/findlocale.c: Adjust for _nl_category_names change.
10373 * locale/loadlocale.c: Likewise.
10374 * locale/newlocale.c: Likewise.
10375 * intl/dcigettext.c: Likewise.
10377 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
10378 (add_alias2): ...here. New function.
10379 (__gconv_read_conf): Simplify builtin alias handling.
10380 (builtin_aliases): Convert to string to avoid relocations.
10381 * iconv/gconv_builtin.h: Add comment about correct formatting.
10383 2006-05-15 Jakub Jelinek <jakub@redhat.com>
10385 * resolv/res_debug.c (loc_ntoa): Make error const.
10387 2006-05-14 Andreas Schwab <schwab@suse.de>
10389 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
10391 2006-05-12 Jakub Jelinek <jakub@redhat.com>
10393 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
10394 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
10395 sizeof (cpu_set_t).
10397 2006-05-11 Ulrich Drepper <drepper@redhat.com>
10399 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
10401 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
10403 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
10404 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
10406 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
10407 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
10409 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
10410 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
10413 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
10414 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10417 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
10418 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
10420 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
10421 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
10423 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
10424 * include/rpcsvc/nis_callback.h: New file.
10426 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
10427 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
10429 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10430 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10432 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
10433 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
10435 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10436 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10438 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
10439 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10442 * nis/nis_xdr.h: Mark all functions as hidden. Remove
10443 __BEGIN_DECLS and __END_DECLS, the header is not installed.
10445 * nis/nis_error.c: Remove table of strings. Use position
10446 independent mechanism.
10447 * nis/nis_error.h: New file.
10449 2006-05-11 Jakub Jelinek <jakub@redhat.com>
10451 * locale/programs/ld-time.c (time_finish): If wide era name or
10452 format aren't provided, set both wname and wformat to L"".
10454 2006-05-10 Ulrich Drepper <drepper@redhat.com>
10456 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
10457 results if the call was succesful.
10459 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
10461 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
10464 2006-05-10 Jakub Jelinek <jakub@redhat.com>
10466 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
10468 2006-05-10 Ulrich Drepper <drepper@redhat.com>
10470 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
10471 caller makes sure this is not the case.
10472 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
10474 2006-05-09 Ulrich Drepper <drepper@redhat.com>
10476 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
10479 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
10480 [Coverity CID 229, 230]
10482 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
10484 (hol_help): Likewise. [Coverity CID 226, 227]
10486 * string/argz-replace.c (__argz_replace): Unconditionally call
10487 free on SRC. [Coverity CID 225]
10489 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
10490 the return value of __nis_default_owner and __nis_default_group,
10491 it has been especially allocated. [Coverity CID 224]
10493 * nis/nis_defaults.c (searchXYX): New functions. Used by both
10494 searchgroup and searchowner. Significantly simplified.
10495 (__nis_default_owner): Remove duplication. Do not locally copy the
10496 string before duplicating it.
10497 (__nis_default_group): Likewise.
10499 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
10500 we must clear the variable before calling __nisfind_server.
10502 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
10503 nis_getnames. [Coverity CID 223]
10505 * locale/programs/locfile.c (locfile_read): Use alloca instead of
10506 xmalloc to allocate local repertoire name. [Coverity CID 222]
10508 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
10509 allocate memory for the input to add_bytes. [Coverity CID 221]
10511 * posix/wordexp.c (w_addword): Free word if realloc fails and it
10512 was allocated here. [Coverity CID 219, 220]
10514 * posix/getconf.c (print_all): Free confstr data after printing.
10517 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
10518 list allocation fails. [Coverity CID 215]
10520 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
10523 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
10524 string is NULL. [Coverity CID 212]
10525 * argp/Makefile: Add rules to build and run bug-argp1.
10526 * argp/bug-argp1.c: New file.
10528 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
10530 * stdlib/canonicalize.c (__realpath): Likewise.
10532 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
10533 pointer. [Coverity CID 206]
10535 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
10536 in statically linked code.
10537 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
10538 statically built code, be prepared to have no link map.
10541 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
10542 dgettext calls. [Coverity CID 204]
10544 * argp/argp-help.c (struct uparams): Remove valid member. Change
10546 (uparam_names): Reduce size. Avoid relative relocations.
10547 Moved to read-only segment.
10548 (fill_in_uparams): Update for new layout.
10550 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
10551 assumed to always be != NULL. [Coverity CID 202]
10553 * argp/argp-help.c (hol_entry_help): Remove some dead code
10554 [Coverity CID 200].
10556 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
10557 away a few more unconditional yperr2nss calls.
10558 (_nss_nis_getservbyname_r): Likewise.
10560 2006-05-06 Ulrich Drepper <drepper@redhat.com>
10562 * sysdeps/generic/ldsodefs.h: Remove support for non-core
10565 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
10566 that unused memory passed to sendto is nevertheless initialized.
10569 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
10570 possibly unaligned memory accesses.
10572 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
10573 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
10574 and __putlong respectively. Correct buffer overflow check for
10577 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
10579 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
10580 (send_dg): Rewrite error handling to be more compact and avoid
10581 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
10583 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
10585 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
10586 instead of ns_get16.
10587 (res_queriesmatch): Likewise. Minor optimization.
10590 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
10591 __libc_res_nsend might reallocate the buffer for the answer. In
10592 this case we have to reload the HP pointer.
10594 2006-05-05 Ulrich Drepper <drepper@redhat.com>
10596 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
10597 some branch prediction hints.
10599 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
10600 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10601 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10602 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10603 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10604 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10605 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10606 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10608 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
10610 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
10611 by a GOT relocation to make Scrt1.o position independent.
10612 * sysdeps/s390/s390-64/elf/start.S: Likewise.
10614 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
10615 six system call parameters.
10616 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
10618 2006-05-05 Ulrich Drepper <drepper@redhat.com>
10620 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
10623 * sunrpc/svc_udp.c (BZERO): Remove definition.
10625 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
10627 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
10628 (des_SPtrans): Use uint32_t type.
10629 (des_skb): Likewise.
10631 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
10633 2006-05-05 Jakub Jelinek <jakub@redhat.com>
10636 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
10639 2006-05-05 Ulrich Drepper <drepper@redhat.com>
10641 * locale/programs/ld-address.c (address_finish): Fix one more
10642 place where the iso639 array might be accessed beyond the limits.
10644 2006-05-04 Ulrich Drepper <drepper@redhat.com>
10646 * nis/nis_table.c (nis_list): Avoid clearing res twice before
10647 filling it for the first time.
10649 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
10650 Adjust all callers.
10651 Free res object content before returning.
10653 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
10655 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
10658 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
10659 cleanup for initial thread, just the free call on TVP.
10661 * nscd/gai.c (__getline): Define.
10664 See ChangeLog.16 for earlier changes.