1 2010-01-22 Jim Meyering <jim@meyering.net>
4 * posix/regexec.c (extend_buffers): Avoid overflow in realloc
5 buffer length computation.
8 * posix/regexec.c (re_copy_regs): Don't leak when allocation
9 of the start buffer succeeds but allocation of the "end" one fails.
12 * posix/regexec.c (re_search_2_stub): Check for overflow
13 when adding the sizes of the two strings.
16 * posix/regexec.c (re_search_internal): Avoid overflow
17 in computing re_malloc buffer size.
20 * posix/regexec.c (prune_impossible_nodes): Avoid overflow
21 in computing re_malloc buffer size.
24 * posix/regexec.c (build_trtable): Avoid arithmetic overflow
28 * posix/regexec.c (re_search_2_stub): Use simpler method than
29 boolean for freeing internal storage.
31 2010-01-22 Ulrich Drepper <drepper@redhat.com>
33 * posix/regex_internal.c (re_string_skip_chars): Simplify test for
36 2010-01-22 Jim Meyering <jim@meyering.net>
39 * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
40 fits in wchar_t. Problem reported by Eric Blake.
43 * posix/regex_internal.c (re_string_reconstruct): Remove declaration
44 and stores into set-but-not-used local, "q".
47 * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
48 detection test. Patch by Paul Eggert.
51 * posix/regex_internal.c (re_string_realloc_buffers):
52 Detect and handle internal overflow. Patch by Paul Eggert
54 2010-01-20 Andreas Schwab <schwab@redhat.com>
56 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
57 (CHECK_SP): Fix check for alternate stack.
58 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
61 2010-01-19 H.J. Lu <hongjiu.lu@intel.com>
63 * sysdeps/i386/i686/multiarch/memmove.S: Also check
64 bit_Fast_Rep_String when SHARED isn't defined.
66 2010-01-19 Ulrich Drepper <drepper@redhat.com>
69 * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
71 2010-01-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
73 * sysdeps/mach/hurd/bits/libc-lock.h
74 (__rtld_lock_recursive_t): New type.
75 (__rtld_lock_initialize): New macro.
77 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
79 * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
80 * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
81 * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
82 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
84 2010-01-18 Andreas Schwab <schwab@redhat.com>
86 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
87 definitions of O_DSYNC and O_RSYNC.
89 * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
92 * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
95 2010-01-16 Jakub Jelinek <jakub@redhat.com>
97 * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
99 * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
100 * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
102 * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
104 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
105 math_opt_barrier and math_force_eval macros.
107 2010-01-15 Ulrich Drepper <drepper@redhat.com>
109 * posix/regcomp.c: Fix a few more cases of ignored return values.
110 * posix/regex_internal.c: Likewise.
111 * posix/regexec.c: Likewise.
113 * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
114 used without _XOPEN_SOURCE. Don't base any decisions on this macro
115 if _XOPEN_SOURCE is not defined as well.
117 2010-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
119 * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
120 high gprs kernel facility.
121 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
122 Added high gprs check for DSOs.
123 * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
126 2010-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
128 * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
130 * elf/dl-open.c (_dl_sysdep_start): Likewise..
131 * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
132 * elf/rtld.c (dl_main): Added new parameter auxv. Adjust the
133 AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
136 2010-01-14 Ulrich Drepper <drepper@redhat.com>
139 * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
141 Patch by Philip Prindeville <philipp@redfish-solutions.com>.
144 * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
148 * posix/regcomp.c (alc_eclosure_iter): Do not ignore
149 re_node_set_insert failure; return REG_ESPACE.
150 Patch by Paul Eggert.
152 * bits/confname.h: Make pre-C99-safe.
154 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
156 * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
157 $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
158 files are found by GCC.
160 2010-01-14 Ulrich Drepper <drepper@redhat.com>
162 * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
165 * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
168 * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
170 * Versions.def: Add GLIBC_2.12 for libpthread.
173 * malloc/malloc.c (malloc_info): Initialize malloc if not already
174 done. Handle empty bin lists.
176 * posix/unistd.h: Change getpagesize and getdtablesize declaration
177 visibility some more.
179 * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
181 * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
184 * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
187 2010-01-13 Ulrich Drepper <drepper@redhat.com>
189 * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
191 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
193 * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
195 2010-01-13 Ulrich Drepper <drepper@redhat.com>
197 * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
199 2010-01-12 Ulrich Drepper <drepper@redhat.com>
201 * conform/data/complex.h-data: Test for POSIX2008.
203 * conform/data/ctype.h-data: Fix POSIX testing.
205 * conform/data/dirent.h-data: ino_t only needed for XSI.
207 * grp/grp.h: Declare getgrent and endgrent for XPG7.
209 * conform/data/inttypes.h-data: Use same types as the headers.
211 * resolv/netdb.h: Don't define old resolver macros for XPG7.
213 * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
215 * conform/conformtest.pl: Implement tag for allow-header.
216 Fix newline handling in allow-header implementation.
218 * conform/data/time.h-data: Use allow-header instead of duplicating
221 * conform/data/time.h-data: Allow sigevent tag.
223 * posix/sched.h: Define time_t and pid_t for XPG7.
225 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
227 * sysdeps/i386/i686/bcopy.S: New file.
229 * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
231 * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
233 * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
234 * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
235 * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
237 * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
239 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
240 bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
241 memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
242 bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
243 * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
244 * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
245 * sysdeps/i386/i686/multiarch/bcopy.S: New file.
246 * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
247 * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
248 * sysdeps/i386/i686/multiarch/bzero.S: New file.
249 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
250 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
251 * sysdeps/i386/i686/multiarch/memcpy.S: New file.
252 * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
253 * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
254 * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
255 * sysdeps/i386/i686/multiarch/memmove.S: New file.
256 * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
257 * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
258 * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
259 * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
260 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
261 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
262 * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
263 * sysdeps/i386/i686/multiarch/memset.S: New file.
264 * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
266 * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
269 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
270 FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
271 * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
273 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
275 (__x86_64_data_cache_size): New.
276 (init_cacheinfo): Set __x86_64_data_cache_size.
278 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
279 on bit_Fast_Rep_String for Intel Core i7.
281 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
282 (index_Fast_Rep_String): Likewise.
283 (FEATURE_INDEX_1): Likewise.
284 (FEATURE_INDEX_MAX): Likewise.
285 (cpu_features): Add feature.
287 2010-01-12 Ulrich Drepper <drepper@redhat.com>
289 * conform/data/sys/select.h-data: Fix up for XPG7.
291 2010-01-12 Jakub Jelinek <jakub@redhat.com>
293 * posix/sys/wait.h: Don't define W* macros etc. if
294 stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
296 2010-01-11 Ulrich Drepper <drepper@redhat.com>
298 * io/sys/stat.h: Declare fchmod for XPG7.
299 * conform/data/sys/stat.h-data: Fix up for XPG7.
301 * termios/termios.h: Define pid_t for XPG7.
303 * conform/data/math.h-data: Fix up for XPG6 and XPG7.
304 * conform/data/tgmath.h-data: Likewise.
306 * conform/data/time.h-data: Fix POSIX tests.
308 * conform/data/wchar.h-data: Fix up XPG7 tests.
310 * include/features.h: Fix __USE_ISOC95 handling.
312 * conform/data/wordexp.h-data: Fix typo in last change.
314 * conform/data/unistd.h-data: Fix up older POSIX tests.
316 * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
317 * posix/unistd.h: Likewise.
319 * posix/unistd.h: Include environments.h also for XPG6 and up.
320 Define intptr_t for XPG6 and up.
322 * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
324 * conform/data/sys/types.h-data: Fix up for XPG7.
326 * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
327 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
328 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
329 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
330 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
331 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
332 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
333 * sysdeps/unix/sysv/bits/stat.h: Likewise.
334 * sysdeps/mach/hurd/bits/stat.h: Likewise.
336 * bits/confname.h: Fix typo in last change.
338 * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
340 2010-01-10 Ulrich Drepper <drepper@redhat.com>
342 * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
343 and SA_RESETHAND now available in Base.
344 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
345 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
346 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
347 * conform/data/signal.h-data: Update for XPG7.
349 * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
351 * string/strings.h: Don't declare obsolete functions for XPG7.
352 Declare ffs only for XSI.
353 * conform/data/strings.h-data: Update for XPG7.
355 2010-01-10 Jakub Jelinek <jakub@redhat.com>
358 * libio/stdio.h: Define va_list, off_t, and ssize_t.
360 * posix/glob.h: Define size_t.
362 * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
364 * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
366 2010-01-10 Ulrich Drepper <drepper@redhat.com>
368 * conform/conformtest.pl: For XPG7 testing the headers are supposed to
371 * conform/data/stdio.h-data: Expect off_t and ssize_t.
373 2010-01-09 Ulrich Drepper <drepper@redhat.com>
375 * libio/stdio.h: Define va_list also for XPG7.
377 * conform/conformtest.pl: Update for XPG7 and some bug fixes.
378 * conform/data/ctype.h-data: Likewise.
379 * conform/data/dirent.h-data: Likewise.
380 * conform/data/errno.h-data: Likewise.
381 * conform/data/fcntl.h-data: Likewise.
382 * conform/data/fmtmsg.h-data: Likewise.
383 * conform/data/fnmatch.h-data: Likewise.
384 * conform/data/ftw.h-data: Likewise.
385 * conform/data/glob.h-data: Likewise.
386 * conform/data/grp.h-data: Likewise.
387 * conform/data/iconv.h-data: Likewise.
388 * conform/data/langinfo.h-data: Likewise.
389 * conform/data/libgen.h-data: Likewise.
390 * conform/data/limits.h-data: Likewise.
391 * conform/data/locale.h-data: Likewise.
392 * conform/data/math.h-data: Likewise.
393 * conform/data/monetary.h-data: Likewise.
394 * conform/data/mqueue.h-data: Likewise.
395 * conform/data/ndbm.h-data: Likewise.
396 * conform/data/netdb.h-data: Likewise.
397 * conform/data/pthread.h-data: Likewise.
398 * conform/data/pwd.h-data: Likewise.
399 * conform/data/regex.h-data: Likewise.
400 * conform/data/sched.h-data: Likewise.
401 * conform/data/search.h-data: Likewise.
402 * conform/data/semaphore.h-data: Likewise.
403 * conform/data/setjmp.h-data: Likewise.
404 * conform/data/signal.h-data: Likewise.
405 * conform/data/spawn.h-data: Likewise.
406 * conform/data/stdio.h-data: Likewise.
407 * conform/data/stdlib.h-data: Likewise.
408 * conform/data/string.h-data: Likewise.
409 * conform/data/strings.h-data: Likewise.
410 * conform/data/sys/ipc.h-data: Likewise.
411 * conform/data/sys/msg.h-data: Likewise.
412 * conform/data/sys/resource.h-data: Likewise.
413 * conform/data/sys/sem.h-data: Likewise.
414 * conform/data/sys/shm.h-data: Likewise.
415 * conform/data/sys/socket.h-data: Likewise.
416 * conform/data/sys/stat.h-data: Likewise.
417 * conform/data/sys/time.h-data: Likewise.
418 * conform/data/sys/types.h-data: Likewise.
419 * conform/data/sys/uio.h-data: Likewise.
420 * conform/data/sys/wait.h-data: Likewise.
421 * conform/data/syslog.h-data: Likewise.
422 * conform/data/tar.h-data: Likewise.
423 * conform/data/termios.h-data: Likewise.
424 * conform/data/time.h-data: Likewise.
425 * conform/data/ulimit.h-data: Likewise.
426 * conform/data/unistd.h-data: Likewise.
427 * conform/data/utmpx.h-data: Likewise.
428 * conform/data/wchar.h-data: Likewise.
429 * conform/data/wctype.h-data: Likewise.
430 * conform/data/wordexp.h-data: Likewise.
432 * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
433 * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
434 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
435 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
436 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
437 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
438 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
439 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
440 * sysdeps/unix/sysv/bits/stat.h: Likewise.
441 * sysdeps/mach/hurd/bits/stat.h: Likewise.
443 * stdlib/stdlib.h: Define wait-related bits for XPG7.
444 Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and up.
445 Declare mkstemp and getsubopt for XPG7.
446 Declare posix_openpt for XPG6 XSI.
448 * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
449 and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
451 * string/string.h: Declare strdup for XPG7.
453 2010-01-08 Ulrich Drepper <drepper@redhat.com>
455 * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
456 * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
458 * dirent/dirent.h: Really fix feature selection.
460 * locale/localeinfo.h: Rename struct locale_data to __locale_data.
462 * locale/C-address.c: Fix all users.
463 * locale/C-collate.c: Likewise.
464 * locale/C-ctype.c: Likewise.
465 * locale/C-identification.c: Likewise.
466 * locale/C-measurement.c: Likewise.
467 * locale/C-messages.c: Likewise.
468 * locale/C-monetary.c: Likewise.
469 * locale/C-name.c: Likewise.
470 * locale/C-numeric.c: Likewise.
471 * locale/C-paper.c: Likewise.
472 * locale/C-telephone.c: Likewise.
473 * locale/C-time.c: Likewise.
474 * locale/findlocale.c: Likewise.
475 * locale/global-locale.c: Likewise.
476 * locale/loadarchive.c: Likewise.
477 * locale/loadlocale.c: Likewise.
478 * locale/nl_langinfo_l.c: Likewise.
479 * locale/setlocale.c: Likewise.
480 * locale/xlocale.c: Likewise.
481 * locale/xlocale.h: Likewise.
482 * stdio-common/vfscanf.c: Likewise.
483 * stdlib/strfmon_l.c: Likewise.
484 * stdlib/strtod_l.c: Likewise.
485 * stdlib/strtol_l.c: Likewise.
486 * string/strcoll_l.c: Likewise.
487 * string/strxfrm_l.c: Likewise.
488 * time/alt_digit.c: Likewise.
489 * time/asctime.c: Likewise.
490 * time/era.c: Likewise.
491 * time/lc-time-cleanup.c: Likewise.
492 * time/strftime_l.c: Likewise.
493 * time/strptime_l.c: Likewise.
494 * wcsmbs/wcsmbsload.c: Likewise.
495 * wcsmbs/wcsmbsload.h: Likewise.
497 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
498 O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
500 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
501 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
502 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
503 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
504 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
505 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
507 2010-01-07 Roland McGrath <roland@redhat.com>
509 * elf/elf.h (PN_XNUM): New macro.
511 * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
514 2010-01-06 Ulrich Drepper <drepper@redhat.com>
516 * dirent/dirent.h: Fix typo in feature selection macro use.
518 2009-12-15 Maciej W. Rozycki <macro@codesourcery.com>
521 * stdlib/tst-makecontext3.c: New file.
522 * stdlib/Makefile (tests): Add new test.
524 * stdlib/tst-setcontext.c (check_called): Fix a typo.
526 2009-12-17 H.J. Lu <hongjiu.lu@intel.com>
528 * configure.in: Enable multi-arch by default if the assembler
529 supports gnu_indirect_function symbol type and the architecture
532 2009-12-23 Ulrich Drepper <drepper@redhat.com>
534 * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
537 2009-12-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
539 * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
540 MACH_PORT_NULL when id != cttyid.
542 2009-12-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
544 * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
545 __mach_port_deallocate on rootdevid.
547 2009-12-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
549 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
550 R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
551 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
552 unneeded R_390_PLT16DBL and R_390_PLT32DBL.
554 2009-12-21 Ulrich Drepper <drepper@redhat.com>
557 * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
558 Patch by Eric Blake <ebb9@byu.net>.
560 2009-12-15 Ulrich Drepper <drepper@redhat.com>
563 * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
564 POLLWRBAND also for POSIX 2008.
565 * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
566 * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
568 * include/link.h (struct link_map): Move l_used into its own word.
569 * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
571 * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
574 2009-12-13 H.J. Lu <hongjiu.lu@intel.com>
576 * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
577 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
578 check processor feature.
579 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
580 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
581 * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
582 (index_SSE2): Likewise.
584 2009-12-09 H.J. Lu <hongjiu.lu@intel.com>
586 * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
587 if __ASSEMBLER__ is defined.
588 (bit_SSSE3): New. Defined for __ASSEMBLER__.
589 (bit_SSE4_2): Likewise.
590 (index_SSSE3): Likewise.
591 (index_SSE4_2): Likewise.
592 * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
593 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
594 check processor feature.
595 * sysdeps/x86_64/multiarch/strchr.S: Likewise.
596 * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
597 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
598 * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
599 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
600 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
601 * sysdeps/x86_64/multiarch/strspn.S: Likewise.
603 2009-12-08 Kaz Kojima <kkojima@rr.iij4u.or.jp>
605 * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
607 2009-12-01 Mike Frysinger <vapier@gentoo.org>
609 * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
611 2009-12-11 Ulrich Drepper <drepper@redhat.com>
613 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
614 O_DSYNC to match 2.6.33+ kernels.
615 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
616 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
617 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
618 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
619 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
620 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
622 2009-12-10 Ulrich Drepper <drepper@redhat.com>
625 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
626 *herrnop before returning.
627 * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
629 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
630 TRYAGAIN errors separately.
631 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
632 *name4_r after functions.
634 2009-12-09 Ulrich Drepper <drepper@redhat.com>
637 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
640 2009-11-05 Bruno Haible <bruno@clisp.org>
643 * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
644 argv argument as non-NULL.
645 (execle, execl, execlp): Mark the first ARG argument as non-NULL.
647 -2009-12-08 Ulrich Drepper <drepper@redhat.com>
649 * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
651 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
652 * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
654 2009-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
656 * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
658 * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
659 * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
660 * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
662 2009-11-30 Ulrich Drepper <drepper@redhat.com>
664 * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
667 2009-11-26 Ulrich Drepper <drepper@redhat.com>
669 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
670 only used on truly ancient kernel if configuration requires a more
673 2009-11-24 Ulrich Drepper <drepper@redhat.com>
676 * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
677 Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
679 * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
680 pass it on to __ptsname_internal.
681 (grantpt): Pass stat64 pointer to pts_name. Remove stat call here.
682 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
683 All the code from __ptsname_r but take additional parameter. Use that
684 instead of pointer to local stat64 variable.
685 (__ptsname_r): Call __ptsname_internal with pointer to local stat64
687 * include/stdlib.h: Declare __ptsname_internal.
689 * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
691 * sysdeps/unix/sysv/linux/grantpt.c: New file.
692 * login/programs/pt_chown.c (main): Don't print message on errors
693 when doing real work.
695 * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
698 * csu/elf-init.c (__libc_csu_irel): New function. Code to perform
699 irel relocations split out from...
700 (__libc_csu_init): ...here.
701 * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
703 2009-11-23 Andreas Schwab <schwab@redhat.com>
705 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
706 for timestamps also if __USE_XOPEN2K8.
707 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
708 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
709 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
710 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
712 2009-11-22 Ulrich Drepper <drepper@redhat.com>
714 * nscd/connections.c (restart): Try harder to re-exec.
716 * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
718 * sysdeps/unix/sysv/linux/ntp_gettimex.c: New file.
719 * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
720 * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
721 * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
722 some placeholders. Redirect ntp_gettime to ntp_gettimex.
723 * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
725 * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
727 (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
729 2009-11-18 H.J. Lu <hongjiu.lu@intel.com>
732 * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
733 than software pipeline. Properly recover from shorter read.
735 2009-11-19 Ulrich Drepper <drepper@redhat.com>
738 * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
739 initialized before using it.
740 (_IO_putwc_unlocked): Likewise.
743 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
744 in cast to not throw away const-ness of parameters.
745 (__CPU_EQUAL_S): Likewise.
746 (__CPU_OP_S): Likewise.
748 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
749 F_OWNER_PGRP and mark F_OWNER_GID obsolete. The kernel people made
750 this gratuitous change and we have to keep compatibility.
751 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
752 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
753 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
754 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
755 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
756 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
758 2009-11-17 Ulrich Drepper <drepper@redhat.com>
760 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
761 of parameters of sync_file_range.
762 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
763 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
764 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
765 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
766 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
767 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
769 2009-11-16 Jakub Jelinek <jakub@redhat.com>
771 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
772 Implement using sync_file_range2 syscall if __NR_sync_file_range2
774 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
777 2009-11-17 Paolo Bonzini <bonzini@gnu.org>
779 * posix/bug-regex30.c: New file.
780 * posix/Makefile: Add rules to build and run bug-regex30.
781 * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
782 character lead bytes when there is a range in a COMPLEX_BRACKET.
783 Reported by Oleg Bylatov.
785 2009-11-17 Ulrich Drepper <drepper@redhat.com>
788 * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
789 * locale/tst-duplocale.c: New file.
790 * locale/Makefile (tests): Add tst-duplocale.
793 * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
794 Patch by Bruno Haible <bruno@clisp.org>.
795 * locale/tst-locname.c: New file.
796 * locale/Makefile (tests): Add tst-locname.
799 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
800 constants from recent kernels.
801 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
802 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
803 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
804 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
805 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
806 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
808 2009-11-09 H.J. Lu <hongjiu.lu@intel.com>
811 * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
814 2009-11-09 Mike Frysinger <vapier@gentoo.org>
816 * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
817 (fallocate): Return ENOSYS if __NR_fallocate is not defined.
818 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
820 2009-11-06 Mike Frysinger <vapier@gentoo.org>
822 * posix/bug-regex29.c: Include stdio.h.
824 2009-11-14 Ulrich Drepper <drepper@redhat.com>
827 * Versions.def: Define GLIBC_2.12 for libc.
828 * manual/errno.texi: Add ERFKILL entry.
829 * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
831 * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
832 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
834 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
835 F_GETOWN_EX definitions according to corrected kernel definitions.
836 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
837 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
838 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
839 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
840 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
841 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
843 2009-11-12 Ulrich Drepper <drepper@redhat.com>
845 * version.h: Bump for 2.12 development.
847 2009-11-10 Andreas Schwab <schwab@redhat.com>
849 * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
851 * resolv/nss_dns/dns-host.c (getanswer_r): Check for
852 map_v4v6_hostent running out of space.
854 2009-11-10 Ulrich Drepper <drepper@redhat.com>
856 * string/bits/string3.h (memset): If the second parameter is constant
857 and zero there is likely no transposition.
858 Patch by Caolan McNamara <caolanm@redhat.com.
860 2009-11-04 Philippe De Muyter <phdm@macqel.be>
862 * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
863 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
865 2009-10-30 Holger Hans Peter Freyther <zecke@selfish.org>
867 * malloc/memusagestat.c (main): Fix spelling in an error message.
869 2009-11-01 H.J. Lu <hongjiu.lu@intel.com>
871 * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
872 * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
874 2009-11-03 Andreas Schwab <schwab@redhat.com>
876 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
879 2009-11-03 Jakub Jelinek <jakub@redhat.com>
881 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
882 relocate opd entry when resolving prelink conflicts.
884 2009-11-04 Jakub Jelinek <jakub@redhat.com>
886 * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
887 when -D_FILE_OFFSET_BITS=64.
889 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
890 of last two arguments when -D_FILE_OFFSET_BITS=64.
891 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
892 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
893 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
894 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
895 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
896 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
898 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
901 * sysdeps/generic/libgcc_s.h: New file.
902 * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
904 2009-11-01 Ulrich Drepper <drepper@redhat.com>
906 * malloc/hooks.c (free_check): Restore locking and call _int_free
909 2009-10-30 Ulrich Drepper <drepper@redhat.com>
911 * version.h (VERSION): Bump for 2.11 release.
912 * include/features.h (__GLIBC_MINOR__): Bump to 11.
914 * elf/tst-execstack.c (do_test): Add cast to avoid warning.
916 * stdio-common/scanf13.c (main): Remove unused variable wbuf.
918 * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
920 * stdlib/tst-strtoll.c (tests): Likewise.
923 * time/strftime_l.c (__strftime_internal): Allow %OC.
925 * misc/mkostemps.c: New file.
926 * misc/mkostemps64.c: New file.
928 2009-10-30 Andreas Schwab <schwab@redhat.com>
930 * locale/programs/locale-spec.c: Include <error.h> and
933 * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
935 2009-10-28 Roland McGrath <roland@redhat.com>
937 * Makefile (dist-prepare): New target.
938 (tag-for-dist): Target removed.
939 (glibc-%.tar): Pattern rule removed.
940 (%.tar): New pattern rule, does simple use of git archive.
941 (dist-version): Remove variable definition.
942 (dist): Just depend on that. Add .tar.xz dependency.
943 If dist-version variable not set on command line, depend on
944 dist-prepare, re-invoke with dist-version set via git describe.
946 * Makerules (%.xz): New pattern rule.
948 2009-10-28 Alan Modra <amodra@bigpond.net.au>
950 * elf/ifuncdep2.c: Include ifunc-sel.h.
952 (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
953 * elf/ifuncmain1.c (global): Delete.
954 * elf/ifuncmain1vis.c: Likewise.
955 * elf/ifuncmain2.c: Likewise.
956 * elf/ifuncmain5.c: Likewise.
957 * elf/ifuncmod3.c: Likewise.
958 * elf/ifuncmain6pie.c: Include ifunc-sel.h.
959 (foo_ifunc): Use ifunc_one.
960 * elf/ifuncmain7.c: Likewise.
961 * elf/ifuncmod1.c: Include ifunc-sel.h.
962 (global): Define protected var.
963 (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
964 * elf/ifuncmod5.c: Likewise.
965 * sysdeps/generic/elf/ifunc-sel.h: New file.
966 * sysdeps/powerpc/elf/ifunc-sel.h: New file.
968 2009-07-30 Alan Modra <amodra@bigpond.net.au>
970 * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
971 (R_PPC_REL16*): Correct comments.
972 (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
973 (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
974 R_PPC64_REL16_HA): Define.
975 * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
976 * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
977 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
978 Delete unused "reloc" param.
979 (__process_machine_rela): Handle R_PPC_IRELATIVE.
980 * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
981 Delete "reloc" param.
982 (elf_machine_rela): Handle STT_GNU_IFUNC functions and
984 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
985 (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
988 d2009-10-30 Ulrich Drepper <drepper@redhat.com>
991 * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
992 UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
996 * sysdeps/posix/tempname.c (__gen_tempname): Take new second
997 parameter, specifying length of prefix.
998 * stdio-common/tempname.c: Likewise.
999 * include/stdio.h: Adjust prototypes.
1000 * libio/oldtmpfile.c: Adjust caller.
1001 * misc/mkdtemp.c: Likewise.
1002 * misc/mkostemp.c: Likewise.
1003 * misc/mkostemp64.c: Likewise.
1004 * misc/mkstemp.c: Likewise.
1005 * misc/mkstemp64.c: Likewise.
1006 * misc/mktemp.c: Likewise.
1007 * stdio-common/tempnam.c: Likewise.
1008 * stdio-common/tmpfile.c: Likewise.
1009 * stdio-common/tmpnam.c: Likewise.
1010 * stdio-common/tmpnam_r.c: Likewise.
1011 * misc/mkstemps.c: New file.
1012 * misc/mkstemps64.c: New file.
1013 * stdlib/stdlib.h: Add prototypes.
1014 * misc/Makefile (routines): Add mkstemps and mkstemps64.
1015 * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1017 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1019 * locale/iso-639.def: Add sml entry.
1022 * resolv/res_send.c (send_dg): Initialize resplen.
1025 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1026 definition to the kernel's.
1027 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1029 2009-08-18 Anders Johansson <ajohansson@novell.com>
1031 * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1032 offsets and record sizes in assert()s and response sending.
1033 * nscd/grpcache.c: Likewise.
1034 * nscd/hstcache.c: Likewise.
1035 * nscd/initgrcache.c: Likewise.
1036 * nscd/pwdcache.c: Likewise.
1038 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1041 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1042 /etc/hosts does not exist set errnop and herrnop appropriately.
1043 Patch by Steve Langasek <vorlon@debian.org>.
1046 * malloc/malloc.c (malloc_info): Fix typos in format strings.
1047 Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1050 * login/utmp_file.c (TIMEOUT): Increase to 10.
1053 * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1054 for file names in case the syscall is not available.
1055 * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1056 * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1057 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1058 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1059 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1060 * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1061 * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1062 * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1063 * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1064 * sysdeps/unix/sysv/linux/openat.c: Likewise.
1065 * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1066 * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1067 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1068 * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1069 * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1070 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1071 * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1074 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1075 creation filed, remove the request from the 'requests' list and signal
1076 the caller that the request is finished.
1079 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1080 in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.
1083 * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1084 from intern.start. Patch by Joe Landers <jlanders@vmware.com>.
1087 * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1088 overflows the int return type.
1091 * malloc/memusagestat.c (main): Fix repairing of trace files. We also
1092 have to compute maxsize_total, we have to update the variables, and
1093 the also_total handling must happen after the repair.
1096 * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1097 Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1099 2009-10-27 Andreas Schwab <schwab@redhat.com>
1101 * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1102 errno is always set when returning unsuccessfully.
1104 2009-10-29 Andreas Schwab <schwab@redhat.com>
1106 * malloc/memusage.c (update_data): Fix index wraparound handling
1107 so that buffer_cnt is actually reset.
1109 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1112 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1113 of the directory we look at into the static buffer if there is one
1114 at the start of the loop.
1117 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1118 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1121 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1122 __ASSUME_F_GETOWN_EX.
1123 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1125 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1127 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1129 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1130 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1131 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1132 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1133 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1134 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1137 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1141 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1142 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
1144 2009-10-24 Joseph Myers <joseph@codesourcery.com>
1146 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1148 2009-10-27 Jakub Jelinek <jakub@redhat.com>
1151 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1152 Reported by Ray Chason.
1154 2009-10-21 H.J. Lu <hongjiu.lu@intel.com>
1156 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1158 * sysdeps/x86_64/multiarch/strchr.S: New file.
1159 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1160 * sysdeps/x86_64/multiarch/strrchr.S: New file.
1162 2009-10-21 Andreas Schwab <schwab@redhat.com>
1164 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1166 2009-10-19 Andreas Schwab <schwab@redhat.com>
1168 * include/math.h: Add hidden protos for __exp/__expf/__expl.
1169 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1170 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1171 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1172 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1173 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1174 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1175 __ieee751_expl to handle overflow.
1177 2009-10-14 David S. Miller <davem@davemloft.net>
1179 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1180 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1182 2009-10-13 Andreas Schwab <schwab@redhat.com>
1184 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1187 2009-10-08 Ulrich Drepper <drepper@redhat.com>
1190 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1191 Patch in part by Steve Ward <planet36@gmail.com>.
1194 * stdlib/rand_r.c: Fix typo.
1196 * po/cs.po: Update from translation team.
1198 2009-10-06 Andreas Schwab <schwab@redhat.com>
1200 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1201 returning if RTLD_NOLOAD.
1203 2009-10-06 Roland McGrath <roland@redhat.com>
1205 * sysdeps/x86_64/multiarch/strstr-c.c
1206 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1208 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1209 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1211 * sysdeps/x86_64/multiarch/init-arch.h
1212 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1213 (HAS_CPU_FEATURE): New macro.
1214 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1215 * sysdeps/x86_64/multiarch/init-arch.c
1216 (__get_cpu_features): #undef it before definition.
1218 2009-10-05 Andreas Schwab <schwab@redhat.com>
1220 * locale/C-time.c: Revert week-1stday back to 19971130 and set
1221 first_weekday to 1 and first_workday to 2.
1223 2009-10-01 Ulrich Drepper <drepper@redhat.com>
1225 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1227 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1228 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1229 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1230 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1231 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1232 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1234 2009-09-28 Andreas Schwab <schwab@redhat.com>
1236 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1237 * stdio-common/vfprintf.c: Likewise.
1239 2009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
1241 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1242 (mkdirat): Call __directory_name_split_at instead of
1243 __directory_name_split.
1245 2009-09-28 Ulrich Drepper <drepper@redhat.com>
1247 * locale/programs/locale-spec.c (locale_special): If nothing matches
1248 fail with an appropriate message.
1250 2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
1252 * configure.in: Exclude binutils 2.X. Support binutils 2.100
1255 2009-09-25 Andreas Schwab <schwab@redhat.com>
1257 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1258 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1260 2009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1262 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1264 2009-09-20 Andreas Schwab <schwab@linux-m68k.org>
1266 * iconvdata/iso646.c (gconv_init): Correctly initialize the
1267 character size elements in step data.
1269 2009-09-20 Ulrich Drepper <drepper@redhat.com>
1271 * po/hu.po: Update from translation team.
1272 * po/vi.po: Likewise.
1274 2009-09-19 Roland McGrath <roland@redhat.com>
1276 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1278 2009-09-15 Roland McGrath <roland@redhat.com>
1280 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1281 * nptl/sysdeps/pthread/configure: Regenerated.
1282 * nptl/sysdeps/x86_64/configure: Regenerated.
1283 * sysdeps/unix/sysv/linux/configure: Regenerated.
1284 * sysdeps/x86_64/elf/configure: Regenerated.
1286 * Makefile (autoconf-it): Set execute bit only on top-level configure.
1288 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1289 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1290 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1291 * configure: Regenerated.
1293 2009-09-09 Ulrich Drepper <drepper@redhat.com>
1295 * posix/getconf.c (main): Handle -- on command line.
1297 2009-09-05 H.J. Lu <hongjiu.lu@intel.com>
1299 * configure.in: Support binutils 2.100 and 3.0.
1301 2009-09-08 Jakub Jelinek <jakub@redhat.com>
1303 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1304 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1305 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1306 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1308 2009-09-07 Ulrich Drepper <drepper@redhat.com>
1310 * locale/programs/ld-collate.c (struct locale_collate_t): Add
1311 unnamed_section_defined field.
1312 (collate_read): Test and set unnamed_section_defined.
1314 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1317 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
1319 * configure.in: Support binutils 2.20.
1321 2009-09-03 Ulrich Drepper <drepper@redhat.com>
1323 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1324 __strstr_ia32): Add attribute_hidden.
1326 2009-09-01 Andreas Schwab <schwab@redhat.com>
1328 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1329 parsing of group entry.
1331 2009-09-02 Andreas Schwab <schwab@redhat.com>
1333 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1334 external buffer. Always discard readahead in internal buffer.
1335 * libio/Makefile (tests): Add bug-wsetpos.
1336 * libio/bug-wsetpos.c: New file.
1338 2009-09-02 Jakub Jelinek <jakub@redhat.com>
1340 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1341 Add attribute_hidden.
1342 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1343 __strcasestr_sse2): Likewise.
1344 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1345 (__fma_fma): Make static.
1346 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1347 (__fmaf_fma): Make static.
1349 2009-08-31 Andreas Schwab <schwab@redhat.com>
1351 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1352 reformulate in-buffer optimisation check to match code in
1353 _IO_new_file_seekoff.
1355 2009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
1357 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1358 to srwi in 32-bit memcpy for power6.
1360 2009-09-01 Andreas Schwab <schwab@redhat.com>
1362 * include/stdio.h: Declare hidden proto for fflush.
1363 * libio/iofflush.c: Add hidden weak alias for fflush.
1365 2009-09-01 Jakub Jelinek <jakub@redhat.com>
1367 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1368 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1370 2009-08-31 Andreas Schwab <schwab@redhat.com>
1372 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1374 2009-08-31 Ulrich Drepper <drepper@redhat.com>
1377 * malloc/malloc.c: Add local assert definition to avoid problems with
1378 memory allocation in the real one.
1380 2009-08-27 H.J. Lu <hongjiu.lu@intel.com>
1382 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1384 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1385 turn off SSSE3 on Atom.
1387 2009-08-28 Ulrich Drepper <drepper@redhat.com>
1389 * stdlib/tst-strtol.c (tests): More tests.
1390 * stdlib/tst-strtoll.c (tests): Likewise.
1392 2009-08-26 Ulrich Drepper <drepper@redhat.com>
1394 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1396 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1398 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1400 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1401 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1403 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1405 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1407 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1409 2009-08-25 Joseph Myers <joseph@codesourcery.com>
1411 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1413 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1415 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1416 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1418 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1420 * sysdeps/x86_64/fpu/s_signbit.S: New file.
1421 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1423 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1424 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1426 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1427 leftover YMM_SIZE definition.
1429 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1431 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1433 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1434 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1436 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1438 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1439 and SET_FLOAT_WORD definitions.
1441 2009-08-24 Roland McGrath <roland@redhat.com>
1443 * sysdeps/unix/syscall-template.S: New file.
1444 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1445 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1446 (compile-syscall): Pass mkdep and -g options as normal.
1447 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1448 (common-generated): Don't add them here.
1450 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1452 * math/s_fdim.c: In case of overflows set errno.
1453 * math/s_fdimf.c: Likewise.
1454 * math/s_fdiml.c: Likewise.
1456 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1457 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1458 are using the inline optimizations.
1460 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1461 (__signbitf): Likewise.
1463 2009-08-23 Ulrich Drepper <drepper@redhat.com>
1465 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1467 * posix/Makefile (tests): Add bug-regex29.
1468 * posix/bug-regex29.c: New file.
1470 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1471 older POSIX versions are selected.
1473 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1475 * stdio-common/printf_fphex.c: Likewise.
1476 * stdio-common/tstdiomisc.c: Add more tests.
1478 * locale/locale.h: Include xlocale.h and the thread-local locale
1479 declarations for XPG7, not XPG6.
1481 2009-08-21 Andreas Schwab <schwab@redhat.com>
1483 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1484 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1485 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1486 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1487 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1488 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1490 2009-08-20 Roland McGrath <roland@redhat.com>
1492 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1493 Use l_addr instead of l_map_start (dli_fbase).
1494 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1495 address when there is no proximate symbol.
1496 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1499 2009-08-16 Ulrich Drepper <drepper@redhat.com>
1501 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1503 2009-08-14 Ulrich Drepper <drepper@redhat.com>
1505 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1506 Also handle SIGINT. In that case only do the cleanup and then
1507 re-raise the signal.
1508 (main): Install handler for SIGINT.
1510 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1512 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1515 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
1517 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1518 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1520 (tests): Add tst-audit6 tst-audit7.
1521 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1522 tst-auditmod7a tst-auditmod7b.
1523 ($(objpfx)tst-audit6): New.
1524 ($(objpfx)tst-audit6.out): Likewise.
1525 ($(objpfx)tst-audit7): Likewise.
1526 ($(objpfx)tst-audit7.out): Likewise.
1527 (tst-audit6-ENV): Likewise.
1528 (tst-audit7-ENV): Likewise.
1529 (CFLAGS-tst-auditmod6b.c): Likewise.
1530 (CFLAGS-tst-auditmod6c.c): Likewise.
1531 (CFLAGS-tst-auditmod7b.c): Likewise.
1532 * elf/tst-audit6.c: New file.
1533 * elf/tst-audit7.c: New file.
1534 * elf/tst-auditmod6a.c: New file.
1535 * elf/tst-auditmod6b.c: New file.
1536 * elf/tst-auditmod6c.c: New file.
1537 * elf/tst-auditmod7a.c: New file.
1538 * elf/tst-auditmod7b.c: New file.
1539 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1540 saving and restoring SSE/AVX registers to ...
1541 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1543 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1545 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1546 only if SHARED is defined.
1547 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1549 2009-08-03 Jim Meyering <meyering@redhat.com>
1551 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1553 2009-08-08 Ulrich Drepper <drepper@redhat.com>
1555 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1556 section as the other functions for this architecture.
1557 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1559 2009-08-07 Ulrich Drepper <drepper@redhat.com>
1561 * sysdeps/x86_64/strcmp.S: Add support to compile with
1562 USE_SSSE3. In this case palignr is used.
1563 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1564 available but SSSE3 is, pick __str{,n}cmp_ssse3.
1565 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1566 Add strcmp-ssse3 and strncmp-ssse3.
1567 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1568 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1570 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1571 warning through fake initialization.
1573 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1575 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1577 2009-08-07 Andreas Schwab <schwab@redhat.com>
1579 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1582 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
1584 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1585 EBX from EAX = 1. Handle EAX = 11.
1587 2009-08-07 Andreas Schwab <schwab@redhat.com>
1589 * Makefile (TAGS): Use separate sed -e expressions to avoid \
1592 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
1594 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1595 hidden IFUNC functions.
1596 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1598 * sysdeps/i386/i686/multiarch/strlen.S: New file.
1600 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1601 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1603 (CFLAGS-strcspn-c.c): Define.
1604 (CFLAGS-strpbrk-c.c): Define.
1605 (CFLAGS-strspn-c.c): Define.
1606 (CFLAGS-strstr.c): Define.
1607 (CFLAGS-strcasestr.c): Define.
1608 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1609 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1610 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1611 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1612 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1613 * sysdeps/i386/i686/multiarch/strspn.S: New file.
1614 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1615 * sysdeps/i386/i686/multiarch/strstr.c: New file.
1616 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1617 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1618 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1619 -16L instead of 0xfffffffffffffff0L.
1620 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1622 2009-08-02 Ulrich Drepper <drepper@redhat.com>
1624 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1626 2009-07-31 Ulrich Drepper <drepper@redhat.com>
1628 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1629 another rewrite. Much smaller and faster.
1630 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1632 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1633 ss_flags from the correct location.
1635 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
1637 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1638 * sysdeps/i386/i686/cacheinfo.c: New file.
1639 * sysdeps/i386/i686/multiarch/Makefile: New file.
1640 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1641 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1642 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1643 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1644 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1645 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1646 (__cpuid_count): New. Provide the default.
1647 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1648 (__x86_64_preferred_memory_instruction): Define only if
1649 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1650 (intel_check_word): Use __cpuid.
1651 (handle_intel): Likewise.
1652 (handle_amd): Likewise.
1653 (__cache_sysconf): Likewise.
1654 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1655 (__cache_sysconf): Likewise.
1656 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1657 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1658 (get_common_indeces): Use __cpuid.
1659 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
1660 if ENABLE_SSSE3_ON_ATOM is not defined.
1661 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1662 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1663 popcnt instead of popcntq.
1665 2009-07-31 Jakub Jelinek <jakub@redhat.com>
1667 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1669 2009-07-30 Ulrich Drepper <drepper@redhat.com>
1671 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1672 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
1673 which always causes a compile error.
1675 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1677 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
1679 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
1680 which always causes a compile error.
1682 * debug/Makefile (tests): Add tst-longjmp_chk2.
1683 * debug/tst-longjmp_chk2.c: New file.
1685 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
1686 Remove incorrect use of BP_SYM.
1687 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
1688 here now since it is more complex than just a simple check.
1690 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1691 we make no more progress.
1693 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1695 * math/s_fma.c: Don't define alias if __fma is a macro.
1696 * math/s_fmaf.c: Likewise.
1697 * sysdeps/x86_64/multiarch/s_fma.c: New file.
1698 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1699 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1701 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1702 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1704 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1706 * include/libc-symbols.h (libm_ifunc): Define.
1707 * sysdeps/x86_64/multiarch/Versions: New file.
1709 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1711 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
1713 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1715 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1717 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1718 call that registers used in calling conventions need to be preserved.
1719 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1720 to preserve register content if necessary.
1721 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1722 (_dl_x86_64_restore_sse): New function.
1723 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1724 is allowed to modify xmm/ymm registers.
1726 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
1727 application's perspective.
1728 * stdio-common/scanf17.c: Likewise.
1730 2009-07-28 Ulrich Drepper <drepper@redhat.com>
1732 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1734 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1736 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1737 two steps to catch bugs.
1739 2009-07-27 Ulrich Drepper <drepper@redhat.com>
1741 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
1742 determines which files are used in runtime lookups and only checks
1744 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
1746 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1747 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1748 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1751 * elf/dl-open.c: Move _dl_scope_free to...
1752 * elf/dl-scope.c: ...here. New file.
1753 * elf/Makefile (dl-routines): Add scope.
1755 * resolv/resolv.h (RES_USE_DNSSEC): Define.
1756 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1758 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1759 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1760 all the places we handled RES_USE_EDNS0 only before.
1761 Patch by Adam Tkac <atkac@redhat.com>.
1763 2009-07-27 Jakub Jelinek <jakub@redhat.com>
1765 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1766 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
1767 Update size when reallocating.
1769 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1771 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
1772 functions used in ld.so modify xmm/ymm registers.
1773 * sysdeps/x86_64/Makefile: Hook new test up.
1774 * sysdeps/x86_64/rtld-memchr.c: New file.
1775 * sysdeps/x86_64/rtld-memcmp.c: New file.
1776 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1777 * sysdeps/x86_64/rtld-strchr.S: New file.
1778 * sysdeps/x86_64/rtld-strlen.S: New file.
1779 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1780 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1782 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
1784 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1786 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1794 (next_8_bytes): Likewise.
1795 (Byte0): Remove commented out codes.
1796 (unaligned_table): Align jump table at 8 bytes.
1797 Add _sse4_2 to all labels. Always include "../strcmp.S".
1798 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1799 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1800 * sysdeps/x86_64/strncmp.S: New file.
1802 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1805 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1806 kernels, dropped when eventfd2 support was added.
1807 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1808 kernels, dropped when signalfd4 support was added.
1809 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1813 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1816 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1818 2009-07-25 Ulrich Drepper <drepper@redhat.com>
1820 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1821 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
1824 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1825 callback we must touch the status to avoid using stale value.
1827 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1830 2009-07-24 Ulrich Drepper <drepper@redhat.com>
1832 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1833 /lib/modules/* headers anymore. We have sane headers in the standard
1836 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1838 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1839 "etf3enh" and "highgprs" added.
1840 (_dl_s390_platforms): "z10" added.
1841 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1842 Increased for the new entries.
1843 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1844 HWCAP_S390_HIGH_GPRS added.
1846 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1847 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1848 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1849 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1850 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1852 2009-07-23 Ulrich Drepper <drepper@redhat.com>
1854 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1855 avoid additional cpuid instructions. Most of the information is
1858 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1860 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1862 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1863 SSSE3 bit for Atoms.
1864 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1867 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1868 structure before copying it to avoid warning.
1869 * posix/tst-rfc3484-2.c (do_test): Likewise.
1870 * posix/tst-rfc3484-3.c (do_test): Likewise.
1873 * include/unistd.h: Make header file suitable for C++ test cases.
1874 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1876 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1877 stack alignment in the exit code.
1879 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1880 potentially be zero.
1882 * elf/tst-unique1.c: Extend test to check for unloading DSO with
1883 unique symbol definition.
1884 Patch by Jakub Jelinek.
1885 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1886 make sure the object with the definition cannot be unloaded. Adjust
1888 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1889 the unique symbol hash table should not be const.
1891 2009-07-21 Ulrich Drepper <drepper@redhat.com>
1893 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
1894 unnecesary variables. Comment fixes.
1896 2009-07-20 Ulrich Drepper <drepper@redhat.com>
1898 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1899 Use NONASCII_CASE information provided by the locale to determine
1900 whether optimized string load function can be used. Minor cleanups.
1902 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
1904 * string/strcasestr.c (STRCASESTR): New macro.
1905 (__strcasestr): Renamed to ..
1906 (STRCASESTR): ...this.
1907 * string/strstr.c (STRSTR): New macro.
1908 (strstr): Renamed to ..
1910 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1911 strstr-c strcasestr-c
1912 (CFLAGS-strstr.c): New.
1913 (CFLAGS-strcasestr.c): Likewise.
1914 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1915 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1916 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1917 * sysdeps/x86_64/multiarch/strstr.c: New file.
1919 2009-07-20 Ulrich Drepper <drepper@redhat.com>
1921 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1922 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1923 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1924 _NL_CTYPE_NONASCII_CASE.
1925 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1927 (ctype_finish): Check whether there are any 8-bit characters outside
1928 the range ASCII has or whether the mapping isn't the same as for
1929 ASCII (±0x20). Set nonascii_case appropriately.
1930 (ctype_output): Add output handler for nonascii_case.
1932 2009-07-17 Ulrich Drepper <drepper@redhat.com>
1934 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1935 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1937 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1940 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1941 0xffff in the EDNS0 record.
1943 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1945 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1946 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1947 is written before the list head update.
1948 Patch by Andreas Schwab <aschwab@redhat.com>.
1950 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1951 Jakub Jelinek <jakub@redhat.com>
1953 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1954 corruption thread-safe.
1956 2009-07-13 Jakub Jelinek <jakub@redhat.com>
1958 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1959 overrides atomic_compare_and_exchange_val_rel, define to
1960 atomic_compare_and_exchange_val_rel by default, otherwise default
1961 to catomic_compare_and_exchange_val_acq.
1962 (catomic_compare_and_exchange_bool_rel): If arch overrides
1963 atomic_compare_and_exchange_bool_rel, define to
1964 atomic_compare_and_exchange_bool_rel by default.
1965 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1966 Use catomic_compare_and_exchange_val_rel instead of
1967 catomic_compare_and_exchange_val_acq.
1969 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1971 * sysdeps/generic/ldsodefs.h: Add prototype for
1972 _dl_higher_prime_number.
1973 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1975 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1976 restoring of ymm registers a bit.
1978 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
1980 * sysdeps/x86_64/memcmp.S: New file.
1982 2009-07-15 Ulrich Drepper <drepper@redhat.com>
1984 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1985 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
1986 pointers in writable memory.
1988 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
1990 * config.h.in: Add HAVE_AVX_SUPPORT entry.
1991 * config.make.in: Add config-cflags-avx entry.
1992 * configure.in: Substitute libc_cv_cc_avx.
1993 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1994 * elf/tst-audit4.c: New file.
1995 * elf/tst-audit5.c: New file.
1996 * elf/tst-auditmod4a.c: New file.
1997 * elf/tst-auditmod4b.c: New file.
1998 * elf/tst-auditmod5a.c: New file.
1999 * elf/tst-auditmod5b.c: New file.
2000 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2002 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2003 (La_x86_64_vector): Likewise.
2004 (La_x86_64_regs): Append lr_vector.
2005 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2006 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2007 saving and restoring SSE registers to ...
2008 * sysdeps/x86_64/dl-trampoline.h: This. New file.
2009 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2011 (_dl_runtime_profile): Use LR_SIZE to allocate space for
2012 La_x86_64_regs. Allocate extra space and jump to memory at
2013 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2014 (save_and_restore_vector_sse): New.
2015 (save_and_restore_vector_avx): Likewise.
2016 (check_avx): Likewise.
2017 (save_and_restore_vector): Likewise.
2018 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2020 * sysdeps/x86_64/link-defines.sym: New file.
2022 2009-07-10 Ulrich Drepper <drepper@redhat.com>
2024 * elf/do-lookup.h: Removed after folding content into...
2025 * elf/dl-lookup.c: ...here.
2027 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2029 2009-07-09 Ulrich Drepper <drepper@redhat.com>
2031 * configure.in: Check for gnu_unique_symbol symbol type.
2032 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2033 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2034 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
2035 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2037 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2038 unique symbol table.
2039 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2040 for first namespace.
2041 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2042 unique symbol hash table.
2043 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2044 * elf/tst-unique1.c: New file.
2045 * elf/tst-unique1mod1.c: New file.
2046 * elf/tst-unique1mod2.c: New file.
2047 * elf/tst-unique2.c: New file.
2048 * elf/tst-unique2mod1.c: New file.
2049 * elf/tst-unique2mod2.c: New file.
2051 2009-07-07 Ulrich Drepper <drepper@redhat.com>
2053 * elf/elf.h (STB_GNU_UNIQUE): Define.
2055 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
2057 * include/inline-hashtab.h: ...here.
2058 (htab_expand): Adjust for renamed function. Correct memory handling.
2060 2009-07-06 Ulrich Drepper <drepper@redhat.com>
2062 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2064 2009-07-03 Andreas Schwab <aschwab@redhat.com>
2066 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2067 (PPC_FEATURE_HAS_VSX): Likewise.
2069 2009-07-03 Ulrich Drepper <drepper@redhat.com>
2071 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2072 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2074 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2075 aligned to 16 byte boundaries.
2076 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2077 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2078 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2080 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
2082 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2083 * config.make.in (config-cflags-sse4): New variable.
2084 * configure.in: Substitute libc_cv_cc_sse4.
2085 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2087 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2088 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2089 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2090 * sysdeps/x86_64/multiarch/strcspn.S: New file.
2091 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2092 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2093 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2094 * sysdeps/x86_64/multiarch/strspn.S: New file.
2096 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
2098 * elf/Makefile (distribute): Remove tst-audit.sh. Add
2099 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2100 (tests): Add tst-audit3 for x86_64.
2101 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2102 ($(objpfx)tst-audit3): Define.
2103 ($(objpfx)tst-audit3.out): Define.
2104 (tst-audit3-ENV): Define.
2105 * elf/tst-audit3.c: New file.
2106 * elf/tst-auditmod3a.c: New file.
2107 * elf/tst-auditmod3b.c: New file.
2108 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2111 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
2112 (__stpncpy): Renamed to ...
2114 (stpncpy): Create alias only if STPNCPY is not defined.
2115 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
2117 (strncpy): Renamed to ...
2119 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2120 stpncpy-c strncpy-c for string.
2121 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2122 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2123 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2124 * sysdeps/x86_64/multiarch/strcpy.S: New file.
2125 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2126 * sysdeps/x86_64/multiarch/strncpy.S: New file.
2128 2009-07-02 Ulrich Drepper <drepper@redhat.com>
2130 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2131 adding to fast bin list.
2133 2009-07-01 Ulrich Drepper <drepper@redhat.com>
2135 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2136 inet_makeaddr. This worked only with class-based networks.
2137 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2140 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2141 recognize all types.
2142 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2143 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
2144 be in host byte order.
2146 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
2148 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2149 (MODEL_OFFSET): Define.
2150 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2152 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2153 out common code into new function get_common_indeces. Determine
2154 extended family and model for Intel processors.
2156 2009-06-26 Ulrich Drepper <drepper@redhat.com>
2158 * resolv/resolv.h: Define RES_SNGLKUPREOP.
2159 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2161 * resolv/res_send.c (reopen): New function. Broken out of...
2162 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
2163 fallback mechanism. If single-request fails switch to
2164 single-request-reopen mode which opens a new socket for the second
2167 2009-06-25 Andreas Schwab <aschwab@redhat.com>
2169 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2172 2009-06-24 Andreas Schwab <aschwab@redhat.com>
2174 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2175 for saved registers.
2176 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2177 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2178 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2180 2009-06-23 Andreas Schwab <aschwab@redhat.com>
2182 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2184 2009-06-22 Ulrich Drepper <drepper@redhat.com>
2186 * po/id.po: Update from translation team.
2188 * po/bg.po: Update from translation team.
2190 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
2192 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
2194 (strncmp): Renamed to STRNCMP.
2195 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2196 strncmp-c for string.
2197 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2198 * sysdeps/x86_64/multiarch/strcmp.S: New file.
2199 * sysdeps/x86_64/multiarch/strncmp.S: New file.
2200 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2202 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
2204 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2205 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2206 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2207 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2208 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2210 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2211 ifuncmain7static, and ifuncmain7picstatic.
2212 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2213 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2214 $(objpfx)ifuncmain7pie.out.
2215 (modules-names): Add ifuncmod5 ifuncmod6
2216 (ifuncmod5.so-no-z-defs): Define.
2217 (ifuncmod6.so-no-z-defs): Define.
2218 (CFLAGS-ifuncmain5pic.c): Define.
2219 (CFLAGS-ifuncmain5picstatic.c): Define.
2220 (CFLAGS-ifuncmain5staticpic.c): Define.
2221 (CFLAGS-ifuncdep5pic.c): Define.
2222 (CFLAGS-ifuncmain7pic.c): Define.
2223 (CFLAGS-ifuncmain7picstatic.c): Define.
2224 (CFLAGS-ifuncmain1staticpie.c): Define.
2225 (CFLAGS-ifuncmain5pie.c): Define.
2226 (CFLAGS-ifuncmain6pie.c): Define.
2227 (CFLAGS-ifuncmain7pie.c): Define.
2228 ($(objpfx)ifuncmain1staticpie.out): Define.
2229 ($(objpfx)ifuncmain1staticpie): Define.
2230 ($(objpfx)ifuncmain5pie.out): Define.
2231 ($(objpfx)ifuncmain5pie): Define.
2232 ($(objpfx)ifuncmain6pie.out): Define.
2233 ($(objpfx)ifuncmain6pie): Define.
2234 ($(objpfx)ifuncmain5): Define.
2235 ($(objpfx)ifuncmain5pic): Define.
2236 ($(objpfx)ifuncmain5static): Define.
2237 ($(objpfx)ifuncmain5staticpic): Define.
2238 ($(objpfx)ifuncmain5picstatic): Define.
2239 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2240 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2242 * elf/b/elf/ifuncmain1staticpie.c: New file.
2243 * elf/ifuncdep5.c: New file.
2244 * elf/ifuncdep5pic.c: New file.
2245 * elf/ifuncmain5.c: New file.
2246 * elf/ifuncmain5pic.c: New file.
2247 * elf/ifuncmain5picstatic.c: New file.
2248 * elf/ifuncmain5pie.c: New file.
2249 * elf/ifuncmain5static.c: New file.
2250 * elf/ifuncmain5staticpic.c: New file.
2251 * elf/ifuncmain6pie.c: New file.
2252 * elf/ifuncmain7.c: New file.
2253 * elf/ifuncmain7pic.c: New file.
2254 * elf/ifuncmain7picstatic.c: New file.
2255 * elf/ifuncmain7pie.c: New file.
2256 * elf/ifuncmain7static.c: New file.
2257 * elf/ifuncmod5.c: New file.
2258 * elf/ifuncmod6.c: New file.
2260 2009-06-20 Ulrich Drepper <drepper@redhat.com>
2263 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2264 (nss_endgrent): New variable.
2265 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2266 fields. Change type of files to bool and adjust all users.
2267 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2268 (internal_endgrent): Call nss_endgrent if necessary.
2269 (add_group): New function. Broken out of...
2270 (check_and_add_group): ...here.
2271 (getgrent_next_nss): Remove test that any callback is available.
2272 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2273 callback. If there is no blacklist we can trust the results returned
2274 by the initgroups_dyn callback. In case there is a callback and we
2275 find a group entry for the group ID but it doesn't contain the
2276 correct member, switch to the slow mode and use getgrent_r.
2277 (internal_getgrent_r): When we see a +: entry, determine whether
2278 there is any callback and which we can use the initgroups_dyn
2281 2009-06-18 Ulrich Drepper <drepper@redhat.com>
2283 * malloc/malloc.c (_int_malloc): Add some consistency checks.
2284 (_int_free): Likewise.
2286 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2288 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2289 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2290 and ARPHRD_IEEE802154_PHY.
2292 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2293 relative to generic Linux version.
2295 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
2297 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2298 ($(objpfx)ifuncmain1vispie): Likewise.
2300 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2302 * login/Makefile: Build pt_chown as PIE.
2304 2009-06-15 Andreas Schwab <aschwab@redhat.com>
2306 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2308 * elf/sln.c (usage): Likewise.
2309 * malloc/memusage.sh (do_help): Likewise.
2310 * nss/getent.c (more_help): Likewise.
2311 * posix/getconf.c (main): Likewise.
2312 * sunrpc/rpcinfo.c (usage): Likewise.
2313 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2315 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2317 * login/programs/pt_chown.c: Use libcap to drop privileges other than
2319 * login/Makefile: If necessary link pt_chown with -lcap.
2320 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2321 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2323 2009-06-16 Jakub Jelinek <jakub@redhat.com>
2325 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2327 * string/test-memchr.c (do_random_tests): Test very large lengths
2330 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2332 * Makeconfig (+link-pie): Define.
2333 (+prectorS): Define.
2334 (+postctorS): Define.
2335 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2336 * nscd/Makefile ($(objpfx)nscd): Likewise.
2338 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
2341 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2343 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2345 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2347 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2349 * sysdeps/unix/grantpt.c: ...here.
2351 2009-06-15 Ulrich Drepper <drepper@redhat.com>
2353 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2354 chmod if it is necessary.
2357 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2358 when the slave device is in devpts or devfs.
2361 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2364 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2365 of nd_opt_home_agent_info_preference to uint16_t.
2366 Patch by Arnaud Ebalard <arno@natisbad.org>.
2369 * nss/getent.c: Add support for printing gshadow data.
2372 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2373 not just the currently used one and those which follow.
2374 Patch by Joe Landers <jlanders@vmware.com>.
2377 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2378 * libio/Makefile: Run tst-fgetwc with necessary envvar.
2379 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2382 * stdlib/abort.c: Define variable __abort_msg.
2383 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2384 * include/stdlib.h: Declare __abort_msg.
2385 * assert/assert-perr.c: Don't free buffer for message immediately.
2386 Store atomically in __abort_msg and free old buffer if necessary.
2387 * assert/assert.c: Likewise.
2388 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2389 store pointer in __abort_msg, and possibly free old string.
2390 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2392 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2395 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2396 handle leap seconds if they are available.
2397 Patch by Akinori Hattori <hattya@gentoo.org>.
2399 * timezone/tzselect.ksh: Update from tzcode2009i.
2400 * timezone/zdump.c: Likewise.
2401 * timezone/zic.c: Likewise.
2403 * timezone/africa: Update from tzdata2009i.
2404 * timezone/antarctica: Likewise.
2405 * timezone/asia: Likewise.
2406 * timezone/australasia: Likewise.
2407 * timezone/backward: Likewise.
2408 * timezone/etcetera: Likewise.
2409 * timezone/europe: Likewise.
2410 * timezone/factory: Likewise.
2411 * timezone/iso3166.tab: Likewise.
2412 * timezone/leapseconds: Likewise.
2413 * timezone/northamerica: Likewise.
2414 * timezone/pacificnew: Likewise.
2415 * timezone/solar87: Likewise.
2416 * timezone/solar88: Likewise.
2417 * timezone/solar89: Likewise.
2418 * timezone/southamerica: Likewise.
2419 * timezone/systemv: Likewise.
2420 * timezone/yearistype: Likewise.
2421 * timezone/zone.tab: Likewise.
2423 2009-06-15 Jakub Jelinek <jakub@redhat.com>
2425 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2426 STT_GNU_IFUNC symbol or in 8 into type_class.
2428 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2429 instead of Elf64_Addr.
2431 2009-06-14 Ulrich Drepper <drepper@redhat.com>
2433 * po/sv.po: Update from translation team.
2436 * misc/sys/select.h (__NFDBITS): Expression should have type int.
2437 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2438 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
2441 2009-06-12 Ulrich Drepper <drepper@redhat.com>
2443 * Versions.def: Add GLIBC_2.11 for libpthread.
2445 2009-06-11 Ulrich Drepper <drepper@redhat.com>
2447 * resolv/res_send.c (send_dg): Remember we switched to
2448 single-request mode.
2450 2009-06-09 Ulrich Drepper <drepper@redhat.com>
2452 * dlfcn/dlfcn.h: Remove comma at end of enum.
2453 Patch by J.H.M. Dassen <rdassen@redhat.com>.
2455 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2456 parsing mode string.
2458 2009-06-05 Ulrich Drepper <drepper@redhat.com>
2460 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2462 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2464 * sysdeps/x86_64/multiarch/strlen.S: New file.
2465 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2466 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2467 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2470 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2473 2009-06-04 Ulrich Drepper <drepper@redhat.com>
2475 * sysdeps/x86_64/strlen.S: Minor optimizations.
2477 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2479 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2480 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2481 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2482 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2483 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2484 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2485 ifuncmain3.c, ifuncmod3.c,.
2486 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2487 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2488 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2489 ifuncmain4picstatic.
2490 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2491 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2492 ifuncmain3, ifuncmain4.
2493 (tests): Depend on $(objpfx)ifuncmain1pie.out and
2494 $(objpfx)ifuncmain1vispie.out.
2495 (modules-names): Add ifuncmod1 ifuncmod3.
2496 (generated): Add ifuncmain1pie ifuncmain1pie.out
2497 ifuncmain1vispie ifuncmain1vispie.out.
2498 Define rules to build and run the tests.
2499 * elf/ifuncdep1.c: New file.
2500 * elf/ifuncdep1pic.c: New file.
2501 * elf/ifuncdep2.c: New file.
2502 * elf/ifuncdep2pic.c: New file.
2503 * elf/ifuncmain1.c: New file.
2504 * elf/ifuncmain1pic.c: New file.
2505 * elf/ifuncmain1picstatic.c: New file.
2506 * elf/ifuncmain1pie.c: New file.
2507 * elf/ifuncmain1static.c: New file.
2508 * elf/ifuncmain1staticpic.c: New file.
2509 * elf/ifuncmain1vis.c: New file..
2510 * elf/ifuncmain1vispic.c: New file..
2511 * elf/ifuncmain1vispie.c: New file.
2512 * elf/ifuncmain2.c: New file.
2513 * elf/ifuncmain2pic.c: New file.
2514 * elf/ifuncmain2picstatic.c: New file.
2515 * elf/ifuncmain2static.c: New file.
2516 * elf/ifuncmain3.c: New file.
2517 * elf/ifuncmain4.c: New file.
2518 * elf/ifuncmain4picstatic.c: New file.
2519 * elf/ifuncmain4static.c: New file.
2520 * elf/ifuncmod1.c: New file.
2521 * elf/ifuncmod3.c: New file.
2523 2009-06-03 Ulrich Drepper <drepper@redhat.com>
2525 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2527 2009-06-02 Ulrich Drepper <drepper@redhat.com>
2530 * posix/Makefile (routines): Add execvpe.
2531 * posix/Versions: Export execvpe for GLIBC_2.11.
2532 * posix/execvp.c: Now only a wrapper. Move code to...
2533 * posix/execvpe.c: ...here. New file.
2534 * posix/unistd.h: Declare execvpe.
2536 2009-06-01 Ulrich Drepper <drepper@redhat.com>
2538 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2539 for STT_GNU_IFUNC handling for efficiency.
2540 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2542 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2544 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2546 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2548 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2551 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
2553 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2555 (__rela_iplt_start): New declaration.
2556 (__rela_iplt_end): Likewise.
2557 (__rel_iplt_start): Likewise.
2558 (__rel_iplt_end): Likewise.
2559 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2560 * elf/elf.h (R_386_IRELATIVE): New macro.
2561 (R_X86_64_IRELATIVE): New macro.
2562 (R_386_NUM): Updated.
2563 (R_X86_64_NUM): Likewise.
2564 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2565 (libc_ifunc_hidden_def): New macro.
2566 * sysdeps/generic/dl-irel.h: New file.
2567 * sysdeps/i386/dl-irel.h: New file.
2568 * sysdeps/x86_64/dl-irel.h: New file.
2569 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2570 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2571 Handle R_386_IRELATIVE.
2572 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2573 (elf_machine_lazy_rela): Likewise.
2574 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2576 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2578 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2580 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2581 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
2582 are no differences. If an architecture has bits in CPUID index 1
2583 meaning different things the values for the COMMON_CPUID_INDEX_1
2584 index must not be set.
2585 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2586 (HAS_POPCOUNT): ...this. New macro.
2587 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2588 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
2589 to set the value for Intel and AMD architectures.
2590 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2591 INTEL_CPUID_INDEX_1.
2592 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2595 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
2597 * configure.in: Move AC_CANONICAL_HOST before first use of $host
2600 2009-05-29 Jakub Jelinek <jakub@redhat.com>
2602 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2603 (__expm1l): Set errno to ERANGE on overflow.
2604 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2605 (__tanl): Set errno to EDOM for ±Inf.
2606 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2607 (__cosl): Set errno to EDOM for ±Inf.
2608 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2609 (__sinl): Set errno to EDOM for ±Inf.
2611 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2613 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2614 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2615 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2617 2009-05-29 Ulrich Drepper <drepper@redhat.com>
2619 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
2621 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2623 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
2625 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
2626 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2627 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2628 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2630 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2631 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2632 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2634 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2635 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2637 2009-05-22 Jakub Jelinek <jakub@redhat.com>
2639 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2640 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2641 is, either do nothing at all if __ASSUME_ACCEPT4, or
2642 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2643 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2644 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2646 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2647 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2648 internal_accept4 in socket directory.
2650 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
2652 * sysdeps/ia64/configure.in: New file.
2654 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
2657 * sysdeps/ia64/memchr.S: Use speculative load.
2659 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2660 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2663 * sysdeps/i386/__longjmp.S: Add .text.
2664 * sysdeps/x86_64/__longjmp.S: Likewise.
2666 2009-05-21 Ulrich Drepper <drepper@redhat.com>
2668 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2669 __ASSUME_ACCEPT4 for IA-64.
2671 2009-05-21 Jakub Jelinek <jakub@redhat.com>
2673 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2675 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2676 (SOCKOP_accept4): Define.
2678 2009-05-20 Ulrich Drepper <drepper@redhat.com>
2680 Sun approved the change of the license.
2681 * sunrpc/auth_des.c: Replace license text.
2682 * sunrpc/auth_none.c: Likewise.
2683 * sunrpc/auth_unix.c: Likewise.
2684 * sunrpc/authdes_prot.c: Likewise.
2685 * sunrpc/authuxprot.c: Likewise.
2686 * sunrpc/bindrsvprt.c: Likewise.
2687 * sunrpc/clnt_gen.c: Likewise.
2688 * sunrpc/clnt_perr.c: Likewise.
2689 * sunrpc/clnt_raw.c: Likewise.
2690 * sunrpc/clnt_simp.c: Likewise.
2691 * sunrpc/clnt_tcp.c: Likewise.
2692 * sunrpc/clnt_udp.c: Likewise.
2693 * sunrpc/clnt_unix.c: Likewise.
2694 * sunrpc/des_crypt.c: Likewise.
2695 * sunrpc/des_soft.c: Likewise.
2696 * sunrpc/get_myaddr.c: Likewise.
2697 * sunrpc/getrpcport.c: Likewise.
2698 * sunrpc/key_call.c: Likewise.
2699 * sunrpc/key_prot.c: Likewise.
2700 * sunrpc/openchild.c: Likewise.
2701 * sunrpc/pm_getmaps.c: Likewise.
2702 * sunrpc/pm_getport.c: Likewise.
2703 * sunrpc/pmap_clnt.c: Likewise.
2704 * sunrpc/pmap_prot.c: Likewise.
2705 * sunrpc/pmap_prot2.c: Likewise.
2706 * sunrpc/pmap_rmt.c: Likewise.
2707 * sunrpc/rpc/auth.h: Likewise.
2708 * sunrpc/rpc/auth_unix.h: Likewise.
2709 * sunrpc/rpc/clnt.h: Likewise.
2710 * sunrpc/rpc/des_crypt.h: Likewise.
2711 * sunrpc/rpc/key_prot.h: Likewise.
2712 * sunrpc/rpc/netdb.h: Likewise.
2713 * sunrpc/rpc/pmap_clnt.h: Likewise.
2714 * sunrpc/rpc/pmap_prot.h: Likewise.
2715 * sunrpc/rpc/pmap_rmt.h: Likewise.
2716 * sunrpc/rpc/rpc.h: Likewise.
2717 * sunrpc/rpc/rpc_des.h: Likewise.
2718 * sunrpc/rpc/rpc_msg.h: Likewise.
2719 * sunrpc/rpc/svc.h: Likewise.
2720 * sunrpc/rpc/svc_auth.h: Likewise.
2721 * sunrpc/rpc/types.h: Likewise.
2722 * sunrpc/rpc/xdr.h: Likewise.
2723 * sunrpc/rpc_clntout.c: Likewise.
2724 * sunrpc/rpc_cmsg.c: Likewise.
2725 * sunrpc/rpc_common.c: Likewise.
2726 * sunrpc/rpc_cout.c: Likewise.
2727 * sunrpc/rpc_dtable.c: Likewise.
2728 * sunrpc/rpc_hout.c: Likewise.
2729 * sunrpc/rpc_main.c: Likewise.
2730 * sunrpc/rpc_parse.c: Likewise.
2731 * sunrpc/rpc_parse.h: Likewise.
2732 * sunrpc/rpc_prot.c: Likewise.
2733 * sunrpc/rpc_sample.c: Likewise.
2734 * sunrpc/rpc_scan.c: Likewise.
2735 * sunrpc/rpc_scan.h: Likewise.
2736 * sunrpc/rpc_svcout.c: Likewise.
2737 * sunrpc/rpc_tblout.c: Likewise.
2738 * sunrpc/rpc_util.c: Likewise.
2739 * sunrpc/rpc_util.h: Likewise.
2740 * sunrpc/rpcinfo.c: Likewise.
2741 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2742 * sunrpc/rpcsvc/key_prot.x: Likewise.
2743 * sunrpc/rpcsvc/klm_prot.x: Likewise.
2744 * sunrpc/rpcsvc/mount.x: Likewise.
2745 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2746 * sunrpc/rpcsvc/rex.x: Likewise.
2747 * sunrpc/rpcsvc/rstat.x: Likewise.
2748 * sunrpc/rpcsvc/rusers.x: Likewise.
2749 * sunrpc/rpcsvc/sm_inter.x: Likewise.
2750 * sunrpc/rpcsvc/spray.x: Likewise.
2751 * sunrpc/rpcsvc/yppasswd.x: Likewise.
2752 * sunrpc/rtime.c: Likewise.
2753 * sunrpc/svc.c: Likewise.
2754 * sunrpc/svc_auth.c: Likewise.
2755 * sunrpc/svc_authux.c: Likewise.
2756 * sunrpc/svc_raw.c: Likewise.
2757 * sunrpc/svc_run.c: Likewise.
2758 * sunrpc/svc_simple.c: Likewise.
2759 * sunrpc/svc_tcp.c: Likewise.
2760 * sunrpc/svc_udp.c: Likewise.
2761 * sunrpc/svc_unix.c: Likewise.
2762 * sunrpc/svcauth_des.c: Likewise.
2763 * sunrpc/xcrypt.c: Likewise.
2764 * sunrpc/xdr.c: Likewise.
2765 * sunrpc/xdr_array.c: Likewise.
2766 * sunrpc/xdr_float.c: Likewise.
2767 * sunrpc/xdr_mem.c: Likewise.
2768 * sunrpc/xdr_rec.c: Likewise.
2769 * sunrpc/xdr_ref.c: Likewise.
2770 * sunrpc/xdr_sizeof.c: Likewise.
2771 * sunrpc/xdr_stdio.c: Likewise.
2773 * po/da.po: Update from translation team.
2775 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2777 * sysdeps/sh/____longjmp_chk.S: New file.
2778 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2779 * sysdeps/sh/sh4/__longjmp.S: Likewise.
2781 2009-05-18 Jakub Jelinek <jakub@redhat.com>
2782 Ulrich Drepper <drepper@redhat.com>
2784 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2785 (__nscd_cache_search): Assume each entry in the
2786 hash chain needs one hashentry and half of datahead. Use
2787 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2789 2009-05-16 Ulrich Drepper <drepper@redhat.com>
2791 * posix/sys/wait.h: Fix typos. Pretty printing.
2792 * stdlib/stdlib.h: Likewise. Correct comments.
2795 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2797 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2800 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2802 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2803 Use it if we absolutely cannot reach any more correct list elements
2804 because that many do not fit into the currently mapped database.
2806 2009-05-14 Jakub Jelinek <jakub@redhat.com>
2808 * nscd/nscd_helper.c: Include stddef.h.
2809 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
2810 in a couple of places. Return NULL if trail is not less than
2811 datasize, don't consider dataheads with length smaller than
2812 offsetof (struct datahead, data) + datalen.
2813 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2814 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2815 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2816 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2817 * nscd/nscd_getai.c (__nscd_getai): Likewise.
2818 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2819 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2821 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2823 (fallocate64): ... to this.
2824 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2826 (fallocate64): ... to this.
2827 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2828 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2829 fallocate64@@GLIBC_2.10.
2830 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2831 fallocate64@@GLIBC_2.11.
2832 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2833 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2834 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2835 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2837 * nscd/selinux.c (nscd_avc_destroy): Removed.
2838 * nscd/selinux.h (nscd_avc_destroy): Likewise.
2839 * nscd/nscd.c (termination_handler): Don't call
2842 2009-05-12 Jakub Jelinek <jakub@redhat.com>
2844 * include/atomic.h: Formatting.
2845 (catomic_compare_and_exchange_val_acq): Don't define if already
2846 defined by bits/atomic.h.
2848 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2850 * math/libm-test.inc (expm1_test): Add test for range error.
2852 * Versions.def: Add GLIBC_2.11 for libc.
2853 * debug/Makefile (routines): Add longjmp_chk.
2854 Add rules to build and run tst-longjmp_chk.
2855 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2856 * debug/longjmp_chk.c: New file.
2857 * debug/tst-longjmp_chk.c: New file.
2858 * include/bits/setjmp2.: New file.
2859 * include/stdio.h: Mark __fortify_fail as internal_function.
2860 * setjmp/Makefile (headers): Add bits/setjmp2.h.
2861 * setjmp/bits/setjmp2.h: New file.
2862 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2864 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2866 * sysdeps/i386/____longjmp_chk.S: New file.
2867 * sysdeps/x86_64/____longjmp_chk.S: New file.
2868 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2869 * sysdeps/x86_64/__longjmp.S: Likewise.
2871 * version.h: Bump for 2.11 development.
2873 * elf/check-execstack.c: New file.
2874 * elf/Makefile: Add rules to build and run check-execstack.
2876 2009-05-10 Ulrich Drepper <drepper@redhat.com>
2878 * version.h (VERSION): Bump to 2.10.1.
2880 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2881 compatibility functions.
2882 * nss/getXXent_r.c: Likewise.
2883 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2884 * gshadow/getsgnam_r.c: Likewise.
2885 * gshadow/Version: Remove duplicate entries.
2887 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2888 for recent processor.
2889 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2892 2009-05-09 Ulrich Drepper <drepper@redhat.com>
2894 * version.h (VERSION): Bump for 2.10 release.
2895 * include/features.h (__GLIBC_MINOR__): Bump to 10.
2897 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
2898 same place we add ASFLAGS-config.
2900 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
2903 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2904 or FORMERR and the other NOERROR, don't raise an error.
2906 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
2909 * Makeconfig (+asflags): New variable based upon ASFLAG or
2911 (ASFLAGS): Add override to set ASFLAGS to +asflags.
2912 * config.make.in (asflags-cpu): Add variable based upon
2913 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2915 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2916 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2917 recognizes power6 instruction set due to passing -mcpu=power6 from
2918 --with-cpu=power6 when compiling .S files.
2919 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2921 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2923 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2926 2009-05-09 Jakub Jelinek <jakub@redhat.com>
2928 * string/stratcliff.c (do_test): Test for zero length
2929 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2930 at the end of the page.
2932 2009-05-08 Ulrich Drepper <drepper@redhat.com>
2934 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2936 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2939 * po/da.po: Update from translation team.
2941 2009-05-05 Jakub Jelinek <jakub@redhat.com>
2943 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2944 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2946 2009-05-05 Ulrich Drepper <drepper@redhat.com>
2948 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2949 and READ_IMPLIES_EXEC.
2951 2009-05-04 Ulrich Drepper <drepper@redhat.com>
2953 * po/da.po: Update from translation team.
2955 2009-04-29 Jakub Jelinek <jakub@redhat.com>
2957 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2960 2009-04-27 Jakub Jelinek <jakub@redhat.com>
2962 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2963 to MAP_ANON in PROT_NONE mmap64 call.
2964 (open_archive): Likewise.
2965 (file_data_available_p): Use mmap64 instead of mremap.
2966 (enlarge_archive): Likewise. Update head if ah->addr changed.
2967 Attempt to reserve address space after mmap64 region.
2969 2009-04-26 Ulrich Drepper <drepper@redhat.com>
2971 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2972 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2973 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2975 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2976 atanh should set ERANGE.
2979 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2980 result of lookup to make call to implement STT_GNU_IFUNC.
2981 (_dl_profile_fixup): Likewise.
2982 Patch by H.J. Lu <hjl.tools@gmail.com>.
2984 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2987 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2990 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2991 label if it is not used.
2993 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2994 of gmon_hist_hdr and gmon_hdr structures and use them.
2995 * elf/sprof.c: Likewise.
2997 * elf/dl-load.c (open_verify): Add temporary variable to avoid
3000 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3002 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3005 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3006 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3008 (iruserok_af): Use ss_family instead of casts.
3010 * gmon/gmon.c (write_hist): Define real-type variant of
3011 gmon_hist_hdr structure and use it.
3012 (write_gmon): Likewise for gmon_hdr.
3014 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3015 function if we are not going to define it.
3016 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3018 * inet/inet6_option.c (option_alloc): Add temporary variable to
3021 * libio/strfile.h (struct _IO_streambuf): Use correct type and
3022 name of VTable element.
3023 * libio/iovsprintf.c: Avoid casts to avoid warnings.
3024 * libio/iovsscanf.c: Likewise.
3025 * libio/vasprintf.c: Likewise.
3026 * libio/vsnprintf.c: Likewise.
3027 * stdio-common/isoc99_vsscanf.c: Likewise.
3028 * stdlib/strfmon_l.c: Likewise.
3029 * debug/vasprintf_chk.c: Likewise.
3030 * debug/vsnprintf_chk.c: Likewise.
3031 * debug/vsprintf_chk.c: Likewise.
3033 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3036 2009-04-26 Jakub Jelinek <jakub@redhat.com>
3038 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3040 2009-04-25 Ulrich Drepper <drepper@redhat.com>
3042 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3044 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
3045 * sysdeps/i386/fpu/s_tanf.S: Likewise.
3046 * sysdeps/i386/fpu/s_tanl.S: Likewise.
3047 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3048 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3049 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3050 * math/libm-test.inc: Add tests for errno after tan calls with
3053 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3054 errno value vor pow(+-0,neg).
3055 * math/libm-test.inc (pow_test): Add tests for errno value for
3058 * math/w_fmod.c: Also handle x=±Inf as error.
3059 * math/w_fmodf.c: Likewise.
3060 * math/w_fmodl.c: Likewise.
3061 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3064 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
3065 * sysdeps/i386/fpu/s_cosf.S: Likewise.
3066 * sysdeps/i386/fpu/s_cosl.S: Likewise.
3067 * sysdeps/i386/fpu/s_sin.S: Likewise.
3068 * sysdeps/i386/fpu/s_sinf.S: Likewise.
3069 * sysdeps/i386/fpu/s_sinl.S: Likewise.
3070 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3071 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3072 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3073 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3074 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3075 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3076 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3077 * math/libm-test.inc: Add tests for errno after sin/cos calls with
3080 * stdlib/strtod_l.c (round_and_return): We have to set errno to
3081 ERANGE for underflows.
3082 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3084 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3087 * libio/tst-widetext.input: Remove surrogates.
3089 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3091 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3092 for lgamma should set errno to ERANGE, not EDOM.
3093 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3095 2009-04-24 Ulrich Drepper <drepper@redhat.com>
3098 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3101 * locale/programs/locarchive.c (enlarge_archive): Conserve address
3102 space when temporarily mapping the whole content of the old file.
3105 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3108 2009-04-24 Jakub Jelinek <jakub@redhat.com>
3110 * iconvdata/sjis.c (BODY): Don't advance inptr before
3111 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3112 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3115 2009-04-24 Ulrich Drepper <drepper@redhat.com>
3117 * locale/locarchive.h (struct locarhandle): Rename len field to
3118 mmaped and add new reserved field.
3119 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3120 (create_archive): Reserve address space and then map file into it.
3121 (open_archive): Likewise.
3122 (file_data_available_p): New function.
3123 (compare_from_file): New function.
3124 (close_archive): Adjust to member name changes.
3125 (add_locale): Before comparing locale data, check it is mapped.
3126 Otherwise fall back to reading from the file.
3128 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
3130 * stdio-common/psiginfo.c: Include <errno.h>.
3132 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3135 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3136 to get consistency between 32 and 64 bit architectures.
3139 * sysdeps/unix/make-syscalls.sh: Add rule to create target
3140 directory for dummy syscall rules.
3141 Patch by Chris Steinbroner <hesh@pobox.com>.
3143 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
3146 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3149 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3151 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
3152 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3154 2009-04-23 Jakub Jelinek <jakub@redhat.com>
3156 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
3157 data from vector to temporary buffer and call PWRITEV after it
3158 instead of vice versa.
3159 * sysdeps/posix/preadv.c: Fix up comment.
3160 * misc/preadv.c: Likewise.
3161 * misc/preadv64.c: Likewise.
3162 * misc/pwritev.c: Likewise.
3163 * misc/pwritev64.c: Likewise.
3164 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3166 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3168 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3170 * shadow/Makefile (tests): Add tst-shadow.
3171 * shadow/tst-shadow.c: New file.
3174 * gshadow/Makefile: New file.
3175 * gshadow/Versions: New file.
3176 * gshadow/fgetsgent.c: New file.
3177 * gshadow/fgetsgent_r.c: New file.
3178 * gshadow/getsgent.c: New file.
3179 * gshadow/getsgent_r.c: New file.
3180 * gshadow/getsgnam.c: New file.
3181 * gshadow/getsgnam_r.c: New file.
3182 * gshadow/gshadow.h: New file.
3183 * gshadow/putsgent.c: New file.
3184 * gshadow/sgetsgent.c: New file.
3185 * gshadow/sgetsgent_r.c: New file.
3186 * gshadow/tst-gshadow.c: New file.
3187 * include/gshadow.h: New file.
3188 * Makeconfig (all-subdirs): Add gshadow.
3189 * Makefile (installed-headers): Add gshadow/gshadow.h.
3190 * nss/Makefile (databases): Add sgrp.
3191 * nss/Versions: Add gshadow functions as private exports.
3192 * nss/nsswitch.conf: Add gshadow entry.
3193 * nss/sgrp-lookup.c: New file.
3194 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
3195 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3196 * nss/nss_files/files-sgrp.c: New file.
3197 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3198 * sysdeps/unix/sysv/linux/paths.h: Likewise.
3200 2009-04-22 Ulrich Drepper <drepper@redhat.com>
3202 * stdio-common/printf.h: Add missing const to register_printf_modifier.
3203 * stdio-common/reg-modifier.c: Likewise.
3205 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
3207 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3210 2009-04-20 Ulrich Drepper <drepper@redhat.com>
3213 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3214 headers up to 2.6.30.
3216 * po/ca.po: Update from translation team.
3218 2009-04-19 Ulrich Drepper <drepper@redhat.com>
3221 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3222 an object that uses static TLS if the TLS modid is higher than the
3223 reserve we always allocate. At least for multi-threaded code.
3225 2009-04-18 Ulrich Drepper <drepper@redhat.com>
3227 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3228 Numerically stable check for valid width.
3230 * locale/programs/locarchive.c (open_archive): Map the entire file
3231 and not just the administrative data.
3232 (add_locale): When we find a hash sum match compare the content
3235 * malloc/malloc.c (malloc_info): Output address space information.
3237 2009-04-17 Ulrich Drepper <drepper@redhat.com>
3239 * malloc/malloc.c (malloc_info): Also output system memory information.
3241 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3242 architectures have preadv/pwritev in 2.6.30.
3244 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3245 * sysdeps/posix/readv.c: Likewise.
3246 Reported by Markus Armbruster <armbru@redhat.com>.
3248 * malloc/hooks.c (top_check): Force hook value into register.
3250 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3252 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3253 calls to _dl_relocate_object.
3255 2009-04-16 Ulrich Drepper <drepper@redhat.com>
3258 * malloc/malloc.c (force_reg): Define.
3259 (sYSMALLOc): Load hook variable into variable
3260 before test and force into register.
3261 (sYSTRIm): Likewise.
3262 (public_mALLOc): Force hook value into register.
3263 (public_fREe): Likewise.
3264 (public_rEALLOc): Likewise.
3265 (public_mEMALIGn): Likewise.
3266 (public_vALLOc): Likewise.
3267 (public_pVALLOc): Likewise.
3268 (public_cALLOc): Likewise.
3269 (__posix_memalign): Likewise.
3270 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3271 before test and force into register.
3272 * malloc/hooks.c (top_check): Likewise.
3273 (public_sET_STATe): Pretty printing.
3275 * resolv/res_send.c (send_dg): Don't just ignore the result we got
3276 in case we only receive one reply in single-request mode.
3278 2009-04-16 Jakub Jelinek <jakub@redhat.com>
3280 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3281 are dlopened in statically linked program even for __LM_ID_CALLER.
3283 2009-04-16 Ulrich Drepper <drepper@redhat.com>
3285 * resolv/res_send.c (send_dg): Don't switch into single-request
3286 mode if we already are in it.
3288 2009-04-15 Ulrich Drepper <drepper@redhat.com>
3290 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3291 are always at least 4 bytes in the returned line.
3293 2009-04-15 Jakub Jelinek <jakub@redhat.com>
3295 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3296 __libc_use_alloca (8192), if the stack is too small use 512 bytes
3297 instead of 8K. Stop searching in /proc/stat after hitting first
3298 line not starting with cpu.
3299 (next_line): Truncate too long
3300 lines at buffer size * 3/4 instead of pretending there were line
3301 breaks inside of large lines.
3303 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3305 * sysdeps/x86_64/mp_clz_tab.c: New file.
3307 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
3308 Ulrich Drepper <drepper@redhat.com>
3310 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3311 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3312 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3314 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
3316 * sysdeps/sh/libc-tls.c: New file.
3318 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3320 2009-04-14 Roland McGrath <roland@redhat.com>
3322 * elf/elf.h: Add various missing ARM constants, to match binutils.
3324 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3326 Optimizations from GMP.
3327 * sysdeps/x86_64/add_n.S: New file.
3328 * sysdeps/x86_64/addmul_1.S: New file.
3329 * sysdeps/x86_64/lshift.S: New file.
3330 * sysdeps/x86_64/mul_1.S: New file.
3331 * sysdeps/x86_64/rshift.S: New file.
3332 * sysdeps/x86_64/sub_n.S: New file.
3333 * sysdeps/x86_64/submul_1.S: New file.
3335 2009-04-14 Jakub Jelinek <jakub@redhat.com>
3337 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3338 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3339 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3340 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3342 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3344 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3347 2009-04-13 Ulrich Drepper <drepper@redhat.com>
3349 * sysdeps/x86-64/strrchr.S: New file.
3351 2009-04-10 Ulrich Drepper <drepper@redhat.com>
3353 * stdio-common/printf.h (struct printf_info): Add user element.
3354 New types printf_arginfo_size_function, printf_va_arg_function.
3355 Declare register_printf_specifier, register_printf_modifier,
3356 register_printf_type.
3357 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3358 (union printf_arg): Add pa_user element.
3359 Adjust __printf_arginfo_table type.
3360 Add __printf_va_arg_table, __printf_modifier_table,
3361 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3363 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3364 If registered arginfo call failed try normal specifier.
3365 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3367 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3368 * stdio-common/Versions: Export register_printf_modifier,
3369 register_printf_type, and register_printf_specifier for GLIBC_2.10.
3370 * stdio-common/reg-modifier.c: New file.
3371 * stdio-common/reg-type.c: New file.
3372 * stdio-common/reg-printf.c (__register_printf_specifier): New
3373 function. Mostly the old __register_printf_function function but
3374 uses locking and type of third parameter changed.
3375 (__register_printf_function): Implement using
3376 __register_printf_specifier.
3377 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3378 calls to arginfo functions. Allocate enough memory for user-defined
3379 types. Call new va_arg functions to get user-defined types.
3380 Try installed handlers even for existing format specifiers first.
3382 2009-04-09 Ulrich Drepper <drepper@redhat.com>
3384 * sysdeps/x86_64/rawmemchr.S: New file.
3386 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3387 Simplified code and possible copy problem fixed.
3389 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3390 function if it is not defined. Add some necessary casts.
3391 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3393 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3394 have preadv/pwritev in 2.6.30.
3396 2009-04-08 Ulrich Drepper <drepper@redhat.com>
3398 * malloc/malloc.c (malloc_info): New function.
3399 * malloc/malloc.h: Declare it.
3400 * malloc/Versions: Export malloc_info for GLIBC_2.10.
3402 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3405 * malloc/malloc.c (_int_realloc): Add parameter with old block
3406 size. Remove duplicated test. Don't handle mmap'ed blocks here.
3408 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3410 2009-04-07 Ulrich Drepper <drepper@redhat.com>
3412 * sysdeps/x86_64/strchrnul.S: New file.
3414 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3415 depending libcrypt on -lfreebl3.
3417 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3418 preadv/pwritev in 2.6.30.
3420 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3421 instead of __strcasecmp.
3423 * string/stratcliff.c (do_test): Add memchr tests..
3424 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3425 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3426 first read quad word.
3428 2009-04-06 Ulrich Drepper <drepper@redhat.com>
3430 * string/strverscmp.c (__strverscmp): Fix last cleanups.
3431 * string/tst-svc.input: Add new test case.
3432 * string/tst-svc.expect: Adjust.
3433 * string/Makefile: Don't ignore tst-svc error.
3435 * sysdeps/x86_64/memchr.S: New file.
3437 * resolv/resolv.h (RES_SNGLKUP): Define.
3438 * resolv/res_init.c (res_setoptions): Recognize single-request option.
3439 * resolv/res_send.c (send_dg): If we sent two requests at once and
3440 only get one reply before timeout switch to mode where we send the
3441 second request only after the first answer has been received.
3443 2009-04-05 Ulrich Drepper <drepper@redhat.com>
3445 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3446 * sysdeps/x86_64/strchr.S: Likewise.
3448 2009-04-03 Ulrich Drepper <drepper@redhat.com>
3450 * configure.in: We need to test for the compiler earlier.
3452 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3453 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3455 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3456 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3458 * misc/preadv.c: New file.
3459 * misc/preadv64.c: New file.
3460 * misc/pwritev.c: New file.
3461 * misc/pwritev64.c: New file.
3462 * sysdeps/posx/preadv.c: New file.
3463 * sysdeps/posx/preadv64.c: New file.
3464 * sysdeps/posx/pwritev.c: New file.
3465 * sysdeps/posx/pwritev64.c: New file.
3466 * sysdeps/unix/sysv/linux/preadv.c: New file.
3467 * sysdeps/unix/sysv/linux/preadv64.c: New file.
3468 * sysdeps/unix/sysv/linux/pwritev.c: New file.
3469 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3470 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3471 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3473 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3475 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3477 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3478 __ASSUME_COMPLETE_READV_WRITEV.
3479 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3480 with modern kernels.
3481 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3483 * sysdeps/posix/readv.c: Since read is a cancellation point we have
3484 to free a possible malloced buffer in case of cancellation.
3485 * sysdeps/posix/writev.c: Likewise for write.
3487 2009-04-02 Ulrich Drepper <drepper@redhat.com>
3489 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3491 * configure.in: Recognize --enable-nss-crypt.
3492 * config.make.in: Add nss-crypt entry.
3493 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3494 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
3495 and include path for NSS directory to compiler for md5-crypt,
3496 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
3497 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3498 function implementation, use NSS. Introduce wrappers around the
3499 hash function calls. Little code size optimization.
3500 * crypt/sha256-crypt.c: Likewise.
3501 * crypt/sha512-crypt.c: Likewise.
3502 * scripts/check-local-headers.sh: Ignore nss3 directory.
3504 * configure.in: Rename pic_default to libc_cv_pic_default.
3505 * config.make.in: Likewise.
3507 2009-04-01 Roland McGrath <roland@redhat.com>
3509 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3510 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3511 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3512 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3513 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3514 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3515 (R_SPARC_NUM): Update.
3516 From Dave Miller <davem@davemloft.net>.
3518 2009-04-01 Ulrich Drepper <drepper@redhat.com>
3520 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3522 2009-03-31 Ulrich Drepper <drepper@redhat.com>
3524 * elf/dl-open.c: Keep track of used name spaces and only iterate over
3525 those which are used.
3526 * elf/dl-addr.c: Likewise.
3527 * elf/dl-caller.c: Likewise.
3528 * elf/dl-fini.c: Likewise.
3529 * elf/dl-iteratephdr.c: Likewise.
3530 * elf/dl-libc.c: Likewise.
3531 * elf/dl-load.c: Likewise.
3532 * elf/dl-support.c: Likewise.
3533 * elf/dl-sym.c: Likewise.
3534 * elf/rtld.c: Likewise.
3535 * sysdeps/generic/ldsodefs.h: Likewise.
3537 * elf/dl-load.c: Remove support for systems without MAP_ANON.
3538 * elf/dl-minimal.c: Likewise.
3539 * elf/dl-misc.c: Likewise.
3540 * elf/rtld.c: Likewise.
3541 * sysdeps/generic/ldsodefs.h: Likewise.
3543 2009-03-30 Ulrich Drepper <drepper@redhat.com>
3545 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3546 Avoid reuse of complex expression.
3548 * po/fr.po: Update from translation team.
3550 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3552 * include/dirent.h: Yet more changes to match sort function type
3554 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3555 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3556 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3558 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
3560 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3562 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3564 * nscd/connections.c (restart): Try to preserve the process name
3565 by reading the /proc/self/exe symlink and using the return name.
3566 Patch by Jeff Bastian <jbastian@redhat.com>.
3568 2009-03-15 Ulrich Drepper <drepper@redhat.com>
3571 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3572 if we are not loading a new audit library.
3573 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3574 Only use profiling trampoline for auditing if we are not relocating
3576 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3577 * elf/rtld.c: Likewise.
3578 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3580 * elf/rtld.c (dl_main): Extend help message for --audit option.
3583 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3584 alphasort64, versionsort, and versionsort64 to POSIX 2008.
3585 * dirent/alphasort.c: Adjust implementation to type change.
3586 * dirent/alphasort64.c: Likewise.
3587 * dirent/scandir.c: Likewise.
3588 * dirent/versionsort.c: Likewise.
3589 * dirent/versionsort64.c: Likewise.
3590 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3592 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3596 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3597 correctly. Set segleft member in output as required.
3598 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3599 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3602 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3603 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3604 * inet/Makefile (tests): Add tst-inet6_rth.
3605 * inet/tst-inet6_rth.c: New file.
3608 * string/strlen.c (strlen): Fix omission in the expression to test
3611 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3613 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3615 * elf/dl-runtime.c (reloc_offset): Define.
3616 (reloc_index): Define.
3617 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3618 (_dl_fixup_profile): Likewise. Use reloc_index instead of
3619 computing index from reloc_offset.
3620 (_dl_call_pltexit): Likewise.
3621 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3622 the relocation index to _dl_fixup.
3623 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3625 * sysdeps/x86_64/dl-runtime.c: New file.
3628 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3629 alignment of La_x86_64_regs. Store xmm parameters.
3630 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3633 * string/strverscmp.c (__strverscmp): Fix case of different digits
3634 in fractional part of string.
3635 Patch by Jingyu Liu <jyliu@fortinet.com>.
3636 * string/Makefile (tests): Add tst-svc2.
3637 * string/tst-svc2.c: New file.
3639 * string/strverscmp.c (__strverscmp): Optimize size of tables.
3641 * locale/iso-639.def: Add Min Nan.
3643 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3646 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3648 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3650 * elf/dl-sysdep.c (auxvars): Compress data structure.
3652 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3653 STT_GNU_IFUNC handling.
3654 (elf_machine_rela): Likewise.
3656 2009-03-13 Ulrich Drepper <drepper@redhat.com>
3658 * config.h.in (USE_MULTIARCH): Define.
3659 * configure.in: Handle --enable-multi-arch.
3660 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3661 (_dl_fixup_profile): Likewise.
3662 * elf/do-lookup.c (dl_lookup_x): Likewise.
3663 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3664 * elf/elf.h (STT_GNU_IFUNC): Define.
3665 * include/libc-symbols.h (libc_ifunc): Define.
3666 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3667 framework in init-arch.h to get CPUID values.
3668 * sysdeps/x86_64/multiarch/Makefile: New file.
3669 * sysdeps/x86_64/multiarch/init-arch.c: New file.
3670 * sysdeps/x86_64/multiarch/init-arch.h: New file.
3671 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3673 * config.make.in (experimental-malloc): Define.
3674 * configure.in: Handle --enable-experimental-malloc.
3675 * malloc/Makefile: Handle experimental-malloc flag.
3676 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3677 * malloc/arena.c: Likewise.
3678 * malloc/hooks.c: Likewise.
3679 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3681 2009-03-11 Ulrich Drepper <drepper@redhat.com>
3683 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3684 prediction. A few size optimizations.
3686 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3688 * time/tzset.c: Optimize a bit for size.
3690 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3692 * include/stdio.h (fmemopen): Add libc_hidden_proto.
3693 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3695 * elf/sprof.c: Avoid warning about multi-line comment.
3697 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3699 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3701 * time/tst-posixtz.c: Add tests for quoted timezone names.
3703 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3705 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3706 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3707 200809L instead of 200112L.
3708 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3709 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3711 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3712 instead of __quick_exit_funcs to __run_exit_handlers.
3713 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3714 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3715 (__cxa_at_quick_exit): Remove attribute_hidden.
3716 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3717 to __run_exit_handlers.
3718 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3721 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3723 * po/id.po: Update from translation team.
3725 2009-02-18 Jakub Jelinek <jakub@redhat.com>
3727 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3728 .machine push; .machine "power6" and .machine pop around mtfsf
3729 insns outside of _ARCH_PWR6 define.
3730 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3731 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3733 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3735 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3736 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3737 relax_fenv_state): Likewise.
3739 2009-03-08 Ulrich Drepper <drepper@redhat.com>
3741 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3743 (static-only-routines): Add at_quick_exit.
3744 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3746 * stdlib/quick_exit.c: New file.
3747 * stdlib/at_quick_exit.c: New file.
3748 * stdlib/cxa_at_quick_exit.c: New file.
3749 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
3751 (__internal_atexit): New function.
3752 (__new_exitfn): Now takes parameter to point to the list to use.
3753 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3754 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
3755 (exit): ...here. Just call __run_exit_handlers appropriately.
3756 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3757 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
3758 * stdlib/on_exit.c: Adjust call to __new_exitfn.
3759 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3761 * po/id.po: Update from translation team.
3763 2009-03-07 Ulrich Drepper <drepper@redhat.com>
3765 * po/ru.po: Update from translation team.
3767 2009-03-04 Ulrich Drepper <drepper@redhat.com>
3769 * po/nl.po: Update from translation team.
3771 2009-03-03 Ulrich Drepper <drepper@redhat.com>
3773 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3774 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3775 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3776 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3777 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3778 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3779 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3781 * po/pl.po: Update from translation team.
3783 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3786 * sysdeps/unix/sysv/linux/fallocate.c: New file.
3787 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3788 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3789 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3790 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3791 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3792 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3794 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3795 Add fallocate and fallocate64.
3797 * io/fcntl.h: Pretty printing.
3799 2009-03-02 Richard Guenther <rguenther@suse.de>
3801 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3802 attribute also for non-C99 inline semantics variant.
3804 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3806 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3807 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3808 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3809 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3810 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3812 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3815 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3817 * po/cs.po: Update from translation team.
3819 2009-02-28 Ulrich Drepper <drepper@redhat.com>
3821 * po/bg.po: Update from translation team.
3822 * po/sv.po: Likewise.
3823 * po/fi.po: Likewise.
3824 * po/vi.po: Likewise.
3826 2009-02-27 Roland McGrath <roland@redhat.com>
3828 * Makeconfig (%.v.i): Depend on Makeconfig.
3829 Exclude % lines from initial #-comment removal.
3831 2009-02-27 Ulrich Drepper <drepper@redhat.com>
3833 * po/ko.po: Update from translation team.
3835 2009-02-26 Roland McGrath <roland@redhat.com>
3837 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3838 avoids unused warning.
3840 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
3841 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3843 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3844 sys/ucontext.h and asm/elf.h. Include sys/user.h.
3845 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3846 and asm/user.h. Include asm/ptrace.h.
3847 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3848 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3849 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3851 (start_thread): Don't undefine.
3852 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3855 2009-02-26 Ulrich Drepper <drepper@redhat.com>
3857 * wctype/wctype.h: The *_l functions are in POSIX 2008.
3858 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3859 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3860 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3861 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3863 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3864 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3865 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3866 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3867 _SC_THREAD_ROBUST_PRIO_PROTECT.
3868 * posix/unistd.h: fexecve is in POSIX 2008.
3869 * time/time.h: strftime_l is in POSIX 2008.
3870 * io/sys/stat.h: futimens is in POSIX 2008.
3871 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3872 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3873 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3874 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3875 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3876 open_memstream, and vdprintf are in POSIX 2008.
3878 2009-02-25 Ulrich Drepper <drepper@redhat.com>
3880 * include/features.h: Define macros for XPG7/POSIX 2008.
3881 * ctype/ctype.h: The *_l functions are in POSIX 2008.
3882 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3884 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3885 * locale/xlocale.h: Define locale_t type.
3886 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3887 in POSIX 2008. Don't define locale_t here.
3888 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3889 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3890 UTIME_OMIT only with __USE_ATFILE.
3891 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3892 * stdio-common/psiginfo.c: New file.
3893 * stdio-common/psiginfo-data.h: New file.
3894 * stdio-common/psiginfo-define.h: New file.
3895 * stdio-common/Makefile (routines): Add psiginfo.
3896 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3897 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3898 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3899 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3900 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3901 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3902 * io/sys/stat.h: Move mknodat definition into same conditional as
3904 * time/sys/time.h: futimesat is not among the functions accepted
3905 into the POSIX standard.
3907 * include/features.h: If no feature selection given and we select
3908 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3909 * posix/Versions: Export __posix_getopt.
3910 * posix/getopt.c (_getopt_initialize): Take additional parameter.
3911 Use it to alternatively initialize __posixly_correct.
3912 (_getopt_internal_r): Take addition parameter. Pass on to
3914 (_getopt_internal): Take addition parameter. Pass on to
3916 (getopt): Pass additional zero to _getopt_internal.
3917 (__posix_getopt): New function.
3918 * posix/getopt.h: Add redirection for getopt.
3919 * posix/getopt1.c (getopt_long): Pass additional zero to
3921 (getopt_long_only): Likewise.
3922 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3923 (_getopt_long_only_r): Likewise.
3924 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3927 2009-02-24 Ulrich Drepper <drepper@redhat.com>
3929 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3930 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3931 * sysdeps/posix/sysconf.c (__sysconf): Handle
3932 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3933 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3935 2009-02-24 Roland McGrath <roland@redhat.com>
3938 * README.template: Reworded not to use substituted version number.
3940 * README: ... here (no longer generated).
3941 * Makefile (README): Target removed.
3943 2009-02-24 Ulrich Drepper <drepper@redhat.com>
3945 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3946 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3949 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3951 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3953 2009-02-22 Ulrich Drepper <drepper@redhat.com>
3955 * po/bg.po: Update from translation team.
3957 2009-02-16 Jakub Jelinek <jakub@redhat.com>
3959 * stdlib/monetary.h: Uglify function parameter names.
3960 * sunrpc/rpc/pmap_clnt.h: Likewise.
3961 * sunrpc/rpc/svc.h: Likewise.
3962 * sunrpc/rpc/xdr.h: Likewise.
3963 * sunrpc/rpc/clnt.h: Likewise.
3964 * resolv/netdb.h: Likewise.
3965 * resolv/arpa/nameser.h: Likewise.
3966 * resolv/resolv.h: Likewise.
3967 * argp/argp.h: Likewise.
3968 * locale/langinfo.h: Likewise.
3969 * io/sys/stat.h: Likewise.
3970 * posix/spawn.h: Likewise.
3971 * nis/rpcsvc/nislib.h: Likewise.
3972 * malloc/obstack.h: Likewise.
3973 * sysdeps/ia64/bits/link.h: Likewise.
3974 * sysdeps/i386/bits/link.h: Likewise.
3975 * sysdeps/s390/bits/link.h: Likewise.
3976 * sysdeps/powerpc/bits/link.h: Likewise.
3977 * sysdeps/x86_64/bits/link.h: Likewise.
3978 * sysdeps/sparc/bits/link.h: Likewise.
3979 * sysdeps/sh/bits/link.h: Likewise.
3980 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3981 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3982 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3983 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3985 2008-12-01 Fredrik Unger <fred@tree.se>
3987 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3988 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3989 _FP_UNPACK_RAW_2, fix up first argument.
3991 2009-02-15 Ulrich Drepper <drepper@redhat.com>
3993 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3994 (GET_NPROCS_PARSER): Change parameters and use next_line.
3995 (__get_nprocs): Rewrite to not use stdio routines.
3996 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3997 Change parameters and use next_line.
3999 2009-02-13 Ulrich Drepper <drepper@redhat.com>
4002 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4003 Change mempool_alloc prototype.
4004 * nscd/mem.c (gc): Don't handle mem_in_flight.
4005 (mempool_alloc): Third parameter now only indicates whether this is the
4006 first call (to allocate data) or not. If it is, get db rdlock.
4007 Release it on error. Don't handle mem_in_flight.
4008 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4009 Adjust third parameter of mempool_alloc calls.
4010 Nothing to do here in case mempool_alloc fails.
4011 Avoid local variable shadowing parameter. No need to get db rdlock
4012 before calling cache_add.
4013 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
4014 no mem_in_flight array anymore.
4015 * nscd/connections.c: Remove definition and handling of mem_in_flight.
4016 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4017 mempool_alloc calls. Mark he parameter as const. Nothing to do here
4018 in case mempool_alloc fails. No need to get db rdlock before calling
4020 * nscd/hstcache.c (cache_addhst): Likewise.
4021 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4022 * nscd/servicescache.c (cache_addserv): Likewise.
4023 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
4025 2009-02-11 Ulrich Drepper <drepper@redhat.com>
4027 * po/lt.po: Update from translation team.
4029 2009-02-10 Ulrich Drepper <drepper@redhat.com>
4031 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4032 defined, allow additional data to be added using the optional
4033 MORE_ELF_HEADER_DATA macro.
4034 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4035 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4037 2009-02-08 Ulrich Drepper <drepper@redhat.com>
4039 * include/atomic.h: Define catomic_and if not already defined.
4040 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4041 * sysdeps/i386/i486/bits/atomic.h: Likewise.
4043 2009-02-07 Ulrich Drepper <drepper@redhat.com>
4045 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4047 (_int_realloc): Likewise. Third argument is now padded size
4048 All _int_* functions are now static.
4050 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4051 * malloc/arena.c: Likewise.
4052 * include/malloc.h: Remove now unnecessary declarations of the _int_*
4055 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4058 * malloc/malloc.c: Add branch prediction for use of the hooks.
4060 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4062 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4065 * bits/confname.h: Add SUSv7 macros for getconf environments.
4066 * bits/environments.h: Likewise.
4067 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4068 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4069 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4070 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4071 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4072 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4073 * posix/getconf.c: Likewise.
4074 * posix/sysconf.c: Likewise.
4075 * sysdeps/posix/sysconf.c: Likewise.
4076 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4079 2009-01-16 Petr Baudis <pasky@suse.cz>
4082 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4083 even if we currently have zero nscount.
4085 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4088 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4089 the input line is too long.
4091 * po/Makefile (libc.pot): Add f_print as function taking c-format
4094 * debug/xtrace.sh: Unify translatable messages.
4095 * elf/ldd.bash.in: Likewise.
4096 * elf/sprof.c: Likewise.
4097 * locale/programs/locale.c: Likewise.
4098 * malloc/memusage.sh: Likewise.
4099 * nss/getent.c: Likewise.
4101 2009-02-06 Joseph Myers <joseph@codesourcery.com>
4103 * debug/pcprofiledump.c (print_version,
4104 argp_program_version_hook): New function.
4105 * elf/ldconfig.c (more_help): New function.
4107 * elf/sln.c (usage): New function.
4108 (main): Support --help and --version.
4109 * malloc/memusagestat.c (print_version): New function.
4110 (argp_program_version_hook): New variable.
4111 * nscd/nscd.c (more_help): New function.
4113 * posix/getconf.c (main): Send --version output to stdout.
4115 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4116 arguments. All callers changed.
4117 (print_version): New function.
4118 (parseargs): Support --help and --version.
4119 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
4121 (print_version): New function.
4122 (main): Use getopt_long. Support --help and --version.
4123 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4126 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4128 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4129 (update_data): Fix handling of wrapping back
4130 to the beginning of the buffer.
4133 * stdio-common/psignal.c (psignal): Fix test for empty string.
4135 2009-02-05 Ulrich Drepper <drepper@redhat.com>
4137 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4138 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
4139 move _null_auth to .rodata.
4141 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4144 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4146 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4147 today than when the original code was written. Use larger
4148 buffers. This also makes it unnecessary to have stat information,
4149 if this causes extra efforts.
4150 (__opendir): In case O_DIRECTORY works, don't call fstat just for
4153 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
4155 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4157 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4158 * sysdeps/sh/sh4/__longjmp.S: Likewise.
4159 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4160 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4161 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4162 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4164 2009-02-04 Ulrich Drepper <drepper@redhat.com>
4166 * po/ru.po: Update from translation team.
4168 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
4170 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4171 Add _tid slot to maintain consistency with kernel.
4173 2009-02-04 Ulrich Drepper <drepper@redhat.com>
4175 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4176 incomplete characters at end of input buffer.
4177 * libio/Makefile (tests): Add tst-fgetwc.
4178 * libio/tst-fgetwc.c: New file.
4179 * libio/tst-fgetwc.input: New file.
4181 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
4183 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4185 2009-02-02 Ulrich Drepper <drepper@redhat.com>
4188 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4189 *OUTBUFSTART unless the whole output fit into the buffer.
4190 * iconv/Makefile (tests): Add tst-iconv4.
4191 * iconv/tst-iconv4.c: New file.
4193 2009-02-01 Ulrich Drepper <drepper@redhat.com>
4195 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4196 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4198 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
4200 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4201 newer linker scripts.
4203 2009-01-30 Ulrich Drepper <drepper@redhat.com>
4206 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4207 inotify_rm_watch should have type int.
4209 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
4211 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4212 Make aligned_restore_vmx a local symbol.
4213 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4216 2009-01-30 Andreas Jaeger <aj@suse.de>
4218 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4219 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4220 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4221 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4222 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4223 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4224 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4226 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
4229 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4230 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4232 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
4235 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4236 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4237 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4238 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4240 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
4242 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4243 memcpy instead of memcmp.
4244 (_dl_setup_pointer_guard): Likewise.
4246 2009-01-30 Ulrich Drepper <drepper@redhat.com>
4248 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4249 manipulated brk, use malloc_printerr.
4250 * misc/sbrk.c (__sbrk): Better error handling for nonsense
4253 2009-01-30 Jakub Jelinek <jakub@redhat.com>
4255 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4256 rindex): For C++ add inlines so that they can be recognized as
4258 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4260 2009-01-29 Ulrich Drepper <drepper@redhat.com>
4261 Jakub Jelinek <jakub@redhat.com>
4263 * string/string.h: Define correct C++ prototypes for gcc 4.4.
4264 * wcsmbs/wchar.h: Likewise.
4266 2009-01-29 Ulrich Drepper <drepper@redhat.com>
4268 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4269 (stackinfo_sub_sp): Define.
4271 2009-01-28 Ulrich Drepper <drepper@redhat.com>
4274 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4275 * include/alloca.h (alloca_account): Define.
4276 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4277 (stackinfo_sub_sp): Define.
4279 * nscd/connections.c (nscd_init): If database file access fails
4280 check whether this is due to permission problems and bail in that
4284 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4285 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4287 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4289 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4290 Add "t" to clobber list.
4291 (INTERNAL_SYSCALL_NCS): Likewise.
4293 2009-01-28 Ulrich Drepper <drepper@redhat.com>
4295 * nss/getent.c (print_networks): Don't print comma between aliases.
4297 2009-01-23 Ulrich Drepper <drepper@redhat.com>
4299 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4301 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4303 * misc/Makefile (tests): Add bug-hsearch1.
4304 * misc/bug-hsearch1.c: New file.
4306 2009-01-22 Roland McGrath <roland@redhat.com>
4308 * Makeconfig (%.v.i): Strip trailing # comments,
4309 not only whole-line comments.
4311 2009-01-10 Ulrich Drepper <drepper@redhat.com>
4313 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4314 one parameter. If non-NULL use it to initialize return value.
4315 (_dl_setup_pointer_guard): New function.
4316 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4317 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4318 * elf/rtld.c (security_init): Pass _dl_random to
4319 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
4321 * elf/dl-sysdep.c (_dl_random): New variable.
4322 (_dl_sysdep_start): Handle AT_RANDOM.
4323 (_dl_show_auxv): Likewise.
4324 * elf/dl-support.c (_dl_random): New variable.
4325 (_dl_aux_init): Handle AT_RANDOM.
4326 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4327 to _dl_setup_stack_chk_guard.
4329 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4331 2009-01-10 Roland McGrath <roland@redhat.com>
4333 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4335 2009-01-08 Ulrich Drepper <drepper@redhat.com>
4337 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4340 * nss/nss_files/files-parse.c (strtou32): New function.
4341 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4342 across 32-bit and 64-bit platforms.
4343 (INT_FIELD_MAYBE_NULL): Likewise.
4345 2009-01-08 Jakub Jelinek <jakub@redhat.com>
4348 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4349 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4350 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4353 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
4356 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4357 being NULL also if there are no backreferences.
4358 * posix/rxspencer/tests: Add testcases.
4360 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
4363 * posix/bug-regex17.c: Add testcases.
4364 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4367 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
4369 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4370 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4371 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4372 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4374 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4375 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4376 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4377 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4378 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4379 * sysdeps/unix/sysv/linux/s390/Versions: New file.
4381 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
4383 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4384 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4385 re_string_skip_chars, re_string_reconstruct): Likewise.
4386 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4388 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
4390 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4391 adjust the buffer alignment.
4393 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4395 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4396 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4399 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4400 flavor to description only when flavor is not NULL.
4402 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4403 mutex after SIGIO/SIGURG lookup loop.
4405 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4407 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4409 2009-01-03 Ulrich Drepper <drepper@redhat.com>
4411 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4414 2009-01-02 Ulrich Drepper <drepper@redhat.com>
4416 * sysdeps/unix/sysv/linux/kernel-features.h
4417 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4419 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4420 if no output is written.
4422 * version.h: Bump to 2.10 development.
4424 * posix/getconf.c: Update copyright year.
4425 * nss/getent.c: Likewise.
4426 * iconv/iconvconfig.c: Likewise.
4427 * iconv/iconv_prog.c: Likewise.
4428 * elf/ldconfig.c: Likewise.
4429 * catgets/gencat.c: Likewise.
4430 * csu/version.c: Likewise.
4431 * elf/ldd.bash.in: Likewise.
4432 * elf/sprof.c (print_version): Likewise.
4433 * locale/programs/locale.c: Likewise.
4434 * locale/programs/localedef.c: Likewise.
4435 * nscd/nscd.c (print_version): Likewise.
4436 * debug/xtrace.sh: Likewise.
4437 * malloc/memusage.sh: Likewise.
4438 * malloc/mtrace.pl: Likewise.
4439 * debug/catchsegv.sh: Likewise.
4441 2008-12-29 Mike Frysinger <vapier@gentoo.org>
4443 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4446 2008-12-29 Ulrich Drepper <drepper@redhat.com>
4448 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4449 gethostbyname4_r function call succeeded, just leave the loop.
4452 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4454 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4455 * wctype/Makefile (tests): Add bug-wctypeh.
4456 * wctype/bug-wctypeh.c: New file.
4458 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4459 LOCALDOMAIN is defined.
4460 * nscd/nscd_getai.c (__nscd_getai): Likewise.
4462 * sysdeps/x86_64/bits/select.h: New file.
4464 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4466 2008-12-21 Bruno Haible <bruno@clisp.org>
4469 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4470 if no output is written.
4472 2008-12-13 Klaus Dittrich <kladit@arcor.de>
4474 * login/utmp_file.c (pututline_file): Replace call to dup2 with
4475 libc internal symbol __dup2 to avoid access through the PLT.
4477 2008-12-08 Ulrich Drepper <drepper@redhat.com>
4480 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4481 available only for __USE_GNU.
4483 * inet/Makefile (tests): Add tst-getni2.
4484 * inet/tst-getni2.c: New file.
4487 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4488 NULL when NI_NAMEREQD is set.
4489 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4490 * inet/Makefile (tests): Add tst-getni1.
4491 * inet/tst-getni1.c: New file.
4493 2008-12-03 Petr Baudis <pasky@suse.cz>
4496 * nscd/connections.c (invalidate_cache): Use prune_run_lock
4497 instead of prune_lock.
4498 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4499 * nscd/nscd.h (database_dyn): Add prune_run_cache.
4501 2008-12-07 Ulrich Drepper <drepper@redhat.com>
4503 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4506 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4509 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4510 after reading name server list.
4513 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4514 handling for host name aliases.
4516 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
4518 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4519 instead of doing things manually.
4521 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
4523 * posix/regex_internal.h (build_wcs_upper_buffer):
4524 Return type is reg_error_t.
4526 2008-12-05 Ulrich Drepper <drepper@redhat.com>
4528 * posix/globtest.sh: Use mktemp to create temporary file and
4531 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4533 (__CPU_CLR_S): Likewise.
4534 (__CPU_ISSET_S): Likewise.
4536 2008-12-05 Joseph Myers <joseph@codesourcery.com>
4537 Ulrich Drepper <drepper@redhat.com>
4539 * scripts/firstversion.awk: Use custom comparison function to compare
4541 * scripts/versions.awk: Use sort invocation which can handle
4542 multi-digit sub-version numbers.
4544 2008-12-04 Ulrich Drepper <drepper@redhat.com>
4546 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4547 * locale/iso-639.def: Add Chhattisgarhi entry.
4549 2008-12-02 Ulrich Drepper <drepper@redhat.com>
4551 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4553 (_nss_dns_gethostbyname4_r): Likewise.
4554 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4555 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4556 gethostbyname4_r, we don't have a separate IPv6 status, so copy
4557 the no_data variable.
4559 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4560 information at the correct index.
4562 * socket/sys/socket.h: Declare accept4.
4563 * socket/accept4.c: New file.
4564 * sysdeps/unix/sysv/linux/accept4.c: New file.
4565 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4566 * socket/Makefile (routines): Add accept4.
4567 * socket/Versions: Export accept4 with version GLIBC_2.10.
4568 * socket/paccept.c: Removed.
4569 * sysdeps/unix/sysv/linux/paccept.c: Removed.
4570 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4571 * Versions.def: Define GLIBC_2.10 for libc.
4572 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4574 * nscd/connections.c: Use accept4.
4576 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4578 2008-12-01 Ulrich Drepper <drepper@redhat.com>
4580 * resolv/res_send.c (send_dg): Create sockets with non-blocking
4583 * stdlib/setenv.c (unsetenv): Don't search environment if it does
4585 * stdlib/Makefile (tests): Add tst-unsetenv1.
4586 * stdlib/tst-unsetenv1.c: New file.
4588 2008-11-29 Ulrich Drepper <drepper@redhat.com>
4590 * login/utmp_file.c (file_writable): New variable.
4591 (setutent_file): Don't try to open file for writing.
4592 (pututline_file): Before writing, make descriptor writable if
4595 2008-11-26 Ulrich Drepper <drepper@redhat.com>
4597 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4598 to IPv4 or IPv6 if an interface has been found.
4600 2008-11-26 Roland McGrath <roland@redhat.com>
4602 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4603 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4605 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4606 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4607 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4609 * elf/elf.h (NT_386_IOPERM): New macro.
4610 (NT_PPC_VSX): New macro.
4612 2008-11-25 Roland McGrath <roland@redhat.com>
4614 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4615 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4616 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4617 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4618 Subdirectories moved to ports repository.
4619 * configure.in (base_machine): Remove alpha case.
4621 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
4623 * sysdeps/mach/strerror_l.c: New file.
4625 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
4628 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4629 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4631 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4632 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4633 (relax_fenv_state): Same as above.
4634 (FPSCR_29): Reserve bit in ISA 2.05.
4635 (FPSCR_NI): Provide define for compat.
4636 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4638 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4640 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
4641 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4642 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4643 access to hwcap to account for hwcap size increase to uint64_t.
4644 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4646 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4647 (*setcontext): Likewise.
4648 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4650 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4652 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4653 (*setcontext): dynamically select mtfsf insn based on
4654 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4655 increase to uint64_t.
4656 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4657 (*swapcontext): dynamically select mtfsf insn based on
4658 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4659 increase to uint64_t.
4660 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4662 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4665 (*setcontext): dynamically select mtfsf insn based on
4666 PPC_FEATURE_HAS_DFP.
4667 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4668 (*swapcontext): dynamically select mtfsf insn based on
4669 PPC_FEATURE_HAS_DFP.
4671 2008-11-13 Ulrich Drepper <drepper@redhat.com>
4673 * version.h: Bump for 2.9 release.
4674 * include/features.h (__GLIBC_MINOR__): Bump to 9.
4677 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4678 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4681 2008-11-11 Ulrich Drepper <drepper@redhat.com>
4684 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4685 unknown request types for now.
4687 2008-11-11 Roland McGrath <roland@redhat.com>
4689 * sysdeps/x86_64/configure: New file.
4691 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4692 * configure: Regenerated.
4694 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4696 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4697 correct instruction to remove the stack frame.
4699 2008-11-03 Michael Matz <matz@suse.de>
4701 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4702 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4704 2008-11-07 Jakub Jelinek <jakub@redhat.com>
4706 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4709 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4710 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4711 of the thread variable instead of void *.
4712 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4713 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4714 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4715 __libc_tsd_define arguments.
4716 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4717 __libc_tsd_address arguments. Remove union hack.
4718 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4719 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4720 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4721 Adjust __libc_tsd_{set,get} arguments.
4722 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4723 __libc_tsd_define arguments.
4724 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4726 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4727 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4728 (LOCALE): Adjust __libc_tsd_define arguments.
4729 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4731 (LOCALE): Adjust __libc_tsd_define arguments.
4732 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4734 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4737 2008-11-02 Ulrich Drepper <drepper@redhat.com>
4739 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4740 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4742 2008-11-01 Ulrich Drepper <drepper@redhat.com>
4745 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4747 2008-10-24 Joseph Myers <joseph@codesourcery.com>
4748 Ulrich Drepper <drepper@redhat.com>
4750 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4751 definition for GCC 3.1 and later.
4753 2008-10-31 Jakub Jelinek <jakub@redhat.com>
4755 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4756 refetch dtv, as it might have changed.
4757 * elf/Makefile: Add rules to build and run tst-tls18.
4758 * elf/tst-tls18.c: New test.
4759 * elf/tst-tlsmod18a.c: New file.
4761 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
4764 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4766 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4769 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4772 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4773 Fix length of copy operation.
4775 2008-10-02 Pierre Habouzit <madcoder@debian.org>
4777 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4778 and fix its calling convention.
4780 2008-10-07 Andreas Schwab <schwab@suse.de>
4783 * resolv/res_send.c (send_vc): Fix last change.
4784 (send_dg): Align here as well.
4786 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4788 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4789 return value in case rlimit is RLIM_INFINITY.
4792 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4794 * resource/Makefile (tests): Add bug-ulimit1.
4795 * resource/bug-ulimit1.c: New file.
4798 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4799 without dot. Properly terminate the string with a null byte.
4800 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4803 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4805 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4809 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4811 2008-10-30 Ulrich Drepper <drepper@redhat.com>
4813 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4814 abort if there is no initgroups_dyn function.
4816 * resolv/res_send.c (send_dg): On timeout, only return nonzero
4817 result if any of the queries really provided an answer.
4819 2008-10-28 Ulrich Drepper <drepper@redhat.com>
4821 * po/lt.po: Update from translation team.
4823 2008-10-26 Ulrich Drepper <drepper@redhat.com>
4825 * po/id.po: Update from translation team.
4827 2008-10-24 Ulrich Drepper <drepper@redhat.com>
4829 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4830 Fix tests for existence of second reply.
4832 2008-10-23 Ulrich Drepper <drepper@redhat.com>
4834 * po/id.po: New file.
4835 Contributed by the Indonesian translation team.
4837 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
4839 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4842 2008-10-17 Jakub Jelinek <jakub@redhat.com>
4844 * elf/Makefile: Add rules to build and run tst-tls17.
4845 * elf/tst-tls17.c: New test.
4846 * elf/tst-tlsmod17a.c: New file.
4847 * elf/tst-tlsmod17b.c: Likewise.
4849 2008-10-17 Ulrich Drepper <drepper@redhat.com>
4851 * stdlib/divmod_1.c: Use correct type for dummy variable.
4852 * stdlib/mod_1.c: Likewise.
4854 2008-10-16 Ulrich Drepper <drepper@redhat.com>
4856 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4858 2008-10-16 Jakub Jelinek <jakub@redhat.com>
4860 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4861 __nonnull order for C++.
4862 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4863 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4865 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
4867 * stdlib/longlong.h: Update from GCC.
4869 2008-10-09 Jakub Jelinek <jakub@redhat.com>
4870 David S. Miller <davem@davemloft.net>
4872 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4873 make sure any registers used with 64-bit 'branch-on-register'
4874 instructions have their top 32-bits clear.
4875 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4876 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4878 2008-09-18 Andreas Schwab <schwab@suse.de>
4881 * resolv/res_send.c (send_vc): Fix use of unaligned address.
4882 Properly handle partial reads.
4884 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
4886 * elf/elf.h (STO_MIPS_PLT): New.
4888 (R_MIPS_JUMP_SLOT): New.
4889 (R_MIPS_NUM): Redefine to 128.
4890 (DT_MIPS_PLTGOT): New.
4891 (DT_MIPS_RWPLT): New.
4892 (DT_MIPS_NUM): Redefine to 0x35.
4894 2008-10-01 Ulrich Drepper <drepper@redhat.com>
4896 * timezone/africa: Update from tzdata2008f.
4897 * timezone/asia: Likewise.
4898 * timezone/australasia: Likewise.
4899 * timezone/europe: Likewise.
4900 * timezone/leapseconds: Likewise.
4901 * timezone/northamerica: Likewise.
4902 * timezone/southamerica: Likewise.
4903 * timezone/zone.tab: Likewise.
4905 2008-09-30 Ulrich Drepper <drepper@redhat.com>
4907 * nscd/connections.c: Disable use of paccept for now.
4909 2008-09-29 Ulrich Drepper <drepper@redhat.com>
4911 * socket/Versions: Remove paccept export for GLIBC_2.9.
4912 * socket/Makefile (routines): Remove paccept.
4913 * socket/sys/socket.h: Remove paccept declaration.
4915 * po/sv.po: Update from translation team.
4917 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
4919 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4920 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4922 2008-09-16 Ulrich Drepper <drepper@redhat.com>
4924 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4925 Patch by Olivier Fourdan <ofourdan@redhat.com>.
4927 2008-09-15 Ulrich Drepper <drepper@redhat.com>
4929 * sunrpc/rpc/svc.h: Declare svcfd_create.
4930 Patch by Michael Solberg <msolberg@redhat.com>.
4932 2008-09-12 Flavio Leitner <fleitner@redhat.com>
4933 Ulrich Drepper <drepper@redhat.com>
4935 * malloc/malloc.c (public_vALLOc): Try other arenas in case
4937 (public_pVALLOc): Likewise.
4939 2008-09-02 Andreas Jaeger <aj@suse.de>
4941 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4944 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
4947 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4949 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
4951 * Makefile (check-data): Check data directory in add-ons.
4952 * elf/Makefile (check-data): Likewise.
4954 2008-08-18 Roland McGrath <roland@redhat.com>
4956 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4957 * configure: Regenerated.
4958 * config.make.in (cflags-cpu): New substituted variable.
4959 (with-cpu): Variable removed.
4960 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4962 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
4965 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4966 __signbitl definition and __LONG_DOUBLE_128__ guard from:
4967 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4968 redundant. Functions which call floating point assembler operations
4969 should go into a sysdeps powerpc/fpu directory.
4971 2008-08-15 Ulrich Drepper <drepper@redhat.com>
4973 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4974 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4976 2008-08-14 Ulrich Drepper <drepper@redhat.com>
4978 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4980 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4981 change related to AT_EXECFN. We cannot use that string.
4982 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4984 * elf/dl-support.c: Remove _dl_execfn variable.
4985 (_dl_aux_init): Remove handling of AT_EXECFN.
4986 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4987 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4989 2008-08-13 Ulrich Drepper <drepper@redhat.com>
4992 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
4993 byte gets added to writes and seeks from the end use the length of
4994 the buffer and not the currently terminating NUL byte.
4997 * login/utmp_file.c (getutent_r_file): Take additional parameter.
4998 Set to true if locking failed.
4999 (getutid_r_file): Adjust caller.
5000 (pututline_file): Likewise. Return NULL in this case.
5001 Patch mostly by halesh.s@gmail.com.
5003 2008-08-12 Ulrich Drepper <drepper@redhat.com>
5006 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5008 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5010 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
5013 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5014 macro since it is now available in elf/dynamic-link.h.
5016 2008-08-12 Roland McGrath <roland@frob.com>
5018 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5019 in case used outside of libc.
5020 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5022 2008-08-11 Ulrich Drepper <drepper@redhat.com>
5024 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5025 directly instead of going through dn_comp.
5027 2008-08-11 Aurelien Jarno <aurel32@debian.org>
5029 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5030 Fix asm constraints.
5032 2008-08-07 Ulrich Drepper <drepper@redhat.com>
5035 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5036 (IPV6_PMTUDISC_PROBE): Likewise.
5038 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
5041 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5043 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
5044 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
5047 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5048 Added the members 'vsx' and 'arch_2_06'.
5049 (_dl_powerpc_platforms): Add the member 'power7'.
5050 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5051 to reflect the changes required by VSX and ISA 2.06.
5052 Modify _DL_PLATFORMS_COUNT to reflect the addition of
5054 Defined PPC_PLATFORM_POWER7.
5055 (_dl_string_platform): Add support for POWER7.
5056 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5057 capability and ISA 2.06.
5059 2008-08-07 Ulrich Drepper <drepper@redhat.com>
5062 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5063 macro to detect use of 128 bit long double.
5064 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5066 2008-08-05 Ulrich Drepper <drepper@redhat.com>
5068 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5071 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5073 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5074 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5076 2008-08-03 Ulrich Drepper <drepper@redhat.com>
5078 * nscd/connections.c (main_loop_poll): Pass a buffer which is
5079 guaranteed to be large enough to read inotify event. Ignore
5080 EAGAIN error. Better error message. Add branch predicition.
5081 (main_loop_epoll): Likewise.
5083 2008-08-02 Roland McGrath <roland@frob.com>
5085 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5086 Add memory clobbers.
5088 2008-08-02 Ulrich Drepper <drepper@redhat.com>
5090 * manual/arith.texi: Avoid @strong{Note:}.
5091 * manual/creature.texi: Likewise.
5092 * manual/filesys.texi: Likewise.
5093 * manual/math.texi: Likewise.
5094 * manual/memory.texi: Likewise.
5095 * manual/resource.texi: Likewise.
5096 * manual/syslog.texi: Likewise.
5097 * manual/time.texi: Likewise.
5099 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5102 2008-08-01 Ulrich Drepper <drepper@redhat.com>
5104 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5105 new epoll_create1 interface.
5106 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5107 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5108 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5110 * include/arpa/nameser.h (NS_GET16): Use const pointer.
5111 (NS_GET32): Likewise.
5113 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5116 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5117 use the AT_EXECFN value if it is no absolute path.
5118 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5121 * Versions.def: Add GLIBC_2.9 to libresolv.
5122 * include/resolv.h: Remove hidden proto declarations for __ns_*
5123 functions. Add them for __dn_count_labels and __p_secstodate.
5124 * include/arpa/nameser.h: Add a number of hidden proto declarations.
5125 Define ns_msg_getflags macro here.
5126 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5128 * resolv/Versions: Export functions from <arpa/nameser.h> from
5129 libresolv in version GLIBC_2.9.
5130 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
5132 * resolv/ns_netint.c: Likewise.
5133 * resolv/ns_parse.c: Likewise.
5134 * resolv/ns_print.c: Likewise.
5135 * resolv/ns_samedomain.c: Likewise.
5136 * resolv/ns_ttl.c: Likewise.
5137 * resolv/arpa/nameser_compat.h: Likewise.
5138 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
5140 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5141 instead of ns_get16.
5142 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5143 __ns_get32 instead of ns_get16 and ns_get32 respectively.
5144 (gaih_getanswer_slice): Likewise.
5145 * resolv/Makefile (libresolv-routines): Add ns_date.
5146 * resolv/ns_date.c: New file.
5148 * elf/Makefile (check-localplt.out): Also check libresolv and
5151 2008-07-31 Ulrich Drepper <drepper@redhat.com>
5153 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5156 2008-07-30 Ulrich Drepper <drepper@redhat.com>
5158 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5159 buffer passed to NSS functions.
5161 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5163 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5166 * misc/syslog.c (openlog_internal): Fix compile problem.
5168 2008-07-28 Roland McGrath <roland@redhat.com>
5170 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5172 2008-07-28 Ulrich Drepper <drepper@redhat.com>
5174 * io/ftw.c (add_object): Remove inline to avoid warning.
5176 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5178 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5179 Use it instead of locally defined resplen2 variable.
5180 (res_nsend): Adjust for __libc_res_nsend interface change.
5181 (send_vc): Initialize *resplen2 if necessary. Read length of
5182 package into an appropriately aligned variable. Store converted length
5183 in new variable and use it appropriately.
5184 Add branch prediction help.
5185 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5186 and pass it on to __libc_res_nsend. Adjust all callers.
5187 (__libc_res_nsearch): Likewise.
5188 (__libc_res_nqeurydomain): Likewise.
5189 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5191 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5192 Define resplen2 variable and pass it to __libc_res_nsearch and then
5194 (getanswer_r): In case of incorrect DNS data don't overread buffer.
5195 Add branch prediction.
5196 (gaih_getanswer_slice): Likewise. Check for invalid data types.
5197 (gaih_getanswer): Don't decode second slice if first one failed due
5198 to a too small buffer. Don't let not found status of second
5199 decoder shadow results of the first.
5200 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5201 and __libc_res_nquery interface changes
5202 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5203 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5204 __libc_res_nsearch, and __libc_res_nsend.
5205 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5207 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5208 __libc_res_nsearch interface changes.
5210 2008-07-27 Ulrich Drepper <drepper@redhat.com>
5212 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5214 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5215 file descriptors with close-on-exec set.
5216 (exec_comm_child): Fix the case where the write end of the pipe is
5217 STDOUT_FILENO already. In case it is, clear close-on-exec.
5219 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5220 * io/pipe2.c: Likewise.
5221 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5222 instead of __ASSUME_PACCEPT.
5223 * include/unistd.h: Declare __have_pipe2.
5224 * libio/iopopen.c: Implement "e" flag.
5225 * libio/Makefile (tests): Add tst-popen1.
5226 * libio/tst-popen1.c: New file.
5228 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5229 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5231 2008-07-26 Ulrich Drepper <drepper@redhat.com>
5234 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5235 success call of _IO_SEEKOFF or calls which failed because the
5236 descriptor is for a pipe.
5238 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5241 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5243 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
5244 F_SETFD use if we know fopen set the flag.
5246 * login/utmp_file.c (setutent_file): Minor optimization in case
5247 O_CLOEXEC is available.
5249 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
5251 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5252 * elf/Makefile: Use pie-ccflag variable.
5253 * nscd/Makefile: Likewise.
5254 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5256 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
5259 * Versions.def: Add GLIBC_2.9 version tag for libutil.
5260 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5261 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
5262 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5263 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
5264 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5265 utmp32, utmpx32 and login32.
5266 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5267 versions of struct utmp functions to libc and libutil.
5268 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5269 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5270 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5271 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5272 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5273 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5274 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5275 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5276 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5277 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5278 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5279 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5280 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5281 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5282 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5283 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5284 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5285 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5286 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5287 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5288 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5289 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5291 2008-07-26 Ulrich Drepper <drepper@redhat.com>
5293 * scripts/gen-as-const.awk: Generate more widely usable code by
5294 using 64-bit arithmetic.
5296 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5297 the same treatment as narrow output code in last patch.
5299 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5302 * elf/dl-load.c (local_strdup): Remove inline.
5303 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5304 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5307 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5309 2008-07-25 Ulrich Drepper <drepper@redhat.com>
5311 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5312 the new syscalls, too.
5314 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5315 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5318 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5319 parameter for end of buffer. If temporary copy is too large use
5321 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5323 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
5324 string rewrite when allocating buffer.
5326 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5329 * nscd/connections.c (nscd_init): Clean up fcntl call.
5331 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5332 SOCK_NONBLOCK if possible.
5334 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5335 SOCK_CLOEXEC if available.
5337 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5338 __libc_clntudp_bufcreate_internal.
5339 * include/sys/socket.h: Declare __have_sock_cloexec.
5340 * socket/Makefile (aux): Add have_sock_cloexec.
5341 * socket/have_sock_cloexec.c: New file.
5342 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5343 __libc_clntudp_bufcreate.
5344 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5345 which takes an additional parameter. Create socket with non-blocking
5346 mode and close-on-exec flag set, if wanted.
5347 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5348 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5349 instead of clntudp_create. The socket has already the close-on-exec
5350 flag set if SOCK_CLOEXEC is defined.
5352 2008-07-24 Ulrich Drepper <drepper@redhat.com>
5354 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5355 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5357 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5358 non-blocking mode by using socket, paccept, and inotify_init1.
5360 * Versions.def (glibc): Add GLIBC_2.9.
5361 * io/Makefile (routines): Add dup3 and pipe2.
5362 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5363 * io/dup3.c: New file.
5364 * io/pipe2.c: New file.
5365 * posix/unistd.h: Declare dup3 and pipe2.
5366 * socket/Makefile (routines): Add paccept.
5367 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5368 * socket/paccept.c: New file.
5369 * socket/sys/socket.h: Declare paccept.
5370 * sysdeps/unix/syscalls.list: Add entry for dup3.
5371 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5372 epoll_create2 and inotify_init1.
5373 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5374 * sysdeps/unix/sysv/linux/paccept.c: New file.
5375 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5377 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5378 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5379 inotify_init1, and pipe2 entries.
5380 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5381 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5382 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5383 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5384 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5385 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5387 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5388 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5389 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5390 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5391 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5392 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5393 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5394 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5395 EPOLL_NONBLOCK. Declare epoll_create2.
5396 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5398 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5399 IN_NONBLOCK. Declare inotify_init1.
5400 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5402 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5405 * elf/elf.h: Define AT_EXECFN.
5406 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5408 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5409 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
5410 if __ASSUME_AT_EXECFN is defined.
5411 (_dl_aux_init): Handle AT_EXECFN.
5412 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5414 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5415 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5416 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5417 _dl_execfn if available and avoid compatibility code if
5418 __ASSUME_AT_EXECFN is defined.
5420 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5421 _dl_discover_osversion only for older kernels.
5423 2008-07-22 Roland McGrath <roland@frob.com>
5425 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5427 2008-07-21 Roland McGrath <roland@frob.com>
5429 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5430 returned too much data out of line.
5432 2008-07-20 Ulrich Drepper <drepper@redhat.com>
5434 * locale/setlocale.c (setname): Remove inline to avoid compiler
5438 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5440 2008-07-15 Ulrich Drepper <drepper@redhat.com>
5442 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5443 doesn't manage to write anything, fail.
5445 * malloc/hooks.c (__malloc_check_init): Remove printf.
5447 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5449 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5451 2008-07-12 Ulrich Drepper <drepper@redhat.com>
5453 * nscd/connections.c (main_loop_poll): Fix handling of read errors
5455 (main_loop_epoll): Likewise.
5457 2008-07-09 Ulrich Drepper <drepper@redhat.com>
5459 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5461 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5462 if DEBUG is defined.
5464 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5465 query. Adjust buffer size computation for padding.
5467 2008-07-08 Ulrich Drepper <drepper@redhat.com>
5469 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5470 * stdio-common/tst-setvbuf1.c: New file.
5471 * stdio-common/tst-setvbuf1.expect: New file.
5474 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5475 when selecting fully-buffered stream.
5476 Patch by Wang Xin <wxinee@gmail.com>.
5478 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
5480 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5481 (__open_2): New function.
5482 (__open64_2): New alias to __open_2.
5483 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5484 (__openat_2): New function.
5485 (__openat64_2): New alias to __openat_2.
5487 2008-07-06 Ulrich Drepper <drepper@redhat.com>
5490 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5492 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5494 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5495 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5496 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5498 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5499 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5500 * sysdeps/mach/hurd/send.c (__send): Likewise.
5501 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5502 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5504 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5506 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5507 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5508 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5509 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5510 * hurd/get-host.c (_hurd_get_host_config): Likewise.
5511 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5513 2008-06-27 Ulrich Drepper <drepper@redhat.com>
5516 * time/strptime_l.c: Don't clear s.era_cnt after successful match
5518 Patch by Petr Baudis.
5520 2008-06-26 Ulrich Drepper <drepper@redhat.com>
5522 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5523 Patch by Peter Jones <pjones@redhat.com>.
5525 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5528 * stdlib/canonicalize.c (__realpath): readlink can write too much
5529 into the buffer on platforms without PATH_MAX.
5531 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
5534 * posix/tst-regex.c (main): Rename to...
5535 (do_test): ... this. Remove cmdline option processing.
5537 (TEST_FUNCTION): Define.
5538 (CMDLINE_OPTIONS): Define.
5540 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5543 * configure.in: Add -Werror to -fstack-protector test to catch
5544 unsupported architectures.
5545 Patch by Gilles Esponasse <g.esp@free.fr>.
5547 2008-06-17 Joseph Myers <joseph@codesourcery.com>
5549 * stdlib/tst-setcontext.c: Set back_in_main before exit if
5550 getcontext returns ENOSYS.
5552 2008-06-18 Ulrich Drepper <drepper@redhat.com>
5554 * nscd/connections.c (main_loop_poll): Fix test for read error.
5555 (main_loop_epoll): Likewise.
5557 2008-06-13 Ulrich Drepper <drepper@redhat.com>
5559 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5560 better place so it is not called when nscd is used.
5562 * nscd/connections.c: Also recognize and handle changes to the
5563 resolver configuration file.
5565 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5567 * time/strftime.c: Pass reference to tzset_called around to handle
5571 * time/strftime.c (__strftime_internal): Call tzset() only
5572 when printing timezone-dependent values.
5573 Based on a patch by Petr Baudis <pasky@suse.cz>.
5575 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5576 unconditionally use second gaih_getanswer_slice result.
5578 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5579 (getaddrinfo): RES must always be non-NULL.
5581 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5583 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5585 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5586 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5588 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5591 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5593 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5595 * nscd/connections.c (inotify_fd): New variable.
5596 (nscd_init): Try to open an inotify descriptor.
5597 If successful, watch files for databases using inotify instead of
5598 having prune threads stat the files.
5599 (nscd_run_prune): Recognize clear_cache flag being set and call
5600 prune_cache appropriately.
5601 (main_loop_poll): Add inotify descriptor to wait set and handle the
5603 (main_loop_epoll): Likewise.
5604 * nscd/cache.c (prune_cache): Don't stat files for databases if
5606 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5607 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5609 * nscd/grpcache.c (cache_addgr): Correctly compute size of
5610 fixed-size portion of the record.
5611 * nscd/servicescache.c (cache_addserv): Likewise.
5612 * nscd/pwdcache.c (cache_addpw): Likewise.
5613 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5615 2008-06-11 Ulrich Drepper <drepper@redhat.com>
5617 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5618 out we don't use uninitialized memory.
5620 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5623 2008-06-10 Ulrich Drepper <drepper@redhat.com>
5625 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5626 ignore T_DNAME messages.
5627 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5629 2008-06-05 Jakub Jelinek <jakub@redhat.com>
5631 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5632 Avoid segfault if first GETC returns eof/'\0'/'\n'.
5634 2008-06-03 Jakub Jelinek <jakub@redhat.com>
5636 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5637 instead of portstr to nscd_getserv_r. Patch by
5638 Roman Kagan <rkagan@mail.ru>.
5640 2008-05-26 Jim Meyering <meyering@redhat.com>
5642 Remove more useless "if" tests before "free".
5643 * include/inline-hashtab.h (htab_delete): Likewise.
5644 * libio/freopen.c (freopen): Likewise.
5645 * libio/freopen64.c (freopen64): Likewise.
5646 * locale/programs/ld-collate.c (collate_read): Likewise.
5647 * misc/fstab.c (libc_freeres_fn): Likewise.
5648 * posix/glob.c (globfree): Likewise.
5650 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5652 * string/Makefile (strop-tests): Add memmem.
5653 * string/test-memmem.c: New file.
5654 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5655 (test_init): Size buf1 according to BUF1PAGES.
5657 2008-05-24 Jakub Jelinek <jakub@redhat.com>
5659 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5660 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5661 (CFLAGS-scanf17.c): New.
5662 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5663 * stdio-common/scanf15.c (main): Likewise.
5664 * stdio-common/scanf16.c: New file.
5665 * stdio-common/scanf17.c: New file.
5667 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5669 * resolv/res_send.c (send_dg): If we already have one of two
5670 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5671 use the one answer insted of failing.
5673 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
5675 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5676 being executed on PowerPC as the expected result exceeds IBM
5677 long double 128 __LDBL_MAX__.
5679 2008-05-21 Roland McGrath <roland@redhat.com>
5681 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5683 * Makefile (check-data): Use $(abi-name) before other guesses.
5684 Look in $(add-ons) dirs before scripts/data/.
5685 * elf/Makefile (check-data): Likewise.
5687 * scripts/soversions.awk: Grok ABI line.
5688 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5689 Emit definition for abi-name variable.
5691 2008-05-21 Ulrich Drepper <drepper@redhat.com>
5693 * string/endian.h: Define new fixed-size hto* and *toh macros only
5696 * iconvdata/Depend: Add localedata.
5698 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5700 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5702 2008-05-08 David S. Miller <davem@davemloft.net>
5704 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5706 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5707 (__SYSCALL_CLOBBERS): Remove %g* registers.
5708 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5709 (__SYSCALL_CLOBBERS): Likewise.
5710 * scripts/data/localplt-sparc-linux-gnu.data: New file.
5711 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5713 2008-05-21 Jakub Jelinek <jakub@redhat.com>
5715 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5716 (CALL_ERRNO_LOCATION): Define.
5717 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5718 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5719 (CALL_ERRNO_LOCATION): Define.
5720 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5721 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5722 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5724 2008-05-20 Ulrich Drepper <drepper@redhat.com>
5726 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5729 2008-05-20 Jakub Jelinek <jakub@redhat.com>
5731 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5732 (FIRST_FRAME_POINTER): Define.
5734 2008-05-09 David S. Miller <davem@davemloft.net>
5736 * sysdeps/sparc/sparc64/backtrace.c: New file.
5738 2008-05-14 David S. Miller <davem@davemloft.net>
5740 * sysdeps/sparc/machine-gmon.h: New file.
5741 * sysdeps/sparc/sparc-mcount.S: Likewise.
5742 * sysdeps/sparc/Makefile: Add sparc-mcount target to
5743 sysdep_routines in gmon directory.
5745 2008-05-19 Jakub Jelinek <jakub@redhat.com>
5747 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5749 2008-05-19 Ulrich Drepper <drepper@redhat.com>
5751 * resolv/res_query.c (__libc_res_nquery): In case one of two
5752 answer was too short don't try to read that answer's header.
5754 * resolv/res_send.c (send_dg): In case of timeout and there are
5755 two queries and one has been answered, return value indicating
5758 2008-05-18 Ulrich Drepper <drepper@redhat.com>
5760 * nscd/cache.c (cache_add): Take additional parameter specifying
5761 whether this is in response of a cache refill. Check alignment
5762 of package data. Revamp waking of pruning thread.
5763 (prune_cache): Small optimization.
5764 * nscd/nscd.h: Adjust cache_add prototypes.
5765 * nscd/aicache.c: Adjust cache_add calls.
5766 * nscd/grpcache.c: Likewise.
5767 * nscd/hstcache.c: Likewise.
5768 * nscd/initgrcache.c: Likewise.
5769 * nscd/pwdcache.c: Likewise.
5770 * nscd/servicescache.c: Likewise.
5771 * nscd/connections.c (restart): Really disable cache use before
5772 exec attempt. If it fails, reenable cache.
5773 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
5774 time to max to be able to notice concurrent cache additions. Unlock
5775 prune_lock while performing gc. Afterwards compute wakeup time with
5776 current wakeup_time value in mind.
5778 2008-05-17 Ulrich Drepper <drepper@redhat.com>
5780 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5782 * nscd/mem.c (gc): Correctly determine highest used array element
5785 * nscd/mem.c (markrange): Add assert to check entries are all
5786 aligned. Small cleanup in bitmap use.
5788 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5789 blockoff of type nscd_ssize_t.
5790 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5791 (mempoll_alloc): Record block offset and not address.
5793 * nscd/mem.c (gc): Fix test for stack overuse.
5795 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5798 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5799 entry is available, believe it.
5801 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5802 no answers return NSS_STATUS_NOTFOUND.
5803 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5804 buffer does not have any content.
5806 2008-05-16 Ulrich Drepper <drepper@redhat.com>
5808 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5810 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5811 lookup, don't assign canon unconditionally.
5813 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5815 * string/Makefile (distribute): Add str-two-way.h.
5817 2008-03-29 Eric Blake <ebb9@byu.net>
5819 Rewrite string searches to O(n) rather than O(n^2).
5820 * string/str-two-way.h: New file. For linear fixed-allocation
5822 * string/memmem.c: New implementation.
5823 * string/strstr.c: New implementation.
5824 * string/strcasestr.c: New implementation.
5826 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
5828 * posix/regcomp.c (optimize_utf8): Add a note on why we test
5830 (calc_first): Initialize constraint field.
5831 (duplicate_node_closure): Use it instead of special casing ANCHORS.
5832 Use search_duplicated_node to avoid loops. Fix grammar.
5833 (duplicate_node): Merge constraint field for all node types.
5834 (calc_eclosure_iter): Look at constraint field for all node types.
5835 * posix/regex_internal.c (create_cd_newstate): Don't look at
5838 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5841 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5844 * string/endian.h: Add macros for fixed-size endian conversion.
5845 * bits/byteswap.h: Allow inclusion from <endian.h>.
5846 * sysdeps/i386/bits/byteswap.h: Likewise.
5847 * sysdeps/ia64/bits/byteswap.h: Likewise.
5848 * sysdeps/s390/bits/byteswap.h: Likewise.
5849 * sysdeps/x86_64/bits/byteswap.h: Likewise.
5850 * string/Makefile (tests): Add tst-endian.
5851 * string/tst-endian.c: New file.
5853 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5854 Patch by Reuben Thomas.
5856 2008-05-14 Joseph Myers <joseph@codesourcery.com>
5858 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5860 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5862 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5865 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5867 (BODY for __gconv_transform_internal_ascii): Likewise.
5870 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5871 to be treated like link-local addresses.
5872 (match_prefix): Don't treat IPv4 loopback address special when
5873 converting to v4 mapped addressed.
5875 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5877 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5878 * posix/tst-rfc3484-2.c: Likewise.
5879 * posix/tst-rfc3484-3.c: Likewise.
5881 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5884 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5886 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5888 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5890 2008-05-13 Ulrich Drepper <drepper@redhat.com>
5892 * po/lt.po: New file. From Lituanian translation team.
5894 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
5896 Introduce TLS descriptors for i386 and x86_64.
5897 * include/inline-hashtab.h: New file, copied from 2005's
5898 libiberty, with fix for memory leak imported afterwards by
5899 Glauber de Oliveira Costa.
5900 * elf/tlsdeschtab.h: New file.
5901 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5902 (_dl_allocate_static_tls): ... here. Rearrange failure path.
5903 (CHECK_STATIC_TLS): Move to...
5904 * elf/dynamic-link.h: ... this file.
5905 (TRY_STATIC_TLS): New macro.
5906 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5907 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5908 R_386_TLS_DESC): Define.
5909 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5911 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5912 R_X86_64_TLSDESC): Define.
5913 (R_386_NUM, R_X86_64_NUM): Adjust.
5914 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5915 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5916 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5917 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5918 release tlsdesc_table.
5919 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5920 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5921 (elf_machine_rel): Handle R_386_TLS_DESC.
5922 (elf_machine_rela): Likewise.
5923 (elf_machine_lazy_rel): Likewise.
5924 (elf_machine_lazy_rela): Likewise.
5925 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5926 * sysdeps/i386/dl-tlsdesc.S: New file.
5927 * sysdeps/i386/dl-tlsdesc.h: New file.
5928 * sysdeps/i386/tlsdesc.c: New file.
5929 * sysdeps/i386/tlsdesc.sym: New file.
5930 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5932 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5933 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5934 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5935 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5936 release tlsdesc_table.
5937 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5938 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5939 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5940 (elf_machine_rel): Handle R_X86_64_TLSDESC.
5941 (elf_machine_rela): Likewise.
5942 (elf_machine_lazy_rel): Likewise.
5943 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5944 (__tls_get_addr): Do not declare for non-shared compiles.
5945 * sysdeps/x86_64/dl-tlsdesc.S: New file.
5946 * sysdeps/x86_64/dl-tlsdesc.h: New file.
5947 * sysdeps/x86_64/tlsdesc.c: New file.
5948 * sysdeps/x86_64/tlsdesc.sym: New file.
5949 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5950 tlsdesc_table for both 32- and 64-bit structs.
5952 2008-05-11 Ulrich Drepper <drepper@redhat.com>
5954 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5955 its own function. This reduces the frame setup costs and more.
5957 2008-02-11 Joseph Myers <joseph@codesourcery.com>
5960 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5961 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5963 2008-05-11 Ulrich Drepper <drepper@redhat.com>
5965 * io/openat.c (__openat_2): Also pass fd to __openat.
5966 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5967 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5969 * string/tester.c (test_memcmp): Add a few more tests.
5970 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5972 2008-05-10 Ulrich Drepper <drepper@redhat.com>
5974 * nscd/cache.c (cache_add): Before returning with failure and this
5975 is the first use of the record, mark it as unusable.
5976 * nscd/aicache.c: Don't touch the dataset after cache_add returns
5977 reporting a failure.
5978 * nscd/grpcache.c: Likewise
5979 * nscd/hstcache.c: Likewise.
5980 * nscd/initgrcache.c: Likewise.
5981 * nscd/pwdcache.c: Likewise.
5982 * nscd/servicescache.c: Likewise.
5984 2008-05-10 Roland McGrath <roland@redhat.com>
5987 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5989 2008-05-08 David S. Miller <davem@davemloft.net>
5991 * misc/truncate64.c (truncate64): Use __truncate not truncate.
5993 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5994 (__ieee754_y0l): Likewise.
5995 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5996 (__ieee754_y1l): Likewise.
5997 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5998 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5999 frexpl and ldexpl. math_private.h provides them and the latter
6001 (__log1pl): Use __frexpl.
6003 2008-05-10 Ulrich Drepper <drepper@redhat.com>
6005 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6007 * include/arpa/nameser_compat.h: Define T_UNSPEC.
6008 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6009 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6010 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6012 (_nss_nis_gethostbyname4_r): New function.
6013 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6014 Change to also handle af==AF_UNSPEC.
6015 (get_tablename): New function. Use it to avoid duplication.
6016 (_nss_nisplus_gethostbyname4_r): New function.
6017 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6019 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6020 * nss/nss.h: Define struct gaih_addrtuple.
6021 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6023 (_nss_files_gethostbyname4_r): New function.
6024 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6025 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6027 * resolv/res_query.c (__libc_res_nquery): Take two additional
6028 parameters for second answer buffer. Handle type=T_UNSPEC to mean
6029 look up IPv4 and IPv6.
6031 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6032 for an additional query and answer buffer. Pass to send_vc and
6034 (send_vc): Send possibly two requests and receive two answers.
6035 (send_dg): Likewise.
6036 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6038 (_nss_dns_gethostbyname4_r): New function.
6039 (gaih_getanswer_slice): Likewise.
6040 (gaih_getanswer): Likewise.
6041 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6042 __libc_res_nquery call.
6043 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6044 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6045 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6048 2008-05-05 David S. Miller <davem@davemloft.net>
6050 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6051 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6053 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6055 Fix termios bit macros.
6056 Move *DLY definitions where they belong, in termios.h.
6057 Add *[0-3] definitions.
6058 Fixes confusion between VT and FF.
6059 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6060 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6061 are already defined to avoid collision with termios.h.
6062 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6063 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6064 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6065 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6066 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6067 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6068 VTDLY, VT0, VT1): New macros.
6069 [__USE_GNU] (OLCUC): Change value of macro.
6070 [__USE_XOPEN] (OFILL): New macro.
6071 [__USE_BSD] (CRTSCTS): Change value.
6072 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6073 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6074 (B7200, B14400, B28800, B76800): New macros.
6076 2008-05-01 David S. Miller <davem@davemloft.net>
6078 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6079 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6080 (gen-as-const-headers): Add it.
6081 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6082 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6083 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6084 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6086 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6087 six system call parameters.
6088 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6090 2008-04-30 Ulrich Drepper <drepper@redhat.com>
6092 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6094 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6095 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6097 2008-04-30 Jakub Jelinek <jakub@redhat.com>
6099 * stdlib/tst-setcontext.c: Include unistd.h.
6101 2008-04-25 David S. Miller <davem@davemloft.net>
6103 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6104 Pass "union semun" properly in to sys_ipc, it must be passed
6105 by value, not by reference.
6107 2008-04-22 Jakub Jelinek <jakub@redhat.com>
6109 * nscd/Makefile (nscd-cflags): Set back to -fpie.
6110 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6111 * nscd/connections.c (mem_in_flight): Likewise.
6113 * nscd/nscd.h (dbs): Make hidden.
6115 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6116 Avoid returning -1, return 0 instead.
6118 2008-04-19 Ulrich Drepper <drepper@redhat.com>
6120 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6122 2008-04-15 Ulrich Drepper <drepper@redhat.com>
6125 * sysdeps/unix/sysv/linux/times.c: New file.
6128 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6129 mem_in_flight_list variables. Add new parameter to mempool_alloc
6131 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
6132 appropriate mem_in_flight element.
6133 (gc): Take allocations which have not yet been committed to the
6134 database into account.
6135 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6136 Reset mem_in_flight before returning.
6137 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6138 cue it up in mem_in_flight_list.
6139 * nscd/aicache.c: Adjust mempool_alloc call.
6140 * nscd/grpcache.c: Likewise.
6141 * nscd/hstcache.c: Likewise.
6142 * nscd/initgrcache.c: Likewise.
6143 * nscd/pwdcache.c: Likewise.
6144 * nscd/servicescache.c: Likewise.
6145 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6148 * nscd/connections.c (handle_request): Provide better error message
6149 in case SELinux forbids the service.
6151 * version.h (VERSION): Bump to 2.8.90.
6153 2008-04-17 Jakub Jelinek <jakub@redhat.com>
6155 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6157 2008-04-11 Ulrich Drepper <drepper@redhat.com>
6159 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6160 Also use for 32-bit.
6161 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6162 __nextafter instead of nextafter to avoid local PLT.
6163 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6164 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6166 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6168 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6170 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
6171 <fenv_libc.h> instead of <fenv.h>.
6172 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6173 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6175 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6177 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6178 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6179 function from fegetexcept and make old name weak alias.
6180 * include/fenv.h: Declare __fegetexcept.
6181 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6183 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6184 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6186 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6187 instead of frexpl to avoid local PLT.
6188 * math/s_significandl.c (__significandl): Use __ilogbl instead of
6189 ilogbl to avoid local PLT.
6190 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6191 instead of ldexpl to avoid local PLT.
6192 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6193 __roundl not roundl to avoid local PLT.
6194 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6195 local PLTs. Use __sincosl instead of separate sinl and cosl
6197 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6199 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6200 version for ppc64 to 2.4.21 since without it makecontext will fail.
6202 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6204 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6206 [__powerpc64__] (TLS_GD): Likewise.
6208 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
6211 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6212 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6214 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6215 Likewise. Also account for when x is an odd number between 2^52
6217 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6218 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6219 * math/libm-test.inc (lround_test, llround_test): Added test cases to
6220 detect aforementioned erroneous conditions.
6222 2008-04-11 Jakub Jelinek <jakub@redhat.com>
6224 * configure.in: Check for -fno-section-anchors in addition to
6225 -fno-toplevel-reorder.
6227 2008-04-11 Ulrich Drepper <drepper@redhat.com>
6229 * include/features.h (__GLIBC_MINOR__): Bump to 8.
6231 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6232 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6233 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6234 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6235 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6236 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6238 2008-04-11 Jakub Jelinek <jakub@redhat.com>
6241 * time/era.c: Transform __libc_setlocale_lock into rwlock.
6242 * time/alt_digit.c: Likewise.
6243 * wcsmbs/wcsmbsload.c: Likewise.
6245 2008-04-10 Ulrich Drepper <drepper@redhat.com>
6247 * version.h (VERSION): Bump to 2.8.
6249 * timzeone/asia: Update from tzdata2008b.
6250 * timezone/backward: Likewise.
6251 * timezone/europe: Likewise.
6252 * timezone/northamerica: Likewise.
6253 * timezone/southamerica: Likewise.
6254 * timezone/iso3166.tab: Likewise.
6255 * timezone/leapseconds: Likewise.
6256 * timezone/zone.tab: Likewise.
6257 * timezone/private.h: Update from tzcode2008a.
6258 * timezone/zdump.c: Likewise.
6259 * timezone/zic.c: Likewise.
6261 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
6264 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6265 Define additonal Data Cache Block instruction macros.
6266 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6267 Replace dcbst with dcbf and sync with sync/isync.
6269 2008-02-21 Alan Modra <amodra@bigpond.net.au>
6271 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6272 Always set ELF_RTYPE_CLASS_PLT.
6273 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6275 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
6277 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6278 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6279 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6280 For ISA 2.01 and later replace mftb with mfspr 268.
6282 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
6285 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6286 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6288 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
6291 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6292 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6293 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6294 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6296 2008-04-10 Jakub Jelinek <jakub@redhat.com>
6298 * stdlib/tst-makecontext.c (othervar): New variable.
6299 (cf): Test sign extending the argument to long.
6301 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
6303 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6304 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6305 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6306 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6307 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6308 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6309 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6311 2008-02-22 Alan Modra <amodra@bigpond.net.au>
6313 * elf/Makefile (tests): Substitute tests-vis-yes here.
6314 (tests-vis-yes): Delete.
6315 (modules-name, modules-vis-yes): Similarly.
6317 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
6320 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6321 Preserve sign in signgamp when x is zero.
6323 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
6325 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6326 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6327 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6328 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6329 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6330 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6332 2008-04-09 Ulrich Drepper <drepper@redhat.com>
6335 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6339 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6340 a reserved error value.
6342 * stdlib/tst-makecontext.c: Change parameter to cf to negative
6343 value to check for correct sign extension.
6346 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6347 Copy 64-bit parameter values even though this is not required in
6350 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6353 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
6355 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6358 2008-04-09 Jakub Jelinek <jakub@redhat.com>
6360 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6362 2008-04-09 Ulrich Drepper <drepper@redhat.com>
6365 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6366 in line-buffered stream failed.
6367 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6369 2008-04-08 Ulrich Drepper <drepper@redhat.com>
6372 * scripts/abi-versions.awk: If the version specified by
6373 --enable-oldest-abi is older than the first version for this
6374 architecture, use the default version.
6376 * locale/programs/ld-collate.c (collate_read): Ignore script lines
6377 as well when ignoring the whole category.
6379 2008-04-07 Ulrich Drepper <drepper@redhat.com>
6382 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6383 ETHERTYPE_* definitions.
6384 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6386 2008-04-07 Jakub Jelinek <jakub@redhat.com>
6388 * stdlib/mbtowc.c (__no_r_state): Remove.
6389 (mbtowc): New static state variable. Use it instead of
6391 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6392 (__wctomb_state): New hidden variable.
6393 (wctomb): Use __wctomb_state instead of __no_r_state.
6394 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6395 (__wctomb_state): New extern decl.
6396 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6398 2008-04-07 Ulrich Drepper <drepper@redhat.com>
6401 * resolv/res_init.c: Handle scope IDs in resolv.conf.
6403 2008-04-07 Jakub Jelinek <jakub@redhat.com>
6405 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6407 2008-04-06 Ulrich Drepper <drepper@redhat.com>
6409 * po/nl.po: Update from translation team.
6411 2008-03-31 Ulrich Drepper <drepper@redhat.com>
6414 * string/strfry.c: Handle empty strings again.
6416 2008-03-30 Ulrich Drepper <drepper@redhat.com>
6419 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6420 before looking for translation.
6421 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6422 * locale/freelocale.c: Likewise.
6423 * locale/newlocale.c: Likewise.
6424 * locale/setlocale.c: Likewise.
6425 Based partially on a patch by ryo@np.css.fujitsu.com.
6427 2008-03-30 Jakub Jelinek <jakub@redhat.com>
6429 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6430 acquiring wrlock. Do conv_tab allocation while holding lock.
6431 * intl/Makefile: Add rules to build and run tst-gettext6.
6432 * intl/tst-gettext6.c: New test.
6433 * intl/tst-gettext6.sh: New file.
6435 2008-03-30 Ulrich Drepper <drepper@redhat.com>
6437 * po/nl.po: Update from translation team.
6439 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6440 provided through st_blksize, try the default size before giving up.
6442 2008-03-29 Ulrich Drepper <drepper@redhat.com>
6444 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6447 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6449 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6450 error message. POSIX today does not require the messages to be in
6451 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
6454 * sunrpc/auth_unix.c: Unify printed strings.
6455 * sunrpc/clnt_tcp.c: Likewise.
6456 * sunrpc/clnt_udp.c: Likewise.
6457 * sunrpc/clnt_unix.c: Likewise.
6458 * sunrpc/svc_tcp.c: Likewise.
6459 * sunrpc/svc_udp.c: Likewise.
6460 * sunrpc/svc_unix.c: Likewise.
6461 * sunrpc/xdr.c: Likewise.
6462 * sunrpc/xdr_array.c: Likewise.
6463 * sunrpc/xdr_rec.c: Likewise.
6464 * sunrpc/xdr_ref.c: Likewise.
6465 * locale/programs/ld-time.c (time_finish): Unify messages.
6466 * locale/programs/locfile.c (handle_copy): Fix typo.
6467 * nscd/nscd.c (options): Fix typo.
6470 * stdlib/strtod_l.c: Use correct sign for result in one more
6472 Patch by Eric Blake <ebb9@byu.net>.
6474 2008-03-27 Jakub Jelinek <jakub@redhat.com>
6476 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6477 and creat system calls.
6478 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6480 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6482 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6483 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6484 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6486 2008-03-27 Ulrich Drepper <drepper@redhat.com>
6488 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6489 <linux/limits.h> has defined it.
6490 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6491 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6493 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6494 it instead of ARG_MAX.
6496 2008-03-25 Jakub Jelinek <jakub@redhat.com>
6498 * posix/gai.conf: Fix comment for scope nullbits.
6499 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6500 default to 128 bits for v4 mapped addresses.
6502 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
6504 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6505 ptrace call to get the ieee_instruction_pointer from the kernel.
6506 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6507 ptrace call to set the ieee_instructtion_pointer.
6508 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6509 Add comment that ieee_instruction_pointer is always 0.
6511 2008-03-09 Andreas Jaeger <aj@suse.de>
6514 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6515 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6516 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6518 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6519 (rint_test): Likewise.
6521 2008-03-24 Ulrich Drepper <drepper@redhat.com>
6523 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6525 (__nisfind_server): Similar for open readColdStartFile call.
6526 Patch partially by Jim Meyering.
6527 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6528 around internal_setent call.
6530 * po/vi.po: New Vietnamese translation.
6532 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6535 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6536 remove CLONE_STOPPED.
6538 2008-02-10 Jim Meyering <meyering@redhat.com>
6540 Remove useless "if" before "free":
6541 * elf/ldconfig.c (parse_conf_include): Likewise.
6542 * gmon/gmon.c (weak_alias): Likewise.
6543 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6544 * inet/rcmd.c (__validuser2_sa): Likewise.
6545 * intl/bindtextdom.c (set_binding_values): Likewise.
6546 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6547 * libio/genops.c (save_for_backup): Likewise.
6548 * libio/wgenops.c (save_for_wbackup): Likewise.
6549 * locale/programs/ld-collate.c (collate_read): Likewise.
6550 * locale/programs/linereader.c (get_string): Likewise.
6551 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6552 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6553 * resolv/res_debug.c (do_section): Likewise.
6554 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6555 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6556 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6557 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6558 * time/tzset.c (tzset_internal): Likewise.
6560 2008-03-18 Jakub Jelinek <jakub@redhat.com>
6562 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6565 2008-03-11 Ulrich Drepper <drepper@redhat.com>
6568 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6569 not stream for output file. Open output file here.
6570 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6571 and output file name.
6572 (process_fd): Likewise.
6573 (process_file): Likewise.
6574 (main): Adjust callers of changed functions.
6575 * iconv/iconv_prog.h: Adjust prototype.
6577 2008-03-09 Andreas Jaeger <aj@suse.de>
6580 * sysdeps/ia64/ieee754.h: Use protected namespace
6581 __BIG_ENDIAN/__LITTLE_ENDIAN.
6582 * sysdeps/ieee754/ieee754.h: Likewise.
6583 Patch by Aurelien Jarno <aurelien@aurel32.net>.
6585 2008-03-08 Roland McGrath <roland@frob.com>
6587 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6588 ignore a signal that came from a machine exception, treat it as a
6589 fatal core-dump signal instead.
6590 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6592 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6593 Clear DF bit in thread state's eflags.
6594 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6596 2008-03-08 Ulrich Drepper <drepper@redhat.com>
6599 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6600 of NAN(...) sequence.
6601 * stdlib/Makefile (tests): Add tst-strtod6.
6602 * stdlib/tst-strtod6.c: New file.
6604 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6607 * posix/getopt.c (_getopt_internal_r): Clarify error message by
6608 putting offending option character in quotes. Clean up error
6610 * po/be.po: Adjust msgstr in translation file.
6611 * po/bg.po: Likewise.
6612 * po/ca.po: Likewise.
6613 * po/cs.po: Likewise.
6614 * po/da.po: Likewise.
6615 * po/de.po: Likewise.
6616 * po/es.po: Likewise.
6617 * po/fr.po: Likewise.
6618 * po/hr.po: Likewise.
6619 * po/ko.po: Likewise.
6620 * po/nl.po: Likewise.
6621 * po/rw.po: Likewise.
6622 * po/sk.po: Likewise.
6623 * po/sv.po: Likewise.
6624 * po/tr.po: Likewise.
6625 * po/zh_CN.po: Likewise.
6626 * po/zh_TW.po: Likewise.
6629 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6630 Patch by Roland Bless <roland@bless.de>.
6632 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6634 * elf/Makefile (routines): Add dl-sysdep.
6635 (elide-routines.os): Likewise.
6637 2008-03-07 Ulrich Drepper <drepper@redhat.com>
6640 * elf/dl-sysdep.c: Undefine ROUND after use.
6641 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6642 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6643 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6644 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6646 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6647 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6649 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6651 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6652 _dl_tls_get_addr_soft element.
6653 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6654 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6655 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6657 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6658 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6659 of internal_function.
6661 * stdlib/Makefile (aux): Add tens_in_limb.
6662 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6663 * stdlib/tens_in_limb.c: ...here. New file.
6666 * sysdeps/unix/sysv/linux/pathconf.h: Declare
6667 __statfs_chown_restricted.
6668 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6669 for _PC_CHOWN_RESTRICTED.
6670 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6671 Implement __statfs_chown_restricted.
6672 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6673 _POSIX_CHOWN_RESTRICTED value to zero.
6674 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6677 * sysdeps/x86_64/rtld-memset.c: New file.
6679 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
6681 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6683 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6684 Barcelona machine. Make default fall through branch of
6685 __x86_64_preferred_memory_instruction check as the integer code path.
6687 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6689 * sysdeps/x86_64/cacheinfo.c
6690 (__x86_64_preferred_memory_instruction): New variable.
6691 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6693 * sysdeps/x86_64/memset.S: Rewrite.
6695 2008-03-04 Jakub Jelinek <jakub@redhat.com>
6697 * include/stdio.h (__asprintf_chk, __dprintf_chk,
6698 __obstack_printf_chk): New prototypes.
6699 (__vasprintf_chk, __vdprintf_chk,
6700 __obstack_vprintf_chk): Likewise.
6701 Add libc_hidden_proto.
6703 (_IO_obstack_jumps): No longer static, add attribute_hidden.
6704 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6705 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6706 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6707 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6708 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6709 __obstack_vprintf_chk): New prototypes.
6710 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6711 obstack_vprintf): New inlines.
6712 * debug/dprintf_chk.c: New file.
6713 * debug/vdprintf_chk.c: New file.
6714 * debug/asprintf_chk.c: New file.
6715 * debug/vasprintf_chk.c: New file.
6716 * debug/obprintf_chk.c: New file.
6717 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6718 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6719 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6721 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6722 vdprintf_chk and obprintf_chk, set CFLAGS for them.
6723 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6724 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6726 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6727 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6728 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6729 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6730 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6732 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6733 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6734 obstack_vprintf_chk.
6735 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6736 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6737 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6738 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6739 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6740 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6742 2008-03-04 Ulrich Drepper <drepper@redhat.com>
6745 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6746 Patch by Roy Marples <roy@marples.name>.
6749 * malloc/malloc.c: Fix typo in comment.
6752 * locale/iso-639.def: Add Shuswap.
6754 2008-02-25 Jakub Jelinek <jakub@redhat.com>
6757 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6758 overwrite *h_errnop/*errnop values from getanswer_r in case of
6761 2008-03-03 Ulrich Drepper <drepper@redhat.com>
6764 * nscd/connections.c (dbs): Add initializers for .suggested_module.
6765 (verify_persistent_db): Remove one unnecessary test and add a new one
6766 for bad configuration.
6767 (nscd_init): Improve error reported when persistent database cannot
6769 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6770 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6771 .suggested_module and .max_db_size and case config file says the
6773 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6776 * nis/ypclnt.c (yp_order): Fix handling of return value of
6778 Patch by Jeff Moyer <jmoyer@redhat.com>.
6780 * po/fr.po: Update from translation team.
6782 2008-02-22 Andreas Jaeger <aj@suse.de>,
6783 Carlos O'Donell <carlos@systemhalted.org>
6786 * FAQ.in: Describe why glibc needs to be compiled with
6789 2008-02-19 Roland McGrath <roland@redhat.com>
6791 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6793 2008-02-15 Ulrich Drepper <drepper@redhat.com>
6796 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6797 __USE_MISC is defined.
6799 2008-02-10 Ulrich Drepper <drepper@redhat.com>
6801 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6802 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6804 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6805 timerfd_gettime, timerfd_settime.
6806 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6807 timerfd_gettime, timerfd_settime for GLIBC_2.8.
6809 2008-02-08 Roland McGrath <roland@redhat.com>
6811 * elf/elf.h (NT_PPC_SPE): New macro.
6813 2008-02-06 Roland McGrath <roland@redhat.com>
6815 * Makerules ($(common-objpfx)sysd-rules):
6816 Depend on $(sysdep-makeconfigs).
6818 2008-01-31 Roland McGrath <roland@redhat.com>
6821 * configure.in: Use -print-file-name if it yields a directory,
6822 for each of include and include-fixed.
6823 * configure: Regenerated.
6825 * Makeconfig (sysd-rules-targets): New variable.
6826 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6827 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6829 2008-01-30 Roland McGrath <roland@redhat.com>
6831 * manual/libc.texinfo: Update back-cover text.
6833 * elf/elf.h (NT_386_TLS): New macro.
6835 2008-01-29 Roland McGrath <roland@redhat.com>
6837 * Makeconfig (sysd-rules-patterns): New variable.
6838 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6839 (check-inhibit-asm): New canned sequence, replaces ...
6840 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6841 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6842 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6843 (CFLAGS-rtld): Variable removed.
6845 2008-01-24 Roland McGrath <roland@redhat.com>
6847 * configure.in: Let configure fragments set base_os.
6848 * configure: Regenerated.
6850 2008-01-22 Ulrich Drepper <drepper@redhat.com>
6852 * po/ko.po: Update from translation team.
6854 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
6856 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6858 2008-01-12 Andreas Jaeger <aj@suse.de>
6861 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6864 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
6866 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6867 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6868 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6870 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
6872 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6873 * elf/dl-close.c (_dl_close): Check for it.
6874 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6875 (_dl_allocate_static_tls): Likewise.
6876 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6877 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6879 * elf/tst-tls16.c: New file.
6880 * elf/tst-tlsmod16a.c: New file.
6881 * elf/tst-tlsmod16b.c: New file.
6882 * elf/Makefile: Add rules to build and run tst-tls16.
6884 2008-01-16 Ulrich Drepper <drepper@redhat.com>
6887 * bits/shm.h: Fix comment describing shmid_ds.
6888 * sysdeps/gnu/bits/shm.h: Likewise.
6889 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6890 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6891 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6892 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6893 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6894 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6895 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6896 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6897 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6900 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6902 * conform/data/limits.h-data: Adjust limits changed in v6 and add
6903 additional suffixes.
6904 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6905 Add optional functions mq_timedreceive and mq_timedsend.
6906 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6907 * conform/data/pthread.h-data: Fix prototype of
6908 pthread_condattr_setclock. pthread_sigmask is not required in v6.
6909 * conform/data/semaphore.h-data: Allow time.h definitions.
6910 * conform/data/signal.h-data: Likewise.
6911 * conform/data/stdio.h-data: getw and putw are not required in v6.
6912 * conform/data/stdlib.h-data: Change setstate prototype.
6913 * conform/data/string.h-data: Fix strerror_r prototype.
6914 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6915 * conform/data/unistd.h-data: pthread_atfork not required in v6.
6916 Fix readlink prototype.
6917 * conform/data/netinet/in.h-data: Add const to in6addr_any and
6919 * inet/netinet/in.h: Cleanup namespace.
6920 * posix/regex.h: Likewise.
6921 * resolv/netdb.h: Likewise.
6922 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6923 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6924 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6925 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6926 of names of in in6_addr.
6927 (default_precedence): Likewise.
6928 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6931 2008-01-15 Ulrich Drepper <drepper@redhat.com>
6933 * conform/data/fmtmsg.h-data: Add missing allows.
6934 * conform/data/ftw.h-data: Likewise.
6935 * conform/data/inttypes.h-data: Likewise.
6936 * conform/data/math.h-data: Likewise.
6937 * conform/data/signal.h-data: Likewise.
6938 * conform/data/net/if.h-data: Likewise.
6939 * conform/data/netinet/in.h-data: Likewise.
6940 * conform/data/sys/socket.h-data: Likewise.
6943 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6944 (__strtok_r): Simplify.
6945 * string/tester.c (test_strtok_r): Add test case for futile search
6946 with single-character seach string.
6948 2008-01-12 Ulrich Drepper <drepper@redhat.com>
6950 * po/ko.po: Update from translation team.
6952 2008-01-11 Andreas Jaeger <aj@suse.de>
6955 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6956 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6959 2008-01-10 Ulrich Drepper <drepper@redhat.com>
6961 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6962 native interface lookup in all the relevant places.
6964 2008-01-10 Jakub Jelinek <jakub@redhat.com>
6965 Ulrich Drepper <drepper@redhat.com>
6967 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6968 field. Use sockaddr_in6 for source_addr.
6969 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
6970 (match_prefix): Likewise.
6971 (get_label): Likewise.
6972 (get_precedence): Likewise.
6973 (rfc3484_sort): Change to use indirect access to results array.
6974 Adjust to use of sockaddr_in6. Replace service_order test with
6975 simple index comparison.
6976 (getaddrinfo): Define order array. Initialize it. Don't initialize
6977 service_order field. Adjust qsort_t calls. Access sorted result
6978 array indirectly through order array.
6979 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6980 * posix/tst-rfc3484-2.c: Likewise.
6981 * posix/tst-rfc3484-3.c: Likewise.
6983 2008-01-09 Ulrich Drepper <drepper@redhat.com>
6986 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6988 Patch by André Cruz.
6991 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6992 (clnt_spcreateerror): Likewise.
6995 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6996 (public_mEMALIGn): Likewise.
6997 Patch mostly by Daniel Jacobowitz.
6999 2008-01-09 Jakub Jelinek <jakub@redhat.com>
7001 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7002 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7003 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7004 * stdlib/tst-makecontext2.c: New test.
7006 2008-01-08 Jakub Jelinek <jakub@redhat.com>
7008 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7010 (REINIT_PARAMS): Likewise. Undefine before end of file.
7011 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7012 transliteration hooks and REINIT_PARAMS afterwards.
7013 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7015 (REINIT_PARAMS): Define.
7016 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7017 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7018 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7019 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7020 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7021 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7022 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7023 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7024 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7025 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7026 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7027 * iconvdata/tst-iconv7.c: New test.
7029 2008-01-07 Ulrich Drepper <drepper@redhat.com>
7031 * libio/stdio.h (vscanf): Fix definition for loser compilers.
7033 2008-01-05 Jakub Jelinek <jakub@redhat.com>
7036 * nscd/connections.c (restart): Fix condition.
7038 2008-01-03 Jakub Jelinek <jakub@redhat.com>
7040 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7041 __ctype_toupper_loc): Add __THROW.
7043 2008-01-02 Ulrich Drepper <drepper@redhat.com>
7045 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7046 recognition of interface family.
7048 * posix/getconf.c: Update copyright year.
7049 * nss/getent.c: Likewise.
7050 * iconv/iconvconfig.c: Likewise.
7051 * iconv/iconv_prog.c: Likewise.
7052 * elf/ldconfig.c: Likewise.
7053 * catgets/gencat.c: Likewise.
7054 * csu/version.c: Likewise.
7055 * elf/ldd.bash.in: Likewise.
7056 * elf/sprof.c (print_version): Likewise.
7057 * locale/programs/locale.c: Likewise.
7058 * locale/programs/localedef.c: Likewise.
7059 * nscd/nscd.c (print_version): Likewise.
7060 * debug/xtrace.sh: Likewise.
7061 * malloc/memusage.sh: Likewise.
7062 * malloc/mtrace.pl: Likewise.
7063 * debug/catchsegv.sh: Likewise.
7065 2007-12-26 Ulrich Drepper <drepper@redhat.com>
7067 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7070 2007-12-23 Ulrich Drepper <drepper@redhat.com>
7072 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7073 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7075 2007-12-17 Roland McGrath <roland@redhat.com>
7077 * inet/ether_line.c (ether_line): Remove unused variable.
7079 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
7081 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7083 * login/openpty.c (openpty): Likewise.
7084 * login/pty.h (openpty, forkpty): Likewise.
7085 * manual/terminal.texi (openpty, forkpty): Likewise.
7087 2007-12-17 Ulrich Drepper <drepper@redhat.com>
7089 * malloc/malloc.c (public_cALLOc): For arenas other than
7090 main_arena, count all bytes inside the mprotect_size range of the
7091 heap as uninitialized.
7093 2007-12-16 Ulrich Drepper <drepper@redhat.com>
7095 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7098 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7099 mTRIm for all of them.
7100 (mTRIm): Additionally iterate over all free blocks and use madvise
7101 to free memory for all those blocks which contain at least one
7103 * malloc/tst-trim1.c: New file.
7104 * malloc/Makefile (tests): Add tst-trim1.
7106 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7108 2007-12-14 Ulrich Drepper <drepper@redhat.com>
7110 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7111 First cast argument to long
7112 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7114 (__vdso_clock_gettime): Likewise.
7115 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7118 2007-12-13 Ulrich Drepper <drepper@redhat.com>
7120 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7121 * locale/nl_langinfo_l.c: Real implementation, copied from
7123 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7125 2007-12-01 Jim Meyering <meyering@redhat.com>
7127 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7128 that would inhibit utf8-optimization of a regexp containing line-
7129 or buffer-anchors, e.g., `^', `$'.
7131 2007-12-12 Ulrich Drepper <drepper@redhat.com>
7133 * time/bug-getdate1.c (do_test): Don't use century values which
7134 aren't valid on 32-bit systems.
7136 2007-12-12 Jakub Jelinek <jakub@redhat.com>
7138 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7139 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7140 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7141 __strcat_g, __strncat_g): Add __asm__.
7143 2007-12-12 Ulrich Drepper <drepper@redhat.com>
7146 * io/fchmodat.c: Fix typo in stub_warning use.
7147 Patch by Petr Salinger.
7149 2007-12-11 Ulrich Drepper <drepper@redhat.com>
7151 * iconvdata/hp-thai8.c: New file.
7152 * iconvdata/Makefile: Add rules for hp-thai8.c.
7153 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7154 * iconvdata/gconv-modules: Likewise.
7157 * iconvdata/hp-greek8.c: New file.
7158 * iconvdata/Makefile: Add rules for hp-greek8.c.
7159 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7160 * iconvdata/gconv-modules: Likewise.
7163 * iconvdata/hp-turkish8.c: New file.
7164 * iconvdata/Makefile: Add rules for hp-turkish8.c.
7165 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7166 * iconvdata/gconv-modules: Likewise.
7168 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7169 (shrink_heap): ... this new function.
7170 (heap_trim): Call shrink_heap instead of grow_heap.
7172 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7173 case don't call alloc_perturb.
7175 2007-12-10 Ulrich Drepper <drepper@redhat.com>
7177 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7179 * sysdeps/unix/sysv/linux/kernel-features.h
7180 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7181 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7183 2007-12-08 Ulrich Drepper <drepper@redhat.com>
7186 * stdio-common/vfprintf.c: Do not overflow when adding to done.
7187 * stdio-common/Makefile (tests): Add bug22.
7188 * stdio-common/bug22.c: New file.
7191 * time/getdate.c: Fix filling in default values.
7192 * time/bug-getdate1.c: New file.
7193 * time/Makefile: Add rules to build and run bug-getdate1.
7195 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7196 * iconvdata/ebcdic-es.c: Likewise.
7197 * iconvdata/ebcdic-es-a.c: Likewise.
7198 * iconvdata/ebcdic-uk.c: Likewise.
7199 * iconvdata/iso8859-16.c: Likewise.
7200 * iconvdata/viscii.c: Likewise.
7201 * iconvdata/iso8859-9e.c: Likewise.
7202 * iconvdata/Makefile: Adjust appropriately.
7205 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7208 2007-12-07 Ulrich Drepper <drepper@redhat.com>
7211 * iconvdata/hp-roman9.c: New file.
7212 * iconvdata/Makefile: Add rules for hp-roman9.c.
7213 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7214 * iconvdata/gconv-modules: Likewise.
7216 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7217 * iconvdata/Makefile: Adjust appropriately.
7220 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7221 structure, it's allocated with alloca.
7222 * stdio-common/Makefile (tests): Add bug21.
7223 * stdio-common/bug21.c: New file.
7225 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
7228 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7229 keyword for gcc's braced-groups.
7231 2007-12-07 Ulrich Drepper <drepper@redhat.com>
7234 * inet/ether_line.c: Strip hostname of whitespaces.
7235 * inet/Makefile (tests): Add tst-ether_line.
7236 * inet/tst-ether_line.c: New file.
7238 2007-12-03 Ulrich Drepper <drepper@redhat.com>
7241 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7244 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7246 * stdlib/tst-setcontext.c: Catch the case where the links gets
7247 messed up and we do not reach main again.
7249 * po/ca.po: Update from translation team.
7251 2007-11-26 Ulrich Drepper <drepper@redhat.com>
7253 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7254 * posix/regex.h (REG_ENOSYS): Likewise.
7255 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7257 2007-11-25 Ulrich Drepper <drepper@redhat.com>
7259 * nscd/nscd.h (MAX_STACK_USE): Define.
7260 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7261 (gc): Initialize stack_used based on allocation in prune_cache.
7262 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7263 Clear array before use.
7265 * nscd/aicache.c (addhstaiX): Update statistics counter in case
7266 memory allocation failed.
7267 * nscd/hstcache.c (cache_addhst): Likewise.
7268 * nscd/grpcache.c (cache_addgr): Likewise.
7269 * nscd/servicescache.c (cache_addserv): Likewise.
7270 * nscd/pwdcache.c (cache_addpw): Likewise.
7271 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7273 2007-11-23 Ulrich Drepper <drepper@redhat.com>
7275 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7276 and creat system calls.
7278 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7280 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
7282 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7284 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7285 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7287 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7288 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7289 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7291 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
7293 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7294 strncat): Define as macros to avoid compile errors.
7296 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
7299 2007-11-22 Ulrich Drepper <drepper@redhat.com>
7302 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7303 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7304 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7306 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7308 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7309 Return zero in case the thread library is not NPTL.
7312 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7313 initializing interface list.
7316 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7317 use result of nss_getgrgid_r if nothing was found. For other
7318 error return with a failure.
7319 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7321 * locale/programs/ld-collate.c (collate_read): Fix loop to match
7324 2007-11-19 Ulrich Drepper <drepper@redhat.com>
7326 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7327 (get_scope): For IPv4 scope, use scopes table.
7328 (fini): Free scopes table if necessary.
7329 (free_scopelist): New function.
7330 (scopecmp): New function.
7331 (gaiconf_init): Also handle scopev4 entries.
7332 * posix/tst-rfc3484.c (do_test): Initialize scopes.
7333 * posix/tst-rfc3484-2.c (do_test): Likewise.
7334 * posix/gai.conf: Document scopev4 defaults.
7335 * posix/Makefile (tests): Add tst-rfc3484-3.
7336 * posix/tst-rfc3484-3.c: New file.
7338 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7340 * posix/gai.conf: Update for current default tables.
7342 2007-11-19 Ulrich Drepper <drepper@redhat.com>
7344 * po/tr.po: Update from translation team.
7346 2007-11-18 Roland McGrath <roland@frob.com>
7348 * manual/arith.texi (Remainder Functions): Spelling fix.
7349 From Shaun Silk <genix@mysoul.com.au>.
7351 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7353 2007-11-17 Ulrich Drepper <drepper@redhat.com>
7355 * po/zh_CN.po: Update from translation team.
7357 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7358 Add sys/signalfd.h and sys/eventfd.h.
7360 2007-11-15 Bruno Haible <bruno@clisp.org>
7363 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7365 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7366 (DCIGETTEXT): Change the allocation of the 'search' variable so that
7367 it needs only fixed stack space. Delay the initialization of
7368 msgid_len until it is needed.
7370 2007-11-15 Andreas Jaeger <aj@suse.de>
7372 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7373 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7375 2007-11-15 Ulrich Drepper <drepper@redhat.com>
7377 * po/ko.po: Update from translation team.
7379 2007-11-14 Ulrich Drepper <drepper@redhat.com>
7381 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7382 significantly. The device type is also part of the ifinfomsg data.
7384 * po/sv.po: Update from translation team.
7385 * po/nl.po: Likewise.
7387 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7388 to wake up in 24 hours.
7390 * nscd/gai.c (__ioctl): Define. Include check_native.c.
7392 2007-11-13 Ulrich Drepper <drepper@redhat.com>
7394 * po/cs.po: Update from translation team.
7395 * po/pl.po: Likewise.
7397 * include/ifaddrs.h: Remove in6ai_temporary.
7398 (struct in6addrinfo): Add index element.
7399 Declare __check_native.
7400 * inet/Makefile (aux): Add check_native.
7401 * sysdeps/unix/sysv/linux/check_native.c: New file.
7402 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7403 IFA_F_TEMPORARY. Pass back ifa_index.
7404 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7405 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
7406 call __check_native if necessary.
7407 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
7408 to sort addresses. Pass information about the results.
7409 * posix/tst-rfc3484.c: Adjust for addition of index field and change
7410 of rfc3484_sort interface.
7411 * posix/tst-rfc3484-2.c: Likewise.
7413 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
7414 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7416 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7417 (qsort_r): Renamed from qsort. Take additional parameter and pass it
7418 on as third parameter to compare function and _quicksort.
7419 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7420 to the compare function.
7421 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7422 * Versions.def: Add GLIBC_2.8 for libc.
7424 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7425 * posix/tst-rfc3484-2.c: Likewise.
7427 * include/kernel-features.h: Moved to...
7428 * sysdeps/mach/hurd/kernel-features.h: ...here.
7430 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
7432 * sysdeps/i386/i586/memcpy_chk.S: New file.
7433 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7434 * sysdeps/i386/i586/memset_chk.S: Likewise.
7436 2007-11-12 Ulrich Drepper <drepper@redhat.com>
7438 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7439 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7440 list of interfaces. Also store prefix length.
7441 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7442 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7443 prefix if source and destination address are in the same subnet.
7444 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
7445 Always look for matching record in in6ai list.
7446 Correct source_addr_len value for IPv6->IPv4 converted records.
7448 2007-11-11 Roland McGrath <roland@frob.com>
7450 * include/kernel-features.h: New file.
7452 2007-11-10 Ulrich Drepper <drepper@redhat.com>
7454 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7455 complications for 64-bit platforms.
7457 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7458 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
7459 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7461 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7463 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7464 * sysdeps/wordsize-64/alphasort.c: New file.
7465 * sysdeps/wordsize-64/alphasort64.c: New file.
7466 * sysdeps/wordsize-64/fseeko.c: New file.
7467 * sysdeps/wordsize-64/fseeko64.c: New file.
7468 * sysdeps/wordsize-64/ftello.c: New file.
7469 * sysdeps/wordsize-64/ftello64.c: New file.
7470 * sysdeps/wordsize-64/ftw.c: New file.
7471 * sysdeps/wordsize-64/ftw64.c: New file.
7472 * sysdeps/wordsize-64/iofgetpos.c: New file.
7473 * sysdeps/wordsize-64/iofgetpos64.c: New file.
7474 * sysdeps/wordsize-64/iofopen.c: New file.
7475 * sysdeps/wordsize-64/iofopen64.c: New file.
7476 * sysdeps/wordsize-64/iofsetpos.c: New file.
7477 * sysdeps/wordsize-64/iofsetpos64.c: New file.
7478 * sysdeps/wordsize-64/lockf.c: New file.
7479 * sysdeps/wordsize-64/lockf64.c: New file.
7480 * sysdeps/wordsize-64/mkostemp.c: New file.
7481 * sysdeps/wordsize-64/mkostemp64.c: New file.
7482 * sysdeps/wordsize-64/mkstemp.c: New file.
7483 * sysdeps/wordsize-64/mkstemp64.c: New file.
7484 * sysdeps/wordsize-64/scandir.c: New file.
7485 * sysdeps/wordsize-64/scandir64.c: New file.
7486 * sysdeps/wordsize-64/tmpfile.c: New file.
7487 * sysdeps/wordsize-64/tmpfile64.c: New file.
7488 * sysdeps/wordsize-64/versionsort.c: New file.
7489 * sysdeps/wordsize-64/versionsort64.c: New file.
7490 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7491 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7492 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7493 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7494 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7495 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7496 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7497 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7498 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7499 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7500 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7501 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7503 * crypt/sha256-crypt.c: Fix a comment.
7504 * crypt/sha512-crypt.c: Likewise.
7506 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
7508 * sysdeps/x86_64/memset.S: Add sfence after movnti.
7510 2007-11-07 Ulrich Drepper <drepper@redhat.com>
7513 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7514 because output buffer is too small break, don't loop.
7515 * iconvdata/Makefile (tests): Add bug-iconv6.
7516 * iconvdata/bug-iconv6.c: New file.
7518 2007-11-06 Ulrich Drepper <drepper@redhat.com>
7520 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7522 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7523 size_t. Add casts where needed.
7525 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7526 old headers, don't call avc_has_perm if we don't have the
7527 permission information.
7529 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
7531 * elf/rtld.c (dl_main): Use the page size to find the map start.
7533 2007-11-05 Ulrich Drepper <drepper@redhat.com>
7535 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7536 Patch by Szymon Siwek <sls@poczta.wp.pl>.
7538 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7539 when the lookup call failed.
7541 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7542 Add prune_cond and wakeup_time.
7543 (CACHE_PRUNE_INTERNAL): Define.
7544 Update declarations of prune_cache and setup_thread.
7545 * nscd/connections.c (dbs): Update initializers.
7546 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7547 (nscd_init): Default number of threads is now 4.
7548 (invalidate_cache): Take lock before calling prune_cache.
7549 (handle_request): If SELinux forbids the request, say so.
7550 (readylist_cond): Use static initializer.
7551 (nscd_run_prune): New function. Used only by pruning threads.
7552 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
7554 (fd_ready): Update nscd_run reference.
7555 (start_threads): No need to initialize readylist_cond.
7556 Start pruning threads separately.
7557 * nscd/nscd_setup_thread.c: Change return value type to int and always
7559 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7560 to int and return nonzero value if we can use the TID address hack.
7561 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7562 the database is later than the new entry's timeout, update the
7563 wakeup time and wake the cleanup thread.
7564 (prune_cache): Return seconds the next entry in the database is still
7565 valid. Remove locking for pruning here.
7566 * nscd/nscd.conf: Document default number of threads.
7568 2007-10-31 Ulrich Drepper <drepper@redhat.com>
7570 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7571 stack is properly aligned for the target function.
7572 Correct unwind info.
7574 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7575 when using auditing libraries.
7577 2007-10-29 Ulrich Drepper <drepper@redhat.com>
7579 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7580 _nss_dns_getnetbyaddr2_r.
7581 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
7582 extra parameter to getanswer_r.
7583 (_nss_dns_getnetbyaddr_r): Now a wrapper around
7584 _nss_dns_getnetbyaddr2_r.
7586 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7588 * nscd/gethstbynm2_r.c: Remove.
7589 * nscd/gethstbynm3_r.c: New file.
7590 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7592 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
7593 __gethostbyaddr_r compatibility wrapper.
7594 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
7595 determining timeout of entry.
7596 (lookup): Take new parameter and pass it to __gethostbyname3_r and
7598 (addhstbyX): Pass reference to variable for TTL to lookup and
7600 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7601 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7602 and __nss_next2. Remove __nss_services_lookup.
7603 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
7605 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7607 * nss/getXXent_r.c: Likewise.
7608 * nss/getnssent_r.c: Likewise.
7609 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
7610 does not exist in module, try the optional second name.
7611 (__nss_next2): New function.
7612 (__nss_next): Now wrapper around __nss_next2.
7613 * nss/nsswitch.h: Adjust __nss_lookup prototype.
7614 Declare __nss_next2.
7615 Adjust definition of db_lookup_function type.
7616 * nss/service-lookup.c: Define NO_COMPAT.
7617 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7618 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7619 * inet/ether_ntoh.c: Likewise.
7620 * sunrpc/netname.c: Likewise.
7621 * sunrpc/publickey.c: Likewise.
7622 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
7623 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7624 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7625 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7626 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7628 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7630 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7632 2007-10-28 Ulrich Drepper <drepper@redhat.com>
7635 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7636 * crypt/sha512c-test.c: Likewise.
7639 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7640 to keep track of end of %[ format string element.
7641 * stdio-common/Makefile (tests): Add bug20.
7642 * stdio-common/bug20.c: New file.
7645 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7646 path elements in counting mode.
7648 2007-10-27 Andreas Jaeger <aj@suse.de>
7651 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7654 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7655 (__cleanup): Free shared library when exiting.
7656 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7657 (__cleanup): Free shared library when exiting.
7659 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
7662 * math/libm-test.inc (check_float_internal): Support
7663 denormalized return.
7665 2007-10-23 Andreas Jaeger <aj@suse.de>
7668 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7669 __LONG_LONG_PAIR to handle little endian byte order.
7670 Suggested by abhishekrai@google.com
7672 2007-10-27 Ulrich Drepper <drepper@redhat.com>
7674 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7676 2007-10-26 Ulrich Drepper <drepper@redhat.com>
7678 * nscd/cache.c (prune_cache): Move test for modified file outside
7681 2007-10-21 Andreas Jaeger <aj@suse.de>
7683 * manual/texinfo.tex: Update to latest version.
7685 * manual/sysinfo.texi (System Parameters): Fix Formatting.
7687 * manual/arith.texi (Status bit operations): Fix formatting.
7689 * manual/errno.texi (Error Messages): Fix formatting.
7691 * manual/sysinfo.texi (System Parameters): Fix formatting.
7693 * manual/libc.texinfo: Update VERSION and UPDATED.
7695 2007-10-19 Roland McGrath <roland@redhat.com>
7697 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7699 2007-10-06 David S. Miller <davem@davemloft.net>
7701 * configure.in: Add sparcv9v2 and sparc64v2.
7702 * scripts/config.sub: Likewise.
7703 * configure: Regenerate.
7704 * elf/elf.h (HWCAP_SPARC_N2): New.
7705 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7706 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7707 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7708 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7709 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7710 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7711 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7713 2007-10-18 Ulrich Drepper <drepper@redhat.com>
7715 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7716 even if the poll result indicates there is data to read.
7717 Patch by Jeff Moyer <jmoyer@redhat.com>.
7719 2007-10-18 Roland McGrath <roland@redhat.com>
7721 * elf/elf.h (NT_PPC_VMX): New macro.
7723 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7725 * version.h (VERSION): Set to 2.7.90.
7727 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7729 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
7732 2007-10-17 Roland McGrath <roland@frob.com>
7734 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7735 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7737 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7739 * version.h (VERSION): Bump to 2.7.
7740 * include/features.h (__GLIBC_MINOR__): Bump to 7.
7743 * time/tzset.c (__tz_convert): Don't force testing for a change of
7744 TZ if not called from localtime. But then also see whether the
7745 file changed, in case __use_tzfile is set.
7747 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7748 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7749 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7750 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7751 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7752 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7753 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7754 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7756 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7758 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7759 and admin selects to be able to replace the gai.conf file, lock
7760 data structures around the qsort call.
7762 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7764 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7766 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
7767 too high for the improvements. Implement bzero unconditionally for
7770 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7771 Jakub Jelinek <jakub@redhat.com>
7773 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7774 even when time_t is 32-bit.
7775 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7776 timezone data read by __tzfile_default. Ensure __tzname[0] is
7777 always set after the search.
7779 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7781 * time/tzfile.c (__tzfile_read): Help the compiler recognize
7782 unreachable code on 32-bit machines.
7784 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7787 * time/strftime_l.c: Include stdbool.h.
7788 (my_strftime): New wrapper, old function renamed to...
7789 (__strftime_internal): ... new function. Add tzset_called
7790 argument, pass it down to recursive calls, don't call tzset ()
7791 if already true, set to true after call to tzset ().
7793 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7795 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7796 into account when copying TZ string.
7798 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7800 * time/tzfile.c (__tzfile_compute): For use_last case set i to
7801 num_transition rather than num_transitions - 1.
7803 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7805 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7808 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7809 a local label rather than HIDDEN_JUMPTARGET.
7811 2007-10-15 Ulrich Drepper <drepper@redhat.com>
7813 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7814 (init_cacheinfo): Initialize it.
7815 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7816 Always define bzero.
7817 Remove non-glibc code.
7818 * sysdeps/x86_64/bzero.S: Make an empty file.
7820 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
7822 * sysdeps/x86_64/cacheinfo.c
7823 (__x86_64_preferred_memory_instruction): New.
7824 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7826 * sysdeps/x86_64/memset.S: Rewrite.
7828 2007-10-15 Roland McGrath <roland@redhat.com>
7830 * po/libc.pot: Regenerated.
7832 2007-10-15 Ulrich Drepper <drepper@redhat.com>
7834 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7838 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7839 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7840 address record to T_A/T_AAAA requests.
7842 2007-10-14 Ulrich Drepper <drepper@redhat.com>
7844 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7846 * posix/glob.c: Add some branch prediction throughout.
7848 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7851 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7853 (rfc3484_sort): Make sure that even if qsort doesn't support
7854 stable sorting out sorting here is stable by comparing service_order.
7855 (getaddrinfo): Initialize service_order.
7856 * posix/tst-rfc3484.c (do_test): Adjust for addition of
7857 service_order field to sorting structure.
7858 * posix/tst-rfc3484-2.c (do_test): Likewise.
7860 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7861 * time/tzset.c (tzset_internal): Break TZ string parsing out into
7862 __tzset_parse_tz and updating of daylight, timezone, tzname into
7864 (__tz_compute): Renamed from tz_compute. Take additional parameters.
7865 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7866 happens in __tz_compute.
7867 * time/tzfile.c (__tzfile_read): Also read TZ string.
7868 (find_transition): Fold into __tzfile_compute.
7869 (__tzfile_compute): For times beyond the last transition try to
7871 * timezone/tst-timezone.c: Information in daylight and tzname does
7872 change for Asia/Tokyo timezone with more concrete information.
7875 * include/stdio.h: Add libc_hidden_proto for ftello.
7876 * libio/ftello.c: Add libc_hidden_def.
7879 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7880 on the specified time and not the last entries in the file. Move
7881 code to determine tzname[] to...
7882 (find_transition): ...here. Add ugly guess for times before the
7885 2007-10-13 Ulrich Drepper <drepper@redhat.com>
7888 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7890 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7891 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7892 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7893 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7895 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7896 read mechanism when there are no group members and avoid no-op
7897 read syscall in this case.
7900 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7901 (__readall): If reading failed due to EAGAIN error wait a bit
7902 and possibly try again.
7903 (__readvall): Likewise.
7905 2007-10-13 Bruno Haible <bruno@clisp.org>
7907 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7908 when we cannot recode the message.
7910 2007-10-13 Ulrich Drepper <drepper@redhat.com>
7913 * libio/__freading.c (__freading): Don't return true for
7914 write-only streams. For read/write streams, check whether we
7915 performed a read operation already.
7916 * libio/Makefile (tests): Add tst-ext2.
7917 * libio/tst-ext2.c: New file.
7919 2007-10-12 Ulrich Drepper <drepper@redhat.com>
7921 * locale/programs/repertoire.c (repertoire_read): Always free
7922 memory for repertoire file name [Coverity CID 270].
7924 * elf/cache.c (save_aux_cache): Free memory allocated for
7925 temporary file name [Coverity CID 267].
7927 2007-10-12 Jakub Jelinek <jakub@redhat.com>
7929 * misc/Makefile (headers): Add bits/error.h.
7931 2007-10-12 Ulrich Drepper <drepper@redhat.com>
7933 * posix/fnmatch_loop.c: Take rule index returned as part of
7934 findidx return value into account when accessing weights.
7935 * posix/regcomp.c: Likewise.
7936 * posix/regexec.c: Likewise.
7938 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7939 (skip_to): Fix problems with parameter of elifdef/elifndef.
7941 2007-10-11 Ulrich Drepper <drepper@redhat.com>
7943 * iconv/gconv_simple.c: Add some branch prediction.
7945 2007-10-12 Jakub Jelinek <jakub@redhat.com>
7947 * locale/programs/ld-collate.c (collate_read): If ignore_content
7948 and nowtok is tok_define, eat any tok_eol tokens.
7950 2007-10-11 Jakub Jelinek <jakub@redhat.com>
7952 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7953 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7955 * inet/netinet/in.h: Don't include bits/socket.h.
7956 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7958 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7960 2007-10-10 Ulrich Drepper <drepper@redhat.com>
7962 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7964 * locale/programs/locfile-kw.gperf: Likewise.
7965 * locale/programs/ld-collate.c: Implement primitive preprocessor.
7967 2007-10-10 Jakub Jelinek <jakub@redhat.com>
7969 * stdio-common/printf-parse.h: Include string.h and wchar.h.
7970 (__find_specwc): Change into __extern_always_inline function.
7971 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
7972 (__parse_one_specmb): Remove ps argument.
7973 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7974 Adjust __find_specmb and __parse_one_specmb callers.
7975 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7976 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7978 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7981 2007-10-09 Ulrich Drepper <drepper@redhat.com>
7983 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7984 with some Pentium Ds.
7986 2007-10-08 Ulrich Drepper <drepper@redhat.com>
7988 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7990 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7993 2007-10-07 Ulrich Drepper <drepper@redhat.com>
7996 * locale/C-time.c: Set week_1stday data to 19971201.
7997 * locale/programs/ld-time.c (time_finish): Default for
7998 first_workday is Monday.
8001 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8004 * posix/glob.c (glob): Recognize patterns starting \/.
8005 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8006 (main): Add test for pattern starting \/.
8008 * misc/error.h: Use __const instead of const.
8009 * misc/bits/error.h: Likewise.
8011 2007-10-07 Andreas Jaeger <aj@suse.de>
8013 * include/bits/error.h: New file.
8015 * misc/bits/error.h (error_at_line): Fix prototype.
8017 2007-10-06 Ulrich Drepper <drepper@redhat.com>
8020 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8021 more little bugs in creating the stack frame when pltexit has to
8024 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8025 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8028 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8029 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8030 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8031 * math/libm-test.inc: Add test for this case.
8034 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8035 (svc_register): Initialize sc_mapped. Set to TRUE if call to
8036 map service succeeded.
8037 (svc_is_mapped): New function.
8038 (svc_unregister): Use it before trying to unmap service.
8040 2007-10-05 Ulrich Drepper <drepper@redhat.com>
8042 * timezone/zic.c: Update from tzcode2007h.
8045 * timezone/africa: Update from tzdata2007h.
8046 * timezone/antarctica: Likewise.
8047 * timezone/asia: Likewise.
8048 * timezone/australasia: Likewise.
8049 * timezone/europe: Likewise.
8050 * timezone/leapseconds: Likewise.
8051 * timezone/northamerica: Likewise.
8052 * timezone/southamerica: Likewise.
8053 * timzeone/zone.tab: Likewise.
8056 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8059 * string/bits/string2.h (__strdup): Cast parameters to calloc to
8060 avoid warning with -Wconversion.
8061 (__strndup): Likewise.
8062 Half the patch by Christian Iseli <christian.iseli@licr.org>.
8065 * nscd/connections.c (restart): Don't resync if database is
8066 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8068 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8069 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
8071 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8072 evetnfd_read, eventfd_write.
8073 * sysdeps/unix/sysv/linux/eventfd.c: New file.
8074 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8075 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8076 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8077 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8078 eventfd_write for GLIBC_2.7.
8080 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8081 * sysdeps/unix/sysv/linux/signalfd.c: New file.
8082 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8083 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8085 2007-10-04 Jakub Jelinek <jakub@redhat.com>
8087 * stdlib/msort.c: Include stdint.h.
8088 (struct msort_param): New type.
8089 (msort_with_tmp): Use struct msort_param pointer for unchanging
8090 parameters. Add optimized handling for several common sizes
8091 and indirect sorting mode.
8092 (qsort): Adjust msort_with_tmp callers. For big S use indirect
8094 Suggested by Belazougui Djamel .
8096 * stdlib/Makefile (tests): Add tst-qsort2.
8097 * stdlib/tst-qsort2.c: New test.
8099 2007-10-04 Ulrich Drepper <drepper@redhat.com>
8101 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8102 for dup2 in case another thread races with the current one. Retry
8105 * misc/error.h: Remove support for use outside of libc. We have to
8106 include <features.h> now. Include <bits/error.h> if possible.
8107 * misc/bits/error.h: New file.
8109 2007-10-03 Jakub Jelinek <jakub@redhat.com>
8111 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8112 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8113 __extern_always_inline functions unconditionally, drop macros.
8115 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8116 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8117 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8119 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8120 add __artificial__ attribute.
8122 2007-10-02 Ulrich Drepper <drepper@redhat.com>
8124 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8125 backward to forward direction.
8127 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8130 * locale/programs/ld-collate.c (collate_finish): Compare against last
8131 used section which is known to have rules defined.
8132 (collate_read): After order_start, correctly record order of sections
8133 and queue sections up.
8135 2007-10-01 Ulrich Drepper <drepper@redhat.com>
8138 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8139 the same number of pages.
8140 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8142 * locale/programs/ld-collate.c (collate_read): After initial copy
8143 statement, continue in state 0.
8145 * include/stdio_ext.h (__fsetlocking): Define as macro.
8147 2007-09-30 Ulrich Drepper <drepper@redhat.com>
8149 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8152 * po/pt_BR.po: Fix typo.
8154 2007-09-29 Ulrich Drepper <drepper@redhat.com>
8156 * iconvdata/Makefile (modules): Add ISO8859-9E.
8157 (distribute): Add iso8859-9e.c.
8158 (gen-8bit-gap-modules): Add iso8859-9e.
8159 * iconvdata/iso8859-9e.c: New file.
8160 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8161 * iconvdata/TESTS: Likewise.
8162 * iconvdata/tst-tables.sh: Likewise.
8164 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8166 * locale/iso-639.def: Add several new entries.
8168 2007-09-24 Jakub Jelinek <jakub@redhat.com>
8170 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8171 void * pointers instead of struct link_map **.
8172 (_dl_scope_free): Change argument type to void *.
8173 * include/link.h (struct link_map): Change type of l_reldeps
8174 to struct link_map_reldeps, move l_reldepsact into that
8176 * elf/dl-deps.c: Include atomic.h.
8177 (_dl_map_object_deps): Only change l->l_initfini when it is
8178 fully populated, use _dl_scope_free for freeing it. Optimize
8179 removal of libs from reldeps by using l_reserved flag, when
8180 some removal is needed, allocate a new list instead of
8181 reallocating and free the old with _dl_scope_free. Adjust
8182 for l_reldeps and l_reldepsact changes.
8183 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
8184 searching in l_initfini and l_reldeps without holding dl_load_lock.
8185 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8186 l_reldepsact changes.
8187 * elf/dl-close.c (_dl_close_worker): Likewise.
8188 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8190 2007-09-28 Ulrich Drepper <drepper@redhat.com>
8192 * iconvdata/Makefile (modules): Add KOI8-RU.
8193 (distribute): Add koi8-ru.c.
8194 (gen-8bit-gap-modules): Add koi8-ru.
8195 * iconvdata/koi8-ru.c: New file.
8196 * iconvdata/gconv-modules: Add entries for KOI8-RU.
8197 * iconvdata/TESTS: Likewise.
8198 * iconvdata/tst-tables.sh: Likewise.
8200 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8202 2007-09-26 Jakub Jelinek <jakub@redhat.com>
8204 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8205 with __warning__/__error__ attributes.
8206 (__warnattr): Define.
8207 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8208 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8210 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8211 of __*_chk if compile time detectable overflow is found.
8212 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8213 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8215 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8216 instead of __*_chk if compile time detectable overflow is found.
8217 (__gets_alias): Rename to...
8218 (__gets_warn): ... this. Add __warnattr.
8219 (gets): Call __gets_warn instead of __gets_alias.
8220 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8221 aliases with __warnattr.
8222 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8223 time detectable overflow is found.
8224 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8225 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8226 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8227 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8228 __getdomainname_chk_warn): New aliases with __warnattr.
8229 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8230 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8231 __*_chk_warn instead of __*_chk if compile time detectable overflow
8233 (__getgroups_chk): Rename argument to __listlen from listlen.
8234 (__getwd_alias): Rename to...
8235 (__getwd_warn): ... this. Add __warnattr.
8236 (getwd): Call __getwd_warn instead of __getwd_alias.
8237 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8238 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8239 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8240 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8241 __wcsnrtombs_chk_warn): New aliases with __warnattr.
8242 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8243 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8244 compile time detectable overflow is found.
8245 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
8246 to use __*_chk or not.
8247 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8248 in comparisons which function should be called and in __*_chk*
8249 arguments. Call __*_chk_warn instead of __*_chk if compile time
8250 detectable overflow is found.
8251 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8253 * debug/tst-chk1.c (do_test): Add a few more tests.
8255 2007-09-24 Ulrich Drepper <drepper@redhat.com>
8258 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8259 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8260 (_nl_unload_domain): Finalize conversions_lock.
8261 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8262 handling table of known conversions.
8264 2007-09-24 Jakub Jelinek <jakub@redhat.com>
8266 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8267 close_not_cancel_no_status instead of close.
8269 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
8272 * posix/regcomp.c (lookup_collation_sequence_value): Check that
8273 nrules != 0 for multibyte chars.
8275 2007-09-23 Ulrich Drepper <drepper@redhat.com>
8277 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8278 Provide better error message in case the type is unknown.
8281 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8282 * string/stratcliff.c: Make usable to test wide char functions.
8283 * wcsmbs/wcsatcliff.c: New file.
8284 * wcsmbs/Makefiel (tests): Add wcsatcliff.
8287 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8288 (distribute): Add mac-centraleurope.c.
8289 (gen-8bit-gap-modules): Add mac-centraleurope.
8290 * iconvdata/mac-centraleurope.c: New file.
8291 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8292 * iconvdata/TESTS: Likewise.
8293 * iconvdata/tst-tables.sh: Likewise.
8296 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8298 2007-09-21 Ulrich Drepper <drepper@redhat.com>
8300 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8301 from __x86_64_core_cache_size_half.
8302 (init_cacheinfo): Compute shared cache size for AMD processors with
8303 shared L3 correctly.
8304 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8306 Patch in large parts by Evandro Menezes.
8308 2007-09-19 Ulrich Drepper <drepper@redhat.com>
8310 * elf/dl-lookup.c (add_dependency): Handle failing memory
8311 allocation for dependency list. Remove unnecessary check.
8313 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8314 open/close when determining source addresses.
8316 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8317 sha512-crypt, and sha512.
8318 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8319 (distribute): Add sha256.h and sha512.h.
8320 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8321 and call the appropriate code.
8322 * crypt/sha256-crypt.c: New file.
8323 * crypt/sha256.c: New file.
8324 * crypt/sha256.h: New file.
8325 * crypt/sha256c-test.c: New file.
8326 * crypt/sha256test.c: New file.
8327 * crypt/sha512-crypt.c: New file.
8328 * crypt/sha512.c: New file.
8329 * crypt/sha512.h: New file.
8330 * crypt/sha512c-test.c: New file.
8331 * crypt/sha512test.c: New file.
8333 2007-09-19 Jakub Jelinek <jakub@redhat.com>
8335 * misc/bits/syslog.h (syslog): Remove extraneous argument from
8336 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8339 2007-09-18 Jakub Jelinek <jakub@redhat.com>
8341 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8342 %as in fscanf format strings.
8344 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8345 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8346 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8348 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8351 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8352 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8353 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8354 * elf/dl-sym.c (do_sym): Likewise.
8355 * include/link.h (struct link_map): Add l_serial field.
8356 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8357 * elf/dl-lookup.c (add_dependency): Add flags argument.
8358 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8359 flags, use THREAD_GSCOPE_RESET_FLAG before and
8360 THREAD_GSCOPE_SET_FLAG after
8361 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8362 Don't dereference map until it has been found on some list.
8363 If map->l_serial changed, return -1.
8365 2007-09-17 Jakub Jelinek <jakub@redhat.com>
8367 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8368 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8369 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8371 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8372 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8373 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8374 add libc_hidden_proto.
8375 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8376 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8377 conformance requested.
8378 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8379 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8380 conformance requested.
8381 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8382 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8383 conformance requested.
8384 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8385 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8386 ISO C99 or POSIX conformance requested.
8387 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8388 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8389 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8390 and __isoc99_vsscanf@@GLIBC_2.7.
8391 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8392 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8393 (tests): Add scanf14.
8394 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8395 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8396 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8397 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8398 CFLAGS-isoc99_scanf.c): Add $(exceptions).
8399 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8400 from using internal headers.
8401 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8402 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8403 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8404 and __isoc99_vswscanf@@GLIBC_2.7.
8405 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8406 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8407 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8408 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8409 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8410 * stdio-common/isoc99_scanf.c: New file.
8411 * stdio-common/isoc99_vsscanf.c: New file.
8412 * stdio-common/isoc99_vscanf.c: New file.
8413 * stdio-common/isoc99_vfscanf.c: New file.
8414 * stdio-common/isoc99_fscanf.c: New file.
8415 * stdio-common/isoc99_sscanf.c: New file.
8416 * wcsmbs/isoc99_fwscanf.c: New file.
8417 * wcsmbs/isoc99_vswscanf.c: New file.
8418 * wcsmbs/isoc99_swscanf.c: New file.
8419 * wcsmbs/isoc99_wscanf.c: New file.
8420 * wcsmbs/isoc99_vwscanf.c: New file.
8421 * wcsmbs/isoc99_vfwscanf.c: New file.
8422 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8423 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8424 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8425 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8426 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8427 * stdio-common/scanf14.c: New test.
8428 * stdio-common/scanf15.c: New test.
8429 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8430 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8431 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8432 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8433 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8434 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8435 __nldbl___isoc99_scanf@@GLIBC_2.7,
8436 __nldbl___isoc99_fscanf@@GLIBC_2.7,
8437 __nldbl___isoc99_sscanf@@GLIBC_2.7,
8438 __nldbl___isoc99_vscanf@@GLIBC_2.7,
8439 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8440 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8441 __nldbl___isoc99_wscanf@@GLIBC_2.7,
8442 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8443 __nldbl___isoc99_swscanf@@GLIBC_2.7,
8444 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8445 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8446 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8447 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8448 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8449 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8450 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8451 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8452 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8453 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8454 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8455 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8456 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8457 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8458 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8460 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8461 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8462 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8463 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8464 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8465 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8466 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8467 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8468 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8469 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8470 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8471 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8473 * stdio-common/Makefile (tests): Add scanf13.
8475 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8476 m modifier followed by l.
8477 (STRING_ARG): Add width argument.
8478 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8479 <case L_('C')>: Handle %mlc and %mC.
8480 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8482 * stdio-common/scanf13.c: New test.
8484 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8485 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8487 2007-09-18 Ulrich Drepper <drepper@redhat.com>
8489 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8490 type and __THROW marker of splice, vmsplice, and tee.
8491 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8492 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8493 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8494 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8495 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8496 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8497 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8498 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8499 as cancellation points.
8501 2003-11-01 Daniel Jacobowitz <dan@debian.org>
8503 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8504 parse more than three parts of the version number.
8506 2007-09-15 Ulrich Drepper <drepper@redhat.com>
8508 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8509 modifier. Patch by Jakub Jelinek.
8511 2007-08-26 Jakub Jelinek <jakub@redhat.com>
8513 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8514 call_fallocate in misc subdir.
8515 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8516 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8517 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8518 instead of __fallocate64.
8519 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8521 2007-09-15 Jakub Jelinek <jakub@redhat.com>
8523 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8524 * rt/Makefile (headers): Add bits/mqueue2.h.
8525 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8526 optimizing with GCC and __va_arg_pack_len is defined.
8527 * rt/bits/mqueue2.h: New file.
8528 * rt/mq_open.c (__mq_open): Renamed from mq_open.
8529 (mq_open): New strong_alias.
8530 (__mq_open_2): New function.
8531 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8532 (mq_open): New strong_alias.
8533 (__mq_open_2): New function.
8534 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8535 * Versions.def (librt): Add GLIBC_2.7 version.
8536 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8537 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8539 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8540 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8541 is defined rather than when not C++.
8542 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8543 __openat64_alias): New redirects.
8544 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8545 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8546 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8547 (open, open64, openat, openat64): Rewrite as __extern_always_inline
8548 functions instead of function-like macros.
8550 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
8552 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8553 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8554 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8556 2007-09-15 Mike Frysinger <vapier@gentoo.org>
8558 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8559 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8561 2007-09-14 Mike Frysinger <vapier@gentoo.org>
8563 * inet/tst-network.c: Increment ERRORS for failing tests.
8565 2007-09-07 Jakub Jelinek <jakub@redhat.com>
8567 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8568 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8569 implement as __extern_always_inline function.
8570 (vsyslog): Define as __extern_always_inline function unconditionally.
8571 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8572 When __va_arg_pack is defined, implement as __extern_always_inline
8574 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8575 __extern_always_inline functions unconditionally.
8576 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8577 bits/stdio2.h will be included.
8578 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8579 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8580 implement as __extern_always_inline functions.
8581 (vswprintf, vwprintf, vfwprintf): Define as
8582 __extern_always_inline functions unconditionally.
8583 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8585 2007-09-03 Jakub Jelinek <jakub@redhat.com>
8587 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8588 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8590 * include/features.h (__USE_EXTERN_INLINES): Define only when
8591 __extern_inline is defined.
8592 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8593 is defined instead of when not __cplusplus.
8594 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8595 is defined instead of when not __cplusplus.
8596 * socket/sys/socket.h: Include bits/socket2.h when
8597 __extern_always_inline is defined instead of when not __cplusplus.
8598 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8599 is defined instead of when not __cplusplus.
8600 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8601 is defined instead of when not __cplusplus.
8602 * string/string.h: Include bits/string3.h when __extern_always_inline
8603 is defined instead of when not __cplusplus.
8604 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8605 is defined instead of when not __cplusplus.
8606 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8607 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8609 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8610 defined __extern_always_inline instead of !defined __cplusplus.
8611 * libio/bits/stdio-ldbl.h: Likewise.
8612 * wcsmbs/bits/wchar-ldbl.h: Likewise.
8613 * misc/bits/syslog.h (syslog): Don't define for C++.
8614 (vsyslog): Use __extern_always_inline function for C++ instead of
8616 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8617 whenever that macro is defined.
8618 (vprintf): Don't provide the inline for C++.
8619 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8620 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8621 define the macros for C++.
8622 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8623 __extern_always_inline functions for C++.
8624 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8625 stat64, lstat64, fstat64, fstatat64): Don't define if not
8626 __USE_EXTERN_INLINES.
8627 * wcsmbs/bits/wchar2.h: Fix #error message.
8628 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8629 (vswprintf, vwprintf, vfwprintf): Define using
8630 __extern_always_inline functions for C++.
8631 * string/bits/string3.h: Don't #undef macros if __cplusplus.
8632 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8633 strncpy, strcat, strncat): Define as __extern_always_inline
8634 functions instead of macros for C++.
8635 * math/bits/cmathcalls.h: Guard __extern_inline routines with
8636 defined __extern_inline.
8637 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8638 to __extern_inline whenever that macro is defined.
8639 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8640 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8641 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8642 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8643 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8644 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8645 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8646 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8647 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8648 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8649 prototypes. Only provide __extern_inline routines if
8650 __USE_EXTERN_INLINES.
8651 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8653 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8654 For now avoid some *printf tests in C++. Skip all testing
8655 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8657 * debug/tst-chk4.cc: New file.
8658 * debug/tst-chk5.cc: New file.
8659 * debug/tst-chk6.cc: New file.
8660 * debug/tst-lfschk4.cc: New file.
8661 * debug/tst-lfschk5.cc: New file.
8662 * debug/tst-lfschk6.cc: New file.
8663 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8665 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8666 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8667 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8669 2007-09-13 Ulrich Drepper <drepper@redhat.com>
8671 * po/cs.po: Update from translation team.
8673 2007-09-11 Roland McGrath <roland@redhat.com>
8675 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8678 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8680 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8682 2007-09-05 Roland McGrath <roland@redhat.com>
8684 * manual/signal.texi (Signaling Another Process): Typo fix.
8685 From Karl Berry <karl@freefriends.org>.
8687 2007-08-29 Ulrich Drepper <drepper@redhat.com>
8689 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8690 zero if not defined.
8691 (make_request): Recognize optimistic addresses and treat them like
8692 deprecated addresses.
8693 Reported by Neil Horman <nhorman@redhat.com>.
8695 2007-08-28 Ulrich Drepper <drepper@redhat.com>
8697 * nscd/connections.c (send_ro_fd): Also transfer file size.
8698 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8699 file size don't call fstat.
8701 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8702 ahead and map the file. This should always be correct and we can
8703 catch problems later.
8705 2007-08-28 Jakub Jelinek <jakub@redhat.com>
8707 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8709 (__fread_alias, __fread_unlocked_alias): New aliases.
8710 (fread): New extern inline.
8711 (fread_unlocked): Likewise. Undef macro before definition of
8712 the inline function.
8713 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8714 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8715 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8716 and __fread_unlocked_chk@@GLIBC_2.7.
8717 * debug/fread_chk.c: New file.
8718 * debug/fread_u_chk.c: New file.
8719 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8721 2007-08-27 Jakub Jelinek <jakub@redhat.com>
8723 * sysdeps/unix/sysv/linux/syscalls.list
8724 (personality): Change caller to EXTRA.
8726 2007-08-25 Ulrich Drepper <drepper@redhat.com>
8728 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8730 * iconvdata/iso-2022-cn.c (BODY): Likewise.
8732 * locale/programs/ld-collate.c (collate_output): Avoid warning if
8735 * Makerules: Use -p option with mkdir.
8737 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8738 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8739 (_xdr_directory_obj): Likewise.
8740 (xdr_entry_obj): Likewise.
8741 (xdr_group_obj): Likewise.
8742 (xdr_link_obj): Likewise.
8743 (xdr_table_obj): Likewise.
8744 (_xdr_nis_result): Likewise.
8745 (_xdr_ns_request): Likewise.
8746 (_xdr_ib_request): Likewise.
8747 (_xdr_nis_taglist): Likewise.
8748 (xdr_cback_data): Likewise.
8749 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8750 (xdr_ypresp_maplist): Likewise.
8752 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8754 * posix/regex_internal.h: Prevent some declarations and definitions
8755 to be seen when used in tests.
8757 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8758 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8760 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8762 * config.make.in (datarootdir): Add to shut up configure.
8764 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8765 associativity for fully-associative caches.
8767 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8768 requests. Fill on more associativity values for L2.
8769 Patch mostly by Evandro Menezes.
8771 2007-08-24 Ulrich Drepper <drepper@redhat.com>
8773 * sysdeps/unix/sysv/linux/x86_64/init-first.c
8774 (_libc_vdso_platform_setup): Avoid using exported variable by using
8777 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8779 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8780 fallocate64 as EXTRA. It is not referenced if the symbol isn't
8783 2007-08-23 Ulrich Drepper <drepper@redhat.com>
8785 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8786 align stack for call if pltexit is to be used.
8789 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8790 align for function call in case pltexit has to be called later.
8792 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8793 implicit atomic operation when storing function pointer.
8794 (_dl_runtime_profile): Likewise.
8796 2007-08-17 Jakub Jelinek <jakub@redhat.com>
8798 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8801 2007-08-21 Ulrich Drepper <drepper@redhat.com>
8804 * string/strtok.c: Fix typo in comment.
8807 * debug/segfault.c: Fix typos in comments.
8810 * stdio-common/tempnam.c: Fix comment, it is not checked that
8811 TMPDIR points to a writable directory.
8814 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8815 memory allocated for the name server address.
8818 * nscd/connections.c (handle_request): Using sendfile always
8819 requires that mmap is used for the database.
8820 Patch by Petr Baudis <pasky@suse.cz>.
8823 * nscd/hstcache.c (cache_addhst): When reloading an entry which
8824 suddenly has two or more addresses, ignore it and remove the old
8828 * resolv/res_hconf.c: Prepare for compiling outside libc.
8829 * nscd/res_hconf.c: New file.
8830 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
8832 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8833 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8835 * nscd/hstcache.c (cache_addhst): Minimal optimization.
8838 * debug/pcprofiledump.c: Turn on internationalization by calling
8839 setlocale. Patch mostly by Benno Schulenberg.
8842 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8844 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8845 * iconvdata/bug-iconv5.c: New file.
8847 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
8850 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8851 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8852 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8853 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8854 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8855 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8856 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8857 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8859 2007-08-21 Ulrich Drepper <drepper@redhat.com>
8862 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8863 lookup loop. Suggested by John Reiser.
8865 2007-08-21 Jakub Jelinek <jakub@redhat.com>
8867 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8869 2007-08-20 Ulrich Drepper <drepper@redhat.com>
8871 * csu/libc-start.c: Don't handle VDSO_SETUP here.
8872 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8873 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8874 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
8875 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8877 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
8879 2007-08-18 Ulrich Drepper <drepper@redhat.com>
8881 * po/nl.po: Update from translation team.
8883 2007-08-16 Andreas Jaeger <aj@suse.de>
8885 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8886 Reported by Peter Festner <peter.festner@ewetel.net>.
8888 2007-08-17 Jakub Jelinek <jakub@redhat.com>
8890 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8892 2007-08-16 Jakub Jelinek <jakub@redhat.com>
8894 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8895 to check for undefined symbols.
8897 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8898 If the syscall fails, set errno to the actual returned error number
8900 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8901 arguments are incorrect, set errno to EINVAL, if the syscall
8902 fails, set errno to the actual returned error number.
8904 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8905 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8907 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8908 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
8910 (ASI_PNF, ASI_BLK_P): Don't define.
8911 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8912 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
8914 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8915 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
8918 2007-08-15 Jakub Jelinek <jakub@redhat.com>
8920 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8921 FE_UNDERFLOW on Niagara CPUs.
8923 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8926 2007-08-14 Jakub Jelinek <jakub@redhat.com>
8928 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8929 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8930 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8931 flush should be used or not inside of the function.
8932 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8934 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8935 __thread_start): Use HIDDEN_JUMPTARGET.
8936 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8937 __thread_start): Likewise.
8938 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8940 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8941 Add libc_hidden_proto.
8942 (STRTOF): Add libc_hidden_proto.
8943 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8944 (strtold_l, wcstold_l): Use them as second argument for
8947 2007-08-14 Ulrich Drepper <drepper@redhat.com>
8949 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
8951 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8953 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
8955 2007-08-14 Ulrich Drepper <drepper@redhat.com>
8957 * po/bg.po: New file. From the translation team.
8959 2007-08-13 Jakub Jelinek <jakub@redhat.com>
8961 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8962 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8963 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8964 when each feature was introduced.
8966 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8967 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8968 (CHECK_HASH): New macro.
8969 (PREPARE_VERSION): Use it.
8971 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8972 prototype if not __ASSUME_PSELECT.
8973 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8974 prototype if not __ASSUME_PPOLL.
8976 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8978 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8979 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8982 2007-08-13 Ulrich Drepper <drepper@redhat.com>
8984 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8985 (_libc_vdso_platform_setup): If vDSO is not available point
8986 __vdso_gettimeofday to the vsyscall.
8987 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8988 __vdso_gettimeofday instead of vsyscall.
8990 2007-08-13 Jakub Jelinek <jakub@redhat.com>
8992 * nscd/servicescache.c: Include kernel-features.h.
8993 * nscd/gai.c: Likewise.
8994 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8995 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8996 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8997 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8998 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8999 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9000 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9001 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9002 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9004 2007-08-12 Ulrich Drepper <drepper@redhat.com>
9006 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9007 and _dl_get_origin defines anymore.
9009 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9010 Build fix for systems which might lack POSIX timer support.
9012 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9013 (_libc_vdso_platform_setup): Mangle function pointers before storing
9015 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9016 Demangle vdso pointer before use.
9017 (INTERNAL_VSYSCALL): Likewise.
9019 * elf/cache.c (primes): Mark as const.
9020 Noted by Roland McGrath.
9022 2007-08-01 Andreas Jaeger <aj@suse.de>
9023 Jakub Jelinek <jakub@redhat.com>
9025 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9026 (options): Add option.
9027 (parse_opt): Handle option.
9028 (manual_link): Adjust process_file caller. Call implicit_soname.
9029 (search_dir): Formatting. Use and populate auxiliary cache.
9030 (main): Load and save auxiliary cache.
9031 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
9032 stat64 from fstat64 to caller.
9033 (implicit_soname): New function.
9034 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9035 leave *soname as NULL.
9036 * elf/cache.c: Include libgen.h.
9037 (print_entry, print_cache, compare, save_cache, add_to_cache):
9038 Formatting and cleanups.
9039 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9040 aux_cache_file): New structures.
9041 (AUX_CACHEMAGIC): Define.
9042 (primes): New array.
9043 (aux_hash_size, aux_hash): New variables.
9044 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9045 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9046 load_aux_cache, save_aux_cache): New functions.
9047 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9048 (init_aux_cache, search_aux_cache, add_to_aux_cache,
9049 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9050 (process_file): Adjust prototype.
9052 2007-08-12 Jakub Jelinek <jakub@redhat.com>
9054 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9057 2007-08-12 Ulrich Drepper <drepper@redhat.com>
9059 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9060 r_found_version structure as second parameter.
9061 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9062 (_dl_vdso_vsym): Change type of second parameter accordingly.
9063 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9064 (_libc_vdso_platform_setup): Adjust.
9065 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9066 (_libc_vdso_platform_setup): Likewise.
9068 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9069 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9070 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9071 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9072 * csu/libc-start.c: Pretty printing.
9073 Use VDSO_SETUP if defined.
9074 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9075 and let generic code call into _libc_vdso_platform_setup.
9076 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9077 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9078 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9079 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9080 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9082 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9083 (sysdep_rountines): Add dl-vdso.
9085 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9088 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9089 attribute_hidden to __vdso_gettimeofday prototype.
9091 2007-08-12 Roland McGrath <roland@redhat.com>
9093 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9094 From: Karl Berry <karl@freefriends.org>.
9096 2007-08-11 Ulrich Drepper <drepper@redhat.com>
9098 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9099 an atime update for the files we read.
9101 2007-08-10 Ulrich Drepper <drepper@redhat.com>
9103 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9105 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
9108 * misc/Makefile (routines): Add mkostemp and mkostemp64.
9109 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9110 * misc/mkostemp.c: New file.
9111 * misc/mkostemp64.c: New file.
9112 * stdlib/stdlib.h: Declare the new functions.
9113 * sysdeps/posix/tempname.c: Add new parameter which is added to
9114 the flags for open. Remove __GT_BIGFILE handling.
9115 * stdio-common/tempname.c: Likewise.
9116 * include/stdio.h: Adjust __gen_tempname prototype.
9117 Renumber __GT_* constants.
9118 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9119 * misc/mkdtemp.c: Likewise.
9120 * misc/mkstemp.c: Likewise.
9121 * misc/mkstemp64.c: Likewise.
9122 * misc/mktemp.c: Likewise.
9123 * stdio-common/tempnam.c: Likewise.
9124 * stdio-common/tmpfile.c: Likewise.
9125 * stdio-common/tmpfile64.c: Likewise.
9126 * stdio-common/tmpnam.c: Likewise.
9127 * stdio-common/tmpnam_r.c: Likewise.
9129 2007-08-10 Roland McGrath <roland@frob.com>
9131 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9133 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9134 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9136 2007-08-10 Ulrich Drepper <drepper@redhat.com>
9138 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9140 * nss/nss_files/files-alias.c (internal_setent): Likewise.
9141 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9142 * nss/nss_files/files-have_o_cloexec.c: New file.
9144 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9147 2007-08-10 Jakub Jelinek <jakub@redhat.com>
9149 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9150 ___new_wcstold_l): New weak aliases.
9151 (strtold_l, wcstold_l): Use them as second argument for
9154 2007-08-09 Ulrich Drepper <drepper@redhat.com>
9156 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9157 register in test for error.
9159 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9160 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9162 * po/sv.po: Update from translation team.
9164 2007-08-06 Roland McGrath <roland@redhat.com>
9166 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9167 Remove __strto*_l inlines.
9168 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9169 * stdlib/strtod.c: Add libc_hidden_def.
9170 * stdlib/strtod_l.c: Likewise.
9171 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9172 for __new_strtold and __new_wcstold.
9173 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9175 * stdlib/strtol.c: Add libc_hidden_def.
9176 * stdlib/strtol_l.c: Likewise.
9177 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9180 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9182 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9183 * scripts/data/localplt-generic.data: ... here.
9184 * elf/Makefile (check-data): Get generic file if no other.
9185 ($(objpfx)check-localplt.out): Make target unconditional.
9187 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9190 2007-08-05 Ulrich Drepper <drepper@redhat.com>
9192 * po/zh_CN.po: Updated translation from translation team.
9194 2007-08-05 Jakub Jelinek <jakub@redhat.com>
9196 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9197 Don't use CGOTSETUP and CGOTRESTORE macros.
9199 2007-08-04 Roland McGrath <roland@redhat.com>
9201 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9203 2007-08-04 Jakub Jelinek <jakub@redhat.com>
9205 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9206 __extension__ around the whole statement expression.
9208 2007-08-04 Ulrich Drepper <drepper@redhat.com>
9210 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9211 elements during initialization.
9213 * po/pl.po: Updated translation from translation team.
9214 * po/tr.po: Likewise.
9215 * po/nl.po: Likewise.
9217 2007-08-03 Ulrich Drepper <drepper@redhat.com>
9219 * rt/aio.h: Add __nonnull attributes.
9221 2007-08-03 Jakub Jelinek <jakub@redhat.com>
9223 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9224 * stdlib/Makefile (tests): Add tst-strtod5.
9225 (tst-strtod5-ENV): New.
9226 * stdlib/tst-strtod5.c: New file.
9228 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9230 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9233 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9236 2007-08-03 Jakub Jelinek <jakub@redhat.com>
9238 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9241 2007-08-02 Ulrich Drepper <drepper@redhat.com>
9243 * io/Makefile (aux): Add have_o_cloexec.
9244 * include/fcntl.h: Declare __have_o_cloexec.
9245 * io/have_o_cloexec.c: New file.
9246 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9247 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9248 fcntl call if not necessary.
9249 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9252 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9253 Avoid memset, add explicit initialization.
9254 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9255 to the end and change into zero-sized array.
9256 Move lock member to fill a hole on 64-bit platforms.
9258 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9260 * include/stdlib.h: Add __strto*_internal prototypes here.
9261 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9263 * include/wchar.h: Add __wcsto*_internal prototypes.
9264 * sysdeps/generic/inttypes.h: No need to protect the declaration
9265 of the __strto*_internal and __wcsto*_internal members here.
9267 * rt/mqueue.h: Change const to __const and add nonnull attributes.
9269 2007-08-02 Roland McGrath <roland@redhat.com>
9271 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9272 $(inst_bindir)/getconf if possible.
9274 * posix/Makefile ($(objpfx)getconf.speclist): New target.
9275 (generated): Add it.
9276 ($(inst_libexecdir)/getconf): Use it.
9278 2007-08-01 Ulrich Drepper <drepper@redhat.com>
9280 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9281 /proc is faster and sufficient. /sys is still needed for
9284 2007-08-01 Jakub Jelinek <jakub@redhat.com>
9286 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9287 syscall as __fallocate64.
9288 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9289 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9291 2007-07-30 Jakub Jelinek <jakub@redhat.com>
9293 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9296 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9297 if off_t is different rank from size_t.
9299 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9300 uw_frame_state_for): Avoid type punning warnings.
9301 * sysdeps/generic/unwind-dw2-fde-glibc.c
9302 (_Unwind_IteratePhdrCallback): Likewise.
9303 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9304 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9305 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9308 2007-07-31 Ulrich Drepper <drepper@redhat.com>
9310 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9311 total processors using sysfs.
9312 (__get_nprocs): Use sysfs to determine which processors are online.
9314 2007-07-31 Jakub Jelinek <jakub@redhat.com>
9316 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9317 syscall arguments count.
9319 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9321 2007-07-30 Roland McGrath <roland@redhat.com>
9323 * manual/libc.texinfo: Update copyrights, formatting magic, and
9324 @dircategory. From Karl Berry <karl@freefriends.org>.
9326 2007-07-29 Ulrich Drepper <drepper@redhat.com>
9329 * io/Makefile (headers): Add bits/fcntl2.h.
9331 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9333 (__CPU_EQUAL_S): Likewise.
9335 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9336 (tests): Add tst-cpuset.
9337 * posix/sched_cpualloc.c: New file.
9338 * posix/sched_cpufree.c: New file.
9339 * posix/tst-cpuset.c: New file.
9340 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9342 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9343 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9344 macros. Define CPU_*_S macros.
9346 2007-07-28 Ulrich Drepper <drepper@redhat.com>
9348 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9352 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9353 #.0g and value rounded to 1.0.
9354 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9356 2007-07-26 Jakub Jelinek <jakub@redhat.com>
9358 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9359 for int_frac_digits and frac_digits.
9361 * login/logout.c (logout): Avoid aliasing violation.
9362 * login/logwtmp.c (logwtmp): Likewise.
9364 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9366 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9368 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9370 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9372 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9375 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9377 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9379 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9380 char * to avoid warning.
9381 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9383 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9385 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9386 allocate_arrays): Cast second argument to charmap_find_symbol
9387 to char * to avoid warnings.
9389 * locale/programs/repertoire.c (repertoire_new_char): Change
9390 from_nr, to_nr and cnt to unsigned long, adjust printf format
9393 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9394 Cast second argument to new_element to char * to avoid warnings.
9396 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9398 * intl/gettextP.h (struct loaded_domain): Change plural to const
9399 struct expression *.
9400 * intl/plural-eval.c (plural_eval): Change first argument to
9401 const struct expression *.
9402 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9403 argument to const struct expression **.
9404 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9406 * intl/loadmsgcat (_nl_unload_domain): Cast away const
9407 in call to __gettext_free_exp.
9409 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9410 unitialized wstring/wpattern var warnings.
9412 * posix/runtests.c (struct a_test): Make data field const char *.
9414 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9415 vars if not LDBL_MANT_DIG >= 106.
9417 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9419 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9420 __find_specmb to avoid warning.
9422 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9424 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9427 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9430 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9431 tv var when it will be actually used.
9433 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9436 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9437 char array resp. pointer.
9438 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9440 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9441 to const unsigned char **.
9442 (ucs4_to_cns11643): Change second argument to unsigned char *.
9443 * iconvdata/euc-tw.c (BODY): Change endp type to
9444 const unsigned char *.
9445 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9447 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9448 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9449 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9450 types to unsigned char pointers/arrays instead of char.
9451 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9453 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9454 * iconvdata/jis0212.h: Include assert.h.
9455 (ucs4_to_jisx0212): Change second argument to unsigned char *.
9456 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9457 of trying to handle that.
9458 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9460 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9461 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9462 two dimensional const unsigned char arrays.
9463 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9464 Initialize endp to inptr to shut up a warning.
9466 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9469 * time/strptime_l.c (__strptime_internal): Silently ignore
9470 strftime modifiers and field width in recursive calls.
9472 * include/time.h (enum ptime_locale_status): Remove.
9473 (__strptime_internal): Remove decided and era_cnt arguments,
9474 add statep argument.
9475 * time/strptime_l.c (__strptime_internal): Remove decided
9476 and era_cnt arguments, add statep argument. Don't recompute
9477 any fields in recursive calls, only update caller's tm
9478 and state, if recursive call fails, don't change tm nor
9480 (get_alt_number): Adjust.
9481 (recursive): Adjust caller.
9482 (strptime): Likewise.
9483 * time/strptime.c (strptime): Likewise.
9485 2007-07-19 Jakub Jelinek <jakub@redhat.com>
9487 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9488 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9489 if from and to charsets are the same.
9490 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9491 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9492 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9494 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9496 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9497 Don't define wint_t when __need_mbstate_t unless it
9499 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9500 in the typedef if possible.
9501 * wctype/wctype.h (wint_t): Define by including
9502 wchar.h with __need_wint_t instead of including stddef.h
9503 with __need_wint_t and as fallback definining it ourselves.
9504 * iconv/gconv.h (__need_wint_t): Define before including
9506 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9507 or _GLIBCPP_USE_WCHAR_T.
9508 (__need_wchar_t): Don't define
9509 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9510 (__need_wint_t): Don't define before including stddef.h,
9511 define before including wchar.h only if _LIBC or
9512 _GLIBCPP_USE_WCHAR_T.
9513 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9514 * sysdeps/mach/hurd/_G_config.h: Likewise.
9515 * sysdeps/generic/_G_config.h: Likewise.
9516 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9517 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9518 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9519 if _LIBC or _GLIBCPP_USE_WCHAR_T.
9521 2007-07-28 Ulrich Drepper <drepper@redhat.com>
9523 * sysdeps/posix/posix_fallocate64.c: Undefine
9524 __posix_fallocate64_l64 before alias handling.
9525 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9526 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9527 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9528 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9530 * io/tst-posix_fallocate.c: Include <fcntl.h>.
9532 2007-07-23 Jakub Jelinek <jakub@redhat.com>
9534 * locale/programs/ld-collate.c (atwc): New variable.
9535 (add_to_tablewc): New toplevel function, moved from collate_output.
9536 (collate_output): Remove add_to_tablewc nested function.
9538 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9539 (name_insert): New function.
9540 (write_output): Remove hash_table and hash_size vars and name_insert
9543 2007-07-24 Roland McGrath <roland@redhat.com>
9545 * Makerules (install-others-programs-nosubdir): New target.
9546 (install-no-libc.a-nosubdir): Depend on it.
9548 * iconv/Makefile (install-others-programs): Set this instead of
9550 * login/Makefile (install-others-programs): Likewise.
9551 * posix/Makefile (install-others-programs): Likewise.
9553 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9556 2007-07-23 Ulrich Drepper <drepper@redhat.com>
9558 * io/Makefile (tests): Add tst-posix_fallocate.
9559 * io/tst-posix_fallocate.c: New file.
9561 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9564 2007-07-22 Roland McGrath <roland@frob.com>
9566 * hurd/getdport.c: Add missing copyright year update.
9568 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9569 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9571 2007-07-22 Ulrich Drepper <drepper@redhat.com>
9573 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9575 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9576 O_CLOEXEC is needed.
9577 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9578 Avoid additional fcntl to set O_CLOEXEC if not needed.
9579 * nis/nss_compat/compat-initgroups.c: Likewise.
9580 * nis/nss_compat/compat-pwd.c: Likewise.
9581 * nis/nss_compat/compat-spwd.c: Likewise.
9583 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
9586 * manual/errno.texi: Change ECANCELED value to 119.
9589 * mach/lock-intern.h: Include <sys/cdefs.h>.
9592 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9596 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9599 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9601 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
9603 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9605 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9607 2007-07-21 Ulrich Drepper <drepper@redhat.com>
9609 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9610 descriptor received from nscd.
9612 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9614 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9615 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9616 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9617 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9618 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9619 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9621 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9624 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9627 * login/forkpty.c (forkpty): Close master and slave fds on
9628 fork failure. Patch by
9629 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9631 2007-07-18 Jakub Jelinek <jakub@redhat.com>
9633 * include/features.h (__USE_ISOC95): New define.
9634 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9635 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9636 for -std=iso9899:199409.
9637 * CONFORMANCE: Remove comments about unsupported AMD1.
9639 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9641 * sysdeps/ia64/sched_cpucount.c: New file.
9642 * sysdeps/powerpc/sched_cpucount.c: New file.
9644 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9645 __BEGIN_DECLS/__END_DECLS around the prototype.
9646 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
9647 pointer to const cpu_set_t.
9649 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9650 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9651 __need_size_t and include stddef.h.
9652 * sysvipc/sys/msg.h: Likewise.
9653 * posix/sched.h: Likewise.
9654 * hurd/hurd/signal.h (__need_size_t): Define.
9656 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9657 neither does signal.h in pedantic ISO C namespaces. stdio.h
9658 no longer defines wint_t or wchar_t.
9660 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9661 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9662 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9663 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9664 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9665 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9666 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9667 * debug/printf_chk.c (__printf_chk): Likewise.
9668 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9669 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9671 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9674 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9675 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9677 2007-07-16 Jakub Jelinek <jakub@redhat.com>
9680 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9681 * malloc/malloc.h (realloc): Likewise.
9683 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9684 if one of proc_file_chain streams has that fileno.
9685 * stdio-common/Makefile (tests): Add tst-popen2.
9686 * stdio-common/tst-popen2.c: New test.
9688 2007-07-14 Jakub Jelinek <jakub@redhat.com>
9690 * elf/ldconfig.c: Allow GPLv2 or any later version.
9691 * elf/readlib.c: Likewise.
9692 * elf/chroot_canon.c: Likewise.
9693 * elf/cache.c: Likewise.
9694 * nscd/mem.c: Likewise.
9695 * nscd/getpwuid_r.c: Likewise.
9696 * nscd/grpcache.c: Likewise.
9697 * nscd/aicache.c: Likewise.
9698 * nscd/getsrvbynm_r.c: Likewise.
9699 * nscd/nscd.c: Likewise.
9700 * nscd/servicescache.c: Likewise.
9701 * nscd/getsrvbypt_r.c: Likewise.
9702 * nscd/initgrcache.c: Likewise.
9703 * nscd/gethstbyad_r.c: Likewise.
9704 * nscd/gethstbynm2_r.c: Likewise.
9705 * nscd/getgrnam_r.c: Likewise.
9706 * nscd/nscd_setup_thread.c: Likewise.
9707 * nscd/getpwnam_r.c: Likewise.
9708 * nscd/gai.c: Likewise.
9709 * nscd/connections.c: Likewise.
9710 * nscd/dbg_log.c: Likewise.
9711 * nscd/cache.c: Likewise.
9712 * nscd/hstcache.c: Likewise.
9713 * nscd/nscd_conf.c: Likewise.
9714 * nscd/getgrgid_r.c: Likewise.
9715 * nscd/pwdcache.c: Likewise.
9716 * catgets/gencat.c: Likewise.
9717 * locale/programs/linereader.h: Likewise.
9718 * locale/programs/locarchive.c: Likewise.
9719 * locale/programs/ld-paper.c: Likewise.
9720 * locale/programs/locfile-kw.h: Likewise.
9721 * locale/programs/ld-address.c: Likewise.
9722 * locale/programs/xmalloc.c: Likewise.
9723 * locale/programs/ld-time.c: Likewise.
9724 * locale/programs/localedef.c: Likewise.
9725 * locale/programs/simple-hash.c: Likewise.
9726 * locale/programs/xstrdup.c: Likewise.
9727 * locale/programs/ld-numeric.c: Likewise.
9728 * locale/programs/locfile-kw.gperf: Likewise.
9729 * locale/programs/ld-collate.c: Likewise.
9730 * locale/programs/charmap-kw.gperf: Likewise.
9731 * locale/programs/charmap.h: Likewise.
9732 * locale/programs/charmap-kw.h: Likewise.
9733 * locale/programs/config.h: Likewise.
9734 * locale/programs/locfile.c: Likewise.
9735 * locale/programs/ld-ctype.c: Likewise.
9736 * locale/programs/charmap.c: Likewise.
9737 * locale/programs/ld-messages.c: Likewise.
9738 * locale/programs/repertoire.h: Likewise.
9739 * locale/programs/locale.c: Likewise.
9740 * locale/programs/ld-name.c: Likewise.
9741 * locale/programs/linereader.c: Likewise.
9742 * locale/programs/locfile.h: Likewise.
9743 * locale/programs/3level.h: Likewise.
9744 * locale/programs/ld-monetary.c: Likewise.
9745 * locale/programs/ld-measurement.c: Likewise.
9746 * locale/programs/charmap-dir.c: Likewise.
9747 * locale/programs/ld-identification.c: Likewise.
9748 * locale/programs/localedef.h: Likewise.
9749 * locale/programs/charmap-dir.h: Likewise.
9750 * locale/programs/repertoire.c: Likewise.
9751 * locale/programs/simple-hash.h: Likewise.
9752 * locale/programs/ld-telephone.c: Likewise.
9753 * locale/programs/locale-spec.c: Likewise.
9754 * locale/programs/locfile-token.h: Likewise.
9755 * posix/getconf.c: Likewise.
9756 * iconv/dummy-repertoire.c: Likewise.
9757 * iconv/iconv_charmap.c: Likewise.
9758 * iconv/iconvconfig.c: Likewise.
9759 * iconv/iconv_prog.c: Likewise.
9760 * malloc/memusagestat.c: Likewise.
9761 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9763 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9765 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9766 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9767 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9768 check for the first argument.
9770 2007-07-12 Jakub Jelinek <jakub@redhat.com>
9773 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9774 (__tgmath_real_type): Fix if expr is const int or other const
9775 qualified integral type.
9776 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9777 expressions and handle const qualified arguments.
9778 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9779 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9780 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9781 statement expressions.
9782 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9783 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9784 (__TGMATH_UNARY_IMAG): Define.
9785 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9786 * math/Makefile (tests): Add test-tgmath2.
9787 (CFLAGS-test-tgmath2.c): Add.
9788 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9789 count_cfloat, count_cldouble): New variables.
9791 (main): Check number of complex calls as well.
9792 (F(compile_test)): Add complex tests and tests with const qualified
9794 (y, z, ccount): Define.
9795 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9796 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9797 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9798 F(cproj)): New functions.
9799 * math/test-tgmath2.c: New test.
9801 2007-07-11 Jakub Jelinek <jakub@redhat.com>
9804 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9805 RPATH etc. as "/" rather than "", don't segfault on empty paths,
9807 * dlfcn/Makefile (distribute): Add glreflib3.c.
9808 (module-names): Add glreflib3.
9809 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9811 (LDFLAGS_glreflib3.so): New.
9812 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9814 * dlfcn/glreflib3.c: New file.
9816 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9817 returned -1, return NULL.
9818 * intl/explodename.c (_nl_explode_name): Return -1 if
9819 _nl_normalize_codeset failed.
9821 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
9823 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9824 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
9825 and avoid branch misspredicts for > 31 bytes memset case.
9826 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9827 Remove toc ref to __cache_line_size.
9829 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9830 to get ISA-V2.0 branch hints.
9831 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9832 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9833 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9834 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9835 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9836 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9837 Remove toc ref to __cache_line_size.
9839 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9840 Include math_ldbl_opt.h.
9842 2007-07-10 Ulrich Drepper <drepper@redhat.com>
9845 * time/strptime_l.c (__strptime_internal): Implement greedy
9846 matching of weekday and month names.
9848 2007-07-09 Roland McGrath <roland@redhat.com>
9850 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9851 (ELF_NOTE_ABI): Use it.
9852 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9854 2007-07-09 Ulrich Drepper <drepper@redhat.com>
9856 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9857 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9859 2007-07-07 Ulrich Drepper <drepper@redhat.com>
9862 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9863 in loop to look for conversion specifier to avoid testing of
9865 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9866 * stdio-common/bug18.c: New file.
9867 * stdio-common/bug18a.c: New file.
9868 * stdio-common/bug19.c: New file.
9869 * stdio-common/bug19a.c: New file.
9871 2007-07-05 Mike Frysinger <vapier@gentoo.org>
9873 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9876 2007-07-01 Jakub Jelinek <jakub@redhat.com>
9878 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9879 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
9880 Return NULL if mmap failed instead of asserting it does not.
9881 (calloc): Check for integer overflow.
9883 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9886 2007-07-03 Jakub Jelinek <jakub@redhat.com>
9889 * nis/nss-default.c: Include errno.h.
9890 (init): Preserve errno.
9892 2007-07-02 Ulrich Drepper <drepper@redhat.com>
9894 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9896 2007-06-30 Ulrich Drepper <drepper@redhat.com>
9898 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9900 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
9902 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9904 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
9906 * sysdeps/s390/dl-procinfo.c: New file.
9907 * sysdeps/s390/dl-procinfo.h: New file.
9908 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9910 2007-06-29 Jakub Jelinek <jakub@redhat.com>
9912 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9913 in PT_NOTE segments with multiple notes.
9914 * elf/readelflib.c (process_elf_file): Likewise.
9916 2007-06-22 Ulrich Drepper <drepper@redhat.com>
9918 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9921 2007-06-19 Ulrich Drepper <drepper@redhat.com>
9923 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9925 2007-06-13 Jakub Jelinek <jakub@redhat.com>
9927 * include/link.h: Don't include rtld-lowlevel.h.
9928 (struct link_map): Remove l_scope_lock.
9929 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9930 (_dl_scope_free_list): New field (variable) in _rtld_global.
9931 (DL_LOOKUP_SCOPE_LOCK): Remove.
9932 (_dl_scope_free): New prototype.
9933 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9934 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9935 (_dl_profile_fixup): Likewise.
9936 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
9937 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9938 THREAD_GSCOPE_RESET_FLAG around it.
9939 * elf/dl-close.c (_dl_close_worker): Don't use
9940 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
9941 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
9942 scopes were queued or if l_scope_mem has been abandoned.
9943 * elf/dl-open.c (_dl_scope_free): New function.
9944 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
9945 * elf/dl-support.c (_dl_scope_free_list): New variable.
9946 * elf/dl-lookup.c (add_dependency): Remove flags argument.
9947 Remove DL_LOOKUP_SCOPE_LOCK handling.
9948 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
9950 * elf/dl-object.c (_dl_new_object): Don't use
9951 __rtld_mrlock_initialize.
9953 2007-06-19 Ulrich Drepper <drepper@redhat.com>
9955 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9957 (rtld_global_ro): Likewise.
9959 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9961 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9962 Move PT_LOAD checking to...
9963 (_dl_addr_inside_object): ... here, new function.
9964 * elf/dl-sym.c (do_sym): If not l_contiguous,
9965 call _dl_addr_inside_object.
9966 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9967 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9968 * elf/dl-open.c (dl_open_worker): Likewise.
9969 (_dl_addr_inside_object): New function if IS_IN_rtld.
9970 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9971 holes are present or are PROT_NONE protected.
9972 * include/link.h (struct link_map): Add l_contiguous field.
9973 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9975 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9976 Tomas Janousek <tjanouse@redhat.com>
9977 Ulrich Drepper <drepper@redhat.com>
9980 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
9981 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9983 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
9984 unused member a bitmap.
9985 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9986 servers are configured.
9988 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9990 * elf/rtld.c (dl_main): Don't call init_tls more than once.
9992 2007-06-17 Andreas Schwab <schwab@suse.de>
9994 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9996 2007-06-16 Andreas Jaeger <aj@suse.de>
9999 * sysdeps/unix/sysv/linux/sys/ptrace.h
10000 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10001 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10002 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10003 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10004 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10006 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10007 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10008 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10009 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10011 2007-06-16 Ulrich Drepper <drepper@redhat.com>
10014 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10015 determining whether there are IPv4/IPv6 addresses, ignore loopback
10018 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10020 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10021 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10022 as the return type. Change type of "r" variable to CMPtype.
10023 * soft-fp/eqsf2.c (__eqsf2): Likewise.
10024 * soft-fp/eqtf2.c (__eqtf2): Likewise.
10025 * soft-fp/gedf2.c (__gedf2): Likewise.
10026 * soft-fp/gesf2.c (__gesf2): Likewise.
10027 * soft-fp/getf2.c (__getf2): Likewise.
10028 * soft-fp/ledf2.c (__ledf2): Likewise.
10029 * soft-fp/lesf2.c (__lesf2): Likewise.
10030 * soft-fp/letf2.c (__letf2): Likewise.
10031 * soft-fp/unorddf2 (__unorddf2): Likewise.
10032 * soft-fp/unordsf2 (__unordsf2): Likewise.
10033 * soft-fp/unordtf2 (__unordtf2): Likewise.
10035 2007-06-09 Ulrich Drepper <drepper@redhat.com>
10037 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10038 make sure gcc doesn't mess around with this.
10040 2007-06-08 Ulrich Drepper <drepper@redhat.com>
10042 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10044 2007-06-08 Jakub Jelinek <jakub@redhat.com>
10046 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10047 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10048 at most once per _dl_close_worker.
10050 2007-06-08 Ulrich Drepper <drepper@redhat.com>
10052 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10053 __sched_cpucount as const.
10054 * posix/sched_cpucount.c: Adjust.
10056 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10057 instruction for counting bits.
10058 * sysdeps/x86_64/sched_cpucount.c: New file.
10060 2007-06-07 Ulrich Drepper <drepper@redhat.com>
10062 * configure.in: Avoid variable named BASH.
10063 * config.make.in: Likewise.
10064 Patch in part by Mike Frysinger.
10066 2007-06-06 Jakub Jelinek <jakub@redhat.com>
10069 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10070 pseudo-zeros as zero.
10071 * sysdeps/x86_64/ldbl2mpn.c: New file.
10072 * sysdeps/ia64/ldbl2mpn.c: New file.
10074 2007-06-04 Jakub Jelinek <jakub@redhat.com>
10076 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10077 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10078 Remove unreachable code at the end.
10080 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
10082 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10083 ldbl-128ibm in comment.
10084 (fpclassifyl): Correct classification of denormals.
10085 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10086 return value for MIN denormal. Rewrite using long double math too
10087 correctly handle denormals and canonicalize the results.
10089 2007-06-05 Jakub Jelinek <jakub@redhat.com>
10091 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10092 (__mpn_construct_long_double): Fix conversion where result ought
10093 to be smaller than __LDBL_MIN__, or the low double should be
10094 denormal. Fix decision where to negate low double - honor round
10096 * stdio-common/tst-sprintf2.c: Include string.h.
10097 (COMPARE_LDBL): Define.
10098 (TEST): Also test whether a string hexadecimal float representation
10099 can be parsed back to the number.
10100 (main): Add a couple of further tests.
10102 2007-06-04 Jakub Jelinek <jakub@redhat.com>
10104 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10105 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10106 is non-zero, but smaller than 2 * __DBL_MIN__.
10107 * stdio-common/tst-sprintf2.c: New test.
10108 * stdio-common/Makefile (tests): Add tst-sprintf2.
10110 * math/test-misc.c (main): Don't run last batch of tests with
10111 IBM long double format.
10113 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10115 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10116 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10117 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10118 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10119 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10120 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10121 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10122 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10123 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10124 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10125 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10126 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10128 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10130 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10132 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10134 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10136 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10137 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10139 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10141 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10143 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10145 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10148 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10150 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10151 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10152 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10153 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10154 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10155 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10156 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10157 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10159 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
10161 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10162 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10163 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10164 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10165 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10166 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10167 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10168 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10170 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
10172 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10173 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10174 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10175 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10177 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
10179 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10180 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10182 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
10184 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10185 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10186 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10187 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10189 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
10191 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10192 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10194 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
10196 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10197 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10199 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10200 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10201 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10202 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10204 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
10206 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10207 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10208 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10209 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10211 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
10213 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10214 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10215 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10216 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10217 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10218 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10220 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
10222 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10223 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10224 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10225 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10227 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
10229 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10230 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10231 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10232 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10233 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10234 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10235 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10236 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10237 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10238 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10239 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10240 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10241 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10242 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10243 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10244 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10246 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
10248 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10249 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10251 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
10253 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10254 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10256 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10258 * sysdeps/powerpc/powerpc32/970/Implies: New file.
10259 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10260 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10261 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10262 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10263 * sysdeps/powerpc/powerpc64/970/Implies: New file.
10264 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10265 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10266 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10267 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10269 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
10271 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10273 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
10275 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10276 branch miss-predicts. Ensure that cache line crossing does not impact
10279 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
10281 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10282 "../../powerpc32/power4/memcopy.h".
10283 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10284 "../../powerpc32/power4/wordcopy.c".
10286 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
10288 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10289 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10290 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10291 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10292 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10293 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10295 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
10297 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10299 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
10301 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10302 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10303 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10304 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10305 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10306 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10307 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10308 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10310 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
10312 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10314 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
10316 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10317 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10318 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10319 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10320 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10321 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10322 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10324 2007-05-29 Roland McGrath <roland@redhat.com>
10326 * po/Makefile (po-sed-cmd): New variable.
10327 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10329 2007-05-29 Ulrich Drepper <drepper@redhat.com>
10331 * crypt/md5-crypt.c: Fix comment.
10333 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10334 of crashing. When this is the case or if the reply is malformed,
10335 don't try to close the new file descriptor since it does not
10337 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10339 2007-05-28 Jakub Jelinek <jakub@redhat.com>
10341 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10342 if __NR_utimensat is not defined.
10344 2007-05-26 Ulrich Drepper <drepper@redhat.com>
10346 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10348 2007-05-25 Jakub Jelinek <jakub@redhat.com>
10350 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10351 (open): Fix comment typos. Don't call __open_2 if flags
10352 is a compile time constant without O_CREAT.
10353 (__open64_2): Add nonnull attribute.
10354 (open64): Fix comment typos. Don't call __open64_2 if flags
10355 is a compile time constant without O_CREAT.
10356 (__openat_2): Add nonnull attribute, fix nonnull attribute
10358 (openat): Fix comment typos. Don't call __openat_2 if flags
10359 is a compile time constant without O_CREAT.
10360 (__openat64_2): Add nonnull attribute, fix nonnull attribute
10362 (openat64): Fix comment typos. Don't call __openat64_2 if flags
10363 is a compile time constant without O_CREAT.
10365 2007-05-24 Ulrich Drepper <drepper@redhat.com>
10367 * Makerules (sysd-rules): Define PTW for ptw-* files.
10368 * Versions: Define GLIBC_2.7 for libc.
10369 * include/stdio.h: Declare __fortify_fail.
10370 * debug/fortify_fail.c: New file.
10371 * debug/Makefile (routines): Add fortify_fail.
10372 * debug/chk_fail.c: Use __fortify_fail.
10373 * debug/stack_chk_fail.c: Likewise.
10374 * io/Versions: Export __open_2, __open64_2, __openat_2, and
10375 __openat64_2 for GLIBC_2.7.
10376 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10377 * io/open.c: Define *_2 variant of function which checks for O_CREAT
10378 and fails if necessary.
10379 * io/open64.c: Likewise.
10380 * io/openat.c: Likewise.
10381 * io/openat64.c: Likewise.
10382 * sysdeps/unix/sysv/linux/open64.c: Likewise.
10383 * sysdeps/unix/sysv/linux/openat.c: Likewise.
10384 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10385 * io/bits/fcntl2.h: New file.
10386 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10388 * include/bits/fcntl2.h: New file.
10389 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10391 * sysdeps/unix/sysv/linux/open_2.c: New file.
10393 2007-05-21 Ulrich Drepper <drepper@redhat.com>
10395 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10396 as second parameter to handle_intel.
10398 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10401 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10403 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
10404 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10406 * sysdeps/x86_64/memcpy.S: Complete rewrite.
10407 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10408 Patch by Evandro Menezes <evandro.menezes@amd.com>.
10410 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10412 2007-05-21 Jakub Jelinek <jakub@redhat.com>
10415 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10416 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10417 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10419 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10422 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10423 reinitialize workend at the start of each do_positional format spec
10424 loop, free workstart before do_positional loops.
10425 (printf_unknown): Fix size of work_buffer.
10426 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10428 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10429 (public_sET_STATe): If ms->version < 3, put all chunks into
10430 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10433 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10434 * malloc/hooks.c: Likewise.
10435 * malloc/arena.c: Likewise.
10436 * malloc/malloc.c (do_check_malloc_state): Don't assert
10437 n_mmaps is not greater than n_mmaps_max. This removes the need
10438 for the previous change.
10440 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10443 2007-05-19 Ulrich Drepper <drepper@redhat.com>
10445 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10446 Define for kernel >= 2.6.22.
10448 2007-05-18 Ulrich Drepper <drepper@redhat.com>
10450 * elf/dl-close.c (_dl_close_worker): When removing object from
10451 global scope, wait for all lookups to finish afterwards.
10452 * elf/dl-open.c (add_to_global): When global scope array must
10453 grow, allocate a new one and free old array only after all
10455 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10456 (_dl_lookup_symbol_x): Likewise.
10457 * elf/dl-support.c: Define _dl_wait_lookup_done.
10458 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10459 _dl_wait_lookup_done.
10461 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10462 not overlapping with arena.
10464 * malloc/mcheck.c (reallochook): If size==0, free the block.
10466 * rt/tst-shm.c: Use fstat64 instead of fstat.
10468 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10469 __NR_sync_file_range is not defined.
10471 2007-05-17 Ulrich Drepper <drepper@redhat.com>
10473 Dummy files to prevent stub versions from being used.
10474 * sysdeps/x86_64/fpu/k_cosl.c: New file.
10475 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10476 * sysdeps/x86_64/fpu/k_sinl.c: New file.
10477 * sysdeps/x86_64/fpu/k_tanl.c: New file.
10479 * version.h (VERSION): Set to 2.6.90.
10481 2007-05-14 Ulrich Drepper <drepper@redhat.com>
10483 * version.h (VERSION): Define to 2.6.
10484 * include/features.h (__GLIBC_MINOR__): Define to 6.
10486 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10488 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10491 2007-05-13 Ulrich Drepper <drepper@redhat.com>
10493 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10494 number of mmaps. n_mmaps_max is the target.
10495 * malloc/hooks.c: Likewise.
10496 * malloc/arena.c: Likewise.
10498 2007-05-12 Andreas Jaeger <aj@suse.de>
10500 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10503 2007-05-11 Ulrich Drepper <drepper@redhat.com>
10505 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10506 adding new variables.
10508 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10509 optimize. Completely extend global scope array before making the
10510 new entries visible.
10512 2007-05-10 Ulrich Drepper <drepper@redhat.com>
10514 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10515 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10518 * include/link.h: Move l_version and l_nversion members around to
10521 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10523 * sysdeps/unix/sysv/linux/sched_setaffinity.c
10524 (__sched_setaffinity_new): If syscall was successful and
10525 RESET_VGETCPU_CACHE is defined, use it before returning.
10526 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10528 * io/sys/stat.h: Make sure struct timespec is defined for
10531 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10533 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10534 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10535 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10536 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10537 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10538 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10539 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10540 * io/sys/stat.h: Declare utimensat, futimens.
10541 * io/utimensat.c: New file.
10542 * io/futimens.c: New file.
10543 * sysdeps/unix/sysv/linux/utimensat.c: New file.
10544 * sysdeps/unix/sysv/linux/futimens.c: New file.
10545 * io/Makefile (routines): Add utimensat, futimens.
10546 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10547 * sysdeps/unix/sysv/linux/lutimes.c: New file.
10548 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10551 * include/sys/cdefs.h: Redefine __nonnull so that test for
10552 incorrect parameters in the libc code itself are not omitted.
10554 2007-05-09 Jakub Jelinek <jakub@redhat.com>
10556 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10557 exception in addition to inexact when asked to raise only FE_INEXACT.
10560 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10563 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10566 * string/strfry.c (strfry): Make result more random.
10568 2007-05-07 Richard Henderson <rth@redhat.com>
10570 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10571 if __NO_LONG_DOUBLE_MATH.
10572 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10573 available in the compiler, add .arch directive to the assembly.
10575 2007-05-07 Jakub Jelinek <jakub@redhat.com>
10577 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10578 compat_symbol to GLIBC_2_1.
10579 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10580 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10581 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10582 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10583 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10584 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10585 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10587 (__isnanl): New compat_symbol.
10589 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10590 Jakub Jelinek <jakub@redhat.com>
10592 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10593 (new_heap): Initialize mprotect_size.
10594 (grow_heap): When growing, only mprotect from mprotect_size till
10595 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
10596 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10598 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
10599 Peter Bergner <bergner@us.ibm.com>
10601 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10602 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
10603 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10604 * sysdeps/powerpc/fpu/fe_mask.c: New file.
10605 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10606 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10607 Call __fe_mask_env() if all FP exceptions disabled.
10608 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10609 from old FPSCR to new fenv to propagate DFP rounding modes.
10610 Call __fe_mask_env() if FP exceptions previously enabled.
10611 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10612 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
10613 transitioning from all exceptions disabled to any exception enabled
10615 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10616 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
10617 when transitioning from all exceptions disabled to any exception
10618 enabled or visa versa.
10619 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10620 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10621 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10622 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10623 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10624 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10626 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10629 * posix/unistd.h: Remove __THROW from fdatasync.
10631 2007-05-06 Mike Frysinger <vapier@gentoo.org>
10634 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10636 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10638 * stdio-common/vfprintf.c (process_string_arg): Optimize
10639 ridiculous precision in wide char code printing multi-byte string.
10640 Reported by Jim Meyering <jim@meyering.net>.
10643 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10644 boundaries to work around systems with overlapping binary loading.
10645 Based on a patch by Suzuki <suzuki@in.ibm.com>.
10647 2007-05-04 Ulrich Drepper <drepper@redhat.com>
10649 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10650 __mbsnrtowcs after last change.
10652 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10653 (get_ident): Likewise.
10655 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10657 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10658 with setting the sticky bit.
10659 * math/test-misc.c (main): Add more truncation tests.
10661 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
10663 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10664 double in the function declaration.
10665 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10666 double in the function declaration.
10667 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10668 float in the function declaration.
10669 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10670 float in the function declaration.
10672 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10673 denormal operands. Do not generate FP_EX_DENORM exception.
10674 (FP_UNPACK_RAW_EP): Ditto.
10675 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10676 undefined _FP_UNPACK_RAW_E.
10677 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10678 undefined _FP_UNPACK_RAW_EP.
10679 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10680 undefined _FP_PACK_RAW_E.
10681 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10682 undefined _FP_PACK_RAW_EP.
10684 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10686 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10689 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
10690 Jakub Jelinek <jakub@redhat.com>
10692 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10693 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
10695 * soft-fp/op-common.h (FP_TRUNC): Ditto.
10697 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10699 * math/test-misc.c (main): Add tests for rounding long double
10700 values close to smallest double denormalized value to double.
10702 2007-04-30 Joseph Myers <joseph@codesourcery.com>
10704 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10705 condition for truncating to 0. Set sticky bit for such
10708 2007-05-02 Jakub Jelinek <jakub@redhat.com>
10710 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10711 fixed length array for ignore.
10713 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10716 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10717 stack for large precisions.
10718 * stdio-common/test-vfprintf.c (main): Add test for large
10721 2007-04-30 Jakub Jelinek <jakub@redhat.com>
10723 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10725 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10728 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10729 account in the size check.
10730 * resolv/tst-inet_ntop.c: New test.
10731 * resolv/Makefile (tests): Add tst-inet_ntop.
10733 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10734 Jakub Jelinek <jakub@redhat.com>
10737 * malloc/malloc.c: Keep separate list for first blocks on the bin
10738 lists with a given size. This helps skipping over list elements
10739 we know won't fit in two places.
10740 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10742 2007-04-28 Ulrich Drepper <drepper@redhat.com>
10745 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10746 label to Teredo tunnel addresses 2001://32.
10748 2007-04-27 Ulrich Drepper <drepper@redhat.com>
10750 * locale/programs/ld-collate.c (collate_read): Allow order_start
10753 * locale/programs/ld-collate.c (collate_read): Fix printing of
10757 * locale/C-translit.h.in: Add entry for U2044.
10760 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10761 hexa-decimal floats without exponent.
10762 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10764 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10766 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10767 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10768 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10769 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10771 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10774 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10776 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10777 of 0 after the out_fail label.
10779 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10782 * iconv/gconv_charset.h (strip): Allow ':'.
10783 * iconv/iconv_open.c (iconv_open): Adjust comment.
10785 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10787 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10790 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10793 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10794 alignment of buffer and tmp_buffer.
10795 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10796 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10797 alignment of buffer.
10798 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
10799 bigger than INT_MAX.
10800 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
10801 h_errnop arguments. Fail if buflen is too small.
10802 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10804 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10807 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10808 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
10810 2007-04-22 Roland McGrath <roland@redhat.com>
10812 * elf/elf.h (NT_PRXFPREG): New macro.
10814 2007-04-19 Andreas Jaeger <aj@suse.de>
10817 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10818 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10821 2007-04-19 Ulrich Drepper <drepper@redhat.com>
10823 * include/sys/mman.h: Mark madvise hidden.
10824 * misc/madvise.c: Add libc_hidden_def.
10826 2007-04-06 Jakub Jelinek <jakub@redhat.com>
10828 * nis/nis_domain_of.c (__nis_domain_of): New function.
10829 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10830 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10831 * nis/nis_call.c (rec_dirsearch): Likewise.
10832 (first_shoot): Likewise. Remove search_parent_first argument.
10833 (struct nis_server_cache): Rename search_parent_first field
10835 (nis_server_cache_search, nis_server_cache_add): Rename
10836 search_parent_first argument to search_parent.
10837 (__nisfind_server): Likewise. If search_parent, call
10840 2007-04-18 Ulrich Drepper <drepper@redhat.com>
10842 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10844 2007-04-17 Ulrich Drepper <drepper@redhat.com>
10847 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10849 2007-04-16 Ulrich Drepper <drepper@redhat.com>
10852 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10854 2007-04-15 Jakub Jelinek <jakub@redhat.com>
10856 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10857 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10858 current number of locales in SUPPORTED.
10859 (create_archive): Initialize serial.
10860 (enlarge_archive): Preserve aliases rather than duplicating
10863 2007-04-13 Jakub Jelinek <jakub@redhat.com>
10865 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10866 after _IO_un_link, not before it.
10868 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10869 special case handling when wcp == wstartp + 1. Fix a comment typo.
10870 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10872 2007-03-30 Jakub Jelinek <jakub@redhat.com>
10874 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10875 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10876 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10878 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10879 _IO_file_xsgetn_maybe_mmap): Likewise.
10880 * libio/oldfileops.c (old_do_write): Likewise.
10881 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10882 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10883 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10884 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10885 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10886 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10887 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10888 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10889 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10890 _IO_file_underflow, _IO_file_underflow_mmap,
10891 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10892 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10893 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10894 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10895 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10896 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10897 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10898 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10899 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10900 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10901 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10902 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10903 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10904 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10905 _IO_adjust_column_internal, _IO_default_uflow_internal,
10906 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10907 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10908 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10909 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10910 _IO_file_close_it_internal, _IO_file_underflow_internal,
10911 _IO_file_overflow_internal, _IO_file_attach_internal,
10912 _IO_file_fopen_internal, _IO_file_sync_internal,
10913 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10914 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10915 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10916 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10917 _IO_seekpos_unlocked): Likewise.
10918 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10919 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10921 2007-04-16 Jakub Jelinek <jakub@redhat.com>
10923 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10924 argument in xmalloc size computation.
10926 2007-04-01 Jakub Jelinek <jakub@redhat.com>
10928 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10929 math_opt_barrier and math_force_eval macros.
10931 2007-03-27 Jakub Jelinek <jakub@redhat.com>
10934 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10935 * sysdeps/i386/fpu/math_private.h: New file.
10936 * sysdeps/x86_64/fpu/math_private.h: New file.
10937 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10938 math_force_eval macros. Use "+m" constraint on asm rather than
10940 * math/s_nextafter.c (__nextafter): Likewise.
10941 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10943 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10944 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10945 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10946 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10947 math_opt_barrier and math_force_eval macros.
10948 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10949 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10950 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10951 (__nexttoward): Use math_opt_barrier and
10952 math_force_eval macros. Use "+m" constraint on asm rather than
10953 "=m" and "m". Only use asm to force double result if
10954 FLT_EVAL_METHOD is 2.
10955 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10956 (__nexttowardf): Use math_opt_barrier and
10957 math_force_eval macros. Use "+m" constraint on asm rather than
10958 "=m" and "m". Only use asm to force double result if
10959 FLT_EVAL_METHOD is not 0.
10960 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10961 (__nexttowardf): Use math_opt_barrier and
10962 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10963 x to float using asm.
10964 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10965 (__nldbl_nexttowardf): Use math_opt_barrier and
10966 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10967 x to float using asm.
10968 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10969 (__nexttowardf): Use math_opt_barrier and math_force_eval
10970 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
10971 * math/bug-nextafter.c (zero, inf): New variables.
10972 (main): Add new tests.
10973 * math/bug-nexttoward.c (zero, inf): New variables.
10974 (main): Add new tests.
10976 2007-03-22 Jakub Jelinek <jakub@redhat.com>
10979 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10980 exceptions both in SW and MXCSR.
10981 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10982 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10983 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10984 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10985 in MXCSR if SSE is available.
10986 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10988 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10990 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10991 Return 0 rather than 1.
10992 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10993 Remove incorrect part of a comment. Fix argument to feraiseexcept.
10994 * math/test-fenv.c (feholdexcept_tests): New function.
10997 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
11000 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11003 2007-04-13 Jakub Jelinek <jakub@redhat.com>
11006 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11007 Reported by David Anderson <davea42@earthlink.net>.
11009 2007-04-07 Ulrich Drepper <drepper@redhat.com>
11011 * posix/sys/wait.h: Remove unnecessary forward declaration.
11013 2007-04-05 Jakub Jelinek <jakub@redhat.com>
11015 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11016 with obj->do_servers after first_shoot.
11018 2007-04-03 Ulrich Drepper <drepper@redhat.com>
11020 * posix/Makefile (routines): Add sched_cpucount.
11021 (tests): Add tst-cpucount.
11022 * posix/sched_cpucount.c: New file.
11023 * posix/tst-cpucount.c: New file.
11024 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11025 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
11026 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11027 * posix/sched.h: Define CPU_COUNT.
11029 2007-03-27 Jakub Jelinek <jakub@redhat.com>
11031 * posix/fnmatch.c (STRUCT): Define.
11032 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11033 * posix/fnmatch_loop.c (struct STRUCT): New type.
11034 (FCT): Add ends argument. If ends != NULL and normal * is
11035 seen in the pattern, store current pattern and string pointers
11036 and return. Adjust recursive calls.
11037 (EXT): Adjust FCT callers.
11038 (STRUCT): Undef at the end of the file.
11039 * posix/Makefile (tests): Add tst-fnmatch2.
11040 * posix/tst-fnmatch2.c: New test.
11042 2007-04-01 Jakub Jelinek <jakub@redhat.com>
11044 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11047 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11048 Change last argument to unsigned int.
11050 2007-03-23 Jakub Jelinek <jakub@redhat.com>
11052 * scripts/check-local-headers.sh: Filter out sys/capability.h.
11054 2007-03-22 Jakub Jelinek <jakub@redhat.com>
11056 * config.h.in (HAVE_LIBCAP): Add.
11057 * nscd/selinux.h: Include sys/capability.h rather than non-existent
11058 sys/capabilities.h.
11059 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11060 free_caps. Cast away const from 4th cap_set_flag argument.
11062 2007-03-26 Ulrich Drepper <drepper@redhat.com>
11064 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11066 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11067 Add sync_file_range.
11068 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11070 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
11072 * sysdeps/powerpc/bits/atomic.h
11073 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11074 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11075 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11076 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11077 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11078 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11079 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11080 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11081 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11082 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11083 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11084 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11085 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11086 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11087 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11088 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11089 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11090 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11091 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11092 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11094 2007-03-20 Jakub Jelinek <jakub@redhat.com>
11096 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11097 (__cache_line_size): Define the variable here. Add
11098 attribute_hidden, remove weak_extern.
11099 (__libc_start_main): Set __cache_line_size
11101 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11102 (__cache_line_size): Define the variable here. Add
11103 attribute_hidden, remove weak_extern.
11104 (DL_PLATFORM_AUXV): Set __cache_line_size
11106 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11107 weak_extern, add attribute_hidden.
11108 (__elf_machine_runtime_setup): Assume __cache_line_size is always
11110 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11112 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11114 2007-03-26 Jakub Jelinek <jakub@redhat.com>
11117 * timezone/africa: Update from tzdata2007d.
11118 * timezone/asia: Likewise.
11119 * timezone/australasia: Likewise.
11120 * timezone/backward: Likewise.
11121 * timezone/europe: Likewise.
11122 * timezone/iso3166.tab: Likewise.
11123 * timezone/leapseconds: Likewise.
11124 * timezone/northamerica: Likewise.
11125 * timezone/southamerica: Likewise.
11126 * timezone/zone.tab: Likewise.
11128 * timezone/private.h: Update from tzcode2007d.
11129 * timezone/zdump.c: Likewise.
11130 * timezone/zic.c: Likewise.
11132 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11134 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11135 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11137 (nis_server_cache_search, nis_server_cache_add): New functions.
11138 (__nisfind_server): Use them. Add dbp and flags argument, if
11139 call __nisbind_create.
11140 (__nisbind_create): Add server_used and current_ep arguments,
11141 only call __nis_findfastest if server_used is ~0.
11142 (__do_niscall2, __prepare_niscall): Adjust callers.
11143 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11144 ckey_cache_euid, ckey_cache_lock): New variables.
11145 (get_ckey): New function.
11146 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11147 __pmap_getnisport. Save __pmap_getnisport result in
11148 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
11150 * nis/nis_lookup.c (nis_lookup): Likewise.
11151 * nis/nis_table.c (nis_list): Likewise.
11152 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11155 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11156 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11157 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11158 _nss_nisplus_getservbyport_r): Likewise.
11159 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11160 _nss_nisplus_getnetbyaddr_r): Likewise.
11161 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11162 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11163 _nss_nisplus_getntohost_r): Likewise.
11164 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11165 _nss_nisplus_getrpcbynumber_r): Likewise.
11167 2007-03-20 Jakub Jelinek <jakub@redhat.com>
11169 * configure.in (libc_cv_gnu89_inline): Only do compile test.
11170 * configure: Rebuilt.
11172 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11174 * soft-fp/extended.h (_FP_UNION_E): Likewise.
11176 2006-06-07 Joseph Myers <joseph@codesourcery.com>
11179 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11182 2007-03-18 Jakub Jelinek <jakub@redhat.com>
11184 * nscd/gai.c: Include alloca.h.
11185 (__libc_use_alloca): Define.
11187 2007-03-16 Jakub Jelinek <jakub@redhat.com>
11189 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11191 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11192 (DL_DST_REQUIRED): Adjust user.
11194 * include/dlfcn.h (struct link_map): New forward decl.
11196 * inet/getnameinfo.c: Include stddef.h.
11197 (getnameinfo): Use offsetof.
11199 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11201 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11203 * string/strerror_l.c: Include stdlib.h.
11205 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11206 * config.make.in (gnu89-inline-CFLAGS): New variable.
11207 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11209 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11210 * argp/argp.h: Use it.
11211 * bits/mathinline.h: Likewise.
11212 * bits/sigset.h: Likewise.
11213 * bits/string.h: Likewise.
11214 * ctype/ctype.h: Likewise.
11215 * hurd/hurd.h: Likewise.
11216 * hurd/hurd/fd.h: Likewise.
11217 * hurd/hurd/port.h: Likewise.
11218 * hurd/hurd/signal.h: Likewise.
11219 * hurd/hurd/threadvar.h: Likewise.
11220 * hurd/hurd/userlink.h: Likewise.
11221 * io/sys/stat.h: Likewise.
11222 * libio/bits/stdio.h: Likewise.
11223 * libio/bits/stdio2.h: Likewise.
11224 * mach/lock-intern.h: Likewise.
11225 * mach/mach/mig_support.h: Likewise.
11226 * math/bits/cmathcalls.h: Likewise.
11227 * posix/bits/unistd.h: Likewise.
11228 * socket/bits/socket2.h: Likewise.
11229 * stdlib/bits/stdlib.h: Likewise.
11230 * stdlib/stdlib.h: Likewise.
11231 * string/argz.h: Likewise.
11232 * string/bits/string2.h: Likewise.
11233 * string/bits/string3.h: Likewise.
11234 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11235 * sysdeps/generic/inttypes.h: Likewise.
11236 * sysdeps/generic/machine-lock.h: Likewise.
11237 * sysdeps/generic/machine-sp.h: Likewise.
11238 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11239 * sysdeps/i386/i486/bits/string.h: Likewise.
11240 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11241 * sysdeps/mach/alpha/machine-lock.h: Likewise.
11242 * sysdeps/mach/alpha/machine-sp.h: Likewise.
11243 * sysdeps/mach/i386/machine-lock.h: Likewise.
11244 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11245 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11246 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11247 * sysdeps/s390/bits/string.h: Likewise.
11248 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11249 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11250 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11251 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11252 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11253 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11254 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11255 * wcsmbs/bits/wchar2.h: Likewise.
11256 * wcsmbs/wchar.h: Likewise.
11257 * stdlib/gmp.h: Likewise. Include <features.h> to get
11258 __extern_inline definition.
11260 2007-03-15 Jakub Jelinek <jakub@redhat.com>
11262 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11266 * math/libm-test.inc (log_test): Test -Inf and NaN.
11267 (log10_test, log1p_test, log2_test): Test -Inf.
11268 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11269 FE_INVALID when argument is qNaN.
11270 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11271 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11272 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11273 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11274 andb $1, %ah with testb $1, %ah, don't test for parity, instead
11275 testb $4, %ah and jump if non-zero.
11276 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11277 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11280 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11281 ancestors with the same depths.
11282 Patch by Niels Moeller <nisse@lysator.liu.se>.
11283 (filter_doc): Don't crash if argp is NULL.
11284 * argp/Makefile (tests): Add tst-argp2.
11285 * argp/tst-argp2.c: New test.
11288 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11290 (updwtmp_file): Likewise.
11293 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11294 (inet6_opt_append): Don't check extlen is big enough if extbuf
11296 (inet6_opt_finish): Likewise.
11297 * inet/Makefile (tests): Add test-inet6_opt.
11298 * inet/test-inet6_opt.c: New test.
11300 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11301 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11302 NLMSG_ERR. Instead use a page sized buffer.
11303 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11306 2007-03-14 Richard Henderson <rth@redhat.com>
11308 * sysdeps/alpha/fpu/s_llround.c: New file.
11309 * sysdeps/alpha/fpu/s_llroundf.c: New file.
11310 * sysdeps/alpha/fpu/s_lround.c: New file.
11311 * sysdeps/alpha/fpu/s_lroundf.c: New file.
11312 * sysdeps/alpha/fpu/s_round.c: New file.
11313 * sysdeps/alpha/fpu/s_roundf.c: New file.
11314 * sysdeps/alpha/fpu/s_trunc.c: New file.
11315 * sysdeps/alpha/fpu/s_truncf.c: New file.
11317 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11318 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11319 * sysdeps/alpha/fpu/s_floor.c: Likewise.
11320 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11321 * sysdeps/alpha/fpu/s_rint.c: Likewise.
11322 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11324 * sysdeps/alpha/fpu/s_fmax.S: New file.
11325 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11326 * sysdeps/alpha/fpu/s_fmin.S: New file.
11327 * sysdeps/alpha/fpu/s_fminf.S: New file.
11328 * sysdeps/alpha/fpu/s_isnan.c: New file.
11329 * sysdeps/alpha/fpu/s_isnanf.c: New file.
11330 * sysdeps/alpha/fpu/s_llrint.c: New file.
11331 * sysdeps/alpha/fpu/s_llrintf.c: New file.
11332 * sysdeps/alpha/fpu/s_lrint.c: New file.
11333 * sysdeps/alpha/fpu/s_lrintf.c: New file.
11334 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11335 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11337 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11338 (__fdimf, fdimf, __fdim, fdim): Remove.
11339 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11340 (__isnanf, __isnan, __isnanl): New.
11342 2007-03-13 Richard Henderson <rth@redhat.com>
11344 * sysdeps/ieee754/ldbl-128/Makefile: New file.
11346 2007-03-13 Richard Henderson <rth@redhat.com>
11348 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11349 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11350 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11351 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11352 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11353 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11355 2007-03-13 Richard Henderson <rth@redhat.com>
11357 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11358 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11359 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11360 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11361 Move to dl-auxv.h; initialize instead of extern weak.
11362 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11364 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11365 Extern instead of initialized.
11367 2007-03-13 Richard Henderson <rth@redhat.com>
11369 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11370 __sigsuspend_nocancel.
11372 2007-03-06 Ulrich Drepper <drepper@redhat.com>
11374 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11375 172.16/12 address range.
11377 2007-03-02 Jakub Jelinek <jakub@redhat.com>
11379 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11380 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11383 2007-03-01 Jakub Jelinek <jakub@redhat.com>
11386 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11388 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11390 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11391 for x qNaN and y either +-inf or non-integer value.
11392 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11393 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11394 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11396 2007-02-10 Mike Frysinger <vapier@gentoo.org>
11398 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11399 from sysdep_headers.
11401 2007-02-28 Jakub Jelinek <jakub@redhat.com>
11403 * time/tzfile.c (find_transition): Instead of a linear search try to
11404 guess the transition index, use a linear search if the result is at
11405 most 10 transitions away from the guess or binary search otherwise.
11407 2007-02-27 Jakub Jelinek <jakub@redhat.com>
11409 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11410 memory reallocation.
11412 2007-02-21 Ulrich Drepper <drepper@redhat.com>
11414 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11415 and fix some typos.
11416 Optimize use of TOLOWER.
11419 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11420 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11421 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11424 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11425 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11428 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11429 (open_dir_stream): Likewise.
11430 * io/Makefile (tests): Add bug-ftw5.
11431 * io/bug-ftw5.c: New file.
11433 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11434 * nscd/servicescache.c (cache_addserv): Likewise.
11436 * nscd/grpcache.c (cache_addgr): In case a record changed on
11437 refresh, adjust key_copy.
11440 * nscd/pwdcache.c (cache_addpw): In case a record changed on
11441 refresh, adjust key_copy.
11444 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11446 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11448 2007-02-19 Ulrich Drepper <drepper@redhat.com>
11450 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11453 * stdio-common/vfscanf.c: Small cleanups throughout.
11455 2007-02-18 Ulrich Drepper <drepper@redhat.com>
11458 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11459 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11460 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11461 Patch by Jared Casper <jaredcasper@gmail.com>.
11463 * sysdeps/unix/closedir.c: Outside libc don't use locking.
11464 * sysdeps/unix/opendir.c: Likewise.
11465 * sysdeps/unix/readdir.c: Likewise.
11468 * stdio-common/vfscanf.c: Handle localized digits etc for floating
11470 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11472 * stdio-common/vfscanf.c: Fix problems in width accounting.
11473 * stdio-common/tst-sscanf.c (double_tests): New tests.
11474 (main): Hook them up.
11476 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11477 More simplifications of floating-point reader.
11479 * stdio-common/Makefile (tests): Add tst-swscanf.
11480 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11482 * stdio-common/tst-swscanf.c: New file.
11484 2007-02-17 Ulrich Drepper <drepper@redhat.com>
11487 * libio/stdio.h: Define struct _IO_FILE in global namespace.
11488 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11489 Remove using for __jmp_buf_tag.
11490 * locale/locale.h (struct lconv): Also define in std namespace.
11491 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11494 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11495 using __libc_enable_secure.
11498 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11501 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11502 of names for ellipsises.
11505 * malloc/memusage.sh: Cleanups.
11506 * debug/xtrace.sh: Quoting and trap changes.
11508 2007-02-16 Ulrich Drepper <drepper@redhat.com>
11510 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11512 * locale/iso-3166.def: Update entry for Serbia.
11513 * locale/iso-4217.def: Define RSD, remove CSD.
11515 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11516 and 64-bit operations.
11519 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11522 * nscd/nscd.c (parse_opt): One more conversion to use send instead
11525 2007-02-15 Ulrich Drepper <drepper@redhat.com>
11528 * assert/assert.h (assert): Simplify.
11529 (assert_perror): Likewise.
11530 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11532 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11535 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11536 change: don't pass NULL in place of an integer.
11538 2007-02-02 Bruno Haible <bruno@clisp.org>
11541 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11542 Add mapping for U+327E.
11543 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11544 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11545 mapping of 0xD9 0xE8.
11546 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11548 Reported by Jungshik Shin <jungshik@google.com>.
11551 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11552 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11553 Reported by Jungshik Shin <jungshik@google.com>.
11555 2007-02-14 Ulrich Drepper <drepper@redhat.com>
11557 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11561 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11562 byte variants. Patch mostly be tom@tommay.net.
11564 2007-02-14 Jakub Jelinek <jakub@redhat.com>
11567 * posix/glob.c (attribute_hidden): Define if not defined.
11568 (glob): Unescape dirname, filename or username when needed and not
11569 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
11570 is NULL. Handle unescaped [ in pattern without closing ].
11571 Don't pass GLOB_CHECK down to recursive glob for directories.
11572 (__glob_pattern_type): New function.
11573 (__glob_pattern_p): Implement using __glob_pattern_type.
11574 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11575 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11576 Remove unreachable code.
11577 * posix/globtest.sh: Add a couple of new tests.
11579 2007-02-13 Ulrich Drepper <drepper@redhat.com>
11581 * po/ru.po: Update from translation team.
11583 2007-02-12 Jakub Jelinek <jakub@redhat.com>
11585 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11586 to the list of i486+ CPUs.
11587 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11589 2007-02-12 Ulrich Drepper <drepper@redhat.com>
11591 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11592 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11595 2007-02-09 Ulrich Drepper <drepper@redhat.com>
11597 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11599 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11600 * resolv/res_mkquery.c: Define __res_nopt.
11601 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11602 try adding EDNS0 record.
11603 * resolv/res_send.c (send_dg): If request failed with FORMERR and
11604 EDNS0 record was send make sure we don't try it again.
11605 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11606 * include/resolv.h: Declare __res_nopt.
11608 2007-02-08 Jakub Jelinek <jakub@redhat.com>
11611 * time/strptime_l.c (__strptime_internal): Set have_mon for
11612 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
11613 have been computed from tm_yday and tm_year. Don't crash
11614 in day_of_the_week or day_of_the_year if not have_mon
11615 and tm_mon contains bogus value.
11616 * time/Makefile (tests): Add tst-strptime3.
11617 * time/tst-strptime3.c: New test.
11619 2007-02-05 Jakub Jelinek <jakub@redhat.com>
11622 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11623 bit for RE_HAT_LISTS_NOT_NEWLINE.
11624 (build_charclass_op): Remove bogus comment.
11625 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11626 * posix/bug-regex27.c: New test.
11627 * posix/bug-regex28.c: New test.
11629 2007-02-03 Ulrich Drepper <drepper@redhat.com>
11631 * po/sv.po: Update from translation team.
11633 2007-02-02 Ulrich Drepper <drepper@redhat.com>
11635 * nscd/nscd_helper.c (open_socket): Minor size optimization.
11637 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11639 * include/locale.h (__uselocale): Add libc_hidden_proto.
11640 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11642 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11645 2007-02-01 Ulrich Drepper <drepper@redhat.com>
11647 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11649 (PTR_DEMANGLE): Real definition now that it's not the same as
11650 PRT_MANGLE anymore.
11651 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11653 * string/strerror_l.c: New file.
11654 * string/Makefile (routines): Add strerror_l.
11655 * string/string.h: Declare strerror_l.
11656 * string/Versions: Export strerror_l for GLIBC_2.6.
11658 2007-01-31 Ulrich Drepper <drepper@redhat.com>
11660 * nscd/nscd_helper.c (open_socket): Now takes request type and key
11661 as parameter. Construct request record. Try sending request
11662 before the first poll use, it usually succeeds. Adjust all
11664 * nscd/nscd-client.h: Define MAXKEYLEN.
11665 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11667 2007-01-31 Jakub Jelinek <jakub@redhat.com>
11669 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11671 * nscd/nscd_helper.c: Include string.h.
11672 (__nscd_cache_search): Remove const qualifier from return value.
11673 On strict alignment architectures check hash entry and data head
11675 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11676 mmapped data during GC cycle contains garbage. If
11677 __nscd_drop_map_ref fails, decrement mapped->counter when returning
11678 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11680 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11681 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11682 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11683 * nscd/nscd_getai.c (__nscd_getai): Likewise.
11684 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11686 2007-01-30 Ulrich Drepper <drepper@redhat.com>
11688 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11690 2007-01-26 Ulrich Drepper <drepper@redhat.com>
11692 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11693 names not numbers in cfi_*.
11695 2007-01-26 Andreas Jaeger <aj@suse.de>
11697 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11698 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11699 Correct values of PER_HPUX and PER_OSF4.
11701 2007-01-24 Ulrich Drepper <drepper@redhat.com>
11703 * elf/dl-minimal.c: Undefine _itoa first.
11704 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11705 * malloc/mtrace.c: Revert last change.
11706 * posix/wordexp.c: Likewise.
11708 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11710 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11711 and __geode__ to the list of i486+ CPUs.
11712 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11714 2007-01-23 Ulrich Drepper <drepper@redhat.com>
11716 * stdio-common/_itoa.c: Include <limits.h>.
11717 * stdio-common/_itowa.c: Likewise.
11719 2007-01-22 Ulrich Drepper <drepper@redhat.com>
11721 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11723 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11725 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11727 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11731 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11732 * stdio-common/Makefile (tests): Add bug17.
11733 * stdio-common/bug17.c: New file.
11735 2007-01-19 Ulrich Drepper <drepper@redhat.com>
11737 * iconvdata/brf.c: New file.
11738 * iconvdata/testdata/BRF: New file.
11739 * iconvdata/testdata/BRF..UTF8: New file.
11740 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11741 * iconvdata/Makefile: Add rules to build BRF.
11742 * iconvdata/TESTS: Add BRF entry.
11743 * iconvdata/gconv-modules: Likewise.
11744 * iconvdata/tst-tables.sh: Likewise.
11746 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
11748 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11749 type `long long int', not `long int'.
11750 (wcstoq): Likewise.
11752 2007-01-18 Ulrich Drepper <drepper@redhat.com>
11754 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11755 of values on 64-bit platforms which are too large.
11757 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
11758 Joe Kerian <jkerian@us.us.ibm.com>
11761 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11762 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
11763 (__copysignl): Use signbit() for comparison.
11764 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11765 SET_LDOUBLE_WORDS64.
11768 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11769 (__ceill): Remove calls to fegetround(), fesetround().
11770 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11771 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11772 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11774 2007-01-17 Jakub Jelinek <jakub@redhat.com>
11776 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11778 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11780 2007-01-17 Ulrich Drepper <drepper@redhat.com>
11782 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11784 * csu/libc-start.c: Likewise.
11786 2007-01-16 Ulrich Drepper <drepper@redhat.com>
11788 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11789 really work anyway.
11791 2007-01-15 Ulrich Drepper <drepper@redhat.com>
11793 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
11795 (handle_request): Remove unnecessary tests.
11797 * nscd/cache.c (cache_add): Record the failure to add to the cache.
11799 2007-01-15 Jakub Jelinek <jakub@redhat.com>
11801 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11802 workbits in semi-raw fraction.
11804 * math/test-misc.c: Add new tests.
11806 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
11808 * math/basic-test.c: Include test-skeleton.c.
11809 (TEST_TRUNC): Define.
11810 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11811 (main): Rename to ...
11812 (do_test): ...this. Run new tests.
11813 (TEST_FUNCTION): Define.
11815 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
11816 Joe Kerian <jkerian@us.us.ibm.com>
11819 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11820 handling for high words.
11821 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11822 and overflow for infinity.
11824 2007-01-15 Ulrich Drepper <drepper@redhat.com>
11826 * nscd/connections.c (handle_request): Add a __builtin_expect.
11828 * nscd/connections.c (serv2db): Change type into structure which
11829 also says whether this is a request for data. Renamed to
11830 servinfo. All users changed.
11831 (handle_request): Much simpler test whether we should search the cache.
11833 * nscd/connections.c (handle_request): Fix thinko in selinux test
11836 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11837 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11838 it before getting dl_load_lock and then relock.
11839 (_dl_lookup_symbol_x): Pass flags to add_dependency.
11840 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11841 case we unlocked the scope.
11842 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11843 _dl_lookup_symbol_x in case we locked the scope.
11844 (_dl_profile_fixup): Likewise.
11845 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11846 set DL_LOOKUP_SCOPE_LOCK.
11848 2007-01-13 Ulrich Drepper <drepper@redhat.com>
11850 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11851 CFLAGS-getsrvbynpt_r.c.
11852 * nscd/getsrvbynm_r.c: New file.
11853 * nscd/getsrvbypt_r.c: New file.
11854 * nscd/nscd_getserv_r.c: New file.
11855 * nscd/servicescache.c: New file.
11856 * nscd/Makefile (routines): Add nscd_getserv_r.
11857 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11858 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11859 CFLAGS-getsrvbypt_r.c.
11860 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11861 table. Add entries for services database.
11862 * nscd/connections.c (serv2str): Mark as const. Add entries for
11864 (dbs): Add .reset_res and servdb initialization.
11865 (serv2db): Add entries for services database.
11866 (verify_persistent_db): Accept dbnr == servdb.
11867 (invalidate_cache): Rewrite database name recognition to use a table.
11868 Call res_init() if .reset_res is set for database.
11869 (handle_request): Add code to handle services database.
11870 * nscd/gai.c: Don't define __getservbyname_r.
11871 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11872 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11873 (serv_response_header): Define.
11874 (struct datahead): Add serv_response_header member.
11875 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11877 * nscd/nscd.conf: Add entries for services database.
11878 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11879 Declare serv_iov_disabled.
11880 Declare addservbyname, readdservbyname, addservbyport, and
11882 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
11883 (find_db): Fix error message.
11884 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11885 __nscd_getservbyname_r, and __nscd_getservbyport_r.
11886 * nscd/selinux.c (perms): Add entries for services database.
11887 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11888 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11890 * nscd/grpcache.c: Remove obsolete code. Cleanups.
11891 * nscd/hstcache.c: Likewise.
11892 * nscd/pwdcache.c: Likewise.
11894 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11895 computation of keylen.
11897 * include/string.h: Only redefine strndupa if this is really for
11900 2007-01-12 Ulrich Drepper <drepper@redhat.com>
11902 * nscd/nscd_gethst_r.c: Minor cleanups.
11904 * nscd/connections.c (handle_request): Check selinux permissions
11905 for all non-admin commands.
11907 * sysdeps/i386/i486/bits/atomic.h: Define
11908 atomic_compare_and_exchange_val_acq,
11909 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11910 using __sync_* built-ins for gcc >= 4.1.
11911 * sysdeps/x86_64/bits/atomic.h: Likewise.
11914 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11917 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
11919 * stdlib/tst-makecontext.c: Include errno.h. Change main()
11920 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
11921 (do_test): Check errno and exit(0) if ENOSYS.
11923 2007-01-11 Jakub Jelinek <jakub@redhat.com>
11925 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11926 thousands separators.
11927 * stdlib/Makefile: Add rules to build and run tst-strtod4.
11928 * stdlib/tst-strtod4.c: New test.
11931 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11932 hexadecimal digit should accept just the initial 0.
11933 * stdlib/tst-strtod2.c (tests): New variable.
11934 (do_test): Run several tests rather than just one.
11936 2007-01-11 Jakub Jelinek <jakub@redhat.com>
11938 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11939 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11941 2007-01-10 Ulrich Drepper <drepper@redhat.com>
11943 * io/fts.c: Make sure fts_cur is always valid after return from
11945 Patch by Miloslav Trmac <mitr@redhat.com>.
11947 2006-10-27 Richard Sandiford <richard@codesourcery.com>
11949 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11950 (R_MIPS_NUM): Bump by 1.
11952 2007-01-03 Jakub Jelinek <jakub@redhat.com>
11954 * posix/execvp.c: Include alloca.h.
11955 (allocate_scripts_argv): Renamed to...
11956 (scripts_argv): ... this. Don't allocate buffer here nor count
11958 (execvp): Use alloca if possible.
11959 * posix/Makefile: Add rules to build and run tst-vfork3 test.
11960 * posix/tst-vfork3.c: New test.
11962 2007-01-03 Ulrich Drepper <drepper@redhat.com>
11964 * string/Makefile (tst-strxfrm2-ENV): Define.
11965 * stdlib/Makefile (tst-strtod3-ENV): Define.
11967 2007-01-02 Ulrich Drepper <drepper@redhat.com>
11969 * posix/getconf.c: Update copyright year.
11970 * nss/getent.c: Likewise.
11971 * iconv/iconvconfig.c: Likewise.
11972 * iconv/iconv_prog.c: Likewise.
11973 * elf/ldconfig.c: Likewise.
11974 * catgets/gencat.c: Likewise.
11975 * csu/version.c: Likewise.
11976 * elf/ldd.bash.in: Likewise.
11977 * elf/sprof.c (print_version): Likewise.
11978 * locale/programs/locale.c: Likewise.
11979 * locale/programs/localedef.c: Likewise.
11980 * nscd/nscd.c (print_version): Likewise.
11981 * debug/xtrace.sh: Likewise.
11982 * malloc/memusage.sh: Likewise.
11983 * malloc/mtrace.pl: Likewise.
11984 * debug/catchsegv.sh: Likewise.
11986 2006-12-24 Ulrich Drepper <drepper@redhat.com>
11988 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11991 2006-12-23 Ulrich Drepper <drepper@redhat.com>
11993 * posix/wordexp.c: Remove some unnecessary tests.
11995 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
11997 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11998 blacklist the group till after we look it up.
12000 2006-12-21 Ulrich Drepper <drepper@redhat.com>
12002 * include/atomic.h (atomic_forced_read): New macro.
12004 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
12006 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12008 2006-12-19 Jakub Jelinek <jakub@redhat.com>
12010 * nss/getXXbyYY_r.c: Include atomic.h.
12011 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12012 add atomic_write_barrier () in between.
12014 * stdlib/Makefile (tests): Add tst-makecontext.
12015 * stdlib/tst-makecontext.c: New test.
12017 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12018 (__makecontext): Don't realign uc_mcontext.uc_regs.
12020 2006-11-28 Jakub Jelinek <jakub@redhat.com>
12022 * elf/dl-support.c: Include dl-procinfo.h.
12023 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12024 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12025 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12027 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12028 hardcoded constants.
12029 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12030 PPC_PLATFORM_* macros for array designators.
12032 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
12034 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12035 names to the beginning.
12036 (_dl_powerpc_platforms): Add "power6x".
12037 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12038 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12039 (_DL_PLATFORMS_COUNT): Increase.
12040 (_dl_string_platform): Handle power6x case.
12041 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12042 PPC_FEATURE_POWER6_EXT): Define.
12043 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12045 2006-12-18 Jakub Jelinek <jakub@redhat.com>
12048 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12049 [-2^31 .. 2^31) range.
12050 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12052 * stdlib/tst-rand48-2.c: New test.
12053 * stdlib/Makefile (tests): Add tst-rand48-2.
12055 2006-12-14 Jakub Jelinek <jakub@redhat.com>
12057 * misc/tst-pselect.c (do_test): Fix sigblock argument.
12059 2006-12-14 Ulrich Drepper <drepper@redhat.com>
12061 * misc/tst-pselect.c (do_test): Make sure the helper process is
12062 terminating when the test is aborted.
12064 2006-12-13 Ulrich Drepper <drepper@redhat.com>
12066 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12067 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12068 Handle relatime mount option.
12071 * libio/Makefile (tests): Add tst-setvbuf1.
12072 * libio/tst-setvbuf1.c: New file.
12074 2006-12-08 Jakub Jelinek <jakub@redhat.com>
12077 * libio/genops.c (__uflow): Fix a typo.
12078 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12079 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
12080 the narrow buffer size.
12082 2006-11-24 Jakub Jelinek <jakub@redhat.com>
12085 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12086 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12087 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12089 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12090 _IO_wstr_finish): Likewise.
12091 * libio/wmemstream.c (open_wmemstream): Likewise.
12092 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12093 even for wide streams.
12095 2006-12-13 Jakub Jelinek <jakub@redhat.com>
12097 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12100 2006-12-11 Ulrich Drepper <drepper@redhat.com>
12102 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12103 separators also if no non-zero digits found.
12104 * stdlib/Makefile (tests): Add tst-strtod3.
12106 2006-12-09 Ulrich Drepper <drepper@redhat.com>
12109 * include/features.h: Fix comment about default value for
12113 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12114 empty parsed strings.
12115 * stdlib/Makefile (tests): Add tst-strtod2.
12116 * stdlib/tst-strtod2.c: New file.
12119 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12121 * stdlib/Makefile (tests): Add tst-atof2.
12122 * stdlib/tst-atof2.c: New file.
12125 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12126 correctly if removing trailing zero of hex-float.
12127 * stdlib/Makefile (tests): Add tst-atof1.
12128 * stdlib/tst-atof1.c: New file.
12130 2006-12-09 Jakub Jelinek <jakub@redhat.com>
12132 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12133 Start searching for next comma at p rather than rest.
12134 * misc/Makefile (tests): Add tst-mntent2.
12135 * misc/tst-mntent2.c: New test.
12137 * misc/getusershell.c (initshells): Check for integer overflows.
12138 Make strings buffer one bigger as fgets always succeeds when second
12139 argument is 1. Don't use calloc for shells array. Disallow
12142 2006-12-08 Ulrich Drepper <drepper@redhat.com>
12144 * malloc/memusage.c: Handle realloc with new size of zero and
12145 non-NULL pointer correctly.
12146 (me): Really write first record twice.
12147 (struct entry): Make format bi-arch safe.
12148 (dest): Write out more realloc statistics.
12149 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12151 2006-12-05 Jakub Jelinek <jakub@redhat.com>
12153 * nis/nis_subr.c (nis_getnames): Revert last change.
12155 2006-12-04 Jakub Jelinek <jakub@redhat.com>
12157 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12158 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12159 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12160 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12162 * io/Makefile: Add rules to build and run tst-ttyname_r test.
12163 * io/tst-ttyname_r.c: New test.
12165 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12167 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12169 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
12171 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12172 jump table entries.
12174 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
12176 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12177 `clone' function to ensure proper unwinding stop of gdb.
12178 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12180 2006-12-01 Ulrich Drepper <drepper@redhat.com>
12182 * nscd/nscd.init: Remove obsolete and commented-out -S option
12185 2006-11-23 Jakub Jelinek <jakub@redhat.com>
12188 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12191 * manual/string.texi (strtok): Remove duplicate paragraph.
12193 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12195 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12196 libgcc not supporting `rflags' unwinding (register # >= 17).
12198 2006-11-30 Jakub Jelinek <jakub@redhat.com>
12200 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12203 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
12204 Jakub Jelinek <jakub@redhat.com>
12205 Jan Kratochvil <jan.kratochvil@redhat.com>
12207 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12208 unwind information.
12209 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12210 'restore_rt' even in the 'signal' directory.
12211 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12213 2006-11-27 Jakub Jelinek <jakub@redhat.com>
12216 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12217 malloc crashed. Don't allocate memory unnecessarily in each
12220 2006-10-21 Jakub Jelinek <jakub@redhat.com>
12222 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12224 2006-11-20 Ulrich Drepper <drepper@redhat.com>
12226 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12228 2006-11-18 Bruno Haible <bruno@clisp.org>
12230 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12231 __sysconf only after having tried to call getgroups32.
12233 2006-11-19 Ulrich Drepper <drepper@redhat.com>
12235 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12236 addresses for IPv4 queries if they can be mapped.
12238 2006-11-16 Jakub Jelinek <jakub@redhat.com>
12240 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12241 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12242 (signmask): Add .size directive.
12243 (othermask): Add .type directive.
12245 2006-11-14 Ulrich Drepper <drepper@redhat.com>
12247 * po/nl.po: Update from translation team.
12249 * timezone/zdump.c: Redo fix for BZ #3137.
12251 2006-11-14 Jakub Jelinek <jakub@redhat.com>
12253 * nss/nss_files/files-alias.c (get_next_alias): Set line back
12254 to first_unused after parsing :include: file.
12256 2006-11-10 Ulrich Drepper <drepper@redhat.com>
12258 * timezone/africa: Update from tzdata2006o.
12259 * timezone/antarctica: Likewise.
12260 * timezone/asia: Likewise.
12261 * timezone/australasia: Likewise.
12262 * timezone/backward: Likewise.
12263 * timezone/europe: Likewise.
12264 * timezone/iso3166.tab: Likewise.
12265 * timezone/northamerica: Likewise.
12266 * timezone/southamerica: Likewise.
12267 * timezone/zone.tab: Likewise.
12269 * time/tzfile.c (__tzfile_read): Extend to handle new file format
12270 on machines with 64-bit time_t.
12272 * timezone/checktab.awk: Update from tzcode2006o.
12273 * timezone/ialloc.c: Likewise.
12274 * timezone/private.h: Likewise.
12275 * timezone/scheck.c: Likewise.
12276 * timezone/tzfile.h: Likewise.
12277 * timezone/tzselect.ksh: Likewise.
12278 * timezone/zdump.c: Likewise.
12279 * timezone/zic.c: Likewise.
12282 * elf/ldconfig.c (main): Call setlocale and textdomain.
12283 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12286 * manual/argp.texi: Fix typos.
12287 * manual/charset.texi: Likewise.
12288 * manual/errno.texi: Likewise.
12289 * manual/filesys.texi: Likewise.
12290 * manual/lang.texi: Likewise.
12291 * manual/maint.texi: Likewise.
12292 * manual/memory.texi: Likewise.
12293 * manual/message.texi: Likewise.
12294 * manual/resource.texi: Likewise.
12295 * manual/search.texi: Likewise.
12296 * manual/signal.texi: Likewise.
12297 * manual/startup.texi: Likewise.
12298 * manual/stdio.texi: Likewise.
12299 * manual/sysinfo.texi: Likewise.
12300 * manual/syslog.texi: Likewise.
12301 * manual/time.texi: Likewise.
12302 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12305 * sunrpc/clnt_raw.c: Minimal message improvements.
12306 * sunrpc/pm_getmaps.c: Likewise.
12307 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12308 * nis/nis_print_group_entry.c: Likewise.
12309 * locale/programs/repertoire.c: Likewise.
12310 * locale/programs/charmap.c: Likewise.
12311 * malloc/memusage.sh: Likewise.
12312 * elf/dl-deps.c: Likewise.
12313 * locale/programs/ld-collate.c: Likewise.
12314 * libio/vswprintf.c: Likewise.
12315 * malloc/memusagestat.c: Likewise.
12316 * sunrpc/auth_unix.c: Likewise.
12317 * sunrpc/rpc_main.c: Likewise.
12318 * nscd/cache.c: Likewise.
12319 * locale/programs/repertoire.c: Unify output messages.
12320 * locale/programs/charmap.c: Likewise.
12321 * locale/programs/ld-ctype.c: Likewise.
12322 * locale/programs/ld-monetary.c: Likewise.
12323 * locale/programs/ld-numeric.c: Likewise.
12324 * locale/programs/ld-time.c: Likewise.
12325 * elf/ldconfig.c: Likewise.
12326 * nscd/selinux.c: Likewise.
12327 * elf/cache.c: Likewise.
12328 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12331 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12335 2006-11-10 Jakub Jelinek <jakub@redhat.com>
12337 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12338 if N is one bigger than return value.
12339 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12340 and l1 last arguments, if buf is defined, verify the return value
12341 equals to strlen (buf) and verify no byte beyond passed length
12344 2006-11-10 Ulrich Drepper <drepper@redhat.com>
12346 * po/sv.po: Update from translation team.
12348 2006-11-09 Ulrich Drepper <drepper@redhat.com>
12350 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12351 noinline attribute.
12353 2006-11-10 Jakub Jelinek <jakub@redhat.com>
12355 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12356 noinline attribute.
12358 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12359 Use __new_sys_siglist instead of _sys_siglist_internal as
12360 second macro argument.
12361 (_old_sys_siglist): Use declare_symbol_alias macro instead of
12364 2006-11-09 Ulrich Drepper <drepper@redhat.com>
12367 * posix/unistd.h (sysconf): Remove const attribute.
12369 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12370 temporary or deprecated addresses.
12371 Patch by Sridhar Samudrala <sri@us.ibm.com>.
12373 * string/Makefile (tests): Add tst-strxfrm2.
12374 * string/tst-strxfrm2.c: New file.
12376 2006-10-09 Jakub Jelinek <jakub@redhat.com>
12378 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12379 rather than r->r_brk.
12381 2006-11-08 Jakub Jelinek <jakub@redhat.com>
12383 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12384 optimization even if needed > n.
12386 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12387 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12388 return false, otherwise return true.
12389 (cache_rpath): Return decompose_rpath return value.
12391 2006-11-07 Jakub Jelinek <jakub@redhat.com>
12393 * include/libc-symbols.h (declare_symbol): Rename to...
12394 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
12395 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12397 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12399 * sysdeps/gnu/siglist.c: Likewise.
12401 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
12403 * sysdeps/powerpc/fpu/bits/mathinline.h
12404 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12405 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
12407 2006-11-05 Ulrich Drepper <drepper@redhat.com>
12409 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12410 Update handling of cache descriptor 0x49 for new models.
12411 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12414 2006-11-02 Jakub Jelinek <jakub@redhat.com>
12416 * malloc/memusage.c (dest): Reset not_me back to false after
12417 printing statistics.
12419 2006-11-02 Ulrich Drepper <drepper@redhat.com>
12421 * configure.in: Work around ld --help change and avoid -z relro
12422 test completely if the architecture doesn't care about security.
12424 2006-11-01 Ulrich Drepper <drepper@redhat.com>
12426 * po/sv.po: Update from translation team.
12428 2006-10-31 Ulrich Drepper <drepper@redhat.com>
12430 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12431 generate compatibility version.
12433 2006-10-29 Ulrich Drepper <drepper@redhat.com>
12435 * configure.in: Relax -z relro requirement a bit.
12437 * po/sv.po: Update from translation team.
12439 2006-10-29 Jakub Jelinek <jakub@redhat.com>
12441 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12442 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12443 * elf/dl-close.c (_dl_close_worker): Likewise.
12444 * elf/dl-open.c (_dl_open_worker): Likewise.
12445 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12447 2006-10-27 Ulrich Drepper <drepper@redhat.com>
12449 * configure.in: Require assembler support for visibility, compiler
12450 support for visibility and aliases, linker support for various -z
12452 * Makeconfig: Remove conditional code which now is unnecessary.
12453 * config.h.in: Likewise.
12454 * config.make.in: Likewise.
12455 * dlfcn/Makefile: Likewise.
12456 * elf/Makefile: Likewise.
12457 * elf/dl-load.c: Likewise.
12458 * elf/rtld.c: Likewise.
12459 * include/libc-symbols.h: Likewise.
12460 * include/stdio.h: Likewise.
12461 * io/Makefile: Likewise.
12462 * io/fstat.c: Likewise.
12463 * io/fstat64.c: Likewise.
12464 * io/fstatat.c: Likewise.
12465 * io/fstatat64.c: Likewise.
12466 * io/lstat.c: Likewise.
12467 * io/lstat64.c: Likewise.
12468 * io/mknod.c: Likewise.
12469 * io/mknodat.c: Likewise.
12470 * io/stat.c: Likewise.
12471 * io/stat64.c: Likewise.
12472 * libio/stdio.c: Likewise.
12473 * nscd/Makefile: Likewise.
12474 * stdlib/Makefile: Likewise.
12475 * stdlib/atexit.c: Likewise.
12476 * sysdeps/generic/ldsodefs.h: Likewise.
12477 * sysdeps/i386/dl-machine.h: Likewise.
12478 * sysdeps/i386/sysdep.h: Likewise.
12479 * sysdeps/i386/i686/memcmp.S: Likewise.
12480 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12481 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12482 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12484 * Makerules: USE_TLS support is now default.
12485 * tls.make.c: Likewise.
12486 * csu/Versions: Likewise.
12487 * csu/libc-start.c: Likewise.
12488 * csu/libc-tls.c: Likewise.
12489 * csu/version.c: Likewise.
12490 * dlfcn/dlinfo.c: Likewise.
12491 * elf/dl-addr.c: Likewise.
12492 * elf/dl-cache.c: Likewise.
12493 * elf/dl-close.c: Likewise.
12494 * elf/dl-iteratephdr.c: Likewise.
12495 * elf/dl-load.c: Likewise.
12496 * elf/dl-lookup.c: Likewise.
12497 * elf/dl-object.c: Likewise.
12498 * elf/dl-open.c: Likewise.
12499 * elf/dl-reloc.c: Likewise.
12500 * elf/dl-support.c: Likewise.
12501 * elf/dl-sym.c: Likewise.
12502 * elf/dl-sysdep.c: Likewise.
12503 * elf/dl-tls.c: Likewise.
12504 * elf/ldconfig.c: Likewise.
12505 * elf/rtld.c: Likewise.
12506 * elf/tst-tls-dlinfo.c: Likewise.
12507 * elf/tst-tls1.c: Likewise.
12508 * elf/tst-tls10.h: Likewise.
12509 * elf/tst-tls14.c: Likewise.
12510 * elf/tst-tls2.c: Likewise.
12511 * elf/tst-tls3.c: Likewise.
12512 * elf/tst-tls4.c: Likewise.
12513 * elf/tst-tls5.c: Likewise.
12514 * elf/tst-tls6.c: Likewise.
12515 * elf/tst-tls7.c: Likewise.
12516 * elf/tst-tls8.c: Likewise.
12517 * elf/tst-tls9.c: Likewise.
12518 * elf/tst-tlsmod1.c: Likewise.
12519 * elf/tst-tlsmod13.c: Likewise.
12520 * elf/tst-tlsmod13a.c: Likewise.
12521 * elf/tst-tlsmod14a.c: Likewise.
12522 * elf/tst-tlsmod2.c: Likewise.
12523 * elf/tst-tlsmod3.c: Likewise.
12524 * elf/tst-tlsmod4.c: Likewise.
12525 * elf/tst-tlsmod5.c: Likewise.
12526 * elf/tst-tlsmod6.c: Likewise.
12527 * include/errno.h: Likewise.
12528 * include/link.h: Likewise.
12529 * include/tls.h: Likewise.
12530 * locale/global-locale.c: Likewise.
12531 * locale/localeinfo.h: Likewise.
12532 * malloc/arena.c: Likewise.
12533 * malloc/hooks.c: Likewise.
12534 * malloc/malloc.c: Likewise.
12535 * resolv/Versions: Likewise.
12536 * sysdeps/alpha/dl-machine.h: Likewise.
12537 * sysdeps/alpha/libc-tls.c: Likewise.
12538 * sysdeps/generic/ldsodefs.h: Likewise.
12539 * sysdeps/generic/tls.h: Likewise.
12540 * sysdeps/i386/dl-machine.h: Likewise.
12541 * sysdeps/ia64/dl-machine.h: Likewise.
12542 * sysdeps/ia64/libc-tls.c: Likewise.
12543 * sysdeps/mach/hurd/fork.c: Likewise.
12544 * sysdeps/mach/hurd/i386/tls.h: Likewise.
12545 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12546 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12547 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12548 * sysdeps/s390/libc-tls.c: Likewise.
12549 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12550 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12551 * sysdeps/sh/dl-machine.h: Likewise.
12552 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12553 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12554 * sysdeps/x86_64/dl-machine.h: Likewise.
12556 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12557 split out locking and parameter checking.
12558 (_dl_close): Call _dl_close_worker after locking and checking.
12559 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12561 * elf/Makefile: Add rules to build and run tst-thrlock.
12562 * elf/tst-thrlock.c: New file.
12565 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12569 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12570 we are sure we do not need it anymore for _dl_close. Also move
12571 the asserts inside the lock region.
12572 Patch mostly by Suzuki <suzuki@in.ibm.com>.
12574 2006-10-27 Jakub Jelinek <jakub@redhat.com>
12576 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12578 (_dl_lookup_symbol_x): Adjust caller.
12580 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12582 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12584 * elf/dl-libc.c: Revert l_scope name changes.
12585 * elf/dl-load.c: Likewise.
12586 * elf/dl-object.c: Likewise.
12587 * elf/rtld.c: Likewise.
12588 * elf/dl-close.c (_dl_close): Likewise.
12589 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
12590 always use __rtld_mrlock_{change,done}. Always free old scope list
12591 here if not l_scope_mem.
12592 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12593 change. Never free scope list here. Just __rtld_mrlock_lock before
12594 the lookup and __rtld_mrlock_unlock it after the lookup.
12595 * elf/dl-sym.c: Likewise.
12596 * include/link.h (struct r_scoperec): Remove.
12597 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12598 with l_scope_mem and l_scoperec_lock with l_scope_lock.
12600 2006-10-25 Ulrich Drepper <drepper@redhat.com>
12602 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12604 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12606 * configure.in: Disable building profile libraries by default.
12608 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12610 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12611 as signed longs, check for x_base + pos overflow.
12612 * sunrpc/Makefile (tests): Add tst-xdrmem2.
12613 * sunrpc/tst-xdrmem2.c: New test.
12615 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12617 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12618 _dl_lookup_symbol_x code.
12620 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12622 * elf/dl-runtime.c: Include sysdep-cancel.h.
12623 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12624 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
12625 instead of catomic_* macros.
12626 * elf/dl-sym.c: Include sysdep-cancel.h.
12627 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12628 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12629 * elf/dl-close.c: Include sysdep-cancel.h.
12630 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12631 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12632 * elf/dl-open.c: Include sysdep-cancel.h.
12633 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12634 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12636 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12639 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12640 fastbin rather than end of fastbin array.
12642 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12644 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12646 * sysdeps/x86_64/bits/atomic.h
12647 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12648 (catomic_decrement): Use correct body macro.
12650 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12652 * include/atomic.h: Add a unique prefix to all local variables
12654 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12656 2006-10-16 Ulrich Drepper <drepper@redhat.com>
12659 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12662 2006-10-14 Ulrich Drepper <drepper@redhat.com>
12664 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12666 2006-10-13 Ulrich Drepper <drepper@redhat.com>
12669 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12670 determine highest fast bin to consolidate, always look into all of
12672 (do_check_malloc_state): Only require for empty bins for large
12673 sizes in main arena.
12675 * libio/stdio.h: Add more __wur attributes.
12677 * elf/dl-minimal.c (realloc): Optimize last patch.
12679 2006-10-12 Richard Sandiford <richard@codesourcery.com>
12682 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12683 and use memcpy() if it does.
12685 2006-11-12 Andreas Jaeger <aj@suse.de>
12688 * manual/search.texi (Hash Search Function): Clarify.
12689 (Array Search Function): Clarify.
12691 2006-11-12 Joseph Myers <joseph@codesourcery.com>
12694 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12696 * math/atest-exp2.c (read_mpn_hex): Likewise.
12697 * math/atest-sincos.c (main): Likewise.
12699 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12701 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12702 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12703 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12705 * Versions.def: Add GLIBC_2.6 for libc.
12707 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12709 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12711 2006-10-11 Jakub Jelinek <jakub@redhat.com>
12713 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12715 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12717 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12718 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12720 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12722 * include/atomic.c: Define catomic_* operations.
12723 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
12724 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12725 * malloc/memusage.c: Likewise.
12726 * gmon/mcount.c: Likewise.
12727 * elf/dl-close.c: Likewise.
12728 * elf/dl-open.c: Likewise.
12729 * elf/dl-profile.c: Likewise.
12730 * elf/dl-sym.c: Likewise.
12731 * elf/dl-runtime.c: Likewise.
12732 * elf/dl-fptr.c: Likewise.
12733 * resolv/res_libc.c: Likewise.
12735 2006-10-10 Ulrich Drepper <drepper@redhat.com>
12737 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12738 components which lack them.
12740 * nis/nis_subr.c (nis_getnames): Make sure that we always return
12741 at least one entry consisting of the parameter concatenated with
12744 2006-10-10 Roland McGrath <roland@frob.com>
12746 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12747 * sysdeps/mach/hurd/futimes.c: Likewise.
12748 * sysdeps/mach/hurd/lutimes.c: Likewise.
12750 2006-10-09 Ulrich Drepper <drepper@redhat.com>
12751 Jakub Jelinek <jakub@redhat.com>
12753 Implement reference counting of scope records.
12754 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12755 from the list in objects which remain. Always allocate new scope
12757 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12758 don't resize, allocate a new one.
12759 * elf/dl-runtime.c: Update reference counters before using a scope
12761 * elf/dl-sym.c: Likewise.
12762 * elf/dl-libc.c: Adjust for l_scope name change.
12763 * elf/dl-load.c: Likewise.
12764 * elf/dl-object.c: Likewise.
12765 * elf/rtld.c: Likewise.
12766 * include/link.h: Include <rtld-lowlevel.h>. Define struct
12767 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
12768 Add l_scoperec_lock.
12769 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12770 * sysdeps/generic/rtld-lowlevel.h: New file.
12772 * include/atomic.h: Rename atomic_and to atomic_and_val and
12773 atomic_or to atomic_or_val. Define new macros atomic_and and
12774 atomic_or which do not return values.
12775 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12777 * sysdeps/i386/i486/bits/atomic.h: Likewise.
12779 * po/sv.po: Update from translation team.
12781 2006-10-07 Ulrich Drepper <drepper@redhat.com>
12783 * Versions.def: Add GLIBC_2.6 to libpthread.
12785 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12786 (versioned_symbol): Likewise.
12787 (compat_symbol): Likewise.
12789 * po/tr.po: Update from translation team.
12791 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12793 * nis/Banner: Removed. It's been integral part forever and the
12794 author info is incomplete anyway.
12795 * libio/Banner: Likewise.
12797 * nis/nis_table.c (nis_list): If __follow_path fails in the new
12798 code, make sure the nis_freeresult call doesn't crash and that the
12799 result is reported correctly.
12801 2006-09-27 Jakub Jelinek <jakub@redhat.com>
12803 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12804 when callback is NULL.
12806 * nis/Versions (libnss_nisplus): Add
12807 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12808 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12809 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12810 _nss_create_tablename): Rename to...
12811 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12812 ... these. No longer static.
12813 (internal_setgrent): Adjust users.
12814 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12815 Don't use locking around _nss_grp_create_tablename call.
12816 * nis/nss_nisplus/nisplus-initgroups.c: New file.
12818 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12820 * version.h (VERSION): Bump to 2.5.90 for new development tree.
12822 2006-10-06 Andreas Jaeger <aj@suse.de>
12824 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12826 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12828 * po/pl.po: Update from translation team.
12830 * nscd/nscd.c (main): Fix typo in message.
12831 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12833 2006-10-02 Jakub Jelinek <jakub@redhat.com>
12836 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12837 errno.h, signal.h, unistd.h and sysdep-cancel.h.
12838 (__sigprocmask): Define.
12840 2006-10-02 Ulrich Drepper <drepper@redhat.com>
12842 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12845 2006-10-02 Jakub Jelinek <jakub@redhat.com>
12847 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12848 in oldtotal and newtotal calculation.
12849 * nscd/nscd-client.h (struct mapped_database): Add datasize
12851 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12852 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12854 (__nscd_cache_search): Add checks to make sure we never reference
12855 data beyond the current mapping.
12857 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
12859 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12860 variables const to avoid compiler warnings.
12862 * io/fts.c (fts_close): Remove redundant checks.
12863 (fts_build): Likewise.
12864 (fts_palloc): Likewise.
12866 * manual/message.texi (Advanced gettext functions,
12867 Using gettextized software): Fix typos.
12869 2006-09-30 Ulrich Drepper <drepper@redhat.com>
12871 * posix/glob.c (glob_in_dir): Add some comments and asserts to
12872 explain why there are no leaks.
12874 2006-09-29 Ulrich Drepper <drepper@redhat.com>
12876 * libio/wmemstream.c: Include <wchar.h>.
12877 * libio/bug-wmemstream1.c: Likewise.
12878 * libio/tst-wmemstream1.c: Likewise.
12879 * libio/tst-wmemstream2.c: Likewise.
12881 * version.h (RELEASE): Bump to 2.5.
12882 * README: Regenerated.
12884 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12887 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12888 found no group members.
12889 Patch by Petr Baudis.
12891 2006-09-29 Jakub Jelinek <jakub@redhat.com>
12893 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12894 assert bootstrap_map.l_tls_modid is zero.
12895 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12898 2006-09-27 Ulrich Drepper <drepper@redhat.com>
12900 * libio/stdio.h: Move open_wmemstream prototype to ...
12901 * wcsmbs/wchar.h: ... here.
12903 2006-09-25 Jakub Jelinek <jakub@redhat.com>
12906 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12907 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12908 __{,l}chown to handle the rest.
12909 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12910 fchownat syscall and __ASSUME_32BITUIDS case inline, call
12911 __{,l}chown to handle the rest.
12912 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12914 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12915 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12918 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12919 time, rather allocate increasingly bigger arrays of pointers, if
12920 possible with alloca, if too large with malloc.
12922 2006-09-24 Jakub Jelinek <jakub@redhat.com>
12924 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12926 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12928 2006-09-24 Ulrich Drepper <drepper@redhat.com>
12930 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12932 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12933 IFA_F_HOMEADDRESS flag for interfaces.
12934 * include/ifaddrs.h (struct in6addrinfo): Define
12937 2006-09-21 Jakub Jelinek <jakub@redhat.com>
12940 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12941 PTR_DEMANGLE3): Define.
12942 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12943 PTR_DEMANGLE3): Likewise.
12944 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12945 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12947 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12949 2006-09-20 Jakub Jelinek <jakub@redhat.com>
12951 * po/libc.pot: Regenerated.
12952 * po/be.po: Updated.
12953 * po/ca.po: Likewise.
12954 * po/cs.po: Likewise.
12955 * po/da.po: Likewise.
12956 * po/de.po: Likewise.
12957 * po/el.po: Likewise.
12958 * po/en_GB.po: Likewise.
12959 * po/es.po: Likewise.
12960 * po/fi.po: Likewise.
12961 * po/fr.po: Likewise.
12962 * po/gl.po: Likewise.
12963 * po/hr.po: Likewise.
12964 * po/hu.po: Likewise.
12965 * po/ja.po: Likewise.
12966 * po/ko.po: Likewise.
12967 * po/nb.po: Likewise.
12968 * po/nl.po: Likewise.
12969 * po/pl.po: Likewise.
12970 * po/pt_BR.po: Likewise.
12971 * po/ru.po: Likewise.
12972 * po/rw.po: Likewise.
12973 * po/sk.po: Likewise.
12974 * po/sv.po: Likewise.
12975 * po/tr.po: Likewise.
12976 * po/zh_CN.po: Likewise.
12977 * po/zh_TW.po: Likewise.
12980 * iconv/iconv_prog.c (main): Fix spelling in error message.
12981 * iconv/iconvconfig.c (main): Likewise.
12982 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12983 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12984 * locale/programs/localedef.c (main): Likewise.
12985 * locale/programs/repertoire.c (repertoire_read): Likewise.
12986 * timezone/zdump.c (main): Likewise.
12987 * nscd/connections.c (handle_request): Fix spelling in log message.
12988 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12990 2006-09-20 Ulrich Drepper <drepper@redhat.com>
12992 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12995 2006-09-20 Andreas Jaeger <aj@suse.de>
12997 * math/libm-test.inc (lrint_test_upward): Fix typo.
12999 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
13002 * math/libm-test.inc (lrint_test_tonearest): New function.
13003 (lrint_test_towardzero): New function.
13004 (lrint_test_downward): New function.
13005 (lrint_test_upward): New function.
13006 (main): Run these new tests.
13007 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13008 of values near to 0.
13009 (two52): Use double not long double.
13010 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13011 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13012 (two23): Use float not double.
13013 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13014 (two23): Use float not double.
13015 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13016 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13017 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13018 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13020 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
13022 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13023 Cast sp to unsigned long to avoid compiler warning.
13024 Use __makecontext_ret function instead of a trampoline on the stack.
13025 (__makecontext_ret): New function.
13026 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13028 2006-09-19 Jakub Jelinek <jakub@redhat.com>
13030 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13031 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13034 2006-09-19 Ulrich Drepper <drepper@redhat.com>
13036 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13037 sure no reference to the unloaded map's search list remains in the
13038 dependency's scope.
13040 2006-09-16 Jakub Jelinek <jakub@redhat.com>
13042 * elf/Makefile: Add rules to build and run unload7 test.
13043 * elf/unload7.c: New test.
13044 * elf/unload7mod1.c: New file.
13045 * elf/unload7mod2.c: New file.
13047 2006-09-18 Jakub Jelinek <jakub@redhat.com>
13049 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13050 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13051 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13052 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13053 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13054 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13055 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13056 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13057 PTRACE_GETEVENTMSG): Likewise.
13058 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13061 2006-09-17 Mike Frysinger <vapier@gentoo.org>
13063 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13064 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13065 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13066 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13068 2006-09-16 Jakub Jelinek <jakub@redhat.com>
13070 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13071 write '\0' to the fd.
13072 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13073 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13074 Change regs to unsigned long pointer from unsigned int, fix fscr
13077 2006-09-14 Jakub Jelinek <jakub@redhat.com>
13079 * io/Makefile (CFLAGS-fstatat.c): Set.
13080 (CFLAGS-fstatat64.c): Likewise.
13081 (CFLAGS-mknodat.c): Likewise.
13083 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13084 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13085 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13086 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13088 2006-09-14 Jakub Jelinek <jakub@redhat.com>
13089 Steven Munroe <sjmunroe@us.ibm.com>
13091 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13092 names to the beginning. Rename "cell" to "cellbe".
13093 (_dl_powerpc_platforms): New.
13094 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13095 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13096 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13097 (_DL_HWCAP_PLATFORM): Define to new mask.
13098 (_dl_platform_string, _dl_string_platform): New functions.
13099 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13100 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13102 2006-09-12 Jakub Jelinek <jakub@redhat.com>
13105 * README.libm: Fix a thinko in sqrt algorithm description.
13108 * manual/string.texi (argz_delete): Fix prototype.
13109 Patch by <alpt@freaknet.org>.
13111 2006-08-26 Joseph Myers <joseph@codesourcery.com>
13114 * io/test-lfs.c (do_prepare): Give name_len type size_t.
13115 * io/tst-fcntl.c (do_prepare): Likewise.
13116 * posix/tst-exec.c (do_prepare): Likewise.
13117 * posix/tst-preadwrite.c (do_prepare): Likewise.
13118 * posix/tst-spawn.c (do_prepare): Likewise.
13119 * posix/tst-truncate.c (do_prepare): Likewise.
13120 * rt/tst-aio.c (do_prepare): Likewise.
13121 * rt/tst-aio64.c (do_prepare): Likewise.
13122 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13125 2006-09-09 Ulrich Drepper <drepper@redhat.com>
13128 * time/mktime.c (guess_time_tm): Fix overflow detection.
13129 * time/Makefile (tests): Add bug-mktime1.
13130 * time/bug-mktime1.c: New file.
13133 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13134 (mremap): Likewise.
13136 2006-09-07 Jakub Jelinek <jakub@redhat.com>
13139 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13140 Ensure relocation doesn't clobber any bits outside of the
13141 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13142 R_SPARC_HI22 and R_SPARC_H44.
13145 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13146 (long) (MINSIZE + nb - old_size) is positive.
13148 * malloc/arena.c (grow_heap): When growing bail even if new_size
13152 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13155 2006-09-06 Jakub Jelinek <jakub@redhat.com>
13157 * posix/regex_internal.c (re_string_reconstruct): Handle
13158 offset < pstr->valid_raw_len && pstr->offsets_needed case.
13159 Ensure no bytes read before raw_mbs array. Pass a saved copy of
13160 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13161 re_string_context_at.
13162 * posix/Makefile: Add rules to build and run bug-regex26 test.
13163 * posix/bug-regex26.c: New test.
13165 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13166 rather than col_sym_free. Move seqp declaration earlier.
13168 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13170 2006-09-05 Jakub Jelinek <jakub@redhat.com>
13172 * nscd/initgrcache.c (addinitgroupsX): Move any_success
13173 decl before first goto out.
13175 2006-09-04 Jakub Jelinek <jakub@redhat.com>
13177 * Makerules (shlib.lds): If have-hash-style, put .hash section
13178 at the end of the RO segment.
13180 2006-09-04 Ulrich Drepper <drepper@redhat.com>
13182 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13183 style hash table format is used.
13185 2006-09-04 Jakub Jelinek <jakub@redhat.com>
13187 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13188 randomization rather than before.
13189 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13191 2006-08-31 Jakub Jelinek <jakub@redhat.com>
13193 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13195 * malloc/malloc.c (_int_malloc): Use full list insert and not
13196 shortcut which assumes the list is empty for large requests
13199 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13201 2006-08-30 Jakub Jelinek <jakub@redhat.com>
13203 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13204 and offout arguments to the prototype.
13205 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13206 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13207 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13208 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13209 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13210 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13211 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13212 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13214 2006-08-28 Ulrich Drepper <drepper@redhat.com>
13216 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13218 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13221 2006-08-28 Jakub Jelinek <jakub@redhat.com>
13223 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13224 only if herrno is NETDB_INTERNAL. Handle errors other than
13225 ERANGE outside of the loops, handle TRY_AGAIN.
13227 * locale/programs/ld-ctype.c (translit_flatten): Issue error
13228 if other's ctype category was missing.
13229 * locale/programs/ld-collate.c (collate_read): Return if
13230 copy_locale's collate category is missing.
13232 2006-08-27 Ulrich Drepper <drepper@redhat.com>
13235 * malloc/malloc.c (public_rEALLOc): Try harder by using other
13236 arenas if allocation failed.
13237 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13239 2006-08-26 Ulrich Drepper <drepper@redhat.com>
13241 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13243 (malloc_state): Reduce bins size by 2.
13244 (_int_malloc): Fix test for large enough buffer for early termination.
13245 When no unsorted block matches perfectly and an exiting block has
13246 to be split, use full list insert and not shortcut which assumes
13249 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13252 2006-08-24 Ulrich Drepper <drepper@redhat.com>
13254 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13257 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13258 symbol require exact match (these are PLTs).
13259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13260 (_dl_ppc64_addr_sym_match): Likewise.
13263 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13264 If symbol has a value use it.
13265 * elf/tst-dladdr1.c: New file.
13266 * elf/Makefile: Add rules to build and run tst-addr1.
13268 2006-08-24 Jakub Jelinek <jakub@redhat.com>
13270 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13271 keeps failing and heap growth or new heap creation isn't
13273 * malloc/tst-malloc.c (main): Add new tests.
13275 2006-08-24 Ulrich Drepper <drepper@redhat.com>
13278 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13279 as in the x86-64 code to use bswap.
13281 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
13284 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13286 * posix/bits/unistd.h: Likewise.
13288 2006-05-15 Mike Frysinger <vapier@gentoo.org>
13291 * string/strchr.c: Add cast to avoid warning.
13293 2006-08-21 Ulrich Drepper <drepper@redhat.com>
13295 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13296 platforms define as 512K. For 64-bit platforms as 32MB. The lower
13297 limit is needed to avoid the exploding of the address space
13298 requirement for secondary heaps.
13299 * malloc/arena.c (HEAP_MAX_SIZE): Define using
13300 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13302 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
13305 * Makerules (depfiles): Handle extra-test-objs the same as
13307 (common-mostlyclean): Likewise.
13308 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13310 * elf/Makefile (extra-objs): Likewise.
13311 * stdlib/Makefile (extra-objs): Likewise.
13313 2006-08-14 Eric Blake <ebb9@byu.net>
13316 * misc/error.h: Assume C89 or better.
13317 * misc/error.c: Likewise.
13319 2006-08-21 Ulrich Drepper <drepper@redhat.com>
13322 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13323 __ASSUME_ATFCTS is defined.
13325 2006-08-19 Ulrich Drepper <drepper@redhat.com>
13327 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13328 to sort in each call.
13330 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13331 is empty simply return and use next service.
13332 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13334 * locale/programs/charmap.c (charmap_read): Add new parameter. It
13335 tells us when not finding a charmap file is an error.
13336 * locale/programs/charmap.h: Adjust charmap_read prototype.
13337 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13338 cannot find a charmap.
13339 * locale/programs/localedef.c (main): Adjust charmap_read call.
13341 2006-08-15 Jakub Jelinek <jakub@redhat.com>
13343 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13344 sysdeps/posix/pause.c implementation instead.
13346 2006-08-09 Jakub Jelinek <jakub@redhat.com>
13348 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13351 2006-08-13 Andreas Schwab <schwab@suse.de>
13353 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13354 Don't clobber caller's LRSAVE.
13355 (_dl_prof_resolve): Likewise.
13357 2006-08-14 Ulrich Drepper <drepper@redhat.com>
13360 * libio/memstream.c (open_memstream): Allocate initial buffer with
13362 * libio/wmemstream.c (open_wmemstream): Likewise.
13363 * libio/strops.c: Pretty printing.
13364 (_IO_str_overflow): Clear uninitialized part of the new buffer.
13365 (enlarge_userbuf): New function.
13366 (_IO_str_seekoff): Call it if seek position is larger than current
13368 * libio/wstrops.c: Likewise.
13369 * libio/vasprintf.c: Add comment as to why we do not have to use
13370 calloc instead of malloc to allocate initial buffer.
13371 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13372 * libio/bug-memstream1.c: New file.
13373 * libio/bug-wmemstream1.c: New file.
13375 2006-08-13 Ulrich Drepper <drepper@redhat.com>
13377 * libio/wstrops.c: Remove dead macro definitions and comments.
13378 * libio/strops.c: Likewise.
13381 * login/utmpname.c (__utmpname): Remove unnecessary test.
13383 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
13386 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13389 2006-08-13 Ulrich Drepper <drepper@redhat.com>
13392 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13394 * sysdeps/unix/clock_settime.c: Add support for platform-specific
13395 setting of CPU clocks.
13397 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
13400 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13401 since C99 requires the result to promote to 'int' when uint_least8_t
13402 and uint_least16_t promote to 'int'.
13404 2006-08-12 Ulrich Drepper <drepper@redhat.com>
13407 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13408 lenght of one output field, correct bitmask creation.
13409 * locale/programs/ld-time.c: Add alignment.
13412 * misc/error.c: Add space between program name and message if file
13415 2006-08-03 Eric Blake <ebb9@byu.net>
13418 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13420 2006-08-09 Ulrich Drepper <drepper@redhat.com>
13422 * malloc/memusagestat.c: Silence warnings.
13424 * malloc/malloc.c: Dynamically size mmap treshold if the program
13425 frees mmaped blocks.
13426 Patch by Valerie Henson and Arjan van de Ven.
13428 2006-08-08 Jakub Jelinek <jakub@redhat.com>
13430 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13433 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13434 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13435 (DEF): Don't put the var into .gnu.linkonce.r.* section.
13436 Only provide var definitions in strtol_l (or for *ull*
13439 * stdio-common/bug16.c (tests): New array.
13440 (do_tests): Allow the first hexadecimal digit
13441 to be 1, 2, 4 or 8. Do 3 additional tests.
13443 * sysdeps/s390/fpu/libm-test-ulps: Update.
13445 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13446 fchownat syscall if available.
13447 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13448 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13449 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13451 2006-08-07 Ulrich Drepper <drepper@redhat.com>
13453 * nis/nis_xdr.c: Avoid some function calls.
13455 2006-08-07 Jakub Jelinek <jakub@redhat.com>
13456 Ulrich Drepper <drepper@redhat.com>
13458 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13459 short cut if only one name component is stripped away.
13461 2006-08-07 Ulrich Drepper <drepper@redhat.com>
13463 * nis/nis_call.c: Minor cleanups throughout.
13464 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13465 (first_shoot): Add search_parent_first parameter. Only if it is set
13466 search parent server first.
13467 If directory for table found through cold start cache is not the same
13468 as referenced in the cache, don't use it.
13469 (__nisfind_server): Take additional parameter. Pass it on to
13471 (__prepare_niscall): Adjust __nisfind_server call.
13472 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13473 * nis/nis_table.c: Adjust __nisfind_server call.
13474 * nis/nis_lookup.c: Likewise.
13475 (nis_lookup): Don't loop endlessly if name is reduced to ".".
13477 2006-08-03 Ulrich Drepper <drepper@redhat.com>
13480 * math/s_cacosh.c: Return values from positive branch.
13481 * math/s_cacoshf.c: Likewise.
13482 * math/s_cacoshl.c: Likewise.
13485 * sysvipc/sys/msg.h: Change return value to ssize_t.
13486 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13487 * sysvipc/msgrcv.c: Likewise.
13488 * include/sys/msg.h: Likewise.
13490 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13491 test introduced in patch for bz #661.
13492 (getgrouplist): Simplify code a bit. Don't allocate one additional
13493 element for NEWGROUPS.
13496 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13497 'f', use '1' as leading digit not '\1'.
13498 * stdio-common/Makefile (tests): Add bug16.
13499 * stdio-common/bug16.c: New file.
13502 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13503 and don't try to open it. The patch introducing the macro
13504 contained a bug and used the same file name as the new file
13505 instead of using /var/adm/hostid. Nobody complaint so I'm taking
13506 this out completely.
13509 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13510 Patch by Jerry James <Jerry.James@usu.edu>.
13512 * rt/Makefile (tests): Add tst-clock2.
13513 * rt/tst-clock2.c: New file.
13516 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13517 function and its parameters and pass it to new thread.
13518 (__gai_notify): Add support for alternative waiting for completion.
13519 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13520 waiting for completion.
13521 * resolv/getaddrinfo_a.c: Likewise.
13522 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13523 waiting for completion is used.
13524 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13525 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13526 * resolv/gai_error.c: Likewise.
13527 * resolv/gai_sigqueue.c: Likewise.
13529 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
13531 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13532 errno to EBADF and return MACH_PORT_NULL.
13534 2006-06-23 Joseph Myers <joseph@codesourcery.com>
13537 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13539 2006-08-02 Ulrich Drepper <drepper@redhat.com>
13541 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13542 walk them instead of the symbol table.
13544 2006-08-01 Ulrich Drepper <drepper@redhat.com>
13547 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13548 status of NSS calls, not the number of returned entries.
13550 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13551 request_key, keyctl.
13553 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13555 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13557 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
13559 * elf/tst-auditmod1.c: Fix typo in #error.
13561 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13563 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13565 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13567 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
13569 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13570 that the directory is empty even on non-POSIX filesystems.
13572 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13574 * elf/dl-open.c (dl_open_worker): Add branch prediction.
13576 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13577 the backend NSS module. If backend setgrent call failed, don't have
13578 internal_setgrent fail. Just remember this until it is needed.
13579 * nis/nss_compat/compat-pwd.c: Likewise.
13580 * nis/nss_compat/compat-spwd.c: Likewise.
13582 2006-07-30 Roland McGrath <roland@redhat.com>
13584 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13585 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13586 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13587 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13589 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13590 (nanosleep_not_cancel): New macro.
13591 (sigsuspend_not_cancel): new macro.
13592 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13593 (do_sigsuspend): Define as inline.
13594 (__sigsuspend): Always use do_sigsuspend.
13595 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13596 * include/signal.h: Declare __sigsuspend_nocancel.
13597 * sysdeps/posix/pause.c
13598 [! NO_CANCELLATION] (__pause_nocancel): New function.
13600 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13601 * include/time.h (__nanosleep_nocancel): Likewise.
13603 2006-07-30 Ulrich Drepper <drepper@redhat.com>
13605 * locale/programs/localedef.c (add_to_readlist): Rename local
13606 variables to avoid confusion.
13608 * locale/programs/charmap.c (charmap_read): Emit error message if
13609 charmap couldn't be found or read.
13611 2006-07-28 Ulrich Drepper <drepper@redhat.com>
13613 * sysdeps/unix/sysv/linux/kernel-features.h: Define
13614 __ASSUME_FUTEX_LOCK_PI.
13615 * include/time.h: Declare __nanosleep_nocancel.
13616 * include/unistd.h: Declare __pause_nocancel.
13618 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13619 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
13620 get the __stack_chk_fail_local definition when it's needed.
13622 2006-07-26 Ulrich Drepper <drepper@redhat.com>
13624 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13625 * dlfcn/bug-atexit3.c: New file.
13626 * dlfcn/bug-atexit3-lib.cc: New file.
13628 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13629 used when the namespace is not the base namespace.
13631 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
13633 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13634 (__new_exitfn): Bump it in every successful call.
13635 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13636 more exit handlers, call them right away.
13637 * stdlib/exit.h: Declare __new_exitfn_called.
13639 2006-07-25 Ulrich Drepper <drepper@redhat.com>
13641 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13642 calling registered handler.
13644 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13645 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13646 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13647 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13648 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13649 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13650 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13651 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13653 2006-07-10 Ulrich Drepper <drepper@redhat.com>
13655 * elf/dl-lookup.c (dl_new_hash): New functions.
13656 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13657 value here. Compute new-style hash value. Pass new hash value
13658 and reference to variable with the old value to do_lookup_x.
13659 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13660 old-style hash table.
13661 (_dl_debug_bindings): Pass new hash value and reference to variable
13662 with the old value to do_lookup_x.
13663 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13664 new-style hash value and change old-style hash value parameter to
13665 be a reference. Reoganize functions to determine whether
13666 new-style hash table is available. Only fall back on old-style
13667 table. If old-style hash value is needed, compute it here.
13668 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13670 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13671 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
13672 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13673 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13674 * Makeconfig: If linker supports --hash-style option add it to all
13675 linker command lines to build DSOs.
13676 * config.make.in: Define have-hash-style.
13677 * configure.in: Test whether linker supports --hash-style option.
13679 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13680 * sysdeps/generic/ldsodefs.h: Adjust prototype.
13682 2006-06-27 Ulrich Drepper <drepper@redhat.com>
13684 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13687 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13688 RPATH of main map twice.
13690 2006-06-22 Ulrich Drepper <drepper@redhat.com>
13692 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13693 look further, return original strings.
13694 (_nl_find_msg): Do not return found translation if the conversion
13695 failed. Either signal the string is unusable or that something went
13696 wrong and the original should be used.
13698 2006-06-21 Ulrich Drepper <drepper@redhat.com>
13700 * string/_strerror.c (__strerror_r): Add __builtin_expect.
13702 2006-06-14 Jakub Jelinek <jakub@redhat.com>
13705 * misc/insremque.c (insque): Handle prev == NULL.
13706 * misc/Makefile (tests): Add tst-insremque.
13707 * misc/tst-insremque.c: New test.
13709 2006-06-17 Ulrich Drepper <drepper@redhat.com>
13712 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13713 conflict with DL_DST_REQUIRED.
13715 2006-06-16 Ulrich Drepper <drepper@redhat.com>
13717 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13718 match what Solaris does.
13720 2006-06-04 Ulrich Drepper <drepper@redhat.com>
13722 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13723 local_setegid instead of seteuid and setegid.
13724 * sysdeps/generic/local-setxid.h: New file.
13725 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13727 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13729 * string/Makefile (tests): Add bug-envz1.
13730 * string/bug-envz1.c: New file.
13732 2006-06-02 Jakub Jelinek <jakub@redhat.com>
13734 * posix/regex_internal.c (re_string_skip_chars): If no character has
13735 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
13736 to the byte which couldn't be converted.
13737 (re_string_reconstruct): Don't clear valid_raw_len before calling
13738 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
13739 tip_context using re_string_context_at.
13740 * posix/Makefile: Add rules to build and run bug-regex25 test.
13741 * posix/bug-regex25.c: New test.
13743 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
13746 * string/envz.c (envz_strip): Correct erroneously reversed src
13747 and dest parameters to memmove() invocation.
13749 2006-05-30 Jakub Jelinek <jakub@redhat.com>
13751 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13752 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13753 to make sure the database has been already invalidated.
13754 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
13755 after the cache has been invalidated. Use pthread_mutex_lock rather
13756 than pthread_mutex_trylock if fd != -1.
13757 * nscd/connections.c (invalidate_cache): Add fd argument, write
13758 response to fd if not calling prune_cache, pass fd to prune_cache.
13759 (handle_request): Adjust invalidate_cache caller.
13760 (nscd_run): Pass -1 as fd to prune_cache.
13762 2006-05-30 Ulrich Drepper <drepper@redhat.com>
13764 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13767 2006-05-29 Ulrich Drepper <drepper@redhat.com>
13769 * nscd/nscd.h (struct database_dyn): Add prunelock field.
13770 * nscd/cache.c (prune_cache): Take prunelock before starting the
13771 work. Just return in case it is already taken.
13772 * nscd/connections.c (dbs): Initialize .prunelock.
13774 2006-05-25 Ulrich Drepper <drepper@redhat.com>
13776 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13777 copying. No need to allocate new array for group members. Just
13778 move the pointers and update the size.
13780 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13781 Avoid memory leak in case realloc fails. Simplification for
13782 better code generation.
13784 Avoid deprecation warning because of libc_hidden_proto for
13785 inet6_option_alloc.
13786 * inet/inet6_option.c (option_alloc): Renamed from
13787 inet6_option_alloc. Made static.
13788 (inet6_option_alloc): Now a simple wrapper around option_alloc.
13789 (inet6_option_append): Call option_alloc.
13790 * include/netinet/in.h: Remove libc_hidden_proto for
13791 inet6_option_alloc.
13793 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13794 for cleanup when cb!=NULL [Coverity CID 233].
13796 2006-05-24 Ulrich Drepper <drepper@redhat.com>
13799 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13800 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13801 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13802 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13803 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13804 and inet6_rth_getaddr.
13805 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13807 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13808 Mark inet6_option_* interfaces as deprecated.
13809 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13810 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13811 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13812 inet6_rth_segments, and inet6_rth_getaddr.
13813 * inet/inet6_opt.c: New file.
13814 * inet/inet6_rth.c: New file.
13816 * inet/netinet/icmp6.h: Pretty printing.
13819 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13821 2006-05-23 Ulrich Drepper <drepper@redhat.com>
13823 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13824 doing it all here. When server does not know the answer do not
13825 fail immediate, try parent first.
13827 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13830 2006-05-20 Ulrich Drepper <drepper@redhat.com>
13832 * nis/nis_call.c (__prepare_niscall): New function. Split out
13834 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13836 (__follow_path): New function. Split out from nis_list.
13837 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13839 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13841 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13843 * nis/Versions: Export __prepare_niscall, __create_ib_request,
13844 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13845 from libnsl for version GLIBC_PRIVATE.
13846 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13847 Remove entry parameter from _nss_nisplus_parse_pwent and
13848 _nss_nisplus_parse_grent.
13849 * nis/nss_nisplus/nisplus-parser.c: Likewise.
13850 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13851 again. Rewrite getpwent handling to not use nis_first_entry and
13852 nis_next_entry. Roll out own niscall handling.
13853 * nis/nss_nisplus/nisplus-grp.c: Likewise.
13855 * sunrpc/xdr_rec.c: Fix typo in comment.
13857 2006-05-19 Ulrich Drepper <drepper@redhat.com>
13859 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13862 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13863 to allocate memory for my_pollfd. Better initialization of
13864 cb_is_running. Use TEMP_FAILURE_RETRY.
13866 * malloc/memusage.sh (memusageso): Add quotes.
13867 (memusagestat): Likewise.
13868 * debug/xtrace.sh (pcprofileso): Likewise.
13869 (pcprofiledump): Likewise.
13870 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13872 * malloc/Makefile ($(objpfx)memusage): Likewise.
13874 * nis/nis_callback.c (__nis_create_callback): Calls to
13875 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
13876 asprintf call fails.
13878 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13879 no uninitialized memory is passed to sendto.
13881 2006-05-18 Ulrich Drepper <drepper@redhat.com>
13883 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13884 of snprintf+strdup. Handle OOM.
13885 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13886 cb->serv together. Remove now obsolete free calls.
13887 (__nis_destroy_callback): Remove now obsolete free call.
13889 2006-05-18 David Woodhouse <dwmw2@redhat.com>
13891 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13892 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13893 and ULA respectively). Set precedence for IPv4 address to 10 as
13894 defined in RFC3484 for preferring IPv6.
13895 * posix/gai.conf: Update to match the new default tables.
13897 2006-05-18 Jakub Jelinek <jakub@redhat.com>
13899 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13900 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13901 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13902 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13904 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13906 (init_nss_interface): Remove initialization of these variables.
13908 2006-05-18 Ulrich Drepper <drepper@redhat.com>
13910 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13911 nis_free_directory forward to avoid duplication.
13913 2006-05-17 Ulrich Drepper <drepper@redhat.com>
13915 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13916 rec_dirsearch returning NULL.
13917 (first_shoot): Handle __nis_finddirectory returning NULL.
13918 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13920 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13921 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13923 2006-05-17 Jakub Jelinek <jakub@redhat.com>
13925 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13928 2006-05-15 Ulrich Drepper <drepper@redhat.com>
13930 * include/rpc/pmap_prot.h: Mark all functions as hidden.
13932 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13933 * nscd/nscd_getgr_r.c: Likewise.
13935 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13937 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13938 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13940 * stdlib/longlong.h (__clz_tab): Mark as hidden.
13942 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13944 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13946 * include/rpc/auth.h: Mark xdr_des_block_internal and
13947 xdr_opaque_auth_internal as hidden.
13949 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13952 * include/rpc/xdr.h: Mark all _internal functions as hidden.
13954 * misc/getusershell.c (okshells): Don't use static initializers,
13957 * stdlib/fmtmsg.c (keywords): Change type of len element to
13958 uint32_t to not waste space on 64bit machines.
13960 * locale/setlocale.c: Change _nl_category_names into a string.
13961 Add new _nl_category_name_idxs. Change all users.
13962 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13963 Declare _nl_category_name_idxs.
13964 * locale/findlocale.c: Adjust for _nl_category_names change.
13965 * locale/loadlocale.c: Likewise.
13966 * locale/newlocale.c: Likewise.
13967 * intl/dcigettext.c: Likewise.
13969 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13970 (add_alias2): ...here. New function.
13971 (__gconv_read_conf): Simplify builtin alias handling.
13972 (builtin_aliases): Convert to string to avoid relocations.
13973 * iconv/gconv_builtin.h: Add comment about correct formatting.
13975 2006-05-15 Jakub Jelinek <jakub@redhat.com>
13977 * resolv/res_debug.c (loc_ntoa): Make error const.
13979 2006-05-14 Andreas Schwab <schwab@suse.de>
13981 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13983 2006-05-12 Jakub Jelinek <jakub@redhat.com>
13985 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13986 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13987 sizeof (cpu_set_t).
13989 2006-05-11 Ulrich Drepper <drepper@redhat.com>
13991 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13993 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13995 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13996 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13998 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13999 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14001 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14002 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14005 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14006 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14009 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14010 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14012 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14013 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14015 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14016 * include/rpcsvc/nis_callback.h: New file.
14018 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14019 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14021 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14022 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14024 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14025 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14027 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14028 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14030 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14031 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14034 * nis/nis_xdr.h: Mark all functions as hidden. Remove
14035 __BEGIN_DECLS and __END_DECLS, the header is not installed.
14037 * nis/nis_error.c: Remove table of strings. Use position
14038 independent mechanism.
14039 * nis/nis_error.h: New file.
14041 2006-05-11 Jakub Jelinek <jakub@redhat.com>
14043 * locale/programs/ld-time.c (time_finish): If wide era name or
14044 format aren't provided, set both wname and wformat to L"".
14046 2006-05-10 Ulrich Drepper <drepper@redhat.com>
14048 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14049 results if the call was succesful.
14051 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14053 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14056 2006-05-10 Jakub Jelinek <jakub@redhat.com>
14058 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14060 2006-05-10 Ulrich Drepper <drepper@redhat.com>
14062 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14063 caller makes sure this is not the case.
14064 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
14066 2006-05-09 Ulrich Drepper <drepper@redhat.com>
14068 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14071 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14072 [Coverity CID 229, 230]
14074 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14076 (hol_help): Likewise. [Coverity CID 226, 227]
14078 * string/argz-replace.c (__argz_replace): Unconditionally call
14079 free on SRC. [Coverity CID 225]
14081 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14082 the return value of __nis_default_owner and __nis_default_group,
14083 it has been especially allocated. [Coverity CID 224]
14085 * nis/nis_defaults.c (searchXYX): New functions. Used by both
14086 searchgroup and searchowner. Significantly simplified.
14087 (__nis_default_owner): Remove duplication. Do not locally copy the
14088 string before duplicating it.
14089 (__nis_default_group): Likewise.
14091 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14092 we must clear the variable before calling __nisfind_server.
14094 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14095 nis_getnames. [Coverity CID 223]
14097 * locale/programs/locfile.c (locfile_read): Use alloca instead of
14098 xmalloc to allocate local repertoire name. [Coverity CID 222]
14100 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14101 allocate memory for the input to add_bytes. [Coverity CID 221]
14103 * posix/wordexp.c (w_addword): Free word if realloc fails and it
14104 was allocated here. [Coverity CID 219, 220]
14106 * posix/getconf.c (print_all): Free confstr data after printing.
14109 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14110 list allocation fails. [Coverity CID 215]
14112 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14115 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14116 string is NULL. [Coverity CID 212]
14117 * argp/Makefile: Add rules to build and run bug-argp1.
14118 * argp/bug-argp1.c: New file.
14120 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14122 * stdlib/canonicalize.c (__realpath): Likewise.
14124 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14125 pointer. [Coverity CID 206]
14127 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14128 in statically linked code.
14129 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14130 statically built code, be prepared to have no link map.
14133 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14134 dgettext calls. [Coverity CID 204]
14136 * argp/argp-help.c (struct uparams): Remove valid member. Change
14138 (uparam_names): Reduce size. Avoid relative relocations.
14139 Moved to read-only segment.
14140 (fill_in_uparams): Update for new layout.
14142 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14143 assumed to always be != NULL. [Coverity CID 202]
14145 * argp/argp-help.c (hol_entry_help): Remove some dead code
14146 [Coverity CID 200].
14148 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14149 away a few more unconditional yperr2nss calls.
14150 (_nss_nis_getservbyname_r): Likewise.
14152 2006-05-06 Ulrich Drepper <drepper@redhat.com>
14154 * sysdeps/generic/ldsodefs.h: Remove support for non-core
14157 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14158 that unused memory passed to sendto is nevertheless initialized.
14161 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14162 possibly unaligned memory accesses.
14164 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14165 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14166 and __putlong respectively. Correct buffer overflow check for
14169 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14171 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14172 (send_dg): Rewrite error handling to be more compact and avoid
14173 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
14175 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14177 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14178 instead of ns_get16.
14179 (res_queriesmatch): Likewise. Minor optimization.
14182 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14183 __libc_res_nsend might reallocate the buffer for the answer. In
14184 this case we have to reload the HP pointer.
14186 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14188 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
14189 some branch prediction hints.
14191 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14192 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14193 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14194 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14195 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14196 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14197 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14198 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14200 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
14202 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14203 by a GOT relocation to make Scrt1.o position independent.
14204 * sysdeps/s390/s390-64/elf/start.S: Likewise.
14206 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14207 six system call parameters.
14208 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14210 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14212 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14215 * sunrpc/svc_udp.c (BZERO): Remove definition.
14217 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14219 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
14220 (des_SPtrans): Use uint32_t type.
14221 (des_skb): Likewise.
14223 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14225 2006-05-05 Jakub Jelinek <jakub@redhat.com>
14228 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14231 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14233 * locale/programs/ld-address.c (address_finish): Fix one more
14234 place where the iso639 array might be accessed beyond the limits.
14236 2006-05-04 Ulrich Drepper <drepper@redhat.com>
14238 * nis/nis_table.c (nis_list): Avoid clearing res twice before
14239 filling it for the first time.
14241 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14242 Adjust all callers.
14243 Free res object content before returning.
14245 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14247 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14250 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14251 cleanup for initial thread, just the free call on TVP.
14253 * nscd/gai.c (__getline): Define.
14256 See ChangeLog.16 for earlier changes.