1 2009-03-14 Ulrich Drepper <drepper@redhat.com>
4 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
5 alignement of La_x86_64_regs. Store xmm parameters.
6 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
9 * string/strverscmp.c (__strverscmp): Fix case of different digits
10 in fractional part of string.
11 Patch by Jingyu Liu <jyliu@fortinet.com>.
12 * string/Makefile (tests): Add tst-svc2.
13 * string/tst-svc2.c: New file.
15 * string/strverscmp.c (__strverscmp): Optimize size of tables.
17 * locale/iso-639.def: Add Min Nan.
19 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
22 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
24 2009-03-14 Ulrich Drepper <drepper@redhat.com>
26 * elf/dl-sysdep.c (auxvars): Compress data structure.
28 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
29 STT_GNU_IFUNC handling.
30 (elf_machine_rela): Likewise.
32 2009-03-13 Ulrich Drepper <drepper@redhat.com>
34 * config.h.in (USE_MULTIARCH): Define.
35 * configure.in: Handle --enable-multi-arch.
36 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
37 (_dl_fixup_profile): Likewise.
38 * elf/do-lookup.c (dl_lookup_x): Likewise.
39 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
40 * elf/elf.h (STT_GNU_IFUNC): Define.
41 * include/libc-symbols.h (libc_ifunc): Define.
42 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
43 framework in init-arch.h to get CPUID values.
44 * sysdeps/x86_64/multiarch/Makefile: New file.
45 * sysdeps/x86_64/multiarch/init-arch.c: New file.
46 * sysdeps/x86_64/multiarch/init-arch.h: New file.
47 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
49 * config.make.in (experimental-malloc): Define.
50 * configure.in: Handle --enable-experimental-malloc.
51 * malloc/Makefile: Handle experimental-malloc flag.
52 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
53 * malloc/arena.c: Likewise.
54 * malloc/hooks.c: Likewise.
55 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
57 2009-03-11 Ulrich Drepper <drepper@redhat.com>
59 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
60 prediction. A few size optimizations.
62 2009-03-10 Ulrich Drepper <drepper@redhat.com>
64 * time/tzset.c: Optimize a bit for size.
66 2009-03-10 Jakub Jelinek <jakub@redhat.com>
68 * include/stdio.h (fmemopen): Add libc_hidden_proto.
69 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
71 * elf/sprof.c: Avoid warning about multi-line comment.
73 2009-03-10 Ulrich Drepper <drepper@redhat.com>
75 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
77 * time/tst-posixtz.c: Add tests for quoted timezone names.
79 2009-03-10 Jakub Jelinek <jakub@redhat.com>
81 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
82 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
83 200809L instead of 200112L.
84 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
85 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
87 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
88 instead of __quick_exit_funcs to __run_exit_handlers.
89 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
90 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
91 (__cxa_at_quick_exit): Remove attribute_hidden.
92 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
93 to __run_exit_handlers.
94 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
97 2009-03-10 Ulrich Drepper <drepper@redhat.com>
99 * po/id.po: Update from translation team.
101 2009-02-18 Jakub Jelinek <jakub@redhat.com>
103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
104 .machine push; .machine "power6" and .machine pop around mtfsf
105 insns outside of _ARCH_PWR6 define.
106 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
107 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
109 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
111 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
112 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
113 relax_fenv_state): Likewise.
115 2009-03-08 Ulrich Drepper <drepper@redhat.com>
117 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
119 (static-only-routines): Add at_quick_exit.
120 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
122 * stdlib/quick_exit.c: New file.
123 * stdlib/at_quick_exit.c: New file.
124 * stdlib/cxa_at_quick_exit.c: New file.
125 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
127 (__internal_atexit): New function.
128 (__new_exitfn): Now takes parameter to point to the list to use.
129 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
130 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
131 (exit): ...here. Just call __run_exit_handlers appropriately.
132 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
133 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
134 * stdlib/on_exit.c: Adjust call to __new_exitfn.
135 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
137 * po/id.po: Update from translation team.
139 2009-03-07 Ulrich Drepper <drepper@redhat.com>
141 * po/ru.po: Update from translation team.
143 2009-03-04 Ulrich Drepper <drepper@redhat.com>
145 * po/nl.po: Update from translation team.
147 2009-03-03 Ulrich Drepper <drepper@redhat.com>
149 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
150 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
151 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
152 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
153 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
154 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
155 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
157 * po/pl.po: Update from translation team.
159 2009-03-02 Ulrich Drepper <drepper@redhat.com>
162 * sysdeps/unix/sysv/linux/fallocate.c: New file.
163 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
164 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
165 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
166 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
167 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
168 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
170 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
171 Add fallocate and fallocate64.
173 * io/fcntl.h: Pretty printing.
175 2009-03-02 Richard Guenther <rguenther@suse.de>
177 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
178 attribute also for non-C99 inline semantics variant.
180 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
182 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
183 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
184 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
185 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
186 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
188 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
191 2009-03-02 Ulrich Drepper <drepper@redhat.com>
193 * po/cs.po: Update from translation team.
195 2009-02-28 Ulrich Drepper <drepper@redhat.com>
197 * po/bg.po: Update from translation team.
198 * po/sv.po: Likewise.
199 * po/fi.po: Likewise.
200 * po/vi.po: Likewise.
202 2009-02-27 Roland McGrath <roland@redhat.com>
204 * Makeconfig (%.v.i): Depend on Makeconfig.
205 Exclude % lines from initial #-comment removal.
207 2009-02-27 Ulrich Drepper <drepper@redhat.com>
209 * po/ko.po: Update from translation team.
211 2009-02-26 Roland McGrath <roland@redhat.com>
213 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
214 avoids unused warning.
216 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
217 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
219 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
220 sys/ucontext.h and asm/elf.h. Include sys/user.h.
221 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
222 and asm/user.h. Include asm/ptrace.h.
223 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
224 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
225 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
227 (start_thread): Don't undefine.
228 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
231 2009-02-26 Ulrich Drepper <drepper@redhat.com>
233 * wctype/wctype.h: The *_l functions are in POSIX 2008.
234 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
235 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
236 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
237 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
239 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
240 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
241 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
242 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
243 _SC_THREAD_ROBUST_PRIO_PROTECT.
244 * posix/unistd.h: fexecve is in POSIX 2008.
245 * time/time.h: strftime_l is in POSIX 2008.
246 * io/sys/stat.h: futimens is in POSIX 2008.
247 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
248 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
249 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
250 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
251 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
252 open_memstream, and vdprintf are in POSIX 2008.
254 2009-02-25 Ulrich Drepper <drepper@redhat.com>
256 * include/features.h: Define macros for XPG7/POSIX 2008.
257 * ctype/ctype.h: The *_l functions are in POSIX 2008.
258 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
260 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
261 * locale/xlocale.h: Define locale_t type.
262 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
263 in POSIX 2008. Don't define locale_t here.
264 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
265 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
266 UTIME_OMIT only with __USE_ATFILE.
267 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
268 * stdio-common/psiginfo.c: New file.
269 * stdio-common/psiginfo-data.h: New file.
270 * stdio-common/psiginfo-define.h: New file.
271 * stdio-common/Makefile (routines): Add psiginfo.
272 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
273 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
274 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
275 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
276 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
277 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
278 * io/sys/stat.h: Move mknodat definition into same conditional as
280 * time/sys/time.h: futimesat is not among the functions accepted
281 into the POSIX standard.
283 * include/features.h: If no feature selection given and we select
284 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
285 * posix/Versions: Export __posix_getopt.
286 * posix/getopt.c (_getopt_initialize): Take additional parameter.
287 Use it to alternatively initialize __posixly_correct.
288 (_getopt_internal_r): Take addition parameter. Pass on to
290 (_getopt_internal): Take addition parameter. Pass on to
292 (getopt): Pass additional zero to _getopt_internal.
293 (__posix_getopt): New function.
294 * posix/getopt.h: Add redirection for getopt.
295 * posix/getopt1.c (getopt_long): Pass additional zero to
297 (getopt_long_only): Likewise.
298 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
299 (_getopt_long_only_r): Likewise.
300 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
303 2009-02-24 Ulrich Drepper <drepper@redhat.com>
305 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
306 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
307 * sysdeps/posix/sysconf.c (__sysconf): Handle
308 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
309 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
311 2009-02-24 Roland McGrath <roland@redhat.com>
314 * README.template: Reworded not to use substituted version number.
316 * README: ... here (no longer generated).
317 * Makefile (README): Target removed.
319 2009-02-24 Ulrich Drepper <drepper@redhat.com>
321 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
322 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
325 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
327 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
329 2009-02-22 Ulrich Drepper <drepper@redhat.com>
331 * po/bg.po: Update from translation team.
333 2009-02-16 Jakub Jelinek <jakub@redhat.com>
335 * stdlib/monetary.h: Uglify function parameter names.
336 * sunrpc/rpc/pmap_clnt.h: Likewise.
337 * sunrpc/rpc/svc.h: Likewise.
338 * sunrpc/rpc/xdr.h: Likewise.
339 * sunrpc/rpc/clnt.h: Likewise.
340 * resolv/netdb.h: Likewise.
341 * resolv/arpa/nameser.h: Likewise.
342 * resolv/resolv.h: Likewise.
343 * argp/argp.h: Likewise.
344 * locale/langinfo.h: Likewise.
345 * io/sys/stat.h: Likewise.
346 * posix/spawn.h: Likewise.
347 * nis/rpcsvc/nislib.h: Likewise.
348 * malloc/obstack.h: Likewise.
349 * sysdeps/ia64/bits/link.h: Likewise.
350 * sysdeps/i386/bits/link.h: Likewise.
351 * sysdeps/s390/bits/link.h: Likewise.
352 * sysdeps/powerpc/bits/link.h: Likewise.
353 * sysdeps/x86_64/bits/link.h: Likewise.
354 * sysdeps/sparc/bits/link.h: Likewise.
355 * sysdeps/sh/bits/link.h: Likewise.
356 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
357 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
358 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
359 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
361 2008-12-01 Fredrik Unger <fred@tree.se>
363 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
364 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
365 _FP_UNPACK_RAW_2, fix up first argument.
367 2009-02-15 Ulrich Drepper <drepper@redhat.com>
369 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
370 (GET_NPROCS_PARSER): Change parameters and use next_line.
371 (__get_nprocs): Rewrite to not use stdio routines.
372 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
373 Change parameters and use next_line.
375 2009-02-13 Ulrich Drepper <drepper@redhat.com>
378 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
379 Change mempool_alloc prototype.
380 * nscd/mem.c (gc): Don't handle mem_in_flight.
381 (mempool_alloc): Third parameter now only indicates whether this is the
382 first call (to allocate data) or not. If it is, get db rdlock.
383 Release it on error. Don't handle mem_in_flight.
384 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
385 Adjust third parameter of mempool_alloc calls.
386 Nothing to do here in case mempool_alloc fails.
387 Avoid local variable shadowing parameter. No need to get db rdlock
388 before calling cache_add.
389 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
390 no mem_in_flight array anymore.
391 * nscd/connections.c: Remove definition and handling of mem_in_flight.
392 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
393 mempool_alloc calls. Mark he parameter as const. Nothing to do here
394 in case mempool_alloc fails. No need to get db rdlock before calling
396 * nscd/hstcache.c (cache_addhst): Likewise.
397 * nscd/initgrcache.c (addinitgroupsX): Likewise.
398 * nscd/servicescache.c (cache_addserv): Likewise.
399 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
401 2009-02-11 Ulrich Drepper <drepper@redhat.com>
403 * po/lt.po: Update from translation team.
405 2009-02-10 Ulrich Drepper <drepper@redhat.com>
407 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
408 defined, allow additional data to be added using the optional
409 MORE_ELF_HEADER_DATA macro.
410 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
411 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
413 2009-02-08 Ulrich Drepper <drepper@redhat.com>
415 * include/atomic.h: Define catomic_and if not already defined.
416 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
417 * sysdeps/i386/i486/bits/atomic.h: Likewise.
419 2009-02-07 Ulrich Drepper <drepper@redhat.com>
421 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
423 (_int_realloc): Likewise. Third argument is now padded size
424 All _int_* functions are now static.
426 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
427 * malloc/arena.c: Likewise.
428 * include/malloc.h: Remove now unnecessary declarations of the _int_*
431 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
434 * malloc/malloc.c: Add branch prediction for use of the hooks.
436 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
438 2009-02-06 Ulrich Drepper <drepper@redhat.com>
441 * bits/confname.h: Add SUSv7 macros for getconf environments.
442 * bits/environments.h: Likewise.
443 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
444 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
445 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
446 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
447 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
448 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
449 * posix/getconf.c: Likewise.
450 * posix/sysconf.c: Likewise.
451 * sysdeps/posix/sysconf.c: Likewise.
452 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
455 2009-01-16 Petr Baudis <pasky@suse.cz>
458 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
459 even if we currently have zero nscount.
461 2009-02-06 Ulrich Drepper <drepper@redhat.com>
464 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
465 the input line is too long.
467 * po/Makefile (libc.pot): Add f_print as function taking c-format
470 * debug/xtrace.sh: Unify translatable messages.
471 * elf/ldd.bash.in: Likewise.
472 * elf/sprof.c: Likewise.
473 * locale/programs/locale.c: Likewise.
474 * malloc/memusage.sh: Likewise.
475 * nss/getent.c: Likewise.
477 2009-02-06 Joseph Myers <joseph@codesourcery.com>
479 * debug/pcprofiledump.c (print_version,
480 argp_program_version_hook): New function.
481 * elf/ldconfig.c (more_help): New function.
483 * elf/sln.c (usage): New function.
484 (main): Support --help and --version.
485 * malloc/memusagestat.c (print_version): New function.
486 (argp_program_version_hook): New variable.
487 * nscd/nscd.c (more_help): New function.
489 * posix/getconf.c (main): Send --version output to stdout.
491 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
492 arguments. All callers changed.
493 (print_version): New function.
494 (parseargs): Support --help and --version.
495 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
497 (print_version): New function.
498 (main): Use getopt_long. Support --help and --version.
499 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
502 2009-02-06 Ulrich Drepper <drepper@redhat.com>
504 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
505 (update_data): Fix handling of wrapping back
506 to the beginning of the buffer.
509 * stdio-common/psignal.c (psignal): Fix test for empty string.
511 2009-02-05 Ulrich Drepper <drepper@redhat.com>
513 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
514 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
515 move _null_auth to .rodata.
517 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
520 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
522 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
523 today than when the original code was written. Use larger
524 buffers. This also makes it unnecessary to have stat information,
525 if this causes extra efforts.
526 (__opendir): In case O_DIRECTORY works, don't call fstat just for
529 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
531 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
533 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
534 * sysdeps/sh/sh4/__longjmp.S: Likewise.
535 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
536 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
537 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
538 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
540 2009-02-04 Ulrich Drepper <drepper@redhat.com>
542 * po/ru.po: Update from translation team.
544 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
546 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
547 Add _tid slot to maintain consistency with kernel.
549 2009-02-04 Ulrich Drepper <drepper@redhat.com>
551 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
552 incomplete characters at end of input buffer.
553 * libio/Makefile (tests): Add tst-fgetwc.
554 * libio/tst-fgetwc.c: New file.
555 * libio/tst-fgetwc.input: New file.
557 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
559 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
561 2009-02-02 Ulrich Drepper <drepper@redhat.com>
564 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
565 *OUTBUFSTART unless the whole output fit into the buffer.
566 * iconv/Makefile (tests): Add tst-iconv4.
567 * iconv/tst-iconv4.c: New file.
569 2009-02-01 Ulrich Drepper <drepper@redhat.com>
571 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
572 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
574 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
576 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
577 newer linker scripts.
579 2009-01-30 Ulrich Drepper <drepper@redhat.com>
582 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
583 inotify_rm_watch should have type int.
585 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
587 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
588 Make aligned_restore_vmx a local symbol.
589 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
592 2009-01-30 Andreas Jaeger <aj@suse.de>
594 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
595 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
596 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
597 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
598 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
599 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
600 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
602 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
605 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
606 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
608 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
612 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
614 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
616 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
618 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
619 memcpy instead of memcmp.
620 (_dl_setup_pointer_guard): Likewise.
622 2009-01-30 Ulrich Drepper <drepper@redhat.com>
624 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
625 manipulated brk, use malloc_printerr.
626 * misc/sbrk.c (__sbrk): Better error handling for nonsense
629 2009-01-30 Jakub Jelinek <jakub@redhat.com>
631 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
632 rindex): For C++ add inlines so that they can be recognized as
634 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
636 2009-01-29 Ulrich Drepper <drepper@redhat.com>
637 Jakub Jelinek <jakub@redhat.com>
639 * string/string.h: Define correct C++ prototypes for gcc 4.4.
640 * wcsmbs/wchar.h: Likewise.
642 2009-01-29 Ulrich Drepper <drepper@redhat.com>
644 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
645 (stackinfo_sub_sp): Define.
647 2009-01-28 Ulrich Drepper <drepper@redhat.com>
650 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
651 * include/alloca.h (alloca_account): Define.
652 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
653 (stackinfo_sub_sp): Define.
655 * nscd/connections.c (nscd_init): If database file access fails
656 check whether this is due to permission problems and bail in that
660 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
661 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
663 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
665 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
666 Add "t" to clobber list.
667 (INTERNAL_SYSCALL_NCS): Likewise.
669 2009-01-28 Ulrich Drepper <drepper@redhat.com>
671 * nss/getent.c (print_networks): Don't print comma between aliases.
673 2009-01-23 Ulrich Drepper <drepper@redhat.com>
675 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
677 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
679 * misc/Makefile (tests): Add bug-hsearch1.
680 * misc/bug-hsearch1.c: New file.
682 2009-01-22 Roland McGrath <roland@redhat.com>
684 * Makeconfig (%.v.i): Strip trailing # comments,
685 not only whole-line comments.
687 2009-01-10 Ulrich Drepper <drepper@redhat.com>
689 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
690 one parameter. If non-NULL use it to initialize return value.
691 (_dl_setup_pointer_guard): New function.
692 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
693 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
694 * elf/rtld.c (security_init): Pass _dl_random to
695 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
697 * elf/dl-sysdep.c (_dl_random): New variable.
698 (_dl_sysdep_start): Handle AT_RANDOM.
699 (_dl_show_auxv): Likewise.
700 * elf/dl-support.c (_dl_random): New variable.
701 (_dl_aux_init): Handle AT_RANDOM.
702 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
703 to _dl_setup_stack_chk_guard.
705 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
707 2009-01-10 Roland McGrath <roland@redhat.com>
709 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
711 2009-01-08 Ulrich Drepper <drepper@redhat.com>
713 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
716 * nss/nss_files/files-parse.c (strtou32): New function.
717 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
718 across 32-bit and 64-bit platforms.
719 (INT_FIELD_MAYBE_NULL): Likewise.
721 2009-01-08 Jakub Jelinek <jakub@redhat.com>
724 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
725 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
726 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
729 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
732 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
733 being NULL also if there are no backreferences.
734 * posix/rxspencer/tests: Add testcases.
736 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
739 * posix/bug-regex17.c: Add testcases.
740 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
743 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
745 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
746 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
747 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
748 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
750 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
751 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
752 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
753 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
754 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
755 * sysdeps/unix/sysv/linux/s390/Versions: New file.
757 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
759 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
760 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
761 re_string_skip_chars, re_string_reconstruct): Likewise.
762 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
764 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
766 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
767 adjust the buffer alignment.
769 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
771 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
772 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
775 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
776 flavor to description only when flavor is not NULL.
778 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
779 mutex after SIGIO/SIGURG lookup loop.
781 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
783 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
785 2009-01-03 Ulrich Drepper <drepper@redhat.com>
787 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
790 2009-01-02 Ulrich Drepper <drepper@redhat.com>
792 * sysdeps/unix/sysv/linux/kernel-features.h
793 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
795 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
796 if no output is written.
798 * version.h: Bump to 2.10 development.
800 * posix/getconf.c: Update copyright year.
801 * nss/getent.c: Likewise.
802 * iconv/iconvconfig.c: Likewise.
803 * iconv/iconv_prog.c: Likewise.
804 * elf/ldconfig.c: Likewise.
805 * catgets/gencat.c: Likewise.
806 * csu/version.c: Likewise.
807 * elf/ldd.bash.in: Likewise.
808 * elf/sprof.c (print_version): Likewise.
809 * locale/programs/locale.c: Likewise.
810 * locale/programs/localedef.c: Likewise.
811 * nscd/nscd.c (print_version): Likewise.
812 * debug/xtrace.sh: Likewise.
813 * malloc/memusage.sh: Likewise.
814 * malloc/mtrace.pl: Likewise.
815 * debug/catchsegv.sh: Likewise.
817 2008-12-29 Mike Frysinger <vapier@gentoo.org>
819 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
822 2008-12-29 Ulrich Drepper <drepper@redhat.com>
824 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
825 gethostbyname4_r function call succeeded, just leave the loop.
828 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
830 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
831 * wctype/Makefile (tests): Add bug-wctypeh.
832 * wctype/bug-wctypeh.c: New file.
834 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
835 LOCALDOMAIN is defined.
836 * nscd/nscd_getai.c (__nscd_getai): Likewise.
838 * sysdeps/x86_64/bits/select.h: New file.
840 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
842 2008-12-21 Bruno Haible <bruno@clisp.org>
845 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
846 if no output is written.
848 2008-12-13 Klaus Dittrich <kladit@arcor.de>
850 * login/utmp_file.c (pututline_file): Replace call to dup2 with
851 libc internal symbol __dup2 to avoid access through the PLT.
853 2008-12-08 Ulrich Drepper <drepper@redhat.com>
856 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
857 available only for __USE_GNU.
859 * inet/Makefile (tests): Add tst-getni2.
860 * inet/tst-getni2.c: New file.
863 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
864 NULL when NI_NAMEREQD is set.
865 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
866 * inet/Makefile (tests): Add tst-getni1.
867 * inet/tst-getni1.c: New file.
869 2008-12-03 Petr Baudis <pasky@suse.cz>
872 * nscd/connections.c (invalidate_cache): Use prune_run_lock
873 instead of prune_lock.
874 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
875 * nscd/nscd.h (database_dyn): Add prune_run_cache.
877 2008-12-07 Ulrich Drepper <drepper@redhat.com>
879 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
882 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
885 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
886 after reading name server list.
889 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
890 handling for host name aliases.
892 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
894 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
895 instead of doing things manually.
897 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
899 * posix/regex_internal.h (build_wcs_upper_buffer):
900 Return type is reg_error_t.
902 2008-12-05 Ulrich Drepper <drepper@redhat.com>
904 * posix/globtest.sh: Use mktemp to create temporary file and
907 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
909 (__CPU_CLR_S): Likewise.
910 (__CPU_ISSET_S): Likewise.
912 2008-12-05 Joseph Myers <joseph@codesourcery.com>
913 Ulrich Drepper <drepper@redhat.com>
915 * scripts/firstversion.awk: Use custom comparison function to compare
917 * scripts/versions.awk: Use sort invocation which can handle
918 multi-digit sub-version numbers.
920 2008-12-04 Ulrich Drepper <drepper@redhat.com>
922 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
923 * locale/iso-639.def: Add Chhattisgarhi entry.
925 2008-12-02 Ulrich Drepper <drepper@redhat.com>
927 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
929 (_nss_dns_gethostbyname4_r): Likewise.
930 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
931 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
932 gethostbyname4_r, we don't have a separate IPv6 status, so copy
933 the no_data variable.
935 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
936 information at the correct index.
938 * socket/sys/socket.h: Declare accept4.
939 * socket/accept4.c: New file.
940 * sysdeps/unix/sysv/linux/accept4.c: New file.
941 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
942 * socket/Makefile (routines): Add accept4.
943 * socket/Versions: Export accept4 with version GLIBC_2.10.
944 * socket/paccept.c: Removed.
945 * sysdeps/unix/sysv/linux/paccept.c: Removed.
946 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
947 * Versions.def: Define GLIBC_2.10 for libc.
948 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
950 * nscd/connections.c: Use accept4.
952 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
954 2008-12-01 Ulrich Drepper <drepper@redhat.com>
956 * resolv/res_send.c (send_dg): Create sockets with non-blocking
959 * stdlib/setenv.c (unsetenv): Don't search environment if it does
961 * stdlib/Makefile (tests): Add tst-unsetenv1.
962 * stdlib/tst-unsetenv1.c: New file.
964 2008-11-29 Ulrich Drepper <drepper@redhat.com>
966 * login/utmp_file.c (file_writable): New variable.
967 (setutent_file): Don't try to open file for writing.
968 (pututline_file): Before writing, make descriptor writable if
971 2008-11-26 Ulrich Drepper <drepper@redhat.com>
973 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
974 to IPv4 or IPv6 if an interface has been found.
976 2008-11-26 Roland McGrath <roland@redhat.com>
978 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
979 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
981 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
982 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
983 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
985 * elf/elf.h (NT_386_IOPERM): New macro.
986 (NT_PPC_VSX): New macro.
988 2008-11-25 Roland McGrath <roland@redhat.com>
990 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
991 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
992 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
993 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
994 Subdirectories moved to ports repository.
995 * configure.in (base_machine): Remove alpha case.
997 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
999 * sysdeps/mach/strerror_l.c: New file.
1001 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
1004 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1005 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1007 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1008 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1009 (relax_fenv_state): Same as above.
1010 (FPSCR_29): Reserve bit in ISA 2.05.
1011 (FPSCR_NI): Provide define for compat.
1012 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1014 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1016 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
1017 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1018 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1019 access to hwcap to account for hwcap size increase to uint64_t.
1020 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1022 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1023 (*setcontext): Likewise.
1024 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1026 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1028 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1029 (*setcontext): dynamically select mtfsf insn based on
1030 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1031 increase to uint64_t.
1032 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1033 (*swapcontext): dynamically select mtfsf insn based on
1034 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1035 increase to uint64_t.
1036 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1038 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1040 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1041 (*setcontext): dynamically select mtfsf insn based on
1042 PPC_FEATURE_HAS_DFP.
1043 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1044 (*swapcontext): dynamically select mtfsf insn based on
1045 PPC_FEATURE_HAS_DFP.
1047 2008-11-13 Ulrich Drepper <drepper@redhat.com>
1049 * version.h: Bump for 2.9 release.
1050 * include/features.h (__GLIBC_MINOR__): Bump to 9.
1053 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
1054 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
1057 2008-11-11 Ulrich Drepper <drepper@redhat.com>
1060 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
1061 unknown request types for now.
1063 2008-11-11 Roland McGrath <roland@redhat.com>
1065 * sysdeps/x86_64/configure: New file.
1067 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
1068 * configure: Regenerated.
1070 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
1072 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
1073 correct instruction to remove the stack frame.
1075 2008-11-03 Michael Matz <matz@suse.de>
1077 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
1078 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
1080 2008-11-07 Jakub Jelinek <jakub@redhat.com>
1082 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
1085 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
1086 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
1087 of the thread variable instead of void *.
1088 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
1089 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
1090 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1091 __libc_tsd_define arguments.
1092 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
1093 __libc_tsd_address arguments. Remove union hack.
1094 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
1095 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
1096 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
1097 Adjust __libc_tsd_{set,get} arguments.
1098 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1099 __libc_tsd_define arguments.
1100 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
1102 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1103 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
1104 (LOCALE): Adjust __libc_tsd_define arguments.
1105 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
1107 (LOCALE): Adjust __libc_tsd_define arguments.
1108 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
1110 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
1113 2008-11-02 Ulrich Drepper <drepper@redhat.com>
1115 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
1116 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1118 2008-11-01 Ulrich Drepper <drepper@redhat.com>
1121 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
1123 2008-10-24 Joseph Myers <joseph@codesourcery.com>
1124 Ulrich Drepper <drepper@redhat.com>
1126 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
1127 definition for GCC 3.1 and later.
1129 2008-10-31 Jakub Jelinek <jakub@redhat.com>
1131 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
1132 refetch dtv, as it might have changed.
1133 * elf/Makefile: Add rules to build and run tst-tls18.
1134 * elf/tst-tls18.c: New test.
1135 * elf/tst-tlsmod18a.c: New file.
1137 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
1140 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
1142 2008-10-31 Ulrich Drepper <drepper@redhat.com>
1145 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
1148 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
1149 Fix length of copy operation.
1151 2008-10-02 Pierre Habouzit <madcoder@debian.org>
1153 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
1154 and fix its calling convention.
1156 2008-10-07 Andreas Schwab <schwab@suse.de>
1159 * resolv/res_send.c (send_vc): Fix last change.
1160 (send_dg): Align here as well.
1162 2008-10-31 Ulrich Drepper <drepper@redhat.com>
1164 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
1165 return value in case rlimit is RLIM_INFINITY.
1168 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
1170 * resource/Makefile (tests): Add bug-ulimit1.
1171 * resource/bug-ulimit1.c: New file.
1174 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
1175 without dot. Properly terminate the string with a null byte.
1176 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
1179 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
1181 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
1185 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
1187 2008-10-30 Ulrich Drepper <drepper@redhat.com>
1189 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
1190 abort if there is no initgroups_dyn function.
1192 * resolv/res_send.c (send_dg): On timeout, only return nonzero
1193 result if any of the queries really provided an answer.
1195 2008-10-28 Ulrich Drepper <drepper@redhat.com>
1197 * po/lt.po: Update from translation team.
1199 2008-10-26 Ulrich Drepper <drepper@redhat.com>
1201 * po/id.po: Update from translation team.
1203 2008-10-24 Ulrich Drepper <drepper@redhat.com>
1205 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
1206 Fix tests for existence of second reply.
1208 2008-10-23 Ulrich Drepper <drepper@redhat.com>
1210 * po/id.po: New file.
1211 Contributed by the Indonesian translation team.
1213 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
1215 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
1218 2008-10-17 Jakub Jelinek <jakub@redhat.com>
1220 * elf/Makefile: Add rules to build and run tst-tls17.
1221 * elf/tst-tls17.c: New test.
1222 * elf/tst-tlsmod17a.c: New file.
1223 * elf/tst-tlsmod17b.c: Likewise.
1225 2008-10-17 Ulrich Drepper <drepper@redhat.com>
1227 * stdlib/divmod_1.c: Use correct type for dummy variable.
1228 * stdlib/mod_1.c: Likewise.
1230 2008-10-16 Ulrich Drepper <drepper@redhat.com>
1232 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
1234 2008-10-16 Jakub Jelinek <jakub@redhat.com>
1236 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
1237 __nonnull order for C++.
1238 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
1239 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
1241 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
1243 * stdlib/longlong.h: Update from GCC.
1245 2008-10-09 Jakub Jelinek <jakub@redhat.com>
1246 David S. Miller <davem@davemloft.net>
1248 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
1249 make sure any registers used with 64-bit 'branch-on-register'
1250 instructions have their top 32-bits clear.
1251 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
1252 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
1254 2008-09-18 Andreas Schwab <schwab@suse.de>
1257 * resolv/res_send.c (send_vc): Fix use of unaligned address.
1258 Properly handle partial reads.
1260 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
1262 * elf/elf.h (STO_MIPS_PLT): New.
1264 (R_MIPS_JUMP_SLOT): New.
1265 (R_MIPS_NUM): Redefine to 128.
1266 (DT_MIPS_PLTGOT): New.
1267 (DT_MIPS_RWPLT): New.
1268 (DT_MIPS_NUM): Redefine to 0x35.
1270 2008-10-01 Ulrich Drepper <drepper@redhat.com>
1272 * timezone/africa: Update from tzdata2008f.
1273 * timezone/asia: Likewise.
1274 * timezone/australasia: Likewise.
1275 * timezone/europe: Likewise.
1276 * timezone/leapseconds: Likewise.
1277 * timezone/northamerica: Likewise.
1278 * timezone/southamerica: Likewise.
1279 * timezone/zone.tab: Likewise.
1281 2008-09-30 Ulrich Drepper <drepper@redhat.com>
1283 * nscd/connections.c: Disable use of paccept for now.
1285 2008-09-29 Ulrich Drepper <drepper@redhat.com>
1287 * socket/Versions: Remove paccept export for GLIBC_2.9.
1288 * socket/Makefile (routines): Remove paccept.
1289 * socket/sys/socket.h: Remove paccept declaration.
1291 * po/sv.po: Update from translation team.
1293 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
1295 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
1296 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
1298 2008-09-16 Ulrich Drepper <drepper@redhat.com>
1300 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
1301 Patch by Olivier Fourdan <ofourdan@redhat.com>.
1303 2008-09-15 Ulrich Drepper <drepper@redhat.com>
1305 * sunrpc/rpc/svc.h: Declare svcfd_create.
1306 Patch by Michael Solberg <msolberg@redhat.com>.
1308 2008-09-12 Flavio Leitner <fleitner@redhat.com>
1309 Ulrich Drepper <drepper@redhat.com>
1311 * malloc/malloc.c (public_vALLOc): Try other arenas in case
1313 (public_pVALLOc): Likewise.
1315 2008-09-02 Andreas Jaeger <aj@suse.de>
1317 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
1320 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
1323 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
1325 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
1327 * Makefile (check-data): Check data directory in add-ons.
1328 * elf/Makefile (check-data): Likewise.
1330 2008-08-18 Roland McGrath <roland@redhat.com>
1332 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
1333 * configure: Regenerated.
1334 * config.make.in (cflags-cpu): New substituted variable.
1335 (with-cpu): Variable removed.
1336 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
1338 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
1341 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
1342 __signbitl definition and __LONG_DOUBLE_128__ guard from:
1343 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
1344 redundant. Functions which call floating point assembler operations
1345 should go into a sysdeps powerpc/fpu directory.
1347 2008-08-15 Ulrich Drepper <drepper@redhat.com>
1349 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
1350 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1352 2008-08-14 Ulrich Drepper <drepper@redhat.com>
1354 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
1356 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
1357 change related to AT_EXECFN. We cannot use that string.
1358 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
1360 * elf/dl-support.c: Remove _dl_execfn variable.
1361 (_dl_aux_init): Remove handling of AT_EXECFN.
1362 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
1363 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
1365 2008-08-13 Ulrich Drepper <drepper@redhat.com>
1368 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
1369 byte gets added to writes and seeks from the end use the length of
1370 the buffer and not the currently terminating NUL byte.
1373 * login/utmp_file.c (getutent_r_file): Take additional parameter.
1374 Set to true if locking failed.
1375 (getutid_r_file): Adjust caller.
1376 (pututline_file): Likewise. Return NULL in this case.
1377 Patch mostly by halesh.s@gmail.com.
1379 2008-08-12 Ulrich Drepper <drepper@redhat.com>
1382 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
1384 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
1386 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
1389 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
1390 macro since it is now available in elf/dynamic-link.h.
1392 2008-08-12 Roland McGrath <roland@frob.com>
1394 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
1395 in case used outside of libc.
1396 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
1398 2008-08-11 Ulrich Drepper <drepper@redhat.com>
1400 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
1401 directly instead of going through dn_comp.
1403 2008-08-11 Aurelien Jarno <aurel32@debian.org>
1405 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1406 Fix asm constraints.
1408 2008-08-07 Ulrich Drepper <drepper@redhat.com>
1411 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
1412 (IPV6_PMTUDISC_PROBE): Likewise.
1414 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
1417 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
1419 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
1420 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1423 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
1424 Added the members 'vsx' and 'arch_2_06'.
1425 (_dl_powerpc_platforms): Add the member 'power7'.
1426 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
1427 to reflect the changes required by VSX and ISA 2.06.
1428 Modify _DL_PLATFORMS_COUNT to reflect the addition of
1430 Defined PPC_PLATFORM_POWER7.
1431 (_dl_string_platform): Add support for POWER7.
1432 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
1433 capability and ISA 2.06.
1435 2008-08-07 Ulrich Drepper <drepper@redhat.com>
1438 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
1439 macro to detect use of 128 bit long double.
1440 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
1442 2008-08-05 Ulrich Drepper <drepper@redhat.com>
1444 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
1447 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
1449 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1450 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1452 2008-08-03 Ulrich Drepper <drepper@redhat.com>
1454 * nscd/connections.c (main_loop_poll): Pass a buffer which is
1455 guaranteed to be large enough to read inotify event. Ignore
1456 EAGAIN error. Better error message. Add branch predicition.
1457 (main_loop_epoll): Likewise.
1459 2008-08-02 Roland McGrath <roland@frob.com>
1461 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1462 Add memory clobbers.
1464 2008-08-02 Ulrich Drepper <drepper@redhat.com>
1466 * manual/arith.texi: Avoid @strong{Note:}.
1467 * manual/creature.texi: Likewise.
1468 * manual/filesys.texi: Likewise.
1469 * manual/math.texi: Likewise.
1470 * manual/memory.texi: Likewise.
1471 * manual/resource.texi: Likewise.
1472 * manual/syslog.texi: Likewise.
1473 * manual/time.texi: Likewise.
1475 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
1478 2008-08-01 Ulrich Drepper <drepper@redhat.com>
1480 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
1481 new epoll_create1 interface.
1482 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1483 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
1484 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
1486 * include/arpa/nameser.h (NS_GET16): Use const pointer.
1487 (NS_GET32): Likewise.
1489 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
1492 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
1493 use the AT_EXECFN value if it is no absolute path.
1494 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
1497 * Versions.def: Add GLIBC_2.9 to libresolv.
1498 * include/resolv.h: Remove hidden proto declarations for __ns_*
1499 functions. Add them for __dn_count_labels and __p_secstodate.
1500 * include/arpa/nameser.h: Add a number of hidden proto declarations.
1501 Define ns_msg_getflags macro here.
1502 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
1504 * resolv/Versions: Export functions from <arpa/nameser.h> from
1505 libresolv in version GLIBC_2.9.
1506 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
1508 * resolv/ns_netint.c: Likewise.
1509 * resolv/ns_parse.c: Likewise.
1510 * resolv/ns_print.c: Likewise.
1511 * resolv/ns_samedomain.c: Likewise.
1512 * resolv/ns_ttl.c: Likewise.
1513 * resolv/arpa/nameser_compat.h: Likewise.
1514 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
1516 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
1517 instead of ns_get16.
1518 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
1519 __ns_get32 instead of ns_get16 and ns_get32 respectively.
1520 (gaih_getanswer_slice): Likewise.
1521 * resolv/Makefile (libresolv-routines): Add ns_date.
1522 * resolv/ns_date.c: New file.
1524 * elf/Makefile (check-localplt.out): Also check libresolv and
1527 2008-07-31 Ulrich Drepper <drepper@redhat.com>
1529 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1532 2008-07-30 Ulrich Drepper <drepper@redhat.com>
1534 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
1535 buffer passed to NSS functions.
1537 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
1539 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
1542 * misc/syslog.c (openlog_internal): Fix compile problem.
1544 2008-07-28 Roland McGrath <roland@redhat.com>
1546 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
1548 2008-07-28 Ulrich Drepper <drepper@redhat.com>
1550 * io/ftw.c (add_object): Remove inline to avoid warning.
1552 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
1554 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
1555 Use it instead of locally defined resplen2 variable.
1556 (res_nsend): Adjust for __libc_res_nsend interface change.
1557 (send_vc): Initialize *resplen2 if necessary. Read length of
1558 package into an appropriately aligned variable. Store converted length
1559 in new variable and use it appropriately.
1560 Add branch prediction help.
1561 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
1562 and pass it on to __libc_res_nsend. Adjust all callers.
1563 (__libc_res_nsearch): Likewise.
1564 (__libc_res_nqeurydomain): Likewise.
1565 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
1567 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
1568 Define resplen2 variable and pass it to __libc_res_nsearch and then
1570 (getanswer_r): In case of incorrect DNS data don't overread buffer.
1571 Add branch prediction.
1572 (gaih_getanswer_slice): Likewise. Check for invalid data types.
1573 (gaih_getanswer): Don't decode second slice if first one failed due
1574 to a too small buffer. Don't let not found status of second
1575 decoder shadow results of the first.
1576 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
1577 and __libc_res_nquery interface changes
1578 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
1579 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
1580 __libc_res_nsearch, and __libc_res_nsend.
1581 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
1583 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
1584 __libc_res_nsearch interface changes.
1586 2008-07-27 Ulrich Drepper <drepper@redhat.com>
1588 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
1590 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
1591 file descriptors with close-on-exec set.
1592 (exec_comm_child): Fix the case where the write end of the pipe is
1593 STDOUT_FILENO already. In case it is, clear close-on-exec.
1595 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
1596 * io/pipe2.c: Likewise.
1597 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
1598 instead of __ASSUME_PACCEPT.
1599 * include/unistd.h: Declare __have_pipe2.
1600 * libio/iopopen.c: Implement "e" flag.
1601 * libio/Makefile (tests): Add tst-popen1.
1602 * libio/tst-popen1.c: New file.
1604 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
1605 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1607 2008-07-26 Ulrich Drepper <drepper@redhat.com>
1610 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
1611 success call of _IO_SEEKOFF or calls which failed because the
1612 descriptor is for a pipe.
1614 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
1617 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
1619 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
1620 F_SETFD use if we know fopen set the flag.
1622 * login/utmp_file.c (setutent_file): Minor optimization in case
1623 O_CLOEXEC is available.
1625 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
1627 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
1628 * elf/Makefile: Use pie-ccflag variable.
1629 * nscd/Makefile: Likewise.
1630 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
1632 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
1635 * Versions.def: Add GLIBC_2.9 version tag for libutil.
1636 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
1637 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
1638 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
1639 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
1640 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
1641 utmp32, utmpx32 and login32.
1642 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
1643 versions of struct utmp functions to libc and libutil.
1644 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
1645 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
1646 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
1647 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
1648 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
1649 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
1650 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
1651 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
1652 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
1653 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
1654 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
1655 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
1656 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
1657 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
1658 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
1659 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
1660 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
1661 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
1662 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
1663 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
1664 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
1665 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
1667 2008-07-26 Ulrich Drepper <drepper@redhat.com>
1669 * scripts/gen-as-const.awk: Generate more widely usable code by
1670 using 64-bit arithmetic.
1672 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
1673 the same treatment as narrow output code in last patch.
1675 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
1678 * elf/dl-load.c (local_strdup): Remove inline.
1679 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
1680 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
1683 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
1685 2008-07-25 Ulrich Drepper <drepper@redhat.com>
1687 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
1688 the new syscalls, too.
1690 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
1691 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
1694 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
1695 parameter for end of buffer. If temporary copy is too large use
1697 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
1699 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
1700 string rewrite when allocating buffer.
1702 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
1705 * nscd/connections.c (nscd_init): Clean up fcntl call.
1707 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
1708 SOCK_NONBLOCK if possible.
1710 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
1711 SOCK_CLOEXEC if available.
1713 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
1714 __libc_clntudp_bufcreate_internal.
1715 * include/sys/socket.h: Declare __have_sock_cloexec.
1716 * socket/Makefile (aux): Add have_sock_cloexec.
1717 * socket/have_sock_cloexec.c: New file.
1718 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
1719 __libc_clntudp_bufcreate.
1720 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
1721 which takes an additional parameter. Create socket with non-blocking
1722 mode and close-on-exec flag set, if wanted.
1723 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
1724 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
1725 instead of clntudp_create. The socket has already the close-on-exec
1726 flag set if SOCK_CLOEXEC is defined.
1728 2008-07-24 Ulrich Drepper <drepper@redhat.com>
1730 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1731 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
1733 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
1734 non-blocking mode by using socket, paccept, and inotify_init1.
1736 * Versions.def (glibc): Add GLIBC_2.9.
1737 * io/Makefile (routines): Add dup3 and pipe2.
1738 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
1739 * io/dup3.c: New file.
1740 * io/pipe2.c: New file.
1741 * posix/unistd.h: Declare dup3 and pipe2.
1742 * socket/Makefile (routines): Add paccept.
1743 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
1744 * socket/paccept.c: New file.
1745 * socket/sys/socket.h: Declare paccept.
1746 * sysdeps/unix/syscalls.list: Add entry for dup3.
1747 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
1748 epoll_create2 and inotify_init1.
1749 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
1750 * sysdeps/unix/sysv/linux/paccept.c: New file.
1751 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
1753 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
1754 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
1755 inotify_init1, and pipe2 entries.
1756 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
1757 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
1758 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
1759 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
1760 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
1761 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
1763 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
1764 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
1765 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
1766 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
1767 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
1768 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
1769 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
1770 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
1771 EPOLL_NONBLOCK. Declare epoll_create2.
1772 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
1774 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
1775 IN_NONBLOCK. Declare inotify_init1.
1776 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
1778 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
1781 * elf/elf.h: Define AT_EXECFN.
1782 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
1784 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
1785 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
1786 if __ASSUME_AT_EXECFN is defined.
1787 (_dl_aux_init): Handle AT_EXECFN.
1788 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
1790 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
1791 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
1792 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
1793 _dl_execfn if available and avoid compatibility code if
1794 __ASSUME_AT_EXECFN is defined.
1796 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
1797 _dl_discover_osversion only for older kernels.
1799 2008-07-22 Roland McGrath <roland@frob.com>
1801 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
1803 2008-07-21 Roland McGrath <roland@frob.com>
1805 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
1806 returned too much data out of line.
1808 2008-07-20 Ulrich Drepper <drepper@redhat.com>
1810 * locale/setlocale.c (setname): Remove inline to avoid compiler
1814 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
1816 2008-07-15 Ulrich Drepper <drepper@redhat.com>
1818 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
1819 doesn't manage to write anything, fail.
1821 * malloc/hooks.c (__malloc_check_init): Remove printf.
1823 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1825 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
1827 2008-07-12 Ulrich Drepper <drepper@redhat.com>
1829 * nscd/connections.c (main_loop_poll): Fix handling of read errors
1831 (main_loop_epoll): Likewise.
1833 2008-07-09 Ulrich Drepper <drepper@redhat.com>
1835 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
1837 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
1838 if DEBUG is defined.
1840 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
1841 query. Adjust buffer size computation for padding.
1843 2008-07-08 Ulrich Drepper <drepper@redhat.com>
1845 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
1846 * stdio-common/tst-setvbuf1.c: New file.
1847 * stdio-common/tst-setvbuf1.expect: New file.
1850 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
1851 when selecting fully-buffered stream.
1852 Patch by Wang Xin <wxinee@gmail.com>.
1854 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
1856 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
1857 (__open_2): New function.
1858 (__open64_2): New alias to __open_2.
1859 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
1860 (__openat_2): New function.
1861 (__openat64_2): New alias to __openat_2.
1863 2008-07-06 Ulrich Drepper <drepper@redhat.com>
1866 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1868 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
1870 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
1871 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
1872 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
1874 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1875 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1876 * sysdeps/mach/hurd/send.c (__send): Likewise.
1877 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
1878 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
1880 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1882 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
1883 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
1884 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
1885 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
1886 * hurd/get-host.c (_hurd_get_host_config): Likewise.
1887 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
1889 2008-06-27 Ulrich Drepper <drepper@redhat.com>
1892 * time/strptime_l.c: Don't clear s.era_cnt after successful match
1894 Patch by Petr Baudis.
1896 2008-06-26 Ulrich Drepper <drepper@redhat.com>
1898 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
1899 Patch by Peter Jones <pjones@redhat.com>.
1901 2008-06-25 Ulrich Drepper <drepper@redhat.com>
1904 * stdlib/canonicalize.c (__realpath): readlink can write too much
1905 into the buffer on platforms without PATH_MAX.
1907 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
1910 * posix/tst-regex.c (main): Rename to...
1911 (do_test): ... this. Remove cmdline option processing.
1913 (TEST_FUNCTION): Define.
1914 (CMDLINE_OPTIONS): Define.
1916 2008-06-25 Ulrich Drepper <drepper@redhat.com>
1919 * configure.in: Add -Werror to -fstack-protector test to catch
1920 unsupported architectures.
1921 Patch by Gilles Esponasse <g.esp@free.fr>.
1923 2008-06-17 Joseph Myers <joseph@codesourcery.com>
1925 * stdlib/tst-setcontext.c: Set back_in_main before exit if
1926 getcontext returns ENOSYS.
1928 2008-06-18 Ulrich Drepper <drepper@redhat.com>
1930 * nscd/connections.c (main_loop_poll): Fix test for read error.
1931 (main_loop_epoll): Likewise.
1933 2008-06-13 Ulrich Drepper <drepper@redhat.com>
1935 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
1936 better place so it is not called when nscd is used.
1938 * nscd/connections.c: Also recognize and handle changes to the
1939 resolver configuration file.
1941 2008-06-12 Ulrich Drepper <drepper@redhat.com>
1943 * time/strftime.c: Pass reference to tzset_called around to handle
1947 * time/strftime.c (__strftime_internal): Call tzset() only
1948 when printing timezone-dependent values.
1949 Based on a patch by Petr Baudis <pasky@suse.cz>.
1951 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
1952 unconditionally use second gaih_getanswer_slice result.
1954 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
1955 (getaddrinfo): RES must always be non-NULL.
1957 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1959 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
1961 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1962 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1964 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
1967 2008-06-12 Ulrich Drepper <drepper@redhat.com>
1969 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
1971 * nscd/connections.c (inotify_fd): New variable.
1972 (nscd_init): Try to open an inotify descriptor.
1973 If successful, watch files for databases using inotify instead of
1974 having prune threads stat the files.
1975 (nscd_run_prune): Recognize clear_cache flag being set and call
1976 prune_cache appropriately.
1977 (main_loop_poll): Add inotify descriptor to wait set and handle the
1979 (main_loop_epoll): Likewise.
1980 * nscd/cache.c (prune_cache): Don't stat files for databases if
1982 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
1983 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
1985 * nscd/grpcache.c (cache_addgr): Correctly compute size of
1986 fixed-size portion of the record.
1987 * nscd/servicescache.c (cache_addserv): Likewise.
1988 * nscd/pwdcache.c (cache_addpw): Likewise.
1989 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1991 2008-06-11 Ulrich Drepper <drepper@redhat.com>
1993 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1994 out we don't use uninitialized memory.
1996 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1999 2008-06-10 Ulrich Drepper <drepper@redhat.com>
2001 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2002 ignore T_DNAME messages.
2003 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2005 2008-06-05 Jakub Jelinek <jakub@redhat.com>
2007 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2008 Avoid segfault if first GETC returns eof/'\0'/'\n'.
2010 2008-06-03 Jakub Jelinek <jakub@redhat.com>
2012 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2013 instead of portstr to nscd_getserv_r. Patch by
2014 Roman Kagan <rkagan@mail.ru>.
2016 2008-05-26 Jim Meyering <meyering@redhat.com>
2018 Remove more useless "if" tests before "free".
2019 * include/inline-hashtab.h (htab_delete): Likewise.
2020 * libio/freopen.c (freopen): Likewise.
2021 * libio/freopen64.c (freopen64): Likewise.
2022 * locale/programs/ld-collate.c (collate_read): Likewise.
2023 * misc/fstab.c (libc_freeres_fn): Likewise.
2024 * posix/glob.c (globfree): Likewise.
2026 2008-05-24 Ulrich Drepper <drepper@redhat.com>
2028 * string/Makefile (strop-tests): Add memmem.
2029 * string/test-memmem.c: New file.
2030 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2031 (test_init): Size buf1 according to BUF1PAGES.
2033 2008-05-24 Jakub Jelinek <jakub@redhat.com>
2035 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2036 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2037 (CFLAGS-scanf17.c): New.
2038 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2039 * stdio-common/scanf15.c (main): Likewise.
2040 * stdio-common/scanf16.c: New file.
2041 * stdio-common/scanf17.c: New file.
2043 2008-05-24 Ulrich Drepper <drepper@redhat.com>
2045 * resolv/res_send.c (send_dg): If we already have one of two
2046 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
2047 use the one answer insted of failing.
2049 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
2051 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
2052 being executed on PowerPC as the expected result exceeds IBM
2053 long double 128 __LDBL_MAX__.
2055 2008-05-21 Roland McGrath <roland@redhat.com>
2057 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
2059 * Makefile (check-data): Use $(abi-name) before other guesses.
2060 Look in $(add-ons) dirs before scripts/data/.
2061 * elf/Makefile (check-data): Likewise.
2063 * scripts/soversions.awk: Grok ABI line.
2064 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
2065 Emit definition for abi-name variable.
2067 2008-05-21 Ulrich Drepper <drepper@redhat.com>
2069 * string/endian.h: Define new fixed-size hto* and *toh macros only
2072 * iconvdata/Depend: Add localedata.
2074 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
2076 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
2078 2008-05-08 David S. Miller <davem@davemloft.net>
2080 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
2082 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2083 (__SYSCALL_CLOBBERS): Remove %g* registers.
2084 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2085 (__SYSCALL_CLOBBERS): Likewise.
2086 * scripts/data/localplt-sparc-linux-gnu.data: New file.
2087 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
2089 2008-05-21 Jakub Jelinek <jakub@redhat.com>
2091 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2092 (CALL_ERRNO_LOCATION): Define.
2093 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2094 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2095 (CALL_ERRNO_LOCATION): Define.
2096 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2097 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
2098 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
2100 2008-05-20 Ulrich Drepper <drepper@redhat.com>
2102 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
2105 2008-05-20 Jakub Jelinek <jakub@redhat.com>
2107 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
2108 (FIRST_FRAME_POINTER): Define.
2110 2008-05-09 David S. Miller <davem@davemloft.net>
2112 * sysdeps/sparc/sparc64/backtrace.c: New file.
2114 2008-05-14 David S. Miller <davem@davemloft.net>
2116 * sysdeps/sparc/machine-gmon.h: New file.
2117 * sysdeps/sparc/sparc-mcount.S: Likewise.
2118 * sysdeps/sparc/Makefile: Add sparc-mcount target to
2119 sysdep_routines in gmon directory.
2121 2008-05-19 Jakub Jelinek <jakub@redhat.com>
2123 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
2125 2008-05-19 Ulrich Drepper <drepper@redhat.com>
2127 * resolv/res_query.c (__libc_res_nquery): In case one of two
2128 answer was too short don't try to read that answer's header.
2130 * resolv/res_send.c (send_dg): In case of timeout and there are
2131 two queries and one has been answered, return value indicating
2134 2008-05-18 Ulrich Drepper <drepper@redhat.com>
2136 * nscd/cache.c (cache_add): Take additional parameter specifying
2137 whether this is in response of a cache refill. Check alignment
2138 of package data. Revamp waking of pruning thread.
2139 (prune_cache): Small optimization.
2140 * nscd/nscd.h: Adjust cache_add prototypes.
2141 * nscd/aicache.c: Adjust cache_add calls.
2142 * nscd/grpcache.c: Likewise.
2143 * nscd/hstcache.c: Likewise.
2144 * nscd/initgrcache.c: Likewise.
2145 * nscd/pwdcache.c: Likewise.
2146 * nscd/servicescache.c: Likewise.
2147 * nscd/connections.c (restart): Really disable cache use before
2148 exec attempt. If it fails, reenable cache.
2149 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
2150 time to max to be able to notice concurrent cache additions. Unlock
2151 prune_lock while performing gc. Afterwards compute wakeup time with
2152 current wakeup_time value in mind.
2154 2008-05-17 Ulrich Drepper <drepper@redhat.com>
2156 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
2158 * nscd/mem.c (gc): Correctly determine highest used array element
2161 * nscd/mem.c (markrange): Add assert to check entries are all
2162 aligned. Small cleanup in bitmap use.
2164 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
2165 blockoff of type nscd_ssize_t.
2166 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
2167 (mempoll_alloc): Record block offset and not address.
2169 * nscd/mem.c (gc): Fix test for stack overuse.
2171 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
2174 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
2175 entry is available, believe it.
2177 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
2178 no answers return NSS_STATUS_NOTFOUND.
2179 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
2180 buffer does not have any content.
2182 2008-05-16 Ulrich Drepper <drepper@redhat.com>
2184 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
2186 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
2187 lookup, don't assign canon unconditionally.
2189 2008-05-14 Ulrich Drepper <drepper@redhat.com>
2191 * string/Makefile (distribute): Add str-two-way.h.
2193 2008-03-29 Eric Blake <ebb9@byu.net>
2195 Rewrite string searches to O(n) rather than O(n^2).
2196 * string/str-two-way.h: New file. For linear fixed-allocation
2198 * string/memmem.c: New implementation.
2199 * string/strstr.c: New implementation.
2200 * string/strcasestr.c: New implementation.
2202 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
2204 * posix/regcomp.c (optimize_utf8): Add a note on why we test
2206 (calc_first): Initialize constraint field.
2207 (duplicate_node_closure): Use it instead of special casing ANCHORS.
2208 Use search_duplicated_node to avoid loops. Fix grammar.
2209 (duplicate_node): Merge constraint field for all node types.
2210 (calc_eclosure_iter): Look at constraint field for all node types.
2211 * posix/regex_internal.c (create_cd_newstate): Don't look at
2214 2008-05-14 Ulrich Drepper <drepper@redhat.com>
2217 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
2220 * string/endian.h: Add macros for fixed-size endian conversion.
2221 * bits/byteswap.h: Allow inclusion from <endian.h>.
2222 * sysdeps/i386/bits/byteswap.h: Likewise.
2223 * sysdeps/ia64/bits/byteswap.h: Likewise.
2224 * sysdeps/s390/bits/byteswap.h: Likewise.
2225 * sysdeps/x86_64/bits/byteswap.h: Likewise.
2226 * string/Makefile (tests): Add tst-endian.
2227 * string/tst-endian.c: New file.
2229 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
2230 Patch by Reuben Thomas.
2232 2008-05-14 Joseph Myers <joseph@codesourcery.com>
2234 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
2236 2008-05-14 Ulrich Drepper <drepper@redhat.com>
2238 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
2241 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
2243 (BODY for __gconv_transform_internal_ascii): Likewise.
2246 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
2247 to be treated like link-local addresses.
2248 (match_prefix): Don't treat IPv4 loopback address special when
2249 converting to v4 mapped addressed.
2251 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
2253 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
2254 * posix/tst-rfc3484-2.c: Likewise.
2255 * posix/tst-rfc3484-3.c: Likewise.
2257 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
2260 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
2262 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
2264 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
2266 2008-05-13 Ulrich Drepper <drepper@redhat.com>
2268 * po/lt.po: New file. From Lituanian translation team.
2270 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
2272 Introduce TLS descriptors for i386 and x86_64.
2273 * include/inline-hashtab.h: New file, copied from 2005's
2274 libiberty, with fix for memory leak imported afterwards by
2275 Glauber de Oliveira Costa.
2276 * elf/tlsdeschtab.h: New file.
2277 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
2278 (_dl_allocate_static_tls): ... here. Rearrange failure path.
2279 (CHECK_STATIC_TLS): Move to...
2280 * elf/dynamic-link.h: ... this file.
2281 (TRY_STATIC_TLS): New macro.
2282 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
2283 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
2284 R_386_TLS_DESC): Define.
2285 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
2287 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
2288 R_X86_64_TLSDESC): Define.
2289 (R_386_NUM, R_X86_64_NUM): Adjust.
2290 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
2291 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2292 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2293 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
2294 release tlsdesc_table.
2295 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
2296 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
2297 (elf_machine_rel): Handle R_386_TLS_DESC.
2298 (elf_machine_rela): Likewise.
2299 (elf_machine_lazy_rel): Likewise.
2300 (elf_machine_lazy_rela): Likewise.
2301 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
2302 * sysdeps/i386/dl-tlsdesc.S: New file.
2303 * sysdeps/i386/dl-tlsdesc.h: New file.
2304 * sysdeps/i386/tlsdesc.c: New file.
2305 * sysdeps/i386/tlsdesc.sym: New file.
2306 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
2308 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
2309 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2310 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2311 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
2312 release tlsdesc_table.
2313 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
2314 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
2315 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
2316 (elf_machine_rel): Handle R_X86_64_TLSDESC.
2317 (elf_machine_rela): Likewise.
2318 (elf_machine_lazy_rel): Likewise.
2319 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
2320 (__tls_get_addr): Do not declare for non-shared compiles.
2321 * sysdeps/x86_64/dl-tlsdesc.S: New file.
2322 * sysdeps/x86_64/dl-tlsdesc.h: New file.
2323 * sysdeps/x86_64/tlsdesc.c: New file.
2324 * sysdeps/x86_64/tlsdesc.sym: New file.
2325 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
2326 tlsdesc_table for both 32- and 64-bit structs.
2328 2008-05-11 Ulrich Drepper <drepper@redhat.com>
2330 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
2331 its own function. This reduces the frame setup costs and more.
2333 2008-02-11 Joseph Myers <joseph@codesourcery.com>
2336 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
2337 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
2339 2008-05-11 Ulrich Drepper <drepper@redhat.com>
2341 * io/openat.c (__openat_2): Also pass fd to __openat.
2342 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
2343 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
2345 * string/tester.c (test_memcmp): Add a few more tests.
2346 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
2348 2008-05-10 Ulrich Drepper <drepper@redhat.com>
2350 * nscd/cache.c (cache_add): Before returning with failure and this
2351 is the first use of the record, mark it as unusable.
2352 * nscd/aicache.c: Don't touch the dataset after cache_add returns
2353 reporting a failure.
2354 * nscd/grpcache.c: Likewise
2355 * nscd/hstcache.c: Likewise.
2356 * nscd/initgrcache.c: Likewise.
2357 * nscd/pwdcache.c: Likewise.
2358 * nscd/servicescache.c: Likewise.
2360 2008-05-10 Roland McGrath <roland@redhat.com>
2363 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
2365 2008-05-08 David S. Miller <davem@davemloft.net>
2367 * misc/truncate64.c (truncate64): Use __truncate not truncate.
2369 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
2370 (__ieee754_y0l): Likewise.
2371 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
2372 (__ieee754_y1l): Likewise.
2373 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
2374 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
2375 frexpl and ldexpl. math_private.h provides them and the latter
2377 (__log1pl): Use __frexpl.
2379 2008-05-10 Ulrich Drepper <drepper@redhat.com>
2381 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
2383 * include/arpa/nameser_compat.h: Define T_UNSPEC.
2384 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
2385 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
2386 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
2388 (_nss_nis_gethostbyname4_r): New function.
2389 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
2390 Change to also handle af==AF_UNSPEC.
2391 (get_tablename): New function. Use it to avoid duplication.
2392 (_nss_nisplus_gethostbyname4_r): New function.
2393 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
2395 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
2396 * nss/nss.h: Define struct gaih_addrtuple.
2397 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
2399 (_nss_files_gethostbyname4_r): New function.
2400 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
2401 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
2403 * resolv/res_query.c (__libc_res_nquery): Take two additional
2404 parameters for second answer buffer. Handle type=T_UNSPEC to mean
2405 look up IPv4 and IPv6.
2407 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
2408 for an additional query and answer buffer. Pass to send_vc and
2410 (send_vc): Send possibly two requests and receive two answers.
2411 (send_dg): Likewise.
2412 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
2414 (_nss_dns_gethostbyname4_r): New function.
2415 (gaih_getanswer_slice): Likewise.
2416 (gaih_getanswer): Likewise.
2417 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
2418 __libc_res_nquery call.
2419 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2420 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
2421 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
2424 2008-05-05 David S. Miller <davem@davemloft.net>
2426 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
2427 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
2429 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2431 Fix termios bit macros.
2432 Move *DLY definitions where they belong, in termios.h.
2433 Add *[0-3] definitions.
2434 Fixes confusion between VT and FF.
2435 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
2436 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
2437 are already defined to avoid collision with termios.h.
2438 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
2439 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
2440 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
2441 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
2442 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
2443 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
2444 VTDLY, VT0, VT1): New macros.
2445 [__USE_GNU] (OLCUC): Change value of macro.
2446 [__USE_XOPEN] (OFILL): New macro.
2447 [__USE_BSD] (CRTSCTS): Change value.
2448 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
2449 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
2450 (B7200, B14400, B28800, B76800): New macros.
2452 2008-05-01 David S. Miller <davem@davemloft.net>
2454 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
2455 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
2456 (gen-as-const-headers): Add it.
2457 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
2458 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
2459 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
2460 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2462 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
2463 six system call parameters.
2464 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
2466 2008-04-30 Ulrich Drepper <drepper@redhat.com>
2468 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
2470 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2471 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2473 2008-04-30 Jakub Jelinek <jakub@redhat.com>
2475 * stdlib/tst-setcontext.c: Include unistd.h.
2477 2008-04-25 David S. Miller <davem@davemloft.net>
2479 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
2480 Pass "union semun" properly in to sys_ipc, it must be passed
2481 by value, not by reference.
2483 2008-04-22 Jakub Jelinek <jakub@redhat.com>
2485 * nscd/Makefile (nscd-cflags): Set back to -fpie.
2486 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
2487 * nscd/connections.c (mem_in_flight): Likewise.
2489 * nscd/nscd.h (dbs): Make hidden.
2491 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
2492 Avoid returning -1, return 0 instead.
2494 2008-04-19 Ulrich Drepper <drepper@redhat.com>
2496 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
2498 2008-04-15 Ulrich Drepper <drepper@redhat.com>
2501 * sysdeps/unix/sysv/linux/times.c: New file.
2504 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
2505 mem_in_flight_list variables. Add new parameter to mempool_alloc
2507 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
2508 appropriate mem_in_flight element.
2509 (gc): Take allocations which have not yet been committed to the
2510 database into account.
2511 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
2512 Reset mem_in_flight before returning.
2513 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
2514 cue it up in mem_in_flight_list.
2515 * nscd/aicache.c: Adjust mempool_alloc call.
2516 * nscd/grpcache.c: Likewise.
2517 * nscd/hstcache.c: Likewise.
2518 * nscd/initgrcache.c: Likewise.
2519 * nscd/pwdcache.c: Likewise.
2520 * nscd/servicescache.c: Likewise.
2521 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
2524 * nscd/connections.c (handle_request): Provide better error message
2525 in case SELinux forbids the service.
2527 * version.h (VERSION): Bump to 2.8.90.
2529 2008-04-17 Jakub Jelinek <jakub@redhat.com>
2531 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
2533 2008-04-11 Ulrich Drepper <drepper@redhat.com>
2535 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
2536 Also use for 32-bit.
2537 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
2538 __nextafter instead of nextafter to avoid local PLT.
2539 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
2540 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2542 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
2544 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
2546 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
2547 <fenv_libc.h> instead of <fenv.h>.
2548 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
2549 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
2551 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
2553 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
2554 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
2555 function from fegetexcept and make old name weak alias.
2556 * include/fenv.h: Declare __fegetexcept.
2557 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
2559 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
2560 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
2562 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
2563 instead of frexpl to avoid local PLT.
2564 * math/s_significandl.c (__significandl): Use __ilogbl instead of
2565 ilogbl to avoid local PLT.
2566 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
2567 instead of ldexpl to avoid local PLT.
2568 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
2569 __roundl not roundl to avoid local PLT.
2570 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
2571 local PLTs. Use __sincosl instead of separate sinl and cosl
2573 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2575 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
2576 version for ppc64 to 2.4.21 since without it makecontext will fail.
2578 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
2580 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
2582 [__powerpc64__] (TLS_GD): Likewise.
2584 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
2587 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
2588 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
2590 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2591 Likewise. Also account for when x is an odd number between 2^52
2593 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
2594 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2595 * math/libm-test.inc (lround_test, llround_test): Added test cases to
2596 detect aforementioned erroneous conditions.
2598 2008-04-11 Jakub Jelinek <jakub@redhat.com>
2600 * configure.in: Check for -fno-section-anchors in addition to
2601 -fno-toplevel-reorder.
2603 2008-04-11 Ulrich Drepper <drepper@redhat.com>
2605 * include/features.h (__GLIBC_MINOR__): Bump to 8.
2607 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
2608 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2609 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2610 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
2611 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
2612 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
2614 2008-04-11 Jakub Jelinek <jakub@redhat.com>
2617 * time/era.c: Transform __libc_setlocale_lock into rwlock.
2618 * time/alt_digit.c: Likewise.
2619 * wcsmbs/wcsmbsload.c: Likewise.
2621 2008-04-10 Ulrich Drepper <drepper@redhat.com>
2623 * version.h (VERSION): Bump to 2.8.
2625 * timzeone/asia: Update from tzdata2008b.
2626 * timezone/backward: Likewise.
2627 * timezone/europe: Likewise.
2628 * timezone/northamerica: Likewise.
2629 * timezone/southamerica: Likewise.
2630 * timezone/iso3166.tab: Likewise.
2631 * timezone/leapseconds: Likewise.
2632 * timezone/zone.tab: Likewise.
2633 * timezone/private.h: Update from tzcode2008a.
2634 * timezone/zdump.c: Likewise.
2635 * timezone/zic.c: Likewise.
2637 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
2640 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
2641 Define additonal Data Cache Block instruction macros.
2642 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
2643 Replace dcbst with dcbf and sync with sync/isync.
2645 2008-02-21 Alan Modra <amodra@bigpond.net.au>
2647 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
2648 Always set ELF_RTYPE_CLASS_PLT.
2649 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
2651 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
2653 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
2654 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
2655 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
2656 For ISA 2.01 and later replace mftb with mfspr 268.
2658 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
2661 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
2662 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
2664 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
2667 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
2668 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
2669 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
2670 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
2672 2008-04-10 Jakub Jelinek <jakub@redhat.com>
2674 * stdlib/tst-makecontext.c (othervar): New variable.
2675 (cf): Test sign extending the argument to long.
2677 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
2679 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
2680 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
2681 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
2682 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
2683 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
2684 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
2685 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
2687 2008-02-22 Alan Modra <amodra@bigpond.net.au>
2689 * elf/Makefile (tests): Substitute tests-vis-yes here.
2690 (tests-vis-yes): Delete.
2691 (modules-name, modules-vis-yes): Similarly.
2693 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
2696 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2697 Preserve sign in signgamp when x is zero.
2699 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
2701 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
2702 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
2703 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
2704 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
2705 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
2706 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
2708 2008-04-09 Ulrich Drepper <drepper@redhat.com>
2711 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
2715 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
2716 a reserved error value.
2718 * stdlib/tst-makecontext.c: Change parameter to cf to negative
2719 value to check for correct sign extension.
2722 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2723 Copy 64-bit parameter values even though this is not required in
2726 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
2729 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
2731 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
2734 2008-04-09 Jakub Jelinek <jakub@redhat.com>
2736 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
2738 2008-04-09 Ulrich Drepper <drepper@redhat.com>
2741 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
2742 in line-buffered stream failed.
2743 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2745 2008-04-08 Ulrich Drepper <drepper@redhat.com>
2748 * scripts/abi-versions.awk: If the version specified by
2749 --enable-oldest-abi is older than the first version for this
2750 architecture, use the default version.
2752 * locale/programs/ld-collate.c (collate_read): Ignore script lines
2753 as well when ignoring the whole category.
2755 2008-04-07 Ulrich Drepper <drepper@redhat.com>
2758 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
2759 ETHERTYPE_* definitions.
2760 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
2762 2008-04-07 Jakub Jelinek <jakub@redhat.com>
2764 * stdlib/mbtowc.c (__no_r_state): Remove.
2765 (mbtowc): New static state variable. Use it instead of
2767 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
2768 (__wctomb_state): New hidden variable.
2769 (wctomb): Use __wctomb_state instead of __no_r_state.
2770 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
2771 (__wctomb_state): New extern decl.
2772 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
2774 2008-04-07 Ulrich Drepper <drepper@redhat.com>
2777 * resolv/res_init.c: Handle scope IDs in resolv.conf.
2779 2008-04-07 Jakub Jelinek <jakub@redhat.com>
2781 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
2783 2008-04-06 Ulrich Drepper <drepper@redhat.com>
2785 * po/nl.po: Update from translation team.
2787 2008-03-31 Ulrich Drepper <drepper@redhat.com>
2790 * string/strfry.c: Handle empty strings again.
2792 2008-03-30 Ulrich Drepper <drepper@redhat.com>
2795 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
2796 before looking for translation.
2797 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
2798 * locale/freelocale.c: Likewise.
2799 * locale/newlocale.c: Likewise.
2800 * locale/setlocale.c: Likewise.
2801 Based partially on a patch by ryo@np.css.fujitsu.com.
2803 2008-03-30 Jakub Jelinek <jakub@redhat.com>
2805 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
2806 acquiring wrlock. Do conv_tab allocation while holding lock.
2807 * intl/Makefile: Add rules to build and run tst-gettext6.
2808 * intl/tst-gettext6.c: New test.
2809 * intl/tst-gettext6.sh: New file.
2811 2008-03-30 Ulrich Drepper <drepper@redhat.com>
2813 * po/nl.po: Update from translation team.
2815 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
2816 provided through st_blksize, try the default size before giving up.
2818 2008-03-29 Ulrich Drepper <drepper@redhat.com>
2820 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
2823 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
2825 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
2826 error message. POSIX today does not require the messages to be in
2827 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
2830 * sunrpc/auth_unix.c: Unify printed strings.
2831 * sunrpc/clnt_tcp.c: Likewise.
2832 * sunrpc/clnt_udp.c: Likewise.
2833 * sunrpc/clnt_unix.c: Likewise.
2834 * sunrpc/svc_tcp.c: Likewise.
2835 * sunrpc/svc_udp.c: Likewise.
2836 * sunrpc/svc_unix.c: Likewise.
2837 * sunrpc/xdr.c: Likewise.
2838 * sunrpc/xdr_array.c: Likewise.
2839 * sunrpc/xdr_rec.c: Likewise.
2840 * sunrpc/xdr_ref.c: Likewise.
2841 * locale/programs/ld-time.c (time_finish): Unify messages.
2842 * locale/programs/locfile.c (handle_copy): Fix typo.
2843 * nscd/nscd.c (options): Fix typo.
2846 * stdlib/strtod_l.c: Use correct sign for result in one more
2848 Patch by Eric Blake <ebb9@byu.net>.
2850 2008-03-27 Jakub Jelinek <jakub@redhat.com>
2852 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
2853 and creat system calls.
2854 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
2856 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
2858 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
2859 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2860 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2862 2008-03-27 Ulrich Drepper <drepper@redhat.com>
2864 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
2865 <linux/limits.h> has defined it.
2866 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
2867 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
2869 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
2870 it instead of ARG_MAX.
2872 2008-03-25 Jakub Jelinek <jakub@redhat.com>
2874 * posix/gai.conf: Fix comment for scope nullbits.
2875 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
2876 default to 128 bits for v4 mapped addresses.
2878 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
2880 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
2881 ptrace call to get the ieee_instruction_pointer from the kernel.
2882 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
2883 ptrace call to set the ieee_instructtion_pointer.
2884 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
2885 Add comment that ieee_instruction_pointer is always 0.
2887 2008-03-09 Andreas Jaeger <aj@suse.de>
2890 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
2891 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
2892 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
2894 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
2895 (rint_test): Likewise.
2897 2008-03-24 Ulrich Drepper <drepper@redhat.com>
2899 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
2901 (__nisfind_server): Similar for open readColdStartFile call.
2902 Patch partially by Jim Meyering.
2903 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
2904 around internal_setent call.
2906 * po/vi.po: New Vietnamese translation.
2908 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
2911 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
2912 remove CLONE_STOPPED.
2914 2008-02-10 Jim Meyering <meyering@redhat.com>
2916 Remove useless "if" before "free":
2917 * elf/ldconfig.c (parse_conf_include): Likewise.
2918 * gmon/gmon.c (weak_alias): Likewise.
2919 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
2920 * inet/rcmd.c (__validuser2_sa): Likewise.
2921 * intl/bindtextdom.c (set_binding_values): Likewise.
2922 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
2923 * libio/genops.c (save_for_backup): Likewise.
2924 * libio/wgenops.c (save_for_wbackup): Likewise.
2925 * locale/programs/ld-collate.c (collate_read): Likewise.
2926 * locale/programs/linereader.c (get_string): Likewise.
2927 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
2928 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
2929 * resolv/res_debug.c (do_section): Likewise.
2930 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
2931 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
2932 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
2933 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
2934 * time/tzset.c (tzset_internal): Likewise.
2936 2008-03-18 Jakub Jelinek <jakub@redhat.com>
2938 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
2941 2008-03-11 Ulrich Drepper <drepper@redhat.com>
2944 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
2945 not stream for output file. Open output file here.
2946 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
2947 and output file name.
2948 (process_fd): Likewise.
2949 (process_file): Likewise.
2950 (main): Adjust callers of changed functions.
2951 * iconv/iconv_prog.h: Adjust prototype.
2953 2008-03-09 Andreas Jaeger <aj@suse.de>
2956 * sysdeps/ia64/ieee754.h: Use protected namespace
2957 __BIG_ENDIAN/__LITTLE_ENDIAN.
2958 * sysdeps/ieee754/ieee754.h: Likewise.
2959 Patch by Aurelien Jarno <aurelien@aurel32.net>.
2961 2008-03-08 Roland McGrath <roland@frob.com>
2963 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
2964 ignore a signal that came from a machine exception, treat it as a
2965 fatal core-dump signal instead.
2966 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2968 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2969 Clear DF bit in thread state's eflags.
2970 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2972 2008-03-08 Ulrich Drepper <drepper@redhat.com>
2975 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
2976 of NAN(...) sequence.
2977 * stdlib/Makefile (tests): Add tst-strtod6.
2978 * stdlib/tst-strtod6.c: New file.
2980 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
2983 * posix/getopt.c (_getopt_internal_r): Clarify error message by
2984 putting offending option character in quotes. Clean up error
2986 * po/be.po: Adjust msgstr in translation file.
2987 * po/bg.po: Likewise.
2988 * po/ca.po: Likewise.
2989 * po/cs.po: Likewise.
2990 * po/da.po: Likewise.
2991 * po/de.po: Likewise.
2992 * po/es.po: Likewise.
2993 * po/fr.po: Likewise.
2994 * po/hr.po: Likewise.
2995 * po/ko.po: Likewise.
2996 * po/nl.po: Likewise.
2997 * po/rw.po: Likewise.
2998 * po/sk.po: Likewise.
2999 * po/sv.po: Likewise.
3000 * po/tr.po: Likewise.
3001 * po/zh_CN.po: Likewise.
3002 * po/zh_TW.po: Likewise.
3005 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3006 Patch by Roland Bless <roland@bless.de>.
3008 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3010 * elf/Makefile (routines): Add dl-sysdep.
3011 (elide-routines.os): Likewise.
3013 2008-03-07 Ulrich Drepper <drepper@redhat.com>
3016 * elf/dl-sysdep.c: Undefine ROUND after use.
3017 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3018 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3019 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3020 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3022 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3023 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3025 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3027 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3028 _dl_tls_get_addr_soft element.
3029 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3030 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3031 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3033 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3034 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3035 of internal_function.
3037 * stdlib/Makefile (aux): Add tens_in_limb.
3038 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3039 * stdlib/tens_in_limb.c: ...here. New file.
3042 * sysdeps/unix/sysv/linux/pathconf.h: Declare
3043 __statfs_chown_restricted.
3044 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
3045 for _PC_CHOWN_RESTRICTED.
3046 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3047 Implement __statfs_chown_restricted.
3048 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
3049 _POSIX_CHOWN_RESTRICTED value to zero.
3050 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
3053 * sysdeps/x86_64/rtld-memset.c: New file.
3055 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
3057 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
3059 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
3060 Barcelona machine. Make default fall through branch of
3061 __x86_64_preferred_memory_instruction check as the integer code path.
3063 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3065 * sysdeps/x86_64/cacheinfo.c
3066 (__x86_64_preferred_memory_instruction): New variable.
3067 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3069 * sysdeps/x86_64/memset.S: Rewrite.
3071 2008-03-04 Jakub Jelinek <jakub@redhat.com>
3073 * include/stdio.h (__asprintf_chk, __dprintf_chk,
3074 __obstack_printf_chk): New prototypes.
3075 (__vasprintf_chk, __vdprintf_chk,
3076 __obstack_vprintf_chk): Likewise.
3077 Add libc_hidden_proto.
3079 (_IO_obstack_jumps): No longer static, add attribute_hidden.
3080 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
3081 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3082 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
3083 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
3084 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3085 __obstack_vprintf_chk): New prototypes.
3086 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
3087 obstack_vprintf): New inlines.
3088 * debug/dprintf_chk.c: New file.
3089 * debug/vdprintf_chk.c: New file.
3090 * debug/asprintf_chk.c: New file.
3091 * debug/vasprintf_chk.c: New file.
3092 * debug/obprintf_chk.c: New file.
3093 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
3094 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
3095 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
3097 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
3098 vdprintf_chk and obprintf_chk, set CFLAGS for them.
3099 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
3100 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
3102 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
3103 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
3104 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
3105 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
3106 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
3108 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
3109 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
3110 obstack_vprintf_chk.
3111 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
3112 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
3113 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
3114 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
3115 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
3116 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
3118 2008-03-04 Ulrich Drepper <drepper@redhat.com>
3121 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
3122 Patch by Roy Marples <roy@marples.name>.
3125 * malloc/malloc.c: Fix typo in comment.
3128 * locale/iso-639.def: Add Shuswap.
3130 2008-02-25 Jakub Jelinek <jakub@redhat.com>
3133 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
3134 overwrite *h_errnop/*errnop values from getanswer_r in case of
3137 2008-03-03 Ulrich Drepper <drepper@redhat.com>
3140 * nscd/connections.c (dbs): Add initializers for .suggested_module.
3141 (verify_persistent_db): Remove one unnecessary test and add a new one
3142 for bad configuration.
3143 (nscd_init): Improve error reported when persistent database cannot
3145 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
3146 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
3147 .suggested_module and .max_db_size and case config file says the
3149 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
3152 * nis/ypclnt.c (yp_order): Fix handling of return value of
3154 Patch by Jeff Moyer <jmoyer@redhat.com>.
3156 * po/fr.po: Update from translation team.
3158 2008-02-22 Andreas Jaeger <aj@suse.de>,
3159 Carlos O'Donell <carlos@systemhalted.org>
3162 * FAQ.in: Describe why glibc needs to be compiled with
3165 2008-02-19 Roland McGrath <roland@redhat.com>
3167 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
3169 2008-02-15 Ulrich Drepper <drepper@redhat.com>
3172 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
3173 __USE_MISC is defined.
3175 2008-02-10 Ulrich Drepper <drepper@redhat.com>
3177 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
3178 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
3180 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
3181 timerfd_gettime, timerfd_settime.
3182 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
3183 timerfd_gettime, timerfd_settime for GLIBC_2.8.
3185 2008-02-08 Roland McGrath <roland@redhat.com>
3187 * elf/elf.h (NT_PPC_SPE): New macro.
3189 2008-02-06 Roland McGrath <roland@redhat.com>
3191 * Makerules ($(common-objpfx)sysd-rules):
3192 Depend on $(sysdep-makeconfigs).
3194 2008-01-31 Roland McGrath <roland@redhat.com>
3197 * configure.in: Use -print-file-name if it yields a directory,
3198 for each of include and include-fixed.
3199 * configure: Regenerated.
3201 * Makeconfig (sysd-rules-targets): New variable.
3202 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
3203 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
3205 2008-01-30 Roland McGrath <roland@redhat.com>
3207 * manual/libc.texinfo: Update back-cover text.
3209 * elf/elf.h (NT_386_TLS): New macro.
3211 2008-01-29 Roland McGrath <roland@redhat.com>
3213 * Makeconfig (sysd-rules-patterns): New variable.
3214 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
3215 (check-inhibit-asm): New canned sequence, replaces ...
3216 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
3217 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
3218 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
3219 (CFLAGS-rtld): Variable removed.
3221 2008-01-24 Roland McGrath <roland@redhat.com>
3223 * configure.in: Let configure fragments set base_os.
3224 * configure: Regenerated.
3226 2008-01-22 Ulrich Drepper <drepper@redhat.com>
3228 * po/ko.po: Update from translation team.
3230 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
3232 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
3234 2008-01-12 Andreas Jaeger <aj@suse.de>
3237 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
3240 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
3242 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
3243 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
3244 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
3246 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
3248 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
3249 * elf/dl-close.c (_dl_close): Check for it.
3250 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
3251 (_dl_allocate_static_tls): Likewise.
3252 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
3253 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
3255 * elf/tst-tls16.c: New file.
3256 * elf/tst-tlsmod16a.c: New file.
3257 * elf/tst-tlsmod16b.c: New file.
3258 * elf/Makefile: Add rules to build and run tst-tls16.
3260 2008-01-16 Ulrich Drepper <drepper@redhat.com>
3263 * bits/shm.h: Fix comment describing shmid_ds.
3264 * sysdeps/gnu/bits/shm.h: Likewise.
3265 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3266 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3267 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3268 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3269 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3270 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3271 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3272 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3273 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
3276 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
3278 * conform/data/limits.h-data: Adjust limits changed in v6 and add
3279 additional suffixes.
3280 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
3281 Add optional functions mq_timedreceive and mq_timedsend.
3282 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
3283 * conform/data/pthread.h-data: Fix prototype of
3284 pthread_condattr_setclock. pthread_sigmask is not required in v6.
3285 * conform/data/semaphore.h-data: Allow time.h definitions.
3286 * conform/data/signal.h-data: Likewise.
3287 * conform/data/stdio.h-data: getw and putw are not required in v6.
3288 * conform/data/stdlib.h-data: Change setstate prototype.
3289 * conform/data/string.h-data: Fix strerror_r prototype.
3290 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
3291 * conform/data/unistd.h-data: pthread_atfork not required in v6.
3292 Fix readlink prototype.
3293 * conform/data/netinet/in.h-data: Add const to in6addr_any and
3295 * inet/netinet/in.h: Cleanup namespace.
3296 * posix/regex.h: Likewise.
3297 * resolv/netdb.h: Likewise.
3298 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3299 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3300 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3301 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
3302 of names of in in6_addr.
3303 (default_precedence): Likewise.
3304 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
3307 2008-01-15 Ulrich Drepper <drepper@redhat.com>
3309 * conform/data/fmtmsg.h-data: Add missing allows.
3310 * conform/data/ftw.h-data: Likewise.
3311 * conform/data/inttypes.h-data: Likewise.
3312 * conform/data/math.h-data: Likewise.
3313 * conform/data/signal.h-data: Likewise.
3314 * conform/data/net/if.h-data: Likewise.
3315 * conform/data/netinet/in.h-data: Likewise.
3316 * conform/data/sys/socket.h-data: Likewise.
3319 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
3320 (__strtok_r): Simplify.
3321 * string/tester.c (test_strtok_r): Add test case for futile search
3322 with single-character seach string.
3324 2008-01-12 Ulrich Drepper <drepper@redhat.com>
3326 * po/ko.po: Update from translation team.
3328 2008-01-11 Andreas Jaeger <aj@suse.de>
3331 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
3332 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
3335 2008-01-10 Ulrich Drepper <drepper@redhat.com>
3337 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
3338 native interface lookup in all the relevant places.
3340 2008-01-10 Jakub Jelinek <jakub@redhat.com>
3341 Ulrich Drepper <drepper@redhat.com>
3343 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
3344 field. Use sockaddr_in6 for source_addr.
3345 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
3346 (match_prefix): Likewise.
3347 (get_label): Likewise.
3348 (get_precedence): Likewise.
3349 (rfc3484_sort): Change to use indirect access to results array.
3350 Adjust to use of sockaddr_in6. Replace service_order test with
3351 simple index comparison.
3352 (getaddrinfo): Define order array. Initialize it. Don't initialize
3353 service_order field. Adjust qsort_t calls. Access sorted result
3354 array indirectly through order array.
3355 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
3356 * posix/tst-rfc3484-2.c: Likewise.
3357 * posix/tst-rfc3484-3.c: Likewise.
3359 2008-01-09 Ulrich Drepper <drepper@redhat.com>
3362 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
3364 Patch by André Cruz.
3367 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
3368 (clnt_spcreateerror): Likewise.
3371 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
3372 (public_mEMALIGn): Likewise.
3373 Patch mostly by Daniel Jacobowitz.
3375 2008-01-09 Jakub Jelinek <jakub@redhat.com>
3377 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
3378 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
3379 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
3380 * stdlib/tst-makecontext2.c: New test.
3382 2008-01-08 Jakub Jelinek <jakub@redhat.com>
3384 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
3386 (REINIT_PARAMS): Likewise. Undefine before end of file.
3387 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
3388 transliteration hooks and REINIT_PARAMS afterwards.
3389 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
3391 (REINIT_PARAMS): Define.
3392 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
3393 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
3394 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
3395 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
3396 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
3397 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
3398 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
3399 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
3400 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
3401 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
3402 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
3403 * iconvdata/tst-iconv7.c: New test.
3405 2008-01-07 Ulrich Drepper <drepper@redhat.com>
3407 * libio/stdio.h (vscanf): Fix definition for loser compilers.
3409 2008-01-05 Jakub Jelinek <jakub@redhat.com>
3412 * nscd/connections.c (restart): Fix condition.
3414 2008-01-03 Jakub Jelinek <jakub@redhat.com>
3416 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
3417 __ctype_toupper_loc): Add __THROW.
3419 2008-01-02 Ulrich Drepper <drepper@redhat.com>
3421 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
3422 recognition of interface family.
3424 * posix/getconf.c: Update copyright year.
3425 * nss/getent.c: Likewise.
3426 * iconv/iconvconfig.c: Likewise.
3427 * iconv/iconv_prog.c: Likewise.
3428 * elf/ldconfig.c: Likewise.
3429 * catgets/gencat.c: Likewise.
3430 * csu/version.c: Likewise.
3431 * elf/ldd.bash.in: Likewise.
3432 * elf/sprof.c (print_version): Likewise.
3433 * locale/programs/locale.c: Likewise.
3434 * locale/programs/localedef.c: Likewise.
3435 * nscd/nscd.c (print_version): Likewise.
3436 * debug/xtrace.sh: Likewise.
3437 * malloc/memusage.sh: Likewise.
3438 * malloc/mtrace.pl: Likewise.
3439 * debug/catchsegv.sh: Likewise.
3441 2007-12-26 Ulrich Drepper <drepper@redhat.com>
3443 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
3446 2007-12-23 Ulrich Drepper <drepper@redhat.com>
3448 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
3449 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3451 2007-12-17 Roland McGrath <roland@redhat.com>
3453 * inet/ether_line.c (ether_line): Remove unused variable.
3455 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
3457 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
3459 * login/openpty.c (openpty): Likewise.
3460 * login/pty.h (openpty, forkpty): Likewise.
3461 * manual/terminal.texi (openpty, forkpty): Likewise.
3463 2007-12-17 Ulrich Drepper <drepper@redhat.com>
3465 * malloc/malloc.c (public_cALLOc): For arenas other than
3466 main_arena, count all bytes inside the mprotect_size range of the
3467 heap as uninitialized.
3469 2007-12-16 Ulrich Drepper <drepper@redhat.com>
3471 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
3474 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
3475 mTRIm for all of them.
3476 (mTRIm): Additionally iterate over all free blocks and use madvise
3477 to free memory for all those blocks which contain at least one
3479 * malloc/tst-trim1.c: New file.
3480 * malloc/Makefile (tests): Add tst-trim1.
3482 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
3484 2007-12-14 Ulrich Drepper <drepper@redhat.com>
3486 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
3487 First cast argument to long
3488 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
3490 (__vdso_clock_gettime): Likewise.
3491 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
3494 2007-12-13 Ulrich Drepper <drepper@redhat.com>
3496 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
3497 * locale/nl_langinfo_l.c: Real implementation, copied from
3499 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
3501 2007-12-01 Jim Meyering <meyering@redhat.com>
3503 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
3504 that would inhibit utf8-optimization of a regexp containing line-
3505 or buffer-anchors, e.g., `^', `$'.
3507 2007-12-12 Ulrich Drepper <drepper@redhat.com>
3509 * time/bug-getdate1.c (do_test): Don't use century values which
3510 aren't valid on 32-bit systems.
3512 2007-12-12 Jakub Jelinek <jakub@redhat.com>
3514 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
3515 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
3516 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
3517 __strcat_g, __strncat_g): Add __asm__.
3519 2007-12-12 Ulrich Drepper <drepper@redhat.com>
3522 * io/fchmodat.c: Fix typo in stub_warning use.
3523 Patch by Petr Salinger.
3525 2007-12-11 Ulrich Drepper <drepper@redhat.com>
3527 * iconvdata/hp-thai8.c: New file.
3528 * iconvdata/Makefile: Add rules for hp-thai8.c.
3529 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
3530 * iconvdata/gconv-modules: Likewise.
3533 * iconvdata/hp-greek8.c: New file.
3534 * iconvdata/Makefile: Add rules for hp-greek8.c.
3535 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
3536 * iconvdata/gconv-modules: Likewise.
3539 * iconvdata/hp-turkish8.c: New file.
3540 * iconvdata/Makefile: Add rules for hp-turkish8.c.
3541 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
3542 * iconvdata/gconv-modules: Likewise.
3544 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
3545 (shrink_heap): ... this new function.
3546 (heap_trim): Call shrink_heap instead of grow_heap.
3548 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
3549 case don't call alloc_perturb.
3551 2007-12-10 Ulrich Drepper <drepper@redhat.com>
3553 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
3555 * sysdeps/unix/sysv/linux/kernel-features.h
3556 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
3557 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
3559 2007-12-08 Ulrich Drepper <drepper@redhat.com>
3562 * stdio-common/vfprintf.c: Do not overflow when adding to done.
3563 * stdio-common/Makefile (tests): Add bug22.
3564 * stdio-common/bug22.c: New file.
3567 * time/getdate.c: Fix filling in default values.
3568 * time/bug-getdate1.c: New file.
3569 * time/Makefile: Add rules to build and run bug-getdate1.
3571 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
3572 * iconvdata/ebcdic-es.c: Likewise.
3573 * iconvdata/ebcdic-es-a.c: Likewise.
3574 * iconvdata/ebcdic-uk.c: Likewise.
3575 * iconvdata/iso8859-16.c: Likewise.
3576 * iconvdata/viscii.c: Likewise.
3577 * iconvdata/iso8859-9e.c: Likewise.
3578 * iconvdata/Makefile: Adjust appropriately.
3581 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
3584 2007-12-07 Ulrich Drepper <drepper@redhat.com>
3587 * iconvdata/hp-roman9.c: New file.
3588 * iconvdata/Makefile: Add rules for hp-roman9.c.
3589 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
3590 * iconvdata/gconv-modules: Likewise.
3592 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
3593 * iconvdata/Makefile: Adjust appropriately.
3596 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
3597 structure, it's allocated with alloca.
3598 * stdio-common/Makefile (tests): Add bug21.
3599 * stdio-common/bug21.c: New file.
3601 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
3604 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
3605 keyword for gcc's braced-groups.
3607 2007-12-07 Ulrich Drepper <drepper@redhat.com>
3610 * inet/ether_line.c: Strip hostname of whitespaces.
3611 * inet/Makefile (tests): Add tst-ether_line.
3612 * inet/tst-ether_line.c: New file.
3614 2007-12-03 Ulrich Drepper <drepper@redhat.com>
3617 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
3620 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
3622 * stdlib/tst-setcontext.c: Catch the case where the links gets
3623 messed up and we do not reach main again.
3625 * po/ca.po: Update from translation team.
3627 2007-11-26 Ulrich Drepper <drepper@redhat.com>
3629 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
3630 * posix/regex.h (REG_ENOSYS): Likewise.
3631 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
3633 2007-11-25 Ulrich Drepper <drepper@redhat.com>
3635 * nscd/nscd.h (MAX_STACK_USE): Define.
3636 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
3637 (gc): Initialize stack_used based on allocation in prune_cache.
3638 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
3639 Clear array before use.
3641 * nscd/aicache.c (addhstaiX): Update statistics counter in case
3642 memory allocation failed.
3643 * nscd/hstcache.c (cache_addhst): Likewise.
3644 * nscd/grpcache.c (cache_addgr): Likewise.
3645 * nscd/servicescache.c (cache_addserv): Likewise.
3646 * nscd/pwdcache.c (cache_addpw): Likewise.
3647 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3649 2007-11-23 Ulrich Drepper <drepper@redhat.com>
3651 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
3652 and creat system calls.
3654 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
3656 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
3658 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
3660 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
3661 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
3663 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
3664 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
3665 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
3667 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
3669 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
3670 strncat): Define as macros to avoid compile errors.
3672 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
3675 2007-11-22 Ulrich Drepper <drepper@redhat.com>
3678 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
3679 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
3680 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
3682 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3684 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
3685 Return zero in case the thread library is not NPTL.
3688 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
3689 initializing interface list.
3692 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
3693 use result of nss_getgrgid_r if nothing was found. For other
3694 error return with a failure.
3695 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
3697 * locale/programs/ld-collate.c (collate_read): Fix loop to match
3700 2007-11-19 Ulrich Drepper <drepper@redhat.com>
3702 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
3703 (get_scope): For IPv4 scope, use scopes table.
3704 (fini): Free scopes table if necessary.
3705 (free_scopelist): New function.
3706 (scopecmp): New function.
3707 (gaiconf_init): Also handle scopev4 entries.
3708 * posix/tst-rfc3484.c (do_test): Initialize scopes.
3709 * posix/tst-rfc3484-2.c (do_test): Likewise.
3710 * posix/gai.conf: Document scopev4 defaults.
3711 * posix/Makefile (tests): Add tst-rfc3484-3.
3712 * posix/tst-rfc3484-3.c: New file.
3714 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
3716 * posix/gai.conf: Update for current default tables.
3718 2007-11-19 Ulrich Drepper <drepper@redhat.com>
3720 * po/tr.po: Update from translation team.
3722 2007-11-18 Roland McGrath <roland@frob.com>
3724 * manual/arith.texi (Remainder Functions): Spelling fix.
3725 From Shaun Silk <genix@mysoul.com.au>.
3727 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
3729 2007-11-17 Ulrich Drepper <drepper@redhat.com>
3731 * po/zh_CN.po: Update from translation team.
3733 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3734 Add sys/signalfd.h and sys/eventfd.h.
3736 2007-11-15 Bruno Haible <bruno@clisp.org>
3739 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
3741 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
3742 (DCIGETTEXT): Change the allocation of the 'search' variable so that
3743 it needs only fixed stack space. Delay the initialization of
3744 msgid_len until it is needed.
3746 2007-11-15 Andreas Jaeger <aj@suse.de>
3748 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
3749 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
3751 2007-11-15 Ulrich Drepper <drepper@redhat.com>
3753 * po/ko.po: Update from translation team.
3755 2007-11-14 Ulrich Drepper <drepper@redhat.com>
3757 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
3758 significantly. The device type is also part of the ifinfomsg data.
3760 * po/sv.po: Update from translation team.
3761 * po/nl.po: Likewise.
3763 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
3764 to wake up in 24 hours.
3766 * nscd/gai.c (__ioctl): Define. Include check_native.c.
3768 2007-11-13 Ulrich Drepper <drepper@redhat.com>
3770 * po/cs.po: Update from translation team.
3771 * po/pl.po: Likewise.
3773 * include/ifaddrs.h: Remove in6ai_temporary.
3774 (struct in6addrinfo): Add index element.
3775 Declare __check_native.
3776 * inet/Makefile (aux): Add check_native.
3777 * sysdeps/unix/sysv/linux/check_native.c: New file.
3778 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
3779 IFA_F_TEMPORARY. Pass back ifa_index.
3780 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
3781 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
3782 call __check_native if necessary.
3783 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
3784 to sort addresses. Pass information about the results.
3785 * posix/tst-rfc3484.c: Adjust for addition of index field and change
3786 of rfc3484_sort interface.
3787 * posix/tst-rfc3484-2.c: Likewise.
3789 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
3790 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
3792 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
3793 (qsort_r): Renamed from qsort. Take additional parameter and pass it
3794 on as third parameter to compare function and _quicksort.
3795 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
3796 to the compare function.
3797 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
3798 * Versions.def: Add GLIBC_2.8 for libc.
3800 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
3801 * posix/tst-rfc3484-2.c: Likewise.
3803 * include/kernel-features.h: Moved to...
3804 * sysdeps/mach/hurd/kernel-features.h: ...here.
3806 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
3808 * sysdeps/i386/i586/memcpy_chk.S: New file.
3809 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
3810 * sysdeps/i386/i586/memset_chk.S: Likewise.
3812 2007-11-12 Ulrich Drepper <drepper@redhat.com>
3814 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
3815 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
3816 list of interfaces. Also store prefix length.
3817 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
3818 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
3819 prefix if source and destination address are in the same subnet.
3820 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
3821 Always look for matching record in in6ai list.
3822 Correct source_addr_len value for IPv6->IPv4 converted records.
3824 2007-11-11 Roland McGrath <roland@frob.com>
3826 * include/kernel-features.h: New file.
3828 2007-11-10 Ulrich Drepper <drepper@redhat.com>
3830 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
3831 complications for 64-bit platforms.
3833 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
3834 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
3835 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
3837 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
3839 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3840 * sysdeps/wordsize-64/alphasort.c: New file.
3841 * sysdeps/wordsize-64/alphasort64.c: New file.
3842 * sysdeps/wordsize-64/fseeko.c: New file.
3843 * sysdeps/wordsize-64/fseeko64.c: New file.
3844 * sysdeps/wordsize-64/ftello.c: New file.
3845 * sysdeps/wordsize-64/ftello64.c: New file.
3846 * sysdeps/wordsize-64/ftw.c: New file.
3847 * sysdeps/wordsize-64/ftw64.c: New file.
3848 * sysdeps/wordsize-64/iofgetpos.c: New file.
3849 * sysdeps/wordsize-64/iofgetpos64.c: New file.
3850 * sysdeps/wordsize-64/iofopen.c: New file.
3851 * sysdeps/wordsize-64/iofopen64.c: New file.
3852 * sysdeps/wordsize-64/iofsetpos.c: New file.
3853 * sysdeps/wordsize-64/iofsetpos64.c: New file.
3854 * sysdeps/wordsize-64/lockf.c: New file.
3855 * sysdeps/wordsize-64/lockf64.c: New file.
3856 * sysdeps/wordsize-64/mkostemp.c: New file.
3857 * sysdeps/wordsize-64/mkostemp64.c: New file.
3858 * sysdeps/wordsize-64/mkstemp.c: New file.
3859 * sysdeps/wordsize-64/mkstemp64.c: New file.
3860 * sysdeps/wordsize-64/scandir.c: New file.
3861 * sysdeps/wordsize-64/scandir64.c: New file.
3862 * sysdeps/wordsize-64/tmpfile.c: New file.
3863 * sysdeps/wordsize-64/tmpfile64.c: New file.
3864 * sysdeps/wordsize-64/versionsort.c: New file.
3865 * sysdeps/wordsize-64/versionsort64.c: New file.
3866 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
3867 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
3868 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
3869 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
3870 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
3871 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
3872 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
3873 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
3874 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
3875 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
3876 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
3877 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
3879 * crypt/sha256-crypt.c: Fix a comment.
3880 * crypt/sha512-crypt.c: Likewise.
3882 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
3884 * sysdeps/x86_64/memset.S: Add sfence after movnti.
3886 2007-11-07 Ulrich Drepper <drepper@redhat.com>
3889 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
3890 because output buffer is too small break, don't loop.
3891 * iconvdata/Makefile (tests): Add bug-iconv6.
3892 * iconvdata/bug-iconv6.c: New file.
3894 2007-11-06 Ulrich Drepper <drepper@redhat.com>
3896 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
3898 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
3899 size_t. Add casts where needed.
3901 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
3902 old headers, don't call avc_has_perm if we don't have the
3903 permission information.
3905 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
3907 * elf/rtld.c (dl_main): Use the page size to find the map start.
3909 2007-11-05 Ulrich Drepper <drepper@redhat.com>
3911 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
3912 Patch by Szymon Siwek <sls@poczta.wp.pl>.
3914 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
3915 when the lookup call failed.
3917 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
3918 Add prune_cond and wakeup_time.
3919 (CACHE_PRUNE_INTERNAL): Define.
3920 Update declarations of prune_cache and setup_thread.
3921 * nscd/connections.c (dbs): Update initializers.
3922 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
3923 (nscd_init): Default number of threads is now 4.
3924 (invalidate_cache): Take lock before calling prune_cache.
3925 (handle_request): If SELinux forbids the request, say so.
3926 (readylist_cond): Use static initializer.
3927 (nscd_run_prune): New function. Used only by pruning threads.
3928 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
3930 (fd_ready): Update nscd_run reference.
3931 (start_threads): No need to initialize readylist_cond.
3932 Start pruning threads separately.
3933 * nscd/nscd_setup_thread.c: Change return value type to int and always
3935 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
3936 to int and return nonzero value if we can use the TID address hack.
3937 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
3938 the database is later than the new entry's timeout, update the
3939 wakeup time and wake the cleanup thread.
3940 (prune_cache): Return seconds the next entry in the database is still
3941 valid. Remove locking for pruning here.
3942 * nscd/nscd.conf: Document default number of threads.
3944 2007-10-31 Ulrich Drepper <drepper@redhat.com>
3946 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
3947 stack is properly aligned for the target function.
3948 Correct unwind info.
3950 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
3951 when using auditing libraries.
3953 2007-10-29 Ulrich Drepper <drepper@redhat.com>
3955 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
3956 _nss_dns_getnetbyaddr2_r.
3957 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
3958 extra parameter to getanswer_r.
3959 (_nss_dns_getnetbyaddr_r): Now a wrapper around
3960 _nss_dns_getnetbyaddr2_r.
3962 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
3964 * nscd/gethstbynm2_r.c: Remove.
3965 * nscd/gethstbynm3_r.c: New file.
3966 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
3968 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
3969 __gethostbyaddr_r compatibility wrapper.
3970 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
3971 determining timeout of entry.
3972 (lookup): Take new parameter and pass it to __gethostbyname3_r and
3974 (addhstbyX): Pass reference to variable for TTL to lookup and
3976 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
3977 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
3978 and __nss_next2. Remove __nss_services_lookup.
3979 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
3981 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
3983 * nss/getXXent_r.c: Likewise.
3984 * nss/getnssent_r.c: Likewise.
3985 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
3986 does not exist in module, try the optional second name.
3987 (__nss_next2): New function.
3988 (__nss_next): Now wrapper around __nss_next2.
3989 * nss/nsswitch.h: Adjust __nss_lookup prototype.
3990 Declare __nss_next2.
3991 Adjust definition of db_lookup_function type.
3992 * nss/service-lookup.c: Define NO_COMPAT.
3993 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3994 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3995 * inet/ether_ntoh.c: Likewise.
3996 * sunrpc/netname.c: Likewise.
3997 * sunrpc/publickey.c: Likewise.
3998 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
3999 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4000 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4001 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4002 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4004 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4006 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
4008 2007-10-28 Ulrich Drepper <drepper@redhat.com>
4011 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4012 * crypt/sha512c-test.c: Likewise.
4015 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4016 to keep track of end of %[ format string element.
4017 * stdio-common/Makefile (tests): Add bug20.
4018 * stdio-common/bug20.c: New file.
4021 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4022 path elements in counting mode.
4024 2007-10-27 Andreas Jaeger <aj@suse.de>
4027 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4030 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4031 (__cleanup): Free shared library when exiting.
4032 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4033 (__cleanup): Free shared library when exiting.
4035 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
4038 * math/libm-test.inc (check_float_internal): Support
4039 denormalized return.
4041 2007-10-23 Andreas Jaeger <aj@suse.de>
4044 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
4045 __LONG_LONG_PAIR to handle little endian byte order.
4046 Suggested by abhishekrai@google.com
4048 2007-10-27 Ulrich Drepper <drepper@redhat.com>
4050 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
4052 2007-10-26 Ulrich Drepper <drepper@redhat.com>
4054 * nscd/cache.c (prune_cache): Move test for modified file outside
4057 2007-10-21 Andreas Jaeger <aj@suse.de>
4059 * manual/texinfo.tex: Update to latest version.
4061 * manual/sysinfo.texi (System Parameters): Fix Formatting.
4063 * manual/arith.texi (Status bit operations): Fix formatting.
4065 * manual/errno.texi (Error Messages): Fix formatting.
4067 * manual/sysinfo.texi (System Parameters): Fix formatting.
4069 * manual/libc.texinfo: Update VERSION and UPDATED.
4071 2007-10-19 Roland McGrath <roland@redhat.com>
4073 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
4075 2007-10-06 David S. Miller <davem@davemloft.net>
4077 * configure.in: Add sparcv9v2 and sparc64v2.
4078 * scripts/config.sub: Likewise.
4079 * configure: Regenerate.
4080 * elf/elf.h (HWCAP_SPARC_N2): New.
4081 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
4082 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
4083 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
4084 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
4085 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
4086 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
4087 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
4089 2007-10-18 Ulrich Drepper <drepper@redhat.com>
4091 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
4092 even if the poll result indicates there is data to read.
4093 Patch by Jeff Moyer <jmoyer@redhat.com>.
4095 2007-10-18 Roland McGrath <roland@redhat.com>
4097 * elf/elf.h (NT_PPC_VMX): New macro.
4099 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4101 * version.h (VERSION): Set to 2.7.90.
4103 2007-10-17 Jakub Jelinek <jakub@redhat.com>
4105 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
4108 2007-10-17 Roland McGrath <roland@frob.com>
4110 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
4111 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
4113 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4115 * version.h (VERSION): Bump to 2.7.
4116 * include/features.h (__GLIBC_MINOR__): Bump to 7.
4119 * time/tzset.c (__tz_convert): Don't force testing for a change of
4120 TZ if not called from localtime. But then also see whether the
4121 file changed, in case __use_tzfile is set.
4123 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
4124 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4125 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4126 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4127 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4128 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4129 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4130 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4132 2007-10-17 Jakub Jelinek <jakub@redhat.com>
4134 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
4135 and admin selects to be able to replace the gai.conf file, lock
4136 data structures around the qsort call.
4138 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4140 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
4142 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
4143 too high for the improvements. Implement bzero unconditionally for
4146 2007-10-17 Ulrich Drepper <drepper@redhat.com>
4147 Jakub Jelinek <jakub@redhat.com>
4149 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
4150 even when time_t is 32-bit.
4151 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
4152 timezone data read by __tzfile_default. Ensure __tzname[0] is
4153 always set after the search.
4155 2007-10-16 Ulrich Drepper <drepper@redhat.com>
4157 * time/tzfile.c (__tzfile_read): Help the compiler recognize
4158 unreachable code on 32-bit machines.
4160 2007-10-16 Jakub Jelinek <jakub@redhat.com>
4163 * time/strftime_l.c: Include stdbool.h.
4164 (my_strftime): New wrapper, old function renamed to...
4165 (__strftime_internal): ... new function. Add tzset_called
4166 argument, pass it down to recursive calls, don't call tzset ()
4167 if already true, set to true after call to tzset ().
4169 2007-10-16 Ulrich Drepper <drepper@redhat.com>
4171 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
4172 into account when copying TZ string.
4174 2007-10-16 Jakub Jelinek <jakub@redhat.com>
4176 * time/tzfile.c (__tzfile_compute): For use_last case set i to
4177 num_transition rather than num_transitions - 1.
4179 2007-10-16 Jakub Jelinek <jakub@redhat.com>
4181 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
4184 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
4185 a local label rather than HIDDEN_JUMPTARGET.
4187 2007-10-15 Ulrich Drepper <drepper@redhat.com>
4189 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
4190 (init_cacheinfo): Initialize it.
4191 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
4192 Always define bzero.
4193 Remove non-glibc code.
4194 * sysdeps/x86_64/bzero.S: Make an empty file.
4196 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
4198 * sysdeps/x86_64/cacheinfo.c
4199 (__x86_64_preferred_memory_instruction): New.
4200 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4202 * sysdeps/x86_64/memset.S: Rewrite.
4204 2007-10-15 Roland McGrath <roland@redhat.com>
4206 * po/libc.pot: Regenerated.
4208 2007-10-15 Ulrich Drepper <drepper@redhat.com>
4210 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
4214 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
4215 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
4216 address record to T_A/T_AAAA requests.
4218 2007-10-14 Ulrich Drepper <drepper@redhat.com>
4220 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
4222 * posix/glob.c: Add some branch prediction throughout.
4224 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
4227 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
4229 (rfc3484_sort): Make sure that even if qsort doesn't support
4230 stable sorting out sorting here is stable by comparing service_order.
4231 (getaddrinfo): Initialize service_order.
4232 * posix/tst-rfc3484.c (do_test): Adjust for addition of
4233 service_order field to sorting structure.
4234 * posix/tst-rfc3484-2.c (do_test): Likewise.
4236 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
4237 * time/tzset.c (tzset_internal): Break TZ string parsing out into
4238 __tzset_parse_tz and updating of daylight, timezone, tzname into
4240 (__tz_compute): Renamed from tz_compute. Take additional parameters.
4241 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
4242 happens in __tz_compute.
4243 * time/tzfile.c (__tzfile_read): Also read TZ string.
4244 (find_transition): Fold into __tzfile_compute.
4245 (__tzfile_compute): For times beyond the last transition try to
4247 * timezone/tst-timezone.c: Information in daylight and tzname does
4248 change for Asia/Tokyo timezone with more concrete information.
4251 * include/stdio.h: Add libc_hidden_proto for ftello.
4252 * libio/ftello.c: Add libc_hidden_def.
4255 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
4256 on the specified time and not the last entries in the file. Move
4257 code to determine tzname[] to...
4258 (find_transition): ...here. Add ugly guess for times before the
4261 2007-10-13 Ulrich Drepper <drepper@redhat.com>
4264 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
4266 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
4267 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4268 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4269 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4271 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
4272 read mechanism when there are no group members and avoid no-op
4273 read syscall in this case.
4276 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
4277 (__readall): If reading failed due to EAGAIN error wait a bit
4278 and possibly try again.
4279 (__readvall): Likewise.
4281 2007-10-13 Bruno Haible <bruno@clisp.org>
4283 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
4284 when we cannot recode the message.
4286 2007-10-13 Ulrich Drepper <drepper@redhat.com>
4289 * libio/__freading.c (__freading): Don't return true for
4290 write-only streams. For read/write streams, check whether we
4291 performed a read operation already.
4292 * libio/Makefile (tests): Add tst-ext2.
4293 * libio/tst-ext2.c: New file.
4295 2007-10-12 Ulrich Drepper <drepper@redhat.com>
4297 * locale/programs/repertoire.c (repertoire_read): Always free
4298 memory for repertoire file name [Coverity CID 270].
4300 * elf/cache.c (save_aux_cache): Free memory allocated for
4301 temporary file name [Coverity CID 267].
4303 2007-10-12 Jakub Jelinek <jakub@redhat.com>
4305 * misc/Makefile (headers): Add bits/error.h.
4307 2007-10-12 Ulrich Drepper <drepper@redhat.com>
4309 * posix/fnmatch_loop.c: Take rule index returned as part of
4310 findidx return value into account when accessing weights.
4311 * posix/regcomp.c: Likewise.
4312 * posix/regexec.c: Likewise.
4314 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
4315 (skip_to): Fix problems with parameter of elifdef/elifndef.
4317 2007-10-11 Ulrich Drepper <drepper@redhat.com>
4319 * iconv/gconv_simple.c: Add some branch prediction.
4321 2007-10-12 Jakub Jelinek <jakub@redhat.com>
4323 * locale/programs/ld-collate.c (collate_read): If ignore_content
4324 and nowtok is tok_define, eat any tok_eol tokens.
4326 2007-10-11 Jakub Jelinek <jakub@redhat.com>
4328 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
4329 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
4331 * inet/netinet/in.h: Don't include bits/socket.h.
4332 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
4334 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
4336 2007-10-10 Ulrich Drepper <drepper@redhat.com>
4338 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
4340 * locale/programs/locfile-kw.gperf: Likewise.
4341 * locale/programs/ld-collate.c: Implement primitive preprocessor.
4343 2007-10-10 Jakub Jelinek <jakub@redhat.com>
4345 * stdio-common/printf-parse.h: Include string.h and wchar.h.
4346 (__find_specwc): Change into __extern_always_inline function.
4347 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
4348 (__parse_one_specmb): Remove ps argument.
4349 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
4350 Adjust __find_specmb and __parse_one_specmb callers.
4351 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
4352 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
4354 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
4357 2007-10-09 Ulrich Drepper <drepper@redhat.com>
4359 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
4360 with some Pentium Ds.
4362 2007-10-08 Ulrich Drepper <drepper@redhat.com>
4364 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
4366 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
4369 2007-10-07 Ulrich Drepper <drepper@redhat.com>
4372 * locale/C-time.c: Set week_1stday data to 19971201.
4373 * locale/programs/ld-time.c (time_finish): Default for
4374 first_workday is Monday.
4377 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
4380 * posix/glob.c (glob): Recognize patterns starting \/.
4381 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
4382 (main): Add test for pattern starting \/.
4384 * misc/error.h: Use __const instead of const.
4385 * misc/bits/error.h: Likewise.
4387 2007-10-07 Andreas Jaeger <aj@suse.de>
4389 * include/bits/error.h: New file.
4391 * misc/bits/error.h (error_at_line): Fix prototype.
4393 2007-10-06 Ulrich Drepper <drepper@redhat.com>
4396 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
4397 more little bugs in creating the stack frame when pltexit has to
4400 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
4401 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
4404 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
4405 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4406 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
4407 * math/libm-test.inc: Add test for this case.
4410 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
4411 (svc_register): Initialize sc_mapped. Set to TRUE if call to
4412 map service succeeded.
4413 (svc_is_mapped): New function.
4414 (svc_unregister): Use it before trying to unmap service.
4416 2007-10-05 Ulrich Drepper <drepper@redhat.com>
4418 * timezone/zic.c: Update from tzcode2007h.
4421 * timezone/africa: Update from tzdata2007h.
4422 * timezone/antarctica: Likewise.
4423 * timezone/asia: Likewise.
4424 * timezone/australasia: Likewise.
4425 * timezone/europe: Likewise.
4426 * timezone/leapseconds: Likewise.
4427 * timezone/northamerica: Likewise.
4428 * timezone/southamerica: Likewise.
4429 * timzeone/zone.tab: Likewise.
4432 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
4435 * string/bits/string2.h (__strdup): Cast parameters to calloc to
4436 avoid warning with -Wconversion.
4437 (__strndup): Likewise.
4438 Half the patch by Christian Iseli <christian.iseli@licr.org>.
4441 * nscd/connections.c (restart): Don't resync if database is
4442 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
4444 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
4445 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
4447 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
4448 evetnfd_read, eventfd_write.
4449 * sysdeps/unix/sysv/linux/eventfd.c: New file.
4450 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
4451 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
4452 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
4453 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
4454 eventfd_write for GLIBC_2.7.
4456 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
4457 * sysdeps/unix/sysv/linux/signalfd.c: New file.
4458 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
4459 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
4461 2007-10-04 Jakub Jelinek <jakub@redhat.com>
4463 * stdlib/msort.c: Include stdint.h.
4464 (struct msort_param): New type.
4465 (msort_with_tmp): Use struct msort_param pointer for unchanging
4466 parameters. Add optimized handling for several common sizes
4467 and indirect sorting mode.
4468 (qsort): Adjust msort_with_tmp callers. For big S use indirect
4470 Suggested by Belazougui Djamel .
4472 * stdlib/Makefile (tests): Add tst-qsort2.
4473 * stdlib/tst-qsort2.c: New test.
4475 2007-10-04 Ulrich Drepper <drepper@redhat.com>
4477 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
4478 for dup2 in case another thread races with the current one. Retry
4481 * misc/error.h: Remove support for use outside of libc. We have to
4482 include <features.h> now. Include <bits/error.h> if possible.
4483 * misc/bits/error.h: New file.
4485 2007-10-03 Jakub Jelinek <jakub@redhat.com>
4487 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
4488 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
4489 __extern_always_inline functions unconditionally, drop macros.
4491 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
4492 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
4493 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
4495 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
4496 add __artificial__ attribute.
4498 2007-10-02 Ulrich Drepper <drepper@redhat.com>
4500 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
4501 backward to forward direction.
4503 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
4506 * locale/programs/ld-collate.c (collate_finish): Compare against last
4507 used section which is known to have rules defined.
4508 (collate_read): After order_start, correctly record order of sections
4509 and queue sections up.
4511 2007-10-01 Ulrich Drepper <drepper@redhat.com>
4514 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
4515 the same number of pages.
4516 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
4518 * locale/programs/ld-collate.c (collate_read): After initial copy
4519 statement, continue in state 0.
4521 * include/stdio_ext.h (__fsetlocking): Define as macro.
4523 2007-09-30 Ulrich Drepper <drepper@redhat.com>
4525 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
4528 * po/pt_BR.po: Fix typo.
4530 2007-09-29 Ulrich Drepper <drepper@redhat.com>
4532 * iconvdata/Makefile (modules): Add ISO8859-9E.
4533 (distribute): Add iso8859-9e.c.
4534 (gen-8bit-gap-modules): Add iso8859-9e.
4535 * iconvdata/iso8859-9e.c: New file.
4536 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
4537 * iconvdata/TESTS: Likewise.
4538 * iconvdata/tst-tables.sh: Likewise.
4540 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4542 * locale/iso-639.def: Add several new entries.
4544 2007-09-24 Jakub Jelinek <jakub@redhat.com>
4546 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
4547 void * pointers instead of struct link_map **.
4548 (_dl_scope_free): Change argument type to void *.
4549 * include/link.h (struct link_map): Change type of l_reldeps
4550 to struct link_map_reldeps, move l_reldepsact into that
4552 * elf/dl-deps.c: Include atomic.h.
4553 (_dl_map_object_deps): Only change l->l_initfini when it is
4554 fully populated, use _dl_scope_free for freeing it. Optimize
4555 removal of libs from reldeps by using l_reserved flag, when
4556 some removal is needed, allocate a new list instead of
4557 reallocating and free the old with _dl_scope_free. Adjust
4558 for l_reldeps and l_reldepsact changes.
4559 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
4560 searching in l_initfini and l_reldeps without holding dl_load_lock.
4561 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
4562 l_reldepsact changes.
4563 * elf/dl-close.c (_dl_close_worker): Likewise.
4564 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
4566 2007-09-28 Ulrich Drepper <drepper@redhat.com>
4568 * iconvdata/Makefile (modules): Add KOI8-RU.
4569 (distribute): Add koi8-ru.c.
4570 (gen-8bit-gap-modules): Add koi8-ru.
4571 * iconvdata/koi8-ru.c: New file.
4572 * iconvdata/gconv-modules: Add entries for KOI8-RU.
4573 * iconvdata/TESTS: Likewise.
4574 * iconvdata/tst-tables.sh: Likewise.
4576 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
4578 2007-09-26 Jakub Jelinek <jakub@redhat.com>
4580 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
4581 with __warning__/__error__ attributes.
4582 (__warnattr): Define.
4583 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
4584 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
4586 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
4587 of __*_chk if compile time detectable overflow is found.
4588 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
4589 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
4591 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
4592 instead of __*_chk if compile time detectable overflow is found.
4593 (__gets_alias): Rename to...
4594 (__gets_warn): ... this. Add __warnattr.
4595 (gets): Call __gets_warn instead of __gets_alias.
4596 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
4597 aliases with __warnattr.
4598 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
4599 time detectable overflow is found.
4600 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
4601 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
4602 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
4603 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
4604 __getdomainname_chk_warn): New aliases with __warnattr.
4605 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
4606 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
4607 __*_chk_warn instead of __*_chk if compile time detectable overflow
4609 (__getgroups_chk): Rename argument to __listlen from listlen.
4610 (__getwd_alias): Rename to...
4611 (__getwd_warn): ... this. Add __warnattr.
4612 (getwd): Call __getwd_warn instead of __getwd_alias.
4613 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
4614 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
4615 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
4616 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
4617 __wcsnrtombs_chk_warn): New aliases with __warnattr.
4618 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
4619 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
4620 compile time detectable overflow is found.
4621 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
4622 to use __*_chk or not.
4623 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
4624 in comparisons which function should be called and in __*_chk*
4625 arguments. Call __*_chk_warn instead of __*_chk if compile time
4626 detectable overflow is found.
4627 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
4629 * debug/tst-chk1.c (do_test): Add a few more tests.
4631 2007-09-24 Ulrich Drepper <drepper@redhat.com>
4634 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
4635 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
4636 (_nl_unload_domain): Finalize conversions_lock.
4637 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
4638 handling table of known conversions.
4640 2007-09-24 Jakub Jelinek <jakub@redhat.com>
4642 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
4643 close_not_cancel_no_status instead of close.
4645 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
4648 * posix/regcomp.c (lookup_collation_sequence_value): Check that
4649 nrules != 0 for multibyte chars.
4651 2007-09-23 Ulrich Drepper <drepper@redhat.com>
4653 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
4654 Provide better error message in case the type is unknown.
4657 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
4658 * string/stratcliff.c: Make usable to test wide char functions.
4659 * wcsmbs/wcsatcliff.c: New file.
4660 * wcsmbs/Makefiel (tests): Add wcsatcliff.
4663 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
4664 (distribute): Add mac-centraleurope.c.
4665 (gen-8bit-gap-modules): Add mac-centraleurope.
4666 * iconvdata/mac-centraleurope.c: New file.
4667 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
4668 * iconvdata/TESTS: Likewise.
4669 * iconvdata/tst-tables.sh: Likewise.
4672 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
4674 2007-09-21 Ulrich Drepper <drepper@redhat.com>
4676 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
4677 from __x86_64_core_cache_size_half.
4678 (init_cacheinfo): Compute shared cache size for AMD processors with
4679 shared L3 correctly.
4680 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
4682 Patch in large parts by Evandro Menezes.
4684 2007-09-19 Ulrich Drepper <drepper@redhat.com>
4686 * elf/dl-lookup.c (add_dependency): Handle failing memory
4687 allocation for dependency list. Remove unnecessary check.
4689 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
4690 open/close when determining source addresses.
4692 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
4693 sha512-crypt, and sha512.
4694 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
4695 (distribute): Add sha256.h and sha512.h.
4696 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
4697 and call the appropriate code.
4698 * crypt/sha256-crypt.c: New file.
4699 * crypt/sha256.c: New file.
4700 * crypt/sha256.h: New file.
4701 * crypt/sha256c-test.c: New file.
4702 * crypt/sha256test.c: New file.
4703 * crypt/sha512-crypt.c: New file.
4704 * crypt/sha512.c: New file.
4705 * crypt/sha512.h: New file.
4706 * crypt/sha512c-test.c: New file.
4707 * crypt/sha512test.c: New file.
4709 2007-09-19 Jakub Jelinek <jakub@redhat.com>
4711 * misc/bits/syslog.h (syslog): Remove extraneous argument from
4712 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
4715 2007-09-18 Jakub Jelinek <jakub@redhat.com>
4717 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
4718 %as in fscanf format strings.
4720 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
4721 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
4722 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
4724 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
4727 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
4728 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
4729 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
4730 * elf/dl-sym.c (do_sym): Likewise.
4731 * include/link.h (struct link_map): Add l_serial field.
4732 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
4733 * elf/dl-lookup.c (add_dependency): Add flags argument.
4734 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
4735 flags, use THREAD_GSCOPE_RESET_FLAG before and
4736 THREAD_GSCOPE_SET_FLAG after
4737 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
4738 Don't dereference map until it has been found on some list.
4739 If map->l_serial changed, return -1.
4741 2007-09-17 Jakub Jelinek <jakub@redhat.com>
4743 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
4744 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
4745 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
4747 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
4748 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
4749 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
4750 add libc_hidden_proto.
4751 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4752 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4753 conformance requested.
4754 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
4755 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
4756 conformance requested.
4757 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
4758 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
4759 conformance requested.
4760 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
4761 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
4762 ISO C99 or POSIX conformance requested.
4763 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
4764 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
4765 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
4766 and __isoc99_vsscanf@@GLIBC_2.7.
4767 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
4768 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
4769 (tests): Add scanf14.
4770 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
4771 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
4772 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
4773 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
4774 CFLAGS-isoc99_scanf.c): Add $(exceptions).
4775 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
4776 from using internal headers.
4777 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
4778 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
4779 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
4780 and __isoc99_vswscanf@@GLIBC_2.7.
4781 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
4782 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
4783 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
4784 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
4785 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
4786 * stdio-common/isoc99_scanf.c: New file.
4787 * stdio-common/isoc99_vsscanf.c: New file.
4788 * stdio-common/isoc99_vscanf.c: New file.
4789 * stdio-common/isoc99_vfscanf.c: New file.
4790 * stdio-common/isoc99_fscanf.c: New file.
4791 * stdio-common/isoc99_sscanf.c: New file.
4792 * wcsmbs/isoc99_fwscanf.c: New file.
4793 * wcsmbs/isoc99_vswscanf.c: New file.
4794 * wcsmbs/isoc99_swscanf.c: New file.
4795 * wcsmbs/isoc99_wscanf.c: New file.
4796 * wcsmbs/isoc99_vwscanf.c: New file.
4797 * wcsmbs/isoc99_vfwscanf.c: New file.
4798 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
4799 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
4800 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
4801 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
4802 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
4803 * stdio-common/scanf14.c: New test.
4804 * stdio-common/scanf15.c: New test.
4805 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
4806 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
4807 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
4808 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
4809 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
4810 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
4811 __nldbl___isoc99_scanf@@GLIBC_2.7,
4812 __nldbl___isoc99_fscanf@@GLIBC_2.7,
4813 __nldbl___isoc99_sscanf@@GLIBC_2.7,
4814 __nldbl___isoc99_vscanf@@GLIBC_2.7,
4815 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
4816 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
4817 __nldbl___isoc99_wscanf@@GLIBC_2.7,
4818 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
4819 __nldbl___isoc99_swscanf@@GLIBC_2.7,
4820 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
4821 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
4822 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
4823 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
4824 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
4825 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
4826 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
4827 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
4828 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4829 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
4830 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
4831 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
4832 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
4833 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
4834 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
4836 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
4837 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
4838 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
4839 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
4840 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
4841 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
4842 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
4843 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
4844 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
4845 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
4846 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
4847 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
4849 * stdio-common/Makefile (tests): Add scanf13.
4851 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
4852 m modifier followed by l.
4853 (STRING_ARG): Add width argument.
4854 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
4855 <case L_('C')>: Handle %mlc and %mC.
4856 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
4858 * stdio-common/scanf13.c: New test.
4860 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
4861 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
4863 2007-09-18 Ulrich Drepper <drepper@redhat.com>
4865 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
4866 type and __THROW marker of splice, vmsplice, and tee.
4867 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4868 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4869 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4870 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4871 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4872 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4873 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4874 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
4875 as cancellation points.
4877 2003-11-01 Daniel Jacobowitz <dan@debian.org>
4879 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
4880 parse more than three parts of the version number.
4882 2007-09-15 Ulrich Drepper <drepper@redhat.com>
4884 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
4885 modifier. Patch by Jakub Jelinek.
4887 2007-08-26 Jakub Jelinek <jakub@redhat.com>
4889 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
4890 call_fallocate in misc subdir.
4891 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
4892 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
4893 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
4894 instead of __fallocate64.
4895 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
4897 2007-09-15 Jakub Jelinek <jakub@redhat.com>
4899 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4900 * rt/Makefile (headers): Add bits/mqueue2.h.
4901 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
4902 optimizing with GCC and __va_arg_pack_len is defined.
4903 * rt/bits/mqueue2.h: New file.
4904 * rt/mq_open.c (__mq_open): Renamed from mq_open.
4905 (mq_open): New strong_alias.
4906 (__mq_open_2): New function.
4907 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
4908 (mq_open): New strong_alias.
4909 (__mq_open_2): New function.
4910 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
4911 * Versions.def (librt): Add GLIBC_2.7 version.
4912 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
4913 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
4915 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
4916 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
4917 is defined rather than when not C++.
4918 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
4919 __openat64_alias): New redirects.
4920 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
4921 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
4922 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
4923 (open, open64, openat, openat64): Rewrite as __extern_always_inline
4924 functions instead of function-like macros.
4926 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
4928 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
4929 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
4930 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
4932 2007-09-15 Mike Frysinger <vapier@gentoo.org>
4934 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
4935 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
4937 2007-09-14 Mike Frysinger <vapier@gentoo.org>
4939 * inet/tst-network.c: Increment ERRORS for failing tests.
4941 2007-09-07 Jakub Jelinek <jakub@redhat.com>
4943 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
4944 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
4945 implement as __extern_always_inline function.
4946 (vsyslog): Define as __extern_always_inline function unconditionally.
4947 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
4948 When __va_arg_pack is defined, implement as __extern_always_inline
4950 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4951 __extern_always_inline functions unconditionally.
4952 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
4953 bits/stdio2.h will be included.
4954 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
4955 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
4956 implement as __extern_always_inline functions.
4957 (vswprintf, vwprintf, vfwprintf): Define as
4958 __extern_always_inline functions unconditionally.
4959 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
4961 2007-09-03 Jakub Jelinek <jakub@redhat.com>
4963 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
4964 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
4966 * include/features.h (__USE_EXTERN_INLINES): Define only when
4967 __extern_inline is defined.
4968 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
4969 is defined instead of when not __cplusplus.
4970 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
4971 is defined instead of when not __cplusplus.
4972 * socket/sys/socket.h: Include bits/socket2.h when
4973 __extern_always_inline is defined instead of when not __cplusplus.
4974 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
4975 is defined instead of when not __cplusplus.
4976 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
4977 is defined instead of when not __cplusplus.
4978 * string/string.h: Include bits/string3.h when __extern_always_inline
4979 is defined instead of when not __cplusplus.
4980 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
4981 is defined instead of when not __cplusplus.
4982 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
4983 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
4985 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4986 defined __extern_always_inline instead of !defined __cplusplus.
4987 * libio/bits/stdio-ldbl.h: Likewise.
4988 * wcsmbs/bits/wchar-ldbl.h: Likewise.
4989 * misc/bits/syslog.h (syslog): Don't define for C++.
4990 (vsyslog): Use __extern_always_inline function for C++ instead of
4992 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4993 whenever that macro is defined.
4994 (vprintf): Don't provide the inline for C++.
4995 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4996 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4997 define the macros for C++.
4998 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4999 __extern_always_inline functions for C++.
5000 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5001 stat64, lstat64, fstat64, fstatat64): Don't define if not
5002 __USE_EXTERN_INLINES.
5003 * wcsmbs/bits/wchar2.h: Fix #error message.
5004 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5005 (vswprintf, vwprintf, vfwprintf): Define using
5006 __extern_always_inline functions for C++.
5007 * string/bits/string3.h: Don't #undef macros if __cplusplus.
5008 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5009 strncpy, strcat, strncat): Define as __extern_always_inline
5010 functions instead of macros for C++.
5011 * math/bits/cmathcalls.h: Guard __extern_inline routines with
5012 defined __extern_inline.
5013 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5014 to __extern_inline whenever that macro is defined.
5015 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5016 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5017 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5018 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5019 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5020 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5021 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5022 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5023 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5024 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5025 prototypes. Only provide __extern_inline routines if
5026 __USE_EXTERN_INLINES.
5027 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5029 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5030 For now avoid some *printf tests in C++. Skip all testing
5031 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5033 * debug/tst-chk4.cc: New file.
5034 * debug/tst-chk5.cc: New file.
5035 * debug/tst-chk6.cc: New file.
5036 * debug/tst-lfschk4.cc: New file.
5037 * debug/tst-lfschk5.cc: New file.
5038 * debug/tst-lfschk6.cc: New file.
5039 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5041 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
5042 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
5043 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
5045 2007-09-13 Ulrich Drepper <drepper@redhat.com>
5047 * po/cs.po: Update from translation team.
5049 2007-09-11 Roland McGrath <roland@redhat.com>
5051 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
5054 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5056 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
5058 2007-09-05 Roland McGrath <roland@redhat.com>
5060 * manual/signal.texi (Signaling Another Process): Typo fix.
5061 From Karl Berry <karl@freefriends.org>.
5063 2007-08-29 Ulrich Drepper <drepper@redhat.com>
5065 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
5066 zero if not defined.
5067 (make_request): Recognize optimistic addresses and treat them like
5068 deprecated addresses.
5069 Reported by Neil Horman <nhorman@redhat.com>.
5071 2007-08-28 Ulrich Drepper <drepper@redhat.com>
5073 * nscd/connections.c (send_ro_fd): Also transfer file size.
5074 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
5075 file size don't call fstat.
5077 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
5078 ahead and map the file. This should always be correct and we can
5079 catch problems later.
5081 2007-08-28 Jakub Jelinek <jakub@redhat.com>
5083 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
5085 (__fread_alias, __fread_unlocked_alias): New aliases.
5086 (fread): New extern inline.
5087 (fread_unlocked): Likewise. Undef macro before definition of
5088 the inline function.
5089 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
5090 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
5091 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
5092 and __fread_unlocked_chk@@GLIBC_2.7.
5093 * debug/fread_chk.c: New file.
5094 * debug/fread_u_chk.c: New file.
5095 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
5097 2007-08-27 Jakub Jelinek <jakub@redhat.com>
5099 * sysdeps/unix/sysv/linux/syscalls.list
5100 (personality): Change caller to EXTRA.
5102 2007-08-25 Ulrich Drepper <drepper@redhat.com>
5104 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
5106 * iconvdata/iso-2022-cn.c (BODY): Likewise.
5108 * locale/programs/ld-collate.c (collate_output): Avoid warning if
5111 * Makerules: Use -p option with mkdir.
5113 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
5114 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
5115 (_xdr_directory_obj): Likewise.
5116 (xdr_entry_obj): Likewise.
5117 (xdr_group_obj): Likewise.
5118 (xdr_link_obj): Likewise.
5119 (xdr_table_obj): Likewise.
5120 (_xdr_nis_result): Likewise.
5121 (_xdr_ns_request): Likewise.
5122 (_xdr_ib_request): Likewise.
5123 (_xdr_nis_taglist): Likewise.
5124 (xdr_cback_data): Likewise.
5125 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
5126 (xdr_ypresp_maplist): Likewise.
5128 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
5130 * posix/regex_internal.h: Prevent some declarations and definitions
5131 to be seen when used in tests.
5133 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
5134 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
5136 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
5138 * config.make.in (datarootdir): Add to shut up configure.
5140 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
5141 associativity for fully-associative caches.
5143 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
5144 requests. Fill on more associativity values for L2.
5145 Patch mostly by Evandro Menezes.
5147 2007-08-24 Ulrich Drepper <drepper@redhat.com>
5149 * sysdeps/unix/sysv/linux/x86_64/init-first.c
5150 (_libc_vdso_platform_setup): Avoid using exported variable by using
5153 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
5155 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
5156 fallocate64 as EXTRA. It is not referenced if the symbol isn't
5159 2007-08-23 Ulrich Drepper <drepper@redhat.com>
5161 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
5162 align stack for call if pltexit is to be used.
5165 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
5166 align for function call in case pltexit has to be called later.
5168 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
5169 implicit atomic operation when storing function pointer.
5170 (_dl_runtime_profile): Likewise.
5172 2007-08-17 Jakub Jelinek <jakub@redhat.com>
5174 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
5177 2007-08-21 Ulrich Drepper <drepper@redhat.com>
5180 * string/strtok.c: Fix typo in comment.
5183 * debug/segfault.c: Fix typos in comments.
5186 * stdio-common/tempnam.c: Fix comment, it is not checked that
5187 TMPDIR points to a writable directory.
5190 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
5191 memory allocated for the name server address.
5194 * nscd/connections.c (handle_request): Using sendfile always
5195 requires that mmap is used for the database.
5196 Patch by Petr Baudis <pasky@suse.cz>.
5199 * nscd/hstcache.c (cache_addhst): When reloading an entry which
5200 suddenly has two or more addresses, ignore it and remove the old
5204 * resolv/res_hconf.c: Prepare for compiling outside libc.
5205 * nscd/res_hconf.c: New file.
5206 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
5208 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
5209 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
5211 * nscd/hstcache.c (cache_addhst): Minimal optimization.
5214 * debug/pcprofiledump.c: Turn on internationalization by calling
5215 setlocale. Patch mostly by Benno Schulenberg.
5218 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
5220 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
5221 * iconvdata/bug-iconv5.c: New file.
5223 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
5226 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
5227 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
5228 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
5229 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
5230 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
5231 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
5232 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
5233 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
5235 2007-08-21 Ulrich Drepper <drepper@redhat.com>
5238 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
5239 lookup loop. Suggested by John Reiser.
5241 2007-08-21 Jakub Jelinek <jakub@redhat.com>
5243 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
5245 2007-08-20 Ulrich Drepper <drepper@redhat.com>
5247 * csu/libc-start.c: Don't handle VDSO_SETUP here.
5248 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
5249 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
5250 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
5251 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
5253 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
5255 2007-08-18 Ulrich Drepper <drepper@redhat.com>
5257 * po/nl.po: Update from translation team.
5259 2007-08-16 Andreas Jaeger <aj@suse.de>
5261 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
5262 Reported by Peter Festner <peter.festner@ewetel.net>.
5264 2007-08-17 Jakub Jelinek <jakub@redhat.com>
5266 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
5268 2007-08-16 Jakub Jelinek <jakub@redhat.com>
5270 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
5271 to check for undefined symbols.
5273 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
5274 If the syscall fails, set errno to the actual returned error number
5276 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
5277 arguments are incorrect, set errno to EINVAL, if the syscall
5278 fails, set errno to the actual returned error number.
5280 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
5281 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
5283 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
5284 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
5286 (ASI_PNF, ASI_BLK_P): Don't define.
5287 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
5288 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
5290 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
5291 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
5294 2007-08-15 Jakub Jelinek <jakub@redhat.com>
5296 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
5297 FE_UNDERFLOW on Niagara CPUs.
5299 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
5302 2007-08-14 Jakub Jelinek <jakub@redhat.com>
5304 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
5305 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
5306 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
5307 flush should be used or not inside of the function.
5308 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
5310 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
5311 __thread_start): Use HIDDEN_JUMPTARGET.
5312 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
5313 __thread_start): Likewise.
5314 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
5316 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
5317 Add libc_hidden_proto.
5318 (STRTOF): Add libc_hidden_proto.
5319 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
5320 (strtold_l, wcstold_l): Use them as second argument for
5323 2007-08-14 Ulrich Drepper <drepper@redhat.com>
5325 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
5327 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5329 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
5331 2007-08-14 Ulrich Drepper <drepper@redhat.com>
5333 * po/bg.po: New file. From the translation team.
5335 2007-08-13 Jakub Jelinek <jakub@redhat.com>
5337 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
5338 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
5339 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
5340 when each feature was introduced.
5342 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
5343 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
5344 (CHECK_HASH): New macro.
5345 (PREPARE_VERSION): Use it.
5347 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
5348 prototype if not __ASSUME_PSELECT.
5349 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
5350 prototype if not __ASSUME_PPOLL.
5352 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
5354 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
5355 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
5358 2007-08-13 Ulrich Drepper <drepper@redhat.com>
5360 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5361 (_libc_vdso_platform_setup): If vDSO is not available point
5362 __vdso_gettimeofday to the vsyscall.
5363 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
5364 __vdso_gettimeofday instead of vsyscall.
5366 2007-08-13 Jakub Jelinek <jakub@redhat.com>
5368 * nscd/servicescache.c: Include kernel-features.h.
5369 * nscd/gai.c: Likewise.
5370 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
5371 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
5372 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
5373 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
5374 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
5375 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
5376 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
5377 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
5378 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
5380 2007-08-12 Ulrich Drepper <drepper@redhat.com>
5382 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
5383 and _dl_get_origin defines anymore.
5385 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
5386 Build fix for systems which might lack POSIX timer support.
5388 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5389 (_libc_vdso_platform_setup): Mangle function pointers before storing
5391 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
5392 Demangle vdso pointer before use.
5393 (INTERNAL_VSYSCALL): Likewise.
5395 * elf/cache.c (primes): Mark as const.
5396 Noted by Roland McGrath.
5398 2007-08-01 Andreas Jaeger <aj@suse.de>
5399 Jakub Jelinek <jakub@redhat.com>
5401 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
5402 (options): Add option.
5403 (parse_opt): Handle option.
5404 (manual_link): Adjust process_file caller. Call implicit_soname.
5405 (search_dir): Formatting. Use and populate auxiliary cache.
5406 (main): Load and save auxiliary cache.
5407 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
5408 stat64 from fstat64 to caller.
5409 (implicit_soname): New function.
5410 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
5411 leave *soname as NULL.
5412 * elf/cache.c: Include libgen.h.
5413 (print_entry, print_cache, compare, save_cache, add_to_cache):
5414 Formatting and cleanups.
5415 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
5416 aux_cache_file): New structures.
5417 (AUX_CACHEMAGIC): Define.
5418 (primes): New array.
5419 (aux_hash_size, aux_hash): New variables.
5420 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
5421 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
5422 load_aux_cache, save_aux_cache): New functions.
5423 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
5424 (init_aux_cache, search_aux_cache, add_to_aux_cache,
5425 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
5426 (process_file): Adjust prototype.
5428 2007-08-12 Jakub Jelinek <jakub@redhat.com>
5430 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
5433 2007-08-12 Ulrich Drepper <drepper@redhat.com>
5435 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
5436 r_found_version structure as second parameter.
5437 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
5438 (_dl_vdso_vsym): Change type of second parameter accordingly.
5439 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
5440 (_libc_vdso_platform_setup): Adjust.
5441 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
5442 (_libc_vdso_platform_setup): Likewise.
5444 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
5445 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
5446 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
5447 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
5448 * csu/libc-start.c: Pretty printing.
5449 Use VDSO_SETUP if defined.
5450 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
5451 and let generic code call into _libc_vdso_platform_setup.
5452 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
5453 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
5454 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
5455 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
5456 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
5458 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
5459 (sysdep_rountines): Add dl-vdso.
5461 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
5464 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
5465 attribute_hidden to __vdso_gettimeofday prototype.
5467 2007-08-12 Roland McGrath <roland@redhat.com>
5469 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
5470 From: Karl Berry <karl@freefriends.org>.
5472 2007-08-11 Ulrich Drepper <drepper@redhat.com>
5474 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
5475 an atime update for the files we read.
5477 2007-08-10 Ulrich Drepper <drepper@redhat.com>
5479 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
5481 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
5484 * misc/Makefile (routines): Add mkostemp and mkostemp64.
5485 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
5486 * misc/mkostemp.c: New file.
5487 * misc/mkostemp64.c: New file.
5488 * stdlib/stdlib.h: Declare the new functions.
5489 * sysdeps/posix/tempname.c: Add new parameter which is added to
5490 the flags for open. Remove __GT_BIGFILE handling.
5491 * stdio-common/tempname.c: Likewise.
5492 * include/stdio.h: Adjust __gen_tempname prototype.
5493 Renumber __GT_* constants.
5494 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
5495 * misc/mkdtemp.c: Likewise.
5496 * misc/mkstemp.c: Likewise.
5497 * misc/mkstemp64.c: Likewise.
5498 * misc/mktemp.c: Likewise.
5499 * stdio-common/tempnam.c: Likewise.
5500 * stdio-common/tmpfile.c: Likewise.
5501 * stdio-common/tmpfile64.c: Likewise.
5502 * stdio-common/tmpnam.c: Likewise.
5503 * stdio-common/tmpnam_r.c: Likewise.
5505 2007-08-10 Roland McGrath <roland@frob.com>
5507 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
5509 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
5510 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5512 2007-08-10 Ulrich Drepper <drepper@redhat.com>
5514 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
5516 * nss/nss_files/files-alias.c (internal_setent): Likewise.
5517 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
5518 * nss/nss_files/files-have_o_cloexec.c: New file.
5520 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
5523 2007-08-10 Jakub Jelinek <jakub@redhat.com>
5525 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
5526 ___new_wcstold_l): New weak aliases.
5527 (strtold_l, wcstold_l): Use them as second argument for
5530 2007-08-09 Ulrich Drepper <drepper@redhat.com>
5532 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
5533 register in test for error.
5535 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
5536 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
5538 * po/sv.po: Update from translation team.
5540 2007-08-06 Roland McGrath <roland@redhat.com>
5542 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
5543 Remove __strto*_l inlines.
5544 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
5545 * stdlib/strtod.c: Add libc_hidden_def.
5546 * stdlib/strtod_l.c: Likewise.
5547 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
5548 for __new_strtold and __new_wcstold.
5549 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
5551 * stdlib/strtol.c: Add libc_hidden_def.
5552 * stdlib/strtol_l.c: Likewise.
5553 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
5556 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
5558 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
5559 * scripts/data/localplt-generic.data: ... here.
5560 * elf/Makefile (check-data): Get generic file if no other.
5561 ($(objpfx)check-localplt.out): Make target unconditional.
5563 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
5566 2007-08-05 Ulrich Drepper <drepper@redhat.com>
5568 * po/zh_CN.po: Updated translation from translation team.
5570 2007-08-05 Jakub Jelinek <jakub@redhat.com>
5572 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
5573 Don't use CGOTSETUP and CGOTRESTORE macros.
5575 2007-08-04 Roland McGrath <roland@redhat.com>
5577 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
5579 2007-08-04 Jakub Jelinek <jakub@redhat.com>
5581 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
5582 __extension__ around the whole statement expression.
5584 2007-08-04 Ulrich Drepper <drepper@redhat.com>
5586 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
5587 elements during initialization.
5589 * po/pl.po: Updated translation from translation team.
5590 * po/tr.po: Likewise.
5591 * po/nl.po: Likewise.
5593 2007-08-03 Ulrich Drepper <drepper@redhat.com>
5595 * rt/aio.h: Add __nonnull attributes.
5597 2007-08-03 Jakub Jelinek <jakub@redhat.com>
5599 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
5600 * stdlib/Makefile (tests): Add tst-strtod5.
5601 (tst-strtod5-ENV): New.
5602 * stdlib/tst-strtod5.c: New file.
5604 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
5606 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
5609 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
5612 2007-08-03 Jakub Jelinek <jakub@redhat.com>
5614 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
5617 2007-08-02 Ulrich Drepper <drepper@redhat.com>
5619 * io/Makefile (aux): Add have_o_cloexec.
5620 * include/fcntl.h: Declare __have_o_cloexec.
5621 * io/have_o_cloexec.c: New file.
5622 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
5623 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
5624 fcntl call if not necessary.
5625 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
5628 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
5629 Avoid memset, add explicit initialization.
5630 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
5631 to the end and change into zero-sized array.
5632 Move lock member to fill a hole on 64-bit platforms.
5634 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
5636 * include/stdlib.h: Add __strto*_internal prototypes here.
5637 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
5639 * include/wchar.h: Add __wcsto*_internal prototypes.
5640 * sysdeps/generic/inttypes.h: No need to protect the declaration
5641 of the __strto*_internal and __wcsto*_internal members here.
5643 * rt/mqueue.h: Change const to __const and add nonnull attributes.
5645 2007-08-02 Roland McGrath <roland@redhat.com>
5647 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
5648 $(inst_bindir)/getconf if possible.
5650 * posix/Makefile ($(objpfx)getconf.speclist): New target.
5651 (generated): Add it.
5652 ($(inst_libexecdir)/getconf): Use it.
5654 2007-08-01 Ulrich Drepper <drepper@redhat.com>
5656 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
5657 /proc is faster and sufficient. /sys is still needed for
5660 2007-08-01 Jakub Jelinek <jakub@redhat.com>
5662 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
5663 syscall as __fallocate64.
5664 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
5665 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
5667 2007-07-30 Jakub Jelinek <jakub@redhat.com>
5669 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
5672 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
5673 if off_t is different rank from size_t.
5675 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
5676 uw_frame_state_for): Avoid type punning warnings.
5677 * sysdeps/generic/unwind-dw2-fde-glibc.c
5678 (_Unwind_IteratePhdrCallback): Likewise.
5679 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
5680 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
5681 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
5684 2007-07-31 Ulrich Drepper <drepper@redhat.com>
5686 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
5687 total processors using sysfs.
5688 (__get_nprocs): Use sysfs to determine which processors are online.
5690 2007-07-31 Jakub Jelinek <jakub@redhat.com>
5692 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
5693 syscall arguments count.
5695 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
5697 2007-07-30 Roland McGrath <roland@redhat.com>
5699 * manual/libc.texinfo: Update copyrights, formatting magic, and
5700 @dircategory. From Karl Berry <karl@freefriends.org>.
5702 2007-07-29 Ulrich Drepper <drepper@redhat.com>
5705 * io/Makefile (headers): Add bits/fcntl2.h.
5707 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
5709 (__CPU_EQUAL_S): Likewise.
5711 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
5712 (tests): Add tst-cpuset.
5713 * posix/sched_cpualloc.c: New file.
5714 * posix/sched_cpufree.c: New file.
5715 * posix/tst-cpuset.c: New file.
5716 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
5718 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
5719 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
5720 macros. Define CPU_*_S macros.
5722 2007-07-28 Ulrich Drepper <drepper@redhat.com>
5724 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
5728 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
5729 #.0g and value rounded to 1.0.
5730 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
5732 2007-07-26 Jakub Jelinek <jakub@redhat.com>
5734 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
5735 for int_frac_digits and frac_digits.
5737 * login/logout.c (logout): Avoid aliasing violation.
5738 * login/logwtmp.c (logwtmp): Likewise.
5740 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
5742 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
5744 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
5746 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
5748 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
5751 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
5753 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
5755 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
5756 char * to avoid warning.
5757 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
5759 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
5761 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
5762 allocate_arrays): Cast second argument to charmap_find_symbol
5763 to char * to avoid warnings.
5765 * locale/programs/repertoire.c (repertoire_new_char): Change
5766 from_nr, to_nr and cnt to unsigned long, adjust printf format
5769 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
5770 Cast second argument to new_element to char * to avoid warnings.
5772 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
5774 * intl/gettextP.h (struct loaded_domain): Change plural to const
5775 struct expression *.
5776 * intl/plural-eval.c (plural_eval): Change first argument to
5777 const struct expression *.
5778 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
5779 argument to const struct expression **.
5780 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
5782 * intl/loadmsgcat (_nl_unload_domain): Cast away const
5783 in call to __gettext_free_exp.
5785 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
5786 unitialized wstring/wpattern var warnings.
5788 * posix/runtests.c (struct a_test): Make data field const char *.
5790 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
5791 vars if not LDBL_MANT_DIG >= 106.
5793 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
5795 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
5796 __find_specmb to avoid warning.
5798 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
5800 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
5803 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
5806 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
5807 tv var when it will be actually used.
5809 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
5812 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
5813 char array resp. pointer.
5814 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
5816 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
5817 to const unsigned char **.
5818 (ucs4_to_cns11643): Change second argument to unsigned char *.
5819 * iconvdata/euc-tw.c (BODY): Change endp type to
5820 const unsigned char *.
5821 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
5823 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
5824 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
5825 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
5826 types to unsigned char pointers/arrays instead of char.
5827 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
5829 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
5830 * iconvdata/jis0212.h: Include assert.h.
5831 (ucs4_to_jisx0212): Change second argument to unsigned char *.
5832 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
5833 of trying to handle that.
5834 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
5836 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
5837 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
5838 two dimensional const unsigned char arrays.
5839 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
5840 Initialize endp to inptr to shut up a warning.
5842 2007-07-20 Jakub Jelinek <jakub@redhat.com>
5845 * time/strptime_l.c (__strptime_internal): Silently ignore
5846 strftime modifiers and field width in recursive calls.
5848 * include/time.h (enum ptime_locale_status): Remove.
5849 (__strptime_internal): Remove decided and era_cnt arguments,
5850 add statep argument.
5851 * time/strptime_l.c (__strptime_internal): Remove decided
5852 and era_cnt arguments, add statep argument. Don't recompute
5853 any fields in recursive calls, only update caller's tm
5854 and state, if recursive call fails, don't change tm nor
5856 (get_alt_number): Adjust.
5857 (recursive): Adjust caller.
5858 (strptime): Likewise.
5859 * time/strptime.c (strptime): Likewise.
5861 2007-07-19 Jakub Jelinek <jakub@redhat.com>
5863 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
5864 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
5865 if from and to charsets are the same.
5866 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
5867 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
5868 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
5870 2007-07-17 Jakub Jelinek <jakub@redhat.com>
5872 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
5873 Don't define wint_t when __need_mbstate_t unless it
5875 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
5876 in the typedef if possible.
5877 * wctype/wctype.h (wint_t): Define by including
5878 wchar.h with __need_wint_t instead of including stddef.h
5879 with __need_wint_t and as fallback definining it ourselves.
5880 * iconv/gconv.h (__need_wint_t): Define before including
5882 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
5883 or _GLIBCPP_USE_WCHAR_T.
5884 (__need_wchar_t): Don't define
5885 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5886 (__need_wint_t): Don't define before including stddef.h,
5887 define before including wchar.h only if _LIBC or
5888 _GLIBCPP_USE_WCHAR_T.
5889 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
5890 * sysdeps/mach/hurd/_G_config.h: Likewise.
5891 * sysdeps/generic/_G_config.h: Likewise.
5892 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
5893 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
5894 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
5895 if _LIBC or _GLIBCPP_USE_WCHAR_T.
5897 2007-07-28 Ulrich Drepper <drepper@redhat.com>
5899 * sysdeps/posix/posix_fallocate64.c: Undefine
5900 __posix_fallocate64_l64 before alias handling.
5901 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
5902 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
5903 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
5904 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
5906 * io/tst-posix_fallocate.c: Include <fcntl.h>.
5908 2007-07-23 Jakub Jelinek <jakub@redhat.com>
5910 * locale/programs/ld-collate.c (atwc): New variable.
5911 (add_to_tablewc): New toplevel function, moved from collate_output.
5912 (collate_output): Remove add_to_tablewc nested function.
5914 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
5915 (name_insert): New function.
5916 (write_output): Remove hash_table and hash_size vars and name_insert
5919 2007-07-24 Roland McGrath <roland@redhat.com>
5921 * Makerules (install-others-programs-nosubdir): New target.
5922 (install-no-libc.a-nosubdir): Depend on it.
5924 * iconv/Makefile (install-others-programs): Set this instead of
5926 * login/Makefile (install-others-programs): Likewise.
5927 * posix/Makefile (install-others-programs): Likewise.
5929 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
5932 2007-07-23 Ulrich Drepper <drepper@redhat.com>
5934 * io/Makefile (tests): Add tst-posix_fallocate.
5935 * io/tst-posix_fallocate.c: New file.
5937 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5940 2007-07-22 Roland McGrath <roland@frob.com>
5942 * hurd/getdport.c: Add missing copyright year update.
5944 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
5945 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
5947 2007-07-22 Ulrich Drepper <drepper@redhat.com>
5949 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
5951 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
5952 O_CLOEXEC is needed.
5953 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
5954 Avoid additional fcntl to set O_CLOEXEC if not needed.
5955 * nis/nss_compat/compat-initgroups.c: Likewise.
5956 * nis/nss_compat/compat-pwd.c: Likewise.
5957 * nis/nss_compat/compat-spwd.c: Likewise.
5959 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5962 * manual/errno.texi: Change ECANCELED value to 119.
5965 * mach/lock-intern.h: Include <sys/cdefs.h>.
5968 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
5972 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
5975 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
5977 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
5979 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
5981 * sysdeps/mach/hurd/i386/tls.h: Likewise.
5983 2007-07-21 Ulrich Drepper <drepper@redhat.com>
5985 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5986 descriptor received from nscd.
5988 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5990 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5991 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5992 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5993 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5994 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5995 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5997 2007-07-20 Jakub Jelinek <jakub@redhat.com>
6000 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6003 * login/forkpty.c (forkpty): Close master and slave fds on
6004 fork failure. Patch by
6005 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6007 2007-07-18 Jakub Jelinek <jakub@redhat.com>
6009 * include/features.h (__USE_ISOC95): New define.
6010 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6011 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6012 for -std=iso9899:199409.
6013 * CONFORMANCE: Remove comments about unsupported AMD1.
6015 2007-07-17 Jakub Jelinek <jakub@redhat.com>
6017 * sysdeps/ia64/sched_cpucount.c: New file.
6018 * sysdeps/powerpc/sched_cpucount.c: New file.
6020 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6021 __BEGIN_DECLS/__END_DECLS around the prototype.
6022 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
6023 pointer to const cpu_set_t.
6025 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6026 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6027 __need_size_t and include stddef.h.
6028 * sysvipc/sys/msg.h: Likewise.
6029 * posix/sched.h: Likewise.
6030 * hurd/hurd/signal.h (__need_size_t): Define.
6032 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6033 neither does signal.h in pedantic ISO C namespaces. stdio.h
6034 no longer defines wint_t or wchar_t.
6036 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6037 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6038 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6039 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6040 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
6041 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
6042 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
6043 * debug/printf_chk.c (__printf_chk): Likewise.
6044 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
6045 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
6047 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
6050 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
6051 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
6053 2007-07-16 Jakub Jelinek <jakub@redhat.com>
6056 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
6057 * malloc/malloc.h (realloc): Likewise.
6059 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
6060 if one of proc_file_chain streams has that fileno.
6061 * stdio-common/Makefile (tests): Add tst-popen2.
6062 * stdio-common/tst-popen2.c: New test.
6064 2007-07-14 Jakub Jelinek <jakub@redhat.com>
6066 * elf/ldconfig.c: Allow GPLv2 or any later version.
6067 * elf/readlib.c: Likewise.
6068 * elf/chroot_canon.c: Likewise.
6069 * elf/cache.c: Likewise.
6070 * nscd/mem.c: Likewise.
6071 * nscd/getpwuid_r.c: Likewise.
6072 * nscd/grpcache.c: Likewise.
6073 * nscd/aicache.c: Likewise.
6074 * nscd/getsrvbynm_r.c: Likewise.
6075 * nscd/nscd.c: Likewise.
6076 * nscd/servicescache.c: Likewise.
6077 * nscd/getsrvbypt_r.c: Likewise.
6078 * nscd/initgrcache.c: Likewise.
6079 * nscd/gethstbyad_r.c: Likewise.
6080 * nscd/gethstbynm2_r.c: Likewise.
6081 * nscd/getgrnam_r.c: Likewise.
6082 * nscd/nscd_setup_thread.c: Likewise.
6083 * nscd/getpwnam_r.c: Likewise.
6084 * nscd/gai.c: Likewise.
6085 * nscd/connections.c: Likewise.
6086 * nscd/dbg_log.c: Likewise.
6087 * nscd/cache.c: Likewise.
6088 * nscd/hstcache.c: Likewise.
6089 * nscd/nscd_conf.c: Likewise.
6090 * nscd/getgrgid_r.c: Likewise.
6091 * nscd/pwdcache.c: Likewise.
6092 * catgets/gencat.c: Likewise.
6093 * locale/programs/linereader.h: Likewise.
6094 * locale/programs/locarchive.c: Likewise.
6095 * locale/programs/ld-paper.c: Likewise.
6096 * locale/programs/locfile-kw.h: Likewise.
6097 * locale/programs/ld-address.c: Likewise.
6098 * locale/programs/xmalloc.c: Likewise.
6099 * locale/programs/ld-time.c: Likewise.
6100 * locale/programs/localedef.c: Likewise.
6101 * locale/programs/simple-hash.c: Likewise.
6102 * locale/programs/xstrdup.c: Likewise.
6103 * locale/programs/ld-numeric.c: Likewise.
6104 * locale/programs/locfile-kw.gperf: Likewise.
6105 * locale/programs/ld-collate.c: Likewise.
6106 * locale/programs/charmap-kw.gperf: Likewise.
6107 * locale/programs/charmap.h: Likewise.
6108 * locale/programs/charmap-kw.h: Likewise.
6109 * locale/programs/config.h: Likewise.
6110 * locale/programs/locfile.c: Likewise.
6111 * locale/programs/ld-ctype.c: Likewise.
6112 * locale/programs/charmap.c: Likewise.
6113 * locale/programs/ld-messages.c: Likewise.
6114 * locale/programs/repertoire.h: Likewise.
6115 * locale/programs/locale.c: Likewise.
6116 * locale/programs/ld-name.c: Likewise.
6117 * locale/programs/linereader.c: Likewise.
6118 * locale/programs/locfile.h: Likewise.
6119 * locale/programs/3level.h: Likewise.
6120 * locale/programs/ld-monetary.c: Likewise.
6121 * locale/programs/ld-measurement.c: Likewise.
6122 * locale/programs/charmap-dir.c: Likewise.
6123 * locale/programs/ld-identification.c: Likewise.
6124 * locale/programs/localedef.h: Likewise.
6125 * locale/programs/charmap-dir.h: Likewise.
6126 * locale/programs/repertoire.c: Likewise.
6127 * locale/programs/simple-hash.h: Likewise.
6128 * locale/programs/ld-telephone.c: Likewise.
6129 * locale/programs/locale-spec.c: Likewise.
6130 * locale/programs/locfile-token.h: Likewise.
6131 * posix/getconf.c: Likewise.
6132 * iconv/dummy-repertoire.c: Likewise.
6133 * iconv/iconv_charmap.c: Likewise.
6134 * iconv/iconvconfig.c: Likewise.
6135 * iconv/iconv_prog.c: Likewise.
6136 * malloc/memusagestat.c: Likewise.
6137 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
6139 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6141 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
6142 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
6143 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
6144 check for the first argument.
6146 2007-07-12 Jakub Jelinek <jakub@redhat.com>
6149 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
6150 (__tgmath_real_type): Fix if expr is const int or other const
6151 qualified integral type.
6152 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
6153 expressions and handle const qualified arguments.
6154 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
6155 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
6156 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
6157 statement expressions.
6158 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
6159 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
6160 (__TGMATH_UNARY_IMAG): Define.
6161 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
6162 * math/Makefile (tests): Add test-tgmath2.
6163 (CFLAGS-test-tgmath2.c): Add.
6164 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
6165 count_cfloat, count_cldouble): New variables.
6167 (main): Check number of complex calls as well.
6168 (F(compile_test)): Add complex tests and tests with const qualified
6170 (y, z, ccount): Define.
6171 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
6172 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
6173 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
6174 F(cproj)): New functions.
6175 * math/test-tgmath2.c: New test.
6177 2007-07-11 Jakub Jelinek <jakub@redhat.com>
6180 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
6181 RPATH etc. as "/" rather than "", don't segfault on empty paths,
6183 * dlfcn/Makefile (distribute): Add glreflib3.c.
6184 (module-names): Add glreflib3.
6185 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
6187 (LDFLAGS_glreflib3.so): New.
6188 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
6190 * dlfcn/glreflib3.c: New file.
6192 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
6193 returned -1, return NULL.
6194 * intl/explodename.c (_nl_explode_name): Return -1 if
6195 _nl_normalize_codeset failed.
6197 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
6199 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
6200 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
6201 and avoid branch misspredicts for > 31 bytes memset case.
6202 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6203 Remove toc ref to __cache_line_size.
6205 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
6206 to get ISA-V2.0 branch hints.
6207 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
6208 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
6209 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6210 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6211 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6212 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
6213 Remove toc ref to __cache_line_size.
6215 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
6216 Include math_ldbl_opt.h.
6218 2007-07-10 Ulrich Drepper <drepper@redhat.com>
6221 * time/strptime_l.c (__strptime_internal): Implement greedy
6222 matching of weekday and month names.
6224 2007-07-09 Roland McGrath <roland@redhat.com>
6226 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
6227 (ELF_NOTE_ABI): Use it.
6228 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
6230 2007-07-09 Ulrich Drepper <drepper@redhat.com>
6232 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
6233 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6235 2007-07-07 Ulrich Drepper <drepper@redhat.com>
6238 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
6239 in loop to look for conversion specifier to avoid testing of
6241 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
6242 * stdio-common/bug18.c: New file.
6243 * stdio-common/bug18a.c: New file.
6244 * stdio-common/bug19.c: New file.
6245 * stdio-common/bug19a.c: New file.
6247 2007-07-05 Mike Frysinger <vapier@gentoo.org>
6249 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
6252 2007-07-01 Jakub Jelinek <jakub@redhat.com>
6254 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
6255 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
6256 Return NULL if mmap failed instead of asserting it does not.
6257 (calloc): Check for integer overflow.
6259 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
6262 2007-07-03 Jakub Jelinek <jakub@redhat.com>
6265 * nis/nss-default.c: Include errno.h.
6266 (init): Preserve errno.
6268 2007-07-02 Ulrich Drepper <drepper@redhat.com>
6270 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
6272 2007-06-30 Ulrich Drepper <drepper@redhat.com>
6274 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
6276 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
6278 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
6280 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
6282 * sysdeps/s390/dl-procinfo.c: New file.
6283 * sysdeps/s390/dl-procinfo.h: New file.
6284 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
6286 2007-06-29 Jakub Jelinek <jakub@redhat.com>
6288 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
6289 in PT_NOTE segments with multiple notes.
6290 * elf/readelflib.c (process_elf_file): Likewise.
6292 2007-06-22 Ulrich Drepper <drepper@redhat.com>
6294 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
6297 2007-06-19 Ulrich Drepper <drepper@redhat.com>
6299 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
6301 2007-06-13 Jakub Jelinek <jakub@redhat.com>
6303 * include/link.h: Don't include rtld-lowlevel.h.
6304 (struct link_map): Remove l_scope_lock.
6305 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
6306 (_dl_scope_free_list): New field (variable) in _rtld_global.
6307 (DL_LOOKUP_SCOPE_LOCK): Remove.
6308 (_dl_scope_free): New prototype.
6309 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
6310 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
6311 (_dl_profile_fixup): Likewise.
6312 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
6313 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
6314 THREAD_GSCOPE_RESET_FLAG around it.
6315 * elf/dl-close.c (_dl_close_worker): Don't use
6316 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
6317 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
6318 scopes were queued or if l_scope_mem has been abandoned.
6319 * elf/dl-open.c (_dl_scope_free): New function.
6320 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
6321 * elf/dl-support.c (_dl_scope_free_list): New variable.
6322 * elf/dl-lookup.c (add_dependency): Remove flags argument.
6323 Remove DL_LOOKUP_SCOPE_LOCK handling.
6324 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
6326 * elf/dl-object.c (_dl_new_object): Don't use
6327 __rtld_mrlock_initialize.
6329 2007-06-19 Ulrich Drepper <drepper@redhat.com>
6331 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
6333 (rtld_global_ro): Likewise.
6335 2007-06-18 Jakub Jelinek <jakub@redhat.com>
6337 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
6338 Move PT_LOAD checking to...
6339 (_dl_addr_inside_object): ... here, new function.
6340 * elf/dl-sym.c (do_sym): If not l_contiguous,
6341 call _dl_addr_inside_object.
6342 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6343 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
6344 * elf/dl-open.c (dl_open_worker): Likewise.
6345 (_dl_addr_inside_object): New function if IS_IN_rtld.
6346 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
6347 holes are present or are PROT_NONE protected.
6348 * include/link.h (struct link_map): Add l_contiguous field.
6349 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
6351 2007-06-18 Jakub Jelinek <jakub@redhat.com>
6352 Tomas Janousek <tjanouse@redhat.com>
6353 Ulrich Drepper <drepper@redhat.com>
6356 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
6357 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
6359 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
6360 unused member a bitmap.
6361 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
6362 servers are configured.
6364 2007-06-18 Jakub Jelinek <jakub@redhat.com>
6366 * elf/rtld.c (dl_main): Don't call init_tls more than once.
6368 2007-06-17 Andreas Schwab <schwab@suse.de>
6370 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
6372 2007-06-16 Andreas Jaeger <aj@suse.de>
6375 * sysdeps/unix/sysv/linux/sys/ptrace.h
6376 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
6377 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
6378 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
6379 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
6380 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
6382 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6383 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6384 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6385 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6387 2007-06-16 Ulrich Drepper <drepper@redhat.com>
6390 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
6391 determining whether there are IPv4/IPv6 addresses, ignore loopback
6394 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
6396 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
6397 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
6398 as the return type. Change type of "r" variable to CMPtype.
6399 * soft-fp/eqsf2.c (__eqsf2): Likewise.
6400 * soft-fp/eqtf2.c (__eqtf2): Likewise.
6401 * soft-fp/gedf2.c (__gedf2): Likewise.
6402 * soft-fp/gesf2.c (__gesf2): Likewise.
6403 * soft-fp/getf2.c (__getf2): Likewise.
6404 * soft-fp/ledf2.c (__ledf2): Likewise.
6405 * soft-fp/lesf2.c (__lesf2): Likewise.
6406 * soft-fp/letf2.c (__letf2): Likewise.
6407 * soft-fp/unorddf2 (__unorddf2): Likewise.
6408 * soft-fp/unordsf2 (__unordsf2): Likewise.
6409 * soft-fp/unordtf2 (__unordtf2): Likewise.
6411 2007-06-09 Ulrich Drepper <drepper@redhat.com>
6413 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
6414 make sure gcc doesn't mess around with this.
6416 2007-06-08 Ulrich Drepper <drepper@redhat.com>
6418 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
6420 2007-06-08 Jakub Jelinek <jakub@redhat.com>
6422 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
6423 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
6424 at most once per _dl_close_worker.
6426 2007-06-08 Ulrich Drepper <drepper@redhat.com>
6428 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
6429 __sched_cpucount as const.
6430 * posix/sched_cpucount.c: Adjust.
6432 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
6433 instruction for counting bits.
6434 * sysdeps/x86_64/sched_cpucount.c: New file.
6436 2007-06-07 Ulrich Drepper <drepper@redhat.com>
6438 * configure.in: Avoid variable named BASH.
6439 * config.make.in: Likewise.
6440 Patch in part by Mike Frysinger.
6442 2007-06-06 Jakub Jelinek <jakub@redhat.com>
6445 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
6446 pseudo-zeros as zero.
6447 * sysdeps/x86_64/ldbl2mpn.c: New file.
6448 * sysdeps/ia64/ldbl2mpn.c: New file.
6450 2007-06-04 Jakub Jelinek <jakub@redhat.com>
6452 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
6453 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
6454 Remove unreachable code at the end.
6456 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
6458 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
6459 ldbl-128ibm in comment.
6460 (fpclassifyl): Correct classification of denormals.
6461 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
6462 return value for MIN denormal. Rewrite using long double math too
6463 correctly handle denormals and canonicalize the results.
6465 2007-06-05 Jakub Jelinek <jakub@redhat.com>
6467 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
6468 (__mpn_construct_long_double): Fix conversion where result ought
6469 to be smaller than __LDBL_MIN__, or the low double should be
6470 denormal. Fix decision where to negate low double - honor round
6472 * stdio-common/tst-sprintf2.c: Include string.h.
6473 (COMPARE_LDBL): Define.
6474 (TEST): Also test whether a string hexadecimal float representation
6475 can be parsed back to the number.
6476 (main): Add a couple of further tests.
6478 2007-06-04 Jakub Jelinek <jakub@redhat.com>
6480 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
6481 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
6482 is non-zero, but smaller than 2 * __DBL_MIN__.
6483 * stdio-common/tst-sprintf2.c: New test.
6484 * stdio-common/Makefile (tests): Add tst-sprintf2.
6486 * math/test-misc.c (main): Don't run last batch of tests with
6487 IBM long double format.
6489 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
6491 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
6492 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
6493 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
6494 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
6495 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6496 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
6497 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
6498 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
6499 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
6500 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6501 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
6502 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
6504 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
6506 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
6508 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
6510 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
6512 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
6513 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
6515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
6517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
6519 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
6521 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
6524 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
6526 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
6527 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
6528 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
6529 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
6530 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
6531 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
6532 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
6533 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
6535 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
6537 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
6538 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6539 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
6540 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6541 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
6542 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6543 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
6544 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
6546 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
6548 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
6549 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
6550 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
6551 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
6553 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
6555 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
6556 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
6558 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
6560 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
6561 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
6562 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
6563 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
6565 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
6567 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
6568 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
6570 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
6572 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
6573 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
6575 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
6576 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
6577 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
6578 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
6580 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
6582 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
6583 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
6584 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
6585 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
6587 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
6589 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
6590 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
6591 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
6592 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6593 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
6594 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6596 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
6598 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
6599 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
6600 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
6601 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
6603 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
6605 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
6606 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
6607 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
6608 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
6609 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
6610 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
6611 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
6612 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
6613 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
6614 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
6615 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
6616 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
6617 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
6618 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
6619 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
6620 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
6622 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
6624 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
6625 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
6627 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
6629 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
6630 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
6632 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
6634 * sysdeps/powerpc/powerpc32/970/Implies: New file.
6635 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
6636 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
6637 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
6638 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
6639 * sysdeps/powerpc/powerpc64/970/Implies: New file.
6640 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
6641 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
6642 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
6643 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
6645 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
6647 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
6649 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
6651 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
6652 branch miss-predicts. Ensure that cache line crossing does not impact
6655 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
6657 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
6658 "../../powerpc32/power4/memcopy.h".
6659 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
6660 "../../powerpc32/power4/wordcopy.c".
6662 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
6664 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
6665 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
6666 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
6667 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
6668 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
6669 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
6671 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
6673 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
6675 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
6677 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
6678 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
6679 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
6680 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
6681 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
6682 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
6683 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
6684 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
6686 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
6688 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
6690 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
6692 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
6693 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
6694 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
6695 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
6696 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
6697 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
6698 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
6700 2007-05-29 Roland McGrath <roland@redhat.com>
6702 * po/Makefile (po-sed-cmd): New variable.
6703 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
6705 2007-05-29 Ulrich Drepper <drepper@redhat.com>
6707 * crypt/md5-crypt.c: Fix comment.
6709 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
6710 of crashing. When this is the case or if the reply is malformed,
6711 don't try to close the new file descriptor since it does not
6713 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
6715 2007-05-28 Jakub Jelinek <jakub@redhat.com>
6717 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
6718 if __NR_utimensat is not defined.
6720 2007-05-26 Ulrich Drepper <drepper@redhat.com>
6722 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
6724 2007-05-25 Jakub Jelinek <jakub@redhat.com>
6726 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
6727 (open): Fix comment typos. Don't call __open_2 if flags
6728 is a compile time constant without O_CREAT.
6729 (__open64_2): Add nonnull attribute.
6730 (open64): Fix comment typos. Don't call __open64_2 if flags
6731 is a compile time constant without O_CREAT.
6732 (__openat_2): Add nonnull attribute, fix nonnull attribute
6734 (openat): Fix comment typos. Don't call __openat_2 if flags
6735 is a compile time constant without O_CREAT.
6736 (__openat64_2): Add nonnull attribute, fix nonnull attribute
6738 (openat64): Fix comment typos. Don't call __openat64_2 if flags
6739 is a compile time constant without O_CREAT.
6741 2007-05-24 Ulrich Drepper <drepper@redhat.com>
6743 * Makerules (sysd-rules): Define PTW for ptw-* files.
6744 * Versions: Define GLIBC_2.7 for libc.
6745 * include/stdio.h: Declare __fortify_fail.
6746 * debug/fortify_fail.c: New file.
6747 * debug/Makefile (routines): Add fortify_fail.
6748 * debug/chk_fail.c: Use __fortify_fail.
6749 * debug/stack_chk_fail.c: Likewise.
6750 * io/Versions: Export __open_2, __open64_2, __openat_2, and
6751 __openat64_2 for GLIBC_2.7.
6752 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
6753 * io/open.c: Define *_2 variant of function which checks for O_CREAT
6754 and fails if necessary.
6755 * io/open64.c: Likewise.
6756 * io/openat.c: Likewise.
6757 * io/openat64.c: Likewise.
6758 * sysdeps/unix/sysv/linux/open64.c: Likewise.
6759 * sysdeps/unix/sysv/linux/openat.c: Likewise.
6760 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
6761 * io/bits/fcntl2.h: New file.
6762 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
6764 * include/bits/fcntl2.h: New file.
6765 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6767 * sysdeps/unix/sysv/linux/open_2.c: New file.
6769 2007-05-21 Ulrich Drepper <drepper@redhat.com>
6771 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
6772 as second parameter to handle_intel.
6774 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
6777 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
6779 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
6780 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6782 * sysdeps/x86_64/memcpy.S: Complete rewrite.
6783 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
6784 Patch by Evandro Menezes <evandro.menezes@amd.com>.
6786 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
6788 2007-05-21 Jakub Jelinek <jakub@redhat.com>
6791 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
6792 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
6793 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
6795 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
6798 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
6799 reinitialize workend at the start of each do_positional format spec
6800 loop, free workstart before do_positional loops.
6801 (printf_unknown): Fix size of work_buffer.
6802 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
6804 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
6805 (public_sET_STATe): If ms->version < 3, put all chunks into
6806 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
6809 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
6810 * malloc/hooks.c: Likewise.
6811 * malloc/arena.c: Likewise.
6812 * malloc/malloc.c (do_check_malloc_state): Don't assert
6813 n_mmaps is not greater than n_mmaps_max. This removes the need
6814 for the previous change.
6816 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
6819 2007-05-19 Ulrich Drepper <drepper@redhat.com>
6821 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
6822 Define for kernel >= 2.6.22.
6824 2007-05-18 Ulrich Drepper <drepper@redhat.com>
6826 * elf/dl-close.c (_dl_close_worker): When removing object from
6827 global scope, wait for all lookups to finish afterwards.
6828 * elf/dl-open.c (add_to_global): When global scope array must
6829 grow, allocate a new one and free old array only after all
6831 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
6832 (_dl_lookup_symbol_x): Likewise.
6833 * elf/dl-support.c: Define _dl_wait_lookup_done.
6834 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
6835 _dl_wait_lookup_done.
6837 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
6838 not overlapping with arena.
6840 * malloc/mcheck.c (reallochook): If size==0, free the block.
6842 * rt/tst-shm.c: Use fstat64 instead of fstat.
6844 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
6845 __NR_sync_file_range is not defined.
6847 2007-05-17 Ulrich Drepper <drepper@redhat.com>
6849 Dummy files to prevent stub versions from being used.
6850 * sysdeps/x86_64/fpu/k_cosl.c: New file.
6851 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
6852 * sysdeps/x86_64/fpu/k_sinl.c: New file.
6853 * sysdeps/x86_64/fpu/k_tanl.c: New file.
6855 * version.h (VERSION): Set to 2.6.90.
6857 2007-05-14 Ulrich Drepper <drepper@redhat.com>
6859 * version.h (VERSION): Define to 2.6.
6860 * include/features.h (__GLIBC_MINOR__): Define to 6.
6862 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
6864 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
6867 2007-05-13 Ulrich Drepper <drepper@redhat.com>
6869 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
6870 number of mmaps. n_mmaps_max is the target.
6871 * malloc/hooks.c: Likewise.
6872 * malloc/arena.c: Likewise.
6874 2007-05-12 Andreas Jaeger <aj@suse.de>
6876 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
6879 2007-05-11 Ulrich Drepper <drepper@redhat.com>
6881 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
6882 adding new variables.
6884 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
6885 optimize. Completely extend global scope array before making the
6886 new entries visible.
6888 2007-05-10 Ulrich Drepper <drepper@redhat.com>
6890 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
6891 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
6894 * include/link.h: Move l_version and l_nversion members around to
6897 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
6899 * sysdeps/unix/sysv/linux/sched_setaffinity.c
6900 (__sched_setaffinity_new): If syscall was successful and
6901 RESET_VGETCPU_CACHE is defined, use it before returning.
6902 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
6904 * io/sys/stat.h: Make sure struct timespec is defined for
6907 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
6909 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6910 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
6911 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6912 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6913 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6914 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
6915 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
6916 * io/sys/stat.h: Declare utimensat, futimens.
6917 * io/utimensat.c: New file.
6918 * io/futimens.c: New file.
6919 * sysdeps/unix/sysv/linux/utimensat.c: New file.
6920 * sysdeps/unix/sysv/linux/futimens.c: New file.
6921 * io/Makefile (routines): Add utimensat, futimens.
6922 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
6923 * sysdeps/unix/sysv/linux/lutimes.c: New file.
6924 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
6927 * include/sys/cdefs.h: Redefine __nonnull so that test for
6928 incorrect parameters in the libc code itself are not omitted.
6930 2007-05-09 Jakub Jelinek <jakub@redhat.com>
6932 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
6933 exception in addition to inexact when asked to raise only FE_INEXACT.
6936 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
6939 2007-05-07 Ulrich Drepper <drepper@redhat.com>
6942 * string/strfry.c (strfry): Make result more random.
6944 2007-05-07 Richard Henderson <rth@redhat.com>
6946 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
6947 if __NO_LONG_DOUBLE_MATH.
6948 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
6949 available in the compiler, add .arch directive to the assembly.
6951 2007-05-07 Jakub Jelinek <jakub@redhat.com>
6953 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
6954 compat_symbol to GLIBC_2_1.
6955 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
6956 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
6957 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
6958 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
6959 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
6960 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
6961 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
6963 (__isnanl): New compat_symbol.
6965 2007-05-07 Ulrich Drepper <drepper@redhat.com>
6966 Jakub Jelinek <jakub@redhat.com>
6968 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
6969 (new_heap): Initialize mprotect_size.
6970 (grow_heap): When growing, only mprotect from mprotect_size till
6971 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
6972 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
6974 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
6975 Peter Bergner <bergner@us.ibm.com>
6977 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
6978 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
6979 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
6980 * sysdeps/powerpc/fpu/fe_mask.c: New file.
6981 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
6982 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
6983 Call __fe_mask_env() if all FP exceptions disabled.
6984 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
6985 from old FPSCR to new fenv to propagate DFP rounding modes.
6986 Call __fe_mask_env() if FP exceptions previously enabled.
6987 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6988 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
6989 transitioning from all exceptions disabled to any exception enabled
6991 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6992 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
6993 when transitioning from all exceptions disabled to any exception
6994 enabled or visa versa.
6995 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6996 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6997 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6998 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6999 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7002 2007-05-06 Ulrich Drepper <drepper@redhat.com>
7005 * posix/unistd.h: Remove __THROW from fdatasync.
7007 2007-05-06 Mike Frysinger <vapier@gentoo.org>
7010 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7012 2007-05-06 Ulrich Drepper <drepper@redhat.com>
7014 * stdio-common/vfprintf.c (process_string_arg): Optimize
7015 ridiculous precision in wide char code printing multi-byte string.
7016 Reported by Jim Meyering <jim@meyering.net>.
7019 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7020 boundaries to work around systems with overlapping binary loading.
7021 Based on a patch by Suzuki <suzuki@in.ibm.com>.
7023 2007-05-04 Ulrich Drepper <drepper@redhat.com>
7025 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7026 __mbsnrtowcs after last change.
7028 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7029 (get_ident): Likewise.
7031 2007-05-03 Jakub Jelinek <jakub@redhat.com>
7033 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7034 with setting the sticky bit.
7035 * math/test-misc.c (main): Add more truncation tests.
7037 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
7039 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7040 double in the function declaration.
7041 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
7042 double in the function declaration.
7043 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7044 float in the function declaration.
7045 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7046 float in the function declaration.
7048 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
7049 denormal operands. Do not generate FP_EX_DENORM exception.
7050 (FP_UNPACK_RAW_EP): Ditto.
7051 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
7052 undefined _FP_UNPACK_RAW_E.
7053 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
7054 undefined _FP_UNPACK_RAW_EP.
7055 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
7056 undefined _FP_PACK_RAW_E.
7057 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
7058 undefined _FP_PACK_RAW_EP.
7060 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
7062 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
7065 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
7066 Jakub Jelinek <jakub@redhat.com>
7068 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
7069 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
7071 * soft-fp/op-common.h (FP_TRUNC): Ditto.
7073 2007-05-03 Jakub Jelinek <jakub@redhat.com>
7075 * math/test-misc.c (main): Add tests for rounding long double
7076 values close to smallest double denormalized value to double.
7078 2007-04-30 Joseph Myers <joseph@codesourcery.com>
7080 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
7081 condition for truncating to 0. Set sticky bit for such
7084 2007-05-02 Jakub Jelinek <jakub@redhat.com>
7086 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
7087 fixed length array for ignore.
7089 2007-04-30 Ulrich Drepper <drepper@redhat.com>
7092 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
7093 stack for large precisions.
7094 * stdio-common/test-vfprintf.c (main): Add test for large
7097 2007-04-30 Jakub Jelinek <jakub@redhat.com>
7099 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
7101 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
7104 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
7105 account in the size check.
7106 * resolv/tst-inet_ntop.c: New test.
7107 * resolv/Makefile (tests): Add tst-inet_ntop.
7109 2007-04-30 Ulrich Drepper <drepper@redhat.com>
7110 Jakub Jelinek <jakub@redhat.com>
7113 * malloc/malloc.c: Keep separate list for first blocks on the bin
7114 lists with a given size. This helps skipping over list elements
7115 we know won't fit in two places.
7116 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
7118 2007-04-28 Ulrich Drepper <drepper@redhat.com>
7121 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
7122 label to Teredo tunnel addresses 2001://32.
7124 2007-04-27 Ulrich Drepper <drepper@redhat.com>
7126 * locale/programs/ld-collate.c (collate_read): Allow order_start
7129 * locale/programs/ld-collate.c (collate_read): Fix printing of
7133 * locale/C-translit.h.in: Add entry for U2044.
7136 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
7137 hexa-decimal floats without exponent.
7138 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
7140 2007-04-25 Ulrich Drepper <drepper@redhat.com>
7142 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
7143 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
7144 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
7145 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
7147 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
7150 2007-04-25 Jakub Jelinek <jakub@redhat.com>
7152 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
7153 of 0 after the out_fail label.
7155 2007-04-25 Ulrich Drepper <drepper@redhat.com>
7158 * iconv/gconv_charset.h (strip): Allow ':'.
7159 * iconv/iconv_open.c (iconv_open): Adjust comment.
7161 2007-04-25 Jakub Jelinek <jakub@redhat.com>
7163 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
7166 2007-04-23 Jakub Jelinek <jakub@redhat.com>
7169 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
7170 alignment of buffer and tmp_buffer.
7171 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
7172 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
7173 alignment of buffer.
7174 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
7175 bigger than INT_MAX.
7176 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
7177 h_errnop arguments. Fail if buflen is too small.
7178 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
7180 2007-04-23 Jakub Jelinek <jakub@redhat.com>
7183 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
7184 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
7186 2007-04-22 Roland McGrath <roland@redhat.com>
7188 * elf/elf.h (NT_PRXFPREG): New macro.
7190 2007-04-19 Andreas Jaeger <aj@suse.de>
7193 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
7194 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
7197 2007-04-19 Ulrich Drepper <drepper@redhat.com>
7199 * include/sys/mman.h: Mark madvise hidden.
7200 * misc/madvise.c: Add libc_hidden_def.
7202 2007-04-06 Jakub Jelinek <jakub@redhat.com>
7204 * nis/nis_domain_of.c (__nis_domain_of): New function.
7205 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
7206 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
7207 * nis/nis_call.c (rec_dirsearch): Likewise.
7208 (first_shoot): Likewise. Remove search_parent_first argument.
7209 (struct nis_server_cache): Rename search_parent_first field
7211 (nis_server_cache_search, nis_server_cache_add): Rename
7212 search_parent_first argument to search_parent.
7213 (__nisfind_server): Likewise. If search_parent, call
7216 2007-04-18 Ulrich Drepper <drepper@redhat.com>
7218 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
7220 2007-04-17 Ulrich Drepper <drepper@redhat.com>
7223 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
7225 2007-04-16 Ulrich Drepper <drepper@redhat.com>
7228 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
7230 2007-04-15 Jakub Jelinek <jakub@redhat.com>
7232 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
7233 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
7234 current number of locales in SUPPORTED.
7235 (create_archive): Initialize serial.
7236 (enlarge_archive): Preserve aliases rather than duplicating
7239 2007-04-13 Jakub Jelinek <jakub@redhat.com>
7241 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
7242 after _IO_un_link, not before it.
7244 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
7245 special case handling when wcp == wstartp + 1. Fix a comment typo.
7246 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
7248 2007-03-30 Jakub Jelinek <jakub@redhat.com>
7250 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
7251 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
7252 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
7254 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
7255 _IO_file_xsgetn_maybe_mmap): Likewise.
7256 * libio/oldfileops.c (old_do_write): Likewise.
7257 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
7258 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
7259 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
7260 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
7261 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
7262 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
7263 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
7264 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
7265 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
7266 _IO_file_underflow, _IO_file_underflow_mmap,
7267 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
7268 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
7269 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
7270 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
7271 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
7272 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
7273 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
7274 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
7275 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
7276 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
7277 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
7278 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
7279 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
7280 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
7281 _IO_adjust_column_internal, _IO_default_uflow_internal,
7282 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
7283 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
7284 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
7285 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
7286 _IO_file_close_it_internal, _IO_file_underflow_internal,
7287 _IO_file_overflow_internal, _IO_file_attach_internal,
7288 _IO_file_fopen_internal, _IO_file_sync_internal,
7289 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
7290 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
7291 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
7292 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
7293 _IO_seekpos_unlocked): Likewise.
7294 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
7295 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
7297 2007-04-16 Jakub Jelinek <jakub@redhat.com>
7299 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
7300 argument in xmalloc size computation.
7302 2007-04-01 Jakub Jelinek <jakub@redhat.com>
7304 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
7305 math_opt_barrier and math_force_eval macros.
7307 2007-03-27 Jakub Jelinek <jakub@redhat.com>
7310 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
7311 * sysdeps/i386/fpu/math_private.h: New file.
7312 * sysdeps/x86_64/fpu/math_private.h: New file.
7313 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
7314 math_force_eval macros. Use "+m" constraint on asm rather than
7316 * math/s_nextafter.c (__nextafter): Likewise.
7317 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
7319 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
7320 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
7321 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7322 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
7323 math_opt_barrier and math_force_eval macros.
7324 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
7325 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
7326 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
7327 (__nexttoward): Use math_opt_barrier and
7328 math_force_eval macros. Use "+m" constraint on asm rather than
7329 "=m" and "m". Only use asm to force double result if
7330 FLT_EVAL_METHOD is 2.
7331 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
7332 (__nexttowardf): Use math_opt_barrier and
7333 math_force_eval macros. Use "+m" constraint on asm rather than
7334 "=m" and "m". Only use asm to force double result if
7335 FLT_EVAL_METHOD is not 0.
7336 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
7337 (__nexttowardf): Use math_opt_barrier and
7338 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
7339 x to float using asm.
7340 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
7341 (__nldbl_nexttowardf): Use math_opt_barrier and
7342 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
7343 x to float using asm.
7344 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
7345 (__nexttowardf): Use math_opt_barrier and math_force_eval
7346 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
7347 * math/bug-nextafter.c (zero, inf): New variables.
7348 (main): Add new tests.
7349 * math/bug-nexttoward.c (zero, inf): New variables.
7350 (main): Add new tests.
7352 2007-03-22 Jakub Jelinek <jakub@redhat.com>
7355 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
7356 exceptions both in SW and MXCSR.
7357 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
7358 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
7359 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
7360 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7361 in MXCSR if SSE is available.
7362 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
7364 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
7366 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
7367 Return 0 rather than 1.
7368 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
7369 Remove incorrect part of a comment. Fix argument to feraiseexcept.
7370 * math/test-fenv.c (feholdexcept_tests): New function.
7373 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
7376 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7379 2007-04-13 Jakub Jelinek <jakub@redhat.com>
7382 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
7383 Reported by David Anderson <davea42@earthlink.net>.
7385 2007-04-07 Ulrich Drepper <drepper@redhat.com>
7387 * posix/sys/wait.h: Remove unnecessary forward declaration.
7389 2007-04-05 Jakub Jelinek <jakub@redhat.com>
7391 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
7392 with obj->do_servers after first_shoot.
7394 2007-04-03 Ulrich Drepper <drepper@redhat.com>
7396 * posix/Makefile (routines): Add sched_cpucount.
7397 (tests): Add tst-cpucount.
7398 * posix/sched_cpucount.c: New file.
7399 * posix/tst-cpucount.c: New file.
7400 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
7401 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
7402 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7403 * posix/sched.h: Define CPU_COUNT.
7405 2007-03-27 Jakub Jelinek <jakub@redhat.com>
7407 * posix/fnmatch.c (STRUCT): Define.
7408 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
7409 * posix/fnmatch_loop.c (struct STRUCT): New type.
7410 (FCT): Add ends argument. If ends != NULL and normal * is
7411 seen in the pattern, store current pattern and string pointers
7412 and return. Adjust recursive calls.
7413 (EXT): Adjust FCT callers.
7414 (STRUCT): Undef at the end of the file.
7415 * posix/Makefile (tests): Add tst-fnmatch2.
7416 * posix/tst-fnmatch2.c: New test.
7418 2007-04-01 Jakub Jelinek <jakub@redhat.com>
7420 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
7423 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
7424 Change last argument to unsigned int.
7426 2007-03-23 Jakub Jelinek <jakub@redhat.com>
7428 * scripts/check-local-headers.sh: Filter out sys/capability.h.
7430 2007-03-22 Jakub Jelinek <jakub@redhat.com>
7432 * config.h.in (HAVE_LIBCAP): Add.
7433 * nscd/selinux.h: Include sys/capability.h rather than non-existent
7435 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
7436 free_caps. Cast away const from 4th cap_set_flag argument.
7438 2007-03-26 Ulrich Drepper <drepper@redhat.com>
7440 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
7442 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7443 Add sync_file_range.
7444 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
7446 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
7448 * sysdeps/powerpc/bits/atomic.h
7449 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
7450 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
7451 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7452 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
7453 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7454 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
7455 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
7456 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7457 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7458 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7459 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
7460 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7461 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7462 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7463 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7464 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
7465 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7466 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
7467 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7468 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
7470 2007-03-20 Jakub Jelinek <jakub@redhat.com>
7472 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7473 (__cache_line_size): Define the variable here. Add
7474 attribute_hidden, remove weak_extern.
7475 (__libc_start_main): Set __cache_line_size
7477 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
7478 (__cache_line_size): Define the variable here. Add
7479 attribute_hidden, remove weak_extern.
7480 (DL_PLATFORM_AUXV): Set __cache_line_size
7482 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
7483 weak_extern, add attribute_hidden.
7484 (__elf_machine_runtime_setup): Assume __cache_line_size is always
7486 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
7488 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
7490 2007-03-26 Jakub Jelinek <jakub@redhat.com>
7493 * timezone/africa: Update from tzdata2007d.
7494 * timezone/asia: Likewise.
7495 * timezone/australasia: Likewise.
7496 * timezone/backward: Likewise.
7497 * timezone/europe: Likewise.
7498 * timezone/iso3166.tab: Likewise.
7499 * timezone/leapseconds: Likewise.
7500 * timezone/northamerica: Likewise.
7501 * timezone/southamerica: Likewise.
7502 * timezone/zone.tab: Likewise.
7504 * timezone/private.h: Update from tzcode2007d.
7505 * timezone/zdump.c: Likewise.
7506 * timezone/zic.c: Likewise.
7508 2007-03-21 Jakub Jelinek <jakub@redhat.com>
7510 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
7511 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
7513 (nis_server_cache_search, nis_server_cache_add): New functions.
7514 (__nisfind_server): Use them. Add dbp and flags argument, if
7515 call __nisbind_create.
7516 (__nisbind_create): Add server_used and current_ep arguments,
7517 only call __nis_findfastest if server_used is ~0.
7518 (__do_niscall2, __prepare_niscall): Adjust callers.
7519 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
7520 ckey_cache_euid, ckey_cache_lock): New variables.
7521 (get_ckey): New function.
7522 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
7523 __pmap_getnisport. Save __pmap_getnisport result in
7524 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
7526 * nis/nis_lookup.c (nis_lookup): Likewise.
7527 * nis/nis_table.c (nis_list): Likewise.
7528 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
7531 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
7532 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
7533 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
7534 _nss_nisplus_getservbyport_r): Likewise.
7535 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
7536 _nss_nisplus_getnetbyaddr_r): Likewise.
7537 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
7538 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
7539 _nss_nisplus_getntohost_r): Likewise.
7540 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
7541 _nss_nisplus_getrpcbynumber_r): Likewise.
7543 2007-03-20 Jakub Jelinek <jakub@redhat.com>
7545 * configure.in (libc_cv_gnu89_inline): Only do compile test.
7546 * configure: Rebuilt.
7548 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
7550 * soft-fp/extended.h (_FP_UNION_E): Likewise.
7552 2006-06-07 Joseph Myers <joseph@codesourcery.com>
7555 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
7558 2007-03-18 Jakub Jelinek <jakub@redhat.com>
7560 * nscd/gai.c: Include alloca.h.
7561 (__libc_use_alloca): Define.
7563 2007-03-16 Jakub Jelinek <jakub@redhat.com>
7565 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
7567 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
7568 (DL_DST_REQUIRED): Adjust user.
7570 * include/dlfcn.h (struct link_map): New forward decl.
7572 * inet/getnameinfo.c: Include stddef.h.
7573 (getnameinfo): Use offsetof.
7575 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
7577 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
7579 * string/strerror_l.c: Include stdlib.h.
7581 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
7582 * config.make.in (gnu89-inline-CFLAGS): New variable.
7583 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
7585 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
7586 * argp/argp.h: Use it.
7587 * bits/mathinline.h: Likewise.
7588 * bits/sigset.h: Likewise.
7589 * bits/string.h: Likewise.
7590 * ctype/ctype.h: Likewise.
7591 * hurd/hurd.h: Likewise.
7592 * hurd/hurd/fd.h: Likewise.
7593 * hurd/hurd/port.h: Likewise.
7594 * hurd/hurd/signal.h: Likewise.
7595 * hurd/hurd/threadvar.h: Likewise.
7596 * hurd/hurd/userlink.h: Likewise.
7597 * io/sys/stat.h: Likewise.
7598 * libio/bits/stdio.h: Likewise.
7599 * libio/bits/stdio2.h: Likewise.
7600 * mach/lock-intern.h: Likewise.
7601 * mach/mach/mig_support.h: Likewise.
7602 * math/bits/cmathcalls.h: Likewise.
7603 * posix/bits/unistd.h: Likewise.
7604 * socket/bits/socket2.h: Likewise.
7605 * stdlib/bits/stdlib.h: Likewise.
7606 * stdlib/stdlib.h: Likewise.
7607 * string/argz.h: Likewise.
7608 * string/bits/string2.h: Likewise.
7609 * string/bits/string3.h: Likewise.
7610 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
7611 * sysdeps/generic/inttypes.h: Likewise.
7612 * sysdeps/generic/machine-lock.h: Likewise.
7613 * sysdeps/generic/machine-sp.h: Likewise.
7614 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7615 * sysdeps/i386/i486/bits/string.h: Likewise.
7616 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
7617 * sysdeps/mach/alpha/machine-lock.h: Likewise.
7618 * sysdeps/mach/alpha/machine-sp.h: Likewise.
7619 * sysdeps/mach/i386/machine-lock.h: Likewise.
7620 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7621 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
7622 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7623 * sysdeps/s390/bits/string.h: Likewise.
7624 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
7625 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7626 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7627 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
7628 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7629 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
7630 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
7631 * wcsmbs/bits/wchar2.h: Likewise.
7632 * wcsmbs/wchar.h: Likewise.
7633 * stdlib/gmp.h: Likewise. Include <features.h> to get
7634 __extern_inline definition.
7636 2007-03-15 Jakub Jelinek <jakub@redhat.com>
7638 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
7642 * math/libm-test.inc (log_test): Test -Inf and NaN.
7643 (log10_test, log1p_test, log2_test): Test -Inf.
7644 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
7645 FE_INVALID when argument is qNaN.
7646 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
7647 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
7648 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7649 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
7650 andb $1, %ah with testb $1, %ah, don't test for parity, instead
7651 testb $4, %ah and jump if non-zero.
7652 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
7653 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
7656 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
7657 ancestors with the same depths.
7658 Patch by Niels Moeller <nisse@lysator.liu.se>.
7659 (filter_doc): Don't crash if argp is NULL.
7660 * argp/Makefile (tests): Add tst-argp2.
7661 * argp/tst-argp2.c: New test.
7664 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
7666 (updwtmp_file): Likewise.
7669 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
7670 (inet6_opt_append): Don't check extlen is big enough if extbuf
7672 (inet6_opt_finish): Likewise.
7673 * inet/Makefile (tests): Add test-inet6_opt.
7674 * inet/test-inet6_opt.c: New test.
7676 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
7677 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
7678 NLMSG_ERR. Instead use a page sized buffer.
7679 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
7682 2007-03-14 Richard Henderson <rth@redhat.com>
7684 * sysdeps/alpha/fpu/s_llround.c: New file.
7685 * sysdeps/alpha/fpu/s_llroundf.c: New file.
7686 * sysdeps/alpha/fpu/s_lround.c: New file.
7687 * sysdeps/alpha/fpu/s_lroundf.c: New file.
7688 * sysdeps/alpha/fpu/s_round.c: New file.
7689 * sysdeps/alpha/fpu/s_roundf.c: New file.
7690 * sysdeps/alpha/fpu/s_trunc.c: New file.
7691 * sysdeps/alpha/fpu/s_truncf.c: New file.
7693 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
7694 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
7695 * sysdeps/alpha/fpu/s_floor.c: Likewise.
7696 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
7697 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7698 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7700 * sysdeps/alpha/fpu/s_fmax.S: New file.
7701 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
7702 * sysdeps/alpha/fpu/s_fmin.S: New file.
7703 * sysdeps/alpha/fpu/s_fminf.S: New file.
7704 * sysdeps/alpha/fpu/s_isnan.c: New file.
7705 * sysdeps/alpha/fpu/s_isnanf.c: New file.
7706 * sysdeps/alpha/fpu/s_llrint.c: New file.
7707 * sysdeps/alpha/fpu/s_llrintf.c: New file.
7708 * sysdeps/alpha/fpu/s_lrint.c: New file.
7709 * sysdeps/alpha/fpu/s_lrintf.c: New file.
7710 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
7711 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
7713 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
7714 (__fdimf, fdimf, __fdim, fdim): Remove.
7715 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
7716 (__isnanf, __isnan, __isnanl): New.
7718 2007-03-13 Richard Henderson <rth@redhat.com>
7720 * sysdeps/ieee754/ldbl-128/Makefile: New file.
7722 2007-03-13 Richard Henderson <rth@redhat.com>
7724 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
7725 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
7726 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
7727 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
7728 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
7729 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
7731 2007-03-13 Richard Henderson <rth@redhat.com>
7733 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
7734 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
7735 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
7736 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
7737 Move to dl-auxv.h; initialize instead of extern weak.
7738 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
7740 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
7741 Extern instead of initialized.
7743 2007-03-13 Richard Henderson <rth@redhat.com>
7745 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
7746 __sigsuspend_nocancel.
7748 2007-03-06 Ulrich Drepper <drepper@redhat.com>
7750 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
7751 172.16/12 address range.
7753 2007-03-02 Jakub Jelinek <jakub@redhat.com>
7755 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
7756 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
7759 2007-03-01 Jakub Jelinek <jakub@redhat.com>
7762 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
7764 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
7766 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
7767 for x qNaN and y either +-inf or non-integer value.
7768 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
7769 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
7770 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7772 2007-02-10 Mike Frysinger <vapier@gentoo.org>
7774 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
7775 from sysdep_headers.
7777 2007-02-28 Jakub Jelinek <jakub@redhat.com>
7779 * time/tzfile.c (find_transition): Instead of a linear search try to
7780 guess the transition index, use a linear search if the result is at
7781 most 10 transitions away from the guess or binary search otherwise.
7783 2007-02-27 Jakub Jelinek <jakub@redhat.com>
7785 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
7786 memory reallocation.
7788 2007-02-21 Ulrich Drepper <drepper@redhat.com>
7790 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
7792 Optimize use of TOLOWER.
7795 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
7796 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7797 * sysdeps/i386/fpu/e_fmod.S: Likewise.
7800 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
7801 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
7804 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
7805 (open_dir_stream): Likewise.
7806 * io/Makefile (tests): Add bug-ftw5.
7807 * io/bug-ftw5.c: New file.
7809 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
7810 * nscd/servicescache.c (cache_addserv): Likewise.
7812 * nscd/grpcache.c (cache_addgr): In case a record changed on
7813 refresh, adjust key_copy.
7816 * nscd/pwdcache.c (cache_addpw): In case a record changed on
7817 refresh, adjust key_copy.
7820 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
7822 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
7824 2007-02-19 Ulrich Drepper <drepper@redhat.com>
7826 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
7829 * stdio-common/vfscanf.c: Small cleanups throughout.
7831 2007-02-18 Ulrich Drepper <drepper@redhat.com>
7834 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
7835 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
7836 * sysdeps/i386/fpu/e_fmod.S: Likewise.
7837 Patch by Jared Casper <jaredcasper@gmail.com>.
7839 * sysdeps/unix/closedir.c: Outside libc don't use locking.
7840 * sysdeps/unix/opendir.c: Likewise.
7841 * sysdeps/unix/readdir.c: Likewise.
7844 * stdio-common/vfscanf.c: Handle localized digits etc for floating
7846 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
7848 * stdio-common/vfscanf.c: Fix problems in width accounting.
7849 * stdio-common/tst-sscanf.c (double_tests): New tests.
7850 (main): Hook them up.
7852 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
7853 More simplifications of floating-point reader.
7855 * stdio-common/Makefile (tests): Add tst-swscanf.
7856 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
7858 * stdio-common/tst-swscanf.c: New file.
7860 2007-02-17 Ulrich Drepper <drepper@redhat.com>
7863 * libio/stdio.h: Define struct _IO_FILE in global namespace.
7864 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
7865 Remove using for __jmp_buf_tag.
7866 * locale/locale.h (struct lconv): Also define in std namespace.
7867 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
7870 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
7871 using __libc_enable_secure.
7874 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
7877 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
7878 of names for ellipsises.
7881 * malloc/memusage.sh: Cleanups.
7882 * debug/xtrace.sh: Quoting and trap changes.
7884 2007-02-16 Ulrich Drepper <drepper@redhat.com>
7886 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
7888 * locale/iso-3166.def: Update entry for Serbia.
7889 * locale/iso-4217.def: Define RSD, remove CSD.
7891 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
7892 and 64-bit operations.
7895 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
7898 * nscd/nscd.c (parse_opt): One more conversion to use send instead
7901 2007-02-15 Ulrich Drepper <drepper@redhat.com>
7904 * assert/assert.h (assert): Simplify.
7905 (assert_perror): Likewise.
7906 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
7908 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
7911 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
7912 change: don't pass NULL in place of an integer.
7914 2007-02-02 Bruno Haible <bruno@clisp.org>
7917 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
7918 Add mapping for U+327E.
7919 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
7920 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7921 mapping of 0xD9 0xE8.
7922 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
7924 Reported by Jungshik Shin <jungshik@google.com>.
7927 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
7928 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
7929 Reported by Jungshik Shin <jungshik@google.com>.
7931 2007-02-14 Ulrich Drepper <drepper@redhat.com>
7933 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
7937 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
7938 byte variants. Patch mostly be tom@tommay.net.
7940 2007-02-14 Jakub Jelinek <jakub@redhat.com>
7943 * posix/glob.c (attribute_hidden): Define if not defined.
7944 (glob): Unescape dirname, filename or username when needed and not
7945 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
7946 is NULL. Handle unescaped [ in pattern without closing ].
7947 Don't pass GLOB_CHECK down to recursive glob for directories.
7948 (__glob_pattern_type): New function.
7949 (__glob_pattern_p): Implement using __glob_pattern_type.
7950 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7951 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7952 Remove unreachable code.
7953 * posix/globtest.sh: Add a couple of new tests.
7955 2007-02-13 Ulrich Drepper <drepper@redhat.com>
7957 * po/ru.po: Update from translation team.
7959 2007-02-12 Jakub Jelinek <jakub@redhat.com>
7961 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
7962 to the list of i486+ CPUs.
7963 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7965 2007-02-12 Ulrich Drepper <drepper@redhat.com>
7967 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
7968 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
7971 2007-02-09 Ulrich Drepper <drepper@redhat.com>
7973 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
7975 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
7976 * resolv/res_mkquery.c: Define __res_nopt.
7977 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
7978 try adding EDNS0 record.
7979 * resolv/res_send.c (send_dg): If request failed with FORMERR and
7980 EDNS0 record was send make sure we don't try it again.
7981 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
7982 * include/resolv.h: Declare __res_nopt.
7984 2007-02-08 Jakub Jelinek <jakub@redhat.com>
7987 * time/strptime_l.c (__strptime_internal): Set have_mon for
7988 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
7989 have been computed from tm_yday and tm_year. Don't crash
7990 in day_of_the_week or day_of_the_year if not have_mon
7991 and tm_mon contains bogus value.
7992 * time/Makefile (tests): Add tst-strptime3.
7993 * time/tst-strptime3.c: New test.
7995 2007-02-05 Jakub Jelinek <jakub@redhat.com>
7998 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7999 bit for RE_HAT_LISTS_NOT_NEWLINE.
8000 (build_charclass_op): Remove bogus comment.
8001 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8002 * posix/bug-regex27.c: New test.
8003 * posix/bug-regex28.c: New test.
8005 2007-02-03 Ulrich Drepper <drepper@redhat.com>
8007 * po/sv.po: Update from translation team.
8009 2007-02-02 Ulrich Drepper <drepper@redhat.com>
8011 * nscd/nscd_helper.c (open_socket): Minor size optimization.
8013 2007-02-02 Jakub Jelinek <jakub@redhat.com>
8015 * include/locale.h (__uselocale): Add libc_hidden_proto.
8016 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8018 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8021 2007-02-01 Ulrich Drepper <drepper@redhat.com>
8023 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8025 (PTR_DEMANGLE): Real definition now that it's not the same as
8027 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8029 * string/strerror_l.c: New file.
8030 * string/Makefile (routines): Add strerror_l.
8031 * string/string.h: Declare strerror_l.
8032 * string/Versions: Export strerror_l for GLIBC_2.6.
8034 2007-01-31 Ulrich Drepper <drepper@redhat.com>
8036 * nscd/nscd_helper.c (open_socket): Now takes request type and key
8037 as parameter. Construct request record. Try sending request
8038 before the first poll use, it usually succeeds. Adjust all
8040 * nscd/nscd-client.h: Define MAXKEYLEN.
8041 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
8043 2007-01-31 Jakub Jelinek <jakub@redhat.com>
8045 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
8047 * nscd/nscd_helper.c: Include string.h.
8048 (__nscd_cache_search): Remove const qualifier from return value.
8049 On strict alignment architectures check hash entry and data head
8051 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
8052 mmapped data during GC cycle contains garbage. If
8053 __nscd_drop_map_ref fails, decrement mapped->counter when returning
8054 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
8056 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8057 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8058 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8059 * nscd/nscd_getai.c (__nscd_getai): Likewise.
8060 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8062 2007-01-30 Ulrich Drepper <drepper@redhat.com>
8064 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
8066 2007-01-26 Ulrich Drepper <drepper@redhat.com>
8068 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
8069 names not numbers in cfi_*.
8071 2007-01-26 Andreas Jaeger <aj@suse.de>
8073 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
8074 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
8075 Correct values of PER_HPUX and PER_OSF4.
8077 2007-01-24 Ulrich Drepper <drepper@redhat.com>
8079 * elf/dl-minimal.c: Undefine _itoa first.
8080 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
8081 * malloc/mtrace.c: Revert last change.
8082 * posix/wordexp.c: Likewise.
8084 2007-01-24 Jakub Jelinek <jakub@redhat.com>
8086 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
8087 and __geode__ to the list of i486+ CPUs.
8088 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8090 2007-01-23 Ulrich Drepper <drepper@redhat.com>
8092 * stdio-common/_itoa.c: Include <limits.h>.
8093 * stdio-common/_itowa.c: Likewise.
8095 2007-01-22 Ulrich Drepper <drepper@redhat.com>
8097 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
8099 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
8101 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
8103 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
8107 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
8108 * stdio-common/Makefile (tests): Add bug17.
8109 * stdio-common/bug17.c: New file.
8111 2007-01-19 Ulrich Drepper <drepper@redhat.com>
8113 * iconvdata/brf.c: New file.
8114 * iconvdata/testdata/BRF: New file.
8115 * iconvdata/testdata/BRF..UTF8: New file.
8116 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8117 * iconvdata/Makefile: Add rules to build BRF.
8118 * iconvdata/TESTS: Add BRF entry.
8119 * iconvdata/gconv-modules: Likewise.
8120 * iconvdata/tst-tables.sh: Likewise.
8122 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
8124 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
8125 type `long long int', not `long int'.
8128 2007-01-18 Ulrich Drepper <drepper@redhat.com>
8130 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
8131 of values on 64-bit platforms which are too large.
8133 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
8134 Joe Kerian <jkerian@us.us.ibm.com>
8137 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
8138 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
8139 (__copysignl): Use signbit() for comparison.
8140 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
8141 SET_LDOUBLE_WORDS64.
8144 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
8145 (__ceill): Remove calls to fegetround(), fesetround().
8146 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8147 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8148 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8150 2007-01-17 Jakub Jelinek <jakub@redhat.com>
8152 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
8154 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
8156 2007-01-17 Ulrich Drepper <drepper@redhat.com>
8158 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
8160 * csu/libc-start.c: Likewise.
8162 2007-01-16 Ulrich Drepper <drepper@redhat.com>
8164 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
8167 2007-01-15 Ulrich Drepper <drepper@redhat.com>
8169 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
8171 (handle_request): Remove unnecessary tests.
8173 * nscd/cache.c (cache_add): Record the failure to add to the cache.
8175 2007-01-15 Jakub Jelinek <jakub@redhat.com>
8177 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
8178 workbits in semi-raw fraction.
8180 * math/test-misc.c: Add new tests.
8182 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
8184 * math/basic-test.c: Include test-skeleton.c.
8185 (TEST_TRUNC): Define.
8186 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
8187 (main): Rename to ...
8188 (do_test): ...this. Run new tests.
8189 (TEST_FUNCTION): Define.
8191 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
8192 Joe Kerian <jkerian@us.us.ibm.com>
8195 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
8196 handling for high words.
8197 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
8198 and overflow for infinity.
8200 2007-01-15 Ulrich Drepper <drepper@redhat.com>
8202 * nscd/connections.c (handle_request): Add a __builtin_expect.
8204 * nscd/connections.c (serv2db): Change type into structure which
8205 also says whether this is a request for data. Renamed to
8206 servinfo. All users changed.
8207 (handle_request): Much simpler test whether we should search the cache.
8209 * nscd/connections.c (handle_request): Fix thinko in selinux test
8212 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
8213 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
8214 it before getting dl_load_lock and then relock.
8215 (_dl_lookup_symbol_x): Pass flags to add_dependency.
8216 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
8217 case we unlocked the scope.
8218 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
8219 _dl_lookup_symbol_x in case we locked the scope.
8220 (_dl_profile_fixup): Likewise.
8221 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
8222 set DL_LOOKUP_SCOPE_LOCK.
8224 2007-01-13 Ulrich Drepper <drepper@redhat.com>
8226 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
8227 CFLAGS-getsrvbynpt_r.c.
8228 * nscd/getsrvbynm_r.c: New file.
8229 * nscd/getsrvbypt_r.c: New file.
8230 * nscd/nscd_getserv_r.c: New file.
8231 * nscd/servicescache.c: New file.
8232 * nscd/Makefile (routines): Add nscd_getserv_r.
8233 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
8234 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
8235 CFLAGS-getsrvbypt_r.c.
8236 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
8237 table. Add entries for services database.
8238 * nscd/connections.c (serv2str): Mark as const. Add entries for
8240 (dbs): Add .reset_res and servdb initialization.
8241 (serv2db): Add entries for services database.
8242 (verify_persistent_db): Accept dbnr == servdb.
8243 (invalidate_cache): Rewrite database name recognition to use a table.
8244 Call res_init() if .reset_res is set for database.
8245 (handle_request): Add code to handle services database.
8246 * nscd/gai.c: Don't define __getservbyname_r.
8247 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
8248 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
8249 (serv_response_header): Define.
8250 (struct datahead): Add serv_response_header member.
8251 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
8253 * nscd/nscd.conf: Add entries for services database.
8254 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
8255 Declare serv_iov_disabled.
8256 Declare addservbyname, readdservbyname, addservbyport, and
8258 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
8259 (find_db): Fix error message.
8260 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
8261 __nscd_getservbyname_r, and __nscd_getservbyport_r.
8262 * nscd/selinux.c (perms): Add entries for services database.
8263 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
8264 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
8266 * nscd/grpcache.c: Remove obsolete code. Cleanups.
8267 * nscd/hstcache.c: Likewise.
8268 * nscd/pwdcache.c: Likewise.
8270 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
8271 computation of keylen.
8273 * include/string.h: Only redefine strndupa if this is really for
8276 2007-01-12 Ulrich Drepper <drepper@redhat.com>
8278 * nscd/nscd_gethst_r.c: Minor cleanups.
8280 * nscd/connections.c (handle_request): Check selinux permissions
8281 for all non-admin commands.
8283 * sysdeps/i386/i486/bits/atomic.h: Define
8284 atomic_compare_and_exchange_val_acq,
8285 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
8286 using __sync_* built-ins for gcc >= 4.1.
8287 * sysdeps/x86_64/bits/atomic.h: Likewise.
8290 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
8293 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
8295 * stdlib/tst-makecontext.c: Include errno.h. Change main()
8296 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
8297 (do_test): Check errno and exit(0) if ENOSYS.
8299 2007-01-11 Jakub Jelinek <jakub@redhat.com>
8301 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
8302 thousands separators.
8303 * stdlib/Makefile: Add rules to build and run tst-strtod4.
8304 * stdlib/tst-strtod4.c: New test.
8307 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
8308 hexadecimal digit should accept just the initial 0.
8309 * stdlib/tst-strtod2.c (tests): New variable.
8310 (do_test): Run several tests rather than just one.
8312 2007-01-11 Jakub Jelinek <jakub@redhat.com>
8314 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
8315 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
8317 2007-01-10 Ulrich Drepper <drepper@redhat.com>
8319 * io/fts.c: Make sure fts_cur is always valid after return from
8321 Patch by Miloslav Trmac <mitr@redhat.com>.
8323 2006-10-27 Richard Sandiford <richard@codesourcery.com>
8325 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
8326 (R_MIPS_NUM): Bump by 1.
8328 2007-01-03 Jakub Jelinek <jakub@redhat.com>
8330 * posix/execvp.c: Include alloca.h.
8331 (allocate_scripts_argv): Renamed to...
8332 (scripts_argv): ... this. Don't allocate buffer here nor count
8334 (execvp): Use alloca if possible.
8335 * posix/Makefile: Add rules to build and run tst-vfork3 test.
8336 * posix/tst-vfork3.c: New test.
8338 2007-01-03 Ulrich Drepper <drepper@redhat.com>
8340 * string/Makefile (tst-strxfrm2-ENV): Define.
8341 * stdlib/Makefile (tst-strtod3-ENV): Define.
8343 2007-01-02 Ulrich Drepper <drepper@redhat.com>
8345 * posix/getconf.c: Update copyright year.
8346 * nss/getent.c: Likewise.
8347 * iconv/iconvconfig.c: Likewise.
8348 * iconv/iconv_prog.c: Likewise.
8349 * elf/ldconfig.c: Likewise.
8350 * catgets/gencat.c: Likewise.
8351 * csu/version.c: Likewise.
8352 * elf/ldd.bash.in: Likewise.
8353 * elf/sprof.c (print_version): Likewise.
8354 * locale/programs/locale.c: Likewise.
8355 * locale/programs/localedef.c: Likewise.
8356 * nscd/nscd.c (print_version): Likewise.
8357 * debug/xtrace.sh: Likewise.
8358 * malloc/memusage.sh: Likewise.
8359 * malloc/mtrace.pl: Likewise.
8360 * debug/catchsegv.sh: Likewise.
8362 2006-12-24 Ulrich Drepper <drepper@redhat.com>
8364 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
8367 2006-12-23 Ulrich Drepper <drepper@redhat.com>
8369 * posix/wordexp.c: Remove some unnecessary tests.
8371 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
8373 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
8374 blacklist the group till after we look it up.
8376 2006-12-21 Ulrich Drepper <drepper@redhat.com>
8378 * include/atomic.h (atomic_forced_read): New macro.
8380 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
8382 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
8384 2006-12-19 Jakub Jelinek <jakub@redhat.com>
8386 * nss/getXXbyYY_r.c: Include atomic.h.
8387 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
8388 add atomic_write_barrier () in between.
8390 * stdlib/Makefile (tests): Add tst-makecontext.
8391 * stdlib/tst-makecontext.c: New test.
8393 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
8394 (__makecontext): Don't realign uc_mcontext.uc_regs.
8396 2006-11-28 Jakub Jelinek <jakub@redhat.com>
8398 * elf/dl-support.c: Include dl-procinfo.h.
8399 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
8400 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
8401 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
8403 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
8404 hardcoded constants.
8405 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
8406 PPC_PLATFORM_* macros for array designators.
8408 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
8410 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
8411 names to the beginning.
8412 (_dl_powerpc_platforms): Add "power6x".
8413 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8414 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
8415 (_DL_PLATFORMS_COUNT): Increase.
8416 (_dl_string_platform): Handle power6x case.
8417 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
8418 PPC_FEATURE_POWER6_EXT): Define.
8419 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
8421 2006-12-18 Jakub Jelinek <jakub@redhat.com>
8424 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
8425 [-2^31 .. 2^31) range.
8426 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
8428 * stdlib/tst-rand48-2.c: New test.
8429 * stdlib/Makefile (tests): Add tst-rand48-2.
8431 2006-12-14 Jakub Jelinek <jakub@redhat.com>
8433 * misc/tst-pselect.c (do_test): Fix sigblock argument.
8435 2006-12-14 Ulrich Drepper <drepper@redhat.com>
8437 * misc/tst-pselect.c (do_test): Make sure the helper process is
8438 terminating when the test is aborted.
8440 2006-12-13 Ulrich Drepper <drepper@redhat.com>
8442 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
8443 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8444 Handle relatime mount option.
8447 * libio/Makefile (tests): Add tst-setvbuf1.
8448 * libio/tst-setvbuf1.c: New file.
8450 2006-12-08 Jakub Jelinek <jakub@redhat.com>
8453 * libio/genops.c (__uflow): Fix a typo.
8454 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
8455 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
8456 the narrow buffer size.
8458 2006-11-24 Jakub Jelinek <jakub@redhat.com>
8461 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
8462 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
8463 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
8465 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
8466 _IO_wstr_finish): Likewise.
8467 * libio/wmemstream.c (open_wmemstream): Likewise.
8468 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
8469 even for wide streams.
8471 2006-12-13 Jakub Jelinek <jakub@redhat.com>
8473 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
8476 2006-12-11 Ulrich Drepper <drepper@redhat.com>
8478 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
8479 separators also if no non-zero digits found.
8480 * stdlib/Makefile (tests): Add tst-strtod3.
8482 2006-12-09 Ulrich Drepper <drepper@redhat.com>
8485 * include/features.h: Fix comment about default value for
8489 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
8490 empty parsed strings.
8491 * stdlib/Makefile (tests): Add tst-strtod2.
8492 * stdlib/tst-strtod2.c: New file.
8495 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
8497 * stdlib/Makefile (tests): Add tst-atof2.
8498 * stdlib/tst-atof2.c: New file.
8501 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
8502 correctly if removing trailing zero of hex-float.
8503 * stdlib/Makefile (tests): Add tst-atof1.
8504 * stdlib/tst-atof1.c: New file.
8506 2006-12-09 Jakub Jelinek <jakub@redhat.com>
8508 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
8509 Start searching for next comma at p rather than rest.
8510 * misc/Makefile (tests): Add tst-mntent2.
8511 * misc/tst-mntent2.c: New test.
8513 * misc/getusershell.c (initshells): Check for integer overflows.
8514 Make strings buffer one bigger as fgets always succeeds when second
8515 argument is 1. Don't use calloc for shells array. Disallow
8518 2006-12-08 Ulrich Drepper <drepper@redhat.com>
8520 * malloc/memusage.c: Handle realloc with new size of zero and
8521 non-NULL pointer correctly.
8522 (me): Really write first record twice.
8523 (struct entry): Make format bi-arch safe.
8524 (dest): Write out more realloc statistics.
8525 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
8527 2006-12-05 Jakub Jelinek <jakub@redhat.com>
8529 * nis/nis_subr.c (nis_getnames): Revert last change.
8531 2006-12-04 Jakub Jelinek <jakub@redhat.com>
8533 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
8534 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
8535 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
8536 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
8538 * io/Makefile: Add rules to build and run tst-ttyname_r test.
8539 * io/tst-ttyname_r.c: New test.
8541 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8543 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
8545 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
8547 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
8550 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
8552 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
8553 `clone' function to ensure proper unwinding stop of gdb.
8554 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8556 2006-12-01 Ulrich Drepper <drepper@redhat.com>
8558 * nscd/nscd.init: Remove obsolete and commented-out -S option
8561 2006-11-23 Jakub Jelinek <jakub@redhat.com>
8564 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
8567 * manual/string.texi (strtok): Remove duplicate paragraph.
8569 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8571 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
8572 libgcc not supporting `rflags' unwinding (register # >= 17).
8574 2006-11-30 Jakub Jelinek <jakub@redhat.com>
8576 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
8579 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
8580 Jakub Jelinek <jakub@redhat.com>
8581 Jan Kratochvil <jan.kratochvil@redhat.com>
8583 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
8585 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
8586 'restore_rt' even in the 'signal' directory.
8587 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
8589 2006-11-27 Jakub Jelinek <jakub@redhat.com>
8592 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
8593 malloc crashed. Don't allocate memory unnecessarily in each
8596 2006-10-21 Jakub Jelinek <jakub@redhat.com>
8598 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
8600 2006-11-20 Ulrich Drepper <drepper@redhat.com>
8602 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
8604 2006-11-18 Bruno Haible <bruno@clisp.org>
8606 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
8607 __sysconf only after having tried to call getgroups32.
8609 2006-11-19 Ulrich Drepper <drepper@redhat.com>
8611 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
8612 addresses for IPv4 queries if they can be mapped.
8614 2006-11-16 Jakub Jelinek <jakub@redhat.com>
8616 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
8617 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
8618 (signmask): Add .size directive.
8619 (othermask): Add .type directive.
8621 2006-11-14 Ulrich Drepper <drepper@redhat.com>
8623 * po/nl.po: Update from translation team.
8625 * timezone/zdump.c: Redo fix for BZ #3137.
8627 2006-11-14 Jakub Jelinek <jakub@redhat.com>
8629 * nss/nss_files/files-alias.c (get_next_alias): Set line back
8630 to first_unused after parsing :include: file.
8632 2006-11-10 Ulrich Drepper <drepper@redhat.com>
8634 * timezone/africa: Update from tzdata2006o.
8635 * timezone/antarctica: Likewise.
8636 * timezone/asia: Likewise.
8637 * timezone/australasia: Likewise.
8638 * timezone/backward: Likewise.
8639 * timezone/europe: Likewise.
8640 * timezone/iso3166.tab: Likewise.
8641 * timezone/northamerica: Likewise.
8642 * timezone/southamerica: Likewise.
8643 * timezone/zone.tab: Likewise.
8645 * time/tzfile.c (__tzfile_read): Extend to handle new file format
8646 on machines with 64-bit time_t.
8648 * timezone/checktab.awk: Update from tzcode2006o.
8649 * timezone/ialloc.c: Likewise.
8650 * timezone/private.h: Likewise.
8651 * timezone/scheck.c: Likewise.
8652 * timezone/tzfile.h: Likewise.
8653 * timezone/tzselect.ksh: Likewise.
8654 * timezone/zdump.c: Likewise.
8655 * timezone/zic.c: Likewise.
8658 * elf/ldconfig.c (main): Call setlocale and textdomain.
8659 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8662 * manual/argp.texi: Fix typos.
8663 * manual/charset.texi: Likewise.
8664 * manual/errno.texi: Likewise.
8665 * manual/filesys.texi: Likewise.
8666 * manual/lang.texi: Likewise.
8667 * manual/maint.texi: Likewise.
8668 * manual/memory.texi: Likewise.
8669 * manual/message.texi: Likewise.
8670 * manual/resource.texi: Likewise.
8671 * manual/search.texi: Likewise.
8672 * manual/signal.texi: Likewise.
8673 * manual/startup.texi: Likewise.
8674 * manual/stdio.texi: Likewise.
8675 * manual/sysinfo.texi: Likewise.
8676 * manual/syslog.texi: Likewise.
8677 * manual/time.texi: Likewise.
8678 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8681 * sunrpc/clnt_raw.c: Minimal message improvements.
8682 * sunrpc/pm_getmaps.c: Likewise.
8683 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
8684 * nis/nis_print_group_entry.c: Likewise.
8685 * locale/programs/repertoire.c: Likewise.
8686 * locale/programs/charmap.c: Likewise.
8687 * malloc/memusage.sh: Likewise.
8688 * elf/dl-deps.c: Likewise.
8689 * locale/programs/ld-collate.c: Likewise.
8690 * libio/vswprintf.c: Likewise.
8691 * malloc/memusagestat.c: Likewise.
8692 * sunrpc/auth_unix.c: Likewise.
8693 * sunrpc/rpc_main.c: Likewise.
8694 * nscd/cache.c: Likewise.
8695 * locale/programs/repertoire.c: Unify output messages.
8696 * locale/programs/charmap.c: Likewise.
8697 * locale/programs/ld-ctype.c: Likewise.
8698 * locale/programs/ld-monetary.c: Likewise.
8699 * locale/programs/ld-numeric.c: Likewise.
8700 * locale/programs/ld-time.c: Likewise.
8701 * elf/ldconfig.c: Likewise.
8702 * nscd/selinux.c: Likewise.
8703 * elf/cache.c: Likewise.
8704 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
8707 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
8711 2006-11-10 Jakub Jelinek <jakub@redhat.com>
8713 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
8714 if N is one bigger than return value.
8715 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
8716 and l1 last arguments, if buf is defined, verify the return value
8717 equals to strlen (buf) and verify no byte beyond passed length
8720 2006-11-10 Ulrich Drepper <drepper@redhat.com>
8722 * po/sv.po: Update from translation team.
8724 2006-11-09 Ulrich Drepper <drepper@redhat.com>
8726 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
8729 2006-11-10 Jakub Jelinek <jakub@redhat.com>
8731 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
8734 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
8735 Use __new_sys_siglist instead of _sys_siglist_internal as
8736 second macro argument.
8737 (_old_sys_siglist): Use declare_symbol_alias macro instead of
8740 2006-11-09 Ulrich Drepper <drepper@redhat.com>
8743 * posix/unistd.h (sysconf): Remove const attribute.
8745 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
8746 temporary or deprecated addresses.
8747 Patch by Sridhar Samudrala <sri@us.ibm.com>.
8749 * string/Makefile (tests): Add tst-strxfrm2.
8750 * string/tst-strxfrm2.c: New file.
8752 2006-10-09 Jakub Jelinek <jakub@redhat.com>
8754 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
8755 rather than r->r_brk.
8757 2006-11-08 Jakub Jelinek <jakub@redhat.com>
8759 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
8760 optimization even if needed > n.
8762 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
8763 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
8764 return false, otherwise return true.
8765 (cache_rpath): Return decompose_rpath return value.
8767 2006-11-07 Jakub Jelinek <jakub@redhat.com>
8769 * include/libc-symbols.h (declare_symbol): Rename to...
8770 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
8771 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
8773 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
8775 * sysdeps/gnu/siglist.c: Likewise.
8777 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
8779 * sysdeps/powerpc/fpu/bits/mathinline.h
8780 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
8781 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
8783 2006-11-05 Ulrich Drepper <drepper@redhat.com>
8785 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
8786 Update handling of cache descriptor 0x49 for new models.
8787 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
8790 2006-11-02 Jakub Jelinek <jakub@redhat.com>
8792 * malloc/memusage.c (dest): Reset not_me back to false after
8793 printing statistics.
8795 2006-11-02 Ulrich Drepper <drepper@redhat.com>
8797 * configure.in: Work around ld --help change and avoid -z relro
8798 test completely if the architecture doesn't care about security.
8800 2006-11-01 Ulrich Drepper <drepper@redhat.com>
8802 * po/sv.po: Update from translation team.
8804 2006-10-31 Ulrich Drepper <drepper@redhat.com>
8806 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
8807 generate compatibility version.
8809 2006-10-29 Ulrich Drepper <drepper@redhat.com>
8811 * configure.in: Relax -z relro requirement a bit.
8813 * po/sv.po: Update from translation team.
8815 2006-10-29 Jakub Jelinek <jakub@redhat.com>
8817 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
8818 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8819 * elf/dl-close.c (_dl_close_worker): Likewise.
8820 * elf/dl-open.c (_dl_open_worker): Likewise.
8821 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
8823 2006-10-27 Ulrich Drepper <drepper@redhat.com>
8825 * configure.in: Require assembler support for visibility, compiler
8826 support for visibility and aliases, linker support for various -z
8828 * Makeconfig: Remove conditional code which now is unnecessary.
8829 * config.h.in: Likewise.
8830 * config.make.in: Likewise.
8831 * dlfcn/Makefile: Likewise.
8832 * elf/Makefile: Likewise.
8833 * elf/dl-load.c: Likewise.
8834 * elf/rtld.c: Likewise.
8835 * include/libc-symbols.h: Likewise.
8836 * include/stdio.h: Likewise.
8837 * io/Makefile: Likewise.
8838 * io/fstat.c: Likewise.
8839 * io/fstat64.c: Likewise.
8840 * io/fstatat.c: Likewise.
8841 * io/fstatat64.c: Likewise.
8842 * io/lstat.c: Likewise.
8843 * io/lstat64.c: Likewise.
8844 * io/mknod.c: Likewise.
8845 * io/mknodat.c: Likewise.
8846 * io/stat.c: Likewise.
8847 * io/stat64.c: Likewise.
8848 * libio/stdio.c: Likewise.
8849 * nscd/Makefile: Likewise.
8850 * stdlib/Makefile: Likewise.
8851 * stdlib/atexit.c: Likewise.
8852 * sysdeps/generic/ldsodefs.h: Likewise.
8853 * sysdeps/i386/dl-machine.h: Likewise.
8854 * sysdeps/i386/sysdep.h: Likewise.
8855 * sysdeps/i386/i686/memcmp.S: Likewise.
8856 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8857 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8858 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8860 * Makerules: USE_TLS support is now default.
8861 * tls.make.c: Likewise.
8862 * csu/Versions: Likewise.
8863 * csu/libc-start.c: Likewise.
8864 * csu/libc-tls.c: Likewise.
8865 * csu/version.c: Likewise.
8866 * dlfcn/dlinfo.c: Likewise.
8867 * elf/dl-addr.c: Likewise.
8868 * elf/dl-cache.c: Likewise.
8869 * elf/dl-close.c: Likewise.
8870 * elf/dl-iteratephdr.c: Likewise.
8871 * elf/dl-load.c: Likewise.
8872 * elf/dl-lookup.c: Likewise.
8873 * elf/dl-object.c: Likewise.
8874 * elf/dl-open.c: Likewise.
8875 * elf/dl-reloc.c: Likewise.
8876 * elf/dl-support.c: Likewise.
8877 * elf/dl-sym.c: Likewise.
8878 * elf/dl-sysdep.c: Likewise.
8879 * elf/dl-tls.c: Likewise.
8880 * elf/ldconfig.c: Likewise.
8881 * elf/rtld.c: Likewise.
8882 * elf/tst-tls-dlinfo.c: Likewise.
8883 * elf/tst-tls1.c: Likewise.
8884 * elf/tst-tls10.h: Likewise.
8885 * elf/tst-tls14.c: Likewise.
8886 * elf/tst-tls2.c: Likewise.
8887 * elf/tst-tls3.c: Likewise.
8888 * elf/tst-tls4.c: Likewise.
8889 * elf/tst-tls5.c: Likewise.
8890 * elf/tst-tls6.c: Likewise.
8891 * elf/tst-tls7.c: Likewise.
8892 * elf/tst-tls8.c: Likewise.
8893 * elf/tst-tls9.c: Likewise.
8894 * elf/tst-tlsmod1.c: Likewise.
8895 * elf/tst-tlsmod13.c: Likewise.
8896 * elf/tst-tlsmod13a.c: Likewise.
8897 * elf/tst-tlsmod14a.c: Likewise.
8898 * elf/tst-tlsmod2.c: Likewise.
8899 * elf/tst-tlsmod3.c: Likewise.
8900 * elf/tst-tlsmod4.c: Likewise.
8901 * elf/tst-tlsmod5.c: Likewise.
8902 * elf/tst-tlsmod6.c: Likewise.
8903 * include/errno.h: Likewise.
8904 * include/link.h: Likewise.
8905 * include/tls.h: Likewise.
8906 * locale/global-locale.c: Likewise.
8907 * locale/localeinfo.h: Likewise.
8908 * malloc/arena.c: Likewise.
8909 * malloc/hooks.c: Likewise.
8910 * malloc/malloc.c: Likewise.
8911 * resolv/Versions: Likewise.
8912 * sysdeps/alpha/dl-machine.h: Likewise.
8913 * sysdeps/alpha/libc-tls.c: Likewise.
8914 * sysdeps/generic/ldsodefs.h: Likewise.
8915 * sysdeps/generic/tls.h: Likewise.
8916 * sysdeps/i386/dl-machine.h: Likewise.
8917 * sysdeps/ia64/dl-machine.h: Likewise.
8918 * sysdeps/ia64/libc-tls.c: Likewise.
8919 * sysdeps/mach/hurd/fork.c: Likewise.
8920 * sysdeps/mach/hurd/i386/tls.h: Likewise.
8921 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
8922 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
8923 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8924 * sysdeps/s390/libc-tls.c: Likewise.
8925 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
8926 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
8927 * sysdeps/sh/dl-machine.h: Likewise.
8928 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
8929 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
8930 * sysdeps/x86_64/dl-machine.h: Likewise.
8932 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
8933 split out locking and parameter checking.
8934 (_dl_close): Call _dl_close_worker after locking and checking.
8935 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
8937 * elf/Makefile: Add rules to build and run tst-thrlock.
8938 * elf/tst-thrlock.c: New file.
8941 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
8945 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
8946 we are sure we do not need it anymore for _dl_close. Also move
8947 the asserts inside the lock region.
8948 Patch mostly by Suzuki <suzuki@in.ibm.com>.
8950 2006-10-27 Jakub Jelinek <jakub@redhat.com>
8952 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
8954 (_dl_lookup_symbol_x): Adjust caller.
8956 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
8958 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
8960 * elf/dl-libc.c: Revert l_scope name changes.
8961 * elf/dl-load.c: Likewise.
8962 * elf/dl-object.c: Likewise.
8963 * elf/rtld.c: Likewise.
8964 * elf/dl-close.c (_dl_close): Likewise.
8965 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
8966 always use __rtld_mrlock_{change,done}. Always free old scope list
8967 here if not l_scope_mem.
8968 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
8969 change. Never free scope list here. Just __rtld_mrlock_lock before
8970 the lookup and __rtld_mrlock_unlock it after the lookup.
8971 * elf/dl-sym.c: Likewise.
8972 * include/link.h (struct r_scoperec): Remove.
8973 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
8974 with l_scope_mem and l_scoperec_lock with l_scope_lock.
8976 2006-10-25 Ulrich Drepper <drepper@redhat.com>
8978 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
8980 2006-10-18 Ulrich Drepper <drepper@redhat.com>
8982 * configure.in: Disable building profile libraries by default.
8984 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8986 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8987 as signed longs, check for x_base + pos overflow.
8988 * sunrpc/Makefile (tests): Add tst-xdrmem2.
8989 * sunrpc/tst-xdrmem2.c: New test.
8991 2006-10-18 Ulrich Drepper <drepper@redhat.com>
8993 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8994 _dl_lookup_symbol_x code.
8996 2006-10-17 Jakub Jelinek <jakub@redhat.com>
8998 * elf/dl-runtime.c: Include sysdep-cancel.h.
8999 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9000 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
9001 instead of catomic_* macros.
9002 * elf/dl-sym.c: Include sysdep-cancel.h.
9003 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9004 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9005 * elf/dl-close.c: Include sysdep-cancel.h.
9006 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9007 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9008 * elf/dl-open.c: Include sysdep-cancel.h.
9009 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9010 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
9012 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9015 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9016 fastbin rather than end of fastbin array.
9018 2006-10-18 Ulrich Drepper <drepper@redhat.com>
9020 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9022 * sysdeps/x86_64/bits/atomic.h
9023 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9024 (catomic_decrement): Use correct body macro.
9026 2006-10-17 Jakub Jelinek <jakub@redhat.com>
9028 * include/atomic.h: Add a unique prefix to all local variables
9030 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9032 2006-10-16 Ulrich Drepper <drepper@redhat.com>
9035 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9038 2006-10-14 Ulrich Drepper <drepper@redhat.com>
9040 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
9042 2006-10-13 Ulrich Drepper <drepper@redhat.com>
9045 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
9046 determine highest fast bin to consolidate, always look into all of
9048 (do_check_malloc_state): Only require for empty bins for large
9049 sizes in main arena.
9051 * libio/stdio.h: Add more __wur attributes.
9053 * elf/dl-minimal.c (realloc): Optimize last patch.
9055 2006-10-12 Richard Sandiford <richard@codesourcery.com>
9058 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
9059 and use memcpy() if it does.
9061 2006-11-12 Andreas Jaeger <aj@suse.de>
9064 * manual/search.texi (Hash Search Function): Clarify.
9065 (Array Search Function): Clarify.
9067 2006-11-12 Joseph Myers <joseph@codesourcery.com>
9070 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
9072 * math/atest-exp2.c (read_mpn_hex): Likewise.
9073 * math/atest-sincos.c (main): Likewise.
9075 2006-10-11 Ulrich Drepper <drepper@redhat.com>
9077 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
9078 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
9079 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
9081 * Versions.def: Add GLIBC_2.6 for libc.
9083 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
9085 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
9087 2006-10-11 Jakub Jelinek <jakub@redhat.com>
9089 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
9091 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
9093 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
9094 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
9096 2006-10-11 Ulrich Drepper <drepper@redhat.com>
9098 * include/atomic.c: Define catomic_* operations.
9099 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
9100 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
9101 * malloc/memusage.c: Likewise.
9102 * gmon/mcount.c: Likewise.
9103 * elf/dl-close.c: Likewise.
9104 * elf/dl-open.c: Likewise.
9105 * elf/dl-profile.c: Likewise.
9106 * elf/dl-sym.c: Likewise.
9107 * elf/dl-runtime.c: Likewise.
9108 * elf/dl-fptr.c: Likewise.
9109 * resolv/res_libc.c: Likewise.
9111 2006-10-10 Ulrich Drepper <drepper@redhat.com>
9113 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
9114 components which lack them.
9116 * nis/nis_subr.c (nis_getnames): Make sure that we always return
9117 at least one entry consisting of the parameter concatenated with
9120 2006-10-10 Roland McGrath <roland@frob.com>
9122 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
9123 * sysdeps/mach/hurd/futimes.c: Likewise.
9124 * sysdeps/mach/hurd/lutimes.c: Likewise.
9126 2006-10-09 Ulrich Drepper <drepper@redhat.com>
9127 Jakub Jelinek <jakub@redhat.com>
9129 Implement reference counting of scope records.
9130 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
9131 from the list in objects which remain. Always allocate new scope
9133 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
9134 don't resize, allocate a new one.
9135 * elf/dl-runtime.c: Update reference counters before using a scope
9137 * elf/dl-sym.c: Likewise.
9138 * elf/dl-libc.c: Adjust for l_scope name change.
9139 * elf/dl-load.c: Likewise.
9140 * elf/dl-object.c: Likewise.
9141 * elf/rtld.c: Likewise.
9142 * include/link.h: Include <rtld-lowlevel.h>. Define struct
9143 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
9144 Add l_scoperec_lock.
9145 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
9146 * sysdeps/generic/rtld-lowlevel.h: New file.
9148 * include/atomic.h: Rename atomic_and to atomic_and_val and
9149 atomic_or to atomic_or_val. Define new macros atomic_and and
9150 atomic_or which do not return values.
9151 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
9153 * sysdeps/i386/i486/bits/atomic.h: Likewise.
9155 * po/sv.po: Update from translation team.
9157 2006-10-07 Ulrich Drepper <drepper@redhat.com>
9159 * Versions.def: Add GLIBC_2.6 to libpthread.
9161 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
9162 (versioned_symbol): Likewise.
9163 (compat_symbol): Likewise.
9165 * po/tr.po: Update from translation team.
9167 2006-10-06 Ulrich Drepper <drepper@redhat.com>
9169 * nis/Banner: Removed. It's been integral part forever and the
9170 author info is incomplete anyway.
9171 * libio/Banner: Likewise.
9173 * nis/nis_table.c (nis_list): If __follow_path fails in the new
9174 code, make sure the nis_freeresult call doesn't crash and that the
9175 result is reported correctly.
9177 2006-09-27 Jakub Jelinek <jakub@redhat.com>
9179 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
9180 when callback is NULL.
9182 * nis/Versions (libnss_nisplus): Add
9183 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
9184 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
9185 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
9186 _nss_create_tablename): Rename to...
9187 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
9188 ... these. No longer static.
9189 (internal_setgrent): Adjust users.
9190 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
9191 Don't use locking around _nss_grp_create_tablename call.
9192 * nis/nss_nisplus/nisplus-initgroups.c: New file.
9194 2006-10-06 Ulrich Drepper <drepper@redhat.com>
9196 * version.h (VERSION): Bump to 2.5.90 for new development tree.
9198 2006-10-06 Andreas Jaeger <aj@suse.de>
9200 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
9202 2006-10-06 Ulrich Drepper <drepper@redhat.com>
9204 * po/pl.po: Update from translation team.
9206 * nscd/nscd.c (main): Fix typo in message.
9207 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
9209 2006-10-02 Jakub Jelinek <jakub@redhat.com>
9212 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
9213 errno.h, signal.h, unistd.h and sysdep-cancel.h.
9214 (__sigprocmask): Define.
9216 2006-10-02 Ulrich Drepper <drepper@redhat.com>
9218 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
9221 2006-10-02 Jakub Jelinek <jakub@redhat.com>
9223 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
9224 in oldtotal and newtotal calculation.
9225 * nscd/nscd-client.h (struct mapped_database): Add datasize
9227 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
9228 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
9230 (__nscd_cache_search): Add checks to make sure we never reference
9231 data beyond the current mapping.
9233 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
9235 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
9236 variables const to avoid compiler warnings.
9238 * io/fts.c (fts_close): Remove redundant checks.
9239 (fts_build): Likewise.
9240 (fts_palloc): Likewise.
9242 * manual/message.texi (Advanced gettext functions,
9243 Using gettextized software): Fix typos.
9245 2006-09-30 Ulrich Drepper <drepper@redhat.com>
9247 * posix/glob.c (glob_in_dir): Add some comments and asserts to
9248 explain why there are no leaks.
9250 2006-09-29 Ulrich Drepper <drepper@redhat.com>
9252 * libio/wmemstream.c: Include <wchar.h>.
9253 * libio/bug-wmemstream1.c: Likewise.
9254 * libio/tst-wmemstream1.c: Likewise.
9255 * libio/tst-wmemstream2.c: Likewise.
9257 * version.h (RELEASE): Bump to 2.5.
9258 * README: Regenerated.
9260 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
9263 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
9264 found no group members.
9265 Patch by Petr Baudis.
9267 2006-09-29 Jakub Jelinek <jakub@redhat.com>
9269 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
9270 assert bootstrap_map.l_tls_modid is zero.
9271 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
9274 2006-09-27 Ulrich Drepper <drepper@redhat.com>
9276 * libio/stdio.h: Move open_wmemstream prototype to ...
9277 * wcsmbs/wchar.h: ... here.
9279 2006-09-25 Jakub Jelinek <jakub@redhat.com>
9282 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
9283 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
9284 __{,l}chown to handle the rest.
9285 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
9286 fchownat syscall and __ASSUME_32BITUIDS case inline, call
9287 __{,l}chown to handle the rest.
9288 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
9290 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
9291 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
9294 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9295 time, rather allocate increasingly bigger arrays of pointers, if
9296 possible with alloca, if too large with malloc.
9298 2006-09-24 Jakub Jelinek <jakub@redhat.com>
9300 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
9302 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
9304 2006-09-24 Ulrich Drepper <drepper@redhat.com>
9306 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
9308 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
9309 IFA_F_HOMEADDRESS flag for interfaces.
9310 * include/ifaddrs.h (struct in6addrinfo): Define
9313 2006-09-21 Jakub Jelinek <jakub@redhat.com>
9316 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
9317 PTR_DEMANGLE3): Define.
9318 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
9319 PTR_DEMANGLE3): Likewise.
9320 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
9321 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
9323 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
9325 2006-09-20 Jakub Jelinek <jakub@redhat.com>
9327 * po/libc.pot: Regenerated.
9328 * po/be.po: Updated.
9329 * po/ca.po: Likewise.
9330 * po/cs.po: Likewise.
9331 * po/da.po: Likewise.
9332 * po/de.po: Likewise.
9333 * po/el.po: Likewise.
9334 * po/en_GB.po: Likewise.
9335 * po/es.po: Likewise.
9336 * po/fi.po: Likewise.
9337 * po/fr.po: Likewise.
9338 * po/gl.po: Likewise.
9339 * po/hr.po: Likewise.
9340 * po/hu.po: Likewise.
9341 * po/ja.po: Likewise.
9342 * po/ko.po: Likewise.
9343 * po/nb.po: Likewise.
9344 * po/nl.po: Likewise.
9345 * po/pl.po: Likewise.
9346 * po/pt_BR.po: Likewise.
9347 * po/ru.po: Likewise.
9348 * po/rw.po: Likewise.
9349 * po/sk.po: Likewise.
9350 * po/sv.po: Likewise.
9351 * po/tr.po: Likewise.
9352 * po/zh_CN.po: Likewise.
9353 * po/zh_TW.po: Likewise.
9356 * iconv/iconv_prog.c (main): Fix spelling in error message.
9357 * iconv/iconvconfig.c (main): Likewise.
9358 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
9359 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
9360 * locale/programs/localedef.c (main): Likewise.
9361 * locale/programs/repertoire.c (repertoire_read): Likewise.
9362 * timezone/zdump.c (main): Likewise.
9363 * nscd/connections.c (handle_request): Fix spelling in log message.
9364 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
9366 2006-09-20 Ulrich Drepper <drepper@redhat.com>
9368 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
9371 2006-09-20 Andreas Jaeger <aj@suse.de>
9373 * math/libm-test.inc (lrint_test_upward): Fix typo.
9375 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
9378 * math/libm-test.inc (lrint_test_tonearest): New function.
9379 (lrint_test_towardzero): New function.
9380 (lrint_test_downward): New function.
9381 (lrint_test_upward): New function.
9382 (main): Run these new tests.
9383 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
9384 of values near to 0.
9385 (two52): Use double not long double.
9386 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
9387 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
9388 (two23): Use float not double.
9389 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
9390 (two23): Use float not double.
9391 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
9392 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
9393 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
9394 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
9396 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
9398 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
9399 Cast sp to unsigned long to avoid compiler warning.
9400 Use __makecontext_ret function instead of a trampoline on the stack.
9401 (__makecontext_ret): New function.
9402 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
9404 2006-09-19 Jakub Jelinek <jakub@redhat.com>
9406 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
9407 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
9410 2006-09-19 Ulrich Drepper <drepper@redhat.com>
9412 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
9413 sure no reference to the unloaded map's search list remains in the
9416 2006-09-16 Jakub Jelinek <jakub@redhat.com>
9418 * elf/Makefile: Add rules to build and run unload7 test.
9419 * elf/unload7.c: New test.
9420 * elf/unload7mod1.c: New file.
9421 * elf/unload7mod2.c: New file.
9423 2006-09-18 Jakub Jelinek <jakub@redhat.com>
9425 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
9426 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
9427 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9428 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
9429 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9430 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
9431 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9432 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
9433 PTRACE_GETEVENTMSG): Likewise.
9434 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
9437 2006-09-17 Mike Frysinger <vapier@gentoo.org>
9439 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
9440 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9441 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
9442 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9444 2006-09-16 Jakub Jelinek <jakub@redhat.com>
9446 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
9447 write '\0' to the fd.
9448 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
9449 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
9450 Change regs to unsigned long pointer from unsigned int, fix fscr
9453 2006-09-14 Jakub Jelinek <jakub@redhat.com>
9455 * io/Makefile (CFLAGS-fstatat.c): Set.
9456 (CFLAGS-fstatat64.c): Likewise.
9457 (CFLAGS-mknodat.c): Likewise.
9459 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
9460 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9461 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
9462 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
9464 2006-09-14 Jakub Jelinek <jakub@redhat.com>
9465 Steven Munroe <sjmunroe@us.ibm.com>
9467 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
9468 names to the beginning. Rename "cell" to "cellbe".
9469 (_dl_powerpc_platforms): New.
9470 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9471 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
9472 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
9473 (_DL_HWCAP_PLATFORM): Define to new mask.
9474 (_dl_platform_string, _dl_string_platform): New functions.
9475 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
9476 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
9478 2006-09-12 Jakub Jelinek <jakub@redhat.com>
9481 * README.libm: Fix a thinko in sqrt algorithm description.
9484 * manual/string.texi (argz_delete): Fix prototype.
9485 Patch by <alpt@freaknet.org>.
9487 2006-08-26 Joseph Myers <joseph@codesourcery.com>
9490 * io/test-lfs.c (do_prepare): Give name_len type size_t.
9491 * io/tst-fcntl.c (do_prepare): Likewise.
9492 * posix/tst-exec.c (do_prepare): Likewise.
9493 * posix/tst-preadwrite.c (do_prepare): Likewise.
9494 * posix/tst-spawn.c (do_prepare): Likewise.
9495 * posix/tst-truncate.c (do_prepare): Likewise.
9496 * rt/tst-aio.c (do_prepare): Likewise.
9497 * rt/tst-aio64.c (do_prepare): Likewise.
9498 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
9501 2006-09-09 Ulrich Drepper <drepper@redhat.com>
9504 * time/mktime.c (guess_time_tm): Fix overflow detection.
9505 * time/Makefile (tests): Add bug-mktime1.
9506 * time/bug-mktime1.c: New file.
9509 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
9512 2006-09-07 Jakub Jelinek <jakub@redhat.com>
9515 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
9516 Ensure relocation doesn't clobber any bits outside of the
9517 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
9518 R_SPARC_HI22 and R_SPARC_H44.
9521 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
9522 (long) (MINSIZE + nb - old_size) is positive.
9524 * malloc/arena.c (grow_heap): When growing bail even if new_size
9528 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
9531 2006-09-06 Jakub Jelinek <jakub@redhat.com>
9533 * posix/regex_internal.c (re_string_reconstruct): Handle
9534 offset < pstr->valid_raw_len && pstr->offsets_needed case.
9535 Ensure no bytes read before raw_mbs array. Pass a saved copy of
9536 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
9537 re_string_context_at.
9538 * posix/Makefile: Add rules to build and run bug-regex26 test.
9539 * posix/bug-regex26.c: New test.
9541 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
9542 rather than col_sym_free. Move seqp declaration earlier.
9544 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
9546 2006-09-05 Jakub Jelinek <jakub@redhat.com>
9548 * nscd/initgrcache.c (addinitgroupsX): Move any_success
9549 decl before first goto out.
9551 2006-09-04 Jakub Jelinek <jakub@redhat.com>
9553 * Makerules (shlib.lds): If have-hash-style, put .hash section
9554 at the end of the RO segment.
9556 2006-09-04 Ulrich Drepper <drepper@redhat.com>
9558 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
9559 style hash table format is used.
9561 2006-09-04 Jakub Jelinek <jakub@redhat.com>
9563 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
9564 randomization rather than before.
9565 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
9567 2006-08-31 Jakub Jelinek <jakub@redhat.com>
9569 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
9571 * malloc/malloc.c (_int_malloc): Use full list insert and not
9572 shortcut which assumes the list is empty for large requests
9575 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
9577 2006-08-30 Jakub Jelinek <jakub@redhat.com>
9579 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
9580 and offout arguments to the prototype.
9581 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
9582 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
9583 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
9584 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
9585 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
9586 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
9587 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
9588 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
9590 2006-08-28 Ulrich Drepper <drepper@redhat.com>
9592 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
9594 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
9597 2006-08-28 Jakub Jelinek <jakub@redhat.com>
9599 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
9600 only if herrno is NETDB_INTERNAL. Handle errors other than
9601 ERANGE outside of the loops, handle TRY_AGAIN.
9603 * locale/programs/ld-ctype.c (translit_flatten): Issue error
9604 if other's ctype category was missing.
9605 * locale/programs/ld-collate.c (collate_read): Return if
9606 copy_locale's collate category is missing.
9608 2006-08-27 Ulrich Drepper <drepper@redhat.com>
9611 * malloc/malloc.c (public_rEALLOc): Try harder by using other
9612 arenas if allocation failed.
9613 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
9615 2006-08-26 Ulrich Drepper <drepper@redhat.com>
9617 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
9619 (malloc_state): Reduce bins size by 2.
9620 (_int_malloc): Fix test for large enough buffer for early termination.
9621 When no unsorted block matches perfectly and an exiting block has
9622 to be split, use full list insert and not shortcut which assumes
9625 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
9628 2006-08-24 Ulrich Drepper <drepper@redhat.com>
9630 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
9633 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
9634 symbol require exact match (these are PLTs).
9635 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
9636 (_dl_ppc64_addr_sym_match): Likewise.
9639 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
9640 If symbol has a value use it.
9641 * elf/tst-dladdr1.c: New file.
9642 * elf/Makefile: Add rules to build and run tst-addr1.
9644 2006-08-24 Jakub Jelinek <jakub@redhat.com>
9646 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
9647 keeps failing and heap growth or new heap creation isn't
9649 * malloc/tst-malloc.c (main): Add new tests.
9651 2006-08-24 Ulrich Drepper <drepper@redhat.com>
9654 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
9655 as in the x86-64 code to use bswap.
9657 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
9660 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
9662 * posix/bits/unistd.h: Likewise.
9664 2006-05-15 Mike Frysinger <vapier@gentoo.org>
9667 * string/strchr.c: Add cast to avoid warning.
9669 2006-08-21 Ulrich Drepper <drepper@redhat.com>
9671 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
9672 platforms define as 512K. For 64-bit platforms as 32MB. The lower
9673 limit is needed to avoid the exploding of the address space
9674 requirement for secondary heaps.
9675 * malloc/arena.c (HEAP_MAX_SIZE): Define using
9676 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
9678 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
9681 * Makerules (depfiles): Handle extra-test-objs the same as
9683 (common-mostlyclean): Likewise.
9684 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
9686 * elf/Makefile (extra-objs): Likewise.
9687 * stdlib/Makefile (extra-objs): Likewise.
9689 2006-08-14 Eric Blake <ebb9@byu.net>
9692 * misc/error.h: Assume C89 or better.
9693 * misc/error.c: Likewise.
9695 2006-08-21 Ulrich Drepper <drepper@redhat.com>
9698 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
9699 __ASSUME_ATFCTS is defined.
9701 2006-08-19 Ulrich Drepper <drepper@redhat.com>
9703 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
9704 to sort in each call.
9706 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
9707 is empty simply return and use next service.
9708 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
9710 * locale/programs/charmap.c (charmap_read): Add new parameter. It
9711 tells us when not finding a charmap file is an error.
9712 * locale/programs/charmap.h: Adjust charmap_read prototype.
9713 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
9714 cannot find a charmap.
9715 * locale/programs/localedef.c (main): Adjust charmap_read call.
9717 2006-08-15 Jakub Jelinek <jakub@redhat.com>
9719 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
9720 sysdeps/posix/pause.c implementation instead.
9722 2006-08-09 Jakub Jelinek <jakub@redhat.com>
9724 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
9727 2006-08-13 Andreas Schwab <schwab@suse.de>
9729 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
9730 Don't clobber caller's LRSAVE.
9731 (_dl_prof_resolve): Likewise.
9733 2006-08-14 Ulrich Drepper <drepper@redhat.com>
9736 * libio/memstream.c (open_memstream): Allocate initial buffer with
9738 * libio/wmemstream.c (open_wmemstream): Likewise.
9739 * libio/strops.c: Pretty printing.
9740 (_IO_str_overflow): Clear uninitialized part of the new buffer.
9741 (enlarge_userbuf): New function.
9742 (_IO_str_seekoff): Call it if seek position is larger than current
9744 * libio/wstrops.c: Likewise.
9745 * libio/vasprintf.c: Add comment as to why we do not have to use
9746 calloc instead of malloc to allocate initial buffer.
9747 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
9748 * libio/bug-memstream1.c: New file.
9749 * libio/bug-wmemstream1.c: New file.
9751 2006-08-13 Ulrich Drepper <drepper@redhat.com>
9753 * libio/wstrops.c: Remove dead macro definitions and comments.
9754 * libio/strops.c: Likewise.
9757 * login/utmpname.c (__utmpname): Remove unnecessary test.
9759 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
9762 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
9765 2006-08-13 Ulrich Drepper <drepper@redhat.com>
9768 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
9770 * sysdeps/unix/clock_settime.c: Add support for platform-specific
9771 setting of CPU clocks.
9773 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
9776 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
9777 since C99 requires the result to promote to 'int' when uint_least8_t
9778 and uint_least16_t promote to 'int'.
9780 2006-08-12 Ulrich Drepper <drepper@redhat.com>
9783 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
9784 lenght of one output field, correct bitmask creation.
9785 * locale/programs/ld-time.c: Add alignment.
9788 * misc/error.c: Add space between program name and message if file
9791 2006-08-03 Eric Blake <ebb9@byu.net>
9794 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
9796 2006-08-09 Ulrich Drepper <drepper@redhat.com>
9798 * malloc/memusagestat.c: Silence warnings.
9800 * malloc/malloc.c: Dynamically size mmap treshold if the program
9801 frees mmaped blocks.
9802 Patch by Valerie Henson and Arjan van de Ven.
9804 2006-08-08 Jakub Jelinek <jakub@redhat.com>
9806 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
9809 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
9810 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
9811 (DEF): Don't put the var into .gnu.linkonce.r.* section.
9812 Only provide var definitions in strtol_l (or for *ull*
9815 * stdio-common/bug16.c (tests): New array.
9816 (do_tests): Allow the first hexadecimal digit
9817 to be 1, 2, 4 or 8. Do 3 additional tests.
9819 * sysdeps/s390/fpu/libm-test-ulps: Update.
9821 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
9822 fchownat syscall if available.
9823 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9824 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
9825 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9827 2006-08-07 Ulrich Drepper <drepper@redhat.com>
9829 * nis/nis_xdr.c: Avoid some function calls.
9831 2006-08-07 Jakub Jelinek <jakub@redhat.com>
9832 Ulrich Drepper <drepper@redhat.com>
9834 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
9835 short cut if only one name component is stripped away.
9837 2006-08-07 Ulrich Drepper <drepper@redhat.com>
9839 * nis/nis_call.c: Minor cleanups throughout.
9840 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
9841 (first_shoot): Add search_parent_first parameter. Only if it is set
9842 search parent server first.
9843 If directory for table found through cold start cache is not the same
9844 as referenced in the cache, don't use it.
9845 (__nisfind_server): Take additional parameter. Pass it on to
9847 (__prepare_niscall): Adjust __nisfind_server call.
9848 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
9849 * nis/nis_table.c: Adjust __nisfind_server call.
9850 * nis/nis_lookup.c: Likewise.
9851 (nis_lookup): Don't loop endlessly if name is reduced to ".".
9853 2006-08-03 Ulrich Drepper <drepper@redhat.com>
9856 * math/s_cacosh.c: Return values from positive branch.
9857 * math/s_cacoshf.c: Likewise.
9858 * math/s_cacoshl.c: Likewise.
9861 * sysvipc/sys/msg.h: Change return value to ssize_t.
9862 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9863 * sysvipc/msgrcv.c: Likewise.
9864 * include/sys/msg.h: Likewise.
9866 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
9867 test introduced in patch for bz #661.
9868 (getgrouplist): Simplify code a bit. Don't allocate one additional
9869 element for NEWGROUPS.
9872 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
9873 'f', use '1' as leading digit not '\1'.
9874 * stdio-common/Makefile (tests): Add bug16.
9875 * stdio-common/bug16.c: New file.
9878 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
9879 and don't try to open it. The patch introducing the macro
9880 contained a bug and used the same file name as the new file
9881 instead of using /var/adm/hostid. Nobody complaint so I'm taking
9882 this out completely.
9885 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
9886 Patch by Jerry James <Jerry.James@usu.edu>.
9888 * rt/Makefile (tests): Add tst-clock2.
9889 * rt/tst-clock2.c: New file.
9892 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
9893 function and its parameters and pass it to new thread.
9894 (__gai_notify): Add support for alternative waiting for completion.
9895 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
9896 waiting for completion.
9897 * resolv/getaddrinfo_a.c: Likewise.
9898 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
9899 waiting for completion is used.
9900 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
9901 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
9902 * resolv/gai_error.c: Likewise.
9903 * resolv/gai_sigqueue.c: Likewise.
9905 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
9907 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
9908 errno to EBADF and return MACH_PORT_NULL.
9910 2006-06-23 Joseph Myers <joseph@codesourcery.com>
9913 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
9915 2006-08-02 Ulrich Drepper <drepper@redhat.com>
9917 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
9918 walk them instead of the symbol table.
9920 2006-08-01 Ulrich Drepper <drepper@redhat.com>
9923 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
9924 status of NSS calls, not the number of returned entries.
9926 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
9927 request_key, keyctl.
9929 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9931 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
9933 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
9935 * elf/tst-auditmod1.c: Fix typo in #error.
9937 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9939 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
9941 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
9943 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
9945 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
9946 that the directory is empty even on non-POSIX filesystems.
9948 2006-07-31 Ulrich Drepper <drepper@redhat.com>
9950 * elf/dl-open.c (dl_open_worker): Add branch prediction.
9952 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
9953 the backend NSS module. If backend setgrent call failed, don't have
9954 internal_setgrent fail. Just remember this until it is needed.
9955 * nis/nss_compat/compat-pwd.c: Likewise.
9956 * nis/nss_compat/compat-spwd.c: Likewise.
9958 2006-07-30 Roland McGrath <roland@redhat.com>
9960 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
9961 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
9962 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
9963 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
9965 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
9966 (nanosleep_not_cancel): New macro.
9967 (sigsuspend_not_cancel): new macro.
9968 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
9969 (do_sigsuspend): Define as inline.
9970 (__sigsuspend): Always use do_sigsuspend.
9971 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
9972 * include/signal.h: Declare __sigsuspend_nocancel.
9973 * sysdeps/posix/pause.c
9974 [! NO_CANCELLATION] (__pause_nocancel): New function.
9976 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
9977 * include/time.h (__nanosleep_nocancel): Likewise.
9979 2006-07-30 Ulrich Drepper <drepper@redhat.com>
9981 * locale/programs/localedef.c (add_to_readlist): Rename local
9982 variables to avoid confusion.
9984 * locale/programs/charmap.c (charmap_read): Emit error message if
9985 charmap couldn't be found or read.
9987 2006-07-28 Ulrich Drepper <drepper@redhat.com>
9989 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9990 __ASSUME_FUTEX_LOCK_PI.
9991 * include/time.h: Declare __nanosleep_nocancel.
9992 * include/unistd.h: Declare __pause_nocancel.
9994 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9995 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
9996 get the __stack_chk_fail_local definition when it's needed.
9998 2006-07-26 Ulrich Drepper <drepper@redhat.com>
10000 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10001 * dlfcn/bug-atexit3.c: New file.
10002 * dlfcn/bug-atexit3-lib.cc: New file.
10004 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10005 used when the namespace is not the base namespace.
10007 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
10009 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10010 (__new_exitfn): Bump it in every successful call.
10011 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10012 more exit handlers, call them right away.
10013 * stdlib/exit.h: Declare __new_exitfn_called.
10015 2006-07-25 Ulrich Drepper <drepper@redhat.com>
10017 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10018 calling registered handler.
10020 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10021 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10022 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10023 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10024 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10025 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10026 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10027 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10029 2006-07-10 Ulrich Drepper <drepper@redhat.com>
10031 * elf/dl-lookup.c (dl_new_hash): New functions.
10032 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10033 value here. Compute new-style hash value. Pass new hash value
10034 and reference to variable with the old value to do_lookup_x.
10035 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10036 old-style hash table.
10037 (_dl_debug_bindings): Pass new hash value and reference to variable
10038 with the old value to do_lookup_x.
10039 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10040 new-style hash value and change old-style hash value parameter to
10041 be a reference. Reoganize functions to determine whether
10042 new-style hash table is available. Only fall back on old-style
10043 table. If old-style hash value is needed, compute it here.
10044 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
10046 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
10047 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
10048 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
10049 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
10050 * Makeconfig: If linker supports --hash-style option add it to all
10051 linker command lines to build DSOs.
10052 * config.make.in: Define have-hash-style.
10053 * configure.in: Test whether linker supports --hash-style option.
10055 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
10056 * sysdeps/generic/ldsodefs.h: Adjust prototype.
10058 2006-06-27 Ulrich Drepper <drepper@redhat.com>
10060 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
10063 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
10064 RPATH of main map twice.
10066 2006-06-22 Ulrich Drepper <drepper@redhat.com>
10068 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
10069 look further, return original strings.
10070 (_nl_find_msg): Do not return found translation if the conversion
10071 failed. Either signal the string is unusable or that something went
10072 wrong and the original should be used.
10074 2006-06-21 Ulrich Drepper <drepper@redhat.com>
10076 * string/_strerror.c (__strerror_r): Add __builtin_expect.
10078 2006-06-14 Jakub Jelinek <jakub@redhat.com>
10081 * misc/insremque.c (insque): Handle prev == NULL.
10082 * misc/Makefile (tests): Add tst-insremque.
10083 * misc/tst-insremque.c: New test.
10085 2006-06-17 Ulrich Drepper <drepper@redhat.com>
10088 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
10089 conflict with DL_DST_REQUIRED.
10091 2006-06-16 Ulrich Drepper <drepper@redhat.com>
10093 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
10094 match what Solaris does.
10096 2006-06-04 Ulrich Drepper <drepper@redhat.com>
10098 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
10099 local_setegid instead of seteuid and setegid.
10100 * sysdeps/generic/local-setxid.h: New file.
10101 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
10103 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
10105 * string/Makefile (tests): Add bug-envz1.
10106 * string/bug-envz1.c: New file.
10108 2006-06-02 Jakub Jelinek <jakub@redhat.com>
10110 * posix/regex_internal.c (re_string_skip_chars): If no character has
10111 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
10112 to the byte which couldn't be converted.
10113 (re_string_reconstruct): Don't clear valid_raw_len before calling
10114 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
10115 tip_context using re_string_context_at.
10116 * posix/Makefile: Add rules to build and run bug-regex25 test.
10117 * posix/bug-regex25.c: New test.
10119 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
10122 * string/envz.c (envz_strip): Correct erroneously reversed src
10123 and dest parameters to memmove() invocation.
10125 2006-05-30 Jakub Jelinek <jakub@redhat.com>
10127 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
10128 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
10129 to make sure the database has been already invalidated.
10130 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
10131 after the cache has been invalidated. Use pthread_mutex_lock rather
10132 than pthread_mutex_trylock if fd != -1.
10133 * nscd/connections.c (invalidate_cache): Add fd argument, write
10134 response to fd if not calling prune_cache, pass fd to prune_cache.
10135 (handle_request): Adjust invalidate_cache caller.
10136 (nscd_run): Pass -1 as fd to prune_cache.
10138 2006-05-30 Ulrich Drepper <drepper@redhat.com>
10140 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
10143 2006-05-29 Ulrich Drepper <drepper@redhat.com>
10145 * nscd/nscd.h (struct database_dyn): Add prunelock field.
10146 * nscd/cache.c (prune_cache): Take prunelock before starting the
10147 work. Just return in case it is already taken.
10148 * nscd/connections.c (dbs): Initialize .prunelock.
10150 2006-05-25 Ulrich Drepper <drepper@redhat.com>
10152 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
10153 copying. No need to allocate new array for group members. Just
10154 move the pointers and update the size.
10156 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
10157 Avoid memory leak in case realloc fails. Simplification for
10158 better code generation.
10160 Avoid deprecation warning because of libc_hidden_proto for
10161 inet6_option_alloc.
10162 * inet/inet6_option.c (option_alloc): Renamed from
10163 inet6_option_alloc. Made static.
10164 (inet6_option_alloc): Now a simple wrapper around option_alloc.
10165 (inet6_option_append): Call option_alloc.
10166 * include/netinet/in.h: Remove libc_hidden_proto for
10167 inet6_option_alloc.
10169 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
10170 for cleanup when cb!=NULL [Coverity CID 233].
10172 2006-05-24 Ulrich Drepper <drepper@redhat.com>
10175 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
10176 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
10177 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
10178 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
10179 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
10180 and inet6_rth_getaddr.
10181 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
10183 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
10184 Mark inet6_option_* interfaces as deprecated.
10185 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
10186 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
10187 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
10188 inet6_rth_segments, and inet6_rth_getaddr.
10189 * inet/inet6_opt.c: New file.
10190 * inet/inet6_rth.c: New file.
10192 * inet/netinet/icmp6.h: Pretty printing.
10195 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
10197 2006-05-23 Ulrich Drepper <drepper@redhat.com>
10199 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
10200 doing it all here. When server does not know the answer do not
10201 fail immediate, try parent first.
10203 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
10206 2006-05-20 Ulrich Drepper <drepper@redhat.com>
10208 * nis/nis_call.c (__prepare_niscall): New function. Split out
10210 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
10212 (__follow_path): New function. Split out from nis_list.
10213 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
10215 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
10217 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
10219 * nis/Versions: Export __prepare_niscall, __create_ib_request,
10220 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
10221 from libnsl for version GLIBC_PRIVATE.
10222 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
10223 Remove entry parameter from _nss_nisplus_parse_pwent and
10224 _nss_nisplus_parse_grent.
10225 * nis/nss_nisplus/nisplus-parser.c: Likewise.
10226 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
10227 again. Rewrite getpwent handling to not use nis_first_entry and
10228 nis_next_entry. Roll out own niscall handling.
10229 * nis/nss_nisplus/nisplus-grp.c: Likewise.
10231 * sunrpc/xdr_rec.c: Fix typo in comment.
10233 2006-05-19 Ulrich Drepper <drepper@redhat.com>
10235 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
10238 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
10239 to allocate memory for my_pollfd. Better initialization of
10240 cb_is_running. Use TEMP_FAILURE_RETRY.
10242 * malloc/memusage.sh (memusageso): Add quotes.
10243 (memusagestat): Likewise.
10244 * debug/xtrace.sh (pcprofileso): Likewise.
10245 (pcprofiledump): Likewise.
10246 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
10248 * malloc/Makefile ($(objpfx)memusage): Likewise.
10250 * nis/nis_callback.c (__nis_create_callback): Calls to
10251 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
10252 asprintf call fails.
10254 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
10255 no uninitialized memory is passed to sendto.
10257 2006-05-18 Ulrich Drepper <drepper@redhat.com>
10259 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
10260 of snprintf+strdup. Handle OOM.
10261 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
10262 cb->serv together. Remove now obsolete free calls.
10263 (__nis_destroy_callback): Remove now obsolete free call.
10265 2006-05-18 David Woodhouse <dwmw2@redhat.com>
10267 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
10268 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
10269 and ULA respectively). Set precedence for IPv4 address to 10 as
10270 defined in RFC3484 for preferring IPv6.
10271 * posix/gai.conf: Update to match the new default tables.
10273 2006-05-18 Jakub Jelinek <jakub@redhat.com>
10275 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
10276 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
10277 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
10278 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
10280 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
10282 (init_nss_interface): Remove initialization of these variables.
10284 2006-05-18 Ulrich Drepper <drepper@redhat.com>
10286 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
10287 nis_free_directory forward to avoid duplication.
10289 2006-05-17 Ulrich Drepper <drepper@redhat.com>
10291 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
10292 rec_dirsearch returning NULL.
10293 (first_shoot): Handle __nis_finddirectory returning NULL.
10294 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
10296 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
10297 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
10299 2006-05-17 Jakub Jelinek <jakub@redhat.com>
10301 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
10304 2006-05-15 Ulrich Drepper <drepper@redhat.com>
10306 * include/rpc/pmap_prot.h: Mark all functions as hidden.
10308 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
10309 * nscd/nscd_getgr_r.c: Likewise.
10311 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
10313 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
10314 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
10316 * stdlib/longlong.h (__clz_tab): Mark as hidden.
10318 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
10320 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
10322 * include/rpc/auth.h: Mark xdr_des_block_internal and
10323 xdr_opaque_auth_internal as hidden.
10325 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
10328 * include/rpc/xdr.h: Mark all _internal functions as hidden.
10330 * misc/getusershell.c (okshells): Don't use static initializers,
10333 * stdlib/fmtmsg.c (keywords): Change type of len element to
10334 uint32_t to not waste space on 64bit machines.
10336 * locale/setlocale.c: Change _nl_category_names into a string.
10337 Add new _nl_category_name_idxs. Change all users.
10338 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
10339 Declare _nl_category_name_idxs.
10340 * locale/findlocale.c: Adjust for _nl_category_names change.
10341 * locale/loadlocale.c: Likewise.
10342 * locale/newlocale.c: Likewise.
10343 * intl/dcigettext.c: Likewise.
10345 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
10346 (add_alias2): ...here. New function.
10347 (__gconv_read_conf): Simplify builtin alias handling.
10348 (builtin_aliases): Convert to string to avoid relocations.
10349 * iconv/gconv_builtin.h: Add comment about correct formatting.
10351 2006-05-15 Jakub Jelinek <jakub@redhat.com>
10353 * resolv/res_debug.c (loc_ntoa): Make error const.
10355 2006-05-14 Andreas Schwab <schwab@suse.de>
10357 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
10359 2006-05-12 Jakub Jelinek <jakub@redhat.com>
10361 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
10362 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
10363 sizeof (cpu_set_t).
10365 2006-05-11 Ulrich Drepper <drepper@redhat.com>
10367 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
10369 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
10371 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
10372 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
10374 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
10375 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
10377 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
10378 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
10381 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
10382 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10385 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
10386 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
10388 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
10389 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
10391 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
10392 * include/rpcsvc/nis_callback.h: New file.
10394 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
10395 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
10397 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10398 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10400 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
10401 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
10403 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10404 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10406 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
10407 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10410 * nis/nis_xdr.h: Mark all functions as hidden. Remove
10411 __BEGIN_DECLS and __END_DECLS, the header is not installed.
10413 * nis/nis_error.c: Remove table of strings. Use position
10414 independent mechanism.
10415 * nis/nis_error.h: New file.
10417 2006-05-11 Jakub Jelinek <jakub@redhat.com>
10419 * locale/programs/ld-time.c (time_finish): If wide era name or
10420 format aren't provided, set both wname and wformat to L"".
10422 2006-05-10 Ulrich Drepper <drepper@redhat.com>
10424 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
10425 results if the call was succesful.
10427 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
10429 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
10432 2006-05-10 Jakub Jelinek <jakub@redhat.com>
10434 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
10436 2006-05-10 Ulrich Drepper <drepper@redhat.com>
10438 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
10439 caller makes sure this is not the case.
10440 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
10442 2006-05-09 Ulrich Drepper <drepper@redhat.com>
10444 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
10447 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
10448 [Coverity CID 229, 230]
10450 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
10452 (hol_help): Likewise. [Coverity CID 226, 227]
10454 * string/argz-replace.c (__argz_replace): Unconditionally call
10455 free on SRC. [Coverity CID 225]
10457 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
10458 the return value of __nis_default_owner and __nis_default_group,
10459 it has been especially allocated. [Coverity CID 224]
10461 * nis/nis_defaults.c (searchXYX): New functions. Used by both
10462 searchgroup and searchowner. Significantly simplified.
10463 (__nis_default_owner): Remove duplication. Do not locally copy the
10464 string before duplicating it.
10465 (__nis_default_group): Likewise.
10467 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
10468 we must clear the variable before calling __nisfind_server.
10470 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
10471 nis_getnames. [Coverity CID 223]
10473 * locale/programs/locfile.c (locfile_read): Use alloca instead of
10474 xmalloc to allocate local repertoire name. [Coverity CID 222]
10476 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
10477 allocate memory for the input to add_bytes. [Coverity CID 221]
10479 * posix/wordexp.c (w_addword): Free word if realloc fails and it
10480 was allocated here. [Coverity CID 219, 220]
10482 * posix/getconf.c (print_all): Free confstr data after printing.
10485 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
10486 list allocation fails. [Coverity CID 215]
10488 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
10491 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
10492 string is NULL. [Coverity CID 212]
10493 * argp/Makefile: Add rules to build and run bug-argp1.
10494 * argp/bug-argp1.c: New file.
10496 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
10498 * stdlib/canonicalize.c (__realpath): Likewise.
10500 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
10501 pointer. [Coverity CID 206]
10503 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
10504 in statically linked code.
10505 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
10506 statically built code, be prepared to have no link map.
10509 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
10510 dgettext calls. [Coverity CID 204]
10512 * argp/argp-help.c (struct uparams): Remove valid member. Change
10514 (uparam_names): Reduce size. Avoid relative relocations.
10515 Moved to read-only segment.
10516 (fill_in_uparams): Update for new layout.
10518 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
10519 assumed to always be != NULL. [Coverity CID 202]
10521 * argp/argp-help.c (hol_entry_help): Remove some dead code
10522 [Coverity CID 200].
10524 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
10525 away a few more unconditional yperr2nss calls.
10526 (_nss_nis_getservbyname_r): Likewise.
10528 2006-05-06 Ulrich Drepper <drepper@redhat.com>
10530 * sysdeps/generic/ldsodefs.h: Remove support for non-core
10533 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
10534 that unused memory passed to sendto is nevertheless initialized.
10537 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
10538 possibly unaligned memory accesses.
10540 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
10541 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
10542 and __putlong respectively. Correct buffer overflow check for
10545 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
10547 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
10548 (send_dg): Rewrite error handling to be more compact and avoid
10549 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
10551 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
10553 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
10554 instead of ns_get16.
10555 (res_queriesmatch): Likewise. Minor optimization.
10558 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
10559 __libc_res_nsend might reallocate the buffer for the answer. In
10560 this case we have to reload the HP pointer.
10562 2006-05-05 Ulrich Drepper <drepper@redhat.com>
10564 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
10565 some branch prediction hints.
10567 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
10568 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10569 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10570 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10571 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10572 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10573 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10574 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10576 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
10578 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
10579 by a GOT relocation to make Scrt1.o position independent.
10580 * sysdeps/s390/s390-64/elf/start.S: Likewise.
10582 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
10583 six system call parameters.
10584 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
10586 2006-05-05 Ulrich Drepper <drepper@redhat.com>
10588 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
10591 * sunrpc/svc_udp.c (BZERO): Remove definition.
10593 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
10595 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
10596 (des_SPtrans): Use uint32_t type.
10597 (des_skb): Likewise.
10599 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
10601 2006-05-05 Jakub Jelinek <jakub@redhat.com>
10604 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
10607 2006-05-05 Ulrich Drepper <drepper@redhat.com>
10609 * locale/programs/ld-address.c (address_finish): Fix one more
10610 place where the iso639 array might be accessed beyond the limits.
10612 2006-05-04 Ulrich Drepper <drepper@redhat.com>
10614 * nis/nis_table.c (nis_list): Avoid clearing res twice before
10615 filling it for the first time.
10617 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
10618 Adjust all callers.
10619 Free res object content before returning.
10621 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
10623 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
10626 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
10627 cleanup for initial thread, just the free call on TVP.
10629 * nscd/gai.c (__getline): Define.
10632 See ChangeLog.16 for earlier changes.