1 2010-01-22 Jim Meyering <jim@meyering.net>
4 * posix/regexec.c (re_search_2_stub): Check for overflow
5 when adding the sizes of the two strings.
8 * posix/regexec.c (re_search_internal): Avoid overflow
9 in computing re_malloc buffer size.
12 * posix/regexec.c (prune_impossible_nodes): Avoid overflow
13 in computing re_malloc buffer size.
16 * posix/regexec.c (build_trtable): Avoid arithmetic overflow
20 * posix/regexec.c (re_search_2_stub): Use simpler method than
21 boolean for freeing internal storage.
23 2010-01-22 Ulrich Drepper <drepper@redhat.com>
25 * posix/regex_internal.c (re_string_skip_chars): Simplify test for
28 2010-01-22 Jim Meyering <jim@meyering.net>
31 * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
32 fits in wchar_t. Problem reported by Eric Blake.
35 * posix/regex_internal.c (re_string_reconstruct): Remove declaration
36 and stores into set-but-not-used local, "q".
39 * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
40 detection test. Patch by Paul Eggert.
43 * posix/regex_internal.c (re_string_realloc_buffers):
44 Detect and handle internal overflow. Patch by Paul Eggert
46 2010-01-20 Andreas Schwab <schwab@redhat.com>
48 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
49 (CHECK_SP): Fix check for alternate stack.
50 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
53 2010-01-19 H.J. Lu <hongjiu.lu@intel.com>
55 * sysdeps/i386/i686/multiarch/memmove.S: Also check
56 bit_Fast_Rep_String when SHARED isn't defined.
58 2010-01-19 Ulrich Drepper <drepper@redhat.com>
61 * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
63 2010-01-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
65 * sysdeps/mach/hurd/bits/libc-lock.h
66 (__rtld_lock_recursive_t): New type.
67 (__rtld_lock_initialize): New macro.
69 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
71 * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
72 * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
73 * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
74 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
76 2010-01-18 Andreas Schwab <schwab@redhat.com>
78 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
79 definitions of O_DSYNC and O_RSYNC.
81 * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
84 * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
87 2010-01-16 Jakub Jelinek <jakub@redhat.com>
89 * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
91 * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
92 * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
94 * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
96 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
97 math_opt_barrier and math_force_eval macros.
99 2010-01-15 Ulrich Drepper <drepper@redhat.com>
101 * posix/regcomp.c: Fix a few more cases of ignored return values.
102 * posix/regex_internal.c: Likewise.
103 * posix/regexec.c: Likewise.
105 * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
106 used without _XOPEN_SOURCE. Don't base any decisions on this macro
107 if _XOPEN_SOURCE is not defined as well.
109 2010-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
111 * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
112 high gprs kernel facility.
113 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
114 Added high gprs check for DSOs.
115 * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
118 2010-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
120 * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
122 * elf/dl-open.c (_dl_sysdep_start): Likewise..
123 * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
124 * elf/rtld.c (dl_main): Added new parameter auxv. Adjust the
125 AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
128 2010-01-14 Ulrich Drepper <drepper@redhat.com>
131 * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
133 Patch by Philip Prindeville <philipp@redfish-solutions.com>.
136 * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
140 * posix/regcomp.c (alc_eclosure_iter): Do not ignore
141 re_node_set_insert failure; return REG_ESPACE.
142 Patch by Paul Eggert.
144 * bits/confname.h: Make pre-C99-safe.
146 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
148 * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
149 $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
150 files are found by GCC.
152 2010-01-14 Ulrich Drepper <drepper@redhat.com>
154 * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
157 * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
160 * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
162 * Versions.def: Add GLIBC_2.12 for libpthread.
165 * malloc/malloc.c (malloc_info): Initialize malloc if not already
166 done. Handle empty bin lists.
168 * posix/unistd.h: Change getpagesize and getdtablesize declaration
169 visibility some more.
171 * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
173 * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
176 * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
179 2010-01-13 Ulrich Drepper <drepper@redhat.com>
181 * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
183 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
185 * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
187 2010-01-13 Ulrich Drepper <drepper@redhat.com>
189 * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
191 2010-01-12 Ulrich Drepper <drepper@redhat.com>
193 * conform/data/complex.h-data: Test for POSIX2008.
195 * conform/data/ctype.h-data: Fix POSIX testing.
197 * conform/data/dirent.h-data: ino_t only needed for XSI.
199 * grp/grp.h: Declare getgrent and endgrent for XPG7.
201 * conform/data/inttypes.h-data: Use same types as the headers.
203 * resolv/netdb.h: Don't define old resolver macros for XPG7.
205 * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
207 * conform/conformtest.pl: Implement tag for allow-header.
208 Fix newline handling in allow-header implementation.
210 * conform/data/time.h-data: Use allow-header instead of duplicating
213 * conform/data/time.h-data: Allow sigevent tag.
215 * posix/sched.h: Define time_t and pid_t for XPG7.
217 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
219 * sysdeps/i386/i686/bcopy.S: New file.
221 * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
223 * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
225 * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
226 * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
227 * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
229 * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
231 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
232 bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
233 memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
234 bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
235 * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
236 * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
237 * sysdeps/i386/i686/multiarch/bcopy.S: New file.
238 * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
239 * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
240 * sysdeps/i386/i686/multiarch/bzero.S: New file.
241 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
242 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
243 * sysdeps/i386/i686/multiarch/memcpy.S: New file.
244 * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
245 * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
246 * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
247 * sysdeps/i386/i686/multiarch/memmove.S: New file.
248 * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
249 * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
250 * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
251 * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
252 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
253 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
254 * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
255 * sysdeps/i386/i686/multiarch/memset.S: New file.
256 * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
258 * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
261 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
262 FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
263 * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
265 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
267 (__x86_64_data_cache_size): New.
268 (init_cacheinfo): Set __x86_64_data_cache_size.
270 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
271 on bit_Fast_Rep_String for Intel Core i7.
273 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
274 (index_Fast_Rep_String): Likewise.
275 (FEATURE_INDEX_1): Likewise.
276 (FEATURE_INDEX_MAX): Likewise.
277 (cpu_features): Add feature.
279 2010-01-12 Ulrich Drepper <drepper@redhat.com>
281 * conform/data/sys/select.h-data: Fix up for XPG7.
283 2010-01-12 Jakub Jelinek <jakub@redhat.com>
285 * posix/sys/wait.h: Don't define W* macros etc. if
286 stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
288 2010-01-11 Ulrich Drepper <drepper@redhat.com>
290 * io/sys/stat.h: Declare fchmod for XPG7.
291 * conform/data/sys/stat.h-data: Fix up for XPG7.
293 * termios/termios.h: Define pid_t for XPG7.
295 * conform/data/math.h-data: Fix up for XPG6 and XPG7.
296 * conform/data/tgmath.h-data: Likewise.
298 * conform/data/time.h-data: Fix POSIX tests.
300 * conform/data/wchar.h-data: Fix up XPG7 tests.
302 * include/features.h: Fix __USE_ISOC95 handling.
304 * conform/data/wordexp.h-data: Fix typo in last change.
306 * conform/data/unistd.h-data: Fix up older POSIX tests.
308 * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
309 * posix/unistd.h: Likewise.
311 * posix/unistd.h: Include environments.h also for XPG6 and up.
312 Define intptr_t for XPG6 and up.
314 * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
316 * conform/data/sys/types.h-data: Fix up for XPG7.
318 * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
319 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
320 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
321 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
322 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
323 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
324 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
325 * sysdeps/unix/sysv/bits/stat.h: Likewise.
326 * sysdeps/mach/hurd/bits/stat.h: Likewise.
328 * bits/confname.h: Fix typo in last change.
330 * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
332 2010-01-10 Ulrich Drepper <drepper@redhat.com>
334 * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
335 and SA_RESETHAND now available in Base.
336 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
337 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
338 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
339 * conform/data/signal.h-data: Update for XPG7.
341 * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
343 * string/strings.h: Don't declare obsolete functions for XPG7.
344 Declare ffs only for XSI.
345 * conform/data/strings.h-data: Update for XPG7.
347 2010-01-10 Jakub Jelinek <jakub@redhat.com>
350 * libio/stdio.h: Define va_list, off_t, and ssize_t.
352 * posix/glob.h: Define size_t.
354 * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
356 * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
358 2010-01-10 Ulrich Drepper <drepper@redhat.com>
360 * conform/conformtest.pl: For XPG7 testing the headers are supposed to
363 * conform/data/stdio.h-data: Expect off_t and ssize_t.
365 2010-01-09 Ulrich Drepper <drepper@redhat.com>
367 * libio/stdio.h: Define va_list also for XPG7.
369 * conform/conformtest.pl: Update for XPG7 and some bug fixes.
370 * conform/data/ctype.h-data: Likewise.
371 * conform/data/dirent.h-data: Likewise.
372 * conform/data/errno.h-data: Likewise.
373 * conform/data/fcntl.h-data: Likewise.
374 * conform/data/fmtmsg.h-data: Likewise.
375 * conform/data/fnmatch.h-data: Likewise.
376 * conform/data/ftw.h-data: Likewise.
377 * conform/data/glob.h-data: Likewise.
378 * conform/data/grp.h-data: Likewise.
379 * conform/data/iconv.h-data: Likewise.
380 * conform/data/langinfo.h-data: Likewise.
381 * conform/data/libgen.h-data: Likewise.
382 * conform/data/limits.h-data: Likewise.
383 * conform/data/locale.h-data: Likewise.
384 * conform/data/math.h-data: Likewise.
385 * conform/data/monetary.h-data: Likewise.
386 * conform/data/mqueue.h-data: Likewise.
387 * conform/data/ndbm.h-data: Likewise.
388 * conform/data/netdb.h-data: Likewise.
389 * conform/data/pthread.h-data: Likewise.
390 * conform/data/pwd.h-data: Likewise.
391 * conform/data/regex.h-data: Likewise.
392 * conform/data/sched.h-data: Likewise.
393 * conform/data/search.h-data: Likewise.
394 * conform/data/semaphore.h-data: Likewise.
395 * conform/data/setjmp.h-data: Likewise.
396 * conform/data/signal.h-data: Likewise.
397 * conform/data/spawn.h-data: Likewise.
398 * conform/data/stdio.h-data: Likewise.
399 * conform/data/stdlib.h-data: Likewise.
400 * conform/data/string.h-data: Likewise.
401 * conform/data/strings.h-data: Likewise.
402 * conform/data/sys/ipc.h-data: Likewise.
403 * conform/data/sys/msg.h-data: Likewise.
404 * conform/data/sys/resource.h-data: Likewise.
405 * conform/data/sys/sem.h-data: Likewise.
406 * conform/data/sys/shm.h-data: Likewise.
407 * conform/data/sys/socket.h-data: Likewise.
408 * conform/data/sys/stat.h-data: Likewise.
409 * conform/data/sys/time.h-data: Likewise.
410 * conform/data/sys/types.h-data: Likewise.
411 * conform/data/sys/uio.h-data: Likewise.
412 * conform/data/sys/wait.h-data: Likewise.
413 * conform/data/syslog.h-data: Likewise.
414 * conform/data/tar.h-data: Likewise.
415 * conform/data/termios.h-data: Likewise.
416 * conform/data/time.h-data: Likewise.
417 * conform/data/ulimit.h-data: Likewise.
418 * conform/data/unistd.h-data: Likewise.
419 * conform/data/utmpx.h-data: Likewise.
420 * conform/data/wchar.h-data: Likewise.
421 * conform/data/wctype.h-data: Likewise.
422 * conform/data/wordexp.h-data: Likewise.
424 * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
425 * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
426 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
427 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
428 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
429 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
430 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
431 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
432 * sysdeps/unix/sysv/bits/stat.h: Likewise.
433 * sysdeps/mach/hurd/bits/stat.h: Likewise.
435 * stdlib/stdlib.h: Define wait-related bits for XPG7.
436 Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and up.
437 Declare mkstemp and getsubopt for XPG7.
438 Declare posix_openpt for XPG6 XSI.
440 * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
441 and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
443 * string/string.h: Declare strdup for XPG7.
445 2010-01-08 Ulrich Drepper <drepper@redhat.com>
447 * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
448 * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
450 * dirent/dirent.h: Really fix feature selection.
452 * locale/localeinfo.h: Rename struct locale_data to __locale_data.
454 * locale/C-address.c: Fix all users.
455 * locale/C-collate.c: Likewise.
456 * locale/C-ctype.c: Likewise.
457 * locale/C-identification.c: Likewise.
458 * locale/C-measurement.c: Likewise.
459 * locale/C-messages.c: Likewise.
460 * locale/C-monetary.c: Likewise.
461 * locale/C-name.c: Likewise.
462 * locale/C-numeric.c: Likewise.
463 * locale/C-paper.c: Likewise.
464 * locale/C-telephone.c: Likewise.
465 * locale/C-time.c: Likewise.
466 * locale/findlocale.c: Likewise.
467 * locale/global-locale.c: Likewise.
468 * locale/loadarchive.c: Likewise.
469 * locale/loadlocale.c: Likewise.
470 * locale/nl_langinfo_l.c: Likewise.
471 * locale/setlocale.c: Likewise.
472 * locale/xlocale.c: Likewise.
473 * locale/xlocale.h: Likewise.
474 * stdio-common/vfscanf.c: Likewise.
475 * stdlib/strfmon_l.c: Likewise.
476 * stdlib/strtod_l.c: Likewise.
477 * stdlib/strtol_l.c: Likewise.
478 * string/strcoll_l.c: Likewise.
479 * string/strxfrm_l.c: Likewise.
480 * time/alt_digit.c: Likewise.
481 * time/asctime.c: Likewise.
482 * time/era.c: Likewise.
483 * time/lc-time-cleanup.c: Likewise.
484 * time/strftime_l.c: Likewise.
485 * time/strptime_l.c: Likewise.
486 * wcsmbs/wcsmbsload.c: Likewise.
487 * wcsmbs/wcsmbsload.h: Likewise.
489 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
490 O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
492 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
493 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
494 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
495 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
496 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
497 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
499 2010-01-07 Roland McGrath <roland@redhat.com>
501 * elf/elf.h (PN_XNUM): New macro.
503 * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
506 2010-01-06 Ulrich Drepper <drepper@redhat.com>
508 * dirent/dirent.h: Fix typo in feature selection macro use.
510 2009-12-15 Maciej W. Rozycki <macro@codesourcery.com>
513 * stdlib/tst-makecontext3.c: New file.
514 * stdlib/Makefile (tests): Add new test.
516 * stdlib/tst-setcontext.c (check_called): Fix a typo.
518 2009-12-17 H.J. Lu <hongjiu.lu@intel.com>
520 * configure.in: Enable multi-arch by default if the assembler
521 supports gnu_indirect_function symbol type and the architecture
524 2009-12-23 Ulrich Drepper <drepper@redhat.com>
526 * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
529 2009-12-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
531 * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
532 MACH_PORT_NULL when id != cttyid.
534 2009-12-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
536 * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
537 __mach_port_deallocate on rootdevid.
539 2009-12-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
541 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
542 R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
543 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
544 unneeded R_390_PLT16DBL and R_390_PLT32DBL.
546 2009-12-21 Ulrich Drepper <drepper@redhat.com>
549 * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
550 Patch by Eric Blake <ebb9@byu.net>.
552 2009-12-15 Ulrich Drepper <drepper@redhat.com>
555 * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
556 POLLWRBAND also for POSIX 2008.
557 * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
558 * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
560 * include/link.h (struct link_map): Move l_used into its own word.
561 * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
563 * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
566 2009-12-13 H.J. Lu <hongjiu.lu@intel.com>
568 * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
569 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
570 check processor feature.
571 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
572 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
573 * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
574 (index_SSE2): Likewise.
576 2009-12-09 H.J. Lu <hongjiu.lu@intel.com>
578 * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
579 if __ASSEMBLER__ is defined.
580 (bit_SSSE3): New. Defined for __ASSEMBLER__.
581 (bit_SSE4_2): Likewise.
582 (index_SSSE3): Likewise.
583 (index_SSE4_2): Likewise.
584 * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
585 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
586 check processor feature.
587 * sysdeps/x86_64/multiarch/strchr.S: Likewise.
588 * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
589 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
590 * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
591 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
592 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
593 * sysdeps/x86_64/multiarch/strspn.S: Likewise.
595 2009-12-08 Kaz Kojima <kkojima@rr.iij4u.or.jp>
597 * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
599 2009-12-01 Mike Frysinger <vapier@gentoo.org>
601 * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
603 2009-12-11 Ulrich Drepper <drepper@redhat.com>
605 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
606 O_DSYNC to match 2.6.33+ kernels.
607 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
608 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
609 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
610 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
611 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
612 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
614 2009-12-10 Ulrich Drepper <drepper@redhat.com>
617 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
618 *herrnop before returning.
619 * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
621 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
622 TRYAGAIN errors separately.
623 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
624 *name4_r after functions.
626 2009-12-09 Ulrich Drepper <drepper@redhat.com>
629 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
632 2009-11-05 Bruno Haible <bruno@clisp.org>
635 * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
636 argv argument as non-NULL.
637 (execle, execl, execlp): Mark the first ARG argument as non-NULL.
639 -2009-12-08 Ulrich Drepper <drepper@redhat.com>
641 * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
643 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
644 * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
646 2009-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
648 * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
650 * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
651 * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
652 * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
654 2009-11-30 Ulrich Drepper <drepper@redhat.com>
656 * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
659 2009-11-26 Ulrich Drepper <drepper@redhat.com>
661 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
662 only used on truly ancient kernel if configuration requires a more
665 2009-11-24 Ulrich Drepper <drepper@redhat.com>
668 * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
669 Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
671 * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
672 pass it on to __ptsname_internal.
673 (grantpt): Pass stat64 pointer to pts_name. Remove stat call here.
674 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
675 All the code from __ptsname_r but take additional parameter. Use that
676 instead of pointer to local stat64 variable.
677 (__ptsname_r): Call __ptsname_internal with pointer to local stat64
679 * include/stdlib.h: Declare __ptsname_internal.
681 * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
683 * sysdeps/unix/sysv/linux/grantpt.c: New file.
684 * login/programs/pt_chown.c (main): Don't print message on errors
685 when doing real work.
687 * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
690 * csu/elf-init.c (__libc_csu_irel): New function. Code to perform
691 irel relocations split out from...
692 (__libc_csu_init): ...here.
693 * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
695 2009-11-23 Andreas Schwab <schwab@redhat.com>
697 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
698 for timestamps also if __USE_XOPEN2K8.
699 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
700 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
701 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
702 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
704 2009-11-22 Ulrich Drepper <drepper@redhat.com>
706 * nscd/connections.c (restart): Try harder to re-exec.
708 * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
710 * sysdeps/unix/sysv/linux/ntp_gettimex.c: New file.
711 * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
712 * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
713 * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
714 some placeholders. Redirect ntp_gettime to ntp_gettimex.
715 * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
717 * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
719 (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
721 2009-11-18 H.J. Lu <hongjiu.lu@intel.com>
724 * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
725 than software pipeline. Properly recover from shorter read.
727 2009-11-19 Ulrich Drepper <drepper@redhat.com>
730 * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
731 initialized before using it.
732 (_IO_putwc_unlocked): Likewise.
735 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
736 in cast to not throw away const-ness of parameters.
737 (__CPU_EQUAL_S): Likewise.
738 (__CPU_OP_S): Likewise.
740 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
741 F_OWNER_PGRP and mark F_OWNER_GID obsolete. The kernel people made
742 this gratuitous change and we have to keep compatibility.
743 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
744 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
745 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
746 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
747 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
748 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
750 2009-11-17 Ulrich Drepper <drepper@redhat.com>
752 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
753 of parameters of sync_file_range.
754 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
755 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
756 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
757 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
758 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
759 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
761 2009-11-16 Jakub Jelinek <jakub@redhat.com>
763 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
764 Implement using sync_file_range2 syscall if __NR_sync_file_range2
766 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
769 2009-11-17 Paolo Bonzini <bonzini@gnu.org>
771 * posix/bug-regex30.c: New file.
772 * posix/Makefile: Add rules to build and run bug-regex30.
773 * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
774 character lead bytes when there is a range in a COMPLEX_BRACKET.
775 Reported by Oleg Bylatov.
777 2009-11-17 Ulrich Drepper <drepper@redhat.com>
780 * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
781 * locale/tst-duplocale.c: New file.
782 * locale/Makefile (tests): Add tst-duplocale.
785 * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
786 Patch by Bruno Haible <bruno@clisp.org>.
787 * locale/tst-locname.c: New file.
788 * locale/Makefile (tests): Add tst-locname.
791 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
792 constants from recent kernels.
793 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
794 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
795 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
796 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
797 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
798 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
800 2009-11-09 H.J. Lu <hongjiu.lu@intel.com>
803 * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
806 2009-11-09 Mike Frysinger <vapier@gentoo.org>
808 * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
809 (fallocate): Return ENOSYS if __NR_fallocate is not defined.
810 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
812 2009-11-06 Mike Frysinger <vapier@gentoo.org>
814 * posix/bug-regex29.c: Include stdio.h.
816 2009-11-14 Ulrich Drepper <drepper@redhat.com>
819 * Versions.def: Define GLIBC_2.12 for libc.
820 * manual/errno.texi: Add ERFKILL entry.
821 * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
823 * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
824 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
826 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
827 F_GETOWN_EX definitions according to corrected kernel definitions.
828 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
829 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
830 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
831 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
832 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
833 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
835 2009-11-12 Ulrich Drepper <drepper@redhat.com>
837 * version.h: Bump for 2.12 development.
839 2009-11-10 Andreas Schwab <schwab@redhat.com>
841 * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
843 * resolv/nss_dns/dns-host.c (getanswer_r): Check for
844 map_v4v6_hostent running out of space.
846 2009-11-10 Ulrich Drepper <drepper@redhat.com>
848 * string/bits/string3.h (memset): If the second parameter is constant
849 and zero there is likely no transposition.
850 Patch by Caolan McNamara <caolanm@redhat.com.
852 2009-11-04 Philippe De Muyter <phdm@macqel.be>
854 * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
855 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
857 2009-10-30 Holger Hans Peter Freyther <zecke@selfish.org>
859 * malloc/memusagestat.c (main): Fix spelling in an error message.
861 2009-11-01 H.J. Lu <hongjiu.lu@intel.com>
863 * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
864 * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
866 2009-11-03 Andreas Schwab <schwab@redhat.com>
868 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
871 2009-11-03 Jakub Jelinek <jakub@redhat.com>
873 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
874 relocate opd entry when resolving prelink conflicts.
876 2009-11-04 Jakub Jelinek <jakub@redhat.com>
878 * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
879 when -D_FILE_OFFSET_BITS=64.
881 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
882 of last two arguments when -D_FILE_OFFSET_BITS=64.
883 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
884 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
885 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
886 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
887 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
888 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
890 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
893 * sysdeps/generic/libgcc_s.h: New file.
894 * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
896 2009-11-01 Ulrich Drepper <drepper@redhat.com>
898 * malloc/hooks.c (free_check): Restore locking and call _int_free
901 2009-10-30 Ulrich Drepper <drepper@redhat.com>
903 * version.h (VERSION): Bump for 2.11 release.
904 * include/features.h (__GLIBC_MINOR__): Bump to 11.
906 * elf/tst-execstack.c (do_test): Add cast to avoid warning.
908 * stdio-common/scanf13.c (main): Remove unused variable wbuf.
910 * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
912 * stdlib/tst-strtoll.c (tests): Likewise.
915 * time/strftime_l.c (__strftime_internal): Allow %OC.
917 * misc/mkostemps.c: New file.
918 * misc/mkostemps64.c: New file.
920 2009-10-30 Andreas Schwab <schwab@redhat.com>
922 * locale/programs/locale-spec.c: Include <error.h> and
925 * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
927 2009-10-28 Roland McGrath <roland@redhat.com>
929 * Makefile (dist-prepare): New target.
930 (tag-for-dist): Target removed.
931 (glibc-%.tar): Pattern rule removed.
932 (%.tar): New pattern rule, does simple use of git archive.
933 (dist-version): Remove variable definition.
934 (dist): Just depend on that. Add .tar.xz dependency.
935 If dist-version variable not set on command line, depend on
936 dist-prepare, re-invoke with dist-version set via git describe.
938 * Makerules (%.xz): New pattern rule.
940 2009-10-28 Alan Modra <amodra@bigpond.net.au>
942 * elf/ifuncdep2.c: Include ifunc-sel.h.
944 (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
945 * elf/ifuncmain1.c (global): Delete.
946 * elf/ifuncmain1vis.c: Likewise.
947 * elf/ifuncmain2.c: Likewise.
948 * elf/ifuncmain5.c: Likewise.
949 * elf/ifuncmod3.c: Likewise.
950 * elf/ifuncmain6pie.c: Include ifunc-sel.h.
951 (foo_ifunc): Use ifunc_one.
952 * elf/ifuncmain7.c: Likewise.
953 * elf/ifuncmod1.c: Include ifunc-sel.h.
954 (global): Define protected var.
955 (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
956 * elf/ifuncmod5.c: Likewise.
957 * sysdeps/generic/elf/ifunc-sel.h: New file.
958 * sysdeps/powerpc/elf/ifunc-sel.h: New file.
960 2009-07-30 Alan Modra <amodra@bigpond.net.au>
962 * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
963 (R_PPC_REL16*): Correct comments.
964 (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
965 (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
966 R_PPC64_REL16_HA): Define.
967 * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
968 * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
969 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
970 Delete unused "reloc" param.
971 (__process_machine_rela): Handle R_PPC_IRELATIVE.
972 * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
973 Delete "reloc" param.
974 (elf_machine_rela): Handle STT_GNU_IFUNC functions and
976 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
977 (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
980 d2009-10-30 Ulrich Drepper <drepper@redhat.com>
983 * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
984 UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
988 * sysdeps/posix/tempname.c (__gen_tempname): Take new second
989 parameter, specifying length of prefix.
990 * stdio-common/tempname.c: Likewise.
991 * include/stdio.h: Adjust prototypes.
992 * libio/oldtmpfile.c: Adjust caller.
993 * misc/mkdtemp.c: Likewise.
994 * misc/mkostemp.c: Likewise.
995 * misc/mkostemp64.c: Likewise.
996 * misc/mkstemp.c: Likewise.
997 * misc/mkstemp64.c: Likewise.
998 * misc/mktemp.c: Likewise.
999 * stdio-common/tempnam.c: Likewise.
1000 * stdio-common/tmpfile.c: Likewise.
1001 * stdio-common/tmpnam.c: Likewise.
1002 * stdio-common/tmpnam_r.c: Likewise.
1003 * misc/mkstemps.c: New file.
1004 * misc/mkstemps64.c: New file.
1005 * stdlib/stdlib.h: Add prototypes.
1006 * misc/Makefile (routines): Add mkstemps and mkstemps64.
1007 * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1009 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1011 * locale/iso-639.def: Add sml entry.
1014 * resolv/res_send.c (send_dg): Initialize resplen.
1017 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1018 definition to the kernel's.
1019 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1021 2009-08-18 Anders Johansson <ajohansson@novell.com>
1023 * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1024 offsets and record sizes in assert()s and response sending.
1025 * nscd/grpcache.c: Likewise.
1026 * nscd/hstcache.c: Likewise.
1027 * nscd/initgrcache.c: Likewise.
1028 * nscd/pwdcache.c: Likewise.
1030 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1033 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1034 /etc/hosts does not exist set errnop and herrnop appropriately.
1035 Patch by Steve Langasek <vorlon@debian.org>.
1038 * malloc/malloc.c (malloc_info): Fix typos in format strings.
1039 Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1042 * login/utmp_file.c (TIMEOUT): Increase to 10.
1045 * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1046 for file names in case the syscall is not available.
1047 * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1048 * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1049 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1050 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1051 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1052 * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1053 * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1054 * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1055 * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1056 * sysdeps/unix/sysv/linux/openat.c: Likewise.
1057 * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1058 * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1059 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1060 * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1061 * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1062 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1063 * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1066 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1067 creation filed, remove the request from the 'requests' list and signal
1068 the caller that the request is finished.
1071 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1072 in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.
1075 * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1076 from intern.start. Patch by Joe Landers <jlanders@vmware.com>.
1079 * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1080 overflows the int return type.
1083 * malloc/memusagestat.c (main): Fix repairing of trace files. We also
1084 have to compute maxsize_total, we have to update the variables, and
1085 the also_total handling must happen after the repair.
1088 * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1089 Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1091 2009-10-27 Andreas Schwab <schwab@redhat.com>
1093 * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1094 errno is always set when returning unsuccessfully.
1096 2009-10-29 Andreas Schwab <schwab@redhat.com>
1098 * malloc/memusage.c (update_data): Fix index wraparound handling
1099 so that buffer_cnt is actually reset.
1101 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1104 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1105 of the directory we look at into the static buffer if there is one
1106 at the start of the loop.
1109 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1110 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1113 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1114 __ASSUME_F_GETOWN_EX.
1115 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1117 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1119 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1121 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1122 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1123 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1124 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1125 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1126 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1129 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1133 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1134 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
1136 2009-10-24 Joseph Myers <joseph@codesourcery.com>
1138 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1140 2009-10-27 Jakub Jelinek <jakub@redhat.com>
1143 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1144 Reported by Ray Chason.
1146 2009-10-21 H.J. Lu <hongjiu.lu@intel.com>
1148 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1150 * sysdeps/x86_64/multiarch/strchr.S: New file.
1151 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1152 * sysdeps/x86_64/multiarch/strrchr.S: New file.
1154 2009-10-21 Andreas Schwab <schwab@redhat.com>
1156 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1158 2009-10-19 Andreas Schwab <schwab@redhat.com>
1160 * include/math.h: Add hidden protos for __exp/__expf/__expl.
1161 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1162 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1163 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1164 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1165 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1166 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1167 __ieee751_expl to handle overflow.
1169 2009-10-14 David S. Miller <davem@davemloft.net>
1171 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1172 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1174 2009-10-13 Andreas Schwab <schwab@redhat.com>
1176 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1179 2009-10-08 Ulrich Drepper <drepper@redhat.com>
1182 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1183 Patch in part by Steve Ward <planet36@gmail.com>.
1186 * stdlib/rand_r.c: Fix typo.
1188 * po/cs.po: Update from translation team.
1190 2009-10-06 Andreas Schwab <schwab@redhat.com>
1192 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1193 returning if RTLD_NOLOAD.
1195 2009-10-06 Roland McGrath <roland@redhat.com>
1197 * sysdeps/x86_64/multiarch/strstr-c.c
1198 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1200 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1201 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1203 * sysdeps/x86_64/multiarch/init-arch.h
1204 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1205 (HAS_CPU_FEATURE): New macro.
1206 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1207 * sysdeps/x86_64/multiarch/init-arch.c
1208 (__get_cpu_features): #undef it before definition.
1210 2009-10-05 Andreas Schwab <schwab@redhat.com>
1212 * locale/C-time.c: Revert week-1stday back to 19971130 and set
1213 first_weekday to 1 and first_workday to 2.
1215 2009-10-01 Ulrich Drepper <drepper@redhat.com>
1217 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1219 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1220 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1221 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1222 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1223 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1224 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1226 2009-09-28 Andreas Schwab <schwab@redhat.com>
1228 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1229 * stdio-common/vfprintf.c: Likewise.
1231 2009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
1233 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1234 (mkdirat): Call __directory_name_split_at instead of
1235 __directory_name_split.
1237 2009-09-28 Ulrich Drepper <drepper@redhat.com>
1239 * locale/programs/locale-spec.c (locale_special): If nothing matches
1240 fail with an appropriate message.
1242 2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
1244 * configure.in: Exclude binutils 2.X. Support binutils 2.100
1247 2009-09-25 Andreas Schwab <schwab@redhat.com>
1249 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1250 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1252 2009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1254 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1256 2009-09-20 Andreas Schwab <schwab@linux-m68k.org>
1258 * iconvdata/iso646.c (gconv_init): Correctly initialize the
1259 character size elements in step data.
1261 2009-09-20 Ulrich Drepper <drepper@redhat.com>
1263 * po/hu.po: Update from translation team.
1264 * po/vi.po: Likewise.
1266 2009-09-19 Roland McGrath <roland@redhat.com>
1268 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1270 2009-09-15 Roland McGrath <roland@redhat.com>
1272 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1273 * nptl/sysdeps/pthread/configure: Regenerated.
1274 * nptl/sysdeps/x86_64/configure: Regenerated.
1275 * sysdeps/unix/sysv/linux/configure: Regenerated.
1276 * sysdeps/x86_64/elf/configure: Regenerated.
1278 * Makefile (autoconf-it): Set execute bit only on top-level configure.
1280 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1281 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1282 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1283 * configure: Regenerated.
1285 2009-09-09 Ulrich Drepper <drepper@redhat.com>
1287 * posix/getconf.c (main): Handle -- on command line.
1289 2009-09-05 H.J. Lu <hongjiu.lu@intel.com>
1291 * configure.in: Support binutils 2.100 and 3.0.
1293 2009-09-08 Jakub Jelinek <jakub@redhat.com>
1295 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1296 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1297 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1298 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1300 2009-09-07 Ulrich Drepper <drepper@redhat.com>
1302 * locale/programs/ld-collate.c (struct locale_collate_t): Add
1303 unnamed_section_defined field.
1304 (collate_read): Test and set unnamed_section_defined.
1306 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1309 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
1311 * configure.in: Support binutils 2.20.
1313 2009-09-03 Ulrich Drepper <drepper@redhat.com>
1315 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1316 __strstr_ia32): Add attribute_hidden.
1318 2009-09-01 Andreas Schwab <schwab@redhat.com>
1320 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1321 parsing of group entry.
1323 2009-09-02 Andreas Schwab <schwab@redhat.com>
1325 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1326 external buffer. Always discard readahead in internal buffer.
1327 * libio/Makefile (tests): Add bug-wsetpos.
1328 * libio/bug-wsetpos.c: New file.
1330 2009-09-02 Jakub Jelinek <jakub@redhat.com>
1332 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1333 Add attribute_hidden.
1334 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1335 __strcasestr_sse2): Likewise.
1336 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1337 (__fma_fma): Make static.
1338 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1339 (__fmaf_fma): Make static.
1341 2009-08-31 Andreas Schwab <schwab@redhat.com>
1343 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1344 reformulate in-buffer optimisation check to match code in
1345 _IO_new_file_seekoff.
1347 2009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
1349 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1350 to srwi in 32-bit memcpy for power6.
1352 2009-09-01 Andreas Schwab <schwab@redhat.com>
1354 * include/stdio.h: Declare hidden proto for fflush.
1355 * libio/iofflush.c: Add hidden weak alias for fflush.
1357 2009-09-01 Jakub Jelinek <jakub@redhat.com>
1359 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1360 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1362 2009-08-31 Andreas Schwab <schwab@redhat.com>
1364 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1366 2009-08-31 Ulrich Drepper <drepper@redhat.com>
1369 * malloc/malloc.c: Add local assert definition to avoid problems with
1370 memory allocation in the real one.
1372 2009-08-27 H.J. Lu <hongjiu.lu@intel.com>
1374 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1376 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1377 turn off SSSE3 on Atom.
1379 2009-08-28 Ulrich Drepper <drepper@redhat.com>
1381 * stdlib/tst-strtol.c (tests): More tests.
1382 * stdlib/tst-strtoll.c (tests): Likewise.
1384 2009-08-26 Ulrich Drepper <drepper@redhat.com>
1386 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1388 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1390 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1392 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1393 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1395 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1397 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1399 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1401 2009-08-25 Joseph Myers <joseph@codesourcery.com>
1403 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1405 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1407 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1408 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1410 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1412 * sysdeps/x86_64/fpu/s_signbit.S: New file.
1413 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1415 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1416 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1418 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1419 leftover YMM_SIZE definition.
1421 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1423 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1425 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1426 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1428 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1430 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1431 and SET_FLOAT_WORD definitions.
1433 2009-08-24 Roland McGrath <roland@redhat.com>
1435 * sysdeps/unix/syscall-template.S: New file.
1436 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1437 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1438 (compile-syscall): Pass mkdep and -g options as normal.
1439 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1440 (common-generated): Don't add them here.
1442 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1444 * math/s_fdim.c: In case of overflows set errno.
1445 * math/s_fdimf.c: Likewise.
1446 * math/s_fdiml.c: Likewise.
1448 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1449 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1450 are using the inline optimizations.
1452 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1453 (__signbitf): Likewise.
1455 2009-08-23 Ulrich Drepper <drepper@redhat.com>
1457 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1459 * posix/Makefile (tests): Add bug-regex29.
1460 * posix/bug-regex29.c: New file.
1462 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1463 older POSIX versions are selected.
1465 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1467 * stdio-common/printf_fphex.c: Likewise.
1468 * stdio-common/tstdiomisc.c: Add more tests.
1470 * locale/locale.h: Include xlocale.h and the thread-local locale
1471 declarations for XPG7, not XPG6.
1473 2009-08-21 Andreas Schwab <schwab@redhat.com>
1475 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1476 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1477 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1478 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1479 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1480 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1482 2009-08-20 Roland McGrath <roland@redhat.com>
1484 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1485 Use l_addr instead of l_map_start (dli_fbase).
1486 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1487 address when there is no proximate symbol.
1488 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1491 2009-08-16 Ulrich Drepper <drepper@redhat.com>
1493 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1495 2009-08-14 Ulrich Drepper <drepper@redhat.com>
1497 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1498 Also handle SIGINT. In that case only do the cleanup and then
1499 re-raise the signal.
1500 (main): Install handler for SIGINT.
1502 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1504 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1507 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
1509 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1510 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1512 (tests): Add tst-audit6 tst-audit7.
1513 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1514 tst-auditmod7a tst-auditmod7b.
1515 ($(objpfx)tst-audit6): New.
1516 ($(objpfx)tst-audit6.out): Likewise.
1517 ($(objpfx)tst-audit7): Likewise.
1518 ($(objpfx)tst-audit7.out): Likewise.
1519 (tst-audit6-ENV): Likewise.
1520 (tst-audit7-ENV): Likewise.
1521 (CFLAGS-tst-auditmod6b.c): Likewise.
1522 (CFLAGS-tst-auditmod6c.c): Likewise.
1523 (CFLAGS-tst-auditmod7b.c): Likewise.
1524 * elf/tst-audit6.c: New file.
1525 * elf/tst-audit7.c: New file.
1526 * elf/tst-auditmod6a.c: New file.
1527 * elf/tst-auditmod6b.c: New file.
1528 * elf/tst-auditmod6c.c: New file.
1529 * elf/tst-auditmod7a.c: New file.
1530 * elf/tst-auditmod7b.c: New file.
1531 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1532 saving and restoring SSE/AVX registers to ...
1533 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1535 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1537 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1538 only if SHARED is defined.
1539 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1541 2009-08-03 Jim Meyering <meyering@redhat.com>
1543 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1545 2009-08-08 Ulrich Drepper <drepper@redhat.com>
1547 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1548 section as the other functions for this architecture.
1549 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1551 2009-08-07 Ulrich Drepper <drepper@redhat.com>
1553 * sysdeps/x86_64/strcmp.S: Add support to compile with
1554 USE_SSSE3. In this case palignr is used.
1555 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1556 available but SSSE3 is, pick __str{,n}cmp_ssse3.
1557 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1558 Add strcmp-ssse3 and strncmp-ssse3.
1559 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1560 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1562 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1563 warning through fake initialization.
1565 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1567 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1569 2009-08-07 Andreas Schwab <schwab@redhat.com>
1571 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1574 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
1576 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1577 EBX from EAX = 1. Handle EAX = 11.
1579 2009-08-07 Andreas Schwab <schwab@redhat.com>
1581 * Makefile (TAGS): Use separate sed -e expressions to avoid \
1584 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
1586 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1587 hidden IFUNC functions.
1588 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1590 * sysdeps/i386/i686/multiarch/strlen.S: New file.
1592 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1593 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1595 (CFLAGS-strcspn-c.c): Define.
1596 (CFLAGS-strpbrk-c.c): Define.
1597 (CFLAGS-strspn-c.c): Define.
1598 (CFLAGS-strstr.c): Define.
1599 (CFLAGS-strcasestr.c): Define.
1600 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1601 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1602 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1603 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1604 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1605 * sysdeps/i386/i686/multiarch/strspn.S: New file.
1606 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1607 * sysdeps/i386/i686/multiarch/strstr.c: New file.
1608 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1609 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1610 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1611 -16L instead of 0xfffffffffffffff0L.
1612 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1614 2009-08-02 Ulrich Drepper <drepper@redhat.com>
1616 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1618 2009-07-31 Ulrich Drepper <drepper@redhat.com>
1620 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1621 another rewrite. Much smaller and faster.
1622 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1624 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1625 ss_flags from the correct location.
1627 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
1629 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1630 * sysdeps/i386/i686/cacheinfo.c: New file.
1631 * sysdeps/i386/i686/multiarch/Makefile: New file.
1632 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1633 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1634 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1635 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1636 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1637 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1638 (__cpuid_count): New. Provide the default.
1639 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1640 (__x86_64_preferred_memory_instruction): Define only if
1641 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1642 (intel_check_word): Use __cpuid.
1643 (handle_intel): Likewise.
1644 (handle_amd): Likewise.
1645 (__cache_sysconf): Likewise.
1646 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1647 (__cache_sysconf): Likewise.
1648 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1649 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1650 (get_common_indeces): Use __cpuid.
1651 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
1652 if ENABLE_SSSE3_ON_ATOM is not defined.
1653 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1654 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1655 popcnt instead of popcntq.
1657 2009-07-31 Jakub Jelinek <jakub@redhat.com>
1659 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1661 2009-07-30 Ulrich Drepper <drepper@redhat.com>
1663 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1664 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
1665 which always causes a compile error.
1667 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1669 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
1671 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
1672 which always causes a compile error.
1674 * debug/Makefile (tests): Add tst-longjmp_chk2.
1675 * debug/tst-longjmp_chk2.c: New file.
1677 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
1678 Remove incorrect use of BP_SYM.
1679 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
1680 here now since it is more complex than just a simple check.
1682 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1683 we make no more progress.
1685 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1687 * math/s_fma.c: Don't define alias if __fma is a macro.
1688 * math/s_fmaf.c: Likewise.
1689 * sysdeps/x86_64/multiarch/s_fma.c: New file.
1690 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1691 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1693 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1694 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1696 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1698 * include/libc-symbols.h (libm_ifunc): Define.
1699 * sysdeps/x86_64/multiarch/Versions: New file.
1701 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1703 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
1705 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1707 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1709 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1710 call that registers used in calling conventions need to be preserved.
1711 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1712 to preserve register content if necessary.
1713 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1714 (_dl_x86_64_restore_sse): New function.
1715 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1716 is allowed to modify xmm/ymm registers.
1718 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
1719 application's perspective.
1720 * stdio-common/scanf17.c: Likewise.
1722 2009-07-28 Ulrich Drepper <drepper@redhat.com>
1724 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1726 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1728 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1729 two steps to catch bugs.
1731 2009-07-27 Ulrich Drepper <drepper@redhat.com>
1733 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
1734 determines which files are used in runtime lookups and only checks
1736 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
1738 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1739 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1740 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1743 * elf/dl-open.c: Move _dl_scope_free to...
1744 * elf/dl-scope.c: ...here. New file.
1745 * elf/Makefile (dl-routines): Add scope.
1747 * resolv/resolv.h (RES_USE_DNSSEC): Define.
1748 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1750 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1751 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1752 all the places we handled RES_USE_EDNS0 only before.
1753 Patch by Adam Tkac <atkac@redhat.com>.
1755 2009-07-27 Jakub Jelinek <jakub@redhat.com>
1757 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1758 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
1759 Update size when reallocating.
1761 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1763 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
1764 functions used in ld.so modify xmm/ymm registers.
1765 * sysdeps/x86_64/Makefile: Hook new test up.
1766 * sysdeps/x86_64/rtld-memchr.c: New file.
1767 * sysdeps/x86_64/rtld-memcmp.c: New file.
1768 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1769 * sysdeps/x86_64/rtld-strchr.S: New file.
1770 * sysdeps/x86_64/rtld-strlen.S: New file.
1771 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1772 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1774 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
1776 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1778 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1786 (next_8_bytes): Likewise.
1787 (Byte0): Remove commented out codes.
1788 (unaligned_table): Align jump table at 8 bytes.
1789 Add _sse4_2 to all labels. Always include "../strcmp.S".
1790 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1791 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1792 * sysdeps/x86_64/strncmp.S: New file.
1794 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1797 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1798 kernels, dropped when eventfd2 support was added.
1799 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1800 kernels, dropped when signalfd4 support was added.
1801 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1805 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1808 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1810 2009-07-25 Ulrich Drepper <drepper@redhat.com>
1812 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1813 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
1816 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1817 callback we must touch the status to avoid using stale value.
1819 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1822 2009-07-24 Ulrich Drepper <drepper@redhat.com>
1824 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1825 /lib/modules/* headers anymore. We have sane headers in the standard
1828 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1830 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1831 "etf3enh" and "highgprs" added.
1832 (_dl_s390_platforms): "z10" added.
1833 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1834 Increased for the new entries.
1835 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1836 HWCAP_S390_HIGH_GPRS added.
1838 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1839 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1840 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1841 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1842 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1844 2009-07-23 Ulrich Drepper <drepper@redhat.com>
1846 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1847 avoid additional cpuid instructions. Most of the information is
1850 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1852 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1854 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1855 SSSE3 bit for Atoms.
1856 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1859 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1860 structure before copying it to avoid warning.
1861 * posix/tst-rfc3484-2.c (do_test): Likewise.
1862 * posix/tst-rfc3484-3.c (do_test): Likewise.
1865 * include/unistd.h: Make header file suitable for C++ test cases.
1866 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1868 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1869 stack alignment in the exit code.
1871 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1872 potentially be zero.
1874 * elf/tst-unique1.c: Extend test to check for unloading DSO with
1875 unique symbol definition.
1876 Patch by Jakub Jelinek.
1877 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1878 make sure the object with the definition cannot be unloaded. Adjust
1880 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1881 the unique symbol hash table should not be const.
1883 2009-07-21 Ulrich Drepper <drepper@redhat.com>
1885 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
1886 unnecesary variables. Comment fixes.
1888 2009-07-20 Ulrich Drepper <drepper@redhat.com>
1890 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1891 Use NONASCII_CASE information provided by the locale to determine
1892 whether optimized string load function can be used. Minor cleanups.
1894 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
1896 * string/strcasestr.c (STRCASESTR): New macro.
1897 (__strcasestr): Renamed to ..
1898 (STRCASESTR): ...this.
1899 * string/strstr.c (STRSTR): New macro.
1900 (strstr): Renamed to ..
1902 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1903 strstr-c strcasestr-c
1904 (CFLAGS-strstr.c): New.
1905 (CFLAGS-strcasestr.c): Likewise.
1906 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1907 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1908 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1909 * sysdeps/x86_64/multiarch/strstr.c: New file.
1911 2009-07-20 Ulrich Drepper <drepper@redhat.com>
1913 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1914 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1915 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1916 _NL_CTYPE_NONASCII_CASE.
1917 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1919 (ctype_finish): Check whether there are any 8-bit characters outside
1920 the range ASCII has or whether the mapping isn't the same as for
1921 ASCII (±0x20). Set nonascii_case appropriately.
1922 (ctype_output): Add output handler for nonascii_case.
1924 2009-07-17 Ulrich Drepper <drepper@redhat.com>
1926 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1927 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1929 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1932 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1933 0xffff in the EDNS0 record.
1935 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1937 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1938 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1939 is written before the list head update.
1940 Patch by Andreas Schwab <aschwab@redhat.com>.
1942 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1943 Jakub Jelinek <jakub@redhat.com>
1945 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1946 corruption thread-safe.
1948 2009-07-13 Jakub Jelinek <jakub@redhat.com>
1950 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1951 overrides atomic_compare_and_exchange_val_rel, define to
1952 atomic_compare_and_exchange_val_rel by default, otherwise default
1953 to catomic_compare_and_exchange_val_acq.
1954 (catomic_compare_and_exchange_bool_rel): If arch overrides
1955 atomic_compare_and_exchange_bool_rel, define to
1956 atomic_compare_and_exchange_bool_rel by default.
1957 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1958 Use catomic_compare_and_exchange_val_rel instead of
1959 catomic_compare_and_exchange_val_acq.
1961 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1963 * sysdeps/generic/ldsodefs.h: Add prototype for
1964 _dl_higher_prime_number.
1965 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1967 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1968 restoring of ymm registers a bit.
1970 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
1972 * sysdeps/x86_64/memcmp.S: New file.
1974 2009-07-15 Ulrich Drepper <drepper@redhat.com>
1976 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1977 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
1978 pointers in writable memory.
1980 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
1982 * config.h.in: Add HAVE_AVX_SUPPORT entry.
1983 * config.make.in: Add config-cflags-avx entry.
1984 * configure.in: Substitute libc_cv_cc_avx.
1985 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1986 * elf/tst-audit4.c: New file.
1987 * elf/tst-audit5.c: New file.
1988 * elf/tst-auditmod4a.c: New file.
1989 * elf/tst-auditmod4b.c: New file.
1990 * elf/tst-auditmod5a.c: New file.
1991 * elf/tst-auditmod5b.c: New file.
1992 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1994 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1995 (La_x86_64_vector): Likewise.
1996 (La_x86_64_regs): Append lr_vector.
1997 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1998 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1999 saving and restoring SSE registers to ...
2000 * sysdeps/x86_64/dl-trampoline.h: This. New file.
2001 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2003 (_dl_runtime_profile): Use LR_SIZE to allocate space for
2004 La_x86_64_regs. Allocate extra space and jump to memory at
2005 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2006 (save_and_restore_vector_sse): New.
2007 (save_and_restore_vector_avx): Likewise.
2008 (check_avx): Likewise.
2009 (save_and_restore_vector): Likewise.
2010 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2012 * sysdeps/x86_64/link-defines.sym: New file.
2014 2009-07-10 Ulrich Drepper <drepper@redhat.com>
2016 * elf/do-lookup.h: Removed after folding content into...
2017 * elf/dl-lookup.c: ...here.
2019 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2021 2009-07-09 Ulrich Drepper <drepper@redhat.com>
2023 * configure.in: Check for gnu_unique_symbol symbol type.
2024 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2025 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2026 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
2027 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2029 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2030 unique symbol table.
2031 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2032 for first namespace.
2033 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2034 unique symbol hash table.
2035 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2036 * elf/tst-unique1.c: New file.
2037 * elf/tst-unique1mod1.c: New file.
2038 * elf/tst-unique1mod2.c: New file.
2039 * elf/tst-unique2.c: New file.
2040 * elf/tst-unique2mod1.c: New file.
2041 * elf/tst-unique2mod2.c: New file.
2043 2009-07-07 Ulrich Drepper <drepper@redhat.com>
2045 * elf/elf.h (STB_GNU_UNIQUE): Define.
2047 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
2049 * include/inline-hashtab.h: ...here.
2050 (htab_expand): Adjust for renamed function. Correct memory handling.
2052 2009-07-06 Ulrich Drepper <drepper@redhat.com>
2054 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2056 2009-07-03 Andreas Schwab <aschwab@redhat.com>
2058 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2059 (PPC_FEATURE_HAS_VSX): Likewise.
2061 2009-07-03 Ulrich Drepper <drepper@redhat.com>
2063 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2064 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2066 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2067 aligned to 16 byte boundaries.
2068 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2069 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2070 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2072 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
2074 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2075 * config.make.in (config-cflags-sse4): New variable.
2076 * configure.in: Substitute libc_cv_cc_sse4.
2077 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2079 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2080 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2081 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2082 * sysdeps/x86_64/multiarch/strcspn.S: New file.
2083 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2084 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2085 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2086 * sysdeps/x86_64/multiarch/strspn.S: New file.
2088 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
2090 * elf/Makefile (distribute): Remove tst-audit.sh. Add
2091 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2092 (tests): Add tst-audit3 for x86_64.
2093 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2094 ($(objpfx)tst-audit3): Define.
2095 ($(objpfx)tst-audit3.out): Define.
2096 (tst-audit3-ENV): Define.
2097 * elf/tst-audit3.c: New file.
2098 * elf/tst-auditmod3a.c: New file.
2099 * elf/tst-auditmod3b.c: New file.
2100 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2103 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
2104 (__stpncpy): Renamed to ...
2106 (stpncpy): Create alias only if STPNCPY is not defined.
2107 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
2109 (strncpy): Renamed to ...
2111 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2112 stpncpy-c strncpy-c for string.
2113 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2114 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2115 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2116 * sysdeps/x86_64/multiarch/strcpy.S: New file.
2117 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2118 * sysdeps/x86_64/multiarch/strncpy.S: New file.
2120 2009-07-02 Ulrich Drepper <drepper@redhat.com>
2122 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2123 adding to fast bin list.
2125 2009-07-01 Ulrich Drepper <drepper@redhat.com>
2127 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2128 inet_makeaddr. This worked only with class-based networks.
2129 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2132 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2133 recognize all types.
2134 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2135 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
2136 be in host byte order.
2138 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
2140 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2141 (MODEL_OFFSET): Define.
2142 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2144 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2145 out common code into new function get_common_indeces. Determine
2146 extended family and model for Intel processors.
2148 2009-06-26 Ulrich Drepper <drepper@redhat.com>
2150 * resolv/resolv.h: Define RES_SNGLKUPREOP.
2151 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2153 * resolv/res_send.c (reopen): New function. Broken out of...
2154 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
2155 fallback mechanism. If single-request fails switch to
2156 single-request-reopen mode which opens a new socket for the second
2159 2009-06-25 Andreas Schwab <aschwab@redhat.com>
2161 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2164 2009-06-24 Andreas Schwab <aschwab@redhat.com>
2166 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2167 for saved registers.
2168 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2169 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2170 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2172 2009-06-23 Andreas Schwab <aschwab@redhat.com>
2174 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2176 2009-06-22 Ulrich Drepper <drepper@redhat.com>
2178 * po/id.po: Update from translation team.
2180 * po/bg.po: Update from translation team.
2182 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
2184 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
2186 (strncmp): Renamed to STRNCMP.
2187 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2188 strncmp-c for string.
2189 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2190 * sysdeps/x86_64/multiarch/strcmp.S: New file.
2191 * sysdeps/x86_64/multiarch/strncmp.S: New file.
2192 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2194 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
2196 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2197 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2198 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2199 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2200 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2202 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2203 ifuncmain7static, and ifuncmain7picstatic.
2204 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2205 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2206 $(objpfx)ifuncmain7pie.out.
2207 (modules-names): Add ifuncmod5 ifuncmod6
2208 (ifuncmod5.so-no-z-defs): Define.
2209 (ifuncmod6.so-no-z-defs): Define.
2210 (CFLAGS-ifuncmain5pic.c): Define.
2211 (CFLAGS-ifuncmain5picstatic.c): Define.
2212 (CFLAGS-ifuncmain5staticpic.c): Define.
2213 (CFLAGS-ifuncdep5pic.c): Define.
2214 (CFLAGS-ifuncmain7pic.c): Define.
2215 (CFLAGS-ifuncmain7picstatic.c): Define.
2216 (CFLAGS-ifuncmain1staticpie.c): Define.
2217 (CFLAGS-ifuncmain5pie.c): Define.
2218 (CFLAGS-ifuncmain6pie.c): Define.
2219 (CFLAGS-ifuncmain7pie.c): Define.
2220 ($(objpfx)ifuncmain1staticpie.out): Define.
2221 ($(objpfx)ifuncmain1staticpie): Define.
2222 ($(objpfx)ifuncmain5pie.out): Define.
2223 ($(objpfx)ifuncmain5pie): Define.
2224 ($(objpfx)ifuncmain6pie.out): Define.
2225 ($(objpfx)ifuncmain6pie): Define.
2226 ($(objpfx)ifuncmain5): Define.
2227 ($(objpfx)ifuncmain5pic): Define.
2228 ($(objpfx)ifuncmain5static): Define.
2229 ($(objpfx)ifuncmain5staticpic): Define.
2230 ($(objpfx)ifuncmain5picstatic): Define.
2231 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2232 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2234 * elf/b/elf/ifuncmain1staticpie.c: New file.
2235 * elf/ifuncdep5.c: New file.
2236 * elf/ifuncdep5pic.c: New file.
2237 * elf/ifuncmain5.c: New file.
2238 * elf/ifuncmain5pic.c: New file.
2239 * elf/ifuncmain5picstatic.c: New file.
2240 * elf/ifuncmain5pie.c: New file.
2241 * elf/ifuncmain5static.c: New file.
2242 * elf/ifuncmain5staticpic.c: New file.
2243 * elf/ifuncmain6pie.c: New file.
2244 * elf/ifuncmain7.c: New file.
2245 * elf/ifuncmain7pic.c: New file.
2246 * elf/ifuncmain7picstatic.c: New file.
2247 * elf/ifuncmain7pie.c: New file.
2248 * elf/ifuncmain7static.c: New file.
2249 * elf/ifuncmod5.c: New file.
2250 * elf/ifuncmod6.c: New file.
2252 2009-06-20 Ulrich Drepper <drepper@redhat.com>
2255 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2256 (nss_endgrent): New variable.
2257 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2258 fields. Change type of files to bool and adjust all users.
2259 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2260 (internal_endgrent): Call nss_endgrent if necessary.
2261 (add_group): New function. Broken out of...
2262 (check_and_add_group): ...here.
2263 (getgrent_next_nss): Remove test that any callback is available.
2264 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2265 callback. If there is no blacklist we can trust the results returned
2266 by the initgroups_dyn callback. In case there is a callback and we
2267 find a group entry for the group ID but it doesn't contain the
2268 correct member, switch to the slow mode and use getgrent_r.
2269 (internal_getgrent_r): When we see a +: entry, determine whether
2270 there is any callback and which we can use the initgroups_dyn
2273 2009-06-18 Ulrich Drepper <drepper@redhat.com>
2275 * malloc/malloc.c (_int_malloc): Add some consistency checks.
2276 (_int_free): Likewise.
2278 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2280 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2281 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2282 and ARPHRD_IEEE802154_PHY.
2284 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2285 relative to generic Linux version.
2287 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
2289 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2290 ($(objpfx)ifuncmain1vispie): Likewise.
2292 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2294 * login/Makefile: Build pt_chown as PIE.
2296 2009-06-15 Andreas Schwab <aschwab@redhat.com>
2298 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2300 * elf/sln.c (usage): Likewise.
2301 * malloc/memusage.sh (do_help): Likewise.
2302 * nss/getent.c (more_help): Likewise.
2303 * posix/getconf.c (main): Likewise.
2304 * sunrpc/rpcinfo.c (usage): Likewise.
2305 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2307 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2309 * login/programs/pt_chown.c: Use libcap to drop privileges other than
2311 * login/Makefile: If necessary link pt_chown with -lcap.
2312 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2313 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2315 2009-06-16 Jakub Jelinek <jakub@redhat.com>
2317 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2319 * string/test-memchr.c (do_random_tests): Test very large lengths
2322 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2324 * Makeconfig (+link-pie): Define.
2325 (+prectorS): Define.
2326 (+postctorS): Define.
2327 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2328 * nscd/Makefile ($(objpfx)nscd): Likewise.
2330 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
2333 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2335 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2337 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2339 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2341 * sysdeps/unix/grantpt.c: ...here.
2343 2009-06-15 Ulrich Drepper <drepper@redhat.com>
2345 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2346 chmod if it is necessary.
2349 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2350 when the slave device is in devpts or devfs.
2353 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2356 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2357 of nd_opt_home_agent_info_preference to uint16_t.
2358 Patch by Arnaud Ebalard <arno@natisbad.org>.
2361 * nss/getent.c: Add support for printing gshadow data.
2364 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2365 not just the currently used one and those which follow.
2366 Patch by Joe Landers <jlanders@vmware.com>.
2369 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2370 * libio/Makefile: Run tst-fgetwc with necessary envvar.
2371 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2374 * stdlib/abort.c: Define variable __abort_msg.
2375 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2376 * include/stdlib.h: Declare __abort_msg.
2377 * assert/assert-perr.c: Don't free buffer for message immediately.
2378 Store atomically in __abort_msg and free old buffer if necessary.
2379 * assert/assert.c: Likewise.
2380 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2381 store pointer in __abort_msg, and possibly free old string.
2382 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2384 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2387 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2388 handle leap seconds if they are available.
2389 Patch by Akinori Hattori <hattya@gentoo.org>.
2391 * timezone/tzselect.ksh: Update from tzcode2009i.
2392 * timezone/zdump.c: Likewise.
2393 * timezone/zic.c: Likewise.
2395 * timezone/africa: Update from tzdata2009i.
2396 * timezone/antarctica: Likewise.
2397 * timezone/asia: Likewise.
2398 * timezone/australasia: Likewise.
2399 * timezone/backward: Likewise.
2400 * timezone/etcetera: Likewise.
2401 * timezone/europe: Likewise.
2402 * timezone/factory: Likewise.
2403 * timezone/iso3166.tab: Likewise.
2404 * timezone/leapseconds: Likewise.
2405 * timezone/northamerica: Likewise.
2406 * timezone/pacificnew: Likewise.
2407 * timezone/solar87: Likewise.
2408 * timezone/solar88: Likewise.
2409 * timezone/solar89: Likewise.
2410 * timezone/southamerica: Likewise.
2411 * timezone/systemv: Likewise.
2412 * timezone/yearistype: Likewise.
2413 * timezone/zone.tab: Likewise.
2415 2009-06-15 Jakub Jelinek <jakub@redhat.com>
2417 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2418 STT_GNU_IFUNC symbol or in 8 into type_class.
2420 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2421 instead of Elf64_Addr.
2423 2009-06-14 Ulrich Drepper <drepper@redhat.com>
2425 * po/sv.po: Update from translation team.
2428 * misc/sys/select.h (__NFDBITS): Expression should have type int.
2429 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2430 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
2433 2009-06-12 Ulrich Drepper <drepper@redhat.com>
2435 * Versions.def: Add GLIBC_2.11 for libpthread.
2437 2009-06-11 Ulrich Drepper <drepper@redhat.com>
2439 * resolv/res_send.c (send_dg): Remember we switched to
2440 single-request mode.
2442 2009-06-09 Ulrich Drepper <drepper@redhat.com>
2444 * dlfcn/dlfcn.h: Remove comma at end of enum.
2445 Patch by J.H.M. Dassen <rdassen@redhat.com>.
2447 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2448 parsing mode string.
2450 2009-06-05 Ulrich Drepper <drepper@redhat.com>
2452 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2454 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2456 * sysdeps/x86_64/multiarch/strlen.S: New file.
2457 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2458 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2459 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2462 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2465 2009-06-04 Ulrich Drepper <drepper@redhat.com>
2467 * sysdeps/x86_64/strlen.S: Minor optimizations.
2469 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2471 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2472 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2473 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2474 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2475 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2476 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2477 ifuncmain3.c, ifuncmod3.c,.
2478 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2479 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2480 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2481 ifuncmain4picstatic.
2482 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2483 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2484 ifuncmain3, ifuncmain4.
2485 (tests): Depend on $(objpfx)ifuncmain1pie.out and
2486 $(objpfx)ifuncmain1vispie.out.
2487 (modules-names): Add ifuncmod1 ifuncmod3.
2488 (generated): Add ifuncmain1pie ifuncmain1pie.out
2489 ifuncmain1vispie ifuncmain1vispie.out.
2490 Define rules to build and run the tests.
2491 * elf/ifuncdep1.c: New file.
2492 * elf/ifuncdep1pic.c: New file.
2493 * elf/ifuncdep2.c: New file.
2494 * elf/ifuncdep2pic.c: New file.
2495 * elf/ifuncmain1.c: New file.
2496 * elf/ifuncmain1pic.c: New file.
2497 * elf/ifuncmain1picstatic.c: New file.
2498 * elf/ifuncmain1pie.c: New file.
2499 * elf/ifuncmain1static.c: New file.
2500 * elf/ifuncmain1staticpic.c: New file.
2501 * elf/ifuncmain1vis.c: New file..
2502 * elf/ifuncmain1vispic.c: New file..
2503 * elf/ifuncmain1vispie.c: New file.
2504 * elf/ifuncmain2.c: New file.
2505 * elf/ifuncmain2pic.c: New file.
2506 * elf/ifuncmain2picstatic.c: New file.
2507 * elf/ifuncmain2static.c: New file.
2508 * elf/ifuncmain3.c: New file.
2509 * elf/ifuncmain4.c: New file.
2510 * elf/ifuncmain4picstatic.c: New file.
2511 * elf/ifuncmain4static.c: New file.
2512 * elf/ifuncmod1.c: New file.
2513 * elf/ifuncmod3.c: New file.
2515 2009-06-03 Ulrich Drepper <drepper@redhat.com>
2517 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2519 2009-06-02 Ulrich Drepper <drepper@redhat.com>
2522 * posix/Makefile (routines): Add execvpe.
2523 * posix/Versions: Export execvpe for GLIBC_2.11.
2524 * posix/execvp.c: Now only a wrapper. Move code to...
2525 * posix/execvpe.c: ...here. New file.
2526 * posix/unistd.h: Declare execvpe.
2528 2009-06-01 Ulrich Drepper <drepper@redhat.com>
2530 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2531 for STT_GNU_IFUNC handling for efficiency.
2532 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2534 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2536 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2538 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2540 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2543 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
2545 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2547 (__rela_iplt_start): New declaration.
2548 (__rela_iplt_end): Likewise.
2549 (__rel_iplt_start): Likewise.
2550 (__rel_iplt_end): Likewise.
2551 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2552 * elf/elf.h (R_386_IRELATIVE): New macro.
2553 (R_X86_64_IRELATIVE): New macro.
2554 (R_386_NUM): Updated.
2555 (R_X86_64_NUM): Likewise.
2556 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2557 (libc_ifunc_hidden_def): New macro.
2558 * sysdeps/generic/dl-irel.h: New file.
2559 * sysdeps/i386/dl-irel.h: New file.
2560 * sysdeps/x86_64/dl-irel.h: New file.
2561 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2562 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2563 Handle R_386_IRELATIVE.
2564 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2565 (elf_machine_lazy_rela): Likewise.
2566 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2568 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2570 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2572 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2573 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
2574 are no differences. If an architecture has bits in CPUID index 1
2575 meaning different things the values for the COMMON_CPUID_INDEX_1
2576 index must not be set.
2577 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2578 (HAS_POPCOUNT): ...this. New macro.
2579 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2580 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
2581 to set the value for Intel and AMD architectures.
2582 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2583 INTEL_CPUID_INDEX_1.
2584 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2587 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
2589 * configure.in: Move AC_CANONICAL_HOST before first use of $host
2592 2009-05-29 Jakub Jelinek <jakub@redhat.com>
2594 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2595 (__expm1l): Set errno to ERANGE on overflow.
2596 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2597 (__tanl): Set errno to EDOM for ±Inf.
2598 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2599 (__cosl): Set errno to EDOM for ±Inf.
2600 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2601 (__sinl): Set errno to EDOM for ±Inf.
2603 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2605 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2606 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2607 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2609 2009-05-29 Ulrich Drepper <drepper@redhat.com>
2611 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
2613 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2615 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
2617 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
2618 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2619 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2620 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2622 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2623 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2624 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2626 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2627 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2629 2009-05-22 Jakub Jelinek <jakub@redhat.com>
2631 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2632 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2633 is, either do nothing at all if __ASSUME_ACCEPT4, or
2634 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2635 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2636 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2638 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2639 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2640 internal_accept4 in socket directory.
2642 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
2644 * sysdeps/ia64/configure.in: New file.
2646 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
2649 * sysdeps/ia64/memchr.S: Use speculative load.
2651 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2652 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2655 * sysdeps/i386/__longjmp.S: Add .text.
2656 * sysdeps/x86_64/__longjmp.S: Likewise.
2658 2009-05-21 Ulrich Drepper <drepper@redhat.com>
2660 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2661 __ASSUME_ACCEPT4 for IA-64.
2663 2009-05-21 Jakub Jelinek <jakub@redhat.com>
2665 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2667 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2668 (SOCKOP_accept4): Define.
2670 2009-05-20 Ulrich Drepper <drepper@redhat.com>
2672 Sun approved the change of the license.
2673 * sunrpc/auth_des.c: Replace license text.
2674 * sunrpc/auth_none.c: Likewise.
2675 * sunrpc/auth_unix.c: Likewise.
2676 * sunrpc/authdes_prot.c: Likewise.
2677 * sunrpc/authuxprot.c: Likewise.
2678 * sunrpc/bindrsvprt.c: Likewise.
2679 * sunrpc/clnt_gen.c: Likewise.
2680 * sunrpc/clnt_perr.c: Likewise.
2681 * sunrpc/clnt_raw.c: Likewise.
2682 * sunrpc/clnt_simp.c: Likewise.
2683 * sunrpc/clnt_tcp.c: Likewise.
2684 * sunrpc/clnt_udp.c: Likewise.
2685 * sunrpc/clnt_unix.c: Likewise.
2686 * sunrpc/des_crypt.c: Likewise.
2687 * sunrpc/des_soft.c: Likewise.
2688 * sunrpc/get_myaddr.c: Likewise.
2689 * sunrpc/getrpcport.c: Likewise.
2690 * sunrpc/key_call.c: Likewise.
2691 * sunrpc/key_prot.c: Likewise.
2692 * sunrpc/openchild.c: Likewise.
2693 * sunrpc/pm_getmaps.c: Likewise.
2694 * sunrpc/pm_getport.c: Likewise.
2695 * sunrpc/pmap_clnt.c: Likewise.
2696 * sunrpc/pmap_prot.c: Likewise.
2697 * sunrpc/pmap_prot2.c: Likewise.
2698 * sunrpc/pmap_rmt.c: Likewise.
2699 * sunrpc/rpc/auth.h: Likewise.
2700 * sunrpc/rpc/auth_unix.h: Likewise.
2701 * sunrpc/rpc/clnt.h: Likewise.
2702 * sunrpc/rpc/des_crypt.h: Likewise.
2703 * sunrpc/rpc/key_prot.h: Likewise.
2704 * sunrpc/rpc/netdb.h: Likewise.
2705 * sunrpc/rpc/pmap_clnt.h: Likewise.
2706 * sunrpc/rpc/pmap_prot.h: Likewise.
2707 * sunrpc/rpc/pmap_rmt.h: Likewise.
2708 * sunrpc/rpc/rpc.h: Likewise.
2709 * sunrpc/rpc/rpc_des.h: Likewise.
2710 * sunrpc/rpc/rpc_msg.h: Likewise.
2711 * sunrpc/rpc/svc.h: Likewise.
2712 * sunrpc/rpc/svc_auth.h: Likewise.
2713 * sunrpc/rpc/types.h: Likewise.
2714 * sunrpc/rpc/xdr.h: Likewise.
2715 * sunrpc/rpc_clntout.c: Likewise.
2716 * sunrpc/rpc_cmsg.c: Likewise.
2717 * sunrpc/rpc_common.c: Likewise.
2718 * sunrpc/rpc_cout.c: Likewise.
2719 * sunrpc/rpc_dtable.c: Likewise.
2720 * sunrpc/rpc_hout.c: Likewise.
2721 * sunrpc/rpc_main.c: Likewise.
2722 * sunrpc/rpc_parse.c: Likewise.
2723 * sunrpc/rpc_parse.h: Likewise.
2724 * sunrpc/rpc_prot.c: Likewise.
2725 * sunrpc/rpc_sample.c: Likewise.
2726 * sunrpc/rpc_scan.c: Likewise.
2727 * sunrpc/rpc_scan.h: Likewise.
2728 * sunrpc/rpc_svcout.c: Likewise.
2729 * sunrpc/rpc_tblout.c: Likewise.
2730 * sunrpc/rpc_util.c: Likewise.
2731 * sunrpc/rpc_util.h: Likewise.
2732 * sunrpc/rpcinfo.c: Likewise.
2733 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2734 * sunrpc/rpcsvc/key_prot.x: Likewise.
2735 * sunrpc/rpcsvc/klm_prot.x: Likewise.
2736 * sunrpc/rpcsvc/mount.x: Likewise.
2737 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2738 * sunrpc/rpcsvc/rex.x: Likewise.
2739 * sunrpc/rpcsvc/rstat.x: Likewise.
2740 * sunrpc/rpcsvc/rusers.x: Likewise.
2741 * sunrpc/rpcsvc/sm_inter.x: Likewise.
2742 * sunrpc/rpcsvc/spray.x: Likewise.
2743 * sunrpc/rpcsvc/yppasswd.x: Likewise.
2744 * sunrpc/rtime.c: Likewise.
2745 * sunrpc/svc.c: Likewise.
2746 * sunrpc/svc_auth.c: Likewise.
2747 * sunrpc/svc_authux.c: Likewise.
2748 * sunrpc/svc_raw.c: Likewise.
2749 * sunrpc/svc_run.c: Likewise.
2750 * sunrpc/svc_simple.c: Likewise.
2751 * sunrpc/svc_tcp.c: Likewise.
2752 * sunrpc/svc_udp.c: Likewise.
2753 * sunrpc/svc_unix.c: Likewise.
2754 * sunrpc/svcauth_des.c: Likewise.
2755 * sunrpc/xcrypt.c: Likewise.
2756 * sunrpc/xdr.c: Likewise.
2757 * sunrpc/xdr_array.c: Likewise.
2758 * sunrpc/xdr_float.c: Likewise.
2759 * sunrpc/xdr_mem.c: Likewise.
2760 * sunrpc/xdr_rec.c: Likewise.
2761 * sunrpc/xdr_ref.c: Likewise.
2762 * sunrpc/xdr_sizeof.c: Likewise.
2763 * sunrpc/xdr_stdio.c: Likewise.
2765 * po/da.po: Update from translation team.
2767 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2769 * sysdeps/sh/____longjmp_chk.S: New file.
2770 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2771 * sysdeps/sh/sh4/__longjmp.S: Likewise.
2773 2009-05-18 Jakub Jelinek <jakub@redhat.com>
2774 Ulrich Drepper <drepper@redhat.com>
2776 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2777 (__nscd_cache_search): Assume each entry in the
2778 hash chain needs one hashentry and half of datahead. Use
2779 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2781 2009-05-16 Ulrich Drepper <drepper@redhat.com>
2783 * posix/sys/wait.h: Fix typos. Pretty printing.
2784 * stdlib/stdlib.h: Likewise. Correct comments.
2787 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2789 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2792 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2794 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2795 Use it if we absolutely cannot reach any more correct list elements
2796 because that many do not fit into the currently mapped database.
2798 2009-05-14 Jakub Jelinek <jakub@redhat.com>
2800 * nscd/nscd_helper.c: Include stddef.h.
2801 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
2802 in a couple of places. Return NULL if trail is not less than
2803 datasize, don't consider dataheads with length smaller than
2804 offsetof (struct datahead, data) + datalen.
2805 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2806 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2807 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2808 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2809 * nscd/nscd_getai.c (__nscd_getai): Likewise.
2810 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2811 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2813 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2815 (fallocate64): ... to this.
2816 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2818 (fallocate64): ... to this.
2819 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2820 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2821 fallocate64@@GLIBC_2.10.
2822 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2823 fallocate64@@GLIBC_2.11.
2824 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2825 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2826 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2827 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2829 * nscd/selinux.c (nscd_avc_destroy): Removed.
2830 * nscd/selinux.h (nscd_avc_destroy): Likewise.
2831 * nscd/nscd.c (termination_handler): Don't call
2834 2009-05-12 Jakub Jelinek <jakub@redhat.com>
2836 * include/atomic.h: Formatting.
2837 (catomic_compare_and_exchange_val_acq): Don't define if already
2838 defined by bits/atomic.h.
2840 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2842 * math/libm-test.inc (expm1_test): Add test for range error.
2844 * Versions.def: Add GLIBC_2.11 for libc.
2845 * debug/Makefile (routines): Add longjmp_chk.
2846 Add rules to build and run tst-longjmp_chk.
2847 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2848 * debug/longjmp_chk.c: New file.
2849 * debug/tst-longjmp_chk.c: New file.
2850 * include/bits/setjmp2.: New file.
2851 * include/stdio.h: Mark __fortify_fail as internal_function.
2852 * setjmp/Makefile (headers): Add bits/setjmp2.h.
2853 * setjmp/bits/setjmp2.h: New file.
2854 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2856 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2858 * sysdeps/i386/____longjmp_chk.S: New file.
2859 * sysdeps/x86_64/____longjmp_chk.S: New file.
2860 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2861 * sysdeps/x86_64/__longjmp.S: Likewise.
2863 * version.h: Bump for 2.11 development.
2865 * elf/check-execstack.c: New file.
2866 * elf/Makefile: Add rules to build and run check-execstack.
2868 2009-05-10 Ulrich Drepper <drepper@redhat.com>
2870 * version.h (VERSION): Bump to 2.10.1.
2872 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2873 compatibility functions.
2874 * nss/getXXent_r.c: Likewise.
2875 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2876 * gshadow/getsgnam_r.c: Likewise.
2877 * gshadow/Version: Remove duplicate entries.
2879 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2880 for recent processor.
2881 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2884 2009-05-09 Ulrich Drepper <drepper@redhat.com>
2886 * version.h (VERSION): Bump for 2.10 release.
2887 * include/features.h (__GLIBC_MINOR__): Bump to 10.
2889 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
2890 same place we add ASFLAGS-config.
2892 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
2895 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2896 or FORMERR and the other NOERROR, don't raise an error.
2898 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
2901 * Makeconfig (+asflags): New variable based upon ASFLAG or
2903 (ASFLAGS): Add override to set ASFLAGS to +asflags.
2904 * config.make.in (asflags-cpu): Add variable based upon
2905 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2907 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2908 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2909 recognizes power6 instruction set due to passing -mcpu=power6 from
2910 --with-cpu=power6 when compiling .S files.
2911 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2915 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2918 2009-05-09 Jakub Jelinek <jakub@redhat.com>
2920 * string/stratcliff.c (do_test): Test for zero length
2921 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2922 at the end of the page.
2924 2009-05-08 Ulrich Drepper <drepper@redhat.com>
2926 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2928 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2931 * po/da.po: Update from translation team.
2933 2009-05-05 Jakub Jelinek <jakub@redhat.com>
2935 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2936 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2938 2009-05-05 Ulrich Drepper <drepper@redhat.com>
2940 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2941 and READ_IMPLIES_EXEC.
2943 2009-05-04 Ulrich Drepper <drepper@redhat.com>
2945 * po/da.po: Update from translation team.
2947 2009-04-29 Jakub Jelinek <jakub@redhat.com>
2949 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2952 2009-04-27 Jakub Jelinek <jakub@redhat.com>
2954 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2955 to MAP_ANON in PROT_NONE mmap64 call.
2956 (open_archive): Likewise.
2957 (file_data_available_p): Use mmap64 instead of mremap.
2958 (enlarge_archive): Likewise. Update head if ah->addr changed.
2959 Attempt to reserve address space after mmap64 region.
2961 2009-04-26 Ulrich Drepper <drepper@redhat.com>
2963 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2964 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2965 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2967 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2968 atanh should set ERANGE.
2971 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2972 result of lookup to make call to implement STT_GNU_IFUNC.
2973 (_dl_profile_fixup): Likewise.
2974 Patch by H.J. Lu <hjl.tools@gmail.com>.
2976 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2979 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2982 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2983 label if it is not used.
2985 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2986 of gmon_hist_hdr and gmon_hdr structures and use them.
2987 * elf/sprof.c: Likewise.
2989 * elf/dl-load.c (open_verify): Add temporary variable to avoid
2992 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2994 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2997 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2998 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3000 (iruserok_af): Use ss_family instead of casts.
3002 * gmon/gmon.c (write_hist): Define real-type variant of
3003 gmon_hist_hdr structure and use it.
3004 (write_gmon): Likewise for gmon_hdr.
3006 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3007 function if we are not going to define it.
3008 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3010 * inet/inet6_option.c (option_alloc): Add temporary variable to
3013 * libio/strfile.h (struct _IO_streambuf): Use correct type and
3014 name of VTable element.
3015 * libio/iovsprintf.c: Avoid casts to avoid warnings.
3016 * libio/iovsscanf.c: Likewise.
3017 * libio/vasprintf.c: Likewise.
3018 * libio/vsnprintf.c: Likewise.
3019 * stdio-common/isoc99_vsscanf.c: Likewise.
3020 * stdlib/strfmon_l.c: Likewise.
3021 * debug/vasprintf_chk.c: Likewise.
3022 * debug/vsnprintf_chk.c: Likewise.
3023 * debug/vsprintf_chk.c: Likewise.
3025 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3028 2009-04-26 Jakub Jelinek <jakub@redhat.com>
3030 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3032 2009-04-25 Ulrich Drepper <drepper@redhat.com>
3034 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3036 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
3037 * sysdeps/i386/fpu/s_tanf.S: Likewise.
3038 * sysdeps/i386/fpu/s_tanl.S: Likewise.
3039 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3040 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3041 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3042 * math/libm-test.inc: Add tests for errno after tan calls with
3045 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3046 errno value vor pow(+-0,neg).
3047 * math/libm-test.inc (pow_test): Add tests for errno value for
3050 * math/w_fmod.c: Also handle x=±Inf as error.
3051 * math/w_fmodf.c: Likewise.
3052 * math/w_fmodl.c: Likewise.
3053 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3056 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
3057 * sysdeps/i386/fpu/s_cosf.S: Likewise.
3058 * sysdeps/i386/fpu/s_cosl.S: Likewise.
3059 * sysdeps/i386/fpu/s_sin.S: Likewise.
3060 * sysdeps/i386/fpu/s_sinf.S: Likewise.
3061 * sysdeps/i386/fpu/s_sinl.S: Likewise.
3062 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3063 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3064 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3065 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3066 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3067 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3068 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3069 * math/libm-test.inc: Add tests for errno after sin/cos calls with
3072 * stdlib/strtod_l.c (round_and_return): We have to set errno to
3073 ERANGE for underflows.
3074 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3076 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3079 * libio/tst-widetext.input: Remove surrogates.
3081 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3083 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3084 for lgamma should set errno to ERANGE, not EDOM.
3085 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3087 2009-04-24 Ulrich Drepper <drepper@redhat.com>
3090 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3093 * locale/programs/locarchive.c (enlarge_archive): Conserve address
3094 space when temporarily mapping the whole content of the old file.
3097 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3100 2009-04-24 Jakub Jelinek <jakub@redhat.com>
3102 * iconvdata/sjis.c (BODY): Don't advance inptr before
3103 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3104 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3107 2009-04-24 Ulrich Drepper <drepper@redhat.com>
3109 * locale/locarchive.h (struct locarhandle): Rename len field to
3110 mmaped and add new reserved field.
3111 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3112 (create_archive): Reserve address space and then map file into it.
3113 (open_archive): Likewise.
3114 (file_data_available_p): New function.
3115 (compare_from_file): New function.
3116 (close_archive): Adjust to member name changes.
3117 (add_locale): Before comparing locale data, check it is mapped.
3118 Otherwise fall back to reading from the file.
3120 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
3122 * stdio-common/psiginfo.c: Include <errno.h>.
3124 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3127 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3128 to get consistency between 32 and 64 bit architectures.
3131 * sysdeps/unix/make-syscalls.sh: Add rule to create target
3132 directory for dummy syscall rules.
3133 Patch by Chris Steinbroner <hesh@pobox.com>.
3135 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
3138 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3141 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3143 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
3144 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3146 2009-04-23 Jakub Jelinek <jakub@redhat.com>
3148 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
3149 data from vector to temporary buffer and call PWRITEV after it
3150 instead of vice versa.
3151 * sysdeps/posix/preadv.c: Fix up comment.
3152 * misc/preadv.c: Likewise.
3153 * misc/preadv64.c: Likewise.
3154 * misc/pwritev.c: Likewise.
3155 * misc/pwritev64.c: Likewise.
3156 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3158 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3160 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3162 * shadow/Makefile (tests): Add tst-shadow.
3163 * shadow/tst-shadow.c: New file.
3166 * gshadow/Makefile: New file.
3167 * gshadow/Versions: New file.
3168 * gshadow/fgetsgent.c: New file.
3169 * gshadow/fgetsgent_r.c: New file.
3170 * gshadow/getsgent.c: New file.
3171 * gshadow/getsgent_r.c: New file.
3172 * gshadow/getsgnam.c: New file.
3173 * gshadow/getsgnam_r.c: New file.
3174 * gshadow/gshadow.h: New file.
3175 * gshadow/putsgent.c: New file.
3176 * gshadow/sgetsgent.c: New file.
3177 * gshadow/sgetsgent_r.c: New file.
3178 * gshadow/tst-gshadow.c: New file.
3179 * include/gshadow.h: New file.
3180 * Makeconfig (all-subdirs): Add gshadow.
3181 * Makefile (installed-headers): Add gshadow/gshadow.h.
3182 * nss/Makefile (databases): Add sgrp.
3183 * nss/Versions: Add gshadow functions as private exports.
3184 * nss/nsswitch.conf: Add gshadow entry.
3185 * nss/sgrp-lookup.c: New file.
3186 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
3187 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3188 * nss/nss_files/files-sgrp.c: New file.
3189 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3190 * sysdeps/unix/sysv/linux/paths.h: Likewise.
3192 2009-04-22 Ulrich Drepper <drepper@redhat.com>
3194 * stdio-common/printf.h: Add missing const to register_printf_modifier.
3195 * stdio-common/reg-modifier.c: Likewise.
3197 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
3199 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3202 2009-04-20 Ulrich Drepper <drepper@redhat.com>
3205 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3206 headers up to 2.6.30.
3208 * po/ca.po: Update from translation team.
3210 2009-04-19 Ulrich Drepper <drepper@redhat.com>
3213 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3214 an object that uses static TLS if the TLS modid is higher than the
3215 reserve we always allocate. At least for multi-threaded code.
3217 2009-04-18 Ulrich Drepper <drepper@redhat.com>
3219 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3220 Numerically stable check for valid width.
3222 * locale/programs/locarchive.c (open_archive): Map the entire file
3223 and not just the administrative data.
3224 (add_locale): When we find a hash sum match compare the content
3227 * malloc/malloc.c (malloc_info): Output address space information.
3229 2009-04-17 Ulrich Drepper <drepper@redhat.com>
3231 * malloc/malloc.c (malloc_info): Also output system memory information.
3233 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3234 architectures have preadv/pwritev in 2.6.30.
3236 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3237 * sysdeps/posix/readv.c: Likewise.
3238 Reported by Markus Armbruster <armbru@redhat.com>.
3240 * malloc/hooks.c (top_check): Force hook value into register.
3242 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3244 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3245 calls to _dl_relocate_object.
3247 2009-04-16 Ulrich Drepper <drepper@redhat.com>
3250 * malloc/malloc.c (force_reg): Define.
3251 (sYSMALLOc): Load hook variable into variable
3252 before test and force into register.
3253 (sYSTRIm): Likewise.
3254 (public_mALLOc): Force hook value into register.
3255 (public_fREe): Likewise.
3256 (public_rEALLOc): Likewise.
3257 (public_mEMALIGn): Likewise.
3258 (public_vALLOc): Likewise.
3259 (public_pVALLOc): Likewise.
3260 (public_cALLOc): Likewise.
3261 (__posix_memalign): Likewise.
3262 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3263 before test and force into register.
3264 * malloc/hooks.c (top_check): Likewise.
3265 (public_sET_STATe): Pretty printing.
3267 * resolv/res_send.c (send_dg): Don't just ignore the result we got
3268 in case we only receive one reply in single-request mode.
3270 2009-04-16 Jakub Jelinek <jakub@redhat.com>
3272 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3273 are dlopened in statically linked program even for __LM_ID_CALLER.
3275 2009-04-16 Ulrich Drepper <drepper@redhat.com>
3277 * resolv/res_send.c (send_dg): Don't switch into single-request
3278 mode if we already are in it.
3280 2009-04-15 Ulrich Drepper <drepper@redhat.com>
3282 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3283 are always at least 4 bytes in the returned line.
3285 2009-04-15 Jakub Jelinek <jakub@redhat.com>
3287 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3288 __libc_use_alloca (8192), if the stack is too small use 512 bytes
3289 instead of 8K. Stop searching in /proc/stat after hitting first
3290 line not starting with cpu.
3291 (next_line): Truncate too long
3292 lines at buffer size * 3/4 instead of pretending there were line
3293 breaks inside of large lines.
3295 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3297 * sysdeps/x86_64/mp_clz_tab.c: New file.
3299 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
3300 Ulrich Drepper <drepper@redhat.com>
3302 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3303 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3304 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3306 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
3308 * sysdeps/sh/libc-tls.c: New file.
3310 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3312 2009-04-14 Roland McGrath <roland@redhat.com>
3314 * elf/elf.h: Add various missing ARM constants, to match binutils.
3316 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3318 Optimizations from GMP.
3319 * sysdeps/x86_64/add_n.S: New file.
3320 * sysdeps/x86_64/addmul_1.S: New file.
3321 * sysdeps/x86_64/lshift.S: New file.
3322 * sysdeps/x86_64/mul_1.S: New file.
3323 * sysdeps/x86_64/rshift.S: New file.
3324 * sysdeps/x86_64/sub_n.S: New file.
3325 * sysdeps/x86_64/submul_1.S: New file.
3327 2009-04-14 Jakub Jelinek <jakub@redhat.com>
3329 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3330 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3331 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3332 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3334 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3336 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3339 2009-04-13 Ulrich Drepper <drepper@redhat.com>
3341 * sysdeps/x86-64/strrchr.S: New file.
3343 2009-04-10 Ulrich Drepper <drepper@redhat.com>
3345 * stdio-common/printf.h (struct printf_info): Add user element.
3346 New types printf_arginfo_size_function, printf_va_arg_function.
3347 Declare register_printf_specifier, register_printf_modifier,
3348 register_printf_type.
3349 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3350 (union printf_arg): Add pa_user element.
3351 Adjust __printf_arginfo_table type.
3352 Add __printf_va_arg_table, __printf_modifier_table,
3353 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3355 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3356 If registered arginfo call failed try normal specifier.
3357 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3359 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3360 * stdio-common/Versions: Export register_printf_modifier,
3361 register_printf_type, and register_printf_specifier for GLIBC_2.10.
3362 * stdio-common/reg-modifier.c: New file.
3363 * stdio-common/reg-type.c: New file.
3364 * stdio-common/reg-printf.c (__register_printf_specifier): New
3365 function. Mostly the old __register_printf_function function but
3366 uses locking and type of third parameter changed.
3367 (__register_printf_function): Implement using
3368 __register_printf_specifier.
3369 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3370 calls to arginfo functions. Allocate enough memory for user-defined
3371 types. Call new va_arg functions to get user-defined types.
3372 Try installed handlers even for existing format specifiers first.
3374 2009-04-09 Ulrich Drepper <drepper@redhat.com>
3376 * sysdeps/x86_64/rawmemchr.S: New file.
3378 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3379 Simplified code and possible copy problem fixed.
3381 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3382 function if it is not defined. Add some necessary casts.
3383 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3385 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3386 have preadv/pwritev in 2.6.30.
3388 2009-04-08 Ulrich Drepper <drepper@redhat.com>
3390 * malloc/malloc.c (malloc_info): New function.
3391 * malloc/malloc.h: Declare it.
3392 * malloc/Versions: Export malloc_info for GLIBC_2.10.
3394 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3397 * malloc/malloc.c (_int_realloc): Add parameter with old block
3398 size. Remove duplicated test. Don't handle mmap'ed blocks here.
3400 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3402 2009-04-07 Ulrich Drepper <drepper@redhat.com>
3404 * sysdeps/x86_64/strchrnul.S: New file.
3406 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3407 depending libcrypt on -lfreebl3.
3409 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3410 preadv/pwritev in 2.6.30.
3412 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3413 instead of __strcasecmp.
3415 * string/stratcliff.c (do_test): Add memchr tests..
3416 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3417 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3418 first read quad word.
3420 2009-04-06 Ulrich Drepper <drepper@redhat.com>
3422 * string/strverscmp.c (__strverscmp): Fix last cleanups.
3423 * string/tst-svc.input: Add new test case.
3424 * string/tst-svc.expect: Adjust.
3425 * string/Makefile: Don't ignore tst-svc error.
3427 * sysdeps/x86_64/memchr.S: New file.
3429 * resolv/resolv.h (RES_SNGLKUP): Define.
3430 * resolv/res_init.c (res_setoptions): Recognize single-request option.
3431 * resolv/res_send.c (send_dg): If we sent two requests at once and
3432 only get one reply before timeout switch to mode where we send the
3433 second request only after the first answer has been received.
3435 2009-04-05 Ulrich Drepper <drepper@redhat.com>
3437 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3438 * sysdeps/x86_64/strchr.S: Likewise.
3440 2009-04-03 Ulrich Drepper <drepper@redhat.com>
3442 * configure.in: We need to test for the compiler earlier.
3444 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3445 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3447 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3448 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3450 * misc/preadv.c: New file.
3451 * misc/preadv64.c: New file.
3452 * misc/pwritev.c: New file.
3453 * misc/pwritev64.c: New file.
3454 * sysdeps/posx/preadv.c: New file.
3455 * sysdeps/posx/preadv64.c: New file.
3456 * sysdeps/posx/pwritev.c: New file.
3457 * sysdeps/posx/pwritev64.c: New file.
3458 * sysdeps/unix/sysv/linux/preadv.c: New file.
3459 * sysdeps/unix/sysv/linux/preadv64.c: New file.
3460 * sysdeps/unix/sysv/linux/pwritev.c: New file.
3461 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3462 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3463 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3465 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3467 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3469 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3470 __ASSUME_COMPLETE_READV_WRITEV.
3471 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3472 with modern kernels.
3473 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3475 * sysdeps/posix/readv.c: Since read is a cancellation point we have
3476 to free a possible malloced buffer in case of cancellation.
3477 * sysdeps/posix/writev.c: Likewise for write.
3479 2009-04-02 Ulrich Drepper <drepper@redhat.com>
3481 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3483 * configure.in: Recognize --enable-nss-crypt.
3484 * config.make.in: Add nss-crypt entry.
3485 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3486 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
3487 and include path for NSS directory to compiler for md5-crypt,
3488 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
3489 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3490 function implementation, use NSS. Introduce wrappers around the
3491 hash function calls. Little code size optimization.
3492 * crypt/sha256-crypt.c: Likewise.
3493 * crypt/sha512-crypt.c: Likewise.
3494 * scripts/check-local-headers.sh: Ignore nss3 directory.
3496 * configure.in: Rename pic_default to libc_cv_pic_default.
3497 * config.make.in: Likewise.
3499 2009-04-01 Roland McGrath <roland@redhat.com>
3501 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3502 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3503 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3504 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3505 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3506 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3507 (R_SPARC_NUM): Update.
3508 From Dave Miller <davem@davemloft.net>.
3510 2009-04-01 Ulrich Drepper <drepper@redhat.com>
3512 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3514 2009-03-31 Ulrich Drepper <drepper@redhat.com>
3516 * elf/dl-open.c: Keep track of used name spaces and only iterate over
3517 those which are used.
3518 * elf/dl-addr.c: Likewise.
3519 * elf/dl-caller.c: Likewise.
3520 * elf/dl-fini.c: Likewise.
3521 * elf/dl-iteratephdr.c: Likewise.
3522 * elf/dl-libc.c: Likewise.
3523 * elf/dl-load.c: Likewise.
3524 * elf/dl-support.c: Likewise.
3525 * elf/dl-sym.c: Likewise.
3526 * elf/rtld.c: Likewise.
3527 * sysdeps/generic/ldsodefs.h: Likewise.
3529 * elf/dl-load.c: Remove support for systems without MAP_ANON.
3530 * elf/dl-minimal.c: Likewise.
3531 * elf/dl-misc.c: Likewise.
3532 * elf/rtld.c: Likewise.
3533 * sysdeps/generic/ldsodefs.h: Likewise.
3535 2009-03-30 Ulrich Drepper <drepper@redhat.com>
3537 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3538 Avoid reuse of complex expression.
3540 * po/fr.po: Update from translation team.
3542 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3544 * include/dirent.h: Yet more changes to match sort function type
3546 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3547 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3548 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3550 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
3552 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3554 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3556 * nscd/connections.c (restart): Try to preserve the process name
3557 by reading the /proc/self/exe symlink and using the return name.
3558 Patch by Jeff Bastian <jbastian@redhat.com>.
3560 2009-03-15 Ulrich Drepper <drepper@redhat.com>
3563 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3564 if we are not loading a new audit library.
3565 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3566 Only use profiling trampoline for auditing if we are not relocating
3568 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3569 * elf/rtld.c: Likewise.
3570 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3572 * elf/rtld.c (dl_main): Extend help message for --audit option.
3575 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3576 alphasort64, versionsort, and versionsort64 to POSIX 2008.
3577 * dirent/alphasort.c: Adjust implementation to type change.
3578 * dirent/alphasort64.c: Likewise.
3579 * dirent/scandir.c: Likewise.
3580 * dirent/versionsort.c: Likewise.
3581 * dirent/versionsort64.c: Likewise.
3582 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3584 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3588 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3589 correctly. Set segleft member in output as required.
3590 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3591 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3594 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3595 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3596 * inet/Makefile (tests): Add tst-inet6_rth.
3597 * inet/tst-inet6_rth.c: New file.
3600 * string/strlen.c (strlen): Fix omission in the expression to test
3603 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3605 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3607 * elf/dl-runtime.c (reloc_offset): Define.
3608 (reloc_index): Define.
3609 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3610 (_dl_fixup_profile): Likewise. Use reloc_index instead of
3611 computing index from reloc_offset.
3612 (_dl_call_pltexit): Likewise.
3613 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3614 the relocation index to _dl_fixup.
3615 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3617 * sysdeps/x86_64/dl-runtime.c: New file.
3620 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3621 alignment of La_x86_64_regs. Store xmm parameters.
3622 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3625 * string/strverscmp.c (__strverscmp): Fix case of different digits
3626 in fractional part of string.
3627 Patch by Jingyu Liu <jyliu@fortinet.com>.
3628 * string/Makefile (tests): Add tst-svc2.
3629 * string/tst-svc2.c: New file.
3631 * string/strverscmp.c (__strverscmp): Optimize size of tables.
3633 * locale/iso-639.def: Add Min Nan.
3635 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3638 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3640 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3642 * elf/dl-sysdep.c (auxvars): Compress data structure.
3644 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3645 STT_GNU_IFUNC handling.
3646 (elf_machine_rela): Likewise.
3648 2009-03-13 Ulrich Drepper <drepper@redhat.com>
3650 * config.h.in (USE_MULTIARCH): Define.
3651 * configure.in: Handle --enable-multi-arch.
3652 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3653 (_dl_fixup_profile): Likewise.
3654 * elf/do-lookup.c (dl_lookup_x): Likewise.
3655 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3656 * elf/elf.h (STT_GNU_IFUNC): Define.
3657 * include/libc-symbols.h (libc_ifunc): Define.
3658 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3659 framework in init-arch.h to get CPUID values.
3660 * sysdeps/x86_64/multiarch/Makefile: New file.
3661 * sysdeps/x86_64/multiarch/init-arch.c: New file.
3662 * sysdeps/x86_64/multiarch/init-arch.h: New file.
3663 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3665 * config.make.in (experimental-malloc): Define.
3666 * configure.in: Handle --enable-experimental-malloc.
3667 * malloc/Makefile: Handle experimental-malloc flag.
3668 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3669 * malloc/arena.c: Likewise.
3670 * malloc/hooks.c: Likewise.
3671 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3673 2009-03-11 Ulrich Drepper <drepper@redhat.com>
3675 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3676 prediction. A few size optimizations.
3678 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3680 * time/tzset.c: Optimize a bit for size.
3682 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3684 * include/stdio.h (fmemopen): Add libc_hidden_proto.
3685 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3687 * elf/sprof.c: Avoid warning about multi-line comment.
3689 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3691 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3693 * time/tst-posixtz.c: Add tests for quoted timezone names.
3695 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3697 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3698 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3699 200809L instead of 200112L.
3700 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3701 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3703 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3704 instead of __quick_exit_funcs to __run_exit_handlers.
3705 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3706 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3707 (__cxa_at_quick_exit): Remove attribute_hidden.
3708 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3709 to __run_exit_handlers.
3710 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3713 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3715 * po/id.po: Update from translation team.
3717 2009-02-18 Jakub Jelinek <jakub@redhat.com>
3719 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3720 .machine push; .machine "power6" and .machine pop around mtfsf
3721 insns outside of _ARCH_PWR6 define.
3722 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3723 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3725 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3727 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3728 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3729 relax_fenv_state): Likewise.
3731 2009-03-08 Ulrich Drepper <drepper@redhat.com>
3733 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3735 (static-only-routines): Add at_quick_exit.
3736 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3738 * stdlib/quick_exit.c: New file.
3739 * stdlib/at_quick_exit.c: New file.
3740 * stdlib/cxa_at_quick_exit.c: New file.
3741 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
3743 (__internal_atexit): New function.
3744 (__new_exitfn): Now takes parameter to point to the list to use.
3745 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3746 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
3747 (exit): ...here. Just call __run_exit_handlers appropriately.
3748 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3749 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
3750 * stdlib/on_exit.c: Adjust call to __new_exitfn.
3751 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3753 * po/id.po: Update from translation team.
3755 2009-03-07 Ulrich Drepper <drepper@redhat.com>
3757 * po/ru.po: Update from translation team.
3759 2009-03-04 Ulrich Drepper <drepper@redhat.com>
3761 * po/nl.po: Update from translation team.
3763 2009-03-03 Ulrich Drepper <drepper@redhat.com>
3765 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3766 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3767 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3768 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3769 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3770 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3771 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3773 * po/pl.po: Update from translation team.
3775 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3778 * sysdeps/unix/sysv/linux/fallocate.c: New file.
3779 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3780 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3781 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3782 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3783 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3784 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3786 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3787 Add fallocate and fallocate64.
3789 * io/fcntl.h: Pretty printing.
3791 2009-03-02 Richard Guenther <rguenther@suse.de>
3793 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3794 attribute also for non-C99 inline semantics variant.
3796 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3798 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3799 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3800 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3801 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3807 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3809 * po/cs.po: Update from translation team.
3811 2009-02-28 Ulrich Drepper <drepper@redhat.com>
3813 * po/bg.po: Update from translation team.
3814 * po/sv.po: Likewise.
3815 * po/fi.po: Likewise.
3816 * po/vi.po: Likewise.
3818 2009-02-27 Roland McGrath <roland@redhat.com>
3820 * Makeconfig (%.v.i): Depend on Makeconfig.
3821 Exclude % lines from initial #-comment removal.
3823 2009-02-27 Ulrich Drepper <drepper@redhat.com>
3825 * po/ko.po: Update from translation team.
3827 2009-02-26 Roland McGrath <roland@redhat.com>
3829 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3830 avoids unused warning.
3832 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
3833 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3835 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3836 sys/ucontext.h and asm/elf.h. Include sys/user.h.
3837 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3838 and asm/user.h. Include asm/ptrace.h.
3839 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3840 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3841 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3843 (start_thread): Don't undefine.
3844 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3847 2009-02-26 Ulrich Drepper <drepper@redhat.com>
3849 * wctype/wctype.h: The *_l functions are in POSIX 2008.
3850 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3851 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3852 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3853 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3855 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3856 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3857 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3858 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3859 _SC_THREAD_ROBUST_PRIO_PROTECT.
3860 * posix/unistd.h: fexecve is in POSIX 2008.
3861 * time/time.h: strftime_l is in POSIX 2008.
3862 * io/sys/stat.h: futimens is in POSIX 2008.
3863 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3864 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3865 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3866 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3867 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3868 open_memstream, and vdprintf are in POSIX 2008.
3870 2009-02-25 Ulrich Drepper <drepper@redhat.com>
3872 * include/features.h: Define macros for XPG7/POSIX 2008.
3873 * ctype/ctype.h: The *_l functions are in POSIX 2008.
3874 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3876 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3877 * locale/xlocale.h: Define locale_t type.
3878 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3879 in POSIX 2008. Don't define locale_t here.
3880 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3881 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3882 UTIME_OMIT only with __USE_ATFILE.
3883 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3884 * stdio-common/psiginfo.c: New file.
3885 * stdio-common/psiginfo-data.h: New file.
3886 * stdio-common/psiginfo-define.h: New file.
3887 * stdio-common/Makefile (routines): Add psiginfo.
3888 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3889 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3890 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3891 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3892 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3893 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3894 * io/sys/stat.h: Move mknodat definition into same conditional as
3896 * time/sys/time.h: futimesat is not among the functions accepted
3897 into the POSIX standard.
3899 * include/features.h: If no feature selection given and we select
3900 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3901 * posix/Versions: Export __posix_getopt.
3902 * posix/getopt.c (_getopt_initialize): Take additional parameter.
3903 Use it to alternatively initialize __posixly_correct.
3904 (_getopt_internal_r): Take addition parameter. Pass on to
3906 (_getopt_internal): Take addition parameter. Pass on to
3908 (getopt): Pass additional zero to _getopt_internal.
3909 (__posix_getopt): New function.
3910 * posix/getopt.h: Add redirection for getopt.
3911 * posix/getopt1.c (getopt_long): Pass additional zero to
3913 (getopt_long_only): Likewise.
3914 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3915 (_getopt_long_only_r): Likewise.
3916 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3919 2009-02-24 Ulrich Drepper <drepper@redhat.com>
3921 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3922 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3923 * sysdeps/posix/sysconf.c (__sysconf): Handle
3924 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3925 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3927 2009-02-24 Roland McGrath <roland@redhat.com>
3930 * README.template: Reworded not to use substituted version number.
3932 * README: ... here (no longer generated).
3933 * Makefile (README): Target removed.
3935 2009-02-24 Ulrich Drepper <drepper@redhat.com>
3937 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3938 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3941 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3943 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3945 2009-02-22 Ulrich Drepper <drepper@redhat.com>
3947 * po/bg.po: Update from translation team.
3949 2009-02-16 Jakub Jelinek <jakub@redhat.com>
3951 * stdlib/monetary.h: Uglify function parameter names.
3952 * sunrpc/rpc/pmap_clnt.h: Likewise.
3953 * sunrpc/rpc/svc.h: Likewise.
3954 * sunrpc/rpc/xdr.h: Likewise.
3955 * sunrpc/rpc/clnt.h: Likewise.
3956 * resolv/netdb.h: Likewise.
3957 * resolv/arpa/nameser.h: Likewise.
3958 * resolv/resolv.h: Likewise.
3959 * argp/argp.h: Likewise.
3960 * locale/langinfo.h: Likewise.
3961 * io/sys/stat.h: Likewise.
3962 * posix/spawn.h: Likewise.
3963 * nis/rpcsvc/nislib.h: Likewise.
3964 * malloc/obstack.h: Likewise.
3965 * sysdeps/ia64/bits/link.h: Likewise.
3966 * sysdeps/i386/bits/link.h: Likewise.
3967 * sysdeps/s390/bits/link.h: Likewise.
3968 * sysdeps/powerpc/bits/link.h: Likewise.
3969 * sysdeps/x86_64/bits/link.h: Likewise.
3970 * sysdeps/sparc/bits/link.h: Likewise.
3971 * sysdeps/sh/bits/link.h: Likewise.
3972 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3973 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3974 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3975 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3977 2008-12-01 Fredrik Unger <fred@tree.se>
3979 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3980 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3981 _FP_UNPACK_RAW_2, fix up first argument.
3983 2009-02-15 Ulrich Drepper <drepper@redhat.com>
3985 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3986 (GET_NPROCS_PARSER): Change parameters and use next_line.
3987 (__get_nprocs): Rewrite to not use stdio routines.
3988 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3989 Change parameters and use next_line.
3991 2009-02-13 Ulrich Drepper <drepper@redhat.com>
3994 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3995 Change mempool_alloc prototype.
3996 * nscd/mem.c (gc): Don't handle mem_in_flight.
3997 (mempool_alloc): Third parameter now only indicates whether this is the
3998 first call (to allocate data) or not. If it is, get db rdlock.
3999 Release it on error. Don't handle mem_in_flight.
4000 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4001 Adjust third parameter of mempool_alloc calls.
4002 Nothing to do here in case mempool_alloc fails.
4003 Avoid local variable shadowing parameter. No need to get db rdlock
4004 before calling cache_add.
4005 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
4006 no mem_in_flight array anymore.
4007 * nscd/connections.c: Remove definition and handling of mem_in_flight.
4008 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4009 mempool_alloc calls. Mark he parameter as const. Nothing to do here
4010 in case mempool_alloc fails. No need to get db rdlock before calling
4012 * nscd/hstcache.c (cache_addhst): Likewise.
4013 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4014 * nscd/servicescache.c (cache_addserv): Likewise.
4015 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
4017 2009-02-11 Ulrich Drepper <drepper@redhat.com>
4019 * po/lt.po: Update from translation team.
4021 2009-02-10 Ulrich Drepper <drepper@redhat.com>
4023 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4024 defined, allow additional data to be added using the optional
4025 MORE_ELF_HEADER_DATA macro.
4026 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4027 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4029 2009-02-08 Ulrich Drepper <drepper@redhat.com>
4031 * include/atomic.h: Define catomic_and if not already defined.
4032 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4033 * sysdeps/i386/i486/bits/atomic.h: Likewise.
4035 2009-02-07 Ulrich Drepper <drepper@redhat.com>
4037 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4039 (_int_realloc): Likewise. Third argument is now padded size
4040 All _int_* functions are now static.
4042 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4043 * malloc/arena.c: Likewise.
4044 * include/malloc.h: Remove now unnecessary declarations of the _int_*
4047 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4050 * malloc/malloc.c: Add branch prediction for use of the hooks.
4052 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4054 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4057 * bits/confname.h: Add SUSv7 macros for getconf environments.
4058 * bits/environments.h: Likewise.
4059 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4060 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4061 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4062 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4063 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4064 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4065 * posix/getconf.c: Likewise.
4066 * posix/sysconf.c: Likewise.
4067 * sysdeps/posix/sysconf.c: Likewise.
4068 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4071 2009-01-16 Petr Baudis <pasky@suse.cz>
4074 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4075 even if we currently have zero nscount.
4077 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4080 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4081 the input line is too long.
4083 * po/Makefile (libc.pot): Add f_print as function taking c-format
4086 * debug/xtrace.sh: Unify translatable messages.
4087 * elf/ldd.bash.in: Likewise.
4088 * elf/sprof.c: Likewise.
4089 * locale/programs/locale.c: Likewise.
4090 * malloc/memusage.sh: Likewise.
4091 * nss/getent.c: Likewise.
4093 2009-02-06 Joseph Myers <joseph@codesourcery.com>
4095 * debug/pcprofiledump.c (print_version,
4096 argp_program_version_hook): New function.
4097 * elf/ldconfig.c (more_help): New function.
4099 * elf/sln.c (usage): New function.
4100 (main): Support --help and --version.
4101 * malloc/memusagestat.c (print_version): New function.
4102 (argp_program_version_hook): New variable.
4103 * nscd/nscd.c (more_help): New function.
4105 * posix/getconf.c (main): Send --version output to stdout.
4107 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4108 arguments. All callers changed.
4109 (print_version): New function.
4110 (parseargs): Support --help and --version.
4111 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
4113 (print_version): New function.
4114 (main): Use getopt_long. Support --help and --version.
4115 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4118 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4120 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4121 (update_data): Fix handling of wrapping back
4122 to the beginning of the buffer.
4125 * stdio-common/psignal.c (psignal): Fix test for empty string.
4127 2009-02-05 Ulrich Drepper <drepper@redhat.com>
4129 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4130 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
4131 move _null_auth to .rodata.
4133 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4136 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4138 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4139 today than when the original code was written. Use larger
4140 buffers. This also makes it unnecessary to have stat information,
4141 if this causes extra efforts.
4142 (__opendir): In case O_DIRECTORY works, don't call fstat just for
4145 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
4147 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4149 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4150 * sysdeps/sh/sh4/__longjmp.S: Likewise.
4151 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4152 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4153 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4154 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4156 2009-02-04 Ulrich Drepper <drepper@redhat.com>
4158 * po/ru.po: Update from translation team.
4160 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
4162 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4163 Add _tid slot to maintain consistency with kernel.
4165 2009-02-04 Ulrich Drepper <drepper@redhat.com>
4167 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4168 incomplete characters at end of input buffer.
4169 * libio/Makefile (tests): Add tst-fgetwc.
4170 * libio/tst-fgetwc.c: New file.
4171 * libio/tst-fgetwc.input: New file.
4173 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
4175 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4177 2009-02-02 Ulrich Drepper <drepper@redhat.com>
4180 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4181 *OUTBUFSTART unless the whole output fit into the buffer.
4182 * iconv/Makefile (tests): Add tst-iconv4.
4183 * iconv/tst-iconv4.c: New file.
4185 2009-02-01 Ulrich Drepper <drepper@redhat.com>
4187 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4188 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4190 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
4192 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4193 newer linker scripts.
4195 2009-01-30 Ulrich Drepper <drepper@redhat.com>
4198 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4199 inotify_rm_watch should have type int.
4201 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
4203 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4204 Make aligned_restore_vmx a local symbol.
4205 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4208 2009-01-30 Andreas Jaeger <aj@suse.de>
4210 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4211 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4212 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4213 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4214 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4215 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4216 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4218 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
4221 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4222 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4224 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
4227 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4228 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4229 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4230 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4232 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
4234 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4235 memcpy instead of memcmp.
4236 (_dl_setup_pointer_guard): Likewise.
4238 2009-01-30 Ulrich Drepper <drepper@redhat.com>
4240 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4241 manipulated brk, use malloc_printerr.
4242 * misc/sbrk.c (__sbrk): Better error handling for nonsense
4245 2009-01-30 Jakub Jelinek <jakub@redhat.com>
4247 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4248 rindex): For C++ add inlines so that they can be recognized as
4250 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4252 2009-01-29 Ulrich Drepper <drepper@redhat.com>
4253 Jakub Jelinek <jakub@redhat.com>
4255 * string/string.h: Define correct C++ prototypes for gcc 4.4.
4256 * wcsmbs/wchar.h: Likewise.
4258 2009-01-29 Ulrich Drepper <drepper@redhat.com>
4260 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4261 (stackinfo_sub_sp): Define.
4263 2009-01-28 Ulrich Drepper <drepper@redhat.com>
4266 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4267 * include/alloca.h (alloca_account): Define.
4268 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4269 (stackinfo_sub_sp): Define.
4271 * nscd/connections.c (nscd_init): If database file access fails
4272 check whether this is due to permission problems and bail in that
4276 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4277 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4279 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4281 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4282 Add "t" to clobber list.
4283 (INTERNAL_SYSCALL_NCS): Likewise.
4285 2009-01-28 Ulrich Drepper <drepper@redhat.com>
4287 * nss/getent.c (print_networks): Don't print comma between aliases.
4289 2009-01-23 Ulrich Drepper <drepper@redhat.com>
4291 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4293 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4295 * misc/Makefile (tests): Add bug-hsearch1.
4296 * misc/bug-hsearch1.c: New file.
4298 2009-01-22 Roland McGrath <roland@redhat.com>
4300 * Makeconfig (%.v.i): Strip trailing # comments,
4301 not only whole-line comments.
4303 2009-01-10 Ulrich Drepper <drepper@redhat.com>
4305 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4306 one parameter. If non-NULL use it to initialize return value.
4307 (_dl_setup_pointer_guard): New function.
4308 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4309 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4310 * elf/rtld.c (security_init): Pass _dl_random to
4311 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
4313 * elf/dl-sysdep.c (_dl_random): New variable.
4314 (_dl_sysdep_start): Handle AT_RANDOM.
4315 (_dl_show_auxv): Likewise.
4316 * elf/dl-support.c (_dl_random): New variable.
4317 (_dl_aux_init): Handle AT_RANDOM.
4318 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4319 to _dl_setup_stack_chk_guard.
4321 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4323 2009-01-10 Roland McGrath <roland@redhat.com>
4325 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4327 2009-01-08 Ulrich Drepper <drepper@redhat.com>
4329 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4332 * nss/nss_files/files-parse.c (strtou32): New function.
4333 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4334 across 32-bit and 64-bit platforms.
4335 (INT_FIELD_MAYBE_NULL): Likewise.
4337 2009-01-08 Jakub Jelinek <jakub@redhat.com>
4340 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4341 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4342 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4345 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
4348 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4349 being NULL also if there are no backreferences.
4350 * posix/rxspencer/tests: Add testcases.
4352 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
4355 * posix/bug-regex17.c: Add testcases.
4356 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4359 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
4361 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4362 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4363 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4364 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4366 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4367 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4368 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4369 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4370 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4371 * sysdeps/unix/sysv/linux/s390/Versions: New file.
4373 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
4375 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4376 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4377 re_string_skip_chars, re_string_reconstruct): Likewise.
4378 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4380 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
4382 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4383 adjust the buffer alignment.
4385 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4387 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4388 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4391 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4392 flavor to description only when flavor is not NULL.
4394 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4395 mutex after SIGIO/SIGURG lookup loop.
4397 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4399 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4401 2009-01-03 Ulrich Drepper <drepper@redhat.com>
4403 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4406 2009-01-02 Ulrich Drepper <drepper@redhat.com>
4408 * sysdeps/unix/sysv/linux/kernel-features.h
4409 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4411 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4412 if no output is written.
4414 * version.h: Bump to 2.10 development.
4416 * posix/getconf.c: Update copyright year.
4417 * nss/getent.c: Likewise.
4418 * iconv/iconvconfig.c: Likewise.
4419 * iconv/iconv_prog.c: Likewise.
4420 * elf/ldconfig.c: Likewise.
4421 * catgets/gencat.c: Likewise.
4422 * csu/version.c: Likewise.
4423 * elf/ldd.bash.in: Likewise.
4424 * elf/sprof.c (print_version): Likewise.
4425 * locale/programs/locale.c: Likewise.
4426 * locale/programs/localedef.c: Likewise.
4427 * nscd/nscd.c (print_version): Likewise.
4428 * debug/xtrace.sh: Likewise.
4429 * malloc/memusage.sh: Likewise.
4430 * malloc/mtrace.pl: Likewise.
4431 * debug/catchsegv.sh: Likewise.
4433 2008-12-29 Mike Frysinger <vapier@gentoo.org>
4435 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4438 2008-12-29 Ulrich Drepper <drepper@redhat.com>
4440 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4441 gethostbyname4_r function call succeeded, just leave the loop.
4444 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4446 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4447 * wctype/Makefile (tests): Add bug-wctypeh.
4448 * wctype/bug-wctypeh.c: New file.
4450 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4451 LOCALDOMAIN is defined.
4452 * nscd/nscd_getai.c (__nscd_getai): Likewise.
4454 * sysdeps/x86_64/bits/select.h: New file.
4456 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4458 2008-12-21 Bruno Haible <bruno@clisp.org>
4461 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4462 if no output is written.
4464 2008-12-13 Klaus Dittrich <kladit@arcor.de>
4466 * login/utmp_file.c (pututline_file): Replace call to dup2 with
4467 libc internal symbol __dup2 to avoid access through the PLT.
4469 2008-12-08 Ulrich Drepper <drepper@redhat.com>
4472 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4473 available only for __USE_GNU.
4475 * inet/Makefile (tests): Add tst-getni2.
4476 * inet/tst-getni2.c: New file.
4479 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4480 NULL when NI_NAMEREQD is set.
4481 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4482 * inet/Makefile (tests): Add tst-getni1.
4483 * inet/tst-getni1.c: New file.
4485 2008-12-03 Petr Baudis <pasky@suse.cz>
4488 * nscd/connections.c (invalidate_cache): Use prune_run_lock
4489 instead of prune_lock.
4490 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4491 * nscd/nscd.h (database_dyn): Add prune_run_cache.
4493 2008-12-07 Ulrich Drepper <drepper@redhat.com>
4495 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4498 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4501 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4502 after reading name server list.
4505 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4506 handling for host name aliases.
4508 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
4510 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4511 instead of doing things manually.
4513 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
4515 * posix/regex_internal.h (build_wcs_upper_buffer):
4516 Return type is reg_error_t.
4518 2008-12-05 Ulrich Drepper <drepper@redhat.com>
4520 * posix/globtest.sh: Use mktemp to create temporary file and
4523 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4525 (__CPU_CLR_S): Likewise.
4526 (__CPU_ISSET_S): Likewise.
4528 2008-12-05 Joseph Myers <joseph@codesourcery.com>
4529 Ulrich Drepper <drepper@redhat.com>
4531 * scripts/firstversion.awk: Use custom comparison function to compare
4533 * scripts/versions.awk: Use sort invocation which can handle
4534 multi-digit sub-version numbers.
4536 2008-12-04 Ulrich Drepper <drepper@redhat.com>
4538 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4539 * locale/iso-639.def: Add Chhattisgarhi entry.
4541 2008-12-02 Ulrich Drepper <drepper@redhat.com>
4543 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4545 (_nss_dns_gethostbyname4_r): Likewise.
4546 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4547 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4548 gethostbyname4_r, we don't have a separate IPv6 status, so copy
4549 the no_data variable.
4551 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4552 information at the correct index.
4554 * socket/sys/socket.h: Declare accept4.
4555 * socket/accept4.c: New file.
4556 * sysdeps/unix/sysv/linux/accept4.c: New file.
4557 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4558 * socket/Makefile (routines): Add accept4.
4559 * socket/Versions: Export accept4 with version GLIBC_2.10.
4560 * socket/paccept.c: Removed.
4561 * sysdeps/unix/sysv/linux/paccept.c: Removed.
4562 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4563 * Versions.def: Define GLIBC_2.10 for libc.
4564 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4566 * nscd/connections.c: Use accept4.
4568 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4570 2008-12-01 Ulrich Drepper <drepper@redhat.com>
4572 * resolv/res_send.c (send_dg): Create sockets with non-blocking
4575 * stdlib/setenv.c (unsetenv): Don't search environment if it does
4577 * stdlib/Makefile (tests): Add tst-unsetenv1.
4578 * stdlib/tst-unsetenv1.c: New file.
4580 2008-11-29 Ulrich Drepper <drepper@redhat.com>
4582 * login/utmp_file.c (file_writable): New variable.
4583 (setutent_file): Don't try to open file for writing.
4584 (pututline_file): Before writing, make descriptor writable if
4587 2008-11-26 Ulrich Drepper <drepper@redhat.com>
4589 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4590 to IPv4 or IPv6 if an interface has been found.
4592 2008-11-26 Roland McGrath <roland@redhat.com>
4594 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4595 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4597 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4598 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4599 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4601 * elf/elf.h (NT_386_IOPERM): New macro.
4602 (NT_PPC_VSX): New macro.
4604 2008-11-25 Roland McGrath <roland@redhat.com>
4606 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4607 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4608 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4609 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4610 Subdirectories moved to ports repository.
4611 * configure.in (base_machine): Remove alpha case.
4613 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
4615 * sysdeps/mach/strerror_l.c: New file.
4617 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
4620 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4621 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4623 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4624 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4625 (relax_fenv_state): Same as above.
4626 (FPSCR_29): Reserve bit in ISA 2.05.
4627 (FPSCR_NI): Provide define for compat.
4628 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4630 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4632 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
4633 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4634 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4635 access to hwcap to account for hwcap size increase to uint64_t.
4636 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4638 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4639 (*setcontext): Likewise.
4640 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4642 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4644 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4645 (*setcontext): dynamically select mtfsf insn based on
4646 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4647 increase to uint64_t.
4648 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4649 (*swapcontext): dynamically select mtfsf insn based on
4650 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4651 increase to uint64_t.
4652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4656 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4657 (*setcontext): dynamically select mtfsf insn based on
4658 PPC_FEATURE_HAS_DFP.
4659 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4660 (*swapcontext): dynamically select mtfsf insn based on
4661 PPC_FEATURE_HAS_DFP.
4663 2008-11-13 Ulrich Drepper <drepper@redhat.com>
4665 * version.h: Bump for 2.9 release.
4666 * include/features.h (__GLIBC_MINOR__): Bump to 9.
4669 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4670 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4673 2008-11-11 Ulrich Drepper <drepper@redhat.com>
4676 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4677 unknown request types for now.
4679 2008-11-11 Roland McGrath <roland@redhat.com>
4681 * sysdeps/x86_64/configure: New file.
4683 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4684 * configure: Regenerated.
4686 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4688 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4689 correct instruction to remove the stack frame.
4691 2008-11-03 Michael Matz <matz@suse.de>
4693 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4694 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4696 2008-11-07 Jakub Jelinek <jakub@redhat.com>
4698 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4701 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4702 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4703 of the thread variable instead of void *.
4704 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4705 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4706 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4707 __libc_tsd_define arguments.
4708 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4709 __libc_tsd_address arguments. Remove union hack.
4710 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4711 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4712 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4713 Adjust __libc_tsd_{set,get} arguments.
4714 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4715 __libc_tsd_define arguments.
4716 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4718 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4719 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4720 (LOCALE): Adjust __libc_tsd_define arguments.
4721 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4723 (LOCALE): Adjust __libc_tsd_define arguments.
4724 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4726 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4729 2008-11-02 Ulrich Drepper <drepper@redhat.com>
4731 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4732 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4734 2008-11-01 Ulrich Drepper <drepper@redhat.com>
4737 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4739 2008-10-24 Joseph Myers <joseph@codesourcery.com>
4740 Ulrich Drepper <drepper@redhat.com>
4742 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4743 definition for GCC 3.1 and later.
4745 2008-10-31 Jakub Jelinek <jakub@redhat.com>
4747 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4748 refetch dtv, as it might have changed.
4749 * elf/Makefile: Add rules to build and run tst-tls18.
4750 * elf/tst-tls18.c: New test.
4751 * elf/tst-tlsmod18a.c: New file.
4753 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
4756 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4758 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4761 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4764 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4765 Fix length of copy operation.
4767 2008-10-02 Pierre Habouzit <madcoder@debian.org>
4769 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4770 and fix its calling convention.
4772 2008-10-07 Andreas Schwab <schwab@suse.de>
4775 * resolv/res_send.c (send_vc): Fix last change.
4776 (send_dg): Align here as well.
4778 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4780 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4781 return value in case rlimit is RLIM_INFINITY.
4784 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4786 * resource/Makefile (tests): Add bug-ulimit1.
4787 * resource/bug-ulimit1.c: New file.
4790 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4791 without dot. Properly terminate the string with a null byte.
4792 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4795 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4797 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4801 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4803 2008-10-30 Ulrich Drepper <drepper@redhat.com>
4805 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4806 abort if there is no initgroups_dyn function.
4808 * resolv/res_send.c (send_dg): On timeout, only return nonzero
4809 result if any of the queries really provided an answer.
4811 2008-10-28 Ulrich Drepper <drepper@redhat.com>
4813 * po/lt.po: Update from translation team.
4815 2008-10-26 Ulrich Drepper <drepper@redhat.com>
4817 * po/id.po: Update from translation team.
4819 2008-10-24 Ulrich Drepper <drepper@redhat.com>
4821 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4822 Fix tests for existence of second reply.
4824 2008-10-23 Ulrich Drepper <drepper@redhat.com>
4826 * po/id.po: New file.
4827 Contributed by the Indonesian translation team.
4829 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
4831 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4834 2008-10-17 Jakub Jelinek <jakub@redhat.com>
4836 * elf/Makefile: Add rules to build and run tst-tls17.
4837 * elf/tst-tls17.c: New test.
4838 * elf/tst-tlsmod17a.c: New file.
4839 * elf/tst-tlsmod17b.c: Likewise.
4841 2008-10-17 Ulrich Drepper <drepper@redhat.com>
4843 * stdlib/divmod_1.c: Use correct type for dummy variable.
4844 * stdlib/mod_1.c: Likewise.
4846 2008-10-16 Ulrich Drepper <drepper@redhat.com>
4848 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4850 2008-10-16 Jakub Jelinek <jakub@redhat.com>
4852 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4853 __nonnull order for C++.
4854 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4855 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4857 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
4859 * stdlib/longlong.h: Update from GCC.
4861 2008-10-09 Jakub Jelinek <jakub@redhat.com>
4862 David S. Miller <davem@davemloft.net>
4864 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4865 make sure any registers used with 64-bit 'branch-on-register'
4866 instructions have their top 32-bits clear.
4867 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4868 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4870 2008-09-18 Andreas Schwab <schwab@suse.de>
4873 * resolv/res_send.c (send_vc): Fix use of unaligned address.
4874 Properly handle partial reads.
4876 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
4878 * elf/elf.h (STO_MIPS_PLT): New.
4880 (R_MIPS_JUMP_SLOT): New.
4881 (R_MIPS_NUM): Redefine to 128.
4882 (DT_MIPS_PLTGOT): New.
4883 (DT_MIPS_RWPLT): New.
4884 (DT_MIPS_NUM): Redefine to 0x35.
4886 2008-10-01 Ulrich Drepper <drepper@redhat.com>
4888 * timezone/africa: Update from tzdata2008f.
4889 * timezone/asia: Likewise.
4890 * timezone/australasia: Likewise.
4891 * timezone/europe: Likewise.
4892 * timezone/leapseconds: Likewise.
4893 * timezone/northamerica: Likewise.
4894 * timezone/southamerica: Likewise.
4895 * timezone/zone.tab: Likewise.
4897 2008-09-30 Ulrich Drepper <drepper@redhat.com>
4899 * nscd/connections.c: Disable use of paccept for now.
4901 2008-09-29 Ulrich Drepper <drepper@redhat.com>
4903 * socket/Versions: Remove paccept export for GLIBC_2.9.
4904 * socket/Makefile (routines): Remove paccept.
4905 * socket/sys/socket.h: Remove paccept declaration.
4907 * po/sv.po: Update from translation team.
4909 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
4911 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4912 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4914 2008-09-16 Ulrich Drepper <drepper@redhat.com>
4916 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4917 Patch by Olivier Fourdan <ofourdan@redhat.com>.
4919 2008-09-15 Ulrich Drepper <drepper@redhat.com>
4921 * sunrpc/rpc/svc.h: Declare svcfd_create.
4922 Patch by Michael Solberg <msolberg@redhat.com>.
4924 2008-09-12 Flavio Leitner <fleitner@redhat.com>
4925 Ulrich Drepper <drepper@redhat.com>
4927 * malloc/malloc.c (public_vALLOc): Try other arenas in case
4929 (public_pVALLOc): Likewise.
4931 2008-09-02 Andreas Jaeger <aj@suse.de>
4933 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4936 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
4939 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4941 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
4943 * Makefile (check-data): Check data directory in add-ons.
4944 * elf/Makefile (check-data): Likewise.
4946 2008-08-18 Roland McGrath <roland@redhat.com>
4948 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4949 * configure: Regenerated.
4950 * config.make.in (cflags-cpu): New substituted variable.
4951 (with-cpu): Variable removed.
4952 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4954 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
4957 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4958 __signbitl definition and __LONG_DOUBLE_128__ guard from:
4959 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4960 redundant. Functions which call floating point assembler operations
4961 should go into a sysdeps powerpc/fpu directory.
4963 2008-08-15 Ulrich Drepper <drepper@redhat.com>
4965 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4966 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4968 2008-08-14 Ulrich Drepper <drepper@redhat.com>
4970 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4972 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4973 change related to AT_EXECFN. We cannot use that string.
4974 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4976 * elf/dl-support.c: Remove _dl_execfn variable.
4977 (_dl_aux_init): Remove handling of AT_EXECFN.
4978 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4979 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4981 2008-08-13 Ulrich Drepper <drepper@redhat.com>
4984 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
4985 byte gets added to writes and seeks from the end use the length of
4986 the buffer and not the currently terminating NUL byte.
4989 * login/utmp_file.c (getutent_r_file): Take additional parameter.
4990 Set to true if locking failed.
4991 (getutid_r_file): Adjust caller.
4992 (pututline_file): Likewise. Return NULL in this case.
4993 Patch mostly by halesh.s@gmail.com.
4995 2008-08-12 Ulrich Drepper <drepper@redhat.com>
4998 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5000 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5002 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
5005 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5006 macro since it is now available in elf/dynamic-link.h.
5008 2008-08-12 Roland McGrath <roland@frob.com>
5010 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5011 in case used outside of libc.
5012 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5014 2008-08-11 Ulrich Drepper <drepper@redhat.com>
5016 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5017 directly instead of going through dn_comp.
5019 2008-08-11 Aurelien Jarno <aurel32@debian.org>
5021 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5022 Fix asm constraints.
5024 2008-08-07 Ulrich Drepper <drepper@redhat.com>
5027 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5028 (IPV6_PMTUDISC_PROBE): Likewise.
5030 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
5033 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5035 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
5036 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
5039 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5040 Added the members 'vsx' and 'arch_2_06'.
5041 (_dl_powerpc_platforms): Add the member 'power7'.
5042 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5043 to reflect the changes required by VSX and ISA 2.06.
5044 Modify _DL_PLATFORMS_COUNT to reflect the addition of
5046 Defined PPC_PLATFORM_POWER7.
5047 (_dl_string_platform): Add support for POWER7.
5048 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5049 capability and ISA 2.06.
5051 2008-08-07 Ulrich Drepper <drepper@redhat.com>
5054 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5055 macro to detect use of 128 bit long double.
5056 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5058 2008-08-05 Ulrich Drepper <drepper@redhat.com>
5060 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5063 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5065 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5066 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5068 2008-08-03 Ulrich Drepper <drepper@redhat.com>
5070 * nscd/connections.c (main_loop_poll): Pass a buffer which is
5071 guaranteed to be large enough to read inotify event. Ignore
5072 EAGAIN error. Better error message. Add branch predicition.
5073 (main_loop_epoll): Likewise.
5075 2008-08-02 Roland McGrath <roland@frob.com>
5077 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5078 Add memory clobbers.
5080 2008-08-02 Ulrich Drepper <drepper@redhat.com>
5082 * manual/arith.texi: Avoid @strong{Note:}.
5083 * manual/creature.texi: Likewise.
5084 * manual/filesys.texi: Likewise.
5085 * manual/math.texi: Likewise.
5086 * manual/memory.texi: Likewise.
5087 * manual/resource.texi: Likewise.
5088 * manual/syslog.texi: Likewise.
5089 * manual/time.texi: Likewise.
5091 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5094 2008-08-01 Ulrich Drepper <drepper@redhat.com>
5096 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5097 new epoll_create1 interface.
5098 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5099 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5100 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5102 * include/arpa/nameser.h (NS_GET16): Use const pointer.
5103 (NS_GET32): Likewise.
5105 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5108 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5109 use the AT_EXECFN value if it is no absolute path.
5110 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5113 * Versions.def: Add GLIBC_2.9 to libresolv.
5114 * include/resolv.h: Remove hidden proto declarations for __ns_*
5115 functions. Add them for __dn_count_labels and __p_secstodate.
5116 * include/arpa/nameser.h: Add a number of hidden proto declarations.
5117 Define ns_msg_getflags macro here.
5118 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5120 * resolv/Versions: Export functions from <arpa/nameser.h> from
5121 libresolv in version GLIBC_2.9.
5122 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
5124 * resolv/ns_netint.c: Likewise.
5125 * resolv/ns_parse.c: Likewise.
5126 * resolv/ns_print.c: Likewise.
5127 * resolv/ns_samedomain.c: Likewise.
5128 * resolv/ns_ttl.c: Likewise.
5129 * resolv/arpa/nameser_compat.h: Likewise.
5130 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
5132 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5133 instead of ns_get16.
5134 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5135 __ns_get32 instead of ns_get16 and ns_get32 respectively.
5136 (gaih_getanswer_slice): Likewise.
5137 * resolv/Makefile (libresolv-routines): Add ns_date.
5138 * resolv/ns_date.c: New file.
5140 * elf/Makefile (check-localplt.out): Also check libresolv and
5143 2008-07-31 Ulrich Drepper <drepper@redhat.com>
5145 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5148 2008-07-30 Ulrich Drepper <drepper@redhat.com>
5150 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5151 buffer passed to NSS functions.
5153 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5155 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5158 * misc/syslog.c (openlog_internal): Fix compile problem.
5160 2008-07-28 Roland McGrath <roland@redhat.com>
5162 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5164 2008-07-28 Ulrich Drepper <drepper@redhat.com>
5166 * io/ftw.c (add_object): Remove inline to avoid warning.
5168 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5170 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5171 Use it instead of locally defined resplen2 variable.
5172 (res_nsend): Adjust for __libc_res_nsend interface change.
5173 (send_vc): Initialize *resplen2 if necessary. Read length of
5174 package into an appropriately aligned variable. Store converted length
5175 in new variable and use it appropriately.
5176 Add branch prediction help.
5177 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5178 and pass it on to __libc_res_nsend. Adjust all callers.
5179 (__libc_res_nsearch): Likewise.
5180 (__libc_res_nqeurydomain): Likewise.
5181 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5183 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5184 Define resplen2 variable and pass it to __libc_res_nsearch and then
5186 (getanswer_r): In case of incorrect DNS data don't overread buffer.
5187 Add branch prediction.
5188 (gaih_getanswer_slice): Likewise. Check for invalid data types.
5189 (gaih_getanswer): Don't decode second slice if first one failed due
5190 to a too small buffer. Don't let not found status of second
5191 decoder shadow results of the first.
5192 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5193 and __libc_res_nquery interface changes
5194 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5195 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5196 __libc_res_nsearch, and __libc_res_nsend.
5197 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5199 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5200 __libc_res_nsearch interface changes.
5202 2008-07-27 Ulrich Drepper <drepper@redhat.com>
5204 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5206 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5207 file descriptors with close-on-exec set.
5208 (exec_comm_child): Fix the case where the write end of the pipe is
5209 STDOUT_FILENO already. In case it is, clear close-on-exec.
5211 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5212 * io/pipe2.c: Likewise.
5213 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5214 instead of __ASSUME_PACCEPT.
5215 * include/unistd.h: Declare __have_pipe2.
5216 * libio/iopopen.c: Implement "e" flag.
5217 * libio/Makefile (tests): Add tst-popen1.
5218 * libio/tst-popen1.c: New file.
5220 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5221 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5223 2008-07-26 Ulrich Drepper <drepper@redhat.com>
5226 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5227 success call of _IO_SEEKOFF or calls which failed because the
5228 descriptor is for a pipe.
5230 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5233 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5235 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
5236 F_SETFD use if we know fopen set the flag.
5238 * login/utmp_file.c (setutent_file): Minor optimization in case
5239 O_CLOEXEC is available.
5241 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
5243 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5244 * elf/Makefile: Use pie-ccflag variable.
5245 * nscd/Makefile: Likewise.
5246 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5248 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
5251 * Versions.def: Add GLIBC_2.9 version tag for libutil.
5252 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5253 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
5254 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5255 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
5256 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5257 utmp32, utmpx32 and login32.
5258 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5259 versions of struct utmp functions to libc and libutil.
5260 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5261 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5262 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5263 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5264 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5265 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5266 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5267 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5268 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5269 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5270 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5271 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5272 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5273 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5274 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5275 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5276 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5277 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5278 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5279 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5280 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5281 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5283 2008-07-26 Ulrich Drepper <drepper@redhat.com>
5285 * scripts/gen-as-const.awk: Generate more widely usable code by
5286 using 64-bit arithmetic.
5288 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5289 the same treatment as narrow output code in last patch.
5291 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5294 * elf/dl-load.c (local_strdup): Remove inline.
5295 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5296 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5299 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5301 2008-07-25 Ulrich Drepper <drepper@redhat.com>
5303 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5304 the new syscalls, too.
5306 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5307 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5310 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5311 parameter for end of buffer. If temporary copy is too large use
5313 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5315 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
5316 string rewrite when allocating buffer.
5318 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5321 * nscd/connections.c (nscd_init): Clean up fcntl call.
5323 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5324 SOCK_NONBLOCK if possible.
5326 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5327 SOCK_CLOEXEC if available.
5329 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5330 __libc_clntudp_bufcreate_internal.
5331 * include/sys/socket.h: Declare __have_sock_cloexec.
5332 * socket/Makefile (aux): Add have_sock_cloexec.
5333 * socket/have_sock_cloexec.c: New file.
5334 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5335 __libc_clntudp_bufcreate.
5336 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5337 which takes an additional parameter. Create socket with non-blocking
5338 mode and close-on-exec flag set, if wanted.
5339 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5340 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5341 instead of clntudp_create. The socket has already the close-on-exec
5342 flag set if SOCK_CLOEXEC is defined.
5344 2008-07-24 Ulrich Drepper <drepper@redhat.com>
5346 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5347 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5349 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5350 non-blocking mode by using socket, paccept, and inotify_init1.
5352 * Versions.def (glibc): Add GLIBC_2.9.
5353 * io/Makefile (routines): Add dup3 and pipe2.
5354 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5355 * io/dup3.c: New file.
5356 * io/pipe2.c: New file.
5357 * posix/unistd.h: Declare dup3 and pipe2.
5358 * socket/Makefile (routines): Add paccept.
5359 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5360 * socket/paccept.c: New file.
5361 * socket/sys/socket.h: Declare paccept.
5362 * sysdeps/unix/syscalls.list: Add entry for dup3.
5363 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5364 epoll_create2 and inotify_init1.
5365 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5366 * sysdeps/unix/sysv/linux/paccept.c: New file.
5367 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5369 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5370 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5371 inotify_init1, and pipe2 entries.
5372 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5373 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5374 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5375 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5376 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5377 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5379 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5380 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5381 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5382 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5383 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5384 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5385 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5386 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5387 EPOLL_NONBLOCK. Declare epoll_create2.
5388 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5390 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5391 IN_NONBLOCK. Declare inotify_init1.
5392 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5394 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5397 * elf/elf.h: Define AT_EXECFN.
5398 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5400 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5401 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
5402 if __ASSUME_AT_EXECFN is defined.
5403 (_dl_aux_init): Handle AT_EXECFN.
5404 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5406 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5407 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5408 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5409 _dl_execfn if available and avoid compatibility code if
5410 __ASSUME_AT_EXECFN is defined.
5412 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5413 _dl_discover_osversion only for older kernels.
5415 2008-07-22 Roland McGrath <roland@frob.com>
5417 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5419 2008-07-21 Roland McGrath <roland@frob.com>
5421 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5422 returned too much data out of line.
5424 2008-07-20 Ulrich Drepper <drepper@redhat.com>
5426 * locale/setlocale.c (setname): Remove inline to avoid compiler
5430 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5432 2008-07-15 Ulrich Drepper <drepper@redhat.com>
5434 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5435 doesn't manage to write anything, fail.
5437 * malloc/hooks.c (__malloc_check_init): Remove printf.
5439 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5441 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5443 2008-07-12 Ulrich Drepper <drepper@redhat.com>
5445 * nscd/connections.c (main_loop_poll): Fix handling of read errors
5447 (main_loop_epoll): Likewise.
5449 2008-07-09 Ulrich Drepper <drepper@redhat.com>
5451 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5453 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5454 if DEBUG is defined.
5456 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5457 query. Adjust buffer size computation for padding.
5459 2008-07-08 Ulrich Drepper <drepper@redhat.com>
5461 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5462 * stdio-common/tst-setvbuf1.c: New file.
5463 * stdio-common/tst-setvbuf1.expect: New file.
5466 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5467 when selecting fully-buffered stream.
5468 Patch by Wang Xin <wxinee@gmail.com>.
5470 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
5472 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5473 (__open_2): New function.
5474 (__open64_2): New alias to __open_2.
5475 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5476 (__openat_2): New function.
5477 (__openat64_2): New alias to __openat_2.
5479 2008-07-06 Ulrich Drepper <drepper@redhat.com>
5482 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5484 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5486 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5487 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5488 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5490 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5491 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5492 * sysdeps/mach/hurd/send.c (__send): Likewise.
5493 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5494 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5496 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5498 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5499 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5500 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5501 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5502 * hurd/get-host.c (_hurd_get_host_config): Likewise.
5503 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5505 2008-06-27 Ulrich Drepper <drepper@redhat.com>
5508 * time/strptime_l.c: Don't clear s.era_cnt after successful match
5510 Patch by Petr Baudis.
5512 2008-06-26 Ulrich Drepper <drepper@redhat.com>
5514 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5515 Patch by Peter Jones <pjones@redhat.com>.
5517 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5520 * stdlib/canonicalize.c (__realpath): readlink can write too much
5521 into the buffer on platforms without PATH_MAX.
5523 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
5526 * posix/tst-regex.c (main): Rename to...
5527 (do_test): ... this. Remove cmdline option processing.
5529 (TEST_FUNCTION): Define.
5530 (CMDLINE_OPTIONS): Define.
5532 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5535 * configure.in: Add -Werror to -fstack-protector test to catch
5536 unsupported architectures.
5537 Patch by Gilles Esponasse <g.esp@free.fr>.
5539 2008-06-17 Joseph Myers <joseph@codesourcery.com>
5541 * stdlib/tst-setcontext.c: Set back_in_main before exit if
5542 getcontext returns ENOSYS.
5544 2008-06-18 Ulrich Drepper <drepper@redhat.com>
5546 * nscd/connections.c (main_loop_poll): Fix test for read error.
5547 (main_loop_epoll): Likewise.
5549 2008-06-13 Ulrich Drepper <drepper@redhat.com>
5551 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5552 better place so it is not called when nscd is used.
5554 * nscd/connections.c: Also recognize and handle changes to the
5555 resolver configuration file.
5557 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5559 * time/strftime.c: Pass reference to tzset_called around to handle
5563 * time/strftime.c (__strftime_internal): Call tzset() only
5564 when printing timezone-dependent values.
5565 Based on a patch by Petr Baudis <pasky@suse.cz>.
5567 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5568 unconditionally use second gaih_getanswer_slice result.
5570 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5571 (getaddrinfo): RES must always be non-NULL.
5573 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5575 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5577 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5578 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5580 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5583 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5585 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5587 * nscd/connections.c (inotify_fd): New variable.
5588 (nscd_init): Try to open an inotify descriptor.
5589 If successful, watch files for databases using inotify instead of
5590 having prune threads stat the files.
5591 (nscd_run_prune): Recognize clear_cache flag being set and call
5592 prune_cache appropriately.
5593 (main_loop_poll): Add inotify descriptor to wait set and handle the
5595 (main_loop_epoll): Likewise.
5596 * nscd/cache.c (prune_cache): Don't stat files for databases if
5598 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5599 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5601 * nscd/grpcache.c (cache_addgr): Correctly compute size of
5602 fixed-size portion of the record.
5603 * nscd/servicescache.c (cache_addserv): Likewise.
5604 * nscd/pwdcache.c (cache_addpw): Likewise.
5605 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5607 2008-06-11 Ulrich Drepper <drepper@redhat.com>
5609 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5610 out we don't use uninitialized memory.
5612 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5615 2008-06-10 Ulrich Drepper <drepper@redhat.com>
5617 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5618 ignore T_DNAME messages.
5619 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5621 2008-06-05 Jakub Jelinek <jakub@redhat.com>
5623 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5624 Avoid segfault if first GETC returns eof/'\0'/'\n'.
5626 2008-06-03 Jakub Jelinek <jakub@redhat.com>
5628 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5629 instead of portstr to nscd_getserv_r. Patch by
5630 Roman Kagan <rkagan@mail.ru>.
5632 2008-05-26 Jim Meyering <meyering@redhat.com>
5634 Remove more useless "if" tests before "free".
5635 * include/inline-hashtab.h (htab_delete): Likewise.
5636 * libio/freopen.c (freopen): Likewise.
5637 * libio/freopen64.c (freopen64): Likewise.
5638 * locale/programs/ld-collate.c (collate_read): Likewise.
5639 * misc/fstab.c (libc_freeres_fn): Likewise.
5640 * posix/glob.c (globfree): Likewise.
5642 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5644 * string/Makefile (strop-tests): Add memmem.
5645 * string/test-memmem.c: New file.
5646 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5647 (test_init): Size buf1 according to BUF1PAGES.
5649 2008-05-24 Jakub Jelinek <jakub@redhat.com>
5651 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5652 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5653 (CFLAGS-scanf17.c): New.
5654 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5655 * stdio-common/scanf15.c (main): Likewise.
5656 * stdio-common/scanf16.c: New file.
5657 * stdio-common/scanf17.c: New file.
5659 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5661 * resolv/res_send.c (send_dg): If we already have one of two
5662 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5663 use the one answer insted of failing.
5665 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
5667 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5668 being executed on PowerPC as the expected result exceeds IBM
5669 long double 128 __LDBL_MAX__.
5671 2008-05-21 Roland McGrath <roland@redhat.com>
5673 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5675 * Makefile (check-data): Use $(abi-name) before other guesses.
5676 Look in $(add-ons) dirs before scripts/data/.
5677 * elf/Makefile (check-data): Likewise.
5679 * scripts/soversions.awk: Grok ABI line.
5680 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5681 Emit definition for abi-name variable.
5683 2008-05-21 Ulrich Drepper <drepper@redhat.com>
5685 * string/endian.h: Define new fixed-size hto* and *toh macros only
5688 * iconvdata/Depend: Add localedata.
5690 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5692 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5694 2008-05-08 David S. Miller <davem@davemloft.net>
5696 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5698 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5699 (__SYSCALL_CLOBBERS): Remove %g* registers.
5700 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5701 (__SYSCALL_CLOBBERS): Likewise.
5702 * scripts/data/localplt-sparc-linux-gnu.data: New file.
5703 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5705 2008-05-21 Jakub Jelinek <jakub@redhat.com>
5707 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5708 (CALL_ERRNO_LOCATION): Define.
5709 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5710 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5711 (CALL_ERRNO_LOCATION): Define.
5712 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5713 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5714 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5716 2008-05-20 Ulrich Drepper <drepper@redhat.com>
5718 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5721 2008-05-20 Jakub Jelinek <jakub@redhat.com>
5723 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5724 (FIRST_FRAME_POINTER): Define.
5726 2008-05-09 David S. Miller <davem@davemloft.net>
5728 * sysdeps/sparc/sparc64/backtrace.c: New file.
5730 2008-05-14 David S. Miller <davem@davemloft.net>
5732 * sysdeps/sparc/machine-gmon.h: New file.
5733 * sysdeps/sparc/sparc-mcount.S: Likewise.
5734 * sysdeps/sparc/Makefile: Add sparc-mcount target to
5735 sysdep_routines in gmon directory.
5737 2008-05-19 Jakub Jelinek <jakub@redhat.com>
5739 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5741 2008-05-19 Ulrich Drepper <drepper@redhat.com>
5743 * resolv/res_query.c (__libc_res_nquery): In case one of two
5744 answer was too short don't try to read that answer's header.
5746 * resolv/res_send.c (send_dg): In case of timeout and there are
5747 two queries and one has been answered, return value indicating
5750 2008-05-18 Ulrich Drepper <drepper@redhat.com>
5752 * nscd/cache.c (cache_add): Take additional parameter specifying
5753 whether this is in response of a cache refill. Check alignment
5754 of package data. Revamp waking of pruning thread.
5755 (prune_cache): Small optimization.
5756 * nscd/nscd.h: Adjust cache_add prototypes.
5757 * nscd/aicache.c: Adjust cache_add calls.
5758 * nscd/grpcache.c: Likewise.
5759 * nscd/hstcache.c: Likewise.
5760 * nscd/initgrcache.c: Likewise.
5761 * nscd/pwdcache.c: Likewise.
5762 * nscd/servicescache.c: Likewise.
5763 * nscd/connections.c (restart): Really disable cache use before
5764 exec attempt. If it fails, reenable cache.
5765 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
5766 time to max to be able to notice concurrent cache additions. Unlock
5767 prune_lock while performing gc. Afterwards compute wakeup time with
5768 current wakeup_time value in mind.
5770 2008-05-17 Ulrich Drepper <drepper@redhat.com>
5772 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5774 * nscd/mem.c (gc): Correctly determine highest used array element
5777 * nscd/mem.c (markrange): Add assert to check entries are all
5778 aligned. Small cleanup in bitmap use.
5780 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5781 blockoff of type nscd_ssize_t.
5782 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5783 (mempoll_alloc): Record block offset and not address.
5785 * nscd/mem.c (gc): Fix test for stack overuse.
5787 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5790 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5791 entry is available, believe it.
5793 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5794 no answers return NSS_STATUS_NOTFOUND.
5795 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5796 buffer does not have any content.
5798 2008-05-16 Ulrich Drepper <drepper@redhat.com>
5800 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5802 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5803 lookup, don't assign canon unconditionally.
5805 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5807 * string/Makefile (distribute): Add str-two-way.h.
5809 2008-03-29 Eric Blake <ebb9@byu.net>
5811 Rewrite string searches to O(n) rather than O(n^2).
5812 * string/str-two-way.h: New file. For linear fixed-allocation
5814 * string/memmem.c: New implementation.
5815 * string/strstr.c: New implementation.
5816 * string/strcasestr.c: New implementation.
5818 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
5820 * posix/regcomp.c (optimize_utf8): Add a note on why we test
5822 (calc_first): Initialize constraint field.
5823 (duplicate_node_closure): Use it instead of special casing ANCHORS.
5824 Use search_duplicated_node to avoid loops. Fix grammar.
5825 (duplicate_node): Merge constraint field for all node types.
5826 (calc_eclosure_iter): Look at constraint field for all node types.
5827 * posix/regex_internal.c (create_cd_newstate): Don't look at
5830 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5833 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5836 * string/endian.h: Add macros for fixed-size endian conversion.
5837 * bits/byteswap.h: Allow inclusion from <endian.h>.
5838 * sysdeps/i386/bits/byteswap.h: Likewise.
5839 * sysdeps/ia64/bits/byteswap.h: Likewise.
5840 * sysdeps/s390/bits/byteswap.h: Likewise.
5841 * sysdeps/x86_64/bits/byteswap.h: Likewise.
5842 * string/Makefile (tests): Add tst-endian.
5843 * string/tst-endian.c: New file.
5845 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5846 Patch by Reuben Thomas.
5848 2008-05-14 Joseph Myers <joseph@codesourcery.com>
5850 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5852 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5854 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5857 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5859 (BODY for __gconv_transform_internal_ascii): Likewise.
5862 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5863 to be treated like link-local addresses.
5864 (match_prefix): Don't treat IPv4 loopback address special when
5865 converting to v4 mapped addressed.
5867 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5869 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5870 * posix/tst-rfc3484-2.c: Likewise.
5871 * posix/tst-rfc3484-3.c: Likewise.
5873 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5876 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5878 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5880 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5882 2008-05-13 Ulrich Drepper <drepper@redhat.com>
5884 * po/lt.po: New file. From Lituanian translation team.
5886 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
5888 Introduce TLS descriptors for i386 and x86_64.
5889 * include/inline-hashtab.h: New file, copied from 2005's
5890 libiberty, with fix for memory leak imported afterwards by
5891 Glauber de Oliveira Costa.
5892 * elf/tlsdeschtab.h: New file.
5893 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5894 (_dl_allocate_static_tls): ... here. Rearrange failure path.
5895 (CHECK_STATIC_TLS): Move to...
5896 * elf/dynamic-link.h: ... this file.
5897 (TRY_STATIC_TLS): New macro.
5898 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5899 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5900 R_386_TLS_DESC): Define.
5901 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5903 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5904 R_X86_64_TLSDESC): Define.
5905 (R_386_NUM, R_X86_64_NUM): Adjust.
5906 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5907 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5908 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5909 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5910 release tlsdesc_table.
5911 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5912 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5913 (elf_machine_rel): Handle R_386_TLS_DESC.
5914 (elf_machine_rela): Likewise.
5915 (elf_machine_lazy_rel): Likewise.
5916 (elf_machine_lazy_rela): Likewise.
5917 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5918 * sysdeps/i386/dl-tlsdesc.S: New file.
5919 * sysdeps/i386/dl-tlsdesc.h: New file.
5920 * sysdeps/i386/tlsdesc.c: New file.
5921 * sysdeps/i386/tlsdesc.sym: New file.
5922 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5924 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5925 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5926 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5927 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5928 release tlsdesc_table.
5929 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5930 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5931 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5932 (elf_machine_rel): Handle R_X86_64_TLSDESC.
5933 (elf_machine_rela): Likewise.
5934 (elf_machine_lazy_rel): Likewise.
5935 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5936 (__tls_get_addr): Do not declare for non-shared compiles.
5937 * sysdeps/x86_64/dl-tlsdesc.S: New file.
5938 * sysdeps/x86_64/dl-tlsdesc.h: New file.
5939 * sysdeps/x86_64/tlsdesc.c: New file.
5940 * sysdeps/x86_64/tlsdesc.sym: New file.
5941 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5942 tlsdesc_table for both 32- and 64-bit structs.
5944 2008-05-11 Ulrich Drepper <drepper@redhat.com>
5946 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5947 its own function. This reduces the frame setup costs and more.
5949 2008-02-11 Joseph Myers <joseph@codesourcery.com>
5952 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5953 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5955 2008-05-11 Ulrich Drepper <drepper@redhat.com>
5957 * io/openat.c (__openat_2): Also pass fd to __openat.
5958 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5959 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5961 * string/tester.c (test_memcmp): Add a few more tests.
5962 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5964 2008-05-10 Ulrich Drepper <drepper@redhat.com>
5966 * nscd/cache.c (cache_add): Before returning with failure and this
5967 is the first use of the record, mark it as unusable.
5968 * nscd/aicache.c: Don't touch the dataset after cache_add returns
5969 reporting a failure.
5970 * nscd/grpcache.c: Likewise
5971 * nscd/hstcache.c: Likewise.
5972 * nscd/initgrcache.c: Likewise.
5973 * nscd/pwdcache.c: Likewise.
5974 * nscd/servicescache.c: Likewise.
5976 2008-05-10 Roland McGrath <roland@redhat.com>
5979 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5981 2008-05-08 David S. Miller <davem@davemloft.net>
5983 * misc/truncate64.c (truncate64): Use __truncate not truncate.
5985 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5986 (__ieee754_y0l): Likewise.
5987 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5988 (__ieee754_y1l): Likewise.
5989 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5990 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5991 frexpl and ldexpl. math_private.h provides them and the latter
5993 (__log1pl): Use __frexpl.
5995 2008-05-10 Ulrich Drepper <drepper@redhat.com>
5997 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5999 * include/arpa/nameser_compat.h: Define T_UNSPEC.
6000 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6001 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6002 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6004 (_nss_nis_gethostbyname4_r): New function.
6005 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6006 Change to also handle af==AF_UNSPEC.
6007 (get_tablename): New function. Use it to avoid duplication.
6008 (_nss_nisplus_gethostbyname4_r): New function.
6009 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6011 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6012 * nss/nss.h: Define struct gaih_addrtuple.
6013 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6015 (_nss_files_gethostbyname4_r): New function.
6016 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6017 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6019 * resolv/res_query.c (__libc_res_nquery): Take two additional
6020 parameters for second answer buffer. Handle type=T_UNSPEC to mean
6021 look up IPv4 and IPv6.
6023 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6024 for an additional query and answer buffer. Pass to send_vc and
6026 (send_vc): Send possibly two requests and receive two answers.
6027 (send_dg): Likewise.
6028 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6030 (_nss_dns_gethostbyname4_r): New function.
6031 (gaih_getanswer_slice): Likewise.
6032 (gaih_getanswer): Likewise.
6033 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6034 __libc_res_nquery call.
6035 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6036 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6037 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6040 2008-05-05 David S. Miller <davem@davemloft.net>
6042 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6043 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6045 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6047 Fix termios bit macros.
6048 Move *DLY definitions where they belong, in termios.h.
6049 Add *[0-3] definitions.
6050 Fixes confusion between VT and FF.
6051 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6052 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6053 are already defined to avoid collision with termios.h.
6054 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6055 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6056 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6057 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6058 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6059 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6060 VTDLY, VT0, VT1): New macros.
6061 [__USE_GNU] (OLCUC): Change value of macro.
6062 [__USE_XOPEN] (OFILL): New macro.
6063 [__USE_BSD] (CRTSCTS): Change value.
6064 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6065 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6066 (B7200, B14400, B28800, B76800): New macros.
6068 2008-05-01 David S. Miller <davem@davemloft.net>
6070 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6071 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6072 (gen-as-const-headers): Add it.
6073 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6074 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6075 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6076 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6078 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6079 six system call parameters.
6080 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6082 2008-04-30 Ulrich Drepper <drepper@redhat.com>
6084 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6086 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6087 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6089 2008-04-30 Jakub Jelinek <jakub@redhat.com>
6091 * stdlib/tst-setcontext.c: Include unistd.h.
6093 2008-04-25 David S. Miller <davem@davemloft.net>
6095 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6096 Pass "union semun" properly in to sys_ipc, it must be passed
6097 by value, not by reference.
6099 2008-04-22 Jakub Jelinek <jakub@redhat.com>
6101 * nscd/Makefile (nscd-cflags): Set back to -fpie.
6102 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6103 * nscd/connections.c (mem_in_flight): Likewise.
6105 * nscd/nscd.h (dbs): Make hidden.
6107 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6108 Avoid returning -1, return 0 instead.
6110 2008-04-19 Ulrich Drepper <drepper@redhat.com>
6112 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6114 2008-04-15 Ulrich Drepper <drepper@redhat.com>
6117 * sysdeps/unix/sysv/linux/times.c: New file.
6120 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6121 mem_in_flight_list variables. Add new parameter to mempool_alloc
6123 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
6124 appropriate mem_in_flight element.
6125 (gc): Take allocations which have not yet been committed to the
6126 database into account.
6127 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6128 Reset mem_in_flight before returning.
6129 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6130 cue it up in mem_in_flight_list.
6131 * nscd/aicache.c: Adjust mempool_alloc call.
6132 * nscd/grpcache.c: Likewise.
6133 * nscd/hstcache.c: Likewise.
6134 * nscd/initgrcache.c: Likewise.
6135 * nscd/pwdcache.c: Likewise.
6136 * nscd/servicescache.c: Likewise.
6137 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6140 * nscd/connections.c (handle_request): Provide better error message
6141 in case SELinux forbids the service.
6143 * version.h (VERSION): Bump to 2.8.90.
6145 2008-04-17 Jakub Jelinek <jakub@redhat.com>
6147 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6149 2008-04-11 Ulrich Drepper <drepper@redhat.com>
6151 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6152 Also use for 32-bit.
6153 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6154 __nextafter instead of nextafter to avoid local PLT.
6155 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6156 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6158 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6160 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6162 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
6163 <fenv_libc.h> instead of <fenv.h>.
6164 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6165 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6167 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6169 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6170 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6171 function from fegetexcept and make old name weak alias.
6172 * include/fenv.h: Declare __fegetexcept.
6173 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6175 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6176 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6178 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6179 instead of frexpl to avoid local PLT.
6180 * math/s_significandl.c (__significandl): Use __ilogbl instead of
6181 ilogbl to avoid local PLT.
6182 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6183 instead of ldexpl to avoid local PLT.
6184 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6185 __roundl not roundl to avoid local PLT.
6186 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6187 local PLTs. Use __sincosl instead of separate sinl and cosl
6189 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6191 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6192 version for ppc64 to 2.4.21 since without it makecontext will fail.
6194 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6196 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6198 [__powerpc64__] (TLS_GD): Likewise.
6200 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
6203 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6204 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6206 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6207 Likewise. Also account for when x is an odd number between 2^52
6209 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6210 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6211 * math/libm-test.inc (lround_test, llround_test): Added test cases to
6212 detect aforementioned erroneous conditions.
6214 2008-04-11 Jakub Jelinek <jakub@redhat.com>
6216 * configure.in: Check for -fno-section-anchors in addition to
6217 -fno-toplevel-reorder.
6219 2008-04-11 Ulrich Drepper <drepper@redhat.com>
6221 * include/features.h (__GLIBC_MINOR__): Bump to 8.
6223 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6224 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6225 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6226 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6227 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6228 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6230 2008-04-11 Jakub Jelinek <jakub@redhat.com>
6233 * time/era.c: Transform __libc_setlocale_lock into rwlock.
6234 * time/alt_digit.c: Likewise.
6235 * wcsmbs/wcsmbsload.c: Likewise.
6237 2008-04-10 Ulrich Drepper <drepper@redhat.com>
6239 * version.h (VERSION): Bump to 2.8.
6241 * timzeone/asia: Update from tzdata2008b.
6242 * timezone/backward: Likewise.
6243 * timezone/europe: Likewise.
6244 * timezone/northamerica: Likewise.
6245 * timezone/southamerica: Likewise.
6246 * timezone/iso3166.tab: Likewise.
6247 * timezone/leapseconds: Likewise.
6248 * timezone/zone.tab: Likewise.
6249 * timezone/private.h: Update from tzcode2008a.
6250 * timezone/zdump.c: Likewise.
6251 * timezone/zic.c: Likewise.
6253 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
6256 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6257 Define additonal Data Cache Block instruction macros.
6258 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6259 Replace dcbst with dcbf and sync with sync/isync.
6261 2008-02-21 Alan Modra <amodra@bigpond.net.au>
6263 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6264 Always set ELF_RTYPE_CLASS_PLT.
6265 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6267 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
6269 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6270 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6271 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6272 For ISA 2.01 and later replace mftb with mfspr 268.
6274 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
6277 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6278 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6280 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
6283 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6284 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6285 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6286 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6288 2008-04-10 Jakub Jelinek <jakub@redhat.com>
6290 * stdlib/tst-makecontext.c (othervar): New variable.
6291 (cf): Test sign extending the argument to long.
6293 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
6295 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6296 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6297 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6298 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6299 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6300 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6301 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6303 2008-02-22 Alan Modra <amodra@bigpond.net.au>
6305 * elf/Makefile (tests): Substitute tests-vis-yes here.
6306 (tests-vis-yes): Delete.
6307 (modules-name, modules-vis-yes): Similarly.
6309 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
6312 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6313 Preserve sign in signgamp when x is zero.
6315 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
6317 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6318 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6319 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6320 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6321 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6322 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6324 2008-04-09 Ulrich Drepper <drepper@redhat.com>
6327 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6331 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6332 a reserved error value.
6334 * stdlib/tst-makecontext.c: Change parameter to cf to negative
6335 value to check for correct sign extension.
6338 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6339 Copy 64-bit parameter values even though this is not required in
6342 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6345 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
6347 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6350 2008-04-09 Jakub Jelinek <jakub@redhat.com>
6352 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6354 2008-04-09 Ulrich Drepper <drepper@redhat.com>
6357 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6358 in line-buffered stream failed.
6359 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6361 2008-04-08 Ulrich Drepper <drepper@redhat.com>
6364 * scripts/abi-versions.awk: If the version specified by
6365 --enable-oldest-abi is older than the first version for this
6366 architecture, use the default version.
6368 * locale/programs/ld-collate.c (collate_read): Ignore script lines
6369 as well when ignoring the whole category.
6371 2008-04-07 Ulrich Drepper <drepper@redhat.com>
6374 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6375 ETHERTYPE_* definitions.
6376 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6378 2008-04-07 Jakub Jelinek <jakub@redhat.com>
6380 * stdlib/mbtowc.c (__no_r_state): Remove.
6381 (mbtowc): New static state variable. Use it instead of
6383 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6384 (__wctomb_state): New hidden variable.
6385 (wctomb): Use __wctomb_state instead of __no_r_state.
6386 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6387 (__wctomb_state): New extern decl.
6388 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6390 2008-04-07 Ulrich Drepper <drepper@redhat.com>
6393 * resolv/res_init.c: Handle scope IDs in resolv.conf.
6395 2008-04-07 Jakub Jelinek <jakub@redhat.com>
6397 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6399 2008-04-06 Ulrich Drepper <drepper@redhat.com>
6401 * po/nl.po: Update from translation team.
6403 2008-03-31 Ulrich Drepper <drepper@redhat.com>
6406 * string/strfry.c: Handle empty strings again.
6408 2008-03-30 Ulrich Drepper <drepper@redhat.com>
6411 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6412 before looking for translation.
6413 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6414 * locale/freelocale.c: Likewise.
6415 * locale/newlocale.c: Likewise.
6416 * locale/setlocale.c: Likewise.
6417 Based partially on a patch by ryo@np.css.fujitsu.com.
6419 2008-03-30 Jakub Jelinek <jakub@redhat.com>
6421 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6422 acquiring wrlock. Do conv_tab allocation while holding lock.
6423 * intl/Makefile: Add rules to build and run tst-gettext6.
6424 * intl/tst-gettext6.c: New test.
6425 * intl/tst-gettext6.sh: New file.
6427 2008-03-30 Ulrich Drepper <drepper@redhat.com>
6429 * po/nl.po: Update from translation team.
6431 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6432 provided through st_blksize, try the default size before giving up.
6434 2008-03-29 Ulrich Drepper <drepper@redhat.com>
6436 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6439 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6441 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6442 error message. POSIX today does not require the messages to be in
6443 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
6446 * sunrpc/auth_unix.c: Unify printed strings.
6447 * sunrpc/clnt_tcp.c: Likewise.
6448 * sunrpc/clnt_udp.c: Likewise.
6449 * sunrpc/clnt_unix.c: Likewise.
6450 * sunrpc/svc_tcp.c: Likewise.
6451 * sunrpc/svc_udp.c: Likewise.
6452 * sunrpc/svc_unix.c: Likewise.
6453 * sunrpc/xdr.c: Likewise.
6454 * sunrpc/xdr_array.c: Likewise.
6455 * sunrpc/xdr_rec.c: Likewise.
6456 * sunrpc/xdr_ref.c: Likewise.
6457 * locale/programs/ld-time.c (time_finish): Unify messages.
6458 * locale/programs/locfile.c (handle_copy): Fix typo.
6459 * nscd/nscd.c (options): Fix typo.
6462 * stdlib/strtod_l.c: Use correct sign for result in one more
6464 Patch by Eric Blake <ebb9@byu.net>.
6466 2008-03-27 Jakub Jelinek <jakub@redhat.com>
6468 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6469 and creat system calls.
6470 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6472 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6474 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6475 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6476 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6478 2008-03-27 Ulrich Drepper <drepper@redhat.com>
6480 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6481 <linux/limits.h> has defined it.
6482 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6483 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6485 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6486 it instead of ARG_MAX.
6488 2008-03-25 Jakub Jelinek <jakub@redhat.com>
6490 * posix/gai.conf: Fix comment for scope nullbits.
6491 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6492 default to 128 bits for v4 mapped addresses.
6494 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
6496 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6497 ptrace call to get the ieee_instruction_pointer from the kernel.
6498 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6499 ptrace call to set the ieee_instructtion_pointer.
6500 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6501 Add comment that ieee_instruction_pointer is always 0.
6503 2008-03-09 Andreas Jaeger <aj@suse.de>
6506 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6507 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6508 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6510 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6511 (rint_test): Likewise.
6513 2008-03-24 Ulrich Drepper <drepper@redhat.com>
6515 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6517 (__nisfind_server): Similar for open readColdStartFile call.
6518 Patch partially by Jim Meyering.
6519 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6520 around internal_setent call.
6522 * po/vi.po: New Vietnamese translation.
6524 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6527 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6528 remove CLONE_STOPPED.
6530 2008-02-10 Jim Meyering <meyering@redhat.com>
6532 Remove useless "if" before "free":
6533 * elf/ldconfig.c (parse_conf_include): Likewise.
6534 * gmon/gmon.c (weak_alias): Likewise.
6535 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6536 * inet/rcmd.c (__validuser2_sa): Likewise.
6537 * intl/bindtextdom.c (set_binding_values): Likewise.
6538 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6539 * libio/genops.c (save_for_backup): Likewise.
6540 * libio/wgenops.c (save_for_wbackup): Likewise.
6541 * locale/programs/ld-collate.c (collate_read): Likewise.
6542 * locale/programs/linereader.c (get_string): Likewise.
6543 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6544 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6545 * resolv/res_debug.c (do_section): Likewise.
6546 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6547 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6548 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6549 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6550 * time/tzset.c (tzset_internal): Likewise.
6552 2008-03-18 Jakub Jelinek <jakub@redhat.com>
6554 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6557 2008-03-11 Ulrich Drepper <drepper@redhat.com>
6560 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6561 not stream for output file. Open output file here.
6562 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6563 and output file name.
6564 (process_fd): Likewise.
6565 (process_file): Likewise.
6566 (main): Adjust callers of changed functions.
6567 * iconv/iconv_prog.h: Adjust prototype.
6569 2008-03-09 Andreas Jaeger <aj@suse.de>
6572 * sysdeps/ia64/ieee754.h: Use protected namespace
6573 __BIG_ENDIAN/__LITTLE_ENDIAN.
6574 * sysdeps/ieee754/ieee754.h: Likewise.
6575 Patch by Aurelien Jarno <aurelien@aurel32.net>.
6577 2008-03-08 Roland McGrath <roland@frob.com>
6579 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6580 ignore a signal that came from a machine exception, treat it as a
6581 fatal core-dump signal instead.
6582 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6584 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6585 Clear DF bit in thread state's eflags.
6586 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6588 2008-03-08 Ulrich Drepper <drepper@redhat.com>
6591 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6592 of NAN(...) sequence.
6593 * stdlib/Makefile (tests): Add tst-strtod6.
6594 * stdlib/tst-strtod6.c: New file.
6596 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6599 * posix/getopt.c (_getopt_internal_r): Clarify error message by
6600 putting offending option character in quotes. Clean up error
6602 * po/be.po: Adjust msgstr in translation file.
6603 * po/bg.po: Likewise.
6604 * po/ca.po: Likewise.
6605 * po/cs.po: Likewise.
6606 * po/da.po: Likewise.
6607 * po/de.po: Likewise.
6608 * po/es.po: Likewise.
6609 * po/fr.po: Likewise.
6610 * po/hr.po: Likewise.
6611 * po/ko.po: Likewise.
6612 * po/nl.po: Likewise.
6613 * po/rw.po: Likewise.
6614 * po/sk.po: Likewise.
6615 * po/sv.po: Likewise.
6616 * po/tr.po: Likewise.
6617 * po/zh_CN.po: Likewise.
6618 * po/zh_TW.po: Likewise.
6621 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6622 Patch by Roland Bless <roland@bless.de>.
6624 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6626 * elf/Makefile (routines): Add dl-sysdep.
6627 (elide-routines.os): Likewise.
6629 2008-03-07 Ulrich Drepper <drepper@redhat.com>
6632 * elf/dl-sysdep.c: Undefine ROUND after use.
6633 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6634 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6635 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6636 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6638 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6639 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6641 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6643 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6644 _dl_tls_get_addr_soft element.
6645 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6646 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6647 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6649 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6650 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6651 of internal_function.
6653 * stdlib/Makefile (aux): Add tens_in_limb.
6654 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6655 * stdlib/tens_in_limb.c: ...here. New file.
6658 * sysdeps/unix/sysv/linux/pathconf.h: Declare
6659 __statfs_chown_restricted.
6660 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6661 for _PC_CHOWN_RESTRICTED.
6662 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6663 Implement __statfs_chown_restricted.
6664 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6665 _POSIX_CHOWN_RESTRICTED value to zero.
6666 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6669 * sysdeps/x86_64/rtld-memset.c: New file.
6671 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
6673 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6675 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6676 Barcelona machine. Make default fall through branch of
6677 __x86_64_preferred_memory_instruction check as the integer code path.
6679 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6681 * sysdeps/x86_64/cacheinfo.c
6682 (__x86_64_preferred_memory_instruction): New variable.
6683 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6685 * sysdeps/x86_64/memset.S: Rewrite.
6687 2008-03-04 Jakub Jelinek <jakub@redhat.com>
6689 * include/stdio.h (__asprintf_chk, __dprintf_chk,
6690 __obstack_printf_chk): New prototypes.
6691 (__vasprintf_chk, __vdprintf_chk,
6692 __obstack_vprintf_chk): Likewise.
6693 Add libc_hidden_proto.
6695 (_IO_obstack_jumps): No longer static, add attribute_hidden.
6696 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6697 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6698 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6699 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6700 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6701 __obstack_vprintf_chk): New prototypes.
6702 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6703 obstack_vprintf): New inlines.
6704 * debug/dprintf_chk.c: New file.
6705 * debug/vdprintf_chk.c: New file.
6706 * debug/asprintf_chk.c: New file.
6707 * debug/vasprintf_chk.c: New file.
6708 * debug/obprintf_chk.c: New file.
6709 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6710 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6711 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6713 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6714 vdprintf_chk and obprintf_chk, set CFLAGS for them.
6715 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6716 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6718 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6719 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6720 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6721 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6722 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6724 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6725 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6726 obstack_vprintf_chk.
6727 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6728 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6729 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6730 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6731 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6732 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6734 2008-03-04 Ulrich Drepper <drepper@redhat.com>
6737 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6738 Patch by Roy Marples <roy@marples.name>.
6741 * malloc/malloc.c: Fix typo in comment.
6744 * locale/iso-639.def: Add Shuswap.
6746 2008-02-25 Jakub Jelinek <jakub@redhat.com>
6749 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6750 overwrite *h_errnop/*errnop values from getanswer_r in case of
6753 2008-03-03 Ulrich Drepper <drepper@redhat.com>
6756 * nscd/connections.c (dbs): Add initializers for .suggested_module.
6757 (verify_persistent_db): Remove one unnecessary test and add a new one
6758 for bad configuration.
6759 (nscd_init): Improve error reported when persistent database cannot
6761 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6762 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6763 .suggested_module and .max_db_size and case config file says the
6765 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6768 * nis/ypclnt.c (yp_order): Fix handling of return value of
6770 Patch by Jeff Moyer <jmoyer@redhat.com>.
6772 * po/fr.po: Update from translation team.
6774 2008-02-22 Andreas Jaeger <aj@suse.de>,
6775 Carlos O'Donell <carlos@systemhalted.org>
6778 * FAQ.in: Describe why glibc needs to be compiled with
6781 2008-02-19 Roland McGrath <roland@redhat.com>
6783 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6785 2008-02-15 Ulrich Drepper <drepper@redhat.com>
6788 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6789 __USE_MISC is defined.
6791 2008-02-10 Ulrich Drepper <drepper@redhat.com>
6793 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6794 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6796 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6797 timerfd_gettime, timerfd_settime.
6798 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6799 timerfd_gettime, timerfd_settime for GLIBC_2.8.
6801 2008-02-08 Roland McGrath <roland@redhat.com>
6803 * elf/elf.h (NT_PPC_SPE): New macro.
6805 2008-02-06 Roland McGrath <roland@redhat.com>
6807 * Makerules ($(common-objpfx)sysd-rules):
6808 Depend on $(sysdep-makeconfigs).
6810 2008-01-31 Roland McGrath <roland@redhat.com>
6813 * configure.in: Use -print-file-name if it yields a directory,
6814 for each of include and include-fixed.
6815 * configure: Regenerated.
6817 * Makeconfig (sysd-rules-targets): New variable.
6818 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6819 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6821 2008-01-30 Roland McGrath <roland@redhat.com>
6823 * manual/libc.texinfo: Update back-cover text.
6825 * elf/elf.h (NT_386_TLS): New macro.
6827 2008-01-29 Roland McGrath <roland@redhat.com>
6829 * Makeconfig (sysd-rules-patterns): New variable.
6830 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6831 (check-inhibit-asm): New canned sequence, replaces ...
6832 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6833 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6834 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6835 (CFLAGS-rtld): Variable removed.
6837 2008-01-24 Roland McGrath <roland@redhat.com>
6839 * configure.in: Let configure fragments set base_os.
6840 * configure: Regenerated.
6842 2008-01-22 Ulrich Drepper <drepper@redhat.com>
6844 * po/ko.po: Update from translation team.
6846 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
6848 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6850 2008-01-12 Andreas Jaeger <aj@suse.de>
6853 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6856 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
6858 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6859 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6860 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6862 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
6864 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6865 * elf/dl-close.c (_dl_close): Check for it.
6866 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6867 (_dl_allocate_static_tls): Likewise.
6868 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6869 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6871 * elf/tst-tls16.c: New file.
6872 * elf/tst-tlsmod16a.c: New file.
6873 * elf/tst-tlsmod16b.c: New file.
6874 * elf/Makefile: Add rules to build and run tst-tls16.
6876 2008-01-16 Ulrich Drepper <drepper@redhat.com>
6879 * bits/shm.h: Fix comment describing shmid_ds.
6880 * sysdeps/gnu/bits/shm.h: Likewise.
6881 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6882 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6883 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6884 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6885 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6886 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6887 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6888 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6889 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6892 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6894 * conform/data/limits.h-data: Adjust limits changed in v6 and add
6895 additional suffixes.
6896 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6897 Add optional functions mq_timedreceive and mq_timedsend.
6898 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6899 * conform/data/pthread.h-data: Fix prototype of
6900 pthread_condattr_setclock. pthread_sigmask is not required in v6.
6901 * conform/data/semaphore.h-data: Allow time.h definitions.
6902 * conform/data/signal.h-data: Likewise.
6903 * conform/data/stdio.h-data: getw and putw are not required in v6.
6904 * conform/data/stdlib.h-data: Change setstate prototype.
6905 * conform/data/string.h-data: Fix strerror_r prototype.
6906 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6907 * conform/data/unistd.h-data: pthread_atfork not required in v6.
6908 Fix readlink prototype.
6909 * conform/data/netinet/in.h-data: Add const to in6addr_any and
6911 * inet/netinet/in.h: Cleanup namespace.
6912 * posix/regex.h: Likewise.
6913 * resolv/netdb.h: Likewise.
6914 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6915 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6916 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6917 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6918 of names of in in6_addr.
6919 (default_precedence): Likewise.
6920 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6923 2008-01-15 Ulrich Drepper <drepper@redhat.com>
6925 * conform/data/fmtmsg.h-data: Add missing allows.
6926 * conform/data/ftw.h-data: Likewise.
6927 * conform/data/inttypes.h-data: Likewise.
6928 * conform/data/math.h-data: Likewise.
6929 * conform/data/signal.h-data: Likewise.
6930 * conform/data/net/if.h-data: Likewise.
6931 * conform/data/netinet/in.h-data: Likewise.
6932 * conform/data/sys/socket.h-data: Likewise.
6935 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6936 (__strtok_r): Simplify.
6937 * string/tester.c (test_strtok_r): Add test case for futile search
6938 with single-character seach string.
6940 2008-01-12 Ulrich Drepper <drepper@redhat.com>
6942 * po/ko.po: Update from translation team.
6944 2008-01-11 Andreas Jaeger <aj@suse.de>
6947 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6948 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6951 2008-01-10 Ulrich Drepper <drepper@redhat.com>
6953 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6954 native interface lookup in all the relevant places.
6956 2008-01-10 Jakub Jelinek <jakub@redhat.com>
6957 Ulrich Drepper <drepper@redhat.com>
6959 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6960 field. Use sockaddr_in6 for source_addr.
6961 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
6962 (match_prefix): Likewise.
6963 (get_label): Likewise.
6964 (get_precedence): Likewise.
6965 (rfc3484_sort): Change to use indirect access to results array.
6966 Adjust to use of sockaddr_in6. Replace service_order test with
6967 simple index comparison.
6968 (getaddrinfo): Define order array. Initialize it. Don't initialize
6969 service_order field. Adjust qsort_t calls. Access sorted result
6970 array indirectly through order array.
6971 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6972 * posix/tst-rfc3484-2.c: Likewise.
6973 * posix/tst-rfc3484-3.c: Likewise.
6975 2008-01-09 Ulrich Drepper <drepper@redhat.com>
6978 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6980 Patch by André Cruz.
6983 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6984 (clnt_spcreateerror): Likewise.
6987 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6988 (public_mEMALIGn): Likewise.
6989 Patch mostly by Daniel Jacobowitz.
6991 2008-01-09 Jakub Jelinek <jakub@redhat.com>
6993 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6994 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6995 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6996 * stdlib/tst-makecontext2.c: New test.
6998 2008-01-08 Jakub Jelinek <jakub@redhat.com>
7000 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7002 (REINIT_PARAMS): Likewise. Undefine before end of file.
7003 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7004 transliteration hooks and REINIT_PARAMS afterwards.
7005 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7007 (REINIT_PARAMS): Define.
7008 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7009 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7010 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7011 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7012 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7013 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7014 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7015 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7016 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7017 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7018 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7019 * iconvdata/tst-iconv7.c: New test.
7021 2008-01-07 Ulrich Drepper <drepper@redhat.com>
7023 * libio/stdio.h (vscanf): Fix definition for loser compilers.
7025 2008-01-05 Jakub Jelinek <jakub@redhat.com>
7028 * nscd/connections.c (restart): Fix condition.
7030 2008-01-03 Jakub Jelinek <jakub@redhat.com>
7032 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7033 __ctype_toupper_loc): Add __THROW.
7035 2008-01-02 Ulrich Drepper <drepper@redhat.com>
7037 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7038 recognition of interface family.
7040 * posix/getconf.c: Update copyright year.
7041 * nss/getent.c: Likewise.
7042 * iconv/iconvconfig.c: Likewise.
7043 * iconv/iconv_prog.c: Likewise.
7044 * elf/ldconfig.c: Likewise.
7045 * catgets/gencat.c: Likewise.
7046 * csu/version.c: Likewise.
7047 * elf/ldd.bash.in: Likewise.
7048 * elf/sprof.c (print_version): Likewise.
7049 * locale/programs/locale.c: Likewise.
7050 * locale/programs/localedef.c: Likewise.
7051 * nscd/nscd.c (print_version): Likewise.
7052 * debug/xtrace.sh: Likewise.
7053 * malloc/memusage.sh: Likewise.
7054 * malloc/mtrace.pl: Likewise.
7055 * debug/catchsegv.sh: Likewise.
7057 2007-12-26 Ulrich Drepper <drepper@redhat.com>
7059 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7062 2007-12-23 Ulrich Drepper <drepper@redhat.com>
7064 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7065 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7067 2007-12-17 Roland McGrath <roland@redhat.com>
7069 * inet/ether_line.c (ether_line): Remove unused variable.
7071 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
7073 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7075 * login/openpty.c (openpty): Likewise.
7076 * login/pty.h (openpty, forkpty): Likewise.
7077 * manual/terminal.texi (openpty, forkpty): Likewise.
7079 2007-12-17 Ulrich Drepper <drepper@redhat.com>
7081 * malloc/malloc.c (public_cALLOc): For arenas other than
7082 main_arena, count all bytes inside the mprotect_size range of the
7083 heap as uninitialized.
7085 2007-12-16 Ulrich Drepper <drepper@redhat.com>
7087 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7090 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7091 mTRIm for all of them.
7092 (mTRIm): Additionally iterate over all free blocks and use madvise
7093 to free memory for all those blocks which contain at least one
7095 * malloc/tst-trim1.c: New file.
7096 * malloc/Makefile (tests): Add tst-trim1.
7098 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7100 2007-12-14 Ulrich Drepper <drepper@redhat.com>
7102 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7103 First cast argument to long
7104 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7106 (__vdso_clock_gettime): Likewise.
7107 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7110 2007-12-13 Ulrich Drepper <drepper@redhat.com>
7112 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7113 * locale/nl_langinfo_l.c: Real implementation, copied from
7115 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7117 2007-12-01 Jim Meyering <meyering@redhat.com>
7119 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7120 that would inhibit utf8-optimization of a regexp containing line-
7121 or buffer-anchors, e.g., `^', `$'.
7123 2007-12-12 Ulrich Drepper <drepper@redhat.com>
7125 * time/bug-getdate1.c (do_test): Don't use century values which
7126 aren't valid on 32-bit systems.
7128 2007-12-12 Jakub Jelinek <jakub@redhat.com>
7130 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7131 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7132 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7133 __strcat_g, __strncat_g): Add __asm__.
7135 2007-12-12 Ulrich Drepper <drepper@redhat.com>
7138 * io/fchmodat.c: Fix typo in stub_warning use.
7139 Patch by Petr Salinger.
7141 2007-12-11 Ulrich Drepper <drepper@redhat.com>
7143 * iconvdata/hp-thai8.c: New file.
7144 * iconvdata/Makefile: Add rules for hp-thai8.c.
7145 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7146 * iconvdata/gconv-modules: Likewise.
7149 * iconvdata/hp-greek8.c: New file.
7150 * iconvdata/Makefile: Add rules for hp-greek8.c.
7151 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7152 * iconvdata/gconv-modules: Likewise.
7155 * iconvdata/hp-turkish8.c: New file.
7156 * iconvdata/Makefile: Add rules for hp-turkish8.c.
7157 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7158 * iconvdata/gconv-modules: Likewise.
7160 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7161 (shrink_heap): ... this new function.
7162 (heap_trim): Call shrink_heap instead of grow_heap.
7164 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7165 case don't call alloc_perturb.
7167 2007-12-10 Ulrich Drepper <drepper@redhat.com>
7169 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7171 * sysdeps/unix/sysv/linux/kernel-features.h
7172 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7173 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7175 2007-12-08 Ulrich Drepper <drepper@redhat.com>
7178 * stdio-common/vfprintf.c: Do not overflow when adding to done.
7179 * stdio-common/Makefile (tests): Add bug22.
7180 * stdio-common/bug22.c: New file.
7183 * time/getdate.c: Fix filling in default values.
7184 * time/bug-getdate1.c: New file.
7185 * time/Makefile: Add rules to build and run bug-getdate1.
7187 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7188 * iconvdata/ebcdic-es.c: Likewise.
7189 * iconvdata/ebcdic-es-a.c: Likewise.
7190 * iconvdata/ebcdic-uk.c: Likewise.
7191 * iconvdata/iso8859-16.c: Likewise.
7192 * iconvdata/viscii.c: Likewise.
7193 * iconvdata/iso8859-9e.c: Likewise.
7194 * iconvdata/Makefile: Adjust appropriately.
7197 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7200 2007-12-07 Ulrich Drepper <drepper@redhat.com>
7203 * iconvdata/hp-roman9.c: New file.
7204 * iconvdata/Makefile: Add rules for hp-roman9.c.
7205 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7206 * iconvdata/gconv-modules: Likewise.
7208 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7209 * iconvdata/Makefile: Adjust appropriately.
7212 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7213 structure, it's allocated with alloca.
7214 * stdio-common/Makefile (tests): Add bug21.
7215 * stdio-common/bug21.c: New file.
7217 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
7220 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7221 keyword for gcc's braced-groups.
7223 2007-12-07 Ulrich Drepper <drepper@redhat.com>
7226 * inet/ether_line.c: Strip hostname of whitespaces.
7227 * inet/Makefile (tests): Add tst-ether_line.
7228 * inet/tst-ether_line.c: New file.
7230 2007-12-03 Ulrich Drepper <drepper@redhat.com>
7233 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7236 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7238 * stdlib/tst-setcontext.c: Catch the case where the links gets
7239 messed up and we do not reach main again.
7241 * po/ca.po: Update from translation team.
7243 2007-11-26 Ulrich Drepper <drepper@redhat.com>
7245 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7246 * posix/regex.h (REG_ENOSYS): Likewise.
7247 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7249 2007-11-25 Ulrich Drepper <drepper@redhat.com>
7251 * nscd/nscd.h (MAX_STACK_USE): Define.
7252 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7253 (gc): Initialize stack_used based on allocation in prune_cache.
7254 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7255 Clear array before use.
7257 * nscd/aicache.c (addhstaiX): Update statistics counter in case
7258 memory allocation failed.
7259 * nscd/hstcache.c (cache_addhst): Likewise.
7260 * nscd/grpcache.c (cache_addgr): Likewise.
7261 * nscd/servicescache.c (cache_addserv): Likewise.
7262 * nscd/pwdcache.c (cache_addpw): Likewise.
7263 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7265 2007-11-23 Ulrich Drepper <drepper@redhat.com>
7267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7268 and creat system calls.
7270 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7272 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
7274 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7276 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7277 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7279 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7280 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7281 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7283 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
7285 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7286 strncat): Define as macros to avoid compile errors.
7288 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
7291 2007-11-22 Ulrich Drepper <drepper@redhat.com>
7294 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7295 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7296 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7298 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7300 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7301 Return zero in case the thread library is not NPTL.
7304 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7305 initializing interface list.
7308 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7309 use result of nss_getgrgid_r if nothing was found. For other
7310 error return with a failure.
7311 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7313 * locale/programs/ld-collate.c (collate_read): Fix loop to match
7316 2007-11-19 Ulrich Drepper <drepper@redhat.com>
7318 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7319 (get_scope): For IPv4 scope, use scopes table.
7320 (fini): Free scopes table if necessary.
7321 (free_scopelist): New function.
7322 (scopecmp): New function.
7323 (gaiconf_init): Also handle scopev4 entries.
7324 * posix/tst-rfc3484.c (do_test): Initialize scopes.
7325 * posix/tst-rfc3484-2.c (do_test): Likewise.
7326 * posix/gai.conf: Document scopev4 defaults.
7327 * posix/Makefile (tests): Add tst-rfc3484-3.
7328 * posix/tst-rfc3484-3.c: New file.
7330 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7332 * posix/gai.conf: Update for current default tables.
7334 2007-11-19 Ulrich Drepper <drepper@redhat.com>
7336 * po/tr.po: Update from translation team.
7338 2007-11-18 Roland McGrath <roland@frob.com>
7340 * manual/arith.texi (Remainder Functions): Spelling fix.
7341 From Shaun Silk <genix@mysoul.com.au>.
7343 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7345 2007-11-17 Ulrich Drepper <drepper@redhat.com>
7347 * po/zh_CN.po: Update from translation team.
7349 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7350 Add sys/signalfd.h and sys/eventfd.h.
7352 2007-11-15 Bruno Haible <bruno@clisp.org>
7355 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7357 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7358 (DCIGETTEXT): Change the allocation of the 'search' variable so that
7359 it needs only fixed stack space. Delay the initialization of
7360 msgid_len until it is needed.
7362 2007-11-15 Andreas Jaeger <aj@suse.de>
7364 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7365 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7367 2007-11-15 Ulrich Drepper <drepper@redhat.com>
7369 * po/ko.po: Update from translation team.
7371 2007-11-14 Ulrich Drepper <drepper@redhat.com>
7373 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7374 significantly. The device type is also part of the ifinfomsg data.
7376 * po/sv.po: Update from translation team.
7377 * po/nl.po: Likewise.
7379 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7380 to wake up in 24 hours.
7382 * nscd/gai.c (__ioctl): Define. Include check_native.c.
7384 2007-11-13 Ulrich Drepper <drepper@redhat.com>
7386 * po/cs.po: Update from translation team.
7387 * po/pl.po: Likewise.
7389 * include/ifaddrs.h: Remove in6ai_temporary.
7390 (struct in6addrinfo): Add index element.
7391 Declare __check_native.
7392 * inet/Makefile (aux): Add check_native.
7393 * sysdeps/unix/sysv/linux/check_native.c: New file.
7394 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7395 IFA_F_TEMPORARY. Pass back ifa_index.
7396 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7397 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
7398 call __check_native if necessary.
7399 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
7400 to sort addresses. Pass information about the results.
7401 * posix/tst-rfc3484.c: Adjust for addition of index field and change
7402 of rfc3484_sort interface.
7403 * posix/tst-rfc3484-2.c: Likewise.
7405 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
7406 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7408 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7409 (qsort_r): Renamed from qsort. Take additional parameter and pass it
7410 on as third parameter to compare function and _quicksort.
7411 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7412 to the compare function.
7413 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7414 * Versions.def: Add GLIBC_2.8 for libc.
7416 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7417 * posix/tst-rfc3484-2.c: Likewise.
7419 * include/kernel-features.h: Moved to...
7420 * sysdeps/mach/hurd/kernel-features.h: ...here.
7422 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
7424 * sysdeps/i386/i586/memcpy_chk.S: New file.
7425 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7426 * sysdeps/i386/i586/memset_chk.S: Likewise.
7428 2007-11-12 Ulrich Drepper <drepper@redhat.com>
7430 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7431 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7432 list of interfaces. Also store prefix length.
7433 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7434 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7435 prefix if source and destination address are in the same subnet.
7436 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
7437 Always look for matching record in in6ai list.
7438 Correct source_addr_len value for IPv6->IPv4 converted records.
7440 2007-11-11 Roland McGrath <roland@frob.com>
7442 * include/kernel-features.h: New file.
7444 2007-11-10 Ulrich Drepper <drepper@redhat.com>
7446 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7447 complications for 64-bit platforms.
7449 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7450 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
7451 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7453 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7455 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7456 * sysdeps/wordsize-64/alphasort.c: New file.
7457 * sysdeps/wordsize-64/alphasort64.c: New file.
7458 * sysdeps/wordsize-64/fseeko.c: New file.
7459 * sysdeps/wordsize-64/fseeko64.c: New file.
7460 * sysdeps/wordsize-64/ftello.c: New file.
7461 * sysdeps/wordsize-64/ftello64.c: New file.
7462 * sysdeps/wordsize-64/ftw.c: New file.
7463 * sysdeps/wordsize-64/ftw64.c: New file.
7464 * sysdeps/wordsize-64/iofgetpos.c: New file.
7465 * sysdeps/wordsize-64/iofgetpos64.c: New file.
7466 * sysdeps/wordsize-64/iofopen.c: New file.
7467 * sysdeps/wordsize-64/iofopen64.c: New file.
7468 * sysdeps/wordsize-64/iofsetpos.c: New file.
7469 * sysdeps/wordsize-64/iofsetpos64.c: New file.
7470 * sysdeps/wordsize-64/lockf.c: New file.
7471 * sysdeps/wordsize-64/lockf64.c: New file.
7472 * sysdeps/wordsize-64/mkostemp.c: New file.
7473 * sysdeps/wordsize-64/mkostemp64.c: New file.
7474 * sysdeps/wordsize-64/mkstemp.c: New file.
7475 * sysdeps/wordsize-64/mkstemp64.c: New file.
7476 * sysdeps/wordsize-64/scandir.c: New file.
7477 * sysdeps/wordsize-64/scandir64.c: New file.
7478 * sysdeps/wordsize-64/tmpfile.c: New file.
7479 * sysdeps/wordsize-64/tmpfile64.c: New file.
7480 * sysdeps/wordsize-64/versionsort.c: New file.
7481 * sysdeps/wordsize-64/versionsort64.c: New file.
7482 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7483 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7484 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7485 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7486 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7487 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7488 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7489 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7490 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7491 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7492 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7493 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7495 * crypt/sha256-crypt.c: Fix a comment.
7496 * crypt/sha512-crypt.c: Likewise.
7498 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
7500 * sysdeps/x86_64/memset.S: Add sfence after movnti.
7502 2007-11-07 Ulrich Drepper <drepper@redhat.com>
7505 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7506 because output buffer is too small break, don't loop.
7507 * iconvdata/Makefile (tests): Add bug-iconv6.
7508 * iconvdata/bug-iconv6.c: New file.
7510 2007-11-06 Ulrich Drepper <drepper@redhat.com>
7512 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7514 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7515 size_t. Add casts where needed.
7517 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7518 old headers, don't call avc_has_perm if we don't have the
7519 permission information.
7521 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
7523 * elf/rtld.c (dl_main): Use the page size to find the map start.
7525 2007-11-05 Ulrich Drepper <drepper@redhat.com>
7527 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7528 Patch by Szymon Siwek <sls@poczta.wp.pl>.
7530 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7531 when the lookup call failed.
7533 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7534 Add prune_cond and wakeup_time.
7535 (CACHE_PRUNE_INTERNAL): Define.
7536 Update declarations of prune_cache and setup_thread.
7537 * nscd/connections.c (dbs): Update initializers.
7538 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7539 (nscd_init): Default number of threads is now 4.
7540 (invalidate_cache): Take lock before calling prune_cache.
7541 (handle_request): If SELinux forbids the request, say so.
7542 (readylist_cond): Use static initializer.
7543 (nscd_run_prune): New function. Used only by pruning threads.
7544 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
7546 (fd_ready): Update nscd_run reference.
7547 (start_threads): No need to initialize readylist_cond.
7548 Start pruning threads separately.
7549 * nscd/nscd_setup_thread.c: Change return value type to int and always
7551 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7552 to int and return nonzero value if we can use the TID address hack.
7553 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7554 the database is later than the new entry's timeout, update the
7555 wakeup time and wake the cleanup thread.
7556 (prune_cache): Return seconds the next entry in the database is still
7557 valid. Remove locking for pruning here.
7558 * nscd/nscd.conf: Document default number of threads.
7560 2007-10-31 Ulrich Drepper <drepper@redhat.com>
7562 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7563 stack is properly aligned for the target function.
7564 Correct unwind info.
7566 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7567 when using auditing libraries.
7569 2007-10-29 Ulrich Drepper <drepper@redhat.com>
7571 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7572 _nss_dns_getnetbyaddr2_r.
7573 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
7574 extra parameter to getanswer_r.
7575 (_nss_dns_getnetbyaddr_r): Now a wrapper around
7576 _nss_dns_getnetbyaddr2_r.
7578 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7580 * nscd/gethstbynm2_r.c: Remove.
7581 * nscd/gethstbynm3_r.c: New file.
7582 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7584 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
7585 __gethostbyaddr_r compatibility wrapper.
7586 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
7587 determining timeout of entry.
7588 (lookup): Take new parameter and pass it to __gethostbyname3_r and
7590 (addhstbyX): Pass reference to variable for TTL to lookup and
7592 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7593 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7594 and __nss_next2. Remove __nss_services_lookup.
7595 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
7597 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7599 * nss/getXXent_r.c: Likewise.
7600 * nss/getnssent_r.c: Likewise.
7601 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
7602 does not exist in module, try the optional second name.
7603 (__nss_next2): New function.
7604 (__nss_next): Now wrapper around __nss_next2.
7605 * nss/nsswitch.h: Adjust __nss_lookup prototype.
7606 Declare __nss_next2.
7607 Adjust definition of db_lookup_function type.
7608 * nss/service-lookup.c: Define NO_COMPAT.
7609 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7610 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7611 * inet/ether_ntoh.c: Likewise.
7612 * sunrpc/netname.c: Likewise.
7613 * sunrpc/publickey.c: Likewise.
7614 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
7615 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7616 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7617 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7618 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7620 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7622 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7624 2007-10-28 Ulrich Drepper <drepper@redhat.com>
7627 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7628 * crypt/sha512c-test.c: Likewise.
7631 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7632 to keep track of end of %[ format string element.
7633 * stdio-common/Makefile (tests): Add bug20.
7634 * stdio-common/bug20.c: New file.
7637 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7638 path elements in counting mode.
7640 2007-10-27 Andreas Jaeger <aj@suse.de>
7643 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7646 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7647 (__cleanup): Free shared library when exiting.
7648 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7649 (__cleanup): Free shared library when exiting.
7651 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
7654 * math/libm-test.inc (check_float_internal): Support
7655 denormalized return.
7657 2007-10-23 Andreas Jaeger <aj@suse.de>
7660 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7661 __LONG_LONG_PAIR to handle little endian byte order.
7662 Suggested by abhishekrai@google.com
7664 2007-10-27 Ulrich Drepper <drepper@redhat.com>
7666 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7668 2007-10-26 Ulrich Drepper <drepper@redhat.com>
7670 * nscd/cache.c (prune_cache): Move test for modified file outside
7673 2007-10-21 Andreas Jaeger <aj@suse.de>
7675 * manual/texinfo.tex: Update to latest version.
7677 * manual/sysinfo.texi (System Parameters): Fix Formatting.
7679 * manual/arith.texi (Status bit operations): Fix formatting.
7681 * manual/errno.texi (Error Messages): Fix formatting.
7683 * manual/sysinfo.texi (System Parameters): Fix formatting.
7685 * manual/libc.texinfo: Update VERSION and UPDATED.
7687 2007-10-19 Roland McGrath <roland@redhat.com>
7689 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7691 2007-10-06 David S. Miller <davem@davemloft.net>
7693 * configure.in: Add sparcv9v2 and sparc64v2.
7694 * scripts/config.sub: Likewise.
7695 * configure: Regenerate.
7696 * elf/elf.h (HWCAP_SPARC_N2): New.
7697 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7698 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7699 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7700 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7701 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7702 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7703 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7705 2007-10-18 Ulrich Drepper <drepper@redhat.com>
7707 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7708 even if the poll result indicates there is data to read.
7709 Patch by Jeff Moyer <jmoyer@redhat.com>.
7711 2007-10-18 Roland McGrath <roland@redhat.com>
7713 * elf/elf.h (NT_PPC_VMX): New macro.
7715 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7717 * version.h (VERSION): Set to 2.7.90.
7719 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7721 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
7724 2007-10-17 Roland McGrath <roland@frob.com>
7726 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7727 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7729 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7731 * version.h (VERSION): Bump to 2.7.
7732 * include/features.h (__GLIBC_MINOR__): Bump to 7.
7735 * time/tzset.c (__tz_convert): Don't force testing for a change of
7736 TZ if not called from localtime. But then also see whether the
7737 file changed, in case __use_tzfile is set.
7739 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7740 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7741 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7742 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7743 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7744 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7745 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7746 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7748 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7750 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7751 and admin selects to be able to replace the gai.conf file, lock
7752 data structures around the qsort call.
7754 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7756 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7758 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
7759 too high for the improvements. Implement bzero unconditionally for
7762 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7763 Jakub Jelinek <jakub@redhat.com>
7765 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7766 even when time_t is 32-bit.
7767 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7768 timezone data read by __tzfile_default. Ensure __tzname[0] is
7769 always set after the search.
7771 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7773 * time/tzfile.c (__tzfile_read): Help the compiler recognize
7774 unreachable code on 32-bit machines.
7776 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7779 * time/strftime_l.c: Include stdbool.h.
7780 (my_strftime): New wrapper, old function renamed to...
7781 (__strftime_internal): ... new function. Add tzset_called
7782 argument, pass it down to recursive calls, don't call tzset ()
7783 if already true, set to true after call to tzset ().
7785 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7787 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7788 into account when copying TZ string.
7790 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7792 * time/tzfile.c (__tzfile_compute): For use_last case set i to
7793 num_transition rather than num_transitions - 1.
7795 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7797 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7800 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7801 a local label rather than HIDDEN_JUMPTARGET.
7803 2007-10-15 Ulrich Drepper <drepper@redhat.com>
7805 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7806 (init_cacheinfo): Initialize it.
7807 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7808 Always define bzero.
7809 Remove non-glibc code.
7810 * sysdeps/x86_64/bzero.S: Make an empty file.
7812 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
7814 * sysdeps/x86_64/cacheinfo.c
7815 (__x86_64_preferred_memory_instruction): New.
7816 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7818 * sysdeps/x86_64/memset.S: Rewrite.
7820 2007-10-15 Roland McGrath <roland@redhat.com>
7822 * po/libc.pot: Regenerated.
7824 2007-10-15 Ulrich Drepper <drepper@redhat.com>
7826 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7830 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7831 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7832 address record to T_A/T_AAAA requests.
7834 2007-10-14 Ulrich Drepper <drepper@redhat.com>
7836 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7838 * posix/glob.c: Add some branch prediction throughout.
7840 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7843 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7845 (rfc3484_sort): Make sure that even if qsort doesn't support
7846 stable sorting out sorting here is stable by comparing service_order.
7847 (getaddrinfo): Initialize service_order.
7848 * posix/tst-rfc3484.c (do_test): Adjust for addition of
7849 service_order field to sorting structure.
7850 * posix/tst-rfc3484-2.c (do_test): Likewise.
7852 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7853 * time/tzset.c (tzset_internal): Break TZ string parsing out into
7854 __tzset_parse_tz and updating of daylight, timezone, tzname into
7856 (__tz_compute): Renamed from tz_compute. Take additional parameters.
7857 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7858 happens in __tz_compute.
7859 * time/tzfile.c (__tzfile_read): Also read TZ string.
7860 (find_transition): Fold into __tzfile_compute.
7861 (__tzfile_compute): For times beyond the last transition try to
7863 * timezone/tst-timezone.c: Information in daylight and tzname does
7864 change for Asia/Tokyo timezone with more concrete information.
7867 * include/stdio.h: Add libc_hidden_proto for ftello.
7868 * libio/ftello.c: Add libc_hidden_def.
7871 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7872 on the specified time and not the last entries in the file. Move
7873 code to determine tzname[] to...
7874 (find_transition): ...here. Add ugly guess for times before the
7877 2007-10-13 Ulrich Drepper <drepper@redhat.com>
7880 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7882 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7883 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7884 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7885 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7887 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7888 read mechanism when there are no group members and avoid no-op
7889 read syscall in this case.
7892 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7893 (__readall): If reading failed due to EAGAIN error wait a bit
7894 and possibly try again.
7895 (__readvall): Likewise.
7897 2007-10-13 Bruno Haible <bruno@clisp.org>
7899 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7900 when we cannot recode the message.
7902 2007-10-13 Ulrich Drepper <drepper@redhat.com>
7905 * libio/__freading.c (__freading): Don't return true for
7906 write-only streams. For read/write streams, check whether we
7907 performed a read operation already.
7908 * libio/Makefile (tests): Add tst-ext2.
7909 * libio/tst-ext2.c: New file.
7911 2007-10-12 Ulrich Drepper <drepper@redhat.com>
7913 * locale/programs/repertoire.c (repertoire_read): Always free
7914 memory for repertoire file name [Coverity CID 270].
7916 * elf/cache.c (save_aux_cache): Free memory allocated for
7917 temporary file name [Coverity CID 267].
7919 2007-10-12 Jakub Jelinek <jakub@redhat.com>
7921 * misc/Makefile (headers): Add bits/error.h.
7923 2007-10-12 Ulrich Drepper <drepper@redhat.com>
7925 * posix/fnmatch_loop.c: Take rule index returned as part of
7926 findidx return value into account when accessing weights.
7927 * posix/regcomp.c: Likewise.
7928 * posix/regexec.c: Likewise.
7930 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7931 (skip_to): Fix problems with parameter of elifdef/elifndef.
7933 2007-10-11 Ulrich Drepper <drepper@redhat.com>
7935 * iconv/gconv_simple.c: Add some branch prediction.
7937 2007-10-12 Jakub Jelinek <jakub@redhat.com>
7939 * locale/programs/ld-collate.c (collate_read): If ignore_content
7940 and nowtok is tok_define, eat any tok_eol tokens.
7942 2007-10-11 Jakub Jelinek <jakub@redhat.com>
7944 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7945 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7947 * inet/netinet/in.h: Don't include bits/socket.h.
7948 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7950 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7952 2007-10-10 Ulrich Drepper <drepper@redhat.com>
7954 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7956 * locale/programs/locfile-kw.gperf: Likewise.
7957 * locale/programs/ld-collate.c: Implement primitive preprocessor.
7959 2007-10-10 Jakub Jelinek <jakub@redhat.com>
7961 * stdio-common/printf-parse.h: Include string.h and wchar.h.
7962 (__find_specwc): Change into __extern_always_inline function.
7963 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
7964 (__parse_one_specmb): Remove ps argument.
7965 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7966 Adjust __find_specmb and __parse_one_specmb callers.
7967 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7968 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7970 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7973 2007-10-09 Ulrich Drepper <drepper@redhat.com>
7975 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7976 with some Pentium Ds.
7978 2007-10-08 Ulrich Drepper <drepper@redhat.com>
7980 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7982 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7985 2007-10-07 Ulrich Drepper <drepper@redhat.com>
7988 * locale/C-time.c: Set week_1stday data to 19971201.
7989 * locale/programs/ld-time.c (time_finish): Default for
7990 first_workday is Monday.
7993 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7996 * posix/glob.c (glob): Recognize patterns starting \/.
7997 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7998 (main): Add test for pattern starting \/.
8000 * misc/error.h: Use __const instead of const.
8001 * misc/bits/error.h: Likewise.
8003 2007-10-07 Andreas Jaeger <aj@suse.de>
8005 * include/bits/error.h: New file.
8007 * misc/bits/error.h (error_at_line): Fix prototype.
8009 2007-10-06 Ulrich Drepper <drepper@redhat.com>
8012 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8013 more little bugs in creating the stack frame when pltexit has to
8016 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8017 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8020 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8021 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8022 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8023 * math/libm-test.inc: Add test for this case.
8026 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8027 (svc_register): Initialize sc_mapped. Set to TRUE if call to
8028 map service succeeded.
8029 (svc_is_mapped): New function.
8030 (svc_unregister): Use it before trying to unmap service.
8032 2007-10-05 Ulrich Drepper <drepper@redhat.com>
8034 * timezone/zic.c: Update from tzcode2007h.
8037 * timezone/africa: Update from tzdata2007h.
8038 * timezone/antarctica: Likewise.
8039 * timezone/asia: Likewise.
8040 * timezone/australasia: Likewise.
8041 * timezone/europe: Likewise.
8042 * timezone/leapseconds: Likewise.
8043 * timezone/northamerica: Likewise.
8044 * timezone/southamerica: Likewise.
8045 * timzeone/zone.tab: Likewise.
8048 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8051 * string/bits/string2.h (__strdup): Cast parameters to calloc to
8052 avoid warning with -Wconversion.
8053 (__strndup): Likewise.
8054 Half the patch by Christian Iseli <christian.iseli@licr.org>.
8057 * nscd/connections.c (restart): Don't resync if database is
8058 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8060 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8061 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
8063 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8064 evetnfd_read, eventfd_write.
8065 * sysdeps/unix/sysv/linux/eventfd.c: New file.
8066 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8067 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8068 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8069 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8070 eventfd_write for GLIBC_2.7.
8072 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8073 * sysdeps/unix/sysv/linux/signalfd.c: New file.
8074 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8075 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8077 2007-10-04 Jakub Jelinek <jakub@redhat.com>
8079 * stdlib/msort.c: Include stdint.h.
8080 (struct msort_param): New type.
8081 (msort_with_tmp): Use struct msort_param pointer for unchanging
8082 parameters. Add optimized handling for several common sizes
8083 and indirect sorting mode.
8084 (qsort): Adjust msort_with_tmp callers. For big S use indirect
8086 Suggested by Belazougui Djamel .
8088 * stdlib/Makefile (tests): Add tst-qsort2.
8089 * stdlib/tst-qsort2.c: New test.
8091 2007-10-04 Ulrich Drepper <drepper@redhat.com>
8093 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8094 for dup2 in case another thread races with the current one. Retry
8097 * misc/error.h: Remove support for use outside of libc. We have to
8098 include <features.h> now. Include <bits/error.h> if possible.
8099 * misc/bits/error.h: New file.
8101 2007-10-03 Jakub Jelinek <jakub@redhat.com>
8103 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8104 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8105 __extern_always_inline functions unconditionally, drop macros.
8107 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8108 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8109 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8111 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8112 add __artificial__ attribute.
8114 2007-10-02 Ulrich Drepper <drepper@redhat.com>
8116 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8117 backward to forward direction.
8119 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8122 * locale/programs/ld-collate.c (collate_finish): Compare against last
8123 used section which is known to have rules defined.
8124 (collate_read): After order_start, correctly record order of sections
8125 and queue sections up.
8127 2007-10-01 Ulrich Drepper <drepper@redhat.com>
8130 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8131 the same number of pages.
8132 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8134 * locale/programs/ld-collate.c (collate_read): After initial copy
8135 statement, continue in state 0.
8137 * include/stdio_ext.h (__fsetlocking): Define as macro.
8139 2007-09-30 Ulrich Drepper <drepper@redhat.com>
8141 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8144 * po/pt_BR.po: Fix typo.
8146 2007-09-29 Ulrich Drepper <drepper@redhat.com>
8148 * iconvdata/Makefile (modules): Add ISO8859-9E.
8149 (distribute): Add iso8859-9e.c.
8150 (gen-8bit-gap-modules): Add iso8859-9e.
8151 * iconvdata/iso8859-9e.c: New file.
8152 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8153 * iconvdata/TESTS: Likewise.
8154 * iconvdata/tst-tables.sh: Likewise.
8156 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8158 * locale/iso-639.def: Add several new entries.
8160 2007-09-24 Jakub Jelinek <jakub@redhat.com>
8162 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8163 void * pointers instead of struct link_map **.
8164 (_dl_scope_free): Change argument type to void *.
8165 * include/link.h (struct link_map): Change type of l_reldeps
8166 to struct link_map_reldeps, move l_reldepsact into that
8168 * elf/dl-deps.c: Include atomic.h.
8169 (_dl_map_object_deps): Only change l->l_initfini when it is
8170 fully populated, use _dl_scope_free for freeing it. Optimize
8171 removal of libs from reldeps by using l_reserved flag, when
8172 some removal is needed, allocate a new list instead of
8173 reallocating and free the old with _dl_scope_free. Adjust
8174 for l_reldeps and l_reldepsact changes.
8175 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
8176 searching in l_initfini and l_reldeps without holding dl_load_lock.
8177 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8178 l_reldepsact changes.
8179 * elf/dl-close.c (_dl_close_worker): Likewise.
8180 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8182 2007-09-28 Ulrich Drepper <drepper@redhat.com>
8184 * iconvdata/Makefile (modules): Add KOI8-RU.
8185 (distribute): Add koi8-ru.c.
8186 (gen-8bit-gap-modules): Add koi8-ru.
8187 * iconvdata/koi8-ru.c: New file.
8188 * iconvdata/gconv-modules: Add entries for KOI8-RU.
8189 * iconvdata/TESTS: Likewise.
8190 * iconvdata/tst-tables.sh: Likewise.
8192 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8194 2007-09-26 Jakub Jelinek <jakub@redhat.com>
8196 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8197 with __warning__/__error__ attributes.
8198 (__warnattr): Define.
8199 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8200 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8202 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8203 of __*_chk if compile time detectable overflow is found.
8204 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8205 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8207 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8208 instead of __*_chk if compile time detectable overflow is found.
8209 (__gets_alias): Rename to...
8210 (__gets_warn): ... this. Add __warnattr.
8211 (gets): Call __gets_warn instead of __gets_alias.
8212 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8213 aliases with __warnattr.
8214 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8215 time detectable overflow is found.
8216 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8217 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8218 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8219 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8220 __getdomainname_chk_warn): New aliases with __warnattr.
8221 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8222 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8223 __*_chk_warn instead of __*_chk if compile time detectable overflow
8225 (__getgroups_chk): Rename argument to __listlen from listlen.
8226 (__getwd_alias): Rename to...
8227 (__getwd_warn): ... this. Add __warnattr.
8228 (getwd): Call __getwd_warn instead of __getwd_alias.
8229 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8230 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8231 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8232 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8233 __wcsnrtombs_chk_warn): New aliases with __warnattr.
8234 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8235 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8236 compile time detectable overflow is found.
8237 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
8238 to use __*_chk or not.
8239 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8240 in comparisons which function should be called and in __*_chk*
8241 arguments. Call __*_chk_warn instead of __*_chk if compile time
8242 detectable overflow is found.
8243 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8245 * debug/tst-chk1.c (do_test): Add a few more tests.
8247 2007-09-24 Ulrich Drepper <drepper@redhat.com>
8250 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8251 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8252 (_nl_unload_domain): Finalize conversions_lock.
8253 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8254 handling table of known conversions.
8256 2007-09-24 Jakub Jelinek <jakub@redhat.com>
8258 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8259 close_not_cancel_no_status instead of close.
8261 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
8264 * posix/regcomp.c (lookup_collation_sequence_value): Check that
8265 nrules != 0 for multibyte chars.
8267 2007-09-23 Ulrich Drepper <drepper@redhat.com>
8269 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8270 Provide better error message in case the type is unknown.
8273 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8274 * string/stratcliff.c: Make usable to test wide char functions.
8275 * wcsmbs/wcsatcliff.c: New file.
8276 * wcsmbs/Makefiel (tests): Add wcsatcliff.
8279 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8280 (distribute): Add mac-centraleurope.c.
8281 (gen-8bit-gap-modules): Add mac-centraleurope.
8282 * iconvdata/mac-centraleurope.c: New file.
8283 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8284 * iconvdata/TESTS: Likewise.
8285 * iconvdata/tst-tables.sh: Likewise.
8288 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8290 2007-09-21 Ulrich Drepper <drepper@redhat.com>
8292 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8293 from __x86_64_core_cache_size_half.
8294 (init_cacheinfo): Compute shared cache size for AMD processors with
8295 shared L3 correctly.
8296 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8298 Patch in large parts by Evandro Menezes.
8300 2007-09-19 Ulrich Drepper <drepper@redhat.com>
8302 * elf/dl-lookup.c (add_dependency): Handle failing memory
8303 allocation for dependency list. Remove unnecessary check.
8305 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8306 open/close when determining source addresses.
8308 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8309 sha512-crypt, and sha512.
8310 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8311 (distribute): Add sha256.h and sha512.h.
8312 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8313 and call the appropriate code.
8314 * crypt/sha256-crypt.c: New file.
8315 * crypt/sha256.c: New file.
8316 * crypt/sha256.h: New file.
8317 * crypt/sha256c-test.c: New file.
8318 * crypt/sha256test.c: New file.
8319 * crypt/sha512-crypt.c: New file.
8320 * crypt/sha512.c: New file.
8321 * crypt/sha512.h: New file.
8322 * crypt/sha512c-test.c: New file.
8323 * crypt/sha512test.c: New file.
8325 2007-09-19 Jakub Jelinek <jakub@redhat.com>
8327 * misc/bits/syslog.h (syslog): Remove extraneous argument from
8328 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8331 2007-09-18 Jakub Jelinek <jakub@redhat.com>
8333 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8334 %as in fscanf format strings.
8336 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8337 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8338 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8340 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8343 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8344 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8345 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8346 * elf/dl-sym.c (do_sym): Likewise.
8347 * include/link.h (struct link_map): Add l_serial field.
8348 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8349 * elf/dl-lookup.c (add_dependency): Add flags argument.
8350 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8351 flags, use THREAD_GSCOPE_RESET_FLAG before and
8352 THREAD_GSCOPE_SET_FLAG after
8353 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8354 Don't dereference map until it has been found on some list.
8355 If map->l_serial changed, return -1.
8357 2007-09-17 Jakub Jelinek <jakub@redhat.com>
8359 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8360 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8361 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8363 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8364 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8365 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8366 add libc_hidden_proto.
8367 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8368 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8369 conformance requested.
8370 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8371 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8372 conformance requested.
8373 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8374 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8375 conformance requested.
8376 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8377 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8378 ISO C99 or POSIX conformance requested.
8379 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8380 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8381 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8382 and __isoc99_vsscanf@@GLIBC_2.7.
8383 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8384 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8385 (tests): Add scanf14.
8386 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8387 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8388 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8389 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8390 CFLAGS-isoc99_scanf.c): Add $(exceptions).
8391 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8392 from using internal headers.
8393 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8394 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8395 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8396 and __isoc99_vswscanf@@GLIBC_2.7.
8397 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8398 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8399 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8400 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8401 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8402 * stdio-common/isoc99_scanf.c: New file.
8403 * stdio-common/isoc99_vsscanf.c: New file.
8404 * stdio-common/isoc99_vscanf.c: New file.
8405 * stdio-common/isoc99_vfscanf.c: New file.
8406 * stdio-common/isoc99_fscanf.c: New file.
8407 * stdio-common/isoc99_sscanf.c: New file.
8408 * wcsmbs/isoc99_fwscanf.c: New file.
8409 * wcsmbs/isoc99_vswscanf.c: New file.
8410 * wcsmbs/isoc99_swscanf.c: New file.
8411 * wcsmbs/isoc99_wscanf.c: New file.
8412 * wcsmbs/isoc99_vwscanf.c: New file.
8413 * wcsmbs/isoc99_vfwscanf.c: New file.
8414 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8415 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8416 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8417 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8418 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8419 * stdio-common/scanf14.c: New test.
8420 * stdio-common/scanf15.c: New test.
8421 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8422 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8423 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8424 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8425 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8426 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8427 __nldbl___isoc99_scanf@@GLIBC_2.7,
8428 __nldbl___isoc99_fscanf@@GLIBC_2.7,
8429 __nldbl___isoc99_sscanf@@GLIBC_2.7,
8430 __nldbl___isoc99_vscanf@@GLIBC_2.7,
8431 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8432 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8433 __nldbl___isoc99_wscanf@@GLIBC_2.7,
8434 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8435 __nldbl___isoc99_swscanf@@GLIBC_2.7,
8436 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8437 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8438 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8439 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8440 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8441 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8442 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8443 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8444 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8445 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8446 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8447 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8448 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8449 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8450 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8452 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8453 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8454 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8455 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8456 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8457 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8458 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8459 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8460 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8461 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8462 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8463 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8465 * stdio-common/Makefile (tests): Add scanf13.
8467 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8468 m modifier followed by l.
8469 (STRING_ARG): Add width argument.
8470 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8471 <case L_('C')>: Handle %mlc and %mC.
8472 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8474 * stdio-common/scanf13.c: New test.
8476 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8477 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8479 2007-09-18 Ulrich Drepper <drepper@redhat.com>
8481 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8482 type and __THROW marker of splice, vmsplice, and tee.
8483 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8484 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8485 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8486 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8487 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8488 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8489 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8490 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8491 as cancellation points.
8493 2003-11-01 Daniel Jacobowitz <dan@debian.org>
8495 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8496 parse more than three parts of the version number.
8498 2007-09-15 Ulrich Drepper <drepper@redhat.com>
8500 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8501 modifier. Patch by Jakub Jelinek.
8503 2007-08-26 Jakub Jelinek <jakub@redhat.com>
8505 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8506 call_fallocate in misc subdir.
8507 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8508 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8509 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8510 instead of __fallocate64.
8511 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8513 2007-09-15 Jakub Jelinek <jakub@redhat.com>
8515 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8516 * rt/Makefile (headers): Add bits/mqueue2.h.
8517 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8518 optimizing with GCC and __va_arg_pack_len is defined.
8519 * rt/bits/mqueue2.h: New file.
8520 * rt/mq_open.c (__mq_open): Renamed from mq_open.
8521 (mq_open): New strong_alias.
8522 (__mq_open_2): New function.
8523 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8524 (mq_open): New strong_alias.
8525 (__mq_open_2): New function.
8526 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8527 * Versions.def (librt): Add GLIBC_2.7 version.
8528 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8529 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8531 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8532 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8533 is defined rather than when not C++.
8534 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8535 __openat64_alias): New redirects.
8536 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8537 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8538 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8539 (open, open64, openat, openat64): Rewrite as __extern_always_inline
8540 functions instead of function-like macros.
8542 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
8544 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8545 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8546 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8548 2007-09-15 Mike Frysinger <vapier@gentoo.org>
8550 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8551 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8553 2007-09-14 Mike Frysinger <vapier@gentoo.org>
8555 * inet/tst-network.c: Increment ERRORS for failing tests.
8557 2007-09-07 Jakub Jelinek <jakub@redhat.com>
8559 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8560 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8561 implement as __extern_always_inline function.
8562 (vsyslog): Define as __extern_always_inline function unconditionally.
8563 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8564 When __va_arg_pack is defined, implement as __extern_always_inline
8566 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8567 __extern_always_inline functions unconditionally.
8568 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8569 bits/stdio2.h will be included.
8570 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8571 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8572 implement as __extern_always_inline functions.
8573 (vswprintf, vwprintf, vfwprintf): Define as
8574 __extern_always_inline functions unconditionally.
8575 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8577 2007-09-03 Jakub Jelinek <jakub@redhat.com>
8579 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8580 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8582 * include/features.h (__USE_EXTERN_INLINES): Define only when
8583 __extern_inline is defined.
8584 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8585 is defined instead of when not __cplusplus.
8586 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8587 is defined instead of when not __cplusplus.
8588 * socket/sys/socket.h: Include bits/socket2.h when
8589 __extern_always_inline is defined instead of when not __cplusplus.
8590 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8591 is defined instead of when not __cplusplus.
8592 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8593 is defined instead of when not __cplusplus.
8594 * string/string.h: Include bits/string3.h when __extern_always_inline
8595 is defined instead of when not __cplusplus.
8596 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8597 is defined instead of when not __cplusplus.
8598 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8599 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8601 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8602 defined __extern_always_inline instead of !defined __cplusplus.
8603 * libio/bits/stdio-ldbl.h: Likewise.
8604 * wcsmbs/bits/wchar-ldbl.h: Likewise.
8605 * misc/bits/syslog.h (syslog): Don't define for C++.
8606 (vsyslog): Use __extern_always_inline function for C++ instead of
8608 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8609 whenever that macro is defined.
8610 (vprintf): Don't provide the inline for C++.
8611 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8612 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8613 define the macros for C++.
8614 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8615 __extern_always_inline functions for C++.
8616 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8617 stat64, lstat64, fstat64, fstatat64): Don't define if not
8618 __USE_EXTERN_INLINES.
8619 * wcsmbs/bits/wchar2.h: Fix #error message.
8620 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8621 (vswprintf, vwprintf, vfwprintf): Define using
8622 __extern_always_inline functions for C++.
8623 * string/bits/string3.h: Don't #undef macros if __cplusplus.
8624 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8625 strncpy, strcat, strncat): Define as __extern_always_inline
8626 functions instead of macros for C++.
8627 * math/bits/cmathcalls.h: Guard __extern_inline routines with
8628 defined __extern_inline.
8629 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8630 to __extern_inline whenever that macro is defined.
8631 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8632 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8633 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8634 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8635 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8636 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8637 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8638 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8639 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8640 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8641 prototypes. Only provide __extern_inline routines if
8642 __USE_EXTERN_INLINES.
8643 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8645 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8646 For now avoid some *printf tests in C++. Skip all testing
8647 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8649 * debug/tst-chk4.cc: New file.
8650 * debug/tst-chk5.cc: New file.
8651 * debug/tst-chk6.cc: New file.
8652 * debug/tst-lfschk4.cc: New file.
8653 * debug/tst-lfschk5.cc: New file.
8654 * debug/tst-lfschk6.cc: New file.
8655 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8657 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8658 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8659 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8661 2007-09-13 Ulrich Drepper <drepper@redhat.com>
8663 * po/cs.po: Update from translation team.
8665 2007-09-11 Roland McGrath <roland@redhat.com>
8667 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8670 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8672 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8674 2007-09-05 Roland McGrath <roland@redhat.com>
8676 * manual/signal.texi (Signaling Another Process): Typo fix.
8677 From Karl Berry <karl@freefriends.org>.
8679 2007-08-29 Ulrich Drepper <drepper@redhat.com>
8681 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8682 zero if not defined.
8683 (make_request): Recognize optimistic addresses and treat them like
8684 deprecated addresses.
8685 Reported by Neil Horman <nhorman@redhat.com>.
8687 2007-08-28 Ulrich Drepper <drepper@redhat.com>
8689 * nscd/connections.c (send_ro_fd): Also transfer file size.
8690 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8691 file size don't call fstat.
8693 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8694 ahead and map the file. This should always be correct and we can
8695 catch problems later.
8697 2007-08-28 Jakub Jelinek <jakub@redhat.com>
8699 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8701 (__fread_alias, __fread_unlocked_alias): New aliases.
8702 (fread): New extern inline.
8703 (fread_unlocked): Likewise. Undef macro before definition of
8704 the inline function.
8705 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8706 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8707 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8708 and __fread_unlocked_chk@@GLIBC_2.7.
8709 * debug/fread_chk.c: New file.
8710 * debug/fread_u_chk.c: New file.
8711 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8713 2007-08-27 Jakub Jelinek <jakub@redhat.com>
8715 * sysdeps/unix/sysv/linux/syscalls.list
8716 (personality): Change caller to EXTRA.
8718 2007-08-25 Ulrich Drepper <drepper@redhat.com>
8720 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8722 * iconvdata/iso-2022-cn.c (BODY): Likewise.
8724 * locale/programs/ld-collate.c (collate_output): Avoid warning if
8727 * Makerules: Use -p option with mkdir.
8729 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8730 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8731 (_xdr_directory_obj): Likewise.
8732 (xdr_entry_obj): Likewise.
8733 (xdr_group_obj): Likewise.
8734 (xdr_link_obj): Likewise.
8735 (xdr_table_obj): Likewise.
8736 (_xdr_nis_result): Likewise.
8737 (_xdr_ns_request): Likewise.
8738 (_xdr_ib_request): Likewise.
8739 (_xdr_nis_taglist): Likewise.
8740 (xdr_cback_data): Likewise.
8741 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8742 (xdr_ypresp_maplist): Likewise.
8744 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8746 * posix/regex_internal.h: Prevent some declarations and definitions
8747 to be seen when used in tests.
8749 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8750 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8752 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8754 * config.make.in (datarootdir): Add to shut up configure.
8756 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8757 associativity for fully-associative caches.
8759 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8760 requests. Fill on more associativity values for L2.
8761 Patch mostly by Evandro Menezes.
8763 2007-08-24 Ulrich Drepper <drepper@redhat.com>
8765 * sysdeps/unix/sysv/linux/x86_64/init-first.c
8766 (_libc_vdso_platform_setup): Avoid using exported variable by using
8769 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8771 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8772 fallocate64 as EXTRA. It is not referenced if the symbol isn't
8775 2007-08-23 Ulrich Drepper <drepper@redhat.com>
8777 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8778 align stack for call if pltexit is to be used.
8781 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8782 align for function call in case pltexit has to be called later.
8784 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8785 implicit atomic operation when storing function pointer.
8786 (_dl_runtime_profile): Likewise.
8788 2007-08-17 Jakub Jelinek <jakub@redhat.com>
8790 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8793 2007-08-21 Ulrich Drepper <drepper@redhat.com>
8796 * string/strtok.c: Fix typo in comment.
8799 * debug/segfault.c: Fix typos in comments.
8802 * stdio-common/tempnam.c: Fix comment, it is not checked that
8803 TMPDIR points to a writable directory.
8806 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8807 memory allocated for the name server address.
8810 * nscd/connections.c (handle_request): Using sendfile always
8811 requires that mmap is used for the database.
8812 Patch by Petr Baudis <pasky@suse.cz>.
8815 * nscd/hstcache.c (cache_addhst): When reloading an entry which
8816 suddenly has two or more addresses, ignore it and remove the old
8820 * resolv/res_hconf.c: Prepare for compiling outside libc.
8821 * nscd/res_hconf.c: New file.
8822 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
8824 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8825 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8827 * nscd/hstcache.c (cache_addhst): Minimal optimization.
8830 * debug/pcprofiledump.c: Turn on internationalization by calling
8831 setlocale. Patch mostly by Benno Schulenberg.
8834 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8836 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8837 * iconvdata/bug-iconv5.c: New file.
8839 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
8842 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8843 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8844 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8845 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8846 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8847 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8848 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8849 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8851 2007-08-21 Ulrich Drepper <drepper@redhat.com>
8854 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8855 lookup loop. Suggested by John Reiser.
8857 2007-08-21 Jakub Jelinek <jakub@redhat.com>
8859 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8861 2007-08-20 Ulrich Drepper <drepper@redhat.com>
8863 * csu/libc-start.c: Don't handle VDSO_SETUP here.
8864 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8865 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8866 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
8867 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8869 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
8871 2007-08-18 Ulrich Drepper <drepper@redhat.com>
8873 * po/nl.po: Update from translation team.
8875 2007-08-16 Andreas Jaeger <aj@suse.de>
8877 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8878 Reported by Peter Festner <peter.festner@ewetel.net>.
8880 2007-08-17 Jakub Jelinek <jakub@redhat.com>
8882 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8884 2007-08-16 Jakub Jelinek <jakub@redhat.com>
8886 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8887 to check for undefined symbols.
8889 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8890 If the syscall fails, set errno to the actual returned error number
8892 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8893 arguments are incorrect, set errno to EINVAL, if the syscall
8894 fails, set errno to the actual returned error number.
8896 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8897 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8899 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8900 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
8902 (ASI_PNF, ASI_BLK_P): Don't define.
8903 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8904 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
8906 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8907 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
8910 2007-08-15 Jakub Jelinek <jakub@redhat.com>
8912 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8913 FE_UNDERFLOW on Niagara CPUs.
8915 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8918 2007-08-14 Jakub Jelinek <jakub@redhat.com>
8920 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8921 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8922 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8923 flush should be used or not inside of the function.
8924 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8926 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8927 __thread_start): Use HIDDEN_JUMPTARGET.
8928 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8929 __thread_start): Likewise.
8930 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8932 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8933 Add libc_hidden_proto.
8934 (STRTOF): Add libc_hidden_proto.
8935 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8936 (strtold_l, wcstold_l): Use them as second argument for
8939 2007-08-14 Ulrich Drepper <drepper@redhat.com>
8941 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
8943 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8945 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
8947 2007-08-14 Ulrich Drepper <drepper@redhat.com>
8949 * po/bg.po: New file. From the translation team.
8951 2007-08-13 Jakub Jelinek <jakub@redhat.com>
8953 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8954 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8955 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8956 when each feature was introduced.
8958 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8959 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8960 (CHECK_HASH): New macro.
8961 (PREPARE_VERSION): Use it.
8963 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8964 prototype if not __ASSUME_PSELECT.
8965 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8966 prototype if not __ASSUME_PPOLL.
8968 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8970 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8971 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8974 2007-08-13 Ulrich Drepper <drepper@redhat.com>
8976 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8977 (_libc_vdso_platform_setup): If vDSO is not available point
8978 __vdso_gettimeofday to the vsyscall.
8979 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8980 __vdso_gettimeofday instead of vsyscall.
8982 2007-08-13 Jakub Jelinek <jakub@redhat.com>
8984 * nscd/servicescache.c: Include kernel-features.h.
8985 * nscd/gai.c: Likewise.
8986 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8987 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8988 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8989 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8990 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8991 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8992 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8993 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8994 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8996 2007-08-12 Ulrich Drepper <drepper@redhat.com>
8998 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8999 and _dl_get_origin defines anymore.
9001 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9002 Build fix for systems which might lack POSIX timer support.
9004 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9005 (_libc_vdso_platform_setup): Mangle function pointers before storing
9007 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9008 Demangle vdso pointer before use.
9009 (INTERNAL_VSYSCALL): Likewise.
9011 * elf/cache.c (primes): Mark as const.
9012 Noted by Roland McGrath.
9014 2007-08-01 Andreas Jaeger <aj@suse.de>
9015 Jakub Jelinek <jakub@redhat.com>
9017 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9018 (options): Add option.
9019 (parse_opt): Handle option.
9020 (manual_link): Adjust process_file caller. Call implicit_soname.
9021 (search_dir): Formatting. Use and populate auxiliary cache.
9022 (main): Load and save auxiliary cache.
9023 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
9024 stat64 from fstat64 to caller.
9025 (implicit_soname): New function.
9026 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9027 leave *soname as NULL.
9028 * elf/cache.c: Include libgen.h.
9029 (print_entry, print_cache, compare, save_cache, add_to_cache):
9030 Formatting and cleanups.
9031 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9032 aux_cache_file): New structures.
9033 (AUX_CACHEMAGIC): Define.
9034 (primes): New array.
9035 (aux_hash_size, aux_hash): New variables.
9036 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9037 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9038 load_aux_cache, save_aux_cache): New functions.
9039 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9040 (init_aux_cache, search_aux_cache, add_to_aux_cache,
9041 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9042 (process_file): Adjust prototype.
9044 2007-08-12 Jakub Jelinek <jakub@redhat.com>
9046 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9049 2007-08-12 Ulrich Drepper <drepper@redhat.com>
9051 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9052 r_found_version structure as second parameter.
9053 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9054 (_dl_vdso_vsym): Change type of second parameter accordingly.
9055 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9056 (_libc_vdso_platform_setup): Adjust.
9057 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9058 (_libc_vdso_platform_setup): Likewise.
9060 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9061 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9062 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9063 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9064 * csu/libc-start.c: Pretty printing.
9065 Use VDSO_SETUP if defined.
9066 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9067 and let generic code call into _libc_vdso_platform_setup.
9068 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9069 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9070 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9071 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9072 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9074 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9075 (sysdep_rountines): Add dl-vdso.
9077 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9080 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9081 attribute_hidden to __vdso_gettimeofday prototype.
9083 2007-08-12 Roland McGrath <roland@redhat.com>
9085 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9086 From: Karl Berry <karl@freefriends.org>.
9088 2007-08-11 Ulrich Drepper <drepper@redhat.com>
9090 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9091 an atime update for the files we read.
9093 2007-08-10 Ulrich Drepper <drepper@redhat.com>
9095 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9097 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
9100 * misc/Makefile (routines): Add mkostemp and mkostemp64.
9101 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9102 * misc/mkostemp.c: New file.
9103 * misc/mkostemp64.c: New file.
9104 * stdlib/stdlib.h: Declare the new functions.
9105 * sysdeps/posix/tempname.c: Add new parameter which is added to
9106 the flags for open. Remove __GT_BIGFILE handling.
9107 * stdio-common/tempname.c: Likewise.
9108 * include/stdio.h: Adjust __gen_tempname prototype.
9109 Renumber __GT_* constants.
9110 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9111 * misc/mkdtemp.c: Likewise.
9112 * misc/mkstemp.c: Likewise.
9113 * misc/mkstemp64.c: Likewise.
9114 * misc/mktemp.c: Likewise.
9115 * stdio-common/tempnam.c: Likewise.
9116 * stdio-common/tmpfile.c: Likewise.
9117 * stdio-common/tmpfile64.c: Likewise.
9118 * stdio-common/tmpnam.c: Likewise.
9119 * stdio-common/tmpnam_r.c: Likewise.
9121 2007-08-10 Roland McGrath <roland@frob.com>
9123 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9125 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9126 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9128 2007-08-10 Ulrich Drepper <drepper@redhat.com>
9130 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9132 * nss/nss_files/files-alias.c (internal_setent): Likewise.
9133 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9134 * nss/nss_files/files-have_o_cloexec.c: New file.
9136 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9139 2007-08-10 Jakub Jelinek <jakub@redhat.com>
9141 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9142 ___new_wcstold_l): New weak aliases.
9143 (strtold_l, wcstold_l): Use them as second argument for
9146 2007-08-09 Ulrich Drepper <drepper@redhat.com>
9148 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9149 register in test for error.
9151 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9152 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9154 * po/sv.po: Update from translation team.
9156 2007-08-06 Roland McGrath <roland@redhat.com>
9158 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9159 Remove __strto*_l inlines.
9160 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9161 * stdlib/strtod.c: Add libc_hidden_def.
9162 * stdlib/strtod_l.c: Likewise.
9163 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9164 for __new_strtold and __new_wcstold.
9165 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9167 * stdlib/strtol.c: Add libc_hidden_def.
9168 * stdlib/strtol_l.c: Likewise.
9169 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9172 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9174 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9175 * scripts/data/localplt-generic.data: ... here.
9176 * elf/Makefile (check-data): Get generic file if no other.
9177 ($(objpfx)check-localplt.out): Make target unconditional.
9179 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9182 2007-08-05 Ulrich Drepper <drepper@redhat.com>
9184 * po/zh_CN.po: Updated translation from translation team.
9186 2007-08-05 Jakub Jelinek <jakub@redhat.com>
9188 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9189 Don't use CGOTSETUP and CGOTRESTORE macros.
9191 2007-08-04 Roland McGrath <roland@redhat.com>
9193 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9195 2007-08-04 Jakub Jelinek <jakub@redhat.com>
9197 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9198 __extension__ around the whole statement expression.
9200 2007-08-04 Ulrich Drepper <drepper@redhat.com>
9202 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9203 elements during initialization.
9205 * po/pl.po: Updated translation from translation team.
9206 * po/tr.po: Likewise.
9207 * po/nl.po: Likewise.
9209 2007-08-03 Ulrich Drepper <drepper@redhat.com>
9211 * rt/aio.h: Add __nonnull attributes.
9213 2007-08-03 Jakub Jelinek <jakub@redhat.com>
9215 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9216 * stdlib/Makefile (tests): Add tst-strtod5.
9217 (tst-strtod5-ENV): New.
9218 * stdlib/tst-strtod5.c: New file.
9220 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9222 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9225 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9228 2007-08-03 Jakub Jelinek <jakub@redhat.com>
9230 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9233 2007-08-02 Ulrich Drepper <drepper@redhat.com>
9235 * io/Makefile (aux): Add have_o_cloexec.
9236 * include/fcntl.h: Declare __have_o_cloexec.
9237 * io/have_o_cloexec.c: New file.
9238 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9239 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9240 fcntl call if not necessary.
9241 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9244 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9245 Avoid memset, add explicit initialization.
9246 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9247 to the end and change into zero-sized array.
9248 Move lock member to fill a hole on 64-bit platforms.
9250 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9252 * include/stdlib.h: Add __strto*_internal prototypes here.
9253 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9255 * include/wchar.h: Add __wcsto*_internal prototypes.
9256 * sysdeps/generic/inttypes.h: No need to protect the declaration
9257 of the __strto*_internal and __wcsto*_internal members here.
9259 * rt/mqueue.h: Change const to __const and add nonnull attributes.
9261 2007-08-02 Roland McGrath <roland@redhat.com>
9263 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9264 $(inst_bindir)/getconf if possible.
9266 * posix/Makefile ($(objpfx)getconf.speclist): New target.
9267 (generated): Add it.
9268 ($(inst_libexecdir)/getconf): Use it.
9270 2007-08-01 Ulrich Drepper <drepper@redhat.com>
9272 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9273 /proc is faster and sufficient. /sys is still needed for
9276 2007-08-01 Jakub Jelinek <jakub@redhat.com>
9278 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9279 syscall as __fallocate64.
9280 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9281 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9283 2007-07-30 Jakub Jelinek <jakub@redhat.com>
9285 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9288 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9289 if off_t is different rank from size_t.
9291 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9292 uw_frame_state_for): Avoid type punning warnings.
9293 * sysdeps/generic/unwind-dw2-fde-glibc.c
9294 (_Unwind_IteratePhdrCallback): Likewise.
9295 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9296 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9297 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9300 2007-07-31 Ulrich Drepper <drepper@redhat.com>
9302 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9303 total processors using sysfs.
9304 (__get_nprocs): Use sysfs to determine which processors are online.
9306 2007-07-31 Jakub Jelinek <jakub@redhat.com>
9308 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9309 syscall arguments count.
9311 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9313 2007-07-30 Roland McGrath <roland@redhat.com>
9315 * manual/libc.texinfo: Update copyrights, formatting magic, and
9316 @dircategory. From Karl Berry <karl@freefriends.org>.
9318 2007-07-29 Ulrich Drepper <drepper@redhat.com>
9321 * io/Makefile (headers): Add bits/fcntl2.h.
9323 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9325 (__CPU_EQUAL_S): Likewise.
9327 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9328 (tests): Add tst-cpuset.
9329 * posix/sched_cpualloc.c: New file.
9330 * posix/sched_cpufree.c: New file.
9331 * posix/tst-cpuset.c: New file.
9332 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9334 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9335 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9336 macros. Define CPU_*_S macros.
9338 2007-07-28 Ulrich Drepper <drepper@redhat.com>
9340 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9344 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9345 #.0g and value rounded to 1.0.
9346 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9348 2007-07-26 Jakub Jelinek <jakub@redhat.com>
9350 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9351 for int_frac_digits and frac_digits.
9353 * login/logout.c (logout): Avoid aliasing violation.
9354 * login/logwtmp.c (logwtmp): Likewise.
9356 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9358 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9360 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9362 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9364 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9367 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9369 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9371 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9372 char * to avoid warning.
9373 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9375 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9377 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9378 allocate_arrays): Cast second argument to charmap_find_symbol
9379 to char * to avoid warnings.
9381 * locale/programs/repertoire.c (repertoire_new_char): Change
9382 from_nr, to_nr and cnt to unsigned long, adjust printf format
9385 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9386 Cast second argument to new_element to char * to avoid warnings.
9388 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9390 * intl/gettextP.h (struct loaded_domain): Change plural to const
9391 struct expression *.
9392 * intl/plural-eval.c (plural_eval): Change first argument to
9393 const struct expression *.
9394 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9395 argument to const struct expression **.
9396 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9398 * intl/loadmsgcat (_nl_unload_domain): Cast away const
9399 in call to __gettext_free_exp.
9401 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9402 unitialized wstring/wpattern var warnings.
9404 * posix/runtests.c (struct a_test): Make data field const char *.
9406 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9407 vars if not LDBL_MANT_DIG >= 106.
9409 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9411 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9412 __find_specmb to avoid warning.
9414 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9416 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9419 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9422 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9423 tv var when it will be actually used.
9425 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9428 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9429 char array resp. pointer.
9430 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9432 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9433 to const unsigned char **.
9434 (ucs4_to_cns11643): Change second argument to unsigned char *.
9435 * iconvdata/euc-tw.c (BODY): Change endp type to
9436 const unsigned char *.
9437 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9439 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9440 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9441 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9442 types to unsigned char pointers/arrays instead of char.
9443 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9445 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9446 * iconvdata/jis0212.h: Include assert.h.
9447 (ucs4_to_jisx0212): Change second argument to unsigned char *.
9448 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9449 of trying to handle that.
9450 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9452 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9453 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9454 two dimensional const unsigned char arrays.
9455 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9456 Initialize endp to inptr to shut up a warning.
9458 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9461 * time/strptime_l.c (__strptime_internal): Silently ignore
9462 strftime modifiers and field width in recursive calls.
9464 * include/time.h (enum ptime_locale_status): Remove.
9465 (__strptime_internal): Remove decided and era_cnt arguments,
9466 add statep argument.
9467 * time/strptime_l.c (__strptime_internal): Remove decided
9468 and era_cnt arguments, add statep argument. Don't recompute
9469 any fields in recursive calls, only update caller's tm
9470 and state, if recursive call fails, don't change tm nor
9472 (get_alt_number): Adjust.
9473 (recursive): Adjust caller.
9474 (strptime): Likewise.
9475 * time/strptime.c (strptime): Likewise.
9477 2007-07-19 Jakub Jelinek <jakub@redhat.com>
9479 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9480 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9481 if from and to charsets are the same.
9482 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9483 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9484 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9486 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9488 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9489 Don't define wint_t when __need_mbstate_t unless it
9491 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9492 in the typedef if possible.
9493 * wctype/wctype.h (wint_t): Define by including
9494 wchar.h with __need_wint_t instead of including stddef.h
9495 with __need_wint_t and as fallback definining it ourselves.
9496 * iconv/gconv.h (__need_wint_t): Define before including
9498 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9499 or _GLIBCPP_USE_WCHAR_T.
9500 (__need_wchar_t): Don't define
9501 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9502 (__need_wint_t): Don't define before including stddef.h,
9503 define before including wchar.h only if _LIBC or
9504 _GLIBCPP_USE_WCHAR_T.
9505 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9506 * sysdeps/mach/hurd/_G_config.h: Likewise.
9507 * sysdeps/generic/_G_config.h: Likewise.
9508 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9509 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9510 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9511 if _LIBC or _GLIBCPP_USE_WCHAR_T.
9513 2007-07-28 Ulrich Drepper <drepper@redhat.com>
9515 * sysdeps/posix/posix_fallocate64.c: Undefine
9516 __posix_fallocate64_l64 before alias handling.
9517 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9518 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9519 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9520 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9522 * io/tst-posix_fallocate.c: Include <fcntl.h>.
9524 2007-07-23 Jakub Jelinek <jakub@redhat.com>
9526 * locale/programs/ld-collate.c (atwc): New variable.
9527 (add_to_tablewc): New toplevel function, moved from collate_output.
9528 (collate_output): Remove add_to_tablewc nested function.
9530 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9531 (name_insert): New function.
9532 (write_output): Remove hash_table and hash_size vars and name_insert
9535 2007-07-24 Roland McGrath <roland@redhat.com>
9537 * Makerules (install-others-programs-nosubdir): New target.
9538 (install-no-libc.a-nosubdir): Depend on it.
9540 * iconv/Makefile (install-others-programs): Set this instead of
9542 * login/Makefile (install-others-programs): Likewise.
9543 * posix/Makefile (install-others-programs): Likewise.
9545 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9548 2007-07-23 Ulrich Drepper <drepper@redhat.com>
9550 * io/Makefile (tests): Add tst-posix_fallocate.
9551 * io/tst-posix_fallocate.c: New file.
9553 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9556 2007-07-22 Roland McGrath <roland@frob.com>
9558 * hurd/getdport.c: Add missing copyright year update.
9560 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9561 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9563 2007-07-22 Ulrich Drepper <drepper@redhat.com>
9565 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9567 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9568 O_CLOEXEC is needed.
9569 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9570 Avoid additional fcntl to set O_CLOEXEC if not needed.
9571 * nis/nss_compat/compat-initgroups.c: Likewise.
9572 * nis/nss_compat/compat-pwd.c: Likewise.
9573 * nis/nss_compat/compat-spwd.c: Likewise.
9575 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
9578 * manual/errno.texi: Change ECANCELED value to 119.
9581 * mach/lock-intern.h: Include <sys/cdefs.h>.
9584 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9588 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9591 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9593 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
9595 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9597 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9599 2007-07-21 Ulrich Drepper <drepper@redhat.com>
9601 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9602 descriptor received from nscd.
9604 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9606 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9607 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9608 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9609 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9610 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9611 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9613 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9616 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9619 * login/forkpty.c (forkpty): Close master and slave fds on
9620 fork failure. Patch by
9621 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9623 2007-07-18 Jakub Jelinek <jakub@redhat.com>
9625 * include/features.h (__USE_ISOC95): New define.
9626 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9627 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9628 for -std=iso9899:199409.
9629 * CONFORMANCE: Remove comments about unsupported AMD1.
9631 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9633 * sysdeps/ia64/sched_cpucount.c: New file.
9634 * sysdeps/powerpc/sched_cpucount.c: New file.
9636 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9637 __BEGIN_DECLS/__END_DECLS around the prototype.
9638 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
9639 pointer to const cpu_set_t.
9641 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9642 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9643 __need_size_t and include stddef.h.
9644 * sysvipc/sys/msg.h: Likewise.
9645 * posix/sched.h: Likewise.
9646 * hurd/hurd/signal.h (__need_size_t): Define.
9648 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9649 neither does signal.h in pedantic ISO C namespaces. stdio.h
9650 no longer defines wint_t or wchar_t.
9652 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9653 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9654 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9655 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9656 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9657 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9658 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9659 * debug/printf_chk.c (__printf_chk): Likewise.
9660 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9661 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9663 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9666 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9667 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9669 2007-07-16 Jakub Jelinek <jakub@redhat.com>
9672 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9673 * malloc/malloc.h (realloc): Likewise.
9675 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9676 if one of proc_file_chain streams has that fileno.
9677 * stdio-common/Makefile (tests): Add tst-popen2.
9678 * stdio-common/tst-popen2.c: New test.
9680 2007-07-14 Jakub Jelinek <jakub@redhat.com>
9682 * elf/ldconfig.c: Allow GPLv2 or any later version.
9683 * elf/readlib.c: Likewise.
9684 * elf/chroot_canon.c: Likewise.
9685 * elf/cache.c: Likewise.
9686 * nscd/mem.c: Likewise.
9687 * nscd/getpwuid_r.c: Likewise.
9688 * nscd/grpcache.c: Likewise.
9689 * nscd/aicache.c: Likewise.
9690 * nscd/getsrvbynm_r.c: Likewise.
9691 * nscd/nscd.c: Likewise.
9692 * nscd/servicescache.c: Likewise.
9693 * nscd/getsrvbypt_r.c: Likewise.
9694 * nscd/initgrcache.c: Likewise.
9695 * nscd/gethstbyad_r.c: Likewise.
9696 * nscd/gethstbynm2_r.c: Likewise.
9697 * nscd/getgrnam_r.c: Likewise.
9698 * nscd/nscd_setup_thread.c: Likewise.
9699 * nscd/getpwnam_r.c: Likewise.
9700 * nscd/gai.c: Likewise.
9701 * nscd/connections.c: Likewise.
9702 * nscd/dbg_log.c: Likewise.
9703 * nscd/cache.c: Likewise.
9704 * nscd/hstcache.c: Likewise.
9705 * nscd/nscd_conf.c: Likewise.
9706 * nscd/getgrgid_r.c: Likewise.
9707 * nscd/pwdcache.c: Likewise.
9708 * catgets/gencat.c: Likewise.
9709 * locale/programs/linereader.h: Likewise.
9710 * locale/programs/locarchive.c: Likewise.
9711 * locale/programs/ld-paper.c: Likewise.
9712 * locale/programs/locfile-kw.h: Likewise.
9713 * locale/programs/ld-address.c: Likewise.
9714 * locale/programs/xmalloc.c: Likewise.
9715 * locale/programs/ld-time.c: Likewise.
9716 * locale/programs/localedef.c: Likewise.
9717 * locale/programs/simple-hash.c: Likewise.
9718 * locale/programs/xstrdup.c: Likewise.
9719 * locale/programs/ld-numeric.c: Likewise.
9720 * locale/programs/locfile-kw.gperf: Likewise.
9721 * locale/programs/ld-collate.c: Likewise.
9722 * locale/programs/charmap-kw.gperf: Likewise.
9723 * locale/programs/charmap.h: Likewise.
9724 * locale/programs/charmap-kw.h: Likewise.
9725 * locale/programs/config.h: Likewise.
9726 * locale/programs/locfile.c: Likewise.
9727 * locale/programs/ld-ctype.c: Likewise.
9728 * locale/programs/charmap.c: Likewise.
9729 * locale/programs/ld-messages.c: Likewise.
9730 * locale/programs/repertoire.h: Likewise.
9731 * locale/programs/locale.c: Likewise.
9732 * locale/programs/ld-name.c: Likewise.
9733 * locale/programs/linereader.c: Likewise.
9734 * locale/programs/locfile.h: Likewise.
9735 * locale/programs/3level.h: Likewise.
9736 * locale/programs/ld-monetary.c: Likewise.
9737 * locale/programs/ld-measurement.c: Likewise.
9738 * locale/programs/charmap-dir.c: Likewise.
9739 * locale/programs/ld-identification.c: Likewise.
9740 * locale/programs/localedef.h: Likewise.
9741 * locale/programs/charmap-dir.h: Likewise.
9742 * locale/programs/repertoire.c: Likewise.
9743 * locale/programs/simple-hash.h: Likewise.
9744 * locale/programs/ld-telephone.c: Likewise.
9745 * locale/programs/locale-spec.c: Likewise.
9746 * locale/programs/locfile-token.h: Likewise.
9747 * posix/getconf.c: Likewise.
9748 * iconv/dummy-repertoire.c: Likewise.
9749 * iconv/iconv_charmap.c: Likewise.
9750 * iconv/iconvconfig.c: Likewise.
9751 * iconv/iconv_prog.c: Likewise.
9752 * malloc/memusagestat.c: Likewise.
9753 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9755 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9757 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9758 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9759 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9760 check for the first argument.
9762 2007-07-12 Jakub Jelinek <jakub@redhat.com>
9765 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9766 (__tgmath_real_type): Fix if expr is const int or other const
9767 qualified integral type.
9768 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9769 expressions and handle const qualified arguments.
9770 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9771 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9772 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9773 statement expressions.
9774 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9775 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9776 (__TGMATH_UNARY_IMAG): Define.
9777 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9778 * math/Makefile (tests): Add test-tgmath2.
9779 (CFLAGS-test-tgmath2.c): Add.
9780 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9781 count_cfloat, count_cldouble): New variables.
9783 (main): Check number of complex calls as well.
9784 (F(compile_test)): Add complex tests and tests with const qualified
9786 (y, z, ccount): Define.
9787 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9788 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9789 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9790 F(cproj)): New functions.
9791 * math/test-tgmath2.c: New test.
9793 2007-07-11 Jakub Jelinek <jakub@redhat.com>
9796 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9797 RPATH etc. as "/" rather than "", don't segfault on empty paths,
9799 * dlfcn/Makefile (distribute): Add glreflib3.c.
9800 (module-names): Add glreflib3.
9801 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9803 (LDFLAGS_glreflib3.so): New.
9804 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9806 * dlfcn/glreflib3.c: New file.
9808 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9809 returned -1, return NULL.
9810 * intl/explodename.c (_nl_explode_name): Return -1 if
9811 _nl_normalize_codeset failed.
9813 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
9815 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9816 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
9817 and avoid branch misspredicts for > 31 bytes memset case.
9818 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9819 Remove toc ref to __cache_line_size.
9821 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9822 to get ISA-V2.0 branch hints.
9823 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9824 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9825 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9826 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9827 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9828 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9829 Remove toc ref to __cache_line_size.
9831 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9832 Include math_ldbl_opt.h.
9834 2007-07-10 Ulrich Drepper <drepper@redhat.com>
9837 * time/strptime_l.c (__strptime_internal): Implement greedy
9838 matching of weekday and month names.
9840 2007-07-09 Roland McGrath <roland@redhat.com>
9842 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9843 (ELF_NOTE_ABI): Use it.
9844 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9846 2007-07-09 Ulrich Drepper <drepper@redhat.com>
9848 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9849 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9851 2007-07-07 Ulrich Drepper <drepper@redhat.com>
9854 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9855 in loop to look for conversion specifier to avoid testing of
9857 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9858 * stdio-common/bug18.c: New file.
9859 * stdio-common/bug18a.c: New file.
9860 * stdio-common/bug19.c: New file.
9861 * stdio-common/bug19a.c: New file.
9863 2007-07-05 Mike Frysinger <vapier@gentoo.org>
9865 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9868 2007-07-01 Jakub Jelinek <jakub@redhat.com>
9870 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9871 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
9872 Return NULL if mmap failed instead of asserting it does not.
9873 (calloc): Check for integer overflow.
9875 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9878 2007-07-03 Jakub Jelinek <jakub@redhat.com>
9881 * nis/nss-default.c: Include errno.h.
9882 (init): Preserve errno.
9884 2007-07-02 Ulrich Drepper <drepper@redhat.com>
9886 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9888 2007-06-30 Ulrich Drepper <drepper@redhat.com>
9890 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9892 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
9894 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9896 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
9898 * sysdeps/s390/dl-procinfo.c: New file.
9899 * sysdeps/s390/dl-procinfo.h: New file.
9900 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9902 2007-06-29 Jakub Jelinek <jakub@redhat.com>
9904 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9905 in PT_NOTE segments with multiple notes.
9906 * elf/readelflib.c (process_elf_file): Likewise.
9908 2007-06-22 Ulrich Drepper <drepper@redhat.com>
9910 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9913 2007-06-19 Ulrich Drepper <drepper@redhat.com>
9915 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9917 2007-06-13 Jakub Jelinek <jakub@redhat.com>
9919 * include/link.h: Don't include rtld-lowlevel.h.
9920 (struct link_map): Remove l_scope_lock.
9921 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9922 (_dl_scope_free_list): New field (variable) in _rtld_global.
9923 (DL_LOOKUP_SCOPE_LOCK): Remove.
9924 (_dl_scope_free): New prototype.
9925 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9926 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9927 (_dl_profile_fixup): Likewise.
9928 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
9929 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9930 THREAD_GSCOPE_RESET_FLAG around it.
9931 * elf/dl-close.c (_dl_close_worker): Don't use
9932 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
9933 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
9934 scopes were queued or if l_scope_mem has been abandoned.
9935 * elf/dl-open.c (_dl_scope_free): New function.
9936 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
9937 * elf/dl-support.c (_dl_scope_free_list): New variable.
9938 * elf/dl-lookup.c (add_dependency): Remove flags argument.
9939 Remove DL_LOOKUP_SCOPE_LOCK handling.
9940 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
9942 * elf/dl-object.c (_dl_new_object): Don't use
9943 __rtld_mrlock_initialize.
9945 2007-06-19 Ulrich Drepper <drepper@redhat.com>
9947 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9949 (rtld_global_ro): Likewise.
9951 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9953 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9954 Move PT_LOAD checking to...
9955 (_dl_addr_inside_object): ... here, new function.
9956 * elf/dl-sym.c (do_sym): If not l_contiguous,
9957 call _dl_addr_inside_object.
9958 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9959 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9960 * elf/dl-open.c (dl_open_worker): Likewise.
9961 (_dl_addr_inside_object): New function if IS_IN_rtld.
9962 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9963 holes are present or are PROT_NONE protected.
9964 * include/link.h (struct link_map): Add l_contiguous field.
9965 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9967 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9968 Tomas Janousek <tjanouse@redhat.com>
9969 Ulrich Drepper <drepper@redhat.com>
9972 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
9973 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9975 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
9976 unused member a bitmap.
9977 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9978 servers are configured.
9980 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9982 * elf/rtld.c (dl_main): Don't call init_tls more than once.
9984 2007-06-17 Andreas Schwab <schwab@suse.de>
9986 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9988 2007-06-16 Andreas Jaeger <aj@suse.de>
9991 * sysdeps/unix/sysv/linux/sys/ptrace.h
9992 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9993 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9994 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9995 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9996 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9998 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9999 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10000 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10001 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10003 2007-06-16 Ulrich Drepper <drepper@redhat.com>
10006 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10007 determining whether there are IPv4/IPv6 addresses, ignore loopback
10010 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10012 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10013 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10014 as the return type. Change type of "r" variable to CMPtype.
10015 * soft-fp/eqsf2.c (__eqsf2): Likewise.
10016 * soft-fp/eqtf2.c (__eqtf2): Likewise.
10017 * soft-fp/gedf2.c (__gedf2): Likewise.
10018 * soft-fp/gesf2.c (__gesf2): Likewise.
10019 * soft-fp/getf2.c (__getf2): Likewise.
10020 * soft-fp/ledf2.c (__ledf2): Likewise.
10021 * soft-fp/lesf2.c (__lesf2): Likewise.
10022 * soft-fp/letf2.c (__letf2): Likewise.
10023 * soft-fp/unorddf2 (__unorddf2): Likewise.
10024 * soft-fp/unordsf2 (__unordsf2): Likewise.
10025 * soft-fp/unordtf2 (__unordtf2): Likewise.
10027 2007-06-09 Ulrich Drepper <drepper@redhat.com>
10029 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10030 make sure gcc doesn't mess around with this.
10032 2007-06-08 Ulrich Drepper <drepper@redhat.com>
10034 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10036 2007-06-08 Jakub Jelinek <jakub@redhat.com>
10038 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10039 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10040 at most once per _dl_close_worker.
10042 2007-06-08 Ulrich Drepper <drepper@redhat.com>
10044 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10045 __sched_cpucount as const.
10046 * posix/sched_cpucount.c: Adjust.
10048 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10049 instruction for counting bits.
10050 * sysdeps/x86_64/sched_cpucount.c: New file.
10052 2007-06-07 Ulrich Drepper <drepper@redhat.com>
10054 * configure.in: Avoid variable named BASH.
10055 * config.make.in: Likewise.
10056 Patch in part by Mike Frysinger.
10058 2007-06-06 Jakub Jelinek <jakub@redhat.com>
10061 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10062 pseudo-zeros as zero.
10063 * sysdeps/x86_64/ldbl2mpn.c: New file.
10064 * sysdeps/ia64/ldbl2mpn.c: New file.
10066 2007-06-04 Jakub Jelinek <jakub@redhat.com>
10068 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10069 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10070 Remove unreachable code at the end.
10072 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
10074 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10075 ldbl-128ibm in comment.
10076 (fpclassifyl): Correct classification of denormals.
10077 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10078 return value for MIN denormal. Rewrite using long double math too
10079 correctly handle denormals and canonicalize the results.
10081 2007-06-05 Jakub Jelinek <jakub@redhat.com>
10083 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10084 (__mpn_construct_long_double): Fix conversion where result ought
10085 to be smaller than __LDBL_MIN__, or the low double should be
10086 denormal. Fix decision where to negate low double - honor round
10088 * stdio-common/tst-sprintf2.c: Include string.h.
10089 (COMPARE_LDBL): Define.
10090 (TEST): Also test whether a string hexadecimal float representation
10091 can be parsed back to the number.
10092 (main): Add a couple of further tests.
10094 2007-06-04 Jakub Jelinek <jakub@redhat.com>
10096 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10097 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10098 is non-zero, but smaller than 2 * __DBL_MIN__.
10099 * stdio-common/tst-sprintf2.c: New test.
10100 * stdio-common/Makefile (tests): Add tst-sprintf2.
10102 * math/test-misc.c (main): Don't run last batch of tests with
10103 IBM long double format.
10105 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10107 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10108 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10109 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10110 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10111 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10112 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10113 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10114 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10115 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10116 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10117 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10118 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10120 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10122 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10126 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10128 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10129 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10131 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10133 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10135 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10137 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10140 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10142 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10143 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10144 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10145 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10146 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10147 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10148 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10149 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10151 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
10153 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10154 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10155 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10156 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10157 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10158 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10159 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10160 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10162 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
10164 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10165 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10166 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10167 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10169 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
10171 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10172 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10174 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
10176 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10177 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10178 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10179 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10181 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
10183 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10184 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10186 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
10188 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10189 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10191 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10192 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10193 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10194 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10196 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
10198 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10199 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10200 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10201 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10203 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
10205 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10206 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10207 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10208 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10209 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10210 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10212 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
10214 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10215 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10216 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10217 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10219 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
10221 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10222 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10223 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10224 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10225 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10226 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10227 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10228 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10229 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10230 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10231 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10232 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10233 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10234 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10235 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10236 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10238 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
10240 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10241 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10243 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
10245 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10246 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10248 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10250 * sysdeps/powerpc/powerpc32/970/Implies: New file.
10251 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10252 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10253 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10254 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10255 * sysdeps/powerpc/powerpc64/970/Implies: New file.
10256 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10257 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10258 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10259 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10261 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
10263 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10265 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
10267 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10268 branch miss-predicts. Ensure that cache line crossing does not impact
10271 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
10273 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10274 "../../powerpc32/power4/memcopy.h".
10275 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10276 "../../powerpc32/power4/wordcopy.c".
10278 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
10280 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10281 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10282 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10283 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10284 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10285 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10287 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
10289 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10291 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
10293 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10294 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10295 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10296 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10297 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10298 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10299 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10300 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10302 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
10304 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10306 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
10308 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10309 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10310 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10311 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10312 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10313 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10314 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10316 2007-05-29 Roland McGrath <roland@redhat.com>
10318 * po/Makefile (po-sed-cmd): New variable.
10319 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10321 2007-05-29 Ulrich Drepper <drepper@redhat.com>
10323 * crypt/md5-crypt.c: Fix comment.
10325 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10326 of crashing. When this is the case or if the reply is malformed,
10327 don't try to close the new file descriptor since it does not
10329 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10331 2007-05-28 Jakub Jelinek <jakub@redhat.com>
10333 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10334 if __NR_utimensat is not defined.
10336 2007-05-26 Ulrich Drepper <drepper@redhat.com>
10338 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10340 2007-05-25 Jakub Jelinek <jakub@redhat.com>
10342 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10343 (open): Fix comment typos. Don't call __open_2 if flags
10344 is a compile time constant without O_CREAT.
10345 (__open64_2): Add nonnull attribute.
10346 (open64): Fix comment typos. Don't call __open64_2 if flags
10347 is a compile time constant without O_CREAT.
10348 (__openat_2): Add nonnull attribute, fix nonnull attribute
10350 (openat): Fix comment typos. Don't call __openat_2 if flags
10351 is a compile time constant without O_CREAT.
10352 (__openat64_2): Add nonnull attribute, fix nonnull attribute
10354 (openat64): Fix comment typos. Don't call __openat64_2 if flags
10355 is a compile time constant without O_CREAT.
10357 2007-05-24 Ulrich Drepper <drepper@redhat.com>
10359 * Makerules (sysd-rules): Define PTW for ptw-* files.
10360 * Versions: Define GLIBC_2.7 for libc.
10361 * include/stdio.h: Declare __fortify_fail.
10362 * debug/fortify_fail.c: New file.
10363 * debug/Makefile (routines): Add fortify_fail.
10364 * debug/chk_fail.c: Use __fortify_fail.
10365 * debug/stack_chk_fail.c: Likewise.
10366 * io/Versions: Export __open_2, __open64_2, __openat_2, and
10367 __openat64_2 for GLIBC_2.7.
10368 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10369 * io/open.c: Define *_2 variant of function which checks for O_CREAT
10370 and fails if necessary.
10371 * io/open64.c: Likewise.
10372 * io/openat.c: Likewise.
10373 * io/openat64.c: Likewise.
10374 * sysdeps/unix/sysv/linux/open64.c: Likewise.
10375 * sysdeps/unix/sysv/linux/openat.c: Likewise.
10376 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10377 * io/bits/fcntl2.h: New file.
10378 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10380 * include/bits/fcntl2.h: New file.
10381 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10383 * sysdeps/unix/sysv/linux/open_2.c: New file.
10385 2007-05-21 Ulrich Drepper <drepper@redhat.com>
10387 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10388 as second parameter to handle_intel.
10390 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10393 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10395 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
10396 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10398 * sysdeps/x86_64/memcpy.S: Complete rewrite.
10399 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10400 Patch by Evandro Menezes <evandro.menezes@amd.com>.
10402 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10404 2007-05-21 Jakub Jelinek <jakub@redhat.com>
10407 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10408 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10409 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10411 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10414 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10415 reinitialize workend at the start of each do_positional format spec
10416 loop, free workstart before do_positional loops.
10417 (printf_unknown): Fix size of work_buffer.
10418 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10420 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10421 (public_sET_STATe): If ms->version < 3, put all chunks into
10422 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10425 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10426 * malloc/hooks.c: Likewise.
10427 * malloc/arena.c: Likewise.
10428 * malloc/malloc.c (do_check_malloc_state): Don't assert
10429 n_mmaps is not greater than n_mmaps_max. This removes the need
10430 for the previous change.
10432 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10435 2007-05-19 Ulrich Drepper <drepper@redhat.com>
10437 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10438 Define for kernel >= 2.6.22.
10440 2007-05-18 Ulrich Drepper <drepper@redhat.com>
10442 * elf/dl-close.c (_dl_close_worker): When removing object from
10443 global scope, wait for all lookups to finish afterwards.
10444 * elf/dl-open.c (add_to_global): When global scope array must
10445 grow, allocate a new one and free old array only after all
10447 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10448 (_dl_lookup_symbol_x): Likewise.
10449 * elf/dl-support.c: Define _dl_wait_lookup_done.
10450 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10451 _dl_wait_lookup_done.
10453 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10454 not overlapping with arena.
10456 * malloc/mcheck.c (reallochook): If size==0, free the block.
10458 * rt/tst-shm.c: Use fstat64 instead of fstat.
10460 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10461 __NR_sync_file_range is not defined.
10463 2007-05-17 Ulrich Drepper <drepper@redhat.com>
10465 Dummy files to prevent stub versions from being used.
10466 * sysdeps/x86_64/fpu/k_cosl.c: New file.
10467 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10468 * sysdeps/x86_64/fpu/k_sinl.c: New file.
10469 * sysdeps/x86_64/fpu/k_tanl.c: New file.
10471 * version.h (VERSION): Set to 2.6.90.
10473 2007-05-14 Ulrich Drepper <drepper@redhat.com>
10475 * version.h (VERSION): Define to 2.6.
10476 * include/features.h (__GLIBC_MINOR__): Define to 6.
10478 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10480 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10483 2007-05-13 Ulrich Drepper <drepper@redhat.com>
10485 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10486 number of mmaps. n_mmaps_max is the target.
10487 * malloc/hooks.c: Likewise.
10488 * malloc/arena.c: Likewise.
10490 2007-05-12 Andreas Jaeger <aj@suse.de>
10492 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10495 2007-05-11 Ulrich Drepper <drepper@redhat.com>
10497 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10498 adding new variables.
10500 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10501 optimize. Completely extend global scope array before making the
10502 new entries visible.
10504 2007-05-10 Ulrich Drepper <drepper@redhat.com>
10506 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10507 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10510 * include/link.h: Move l_version and l_nversion members around to
10513 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10515 * sysdeps/unix/sysv/linux/sched_setaffinity.c
10516 (__sched_setaffinity_new): If syscall was successful and
10517 RESET_VGETCPU_CACHE is defined, use it before returning.
10518 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10520 * io/sys/stat.h: Make sure struct timespec is defined for
10523 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10525 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10526 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10527 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10528 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10529 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10530 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10531 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10532 * io/sys/stat.h: Declare utimensat, futimens.
10533 * io/utimensat.c: New file.
10534 * io/futimens.c: New file.
10535 * sysdeps/unix/sysv/linux/utimensat.c: New file.
10536 * sysdeps/unix/sysv/linux/futimens.c: New file.
10537 * io/Makefile (routines): Add utimensat, futimens.
10538 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10539 * sysdeps/unix/sysv/linux/lutimes.c: New file.
10540 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10543 * include/sys/cdefs.h: Redefine __nonnull so that test for
10544 incorrect parameters in the libc code itself are not omitted.
10546 2007-05-09 Jakub Jelinek <jakub@redhat.com>
10548 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10549 exception in addition to inexact when asked to raise only FE_INEXACT.
10552 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10555 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10558 * string/strfry.c (strfry): Make result more random.
10560 2007-05-07 Richard Henderson <rth@redhat.com>
10562 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10563 if __NO_LONG_DOUBLE_MATH.
10564 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10565 available in the compiler, add .arch directive to the assembly.
10567 2007-05-07 Jakub Jelinek <jakub@redhat.com>
10569 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10570 compat_symbol to GLIBC_2_1.
10571 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10572 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10573 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10574 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10575 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10576 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10577 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10579 (__isnanl): New compat_symbol.
10581 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10582 Jakub Jelinek <jakub@redhat.com>
10584 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10585 (new_heap): Initialize mprotect_size.
10586 (grow_heap): When growing, only mprotect from mprotect_size till
10587 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
10588 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10590 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
10591 Peter Bergner <bergner@us.ibm.com>
10593 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10594 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
10595 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10596 * sysdeps/powerpc/fpu/fe_mask.c: New file.
10597 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10598 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10599 Call __fe_mask_env() if all FP exceptions disabled.
10600 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10601 from old FPSCR to new fenv to propagate DFP rounding modes.
10602 Call __fe_mask_env() if FP exceptions previously enabled.
10603 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10604 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
10605 transitioning from all exceptions disabled to any exception enabled
10607 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10608 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
10609 when transitioning from all exceptions disabled to any exception
10610 enabled or visa versa.
10611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10612 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10615 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10616 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10618 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10621 * posix/unistd.h: Remove __THROW from fdatasync.
10623 2007-05-06 Mike Frysinger <vapier@gentoo.org>
10626 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10628 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10630 * stdio-common/vfprintf.c (process_string_arg): Optimize
10631 ridiculous precision in wide char code printing multi-byte string.
10632 Reported by Jim Meyering <jim@meyering.net>.
10635 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10636 boundaries to work around systems with overlapping binary loading.
10637 Based on a patch by Suzuki <suzuki@in.ibm.com>.
10639 2007-05-04 Ulrich Drepper <drepper@redhat.com>
10641 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10642 __mbsnrtowcs after last change.
10644 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10645 (get_ident): Likewise.
10647 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10649 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10650 with setting the sticky bit.
10651 * math/test-misc.c (main): Add more truncation tests.
10653 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
10655 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10656 double in the function declaration.
10657 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10658 double in the function declaration.
10659 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10660 float in the function declaration.
10661 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10662 float in the function declaration.
10664 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10665 denormal operands. Do not generate FP_EX_DENORM exception.
10666 (FP_UNPACK_RAW_EP): Ditto.
10667 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10668 undefined _FP_UNPACK_RAW_E.
10669 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10670 undefined _FP_UNPACK_RAW_EP.
10671 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10672 undefined _FP_PACK_RAW_E.
10673 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10674 undefined _FP_PACK_RAW_EP.
10676 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10678 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10681 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
10682 Jakub Jelinek <jakub@redhat.com>
10684 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10685 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
10687 * soft-fp/op-common.h (FP_TRUNC): Ditto.
10689 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10691 * math/test-misc.c (main): Add tests for rounding long double
10692 values close to smallest double denormalized value to double.
10694 2007-04-30 Joseph Myers <joseph@codesourcery.com>
10696 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10697 condition for truncating to 0. Set sticky bit for such
10700 2007-05-02 Jakub Jelinek <jakub@redhat.com>
10702 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10703 fixed length array for ignore.
10705 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10708 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10709 stack for large precisions.
10710 * stdio-common/test-vfprintf.c (main): Add test for large
10713 2007-04-30 Jakub Jelinek <jakub@redhat.com>
10715 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10717 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10720 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10721 account in the size check.
10722 * resolv/tst-inet_ntop.c: New test.
10723 * resolv/Makefile (tests): Add tst-inet_ntop.
10725 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10726 Jakub Jelinek <jakub@redhat.com>
10729 * malloc/malloc.c: Keep separate list for first blocks on the bin
10730 lists with a given size. This helps skipping over list elements
10731 we know won't fit in two places.
10732 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10734 2007-04-28 Ulrich Drepper <drepper@redhat.com>
10737 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10738 label to Teredo tunnel addresses 2001://32.
10740 2007-04-27 Ulrich Drepper <drepper@redhat.com>
10742 * locale/programs/ld-collate.c (collate_read): Allow order_start
10745 * locale/programs/ld-collate.c (collate_read): Fix printing of
10749 * locale/C-translit.h.in: Add entry for U2044.
10752 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10753 hexa-decimal floats without exponent.
10754 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10756 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10758 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10759 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10760 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10761 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10763 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10766 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10768 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10769 of 0 after the out_fail label.
10771 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10774 * iconv/gconv_charset.h (strip): Allow ':'.
10775 * iconv/iconv_open.c (iconv_open): Adjust comment.
10777 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10779 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10782 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10785 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10786 alignment of buffer and tmp_buffer.
10787 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10788 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10789 alignment of buffer.
10790 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
10791 bigger than INT_MAX.
10792 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
10793 h_errnop arguments. Fail if buflen is too small.
10794 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10796 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10799 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10800 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
10802 2007-04-22 Roland McGrath <roland@redhat.com>
10804 * elf/elf.h (NT_PRXFPREG): New macro.
10806 2007-04-19 Andreas Jaeger <aj@suse.de>
10809 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10810 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10813 2007-04-19 Ulrich Drepper <drepper@redhat.com>
10815 * include/sys/mman.h: Mark madvise hidden.
10816 * misc/madvise.c: Add libc_hidden_def.
10818 2007-04-06 Jakub Jelinek <jakub@redhat.com>
10820 * nis/nis_domain_of.c (__nis_domain_of): New function.
10821 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10822 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10823 * nis/nis_call.c (rec_dirsearch): Likewise.
10824 (first_shoot): Likewise. Remove search_parent_first argument.
10825 (struct nis_server_cache): Rename search_parent_first field
10827 (nis_server_cache_search, nis_server_cache_add): Rename
10828 search_parent_first argument to search_parent.
10829 (__nisfind_server): Likewise. If search_parent, call
10832 2007-04-18 Ulrich Drepper <drepper@redhat.com>
10834 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10836 2007-04-17 Ulrich Drepper <drepper@redhat.com>
10839 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10841 2007-04-16 Ulrich Drepper <drepper@redhat.com>
10844 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10846 2007-04-15 Jakub Jelinek <jakub@redhat.com>
10848 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10849 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10850 current number of locales in SUPPORTED.
10851 (create_archive): Initialize serial.
10852 (enlarge_archive): Preserve aliases rather than duplicating
10855 2007-04-13 Jakub Jelinek <jakub@redhat.com>
10857 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10858 after _IO_un_link, not before it.
10860 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10861 special case handling when wcp == wstartp + 1. Fix a comment typo.
10862 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10864 2007-03-30 Jakub Jelinek <jakub@redhat.com>
10866 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10867 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10868 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10870 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10871 _IO_file_xsgetn_maybe_mmap): Likewise.
10872 * libio/oldfileops.c (old_do_write): Likewise.
10873 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10874 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10875 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10876 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10877 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10878 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10879 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10880 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10881 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10882 _IO_file_underflow, _IO_file_underflow_mmap,
10883 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10884 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10885 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10886 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10887 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10888 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10889 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10890 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10891 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10892 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10893 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10894 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10895 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10896 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10897 _IO_adjust_column_internal, _IO_default_uflow_internal,
10898 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10899 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10900 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10901 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10902 _IO_file_close_it_internal, _IO_file_underflow_internal,
10903 _IO_file_overflow_internal, _IO_file_attach_internal,
10904 _IO_file_fopen_internal, _IO_file_sync_internal,
10905 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10906 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10907 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10908 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10909 _IO_seekpos_unlocked): Likewise.
10910 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10911 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10913 2007-04-16 Jakub Jelinek <jakub@redhat.com>
10915 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10916 argument in xmalloc size computation.
10918 2007-04-01 Jakub Jelinek <jakub@redhat.com>
10920 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10921 math_opt_barrier and math_force_eval macros.
10923 2007-03-27 Jakub Jelinek <jakub@redhat.com>
10926 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10927 * sysdeps/i386/fpu/math_private.h: New file.
10928 * sysdeps/x86_64/fpu/math_private.h: New file.
10929 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10930 math_force_eval macros. Use "+m" constraint on asm rather than
10932 * math/s_nextafter.c (__nextafter): Likewise.
10933 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10935 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10936 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10937 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10938 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10939 math_opt_barrier and math_force_eval macros.
10940 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10941 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10942 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10943 (__nexttoward): Use math_opt_barrier and
10944 math_force_eval macros. Use "+m" constraint on asm rather than
10945 "=m" and "m". Only use asm to force double result if
10946 FLT_EVAL_METHOD is 2.
10947 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10948 (__nexttowardf): Use math_opt_barrier and
10949 math_force_eval macros. Use "+m" constraint on asm rather than
10950 "=m" and "m". Only use asm to force double result if
10951 FLT_EVAL_METHOD is not 0.
10952 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10953 (__nexttowardf): Use math_opt_barrier and
10954 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10955 x to float using asm.
10956 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10957 (__nldbl_nexttowardf): Use math_opt_barrier and
10958 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10959 x to float using asm.
10960 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10961 (__nexttowardf): Use math_opt_barrier and math_force_eval
10962 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
10963 * math/bug-nextafter.c (zero, inf): New variables.
10964 (main): Add new tests.
10965 * math/bug-nexttoward.c (zero, inf): New variables.
10966 (main): Add new tests.
10968 2007-03-22 Jakub Jelinek <jakub@redhat.com>
10971 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10972 exceptions both in SW and MXCSR.
10973 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10974 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10975 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10976 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10977 in MXCSR if SSE is available.
10978 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10980 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10982 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10983 Return 0 rather than 1.
10984 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10985 Remove incorrect part of a comment. Fix argument to feraiseexcept.
10986 * math/test-fenv.c (feholdexcept_tests): New function.
10989 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
10992 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10995 2007-04-13 Jakub Jelinek <jakub@redhat.com>
10998 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10999 Reported by David Anderson <davea42@earthlink.net>.
11001 2007-04-07 Ulrich Drepper <drepper@redhat.com>
11003 * posix/sys/wait.h: Remove unnecessary forward declaration.
11005 2007-04-05 Jakub Jelinek <jakub@redhat.com>
11007 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11008 with obj->do_servers after first_shoot.
11010 2007-04-03 Ulrich Drepper <drepper@redhat.com>
11012 * posix/Makefile (routines): Add sched_cpucount.
11013 (tests): Add tst-cpucount.
11014 * posix/sched_cpucount.c: New file.
11015 * posix/tst-cpucount.c: New file.
11016 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11017 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
11018 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11019 * posix/sched.h: Define CPU_COUNT.
11021 2007-03-27 Jakub Jelinek <jakub@redhat.com>
11023 * posix/fnmatch.c (STRUCT): Define.
11024 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11025 * posix/fnmatch_loop.c (struct STRUCT): New type.
11026 (FCT): Add ends argument. If ends != NULL and normal * is
11027 seen in the pattern, store current pattern and string pointers
11028 and return. Adjust recursive calls.
11029 (EXT): Adjust FCT callers.
11030 (STRUCT): Undef at the end of the file.
11031 * posix/Makefile (tests): Add tst-fnmatch2.
11032 * posix/tst-fnmatch2.c: New test.
11034 2007-04-01 Jakub Jelinek <jakub@redhat.com>
11036 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11039 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11040 Change last argument to unsigned int.
11042 2007-03-23 Jakub Jelinek <jakub@redhat.com>
11044 * scripts/check-local-headers.sh: Filter out sys/capability.h.
11046 2007-03-22 Jakub Jelinek <jakub@redhat.com>
11048 * config.h.in (HAVE_LIBCAP): Add.
11049 * nscd/selinux.h: Include sys/capability.h rather than non-existent
11050 sys/capabilities.h.
11051 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11052 free_caps. Cast away const from 4th cap_set_flag argument.
11054 2007-03-26 Ulrich Drepper <drepper@redhat.com>
11056 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11058 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11059 Add sync_file_range.
11060 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11062 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
11064 * sysdeps/powerpc/bits/atomic.h
11065 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11066 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11067 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11068 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11069 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11070 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11071 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11072 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11073 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11074 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11075 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11076 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11077 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11078 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11079 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11080 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11081 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11082 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11083 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11084 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11086 2007-03-20 Jakub Jelinek <jakub@redhat.com>
11088 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11089 (__cache_line_size): Define the variable here. Add
11090 attribute_hidden, remove weak_extern.
11091 (__libc_start_main): Set __cache_line_size
11093 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11094 (__cache_line_size): Define the variable here. Add
11095 attribute_hidden, remove weak_extern.
11096 (DL_PLATFORM_AUXV): Set __cache_line_size
11098 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11099 weak_extern, add attribute_hidden.
11100 (__elf_machine_runtime_setup): Assume __cache_line_size is always
11102 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11104 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11106 2007-03-26 Jakub Jelinek <jakub@redhat.com>
11109 * timezone/africa: Update from tzdata2007d.
11110 * timezone/asia: Likewise.
11111 * timezone/australasia: Likewise.
11112 * timezone/backward: Likewise.
11113 * timezone/europe: Likewise.
11114 * timezone/iso3166.tab: Likewise.
11115 * timezone/leapseconds: Likewise.
11116 * timezone/northamerica: Likewise.
11117 * timezone/southamerica: Likewise.
11118 * timezone/zone.tab: Likewise.
11120 * timezone/private.h: Update from tzcode2007d.
11121 * timezone/zdump.c: Likewise.
11122 * timezone/zic.c: Likewise.
11124 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11126 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11127 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11129 (nis_server_cache_search, nis_server_cache_add): New functions.
11130 (__nisfind_server): Use them. Add dbp and flags argument, if
11131 call __nisbind_create.
11132 (__nisbind_create): Add server_used and current_ep arguments,
11133 only call __nis_findfastest if server_used is ~0.
11134 (__do_niscall2, __prepare_niscall): Adjust callers.
11135 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11136 ckey_cache_euid, ckey_cache_lock): New variables.
11137 (get_ckey): New function.
11138 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11139 __pmap_getnisport. Save __pmap_getnisport result in
11140 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
11142 * nis/nis_lookup.c (nis_lookup): Likewise.
11143 * nis/nis_table.c (nis_list): Likewise.
11144 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11147 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11148 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11149 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11150 _nss_nisplus_getservbyport_r): Likewise.
11151 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11152 _nss_nisplus_getnetbyaddr_r): Likewise.
11153 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11154 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11155 _nss_nisplus_getntohost_r): Likewise.
11156 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11157 _nss_nisplus_getrpcbynumber_r): Likewise.
11159 2007-03-20 Jakub Jelinek <jakub@redhat.com>
11161 * configure.in (libc_cv_gnu89_inline): Only do compile test.
11162 * configure: Rebuilt.
11164 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11166 * soft-fp/extended.h (_FP_UNION_E): Likewise.
11168 2006-06-07 Joseph Myers <joseph@codesourcery.com>
11171 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11174 2007-03-18 Jakub Jelinek <jakub@redhat.com>
11176 * nscd/gai.c: Include alloca.h.
11177 (__libc_use_alloca): Define.
11179 2007-03-16 Jakub Jelinek <jakub@redhat.com>
11181 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11183 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11184 (DL_DST_REQUIRED): Adjust user.
11186 * include/dlfcn.h (struct link_map): New forward decl.
11188 * inet/getnameinfo.c: Include stddef.h.
11189 (getnameinfo): Use offsetof.
11191 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11193 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11195 * string/strerror_l.c: Include stdlib.h.
11197 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11198 * config.make.in (gnu89-inline-CFLAGS): New variable.
11199 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11201 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11202 * argp/argp.h: Use it.
11203 * bits/mathinline.h: Likewise.
11204 * bits/sigset.h: Likewise.
11205 * bits/string.h: Likewise.
11206 * ctype/ctype.h: Likewise.
11207 * hurd/hurd.h: Likewise.
11208 * hurd/hurd/fd.h: Likewise.
11209 * hurd/hurd/port.h: Likewise.
11210 * hurd/hurd/signal.h: Likewise.
11211 * hurd/hurd/threadvar.h: Likewise.
11212 * hurd/hurd/userlink.h: Likewise.
11213 * io/sys/stat.h: Likewise.
11214 * libio/bits/stdio.h: Likewise.
11215 * libio/bits/stdio2.h: Likewise.
11216 * mach/lock-intern.h: Likewise.
11217 * mach/mach/mig_support.h: Likewise.
11218 * math/bits/cmathcalls.h: Likewise.
11219 * posix/bits/unistd.h: Likewise.
11220 * socket/bits/socket2.h: Likewise.
11221 * stdlib/bits/stdlib.h: Likewise.
11222 * stdlib/stdlib.h: Likewise.
11223 * string/argz.h: Likewise.
11224 * string/bits/string2.h: Likewise.
11225 * string/bits/string3.h: Likewise.
11226 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11227 * sysdeps/generic/inttypes.h: Likewise.
11228 * sysdeps/generic/machine-lock.h: Likewise.
11229 * sysdeps/generic/machine-sp.h: Likewise.
11230 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11231 * sysdeps/i386/i486/bits/string.h: Likewise.
11232 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11233 * sysdeps/mach/alpha/machine-lock.h: Likewise.
11234 * sysdeps/mach/alpha/machine-sp.h: Likewise.
11235 * sysdeps/mach/i386/machine-lock.h: Likewise.
11236 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11237 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11238 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11239 * sysdeps/s390/bits/string.h: Likewise.
11240 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11241 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11242 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11243 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11244 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11245 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11246 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11247 * wcsmbs/bits/wchar2.h: Likewise.
11248 * wcsmbs/wchar.h: Likewise.
11249 * stdlib/gmp.h: Likewise. Include <features.h> to get
11250 __extern_inline definition.
11252 2007-03-15 Jakub Jelinek <jakub@redhat.com>
11254 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11258 * math/libm-test.inc (log_test): Test -Inf and NaN.
11259 (log10_test, log1p_test, log2_test): Test -Inf.
11260 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11261 FE_INVALID when argument is qNaN.
11262 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11263 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11264 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11265 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11266 andb $1, %ah with testb $1, %ah, don't test for parity, instead
11267 testb $4, %ah and jump if non-zero.
11268 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11269 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11272 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11273 ancestors with the same depths.
11274 Patch by Niels Moeller <nisse@lysator.liu.se>.
11275 (filter_doc): Don't crash if argp is NULL.
11276 * argp/Makefile (tests): Add tst-argp2.
11277 * argp/tst-argp2.c: New test.
11280 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11282 (updwtmp_file): Likewise.
11285 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11286 (inet6_opt_append): Don't check extlen is big enough if extbuf
11288 (inet6_opt_finish): Likewise.
11289 * inet/Makefile (tests): Add test-inet6_opt.
11290 * inet/test-inet6_opt.c: New test.
11292 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11293 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11294 NLMSG_ERR. Instead use a page sized buffer.
11295 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11298 2007-03-14 Richard Henderson <rth@redhat.com>
11300 * sysdeps/alpha/fpu/s_llround.c: New file.
11301 * sysdeps/alpha/fpu/s_llroundf.c: New file.
11302 * sysdeps/alpha/fpu/s_lround.c: New file.
11303 * sysdeps/alpha/fpu/s_lroundf.c: New file.
11304 * sysdeps/alpha/fpu/s_round.c: New file.
11305 * sysdeps/alpha/fpu/s_roundf.c: New file.
11306 * sysdeps/alpha/fpu/s_trunc.c: New file.
11307 * sysdeps/alpha/fpu/s_truncf.c: New file.
11309 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11310 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11311 * sysdeps/alpha/fpu/s_floor.c: Likewise.
11312 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11313 * sysdeps/alpha/fpu/s_rint.c: Likewise.
11314 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11316 * sysdeps/alpha/fpu/s_fmax.S: New file.
11317 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11318 * sysdeps/alpha/fpu/s_fmin.S: New file.
11319 * sysdeps/alpha/fpu/s_fminf.S: New file.
11320 * sysdeps/alpha/fpu/s_isnan.c: New file.
11321 * sysdeps/alpha/fpu/s_isnanf.c: New file.
11322 * sysdeps/alpha/fpu/s_llrint.c: New file.
11323 * sysdeps/alpha/fpu/s_llrintf.c: New file.
11324 * sysdeps/alpha/fpu/s_lrint.c: New file.
11325 * sysdeps/alpha/fpu/s_lrintf.c: New file.
11326 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11327 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11329 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11330 (__fdimf, fdimf, __fdim, fdim): Remove.
11331 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11332 (__isnanf, __isnan, __isnanl): New.
11334 2007-03-13 Richard Henderson <rth@redhat.com>
11336 * sysdeps/ieee754/ldbl-128/Makefile: New file.
11338 2007-03-13 Richard Henderson <rth@redhat.com>
11340 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11341 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11342 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11343 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11344 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11345 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11347 2007-03-13 Richard Henderson <rth@redhat.com>
11349 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11350 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11351 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11352 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11353 Move to dl-auxv.h; initialize instead of extern weak.
11354 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11356 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11357 Extern instead of initialized.
11359 2007-03-13 Richard Henderson <rth@redhat.com>
11361 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11362 __sigsuspend_nocancel.
11364 2007-03-06 Ulrich Drepper <drepper@redhat.com>
11366 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11367 172.16/12 address range.
11369 2007-03-02 Jakub Jelinek <jakub@redhat.com>
11371 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11372 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11375 2007-03-01 Jakub Jelinek <jakub@redhat.com>
11378 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11380 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11382 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11383 for x qNaN and y either +-inf or non-integer value.
11384 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11385 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11386 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11388 2007-02-10 Mike Frysinger <vapier@gentoo.org>
11390 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11391 from sysdep_headers.
11393 2007-02-28 Jakub Jelinek <jakub@redhat.com>
11395 * time/tzfile.c (find_transition): Instead of a linear search try to
11396 guess the transition index, use a linear search if the result is at
11397 most 10 transitions away from the guess or binary search otherwise.
11399 2007-02-27 Jakub Jelinek <jakub@redhat.com>
11401 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11402 memory reallocation.
11404 2007-02-21 Ulrich Drepper <drepper@redhat.com>
11406 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11407 and fix some typos.
11408 Optimize use of TOLOWER.
11411 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11412 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11413 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11416 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11417 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11420 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11421 (open_dir_stream): Likewise.
11422 * io/Makefile (tests): Add bug-ftw5.
11423 * io/bug-ftw5.c: New file.
11425 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11426 * nscd/servicescache.c (cache_addserv): Likewise.
11428 * nscd/grpcache.c (cache_addgr): In case a record changed on
11429 refresh, adjust key_copy.
11432 * nscd/pwdcache.c (cache_addpw): In case a record changed on
11433 refresh, adjust key_copy.
11436 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11438 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11440 2007-02-19 Ulrich Drepper <drepper@redhat.com>
11442 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11445 * stdio-common/vfscanf.c: Small cleanups throughout.
11447 2007-02-18 Ulrich Drepper <drepper@redhat.com>
11450 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11451 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11452 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11453 Patch by Jared Casper <jaredcasper@gmail.com>.
11455 * sysdeps/unix/closedir.c: Outside libc don't use locking.
11456 * sysdeps/unix/opendir.c: Likewise.
11457 * sysdeps/unix/readdir.c: Likewise.
11460 * stdio-common/vfscanf.c: Handle localized digits etc for floating
11462 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11464 * stdio-common/vfscanf.c: Fix problems in width accounting.
11465 * stdio-common/tst-sscanf.c (double_tests): New tests.
11466 (main): Hook them up.
11468 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11469 More simplifications of floating-point reader.
11471 * stdio-common/Makefile (tests): Add tst-swscanf.
11472 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11474 * stdio-common/tst-swscanf.c: New file.
11476 2007-02-17 Ulrich Drepper <drepper@redhat.com>
11479 * libio/stdio.h: Define struct _IO_FILE in global namespace.
11480 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11481 Remove using for __jmp_buf_tag.
11482 * locale/locale.h (struct lconv): Also define in std namespace.
11483 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11486 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11487 using __libc_enable_secure.
11490 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11493 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11494 of names for ellipsises.
11497 * malloc/memusage.sh: Cleanups.
11498 * debug/xtrace.sh: Quoting and trap changes.
11500 2007-02-16 Ulrich Drepper <drepper@redhat.com>
11502 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11504 * locale/iso-3166.def: Update entry for Serbia.
11505 * locale/iso-4217.def: Define RSD, remove CSD.
11507 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11508 and 64-bit operations.
11511 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11514 * nscd/nscd.c (parse_opt): One more conversion to use send instead
11517 2007-02-15 Ulrich Drepper <drepper@redhat.com>
11520 * assert/assert.h (assert): Simplify.
11521 (assert_perror): Likewise.
11522 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11524 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11527 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11528 change: don't pass NULL in place of an integer.
11530 2007-02-02 Bruno Haible <bruno@clisp.org>
11533 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11534 Add mapping for U+327E.
11535 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11536 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11537 mapping of 0xD9 0xE8.
11538 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11540 Reported by Jungshik Shin <jungshik@google.com>.
11543 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11544 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11545 Reported by Jungshik Shin <jungshik@google.com>.
11547 2007-02-14 Ulrich Drepper <drepper@redhat.com>
11549 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11553 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11554 byte variants. Patch mostly be tom@tommay.net.
11556 2007-02-14 Jakub Jelinek <jakub@redhat.com>
11559 * posix/glob.c (attribute_hidden): Define if not defined.
11560 (glob): Unescape dirname, filename or username when needed and not
11561 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
11562 is NULL. Handle unescaped [ in pattern without closing ].
11563 Don't pass GLOB_CHECK down to recursive glob for directories.
11564 (__glob_pattern_type): New function.
11565 (__glob_pattern_p): Implement using __glob_pattern_type.
11566 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11567 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11568 Remove unreachable code.
11569 * posix/globtest.sh: Add a couple of new tests.
11571 2007-02-13 Ulrich Drepper <drepper@redhat.com>
11573 * po/ru.po: Update from translation team.
11575 2007-02-12 Jakub Jelinek <jakub@redhat.com>
11577 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11578 to the list of i486+ CPUs.
11579 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11581 2007-02-12 Ulrich Drepper <drepper@redhat.com>
11583 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11584 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11587 2007-02-09 Ulrich Drepper <drepper@redhat.com>
11589 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11591 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11592 * resolv/res_mkquery.c: Define __res_nopt.
11593 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11594 try adding EDNS0 record.
11595 * resolv/res_send.c (send_dg): If request failed with FORMERR and
11596 EDNS0 record was send make sure we don't try it again.
11597 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11598 * include/resolv.h: Declare __res_nopt.
11600 2007-02-08 Jakub Jelinek <jakub@redhat.com>
11603 * time/strptime_l.c (__strptime_internal): Set have_mon for
11604 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
11605 have been computed from tm_yday and tm_year. Don't crash
11606 in day_of_the_week or day_of_the_year if not have_mon
11607 and tm_mon contains bogus value.
11608 * time/Makefile (tests): Add tst-strptime3.
11609 * time/tst-strptime3.c: New test.
11611 2007-02-05 Jakub Jelinek <jakub@redhat.com>
11614 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11615 bit for RE_HAT_LISTS_NOT_NEWLINE.
11616 (build_charclass_op): Remove bogus comment.
11617 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11618 * posix/bug-regex27.c: New test.
11619 * posix/bug-regex28.c: New test.
11621 2007-02-03 Ulrich Drepper <drepper@redhat.com>
11623 * po/sv.po: Update from translation team.
11625 2007-02-02 Ulrich Drepper <drepper@redhat.com>
11627 * nscd/nscd_helper.c (open_socket): Minor size optimization.
11629 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11631 * include/locale.h (__uselocale): Add libc_hidden_proto.
11632 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11634 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11637 2007-02-01 Ulrich Drepper <drepper@redhat.com>
11639 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11641 (PTR_DEMANGLE): Real definition now that it's not the same as
11642 PRT_MANGLE anymore.
11643 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11645 * string/strerror_l.c: New file.
11646 * string/Makefile (routines): Add strerror_l.
11647 * string/string.h: Declare strerror_l.
11648 * string/Versions: Export strerror_l for GLIBC_2.6.
11650 2007-01-31 Ulrich Drepper <drepper@redhat.com>
11652 * nscd/nscd_helper.c (open_socket): Now takes request type and key
11653 as parameter. Construct request record. Try sending request
11654 before the first poll use, it usually succeeds. Adjust all
11656 * nscd/nscd-client.h: Define MAXKEYLEN.
11657 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11659 2007-01-31 Jakub Jelinek <jakub@redhat.com>
11661 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11663 * nscd/nscd_helper.c: Include string.h.
11664 (__nscd_cache_search): Remove const qualifier from return value.
11665 On strict alignment architectures check hash entry and data head
11667 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11668 mmapped data during GC cycle contains garbage. If
11669 __nscd_drop_map_ref fails, decrement mapped->counter when returning
11670 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11672 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11673 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11674 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11675 * nscd/nscd_getai.c (__nscd_getai): Likewise.
11676 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11678 2007-01-30 Ulrich Drepper <drepper@redhat.com>
11680 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11682 2007-01-26 Ulrich Drepper <drepper@redhat.com>
11684 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11685 names not numbers in cfi_*.
11687 2007-01-26 Andreas Jaeger <aj@suse.de>
11689 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11690 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11691 Correct values of PER_HPUX and PER_OSF4.
11693 2007-01-24 Ulrich Drepper <drepper@redhat.com>
11695 * elf/dl-minimal.c: Undefine _itoa first.
11696 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11697 * malloc/mtrace.c: Revert last change.
11698 * posix/wordexp.c: Likewise.
11700 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11702 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11703 and __geode__ to the list of i486+ CPUs.
11704 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11706 2007-01-23 Ulrich Drepper <drepper@redhat.com>
11708 * stdio-common/_itoa.c: Include <limits.h>.
11709 * stdio-common/_itowa.c: Likewise.
11711 2007-01-22 Ulrich Drepper <drepper@redhat.com>
11713 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11715 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11717 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11719 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11723 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11724 * stdio-common/Makefile (tests): Add bug17.
11725 * stdio-common/bug17.c: New file.
11727 2007-01-19 Ulrich Drepper <drepper@redhat.com>
11729 * iconvdata/brf.c: New file.
11730 * iconvdata/testdata/BRF: New file.
11731 * iconvdata/testdata/BRF..UTF8: New file.
11732 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11733 * iconvdata/Makefile: Add rules to build BRF.
11734 * iconvdata/TESTS: Add BRF entry.
11735 * iconvdata/gconv-modules: Likewise.
11736 * iconvdata/tst-tables.sh: Likewise.
11738 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
11740 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11741 type `long long int', not `long int'.
11742 (wcstoq): Likewise.
11744 2007-01-18 Ulrich Drepper <drepper@redhat.com>
11746 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11747 of values on 64-bit platforms which are too large.
11749 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
11750 Joe Kerian <jkerian@us.us.ibm.com>
11753 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11754 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
11755 (__copysignl): Use signbit() for comparison.
11756 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11757 SET_LDOUBLE_WORDS64.
11760 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11761 (__ceill): Remove calls to fegetround(), fesetround().
11762 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11763 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11764 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11766 2007-01-17 Jakub Jelinek <jakub@redhat.com>
11768 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11770 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11772 2007-01-17 Ulrich Drepper <drepper@redhat.com>
11774 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11776 * csu/libc-start.c: Likewise.
11778 2007-01-16 Ulrich Drepper <drepper@redhat.com>
11780 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11781 really work anyway.
11783 2007-01-15 Ulrich Drepper <drepper@redhat.com>
11785 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
11787 (handle_request): Remove unnecessary tests.
11789 * nscd/cache.c (cache_add): Record the failure to add to the cache.
11791 2007-01-15 Jakub Jelinek <jakub@redhat.com>
11793 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11794 workbits in semi-raw fraction.
11796 * math/test-misc.c: Add new tests.
11798 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
11800 * math/basic-test.c: Include test-skeleton.c.
11801 (TEST_TRUNC): Define.
11802 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11803 (main): Rename to ...
11804 (do_test): ...this. Run new tests.
11805 (TEST_FUNCTION): Define.
11807 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
11808 Joe Kerian <jkerian@us.us.ibm.com>
11811 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11812 handling for high words.
11813 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11814 and overflow for infinity.
11816 2007-01-15 Ulrich Drepper <drepper@redhat.com>
11818 * nscd/connections.c (handle_request): Add a __builtin_expect.
11820 * nscd/connections.c (serv2db): Change type into structure which
11821 also says whether this is a request for data. Renamed to
11822 servinfo. All users changed.
11823 (handle_request): Much simpler test whether we should search the cache.
11825 * nscd/connections.c (handle_request): Fix thinko in selinux test
11828 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11829 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11830 it before getting dl_load_lock and then relock.
11831 (_dl_lookup_symbol_x): Pass flags to add_dependency.
11832 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11833 case we unlocked the scope.
11834 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11835 _dl_lookup_symbol_x in case we locked the scope.
11836 (_dl_profile_fixup): Likewise.
11837 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11838 set DL_LOOKUP_SCOPE_LOCK.
11840 2007-01-13 Ulrich Drepper <drepper@redhat.com>
11842 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11843 CFLAGS-getsrvbynpt_r.c.
11844 * nscd/getsrvbynm_r.c: New file.
11845 * nscd/getsrvbypt_r.c: New file.
11846 * nscd/nscd_getserv_r.c: New file.
11847 * nscd/servicescache.c: New file.
11848 * nscd/Makefile (routines): Add nscd_getserv_r.
11849 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11850 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11851 CFLAGS-getsrvbypt_r.c.
11852 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11853 table. Add entries for services database.
11854 * nscd/connections.c (serv2str): Mark as const. Add entries for
11856 (dbs): Add .reset_res and servdb initialization.
11857 (serv2db): Add entries for services database.
11858 (verify_persistent_db): Accept dbnr == servdb.
11859 (invalidate_cache): Rewrite database name recognition to use a table.
11860 Call res_init() if .reset_res is set for database.
11861 (handle_request): Add code to handle services database.
11862 * nscd/gai.c: Don't define __getservbyname_r.
11863 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11864 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11865 (serv_response_header): Define.
11866 (struct datahead): Add serv_response_header member.
11867 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11869 * nscd/nscd.conf: Add entries for services database.
11870 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11871 Declare serv_iov_disabled.
11872 Declare addservbyname, readdservbyname, addservbyport, and
11874 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
11875 (find_db): Fix error message.
11876 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11877 __nscd_getservbyname_r, and __nscd_getservbyport_r.
11878 * nscd/selinux.c (perms): Add entries for services database.
11879 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11880 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11882 * nscd/grpcache.c: Remove obsolete code. Cleanups.
11883 * nscd/hstcache.c: Likewise.
11884 * nscd/pwdcache.c: Likewise.
11886 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11887 computation of keylen.
11889 * include/string.h: Only redefine strndupa if this is really for
11892 2007-01-12 Ulrich Drepper <drepper@redhat.com>
11894 * nscd/nscd_gethst_r.c: Minor cleanups.
11896 * nscd/connections.c (handle_request): Check selinux permissions
11897 for all non-admin commands.
11899 * sysdeps/i386/i486/bits/atomic.h: Define
11900 atomic_compare_and_exchange_val_acq,
11901 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11902 using __sync_* built-ins for gcc >= 4.1.
11903 * sysdeps/x86_64/bits/atomic.h: Likewise.
11906 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11909 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
11911 * stdlib/tst-makecontext.c: Include errno.h. Change main()
11912 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
11913 (do_test): Check errno and exit(0) if ENOSYS.
11915 2007-01-11 Jakub Jelinek <jakub@redhat.com>
11917 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11918 thousands separators.
11919 * stdlib/Makefile: Add rules to build and run tst-strtod4.
11920 * stdlib/tst-strtod4.c: New test.
11923 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11924 hexadecimal digit should accept just the initial 0.
11925 * stdlib/tst-strtod2.c (tests): New variable.
11926 (do_test): Run several tests rather than just one.
11928 2007-01-11 Jakub Jelinek <jakub@redhat.com>
11930 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11931 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11933 2007-01-10 Ulrich Drepper <drepper@redhat.com>
11935 * io/fts.c: Make sure fts_cur is always valid after return from
11937 Patch by Miloslav Trmac <mitr@redhat.com>.
11939 2006-10-27 Richard Sandiford <richard@codesourcery.com>
11941 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11942 (R_MIPS_NUM): Bump by 1.
11944 2007-01-03 Jakub Jelinek <jakub@redhat.com>
11946 * posix/execvp.c: Include alloca.h.
11947 (allocate_scripts_argv): Renamed to...
11948 (scripts_argv): ... this. Don't allocate buffer here nor count
11950 (execvp): Use alloca if possible.
11951 * posix/Makefile: Add rules to build and run tst-vfork3 test.
11952 * posix/tst-vfork3.c: New test.
11954 2007-01-03 Ulrich Drepper <drepper@redhat.com>
11956 * string/Makefile (tst-strxfrm2-ENV): Define.
11957 * stdlib/Makefile (tst-strtod3-ENV): Define.
11959 2007-01-02 Ulrich Drepper <drepper@redhat.com>
11961 * posix/getconf.c: Update copyright year.
11962 * nss/getent.c: Likewise.
11963 * iconv/iconvconfig.c: Likewise.
11964 * iconv/iconv_prog.c: Likewise.
11965 * elf/ldconfig.c: Likewise.
11966 * catgets/gencat.c: Likewise.
11967 * csu/version.c: Likewise.
11968 * elf/ldd.bash.in: Likewise.
11969 * elf/sprof.c (print_version): Likewise.
11970 * locale/programs/locale.c: Likewise.
11971 * locale/programs/localedef.c: Likewise.
11972 * nscd/nscd.c (print_version): Likewise.
11973 * debug/xtrace.sh: Likewise.
11974 * malloc/memusage.sh: Likewise.
11975 * malloc/mtrace.pl: Likewise.
11976 * debug/catchsegv.sh: Likewise.
11978 2006-12-24 Ulrich Drepper <drepper@redhat.com>
11980 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11983 2006-12-23 Ulrich Drepper <drepper@redhat.com>
11985 * posix/wordexp.c: Remove some unnecessary tests.
11987 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
11989 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11990 blacklist the group till after we look it up.
11992 2006-12-21 Ulrich Drepper <drepper@redhat.com>
11994 * include/atomic.h (atomic_forced_read): New macro.
11996 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
11998 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12000 2006-12-19 Jakub Jelinek <jakub@redhat.com>
12002 * nss/getXXbyYY_r.c: Include atomic.h.
12003 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12004 add atomic_write_barrier () in between.
12006 * stdlib/Makefile (tests): Add tst-makecontext.
12007 * stdlib/tst-makecontext.c: New test.
12009 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12010 (__makecontext): Don't realign uc_mcontext.uc_regs.
12012 2006-11-28 Jakub Jelinek <jakub@redhat.com>
12014 * elf/dl-support.c: Include dl-procinfo.h.
12015 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12016 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12017 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12019 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12020 hardcoded constants.
12021 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12022 PPC_PLATFORM_* macros for array designators.
12024 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
12026 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12027 names to the beginning.
12028 (_dl_powerpc_platforms): Add "power6x".
12029 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12030 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12031 (_DL_PLATFORMS_COUNT): Increase.
12032 (_dl_string_platform): Handle power6x case.
12033 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12034 PPC_FEATURE_POWER6_EXT): Define.
12035 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12037 2006-12-18 Jakub Jelinek <jakub@redhat.com>
12040 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12041 [-2^31 .. 2^31) range.
12042 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12044 * stdlib/tst-rand48-2.c: New test.
12045 * stdlib/Makefile (tests): Add tst-rand48-2.
12047 2006-12-14 Jakub Jelinek <jakub@redhat.com>
12049 * misc/tst-pselect.c (do_test): Fix sigblock argument.
12051 2006-12-14 Ulrich Drepper <drepper@redhat.com>
12053 * misc/tst-pselect.c (do_test): Make sure the helper process is
12054 terminating when the test is aborted.
12056 2006-12-13 Ulrich Drepper <drepper@redhat.com>
12058 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12059 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12060 Handle relatime mount option.
12063 * libio/Makefile (tests): Add tst-setvbuf1.
12064 * libio/tst-setvbuf1.c: New file.
12066 2006-12-08 Jakub Jelinek <jakub@redhat.com>
12069 * libio/genops.c (__uflow): Fix a typo.
12070 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12071 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
12072 the narrow buffer size.
12074 2006-11-24 Jakub Jelinek <jakub@redhat.com>
12077 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12078 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12079 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12081 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12082 _IO_wstr_finish): Likewise.
12083 * libio/wmemstream.c (open_wmemstream): Likewise.
12084 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12085 even for wide streams.
12087 2006-12-13 Jakub Jelinek <jakub@redhat.com>
12089 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12092 2006-12-11 Ulrich Drepper <drepper@redhat.com>
12094 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12095 separators also if no non-zero digits found.
12096 * stdlib/Makefile (tests): Add tst-strtod3.
12098 2006-12-09 Ulrich Drepper <drepper@redhat.com>
12101 * include/features.h: Fix comment about default value for
12105 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12106 empty parsed strings.
12107 * stdlib/Makefile (tests): Add tst-strtod2.
12108 * stdlib/tst-strtod2.c: New file.
12111 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12113 * stdlib/Makefile (tests): Add tst-atof2.
12114 * stdlib/tst-atof2.c: New file.
12117 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12118 correctly if removing trailing zero of hex-float.
12119 * stdlib/Makefile (tests): Add tst-atof1.
12120 * stdlib/tst-atof1.c: New file.
12122 2006-12-09 Jakub Jelinek <jakub@redhat.com>
12124 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12125 Start searching for next comma at p rather than rest.
12126 * misc/Makefile (tests): Add tst-mntent2.
12127 * misc/tst-mntent2.c: New test.
12129 * misc/getusershell.c (initshells): Check for integer overflows.
12130 Make strings buffer one bigger as fgets always succeeds when second
12131 argument is 1. Don't use calloc for shells array. Disallow
12134 2006-12-08 Ulrich Drepper <drepper@redhat.com>
12136 * malloc/memusage.c: Handle realloc with new size of zero and
12137 non-NULL pointer correctly.
12138 (me): Really write first record twice.
12139 (struct entry): Make format bi-arch safe.
12140 (dest): Write out more realloc statistics.
12141 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12143 2006-12-05 Jakub Jelinek <jakub@redhat.com>
12145 * nis/nis_subr.c (nis_getnames): Revert last change.
12147 2006-12-04 Jakub Jelinek <jakub@redhat.com>
12149 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12150 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12151 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12152 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12154 * io/Makefile: Add rules to build and run tst-ttyname_r test.
12155 * io/tst-ttyname_r.c: New test.
12157 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12159 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12161 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
12163 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12164 jump table entries.
12166 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
12168 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12169 `clone' function to ensure proper unwinding stop of gdb.
12170 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12172 2006-12-01 Ulrich Drepper <drepper@redhat.com>
12174 * nscd/nscd.init: Remove obsolete and commented-out -S option
12177 2006-11-23 Jakub Jelinek <jakub@redhat.com>
12180 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12183 * manual/string.texi (strtok): Remove duplicate paragraph.
12185 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12187 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12188 libgcc not supporting `rflags' unwinding (register # >= 17).
12190 2006-11-30 Jakub Jelinek <jakub@redhat.com>
12192 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12195 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
12196 Jakub Jelinek <jakub@redhat.com>
12197 Jan Kratochvil <jan.kratochvil@redhat.com>
12199 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12200 unwind information.
12201 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12202 'restore_rt' even in the 'signal' directory.
12203 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12205 2006-11-27 Jakub Jelinek <jakub@redhat.com>
12208 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12209 malloc crashed. Don't allocate memory unnecessarily in each
12212 2006-10-21 Jakub Jelinek <jakub@redhat.com>
12214 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12216 2006-11-20 Ulrich Drepper <drepper@redhat.com>
12218 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12220 2006-11-18 Bruno Haible <bruno@clisp.org>
12222 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12223 __sysconf only after having tried to call getgroups32.
12225 2006-11-19 Ulrich Drepper <drepper@redhat.com>
12227 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12228 addresses for IPv4 queries if they can be mapped.
12230 2006-11-16 Jakub Jelinek <jakub@redhat.com>
12232 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12233 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12234 (signmask): Add .size directive.
12235 (othermask): Add .type directive.
12237 2006-11-14 Ulrich Drepper <drepper@redhat.com>
12239 * po/nl.po: Update from translation team.
12241 * timezone/zdump.c: Redo fix for BZ #3137.
12243 2006-11-14 Jakub Jelinek <jakub@redhat.com>
12245 * nss/nss_files/files-alias.c (get_next_alias): Set line back
12246 to first_unused after parsing :include: file.
12248 2006-11-10 Ulrich Drepper <drepper@redhat.com>
12250 * timezone/africa: Update from tzdata2006o.
12251 * timezone/antarctica: Likewise.
12252 * timezone/asia: Likewise.
12253 * timezone/australasia: Likewise.
12254 * timezone/backward: Likewise.
12255 * timezone/europe: Likewise.
12256 * timezone/iso3166.tab: Likewise.
12257 * timezone/northamerica: Likewise.
12258 * timezone/southamerica: Likewise.
12259 * timezone/zone.tab: Likewise.
12261 * time/tzfile.c (__tzfile_read): Extend to handle new file format
12262 on machines with 64-bit time_t.
12264 * timezone/checktab.awk: Update from tzcode2006o.
12265 * timezone/ialloc.c: Likewise.
12266 * timezone/private.h: Likewise.
12267 * timezone/scheck.c: Likewise.
12268 * timezone/tzfile.h: Likewise.
12269 * timezone/tzselect.ksh: Likewise.
12270 * timezone/zdump.c: Likewise.
12271 * timezone/zic.c: Likewise.
12274 * elf/ldconfig.c (main): Call setlocale and textdomain.
12275 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12278 * manual/argp.texi: Fix typos.
12279 * manual/charset.texi: Likewise.
12280 * manual/errno.texi: Likewise.
12281 * manual/filesys.texi: Likewise.
12282 * manual/lang.texi: Likewise.
12283 * manual/maint.texi: Likewise.
12284 * manual/memory.texi: Likewise.
12285 * manual/message.texi: Likewise.
12286 * manual/resource.texi: Likewise.
12287 * manual/search.texi: Likewise.
12288 * manual/signal.texi: Likewise.
12289 * manual/startup.texi: Likewise.
12290 * manual/stdio.texi: Likewise.
12291 * manual/sysinfo.texi: Likewise.
12292 * manual/syslog.texi: Likewise.
12293 * manual/time.texi: Likewise.
12294 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12297 * sunrpc/clnt_raw.c: Minimal message improvements.
12298 * sunrpc/pm_getmaps.c: Likewise.
12299 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12300 * nis/nis_print_group_entry.c: Likewise.
12301 * locale/programs/repertoire.c: Likewise.
12302 * locale/programs/charmap.c: Likewise.
12303 * malloc/memusage.sh: Likewise.
12304 * elf/dl-deps.c: Likewise.
12305 * locale/programs/ld-collate.c: Likewise.
12306 * libio/vswprintf.c: Likewise.
12307 * malloc/memusagestat.c: Likewise.
12308 * sunrpc/auth_unix.c: Likewise.
12309 * sunrpc/rpc_main.c: Likewise.
12310 * nscd/cache.c: Likewise.
12311 * locale/programs/repertoire.c: Unify output messages.
12312 * locale/programs/charmap.c: Likewise.
12313 * locale/programs/ld-ctype.c: Likewise.
12314 * locale/programs/ld-monetary.c: Likewise.
12315 * locale/programs/ld-numeric.c: Likewise.
12316 * locale/programs/ld-time.c: Likewise.
12317 * elf/ldconfig.c: Likewise.
12318 * nscd/selinux.c: Likewise.
12319 * elf/cache.c: Likewise.
12320 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12323 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12327 2006-11-10 Jakub Jelinek <jakub@redhat.com>
12329 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12330 if N is one bigger than return value.
12331 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12332 and l1 last arguments, if buf is defined, verify the return value
12333 equals to strlen (buf) and verify no byte beyond passed length
12336 2006-11-10 Ulrich Drepper <drepper@redhat.com>
12338 * po/sv.po: Update from translation team.
12340 2006-11-09 Ulrich Drepper <drepper@redhat.com>
12342 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12343 noinline attribute.
12345 2006-11-10 Jakub Jelinek <jakub@redhat.com>
12347 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12348 noinline attribute.
12350 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12351 Use __new_sys_siglist instead of _sys_siglist_internal as
12352 second macro argument.
12353 (_old_sys_siglist): Use declare_symbol_alias macro instead of
12356 2006-11-09 Ulrich Drepper <drepper@redhat.com>
12359 * posix/unistd.h (sysconf): Remove const attribute.
12361 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12362 temporary or deprecated addresses.
12363 Patch by Sridhar Samudrala <sri@us.ibm.com>.
12365 * string/Makefile (tests): Add tst-strxfrm2.
12366 * string/tst-strxfrm2.c: New file.
12368 2006-10-09 Jakub Jelinek <jakub@redhat.com>
12370 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12371 rather than r->r_brk.
12373 2006-11-08 Jakub Jelinek <jakub@redhat.com>
12375 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12376 optimization even if needed > n.
12378 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12379 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12380 return false, otherwise return true.
12381 (cache_rpath): Return decompose_rpath return value.
12383 2006-11-07 Jakub Jelinek <jakub@redhat.com>
12385 * include/libc-symbols.h (declare_symbol): Rename to...
12386 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
12387 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12389 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12391 * sysdeps/gnu/siglist.c: Likewise.
12393 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
12395 * sysdeps/powerpc/fpu/bits/mathinline.h
12396 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12397 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
12399 2006-11-05 Ulrich Drepper <drepper@redhat.com>
12401 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12402 Update handling of cache descriptor 0x49 for new models.
12403 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12406 2006-11-02 Jakub Jelinek <jakub@redhat.com>
12408 * malloc/memusage.c (dest): Reset not_me back to false after
12409 printing statistics.
12411 2006-11-02 Ulrich Drepper <drepper@redhat.com>
12413 * configure.in: Work around ld --help change and avoid -z relro
12414 test completely if the architecture doesn't care about security.
12416 2006-11-01 Ulrich Drepper <drepper@redhat.com>
12418 * po/sv.po: Update from translation team.
12420 2006-10-31 Ulrich Drepper <drepper@redhat.com>
12422 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12423 generate compatibility version.
12425 2006-10-29 Ulrich Drepper <drepper@redhat.com>
12427 * configure.in: Relax -z relro requirement a bit.
12429 * po/sv.po: Update from translation team.
12431 2006-10-29 Jakub Jelinek <jakub@redhat.com>
12433 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12434 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12435 * elf/dl-close.c (_dl_close_worker): Likewise.
12436 * elf/dl-open.c (_dl_open_worker): Likewise.
12437 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12439 2006-10-27 Ulrich Drepper <drepper@redhat.com>
12441 * configure.in: Require assembler support for visibility, compiler
12442 support for visibility and aliases, linker support for various -z
12444 * Makeconfig: Remove conditional code which now is unnecessary.
12445 * config.h.in: Likewise.
12446 * config.make.in: Likewise.
12447 * dlfcn/Makefile: Likewise.
12448 * elf/Makefile: Likewise.
12449 * elf/dl-load.c: Likewise.
12450 * elf/rtld.c: Likewise.
12451 * include/libc-symbols.h: Likewise.
12452 * include/stdio.h: Likewise.
12453 * io/Makefile: Likewise.
12454 * io/fstat.c: Likewise.
12455 * io/fstat64.c: Likewise.
12456 * io/fstatat.c: Likewise.
12457 * io/fstatat64.c: Likewise.
12458 * io/lstat.c: Likewise.
12459 * io/lstat64.c: Likewise.
12460 * io/mknod.c: Likewise.
12461 * io/mknodat.c: Likewise.
12462 * io/stat.c: Likewise.
12463 * io/stat64.c: Likewise.
12464 * libio/stdio.c: Likewise.
12465 * nscd/Makefile: Likewise.
12466 * stdlib/Makefile: Likewise.
12467 * stdlib/atexit.c: Likewise.
12468 * sysdeps/generic/ldsodefs.h: Likewise.
12469 * sysdeps/i386/dl-machine.h: Likewise.
12470 * sysdeps/i386/sysdep.h: Likewise.
12471 * sysdeps/i386/i686/memcmp.S: Likewise.
12472 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12473 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12474 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12476 * Makerules: USE_TLS support is now default.
12477 * tls.make.c: Likewise.
12478 * csu/Versions: Likewise.
12479 * csu/libc-start.c: Likewise.
12480 * csu/libc-tls.c: Likewise.
12481 * csu/version.c: Likewise.
12482 * dlfcn/dlinfo.c: Likewise.
12483 * elf/dl-addr.c: Likewise.
12484 * elf/dl-cache.c: Likewise.
12485 * elf/dl-close.c: Likewise.
12486 * elf/dl-iteratephdr.c: Likewise.
12487 * elf/dl-load.c: Likewise.
12488 * elf/dl-lookup.c: Likewise.
12489 * elf/dl-object.c: Likewise.
12490 * elf/dl-open.c: Likewise.
12491 * elf/dl-reloc.c: Likewise.
12492 * elf/dl-support.c: Likewise.
12493 * elf/dl-sym.c: Likewise.
12494 * elf/dl-sysdep.c: Likewise.
12495 * elf/dl-tls.c: Likewise.
12496 * elf/ldconfig.c: Likewise.
12497 * elf/rtld.c: Likewise.
12498 * elf/tst-tls-dlinfo.c: Likewise.
12499 * elf/tst-tls1.c: Likewise.
12500 * elf/tst-tls10.h: Likewise.
12501 * elf/tst-tls14.c: Likewise.
12502 * elf/tst-tls2.c: Likewise.
12503 * elf/tst-tls3.c: Likewise.
12504 * elf/tst-tls4.c: Likewise.
12505 * elf/tst-tls5.c: Likewise.
12506 * elf/tst-tls6.c: Likewise.
12507 * elf/tst-tls7.c: Likewise.
12508 * elf/tst-tls8.c: Likewise.
12509 * elf/tst-tls9.c: Likewise.
12510 * elf/tst-tlsmod1.c: Likewise.
12511 * elf/tst-tlsmod13.c: Likewise.
12512 * elf/tst-tlsmod13a.c: Likewise.
12513 * elf/tst-tlsmod14a.c: Likewise.
12514 * elf/tst-tlsmod2.c: Likewise.
12515 * elf/tst-tlsmod3.c: Likewise.
12516 * elf/tst-tlsmod4.c: Likewise.
12517 * elf/tst-tlsmod5.c: Likewise.
12518 * elf/tst-tlsmod6.c: Likewise.
12519 * include/errno.h: Likewise.
12520 * include/link.h: Likewise.
12521 * include/tls.h: Likewise.
12522 * locale/global-locale.c: Likewise.
12523 * locale/localeinfo.h: Likewise.
12524 * malloc/arena.c: Likewise.
12525 * malloc/hooks.c: Likewise.
12526 * malloc/malloc.c: Likewise.
12527 * resolv/Versions: Likewise.
12528 * sysdeps/alpha/dl-machine.h: Likewise.
12529 * sysdeps/alpha/libc-tls.c: Likewise.
12530 * sysdeps/generic/ldsodefs.h: Likewise.
12531 * sysdeps/generic/tls.h: Likewise.
12532 * sysdeps/i386/dl-machine.h: Likewise.
12533 * sysdeps/ia64/dl-machine.h: Likewise.
12534 * sysdeps/ia64/libc-tls.c: Likewise.
12535 * sysdeps/mach/hurd/fork.c: Likewise.
12536 * sysdeps/mach/hurd/i386/tls.h: Likewise.
12537 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12538 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12539 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12540 * sysdeps/s390/libc-tls.c: Likewise.
12541 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12542 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12543 * sysdeps/sh/dl-machine.h: Likewise.
12544 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12545 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12546 * sysdeps/x86_64/dl-machine.h: Likewise.
12548 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12549 split out locking and parameter checking.
12550 (_dl_close): Call _dl_close_worker after locking and checking.
12551 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12553 * elf/Makefile: Add rules to build and run tst-thrlock.
12554 * elf/tst-thrlock.c: New file.
12557 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12561 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12562 we are sure we do not need it anymore for _dl_close. Also move
12563 the asserts inside the lock region.
12564 Patch mostly by Suzuki <suzuki@in.ibm.com>.
12566 2006-10-27 Jakub Jelinek <jakub@redhat.com>
12568 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12570 (_dl_lookup_symbol_x): Adjust caller.
12572 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12574 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12576 * elf/dl-libc.c: Revert l_scope name changes.
12577 * elf/dl-load.c: Likewise.
12578 * elf/dl-object.c: Likewise.
12579 * elf/rtld.c: Likewise.
12580 * elf/dl-close.c (_dl_close): Likewise.
12581 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
12582 always use __rtld_mrlock_{change,done}. Always free old scope list
12583 here if not l_scope_mem.
12584 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12585 change. Never free scope list here. Just __rtld_mrlock_lock before
12586 the lookup and __rtld_mrlock_unlock it after the lookup.
12587 * elf/dl-sym.c: Likewise.
12588 * include/link.h (struct r_scoperec): Remove.
12589 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12590 with l_scope_mem and l_scoperec_lock with l_scope_lock.
12592 2006-10-25 Ulrich Drepper <drepper@redhat.com>
12594 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12596 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12598 * configure.in: Disable building profile libraries by default.
12600 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12602 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12603 as signed longs, check for x_base + pos overflow.
12604 * sunrpc/Makefile (tests): Add tst-xdrmem2.
12605 * sunrpc/tst-xdrmem2.c: New test.
12607 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12609 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12610 _dl_lookup_symbol_x code.
12612 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12614 * elf/dl-runtime.c: Include sysdep-cancel.h.
12615 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12616 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
12617 instead of catomic_* macros.
12618 * elf/dl-sym.c: Include sysdep-cancel.h.
12619 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12620 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12621 * elf/dl-close.c: Include sysdep-cancel.h.
12622 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12623 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12624 * elf/dl-open.c: Include sysdep-cancel.h.
12625 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12626 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12628 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12631 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12632 fastbin rather than end of fastbin array.
12634 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12636 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12638 * sysdeps/x86_64/bits/atomic.h
12639 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12640 (catomic_decrement): Use correct body macro.
12642 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12644 * include/atomic.h: Add a unique prefix to all local variables
12646 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12648 2006-10-16 Ulrich Drepper <drepper@redhat.com>
12651 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12654 2006-10-14 Ulrich Drepper <drepper@redhat.com>
12656 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12658 2006-10-13 Ulrich Drepper <drepper@redhat.com>
12661 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12662 determine highest fast bin to consolidate, always look into all of
12664 (do_check_malloc_state): Only require for empty bins for large
12665 sizes in main arena.
12667 * libio/stdio.h: Add more __wur attributes.
12669 * elf/dl-minimal.c (realloc): Optimize last patch.
12671 2006-10-12 Richard Sandiford <richard@codesourcery.com>
12674 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12675 and use memcpy() if it does.
12677 2006-11-12 Andreas Jaeger <aj@suse.de>
12680 * manual/search.texi (Hash Search Function): Clarify.
12681 (Array Search Function): Clarify.
12683 2006-11-12 Joseph Myers <joseph@codesourcery.com>
12686 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12688 * math/atest-exp2.c (read_mpn_hex): Likewise.
12689 * math/atest-sincos.c (main): Likewise.
12691 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12693 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12694 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12695 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12697 * Versions.def: Add GLIBC_2.6 for libc.
12699 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12701 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12703 2006-10-11 Jakub Jelinek <jakub@redhat.com>
12705 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12707 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12709 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12710 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12712 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12714 * include/atomic.c: Define catomic_* operations.
12715 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
12716 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12717 * malloc/memusage.c: Likewise.
12718 * gmon/mcount.c: Likewise.
12719 * elf/dl-close.c: Likewise.
12720 * elf/dl-open.c: Likewise.
12721 * elf/dl-profile.c: Likewise.
12722 * elf/dl-sym.c: Likewise.
12723 * elf/dl-runtime.c: Likewise.
12724 * elf/dl-fptr.c: Likewise.
12725 * resolv/res_libc.c: Likewise.
12727 2006-10-10 Ulrich Drepper <drepper@redhat.com>
12729 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12730 components which lack them.
12732 * nis/nis_subr.c (nis_getnames): Make sure that we always return
12733 at least one entry consisting of the parameter concatenated with
12736 2006-10-10 Roland McGrath <roland@frob.com>
12738 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12739 * sysdeps/mach/hurd/futimes.c: Likewise.
12740 * sysdeps/mach/hurd/lutimes.c: Likewise.
12742 2006-10-09 Ulrich Drepper <drepper@redhat.com>
12743 Jakub Jelinek <jakub@redhat.com>
12745 Implement reference counting of scope records.
12746 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12747 from the list in objects which remain. Always allocate new scope
12749 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12750 don't resize, allocate a new one.
12751 * elf/dl-runtime.c: Update reference counters before using a scope
12753 * elf/dl-sym.c: Likewise.
12754 * elf/dl-libc.c: Adjust for l_scope name change.
12755 * elf/dl-load.c: Likewise.
12756 * elf/dl-object.c: Likewise.
12757 * elf/rtld.c: Likewise.
12758 * include/link.h: Include <rtld-lowlevel.h>. Define struct
12759 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
12760 Add l_scoperec_lock.
12761 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12762 * sysdeps/generic/rtld-lowlevel.h: New file.
12764 * include/atomic.h: Rename atomic_and to atomic_and_val and
12765 atomic_or to atomic_or_val. Define new macros atomic_and and
12766 atomic_or which do not return values.
12767 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12769 * sysdeps/i386/i486/bits/atomic.h: Likewise.
12771 * po/sv.po: Update from translation team.
12773 2006-10-07 Ulrich Drepper <drepper@redhat.com>
12775 * Versions.def: Add GLIBC_2.6 to libpthread.
12777 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12778 (versioned_symbol): Likewise.
12779 (compat_symbol): Likewise.
12781 * po/tr.po: Update from translation team.
12783 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12785 * nis/Banner: Removed. It's been integral part forever and the
12786 author info is incomplete anyway.
12787 * libio/Banner: Likewise.
12789 * nis/nis_table.c (nis_list): If __follow_path fails in the new
12790 code, make sure the nis_freeresult call doesn't crash and that the
12791 result is reported correctly.
12793 2006-09-27 Jakub Jelinek <jakub@redhat.com>
12795 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12796 when callback is NULL.
12798 * nis/Versions (libnss_nisplus): Add
12799 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12800 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12801 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12802 _nss_create_tablename): Rename to...
12803 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12804 ... these. No longer static.
12805 (internal_setgrent): Adjust users.
12806 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12807 Don't use locking around _nss_grp_create_tablename call.
12808 * nis/nss_nisplus/nisplus-initgroups.c: New file.
12810 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12812 * version.h (VERSION): Bump to 2.5.90 for new development tree.
12814 2006-10-06 Andreas Jaeger <aj@suse.de>
12816 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12818 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12820 * po/pl.po: Update from translation team.
12822 * nscd/nscd.c (main): Fix typo in message.
12823 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12825 2006-10-02 Jakub Jelinek <jakub@redhat.com>
12828 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12829 errno.h, signal.h, unistd.h and sysdep-cancel.h.
12830 (__sigprocmask): Define.
12832 2006-10-02 Ulrich Drepper <drepper@redhat.com>
12834 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12837 2006-10-02 Jakub Jelinek <jakub@redhat.com>
12839 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12840 in oldtotal and newtotal calculation.
12841 * nscd/nscd-client.h (struct mapped_database): Add datasize
12843 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12844 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12846 (__nscd_cache_search): Add checks to make sure we never reference
12847 data beyond the current mapping.
12849 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
12851 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12852 variables const to avoid compiler warnings.
12854 * io/fts.c (fts_close): Remove redundant checks.
12855 (fts_build): Likewise.
12856 (fts_palloc): Likewise.
12858 * manual/message.texi (Advanced gettext functions,
12859 Using gettextized software): Fix typos.
12861 2006-09-30 Ulrich Drepper <drepper@redhat.com>
12863 * posix/glob.c (glob_in_dir): Add some comments and asserts to
12864 explain why there are no leaks.
12866 2006-09-29 Ulrich Drepper <drepper@redhat.com>
12868 * libio/wmemstream.c: Include <wchar.h>.
12869 * libio/bug-wmemstream1.c: Likewise.
12870 * libio/tst-wmemstream1.c: Likewise.
12871 * libio/tst-wmemstream2.c: Likewise.
12873 * version.h (RELEASE): Bump to 2.5.
12874 * README: Regenerated.
12876 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12879 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12880 found no group members.
12881 Patch by Petr Baudis.
12883 2006-09-29 Jakub Jelinek <jakub@redhat.com>
12885 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12886 assert bootstrap_map.l_tls_modid is zero.
12887 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12890 2006-09-27 Ulrich Drepper <drepper@redhat.com>
12892 * libio/stdio.h: Move open_wmemstream prototype to ...
12893 * wcsmbs/wchar.h: ... here.
12895 2006-09-25 Jakub Jelinek <jakub@redhat.com>
12898 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12899 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12900 __{,l}chown to handle the rest.
12901 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12902 fchownat syscall and __ASSUME_32BITUIDS case inline, call
12903 __{,l}chown to handle the rest.
12904 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12906 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12907 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12910 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12911 time, rather allocate increasingly bigger arrays of pointers, if
12912 possible with alloca, if too large with malloc.
12914 2006-09-24 Jakub Jelinek <jakub@redhat.com>
12916 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12918 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12920 2006-09-24 Ulrich Drepper <drepper@redhat.com>
12922 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12924 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12925 IFA_F_HOMEADDRESS flag for interfaces.
12926 * include/ifaddrs.h (struct in6addrinfo): Define
12929 2006-09-21 Jakub Jelinek <jakub@redhat.com>
12932 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12933 PTR_DEMANGLE3): Define.
12934 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12935 PTR_DEMANGLE3): Likewise.
12936 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12937 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12939 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12941 2006-09-20 Jakub Jelinek <jakub@redhat.com>
12943 * po/libc.pot: Regenerated.
12944 * po/be.po: Updated.
12945 * po/ca.po: Likewise.
12946 * po/cs.po: Likewise.
12947 * po/da.po: Likewise.
12948 * po/de.po: Likewise.
12949 * po/el.po: Likewise.
12950 * po/en_GB.po: Likewise.
12951 * po/es.po: Likewise.
12952 * po/fi.po: Likewise.
12953 * po/fr.po: Likewise.
12954 * po/gl.po: Likewise.
12955 * po/hr.po: Likewise.
12956 * po/hu.po: Likewise.
12957 * po/ja.po: Likewise.
12958 * po/ko.po: Likewise.
12959 * po/nb.po: Likewise.
12960 * po/nl.po: Likewise.
12961 * po/pl.po: Likewise.
12962 * po/pt_BR.po: Likewise.
12963 * po/ru.po: Likewise.
12964 * po/rw.po: Likewise.
12965 * po/sk.po: Likewise.
12966 * po/sv.po: Likewise.
12967 * po/tr.po: Likewise.
12968 * po/zh_CN.po: Likewise.
12969 * po/zh_TW.po: Likewise.
12972 * iconv/iconv_prog.c (main): Fix spelling in error message.
12973 * iconv/iconvconfig.c (main): Likewise.
12974 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12975 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12976 * locale/programs/localedef.c (main): Likewise.
12977 * locale/programs/repertoire.c (repertoire_read): Likewise.
12978 * timezone/zdump.c (main): Likewise.
12979 * nscd/connections.c (handle_request): Fix spelling in log message.
12980 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12982 2006-09-20 Ulrich Drepper <drepper@redhat.com>
12984 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12987 2006-09-20 Andreas Jaeger <aj@suse.de>
12989 * math/libm-test.inc (lrint_test_upward): Fix typo.
12991 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
12994 * math/libm-test.inc (lrint_test_tonearest): New function.
12995 (lrint_test_towardzero): New function.
12996 (lrint_test_downward): New function.
12997 (lrint_test_upward): New function.
12998 (main): Run these new tests.
12999 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13000 of values near to 0.
13001 (two52): Use double not long double.
13002 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13003 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13004 (two23): Use float not double.
13005 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13006 (two23): Use float not double.
13007 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13008 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13009 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13010 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13012 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
13014 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13015 Cast sp to unsigned long to avoid compiler warning.
13016 Use __makecontext_ret function instead of a trampoline on the stack.
13017 (__makecontext_ret): New function.
13018 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13020 2006-09-19 Jakub Jelinek <jakub@redhat.com>
13022 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13023 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13026 2006-09-19 Ulrich Drepper <drepper@redhat.com>
13028 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13029 sure no reference to the unloaded map's search list remains in the
13030 dependency's scope.
13032 2006-09-16 Jakub Jelinek <jakub@redhat.com>
13034 * elf/Makefile: Add rules to build and run unload7 test.
13035 * elf/unload7.c: New test.
13036 * elf/unload7mod1.c: New file.
13037 * elf/unload7mod2.c: New file.
13039 2006-09-18 Jakub Jelinek <jakub@redhat.com>
13041 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13042 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13043 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13044 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13045 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13046 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13047 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13048 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13049 PTRACE_GETEVENTMSG): Likewise.
13050 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13053 2006-09-17 Mike Frysinger <vapier@gentoo.org>
13055 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13056 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13057 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13058 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13060 2006-09-16 Jakub Jelinek <jakub@redhat.com>
13062 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13063 write '\0' to the fd.
13064 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13065 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13066 Change regs to unsigned long pointer from unsigned int, fix fscr
13069 2006-09-14 Jakub Jelinek <jakub@redhat.com>
13071 * io/Makefile (CFLAGS-fstatat.c): Set.
13072 (CFLAGS-fstatat64.c): Likewise.
13073 (CFLAGS-mknodat.c): Likewise.
13075 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13076 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13077 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13078 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13080 2006-09-14 Jakub Jelinek <jakub@redhat.com>
13081 Steven Munroe <sjmunroe@us.ibm.com>
13083 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13084 names to the beginning. Rename "cell" to "cellbe".
13085 (_dl_powerpc_platforms): New.
13086 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13087 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13088 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13089 (_DL_HWCAP_PLATFORM): Define to new mask.
13090 (_dl_platform_string, _dl_string_platform): New functions.
13091 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13092 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13094 2006-09-12 Jakub Jelinek <jakub@redhat.com>
13097 * README.libm: Fix a thinko in sqrt algorithm description.
13100 * manual/string.texi (argz_delete): Fix prototype.
13101 Patch by <alpt@freaknet.org>.
13103 2006-08-26 Joseph Myers <joseph@codesourcery.com>
13106 * io/test-lfs.c (do_prepare): Give name_len type size_t.
13107 * io/tst-fcntl.c (do_prepare): Likewise.
13108 * posix/tst-exec.c (do_prepare): Likewise.
13109 * posix/tst-preadwrite.c (do_prepare): Likewise.
13110 * posix/tst-spawn.c (do_prepare): Likewise.
13111 * posix/tst-truncate.c (do_prepare): Likewise.
13112 * rt/tst-aio.c (do_prepare): Likewise.
13113 * rt/tst-aio64.c (do_prepare): Likewise.
13114 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13117 2006-09-09 Ulrich Drepper <drepper@redhat.com>
13120 * time/mktime.c (guess_time_tm): Fix overflow detection.
13121 * time/Makefile (tests): Add bug-mktime1.
13122 * time/bug-mktime1.c: New file.
13125 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13126 (mremap): Likewise.
13128 2006-09-07 Jakub Jelinek <jakub@redhat.com>
13131 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13132 Ensure relocation doesn't clobber any bits outside of the
13133 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13134 R_SPARC_HI22 and R_SPARC_H44.
13137 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13138 (long) (MINSIZE + nb - old_size) is positive.
13140 * malloc/arena.c (grow_heap): When growing bail even if new_size
13144 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13147 2006-09-06 Jakub Jelinek <jakub@redhat.com>
13149 * posix/regex_internal.c (re_string_reconstruct): Handle
13150 offset < pstr->valid_raw_len && pstr->offsets_needed case.
13151 Ensure no bytes read before raw_mbs array. Pass a saved copy of
13152 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13153 re_string_context_at.
13154 * posix/Makefile: Add rules to build and run bug-regex26 test.
13155 * posix/bug-regex26.c: New test.
13157 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13158 rather than col_sym_free. Move seqp declaration earlier.
13160 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13162 2006-09-05 Jakub Jelinek <jakub@redhat.com>
13164 * nscd/initgrcache.c (addinitgroupsX): Move any_success
13165 decl before first goto out.
13167 2006-09-04 Jakub Jelinek <jakub@redhat.com>
13169 * Makerules (shlib.lds): If have-hash-style, put .hash section
13170 at the end of the RO segment.
13172 2006-09-04 Ulrich Drepper <drepper@redhat.com>
13174 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13175 style hash table format is used.
13177 2006-09-04 Jakub Jelinek <jakub@redhat.com>
13179 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13180 randomization rather than before.
13181 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13183 2006-08-31 Jakub Jelinek <jakub@redhat.com>
13185 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13187 * malloc/malloc.c (_int_malloc): Use full list insert and not
13188 shortcut which assumes the list is empty for large requests
13191 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13193 2006-08-30 Jakub Jelinek <jakub@redhat.com>
13195 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13196 and offout arguments to the prototype.
13197 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13198 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13199 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13200 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13201 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13202 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13203 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13204 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13206 2006-08-28 Ulrich Drepper <drepper@redhat.com>
13208 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13210 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13213 2006-08-28 Jakub Jelinek <jakub@redhat.com>
13215 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13216 only if herrno is NETDB_INTERNAL. Handle errors other than
13217 ERANGE outside of the loops, handle TRY_AGAIN.
13219 * locale/programs/ld-ctype.c (translit_flatten): Issue error
13220 if other's ctype category was missing.
13221 * locale/programs/ld-collate.c (collate_read): Return if
13222 copy_locale's collate category is missing.
13224 2006-08-27 Ulrich Drepper <drepper@redhat.com>
13227 * malloc/malloc.c (public_rEALLOc): Try harder by using other
13228 arenas if allocation failed.
13229 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13231 2006-08-26 Ulrich Drepper <drepper@redhat.com>
13233 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13235 (malloc_state): Reduce bins size by 2.
13236 (_int_malloc): Fix test for large enough buffer for early termination.
13237 When no unsorted block matches perfectly and an exiting block has
13238 to be split, use full list insert and not shortcut which assumes
13241 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13244 2006-08-24 Ulrich Drepper <drepper@redhat.com>
13246 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13249 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13250 symbol require exact match (these are PLTs).
13251 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13252 (_dl_ppc64_addr_sym_match): Likewise.
13255 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13256 If symbol has a value use it.
13257 * elf/tst-dladdr1.c: New file.
13258 * elf/Makefile: Add rules to build and run tst-addr1.
13260 2006-08-24 Jakub Jelinek <jakub@redhat.com>
13262 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13263 keeps failing and heap growth or new heap creation isn't
13265 * malloc/tst-malloc.c (main): Add new tests.
13267 2006-08-24 Ulrich Drepper <drepper@redhat.com>
13270 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13271 as in the x86-64 code to use bswap.
13273 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
13276 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13278 * posix/bits/unistd.h: Likewise.
13280 2006-05-15 Mike Frysinger <vapier@gentoo.org>
13283 * string/strchr.c: Add cast to avoid warning.
13285 2006-08-21 Ulrich Drepper <drepper@redhat.com>
13287 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13288 platforms define as 512K. For 64-bit platforms as 32MB. The lower
13289 limit is needed to avoid the exploding of the address space
13290 requirement for secondary heaps.
13291 * malloc/arena.c (HEAP_MAX_SIZE): Define using
13292 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13294 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
13297 * Makerules (depfiles): Handle extra-test-objs the same as
13299 (common-mostlyclean): Likewise.
13300 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13302 * elf/Makefile (extra-objs): Likewise.
13303 * stdlib/Makefile (extra-objs): Likewise.
13305 2006-08-14 Eric Blake <ebb9@byu.net>
13308 * misc/error.h: Assume C89 or better.
13309 * misc/error.c: Likewise.
13311 2006-08-21 Ulrich Drepper <drepper@redhat.com>
13314 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13315 __ASSUME_ATFCTS is defined.
13317 2006-08-19 Ulrich Drepper <drepper@redhat.com>
13319 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13320 to sort in each call.
13322 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13323 is empty simply return and use next service.
13324 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13326 * locale/programs/charmap.c (charmap_read): Add new parameter. It
13327 tells us when not finding a charmap file is an error.
13328 * locale/programs/charmap.h: Adjust charmap_read prototype.
13329 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13330 cannot find a charmap.
13331 * locale/programs/localedef.c (main): Adjust charmap_read call.
13333 2006-08-15 Jakub Jelinek <jakub@redhat.com>
13335 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13336 sysdeps/posix/pause.c implementation instead.
13338 2006-08-09 Jakub Jelinek <jakub@redhat.com>
13340 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13343 2006-08-13 Andreas Schwab <schwab@suse.de>
13345 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13346 Don't clobber caller's LRSAVE.
13347 (_dl_prof_resolve): Likewise.
13349 2006-08-14 Ulrich Drepper <drepper@redhat.com>
13352 * libio/memstream.c (open_memstream): Allocate initial buffer with
13354 * libio/wmemstream.c (open_wmemstream): Likewise.
13355 * libio/strops.c: Pretty printing.
13356 (_IO_str_overflow): Clear uninitialized part of the new buffer.
13357 (enlarge_userbuf): New function.
13358 (_IO_str_seekoff): Call it if seek position is larger than current
13360 * libio/wstrops.c: Likewise.
13361 * libio/vasprintf.c: Add comment as to why we do not have to use
13362 calloc instead of malloc to allocate initial buffer.
13363 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13364 * libio/bug-memstream1.c: New file.
13365 * libio/bug-wmemstream1.c: New file.
13367 2006-08-13 Ulrich Drepper <drepper@redhat.com>
13369 * libio/wstrops.c: Remove dead macro definitions and comments.
13370 * libio/strops.c: Likewise.
13373 * login/utmpname.c (__utmpname): Remove unnecessary test.
13375 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
13378 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13381 2006-08-13 Ulrich Drepper <drepper@redhat.com>
13384 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13386 * sysdeps/unix/clock_settime.c: Add support for platform-specific
13387 setting of CPU clocks.
13389 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
13392 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13393 since C99 requires the result to promote to 'int' when uint_least8_t
13394 and uint_least16_t promote to 'int'.
13396 2006-08-12 Ulrich Drepper <drepper@redhat.com>
13399 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13400 lenght of one output field, correct bitmask creation.
13401 * locale/programs/ld-time.c: Add alignment.
13404 * misc/error.c: Add space between program name and message if file
13407 2006-08-03 Eric Blake <ebb9@byu.net>
13410 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13412 2006-08-09 Ulrich Drepper <drepper@redhat.com>
13414 * malloc/memusagestat.c: Silence warnings.
13416 * malloc/malloc.c: Dynamically size mmap treshold if the program
13417 frees mmaped blocks.
13418 Patch by Valerie Henson and Arjan van de Ven.
13420 2006-08-08 Jakub Jelinek <jakub@redhat.com>
13422 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13425 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13426 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13427 (DEF): Don't put the var into .gnu.linkonce.r.* section.
13428 Only provide var definitions in strtol_l (or for *ull*
13431 * stdio-common/bug16.c (tests): New array.
13432 (do_tests): Allow the first hexadecimal digit
13433 to be 1, 2, 4 or 8. Do 3 additional tests.
13435 * sysdeps/s390/fpu/libm-test-ulps: Update.
13437 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13438 fchownat syscall if available.
13439 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13440 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13441 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13443 2006-08-07 Ulrich Drepper <drepper@redhat.com>
13445 * nis/nis_xdr.c: Avoid some function calls.
13447 2006-08-07 Jakub Jelinek <jakub@redhat.com>
13448 Ulrich Drepper <drepper@redhat.com>
13450 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13451 short cut if only one name component is stripped away.
13453 2006-08-07 Ulrich Drepper <drepper@redhat.com>
13455 * nis/nis_call.c: Minor cleanups throughout.
13456 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13457 (first_shoot): Add search_parent_first parameter. Only if it is set
13458 search parent server first.
13459 If directory for table found through cold start cache is not the same
13460 as referenced in the cache, don't use it.
13461 (__nisfind_server): Take additional parameter. Pass it on to
13463 (__prepare_niscall): Adjust __nisfind_server call.
13464 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13465 * nis/nis_table.c: Adjust __nisfind_server call.
13466 * nis/nis_lookup.c: Likewise.
13467 (nis_lookup): Don't loop endlessly if name is reduced to ".".
13469 2006-08-03 Ulrich Drepper <drepper@redhat.com>
13472 * math/s_cacosh.c: Return values from positive branch.
13473 * math/s_cacoshf.c: Likewise.
13474 * math/s_cacoshl.c: Likewise.
13477 * sysvipc/sys/msg.h: Change return value to ssize_t.
13478 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13479 * sysvipc/msgrcv.c: Likewise.
13480 * include/sys/msg.h: Likewise.
13482 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13483 test introduced in patch for bz #661.
13484 (getgrouplist): Simplify code a bit. Don't allocate one additional
13485 element for NEWGROUPS.
13488 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13489 'f', use '1' as leading digit not '\1'.
13490 * stdio-common/Makefile (tests): Add bug16.
13491 * stdio-common/bug16.c: New file.
13494 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13495 and don't try to open it. The patch introducing the macro
13496 contained a bug and used the same file name as the new file
13497 instead of using /var/adm/hostid. Nobody complaint so I'm taking
13498 this out completely.
13501 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13502 Patch by Jerry James <Jerry.James@usu.edu>.
13504 * rt/Makefile (tests): Add tst-clock2.
13505 * rt/tst-clock2.c: New file.
13508 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13509 function and its parameters and pass it to new thread.
13510 (__gai_notify): Add support for alternative waiting for completion.
13511 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13512 waiting for completion.
13513 * resolv/getaddrinfo_a.c: Likewise.
13514 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13515 waiting for completion is used.
13516 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13517 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13518 * resolv/gai_error.c: Likewise.
13519 * resolv/gai_sigqueue.c: Likewise.
13521 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
13523 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13524 errno to EBADF and return MACH_PORT_NULL.
13526 2006-06-23 Joseph Myers <joseph@codesourcery.com>
13529 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13531 2006-08-02 Ulrich Drepper <drepper@redhat.com>
13533 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13534 walk them instead of the symbol table.
13536 2006-08-01 Ulrich Drepper <drepper@redhat.com>
13539 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13540 status of NSS calls, not the number of returned entries.
13542 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13543 request_key, keyctl.
13545 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13547 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13549 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
13551 * elf/tst-auditmod1.c: Fix typo in #error.
13553 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13555 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13557 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13559 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
13561 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13562 that the directory is empty even on non-POSIX filesystems.
13564 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13566 * elf/dl-open.c (dl_open_worker): Add branch prediction.
13568 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13569 the backend NSS module. If backend setgrent call failed, don't have
13570 internal_setgrent fail. Just remember this until it is needed.
13571 * nis/nss_compat/compat-pwd.c: Likewise.
13572 * nis/nss_compat/compat-spwd.c: Likewise.
13574 2006-07-30 Roland McGrath <roland@redhat.com>
13576 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13577 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13578 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13579 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13581 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13582 (nanosleep_not_cancel): New macro.
13583 (sigsuspend_not_cancel): new macro.
13584 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13585 (do_sigsuspend): Define as inline.
13586 (__sigsuspend): Always use do_sigsuspend.
13587 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13588 * include/signal.h: Declare __sigsuspend_nocancel.
13589 * sysdeps/posix/pause.c
13590 [! NO_CANCELLATION] (__pause_nocancel): New function.
13592 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13593 * include/time.h (__nanosleep_nocancel): Likewise.
13595 2006-07-30 Ulrich Drepper <drepper@redhat.com>
13597 * locale/programs/localedef.c (add_to_readlist): Rename local
13598 variables to avoid confusion.
13600 * locale/programs/charmap.c (charmap_read): Emit error message if
13601 charmap couldn't be found or read.
13603 2006-07-28 Ulrich Drepper <drepper@redhat.com>
13605 * sysdeps/unix/sysv/linux/kernel-features.h: Define
13606 __ASSUME_FUTEX_LOCK_PI.
13607 * include/time.h: Declare __nanosleep_nocancel.
13608 * include/unistd.h: Declare __pause_nocancel.
13610 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13611 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
13612 get the __stack_chk_fail_local definition when it's needed.
13614 2006-07-26 Ulrich Drepper <drepper@redhat.com>
13616 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13617 * dlfcn/bug-atexit3.c: New file.
13618 * dlfcn/bug-atexit3-lib.cc: New file.
13620 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13621 used when the namespace is not the base namespace.
13623 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
13625 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13626 (__new_exitfn): Bump it in every successful call.
13627 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13628 more exit handlers, call them right away.
13629 * stdlib/exit.h: Declare __new_exitfn_called.
13631 2006-07-25 Ulrich Drepper <drepper@redhat.com>
13633 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13634 calling registered handler.
13636 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13637 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13638 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13639 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13640 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13641 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13642 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13643 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13645 2006-07-10 Ulrich Drepper <drepper@redhat.com>
13647 * elf/dl-lookup.c (dl_new_hash): New functions.
13648 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13649 value here. Compute new-style hash value. Pass new hash value
13650 and reference to variable with the old value to do_lookup_x.
13651 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13652 old-style hash table.
13653 (_dl_debug_bindings): Pass new hash value and reference to variable
13654 with the old value to do_lookup_x.
13655 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13656 new-style hash value and change old-style hash value parameter to
13657 be a reference. Reoganize functions to determine whether
13658 new-style hash table is available. Only fall back on old-style
13659 table. If old-style hash value is needed, compute it here.
13660 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13662 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13663 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
13664 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13665 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13666 * Makeconfig: If linker supports --hash-style option add it to all
13667 linker command lines to build DSOs.
13668 * config.make.in: Define have-hash-style.
13669 * configure.in: Test whether linker supports --hash-style option.
13671 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13672 * sysdeps/generic/ldsodefs.h: Adjust prototype.
13674 2006-06-27 Ulrich Drepper <drepper@redhat.com>
13676 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13679 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13680 RPATH of main map twice.
13682 2006-06-22 Ulrich Drepper <drepper@redhat.com>
13684 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13685 look further, return original strings.
13686 (_nl_find_msg): Do not return found translation if the conversion
13687 failed. Either signal the string is unusable or that something went
13688 wrong and the original should be used.
13690 2006-06-21 Ulrich Drepper <drepper@redhat.com>
13692 * string/_strerror.c (__strerror_r): Add __builtin_expect.
13694 2006-06-14 Jakub Jelinek <jakub@redhat.com>
13697 * misc/insremque.c (insque): Handle prev == NULL.
13698 * misc/Makefile (tests): Add tst-insremque.
13699 * misc/tst-insremque.c: New test.
13701 2006-06-17 Ulrich Drepper <drepper@redhat.com>
13704 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13705 conflict with DL_DST_REQUIRED.
13707 2006-06-16 Ulrich Drepper <drepper@redhat.com>
13709 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13710 match what Solaris does.
13712 2006-06-04 Ulrich Drepper <drepper@redhat.com>
13714 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13715 local_setegid instead of seteuid and setegid.
13716 * sysdeps/generic/local-setxid.h: New file.
13717 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13719 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13721 * string/Makefile (tests): Add bug-envz1.
13722 * string/bug-envz1.c: New file.
13724 2006-06-02 Jakub Jelinek <jakub@redhat.com>
13726 * posix/regex_internal.c (re_string_skip_chars): If no character has
13727 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
13728 to the byte which couldn't be converted.
13729 (re_string_reconstruct): Don't clear valid_raw_len before calling
13730 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
13731 tip_context using re_string_context_at.
13732 * posix/Makefile: Add rules to build and run bug-regex25 test.
13733 * posix/bug-regex25.c: New test.
13735 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
13738 * string/envz.c (envz_strip): Correct erroneously reversed src
13739 and dest parameters to memmove() invocation.
13741 2006-05-30 Jakub Jelinek <jakub@redhat.com>
13743 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13744 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13745 to make sure the database has been already invalidated.
13746 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
13747 after the cache has been invalidated. Use pthread_mutex_lock rather
13748 than pthread_mutex_trylock if fd != -1.
13749 * nscd/connections.c (invalidate_cache): Add fd argument, write
13750 response to fd if not calling prune_cache, pass fd to prune_cache.
13751 (handle_request): Adjust invalidate_cache caller.
13752 (nscd_run): Pass -1 as fd to prune_cache.
13754 2006-05-30 Ulrich Drepper <drepper@redhat.com>
13756 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13759 2006-05-29 Ulrich Drepper <drepper@redhat.com>
13761 * nscd/nscd.h (struct database_dyn): Add prunelock field.
13762 * nscd/cache.c (prune_cache): Take prunelock before starting the
13763 work. Just return in case it is already taken.
13764 * nscd/connections.c (dbs): Initialize .prunelock.
13766 2006-05-25 Ulrich Drepper <drepper@redhat.com>
13768 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13769 copying. No need to allocate new array for group members. Just
13770 move the pointers and update the size.
13772 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13773 Avoid memory leak in case realloc fails. Simplification for
13774 better code generation.
13776 Avoid deprecation warning because of libc_hidden_proto for
13777 inet6_option_alloc.
13778 * inet/inet6_option.c (option_alloc): Renamed from
13779 inet6_option_alloc. Made static.
13780 (inet6_option_alloc): Now a simple wrapper around option_alloc.
13781 (inet6_option_append): Call option_alloc.
13782 * include/netinet/in.h: Remove libc_hidden_proto for
13783 inet6_option_alloc.
13785 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13786 for cleanup when cb!=NULL [Coverity CID 233].
13788 2006-05-24 Ulrich Drepper <drepper@redhat.com>
13791 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13792 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13793 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13794 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13795 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13796 and inet6_rth_getaddr.
13797 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13799 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13800 Mark inet6_option_* interfaces as deprecated.
13801 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13802 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13803 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13804 inet6_rth_segments, and inet6_rth_getaddr.
13805 * inet/inet6_opt.c: New file.
13806 * inet/inet6_rth.c: New file.
13808 * inet/netinet/icmp6.h: Pretty printing.
13811 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13813 2006-05-23 Ulrich Drepper <drepper@redhat.com>
13815 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13816 doing it all here. When server does not know the answer do not
13817 fail immediate, try parent first.
13819 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13822 2006-05-20 Ulrich Drepper <drepper@redhat.com>
13824 * nis/nis_call.c (__prepare_niscall): New function. Split out
13826 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13828 (__follow_path): New function. Split out from nis_list.
13829 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13831 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13833 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13835 * nis/Versions: Export __prepare_niscall, __create_ib_request,
13836 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13837 from libnsl for version GLIBC_PRIVATE.
13838 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13839 Remove entry parameter from _nss_nisplus_parse_pwent and
13840 _nss_nisplus_parse_grent.
13841 * nis/nss_nisplus/nisplus-parser.c: Likewise.
13842 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13843 again. Rewrite getpwent handling to not use nis_first_entry and
13844 nis_next_entry. Roll out own niscall handling.
13845 * nis/nss_nisplus/nisplus-grp.c: Likewise.
13847 * sunrpc/xdr_rec.c: Fix typo in comment.
13849 2006-05-19 Ulrich Drepper <drepper@redhat.com>
13851 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13854 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13855 to allocate memory for my_pollfd. Better initialization of
13856 cb_is_running. Use TEMP_FAILURE_RETRY.
13858 * malloc/memusage.sh (memusageso): Add quotes.
13859 (memusagestat): Likewise.
13860 * debug/xtrace.sh (pcprofileso): Likewise.
13861 (pcprofiledump): Likewise.
13862 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13864 * malloc/Makefile ($(objpfx)memusage): Likewise.
13866 * nis/nis_callback.c (__nis_create_callback): Calls to
13867 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
13868 asprintf call fails.
13870 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13871 no uninitialized memory is passed to sendto.
13873 2006-05-18 Ulrich Drepper <drepper@redhat.com>
13875 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13876 of snprintf+strdup. Handle OOM.
13877 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13878 cb->serv together. Remove now obsolete free calls.
13879 (__nis_destroy_callback): Remove now obsolete free call.
13881 2006-05-18 David Woodhouse <dwmw2@redhat.com>
13883 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13884 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13885 and ULA respectively). Set precedence for IPv4 address to 10 as
13886 defined in RFC3484 for preferring IPv6.
13887 * posix/gai.conf: Update to match the new default tables.
13889 2006-05-18 Jakub Jelinek <jakub@redhat.com>
13891 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13892 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13893 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13894 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13896 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13898 (init_nss_interface): Remove initialization of these variables.
13900 2006-05-18 Ulrich Drepper <drepper@redhat.com>
13902 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13903 nis_free_directory forward to avoid duplication.
13905 2006-05-17 Ulrich Drepper <drepper@redhat.com>
13907 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13908 rec_dirsearch returning NULL.
13909 (first_shoot): Handle __nis_finddirectory returning NULL.
13910 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13912 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13913 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13915 2006-05-17 Jakub Jelinek <jakub@redhat.com>
13917 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13920 2006-05-15 Ulrich Drepper <drepper@redhat.com>
13922 * include/rpc/pmap_prot.h: Mark all functions as hidden.
13924 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13925 * nscd/nscd_getgr_r.c: Likewise.
13927 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13929 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13930 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13932 * stdlib/longlong.h (__clz_tab): Mark as hidden.
13934 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13936 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13938 * include/rpc/auth.h: Mark xdr_des_block_internal and
13939 xdr_opaque_auth_internal as hidden.
13941 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13944 * include/rpc/xdr.h: Mark all _internal functions as hidden.
13946 * misc/getusershell.c (okshells): Don't use static initializers,
13949 * stdlib/fmtmsg.c (keywords): Change type of len element to
13950 uint32_t to not waste space on 64bit machines.
13952 * locale/setlocale.c: Change _nl_category_names into a string.
13953 Add new _nl_category_name_idxs. Change all users.
13954 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13955 Declare _nl_category_name_idxs.
13956 * locale/findlocale.c: Adjust for _nl_category_names change.
13957 * locale/loadlocale.c: Likewise.
13958 * locale/newlocale.c: Likewise.
13959 * intl/dcigettext.c: Likewise.
13961 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13962 (add_alias2): ...here. New function.
13963 (__gconv_read_conf): Simplify builtin alias handling.
13964 (builtin_aliases): Convert to string to avoid relocations.
13965 * iconv/gconv_builtin.h: Add comment about correct formatting.
13967 2006-05-15 Jakub Jelinek <jakub@redhat.com>
13969 * resolv/res_debug.c (loc_ntoa): Make error const.
13971 2006-05-14 Andreas Schwab <schwab@suse.de>
13973 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13975 2006-05-12 Jakub Jelinek <jakub@redhat.com>
13977 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13978 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13979 sizeof (cpu_set_t).
13981 2006-05-11 Ulrich Drepper <drepper@redhat.com>
13983 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13985 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13987 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13988 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13990 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13991 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13993 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13994 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13997 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13998 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14001 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14002 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14004 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14005 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14007 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14008 * include/rpcsvc/nis_callback.h: New file.
14010 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14011 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14013 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14014 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14016 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14017 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14019 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14020 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14022 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14023 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14026 * nis/nis_xdr.h: Mark all functions as hidden. Remove
14027 __BEGIN_DECLS and __END_DECLS, the header is not installed.
14029 * nis/nis_error.c: Remove table of strings. Use position
14030 independent mechanism.
14031 * nis/nis_error.h: New file.
14033 2006-05-11 Jakub Jelinek <jakub@redhat.com>
14035 * locale/programs/ld-time.c (time_finish): If wide era name or
14036 format aren't provided, set both wname and wformat to L"".
14038 2006-05-10 Ulrich Drepper <drepper@redhat.com>
14040 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14041 results if the call was succesful.
14043 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14045 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14048 2006-05-10 Jakub Jelinek <jakub@redhat.com>
14050 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14052 2006-05-10 Ulrich Drepper <drepper@redhat.com>
14054 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14055 caller makes sure this is not the case.
14056 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
14058 2006-05-09 Ulrich Drepper <drepper@redhat.com>
14060 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14063 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14064 [Coverity CID 229, 230]
14066 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14068 (hol_help): Likewise. [Coverity CID 226, 227]
14070 * string/argz-replace.c (__argz_replace): Unconditionally call
14071 free on SRC. [Coverity CID 225]
14073 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14074 the return value of __nis_default_owner and __nis_default_group,
14075 it has been especially allocated. [Coverity CID 224]
14077 * nis/nis_defaults.c (searchXYX): New functions. Used by both
14078 searchgroup and searchowner. Significantly simplified.
14079 (__nis_default_owner): Remove duplication. Do not locally copy the
14080 string before duplicating it.
14081 (__nis_default_group): Likewise.
14083 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14084 we must clear the variable before calling __nisfind_server.
14086 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14087 nis_getnames. [Coverity CID 223]
14089 * locale/programs/locfile.c (locfile_read): Use alloca instead of
14090 xmalloc to allocate local repertoire name. [Coverity CID 222]
14092 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14093 allocate memory for the input to add_bytes. [Coverity CID 221]
14095 * posix/wordexp.c (w_addword): Free word if realloc fails and it
14096 was allocated here. [Coverity CID 219, 220]
14098 * posix/getconf.c (print_all): Free confstr data after printing.
14101 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14102 list allocation fails. [Coverity CID 215]
14104 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14107 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14108 string is NULL. [Coverity CID 212]
14109 * argp/Makefile: Add rules to build and run bug-argp1.
14110 * argp/bug-argp1.c: New file.
14112 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14114 * stdlib/canonicalize.c (__realpath): Likewise.
14116 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14117 pointer. [Coverity CID 206]
14119 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14120 in statically linked code.
14121 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14122 statically built code, be prepared to have no link map.
14125 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14126 dgettext calls. [Coverity CID 204]
14128 * argp/argp-help.c (struct uparams): Remove valid member. Change
14130 (uparam_names): Reduce size. Avoid relative relocations.
14131 Moved to read-only segment.
14132 (fill_in_uparams): Update for new layout.
14134 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14135 assumed to always be != NULL. [Coverity CID 202]
14137 * argp/argp-help.c (hol_entry_help): Remove some dead code
14138 [Coverity CID 200].
14140 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14141 away a few more unconditional yperr2nss calls.
14142 (_nss_nis_getservbyname_r): Likewise.
14144 2006-05-06 Ulrich Drepper <drepper@redhat.com>
14146 * sysdeps/generic/ldsodefs.h: Remove support for non-core
14149 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14150 that unused memory passed to sendto is nevertheless initialized.
14153 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14154 possibly unaligned memory accesses.
14156 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14157 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14158 and __putlong respectively. Correct buffer overflow check for
14161 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14163 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14164 (send_dg): Rewrite error handling to be more compact and avoid
14165 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
14167 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14169 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14170 instead of ns_get16.
14171 (res_queriesmatch): Likewise. Minor optimization.
14174 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14175 __libc_res_nsend might reallocate the buffer for the answer. In
14176 this case we have to reload the HP pointer.
14178 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14180 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
14181 some branch prediction hints.
14183 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14184 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14185 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14186 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14187 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14188 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14189 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14190 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14192 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
14194 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14195 by a GOT relocation to make Scrt1.o position independent.
14196 * sysdeps/s390/s390-64/elf/start.S: Likewise.
14198 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14199 six system call parameters.
14200 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14202 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14204 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14207 * sunrpc/svc_udp.c (BZERO): Remove definition.
14209 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14211 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
14212 (des_SPtrans): Use uint32_t type.
14213 (des_skb): Likewise.
14215 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14217 2006-05-05 Jakub Jelinek <jakub@redhat.com>
14220 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14223 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14225 * locale/programs/ld-address.c (address_finish): Fix one more
14226 place where the iso639 array might be accessed beyond the limits.
14228 2006-05-04 Ulrich Drepper <drepper@redhat.com>
14230 * nis/nis_table.c (nis_list): Avoid clearing res twice before
14231 filling it for the first time.
14233 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14234 Adjust all callers.
14235 Free res object content before returning.
14237 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14239 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14242 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14243 cleanup for initial thread, just the free call on TVP.
14245 * nscd/gai.c (__getline): Define.
14248 See ChangeLog.16 for earlier changes.