1 2010-01-22 Jim Meyering <jim@meyering.net>
3 * posix/regex_internal.c (re_string_realloc_buffers):
4 Detect and handle internal overflow. Patch by Paul Eggert
6 2010-01-20 Andreas Schwab <schwab@redhat.com>
8 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
9 (CHECK_SP): Fix check for alternate stack.
10 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
13 2010-01-19 H.J. Lu <hongjiu.lu@intel.com>
15 * sysdeps/i386/i686/multiarch/memmove.S: Also check
16 bit_Fast_Rep_String when SHARED isn't defined.
18 2010-01-19 Ulrich Drepper <drepper@redhat.com>
21 * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
23 2010-01-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
25 * sysdeps/mach/hurd/bits/libc-lock.h
26 (__rtld_lock_recursive_t): New type.
27 (__rtld_lock_initialize): New macro.
29 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
31 * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
32 * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
33 * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
34 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
36 2010-01-18 Andreas Schwab <schwab@redhat.com>
38 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
39 definitions of O_DSYNC and O_RSYNC.
41 * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
44 * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
47 2010-01-16 Jakub Jelinek <jakub@redhat.com>
49 * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
51 * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
52 * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
54 * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
56 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
57 math_opt_barrier and math_force_eval macros.
59 2010-01-15 Ulrich Drepper <drepper@redhat.com>
61 * posix/regcomp.c: Fix a few more cases of ignored return values.
62 * posix/regex_internal.c: Likewise.
63 * posix/regexec.c: Likewise.
65 * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
66 used without _XOPEN_SOURCE. Don't base any decisions on this macro
67 if _XOPEN_SOURCE is not defined as well.
69 2010-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
71 * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
72 high gprs kernel facility.
73 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
74 Added high gprs check for DSOs.
75 * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
78 2010-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
80 * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
82 * elf/dl-open.c (_dl_sysdep_start): Likewise..
83 * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
84 * elf/rtld.c (dl_main): Added new parameter auxv. Adjust the
85 AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
88 2010-01-14 Ulrich Drepper <drepper@redhat.com>
91 * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
93 Patch by Philip Prindeville <philipp@redfish-solutions.com>.
96 * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
100 * posix/regcomp.c (alc_eclosure_iter): Do not ignore
101 re_node_set_insert failure; return REG_ESPACE.
102 Patch by Paul Eggert.
104 * bits/confname.h: Make pre-C99-safe.
106 2010-01-14 Ryan S. Arnold <rsa@us.ibm.com>
108 * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
109 $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
110 files are found by GCC.
112 2010-01-14 Ulrich Drepper <drepper@redhat.com>
114 * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
117 * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
120 * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
122 * Versions.def: Add GLIBC_2.12 for libpthread.
125 * malloc/malloc.c (malloc_info): Initialize malloc if not already
126 done. Handle empty bin lists.
128 * posix/unistd.h: Change getpagesize and getdtablesize declaration
129 visibility some more.
131 * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
133 * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
136 * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
139 2010-01-13 Ulrich Drepper <drepper@redhat.com>
141 * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
143 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
145 * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
147 2010-01-13 Ulrich Drepper <drepper@redhat.com>
149 * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
151 2010-01-12 Ulrich Drepper <drepper@redhat.com>
153 * conform/data/complex.h-data: Test for POSIX2008.
155 * conform/data/ctype.h-data: Fix POSIX testing.
157 * conform/data/dirent.h-data: ino_t only needed for XSI.
159 * grp/grp.h: Declare getgrent and endgrent for XPG7.
161 * conform/data/inttypes.h-data: Use same types as the headers.
163 * resolv/netdb.h: Don't define old resolver macros for XPG7.
165 * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
167 * conform/conformtest.pl: Implement tag for allow-header.
168 Fix newline handling in allow-header implementation.
170 * conform/data/time.h-data: Use allow-header instead of duplicating
173 * conform/data/time.h-data: Allow sigevent tag.
175 * posix/sched.h: Define time_t and pid_t for XPG7.
177 2010-01-12 H.J. Lu <hongjiu.lu@intel.com>
179 * sysdeps/i386/i686/bcopy.S: New file.
181 * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
183 * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
185 * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
186 * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
187 * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
189 * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
191 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
192 bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
193 memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
194 bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
195 * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
196 * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
197 * sysdeps/i386/i686/multiarch/bcopy.S: New file.
198 * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
199 * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
200 * sysdeps/i386/i686/multiarch/bzero.S: New file.
201 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
202 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
203 * sysdeps/i386/i686/multiarch/memcpy.S: New file.
204 * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
205 * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
206 * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
207 * sysdeps/i386/i686/multiarch/memmove.S: New file.
208 * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
209 * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
210 * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
211 * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
212 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
213 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
214 * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
215 * sysdeps/i386/i686/multiarch/memset.S: New file.
216 * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
218 * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
221 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
222 FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
223 * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
225 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
227 (__x86_64_data_cache_size): New.
228 (init_cacheinfo): Set __x86_64_data_cache_size.
230 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
231 on bit_Fast_Rep_String for Intel Core i7.
233 * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
234 (index_Fast_Rep_String): Likewise.
235 (FEATURE_INDEX_1): Likewise.
236 (FEATURE_INDEX_MAX): Likewise.
237 (cpu_features): Add feature.
239 2010-01-12 Ulrich Drepper <drepper@redhat.com>
241 * conform/data/sys/select.h-data: Fix up for XPG7.
243 2010-01-12 Jakub Jelinek <jakub@redhat.com>
245 * posix/sys/wait.h: Don't define W* macros etc. if
246 stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
248 2010-01-11 Ulrich Drepper <drepper@redhat.com>
250 * io/sys/stat.h: Declare fchmod for XPG7.
251 * conform/data/sys/stat.h-data: Fix up for XPG7.
253 * termios/termios.h: Define pid_t for XPG7.
255 * conform/data/math.h-data: Fix up for XPG6 and XPG7.
256 * conform/data/tgmath.h-data: Likewise.
258 * conform/data/time.h-data: Fix POSIX tests.
260 * conform/data/wchar.h-data: Fix up XPG7 tests.
262 * include/features.h: Fix __USE_ISOC95 handling.
264 * conform/data/wordexp.h-data: Fix typo in last change.
266 * conform/data/unistd.h-data: Fix up older POSIX tests.
268 * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
269 * posix/unistd.h: Likewise.
271 * posix/unistd.h: Include environments.h also for XPG6 and up.
272 Define intptr_t for XPG6 and up.
274 * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
276 * conform/data/sys/types.h-data: Fix up for XPG7.
278 * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
279 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
280 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
281 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
282 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
283 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
284 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
285 * sysdeps/unix/sysv/bits/stat.h: Likewise.
286 * sysdeps/mach/hurd/bits/stat.h: Likewise.
288 * bits/confname.h: Fix typo in last change.
290 * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
292 2010-01-10 Ulrich Drepper <drepper@redhat.com>
294 * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
295 and SA_RESETHAND now available in Base.
296 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
297 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
298 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
299 * conform/data/signal.h-data: Update for XPG7.
301 * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
303 * string/strings.h: Don't declare obsolete functions for XPG7.
304 Declare ffs only for XSI.
305 * conform/data/strings.h-data: Update for XPG7.
307 2010-01-10 Jakub Jelinek <jakub@redhat.com>
310 * libio/stdio.h: Define va_list, off_t, and ssize_t.
312 * posix/glob.h: Define size_t.
314 * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
316 * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
318 2010-01-10 Ulrich Drepper <drepper@redhat.com>
320 * conform/conformtest.pl: For XPG7 testing the headers are supposed to
323 * conform/data/stdio.h-data: Expect off_t and ssize_t.
325 2010-01-09 Ulrich Drepper <drepper@redhat.com>
327 * libio/stdio.h: Define va_list also for XPG7.
329 * conform/conformtest.pl: Update for XPG7 and some bug fixes.
330 * conform/data/ctype.h-data: Likewise.
331 * conform/data/dirent.h-data: Likewise.
332 * conform/data/errno.h-data: Likewise.
333 * conform/data/fcntl.h-data: Likewise.
334 * conform/data/fmtmsg.h-data: Likewise.
335 * conform/data/fnmatch.h-data: Likewise.
336 * conform/data/ftw.h-data: Likewise.
337 * conform/data/glob.h-data: Likewise.
338 * conform/data/grp.h-data: Likewise.
339 * conform/data/iconv.h-data: Likewise.
340 * conform/data/langinfo.h-data: Likewise.
341 * conform/data/libgen.h-data: Likewise.
342 * conform/data/limits.h-data: Likewise.
343 * conform/data/locale.h-data: Likewise.
344 * conform/data/math.h-data: Likewise.
345 * conform/data/monetary.h-data: Likewise.
346 * conform/data/mqueue.h-data: Likewise.
347 * conform/data/ndbm.h-data: Likewise.
348 * conform/data/netdb.h-data: Likewise.
349 * conform/data/pthread.h-data: Likewise.
350 * conform/data/pwd.h-data: Likewise.
351 * conform/data/regex.h-data: Likewise.
352 * conform/data/sched.h-data: Likewise.
353 * conform/data/search.h-data: Likewise.
354 * conform/data/semaphore.h-data: Likewise.
355 * conform/data/setjmp.h-data: Likewise.
356 * conform/data/signal.h-data: Likewise.
357 * conform/data/spawn.h-data: Likewise.
358 * conform/data/stdio.h-data: Likewise.
359 * conform/data/stdlib.h-data: Likewise.
360 * conform/data/string.h-data: Likewise.
361 * conform/data/strings.h-data: Likewise.
362 * conform/data/sys/ipc.h-data: Likewise.
363 * conform/data/sys/msg.h-data: Likewise.
364 * conform/data/sys/resource.h-data: Likewise.
365 * conform/data/sys/sem.h-data: Likewise.
366 * conform/data/sys/shm.h-data: Likewise.
367 * conform/data/sys/socket.h-data: Likewise.
368 * conform/data/sys/stat.h-data: Likewise.
369 * conform/data/sys/time.h-data: Likewise.
370 * conform/data/sys/types.h-data: Likewise.
371 * conform/data/sys/uio.h-data: Likewise.
372 * conform/data/sys/wait.h-data: Likewise.
373 * conform/data/syslog.h-data: Likewise.
374 * conform/data/tar.h-data: Likewise.
375 * conform/data/termios.h-data: Likewise.
376 * conform/data/time.h-data: Likewise.
377 * conform/data/ulimit.h-data: Likewise.
378 * conform/data/unistd.h-data: Likewise.
379 * conform/data/utmpx.h-data: Likewise.
380 * conform/data/wchar.h-data: Likewise.
381 * conform/data/wctype.h-data: Likewise.
382 * conform/data/wordexp.h-data: Likewise.
384 * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
385 * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
386 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
387 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
388 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
389 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
390 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
391 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
392 * sysdeps/unix/sysv/bits/stat.h: Likewise.
393 * sysdeps/mach/hurd/bits/stat.h: Likewise.
395 * stdlib/stdlib.h: Define wait-related bits for XPG7.
396 Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and up.
397 Declare mkstemp and getsubopt for XPG7.
398 Declare posix_openpt for XPG6 XSI.
400 * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
401 and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
403 * string/string.h: Declare strdup for XPG7.
405 2010-01-08 Ulrich Drepper <drepper@redhat.com>
407 * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
408 * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
410 * dirent/dirent.h: Really fix feature selection.
412 * locale/localeinfo.h: Rename struct locale_data to __locale_data.
414 * locale/C-address.c: Fix all users.
415 * locale/C-collate.c: Likewise.
416 * locale/C-ctype.c: Likewise.
417 * locale/C-identification.c: Likewise.
418 * locale/C-measurement.c: Likewise.
419 * locale/C-messages.c: Likewise.
420 * locale/C-monetary.c: Likewise.
421 * locale/C-name.c: Likewise.
422 * locale/C-numeric.c: Likewise.
423 * locale/C-paper.c: Likewise.
424 * locale/C-telephone.c: Likewise.
425 * locale/C-time.c: Likewise.
426 * locale/findlocale.c: Likewise.
427 * locale/global-locale.c: Likewise.
428 * locale/loadarchive.c: Likewise.
429 * locale/loadlocale.c: Likewise.
430 * locale/nl_langinfo_l.c: Likewise.
431 * locale/setlocale.c: Likewise.
432 * locale/xlocale.c: Likewise.
433 * locale/xlocale.h: Likewise.
434 * stdio-common/vfscanf.c: Likewise.
435 * stdlib/strfmon_l.c: Likewise.
436 * stdlib/strtod_l.c: Likewise.
437 * stdlib/strtol_l.c: Likewise.
438 * string/strcoll_l.c: Likewise.
439 * string/strxfrm_l.c: Likewise.
440 * time/alt_digit.c: Likewise.
441 * time/asctime.c: Likewise.
442 * time/era.c: Likewise.
443 * time/lc-time-cleanup.c: Likewise.
444 * time/strftime_l.c: Likewise.
445 * time/strptime_l.c: Likewise.
446 * wcsmbs/wcsmbsload.c: Likewise.
447 * wcsmbs/wcsmbsload.h: Likewise.
449 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
450 O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
452 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
453 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
454 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
455 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
456 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
457 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
459 2010-01-07 Roland McGrath <roland@redhat.com>
461 * elf/elf.h (PN_XNUM): New macro.
463 * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
466 2010-01-06 Ulrich Drepper <drepper@redhat.com>
468 * dirent/dirent.h: Fix typo in feature selection macro use.
470 2009-12-15 Maciej W. Rozycki <macro@codesourcery.com>
473 * stdlib/tst-makecontext3.c: New file.
474 * stdlib/Makefile (tests): Add new test.
476 * stdlib/tst-setcontext.c (check_called): Fix a typo.
478 2009-12-17 H.J. Lu <hongjiu.lu@intel.com>
480 * configure.in: Enable multi-arch by default if the assembler
481 supports gnu_indirect_function symbol type and the architecture
484 2009-12-23 Ulrich Drepper <drepper@redhat.com>
486 * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
489 2009-12-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
491 * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
492 MACH_PORT_NULL when id != cttyid.
494 2009-12-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
496 * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
497 __mach_port_deallocate on rootdevid.
499 2009-12-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
501 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
502 R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
503 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
504 unneeded R_390_PLT16DBL and R_390_PLT32DBL.
506 2009-12-21 Ulrich Drepper <drepper@redhat.com>
509 * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
510 Patch by Eric Blake <ebb9@byu.net>.
512 2009-12-15 Ulrich Drepper <drepper@redhat.com>
515 * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
516 POLLWRBAND also for POSIX 2008.
517 * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
518 * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
520 * include/link.h (struct link_map): Move l_used into its own word.
521 * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
523 * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
526 2009-12-13 H.J. Lu <hongjiu.lu@intel.com>
528 * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
529 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
530 check processor feature.
531 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
532 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
533 * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
534 (index_SSE2): Likewise.
536 2009-12-09 H.J. Lu <hongjiu.lu@intel.com>
538 * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
539 if __ASSEMBLER__ is defined.
540 (bit_SSSE3): New. Defined for __ASSEMBLER__.
541 (bit_SSE4_2): Likewise.
542 (index_SSSE3): Likewise.
543 (index_SSE4_2): Likewise.
544 * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
545 instead of <ifunc-defines.h>. Use bit_XXX and index_XXX to
546 check processor feature.
547 * sysdeps/x86_64/multiarch/strchr.S: Likewise.
548 * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
549 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
550 * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
551 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
552 * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
553 * sysdeps/x86_64/multiarch/strspn.S: Likewise.
555 2009-12-08 Kaz Kojima <kkojima@rr.iij4u.or.jp>
557 * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
559 2009-12-01 Mike Frysinger <vapier@gentoo.org>
561 * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
563 2009-12-11 Ulrich Drepper <drepper@redhat.com>
565 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
566 O_DSYNC to match 2.6.33+ kernels.
567 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
568 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
569 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
570 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
571 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
572 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
574 2009-12-10 Ulrich Drepper <drepper@redhat.com>
577 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
578 *herrnop before returning.
579 * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
581 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
582 TRYAGAIN errors separately.
583 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
584 *name4_r after functions.
586 2009-12-09 Ulrich Drepper <drepper@redhat.com>
589 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
592 2009-11-05 Bruno Haible <bruno@clisp.org>
595 * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
596 argv argument as non-NULL.
597 (execle, execl, execlp): Mark the first ARG argument as non-NULL.
599 -2009-12-08 Ulrich Drepper <drepper@redhat.com>
601 * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
603 * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
604 * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
606 2009-12-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
608 * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
610 * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
611 * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
612 * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
614 2009-11-30 Ulrich Drepper <drepper@redhat.com>
616 * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
619 2009-11-26 Ulrich Drepper <drepper@redhat.com>
621 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
622 only used on truly ancient kernel if configuration requires a more
625 2009-11-24 Ulrich Drepper <drepper@redhat.com>
628 * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
629 Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
631 * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
632 pass it on to __ptsname_internal.
633 (grantpt): Pass stat64 pointer to pts_name. Remove stat call here.
634 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
635 All the code from __ptsname_r but take additional parameter. Use that
636 instead of pointer to local stat64 variable.
637 (__ptsname_r): Call __ptsname_internal with pointer to local stat64
639 * include/stdlib.h: Declare __ptsname_internal.
641 * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
643 * sysdeps/unix/sysv/linux/grantpt.c: New file.
644 * login/programs/pt_chown.c (main): Don't print message on errors
645 when doing real work.
647 * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
650 * csu/elf-init.c (__libc_csu_irel): New function. Code to perform
651 irel relocations split out from...
652 (__libc_csu_init): ...here.
653 * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
655 2009-11-23 Andreas Schwab <schwab@redhat.com>
657 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
658 for timestamps also if __USE_XOPEN2K8.
659 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
660 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
661 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
662 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
664 2009-11-22 Ulrich Drepper <drepper@redhat.com>
666 * nscd/connections.c (restart): Try harder to re-exec.
668 * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
670 * sysdeps/unix/sysv/linux/ntp_gettimex.c: New file.
671 * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
672 * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
673 * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
674 some placeholders. Redirect ntp_gettime to ntp_gettimex.
675 * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
677 * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
679 (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
681 2009-11-18 H.J. Lu <hongjiu.lu@intel.com>
684 * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
685 than software pipeline. Properly recover from shorter read.
687 2009-11-19 Ulrich Drepper <drepper@redhat.com>
690 * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
691 initialized before using it.
692 (_IO_putwc_unlocked): Likewise.
695 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
696 in cast to not throw away const-ness of parameters.
697 (__CPU_EQUAL_S): Likewise.
698 (__CPU_OP_S): Likewise.
700 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
701 F_OWNER_PGRP and mark F_OWNER_GID obsolete. The kernel people made
702 this gratuitous change and we have to keep compatibility.
703 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
704 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
705 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
706 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
707 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
708 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
710 2009-11-17 Ulrich Drepper <drepper@redhat.com>
712 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
713 of parameters of sync_file_range.
714 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
715 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
716 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
717 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
718 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
719 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
721 2009-11-16 Jakub Jelinek <jakub@redhat.com>
723 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
724 Implement using sync_file_range2 syscall if __NR_sync_file_range2
726 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
729 2009-11-17 Paolo Bonzini <bonzini@gnu.org>
731 * posix/bug-regex30.c: New file.
732 * posix/Makefile: Add rules to build and run bug-regex30.
733 * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
734 character lead bytes when there is a range in a COMPLEX_BRACKET.
735 Reported by Oleg Bylatov.
737 2009-11-17 Ulrich Drepper <drepper@redhat.com>
740 * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
741 * locale/tst-duplocale.c: New file.
742 * locale/Makefile (tests): Add tst-duplocale.
745 * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
746 Patch by Bruno Haible <bruno@clisp.org>.
747 * locale/tst-locname.c: New file.
748 * locale/Makefile (tests): Add tst-locname.
751 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
752 constants from recent kernels.
753 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
754 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
755 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
756 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
757 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
758 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
760 2009-11-09 H.J. Lu <hongjiu.lu@intel.com>
763 * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
766 2009-11-09 Mike Frysinger <vapier@gentoo.org>
768 * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
769 (fallocate): Return ENOSYS if __NR_fallocate is not defined.
770 * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
772 2009-11-06 Mike Frysinger <vapier@gentoo.org>
774 * posix/bug-regex29.c: Include stdio.h.
776 2009-11-14 Ulrich Drepper <drepper@redhat.com>
779 * Versions.def: Define GLIBC_2.12 for libc.
780 * manual/errno.texi: Add ERFKILL entry.
781 * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
783 * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
784 * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
786 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
787 F_GETOWN_EX definitions according to corrected kernel definitions.
788 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
789 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
790 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
791 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
792 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
793 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
795 2009-11-12 Ulrich Drepper <drepper@redhat.com>
797 * version.h: Bump for 2.12 development.
799 2009-11-10 Andreas Schwab <schwab@redhat.com>
801 * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
803 * resolv/nss_dns/dns-host.c (getanswer_r): Check for
804 map_v4v6_hostent running out of space.
806 2009-11-10 Ulrich Drepper <drepper@redhat.com>
808 * string/bits/string3.h (memset): If the second parameter is constant
809 and zero there is likely no transposition.
810 Patch by Caolan McNamara <caolanm@redhat.com.
812 2009-11-04 Philippe De Muyter <phdm@macqel.be>
814 * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
815 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
817 2009-10-30 Holger Hans Peter Freyther <zecke@selfish.org>
819 * malloc/memusagestat.c (main): Fix spelling in an error message.
821 2009-11-01 H.J. Lu <hongjiu.lu@intel.com>
823 * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
824 * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
826 2009-11-03 Andreas Schwab <schwab@redhat.com>
828 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
831 2009-11-03 Jakub Jelinek <jakub@redhat.com>
833 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
834 relocate opd entry when resolving prelink conflicts.
836 2009-11-04 Jakub Jelinek <jakub@redhat.com>
838 * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
839 when -D_FILE_OFFSET_BITS=64.
841 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
842 of last two arguments when -D_FILE_OFFSET_BITS=64.
843 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
844 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
845 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
846 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
847 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
848 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
850 2009-11-03 Andreas Schwab <schwab@linux-m68k.org>
853 * sysdeps/generic/libgcc_s.h: New file.
854 * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
856 2009-11-01 Ulrich Drepper <drepper@redhat.com>
858 * malloc/hooks.c (free_check): Restore locking and call _int_free
861 2009-10-30 Ulrich Drepper <drepper@redhat.com>
863 * version.h (VERSION): Bump for 2.11 release.
864 * include/features.h (__GLIBC_MINOR__): Bump to 11.
866 * elf/tst-execstack.c (do_test): Add cast to avoid warning.
868 * stdio-common/scanf13.c (main): Remove unused variable wbuf.
870 * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
872 * stdlib/tst-strtoll.c (tests): Likewise.
875 * time/strftime_l.c (__strftime_internal): Allow %OC.
877 * misc/mkostemps.c: New file.
878 * misc/mkostemps64.c: New file.
880 2009-10-30 Andreas Schwab <schwab@redhat.com>
882 * locale/programs/locale-spec.c: Include <error.h> and
885 * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
887 2009-10-28 Roland McGrath <roland@redhat.com>
889 * Makefile (dist-prepare): New target.
890 (tag-for-dist): Target removed.
891 (glibc-%.tar): Pattern rule removed.
892 (%.tar): New pattern rule, does simple use of git archive.
893 (dist-version): Remove variable definition.
894 (dist): Just depend on that. Add .tar.xz dependency.
895 If dist-version variable not set on command line, depend on
896 dist-prepare, re-invoke with dist-version set via git describe.
898 * Makerules (%.xz): New pattern rule.
900 2009-10-28 Alan Modra <amodra@bigpond.net.au>
902 * elf/ifuncdep2.c: Include ifunc-sel.h.
904 (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
905 * elf/ifuncmain1.c (global): Delete.
906 * elf/ifuncmain1vis.c: Likewise.
907 * elf/ifuncmain2.c: Likewise.
908 * elf/ifuncmain5.c: Likewise.
909 * elf/ifuncmod3.c: Likewise.
910 * elf/ifuncmain6pie.c: Include ifunc-sel.h.
911 (foo_ifunc): Use ifunc_one.
912 * elf/ifuncmain7.c: Likewise.
913 * elf/ifuncmod1.c: Include ifunc-sel.h.
914 (global): Define protected var.
915 (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
916 * elf/ifuncmod5.c: Likewise.
917 * sysdeps/generic/elf/ifunc-sel.h: New file.
918 * sysdeps/powerpc/elf/ifunc-sel.h: New file.
920 2009-07-30 Alan Modra <amodra@bigpond.net.au>
922 * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
923 (R_PPC_REL16*): Correct comments.
924 (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
925 (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
926 R_PPC64_REL16_HA): Define.
927 * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
928 * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
929 * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
930 Delete unused "reloc" param.
931 (__process_machine_rela): Handle R_PPC_IRELATIVE.
932 * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
933 Delete "reloc" param.
934 (elf_machine_rela): Handle STT_GNU_IFUNC functions and
936 * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
937 (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
940 d2009-10-30 Ulrich Drepper <drepper@redhat.com>
943 * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
944 UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
948 * sysdeps/posix/tempname.c (__gen_tempname): Take new second
949 parameter, specifying length of prefix.
950 * stdio-common/tempname.c: Likewise.
951 * include/stdio.h: Adjust prototypes.
952 * libio/oldtmpfile.c: Adjust caller.
953 * misc/mkdtemp.c: Likewise.
954 * misc/mkostemp.c: Likewise.
955 * misc/mkostemp64.c: Likewise.
956 * misc/mkstemp.c: Likewise.
957 * misc/mkstemp64.c: Likewise.
958 * misc/mktemp.c: Likewise.
959 * stdio-common/tempnam.c: Likewise.
960 * stdio-common/tmpfile.c: Likewise.
961 * stdio-common/tmpnam.c: Likewise.
962 * stdio-common/tmpnam_r.c: Likewise.
963 * misc/mkstemps.c: New file.
964 * misc/mkstemps64.c: New file.
965 * stdlib/stdlib.h: Add prototypes.
966 * misc/Makefile (routines): Add mkstemps and mkstemps64.
967 * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
969 2009-10-29 Ulrich Drepper <drepper@redhat.com>
971 * locale/iso-639.def: Add sml entry.
974 * resolv/res_send.c (send_dg): Initialize resplen.
977 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
978 definition to the kernel's.
979 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
981 2009-08-18 Anders Johansson <ajohansson@novell.com>
983 * nscd/aicache.c: Fix mixing up dataset and dataset->resp
984 offsets and record sizes in assert()s and response sending.
985 * nscd/grpcache.c: Likewise.
986 * nscd/hstcache.c: Likewise.
987 * nscd/initgrcache.c: Likewise.
988 * nscd/pwdcache.c: Likewise.
990 2009-10-29 Ulrich Drepper <drepper@redhat.com>
993 * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
994 /etc/hosts does not exist set errnop and herrnop appropriately.
995 Patch by Steve Langasek <vorlon@debian.org>.
998 * malloc/malloc.c (malloc_info): Fix typos in format strings.
999 Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1002 * login/utmp_file.c (TIMEOUT): Increase to 10.
1005 * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1006 for file names in case the syscall is not available.
1007 * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1008 * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1009 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1010 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1011 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1012 * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1013 * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1014 * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1015 * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1016 * sysdeps/unix/sysv/linux/openat.c: Likewise.
1017 * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1018 * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1019 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1020 * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1021 * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1022 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1023 * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1026 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1027 creation filed, remove the request from the 'requests' list and signal
1028 the caller that the request is finished.
1031 * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1032 in error if batch_read. Patch by Joe Landers <jlanders@vmware.com>.
1035 * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1036 from intern.start. Patch by Joe Landers <jlanders@vmware.com>.
1039 * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1040 overflows the int return type.
1043 * malloc/memusagestat.c (main): Fix repairing of trace files. We also
1044 have to compute maxsize_total, we have to update the variables, and
1045 the also_total handling must happen after the repair.
1048 * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1049 Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1051 2009-10-27 Andreas Schwab <schwab@redhat.com>
1053 * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1054 errno is always set when returning unsuccessfully.
1056 2009-10-29 Andreas Schwab <schwab@redhat.com>
1058 * malloc/memusage.c (update_data): Fix index wraparound handling
1059 so that buffer_cnt is actually reset.
1061 2009-10-29 Ulrich Drepper <drepper@redhat.com>
1064 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1065 of the directory we look at into the static buffer if there is one
1066 at the start of the loop.
1069 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1070 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1073 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1074 __ASSUME_F_GETOWN_EX.
1075 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1077 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1079 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1081 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1082 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1083 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1084 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1085 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1086 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1089 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1093 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1094 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
1096 2009-10-24 Joseph Myers <joseph@codesourcery.com>
1098 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1100 2009-10-27 Jakub Jelinek <jakub@redhat.com>
1103 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1104 Reported by Ray Chason.
1106 2009-10-21 H.J. Lu <hongjiu.lu@intel.com>
1108 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1110 * sysdeps/x86_64/multiarch/strchr.S: New file.
1111 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1112 * sysdeps/x86_64/multiarch/strrchr.S: New file.
1114 2009-10-21 Andreas Schwab <schwab@redhat.com>
1116 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1118 2009-10-19 Andreas Schwab <schwab@redhat.com>
1120 * include/math.h: Add hidden protos for __exp/__expf/__expl.
1121 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1122 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1123 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1124 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1125 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1126 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1127 __ieee751_expl to handle overflow.
1129 2009-10-14 David S. Miller <davem@davemloft.net>
1131 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1132 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1134 2009-10-13 Andreas Schwab <schwab@redhat.com>
1136 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1139 2009-10-08 Ulrich Drepper <drepper@redhat.com>
1142 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1143 Patch in part by Steve Ward <planet36@gmail.com>.
1146 * stdlib/rand_r.c: Fix typo.
1148 * po/cs.po: Update from translation team.
1150 2009-10-06 Andreas Schwab <schwab@redhat.com>
1152 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1153 returning if RTLD_NOLOAD.
1155 2009-10-06 Roland McGrath <roland@redhat.com>
1157 * sysdeps/x86_64/multiarch/strstr-c.c
1158 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1160 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1161 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1163 * sysdeps/x86_64/multiarch/init-arch.h
1164 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1165 (HAS_CPU_FEATURE): New macro.
1166 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1167 * sysdeps/x86_64/multiarch/init-arch.c
1168 (__get_cpu_features): #undef it before definition.
1170 2009-10-05 Andreas Schwab <schwab@redhat.com>
1172 * locale/C-time.c: Revert week-1stday back to 19971130 and set
1173 first_weekday to 1 and first_workday to 2.
1175 2009-10-01 Ulrich Drepper <drepper@redhat.com>
1177 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1179 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1180 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1181 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1182 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1183 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1184 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1186 2009-09-28 Andreas Schwab <schwab@redhat.com>
1188 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1189 * stdio-common/vfprintf.c: Likewise.
1191 2009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
1193 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1194 (mkdirat): Call __directory_name_split_at instead of
1195 __directory_name_split.
1197 2009-09-28 Ulrich Drepper <drepper@redhat.com>
1199 * locale/programs/locale-spec.c (locale_special): If nothing matches
1200 fail with an appropriate message.
1202 2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
1204 * configure.in: Exclude binutils 2.X. Support binutils 2.100
1207 2009-09-25 Andreas Schwab <schwab@redhat.com>
1209 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1210 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1212 2009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1214 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1216 2009-09-20 Andreas Schwab <schwab@linux-m68k.org>
1218 * iconvdata/iso646.c (gconv_init): Correctly initialize the
1219 character size elements in step data.
1221 2009-09-20 Ulrich Drepper <drepper@redhat.com>
1223 * po/hu.po: Update from translation team.
1224 * po/vi.po: Likewise.
1226 2009-09-19 Roland McGrath <roland@redhat.com>
1228 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1230 2009-09-15 Roland McGrath <roland@redhat.com>
1232 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1233 * nptl/sysdeps/pthread/configure: Regenerated.
1234 * nptl/sysdeps/x86_64/configure: Regenerated.
1235 * sysdeps/unix/sysv/linux/configure: Regenerated.
1236 * sysdeps/x86_64/elf/configure: Regenerated.
1238 * Makefile (autoconf-it): Set execute bit only on top-level configure.
1240 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1241 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1242 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1243 * configure: Regenerated.
1245 2009-09-09 Ulrich Drepper <drepper@redhat.com>
1247 * posix/getconf.c (main): Handle -- on command line.
1249 2009-09-05 H.J. Lu <hongjiu.lu@intel.com>
1251 * configure.in: Support binutils 2.100 and 3.0.
1253 2009-09-08 Jakub Jelinek <jakub@redhat.com>
1255 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1256 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1257 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1258 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1260 2009-09-07 Ulrich Drepper <drepper@redhat.com>
1262 * locale/programs/ld-collate.c (struct locale_collate_t): Add
1263 unnamed_section_defined field.
1264 (collate_read): Test and set unnamed_section_defined.
1266 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1269 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
1271 * configure.in: Support binutils 2.20.
1273 2009-09-03 Ulrich Drepper <drepper@redhat.com>
1275 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1276 __strstr_ia32): Add attribute_hidden.
1278 2009-09-01 Andreas Schwab <schwab@redhat.com>
1280 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1281 parsing of group entry.
1283 2009-09-02 Andreas Schwab <schwab@redhat.com>
1285 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1286 external buffer. Always discard readahead in internal buffer.
1287 * libio/Makefile (tests): Add bug-wsetpos.
1288 * libio/bug-wsetpos.c: New file.
1290 2009-09-02 Jakub Jelinek <jakub@redhat.com>
1292 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1293 Add attribute_hidden.
1294 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1295 __strcasestr_sse2): Likewise.
1296 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1297 (__fma_fma): Make static.
1298 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1299 (__fmaf_fma): Make static.
1301 2009-08-31 Andreas Schwab <schwab@redhat.com>
1303 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1304 reformulate in-buffer optimisation check to match code in
1305 _IO_new_file_seekoff.
1307 2009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
1309 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1310 to srwi in 32-bit memcpy for power6.
1312 2009-09-01 Andreas Schwab <schwab@redhat.com>
1314 * include/stdio.h: Declare hidden proto for fflush.
1315 * libio/iofflush.c: Add hidden weak alias for fflush.
1317 2009-09-01 Jakub Jelinek <jakub@redhat.com>
1319 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1320 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1322 2009-08-31 Andreas Schwab <schwab@redhat.com>
1324 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1326 2009-08-31 Ulrich Drepper <drepper@redhat.com>
1329 * malloc/malloc.c: Add local assert definition to avoid problems with
1330 memory allocation in the real one.
1332 2009-08-27 H.J. Lu <hongjiu.lu@intel.com>
1334 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1336 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1337 turn off SSSE3 on Atom.
1339 2009-08-28 Ulrich Drepper <drepper@redhat.com>
1341 * stdlib/tst-strtol.c (tests): More tests.
1342 * stdlib/tst-strtoll.c (tests): Likewise.
1344 2009-08-26 Ulrich Drepper <drepper@redhat.com>
1346 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1348 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1350 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1352 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1353 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1355 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1357 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1359 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1361 2009-08-25 Joseph Myers <joseph@codesourcery.com>
1363 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1365 2009-08-25 Ulrich Drepper <drepper@redhat.com>
1367 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1368 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1370 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1372 * sysdeps/x86_64/fpu/s_signbit.S: New file.
1373 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1375 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1376 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1378 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1379 leftover YMM_SIZE definition.
1381 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1383 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1385 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1386 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1388 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1390 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1391 and SET_FLOAT_WORD definitions.
1393 2009-08-24 Roland McGrath <roland@redhat.com>
1395 * sysdeps/unix/syscall-template.S: New file.
1396 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1397 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1398 (compile-syscall): Pass mkdep and -g options as normal.
1399 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1400 (common-generated): Don't add them here.
1402 2009-08-24 Ulrich Drepper <drepper@redhat.com>
1404 * math/s_fdim.c: In case of overflows set errno.
1405 * math/s_fdimf.c: Likewise.
1406 * math/s_fdiml.c: Likewise.
1408 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1409 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1410 are using the inline optimizations.
1412 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1413 (__signbitf): Likewise.
1415 2009-08-23 Ulrich Drepper <drepper@redhat.com>
1417 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1419 * posix/Makefile (tests): Add bug-regex29.
1420 * posix/bug-regex29.c: New file.
1422 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1423 older POSIX versions are selected.
1425 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1427 * stdio-common/printf_fphex.c: Likewise.
1428 * stdio-common/tstdiomisc.c: Add more tests.
1430 * locale/locale.h: Include xlocale.h and the thread-local locale
1431 declarations for XPG7, not XPG6.
1433 2009-08-21 Andreas Schwab <schwab@redhat.com>
1435 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1436 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1437 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1438 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1439 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1440 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1442 2009-08-20 Roland McGrath <roland@redhat.com>
1444 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1445 Use l_addr instead of l_map_start (dli_fbase).
1446 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1447 address when there is no proximate symbol.
1448 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1451 2009-08-16 Ulrich Drepper <drepper@redhat.com>
1453 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1455 2009-08-14 Ulrich Drepper <drepper@redhat.com>
1457 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1458 Also handle SIGINT. In that case only do the cleanup and then
1459 re-raise the signal.
1460 (main): Install handler for SIGINT.
1462 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1464 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1467 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
1469 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1470 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1472 (tests): Add tst-audit6 tst-audit7.
1473 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1474 tst-auditmod7a tst-auditmod7b.
1475 ($(objpfx)tst-audit6): New.
1476 ($(objpfx)tst-audit6.out): Likewise.
1477 ($(objpfx)tst-audit7): Likewise.
1478 ($(objpfx)tst-audit7.out): Likewise.
1479 (tst-audit6-ENV): Likewise.
1480 (tst-audit7-ENV): Likewise.
1481 (CFLAGS-tst-auditmod6b.c): Likewise.
1482 (CFLAGS-tst-auditmod6c.c): Likewise.
1483 (CFLAGS-tst-auditmod7b.c): Likewise.
1484 * elf/tst-audit6.c: New file.
1485 * elf/tst-audit7.c: New file.
1486 * elf/tst-auditmod6a.c: New file.
1487 * elf/tst-auditmod6b.c: New file.
1488 * elf/tst-auditmod6c.c: New file.
1489 * elf/tst-auditmod7a.c: New file.
1490 * elf/tst-auditmod7b.c: New file.
1491 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1492 saving and restoring SSE/AVX registers to ...
1493 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1495 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1497 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1498 only if SHARED is defined.
1499 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1501 2009-08-03 Jim Meyering <meyering@redhat.com>
1503 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1505 2009-08-08 Ulrich Drepper <drepper@redhat.com>
1507 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1508 section as the other functions for this architecture.
1509 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1511 2009-08-07 Ulrich Drepper <drepper@redhat.com>
1513 * sysdeps/x86_64/strcmp.S: Add support to compile with
1514 USE_SSSE3. In this case palignr is used.
1515 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1516 available but SSSE3 is, pick __str{,n}cmp_ssse3.
1517 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1518 Add strcmp-ssse3 and strncmp-ssse3.
1519 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1520 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1522 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1523 warning through fake initialization.
1525 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
1527 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1529 2009-08-07 Andreas Schwab <schwab@redhat.com>
1531 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1534 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
1536 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1537 EBX from EAX = 1. Handle EAX = 11.
1539 2009-08-07 Andreas Schwab <schwab@redhat.com>
1541 * Makefile (TAGS): Use separate sed -e expressions to avoid \
1544 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
1546 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1547 hidden IFUNC functions.
1548 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1550 * sysdeps/i386/i686/multiarch/strlen.S: New file.
1552 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1553 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1555 (CFLAGS-strcspn-c.c): Define.
1556 (CFLAGS-strpbrk-c.c): Define.
1557 (CFLAGS-strspn-c.c): Define.
1558 (CFLAGS-strstr.c): Define.
1559 (CFLAGS-strcasestr.c): Define.
1560 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1561 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1562 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1563 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1564 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1565 * sysdeps/i386/i686/multiarch/strspn.S: New file.
1566 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1567 * sysdeps/i386/i686/multiarch/strstr.c: New file.
1568 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1569 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1570 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1571 -16L instead of 0xfffffffffffffff0L.
1572 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1574 2009-08-02 Ulrich Drepper <drepper@redhat.com>
1576 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1578 2009-07-31 Ulrich Drepper <drepper@redhat.com>
1580 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1581 another rewrite. Much smaller and faster.
1582 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1584 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1585 ss_flags from the correct location.
1587 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
1589 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1590 * sysdeps/i386/i686/cacheinfo.c: New file.
1591 * sysdeps/i386/i686/multiarch/Makefile: New file.
1592 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1593 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1594 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1595 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1596 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1597 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1598 (__cpuid_count): New. Provide the default.
1599 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1600 (__x86_64_preferred_memory_instruction): Define only if
1601 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1602 (intel_check_word): Use __cpuid.
1603 (handle_intel): Likewise.
1604 (handle_amd): Likewise.
1605 (__cache_sysconf): Likewise.
1606 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1607 (__cache_sysconf): Likewise.
1608 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
1609 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1610 (get_common_indeces): Use __cpuid.
1611 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
1612 if ENABLE_SSSE3_ON_ATOM is not defined.
1613 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1614 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1615 popcnt instead of popcntq.
1617 2009-07-31 Jakub Jelinek <jakub@redhat.com>
1619 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1621 2009-07-30 Ulrich Drepper <drepper@redhat.com>
1623 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1624 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
1625 which always causes a compile error.
1627 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1629 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
1631 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
1632 which always causes a compile error.
1634 * debug/Makefile (tests): Add tst-longjmp_chk2.
1635 * debug/tst-longjmp_chk2.c: New file.
1637 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
1638 Remove incorrect use of BP_SYM.
1639 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
1640 here now since it is more complex than just a simple check.
1642 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1643 we make no more progress.
1645 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1647 * math/s_fma.c: Don't define alias if __fma is a macro.
1648 * math/s_fmaf.c: Likewise.
1649 * sysdeps/x86_64/multiarch/s_fma.c: New file.
1650 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1651 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1653 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1654 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1656 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1658 * include/libc-symbols.h (libm_ifunc): Define.
1659 * sysdeps/x86_64/multiarch/Versions: New file.
1661 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1663 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
1665 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1667 2009-07-29 Ulrich Drepper <drepper@redhat.com>
1669 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1670 call that registers used in calling conventions need to be preserved.
1671 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1672 to preserve register content if necessary.
1673 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1674 (_dl_x86_64_restore_sse): New function.
1675 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1676 is allowed to modify xmm/ymm registers.
1678 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
1679 application's perspective.
1680 * stdio-common/scanf17.c: Likewise.
1682 2009-07-28 Ulrich Drepper <drepper@redhat.com>
1684 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1686 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1688 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1689 two steps to catch bugs.
1691 2009-07-27 Ulrich Drepper <drepper@redhat.com>
1693 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
1694 determines which files are used in runtime lookups and only checks
1696 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
1698 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1699 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1700 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1703 * elf/dl-open.c: Move _dl_scope_free to...
1704 * elf/dl-scope.c: ...here. New file.
1705 * elf/Makefile (dl-routines): Add scope.
1707 * resolv/resolv.h (RES_USE_DNSSEC): Define.
1708 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1710 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1711 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1712 all the places we handled RES_USE_EDNS0 only before.
1713 Patch by Adam Tkac <atkac@redhat.com>.
1715 2009-07-27 Jakub Jelinek <jakub@redhat.com>
1717 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1718 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
1719 Update size when reallocating.
1721 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1723 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
1724 functions used in ld.so modify xmm/ymm registers.
1725 * sysdeps/x86_64/Makefile: Hook new test up.
1726 * sysdeps/x86_64/rtld-memchr.c: New file.
1727 * sysdeps/x86_64/rtld-memcmp.c: New file.
1728 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1729 * sysdeps/x86_64/rtld-strchr.S: New file.
1730 * sysdeps/x86_64/rtld-strlen.S: New file.
1731 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1732 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1734 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
1736 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1738 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1746 (next_8_bytes): Likewise.
1747 (Byte0): Remove commented out codes.
1748 (unaligned_table): Align jump table at 8 bytes.
1749 Add _sse4_2 to all labels. Always include "../strcmp.S".
1750 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1751 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1752 * sysdeps/x86_64/strncmp.S: New file.
1754 2009-07-26 Ulrich Drepper <drepper@redhat.com>
1757 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1758 kernels, dropped when eventfd2 support was added.
1759 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1760 kernels, dropped when signalfd4 support was added.
1761 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1765 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1768 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1770 2009-07-25 Ulrich Drepper <drepper@redhat.com>
1772 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1773 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
1776 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
1777 callback we must touch the status to avoid using stale value.
1779 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
1782 2009-07-24 Ulrich Drepper <drepper@redhat.com>
1784 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
1785 /lib/modules/* headers anymore. We have sane headers in the standard
1788 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1790 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
1791 "etf3enh" and "highgprs" added.
1792 (_dl_s390_platforms): "z10" added.
1793 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
1794 Increased for the new entries.
1795 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
1796 HWCAP_S390_HIGH_GPRS added.
1798 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
1799 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
1800 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
1801 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
1802 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
1804 2009-07-23 Ulrich Drepper <drepper@redhat.com>
1806 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
1807 avoid additional cpuid instructions. Most of the information is
1810 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
1812 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
1814 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
1815 SSSE3 bit for Atoms.
1816 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
1819 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
1820 structure before copying it to avoid warning.
1821 * posix/tst-rfc3484-2.c (do_test): Likewise.
1822 * posix/tst-rfc3484-3.c (do_test): Likewise.
1825 * include/unistd.h: Make header file suitable for C++ test cases.
1826 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
1828 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
1829 stack alignment in the exit code.
1831 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
1832 potentially be zero.
1834 * elf/tst-unique1.c: Extend test to check for unloading DSO with
1835 unique symbol definition.
1836 Patch by Jakub Jelinek.
1837 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
1838 make sure the object with the definition cannot be unloaded. Adjust
1840 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
1841 the unique symbol hash table should not be const.
1843 2009-07-21 Ulrich Drepper <drepper@redhat.com>
1845 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
1846 unnecesary variables. Comment fixes.
1848 2009-07-20 Ulrich Drepper <drepper@redhat.com>
1850 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
1851 Use NONASCII_CASE information provided by the locale to determine
1852 whether optimized string load function can be used. Minor cleanups.
1854 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
1856 * string/strcasestr.c (STRCASESTR): New macro.
1857 (__strcasestr): Renamed to ..
1858 (STRCASESTR): ...this.
1859 * string/strstr.c (STRSTR): New macro.
1860 (strstr): Renamed to ..
1862 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1863 strstr-c strcasestr-c
1864 (CFLAGS-strstr.c): New.
1865 (CFLAGS-strcasestr.c): Likewise.
1866 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
1867 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
1868 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
1869 * sysdeps/x86_64/multiarch/strstr.c: New file.
1871 2009-07-20 Ulrich Drepper <drepper@redhat.com>
1873 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
1874 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
1875 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
1876 _NL_CTYPE_NONASCII_CASE.
1877 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
1879 (ctype_finish): Check whether there are any 8-bit characters outside
1880 the range ASCII has or whether the mapping isn't the same as for
1881 ASCII (±0x20). Set nonascii_case appropriately.
1882 (ctype_output): Add output handler for nonascii_case.
1884 2009-07-17 Ulrich Drepper <drepper@redhat.com>
1886 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
1887 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
1889 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1892 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
1893 0xffff in the EDNS0 record.
1895 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1897 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
1898 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
1899 is written before the list head update.
1900 Patch by Andreas Schwab <aschwab@redhat.com>.
1902 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1903 Jakub Jelinek <jakub@redhat.com>
1905 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
1906 corruption thread-safe.
1908 2009-07-13 Jakub Jelinek <jakub@redhat.com>
1910 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
1911 overrides atomic_compare_and_exchange_val_rel, define to
1912 atomic_compare_and_exchange_val_rel by default, otherwise default
1913 to catomic_compare_and_exchange_val_acq.
1914 (catomic_compare_and_exchange_bool_rel): If arch overrides
1915 atomic_compare_and_exchange_bool_rel, define to
1916 atomic_compare_and_exchange_bool_rel by default.
1917 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
1918 Use catomic_compare_and_exchange_val_rel instead of
1919 catomic_compare_and_exchange_val_acq.
1921 2009-07-16 Ulrich Drepper <drepper@redhat.com>
1923 * sysdeps/generic/ldsodefs.h: Add prototype for
1924 _dl_higher_prime_number.
1925 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
1927 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
1928 restoring of ymm registers a bit.
1930 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
1932 * sysdeps/x86_64/memcmp.S: New file.
1934 2009-07-15 Ulrich Drepper <drepper@redhat.com>
1936 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
1937 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
1938 pointers in writable memory.
1940 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
1942 * config.h.in: Add HAVE_AVX_SUPPORT entry.
1943 * config.make.in: Add config-cflags-avx entry.
1944 * configure.in: Substitute libc_cv_cc_avx.
1945 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
1946 * elf/tst-audit4.c: New file.
1947 * elf/tst-audit5.c: New file.
1948 * elf/tst-auditmod4a.c: New file.
1949 * elf/tst-auditmod4b.c: New file.
1950 * elf/tst-auditmod5a.c: New file.
1951 * elf/tst-auditmod5b.c: New file.
1952 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
1954 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
1955 (La_x86_64_vector): Likewise.
1956 (La_x86_64_regs): Append lr_vector.
1957 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
1958 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1959 saving and restoring SSE registers to ...
1960 * sysdeps/x86_64/dl-trampoline.h: This. New file.
1961 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
1963 (_dl_runtime_profile): Use LR_SIZE to allocate space for
1964 La_x86_64_regs. Allocate extra space and jump to memory at
1965 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
1966 (save_and_restore_vector_sse): New.
1967 (save_and_restore_vector_avx): Likewise.
1968 (check_avx): Likewise.
1969 (save_and_restore_vector): Likewise.
1970 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
1972 * sysdeps/x86_64/link-defines.sym: New file.
1974 2009-07-10 Ulrich Drepper <drepper@redhat.com>
1976 * elf/do-lookup.h: Removed after folding content into...
1977 * elf/dl-lookup.c: ...here.
1979 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
1981 2009-07-09 Ulrich Drepper <drepper@redhat.com>
1983 * configure.in: Check for gnu_unique_symbol symbol type.
1984 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
1985 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
1986 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
1987 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
1989 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
1990 unique symbol table.
1991 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
1992 for first namespace.
1993 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
1994 unique symbol hash table.
1995 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
1996 * elf/tst-unique1.c: New file.
1997 * elf/tst-unique1mod1.c: New file.
1998 * elf/tst-unique1mod2.c: New file.
1999 * elf/tst-unique2.c: New file.
2000 * elf/tst-unique2mod1.c: New file.
2001 * elf/tst-unique2mod2.c: New file.
2003 2009-07-07 Ulrich Drepper <drepper@redhat.com>
2005 * elf/elf.h (STB_GNU_UNIQUE): Define.
2007 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
2009 * include/inline-hashtab.h: ...here.
2010 (htab_expand): Adjust for renamed function. Correct memory handling.
2012 2009-07-06 Ulrich Drepper <drepper@redhat.com>
2014 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2016 2009-07-03 Andreas Schwab <aschwab@redhat.com>
2018 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2019 (PPC_FEATURE_HAS_VSX): Likewise.
2021 2009-07-03 Ulrich Drepper <drepper@redhat.com>
2023 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2024 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2026 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2027 aligned to 16 byte boundaries.
2028 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2029 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2030 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2032 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
2034 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2035 * config.make.in (config-cflags-sse4): New variable.
2036 * configure.in: Substitute libc_cv_cc_sse4.
2037 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2039 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2040 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2041 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2042 * sysdeps/x86_64/multiarch/strcspn.S: New file.
2043 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2044 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2045 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2046 * sysdeps/x86_64/multiarch/strspn.S: New file.
2048 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
2050 * elf/Makefile (distribute): Remove tst-audit.sh. Add
2051 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2052 (tests): Add tst-audit3 for x86_64.
2053 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2054 ($(objpfx)tst-audit3): Define.
2055 ($(objpfx)tst-audit3.out): Define.
2056 (tst-audit3-ENV): Define.
2057 * elf/tst-audit3.c: New file.
2058 * elf/tst-auditmod3a.c: New file.
2059 * elf/tst-auditmod3b.c: New file.
2060 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2063 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
2064 (__stpncpy): Renamed to ...
2066 (stpncpy): Create alias only if STPNCPY is not defined.
2067 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
2069 (strncpy): Renamed to ...
2071 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2072 stpncpy-c strncpy-c for string.
2073 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2074 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2075 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2076 * sysdeps/x86_64/multiarch/strcpy.S: New file.
2077 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2078 * sysdeps/x86_64/multiarch/strncpy.S: New file.
2080 2009-07-02 Ulrich Drepper <drepper@redhat.com>
2082 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2083 adding to fast bin list.
2085 2009-07-01 Ulrich Drepper <drepper@redhat.com>
2087 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2088 inet_makeaddr. This worked only with class-based networks.
2089 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2092 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2093 recognize all types.
2094 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2095 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
2096 be in host byte order.
2098 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
2100 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2101 (MODEL_OFFSET): Define.
2102 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2104 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2105 out common code into new function get_common_indeces. Determine
2106 extended family and model for Intel processors.
2108 2009-06-26 Ulrich Drepper <drepper@redhat.com>
2110 * resolv/resolv.h: Define RES_SNGLKUPREOP.
2111 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2113 * resolv/res_send.c (reopen): New function. Broken out of...
2114 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
2115 fallback mechanism. If single-request fails switch to
2116 single-request-reopen mode which opens a new socket for the second
2119 2009-06-25 Andreas Schwab <aschwab@redhat.com>
2121 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2124 2009-06-24 Andreas Schwab <aschwab@redhat.com>
2126 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2127 for saved registers.
2128 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2129 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2130 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2132 2009-06-23 Andreas Schwab <aschwab@redhat.com>
2134 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2136 2009-06-22 Ulrich Drepper <drepper@redhat.com>
2138 * po/id.po: Update from translation team.
2140 * po/bg.po: Update from translation team.
2142 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
2144 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
2146 (strncmp): Renamed to STRNCMP.
2147 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2148 strncmp-c for string.
2149 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2150 * sysdeps/x86_64/multiarch/strcmp.S: New file.
2151 * sysdeps/x86_64/multiarch/strncmp.S: New file.
2152 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2154 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
2156 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2157 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2158 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2159 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2160 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2162 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2163 ifuncmain7static, and ifuncmain7picstatic.
2164 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2165 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2166 $(objpfx)ifuncmain7pie.out.
2167 (modules-names): Add ifuncmod5 ifuncmod6
2168 (ifuncmod5.so-no-z-defs): Define.
2169 (ifuncmod6.so-no-z-defs): Define.
2170 (CFLAGS-ifuncmain5pic.c): Define.
2171 (CFLAGS-ifuncmain5picstatic.c): Define.
2172 (CFLAGS-ifuncmain5staticpic.c): Define.
2173 (CFLAGS-ifuncdep5pic.c): Define.
2174 (CFLAGS-ifuncmain7pic.c): Define.
2175 (CFLAGS-ifuncmain7picstatic.c): Define.
2176 (CFLAGS-ifuncmain1staticpie.c): Define.
2177 (CFLAGS-ifuncmain5pie.c): Define.
2178 (CFLAGS-ifuncmain6pie.c): Define.
2179 (CFLAGS-ifuncmain7pie.c): Define.
2180 ($(objpfx)ifuncmain1staticpie.out): Define.
2181 ($(objpfx)ifuncmain1staticpie): Define.
2182 ($(objpfx)ifuncmain5pie.out): Define.
2183 ($(objpfx)ifuncmain5pie): Define.
2184 ($(objpfx)ifuncmain6pie.out): Define.
2185 ($(objpfx)ifuncmain6pie): Define.
2186 ($(objpfx)ifuncmain5): Define.
2187 ($(objpfx)ifuncmain5pic): Define.
2188 ($(objpfx)ifuncmain5static): Define.
2189 ($(objpfx)ifuncmain5staticpic): Define.
2190 ($(objpfx)ifuncmain5picstatic): Define.
2191 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2192 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2194 * elf/b/elf/ifuncmain1staticpie.c: New file.
2195 * elf/ifuncdep5.c: New file.
2196 * elf/ifuncdep5pic.c: New file.
2197 * elf/ifuncmain5.c: New file.
2198 * elf/ifuncmain5pic.c: New file.
2199 * elf/ifuncmain5picstatic.c: New file.
2200 * elf/ifuncmain5pie.c: New file.
2201 * elf/ifuncmain5static.c: New file.
2202 * elf/ifuncmain5staticpic.c: New file.
2203 * elf/ifuncmain6pie.c: New file.
2204 * elf/ifuncmain7.c: New file.
2205 * elf/ifuncmain7pic.c: New file.
2206 * elf/ifuncmain7picstatic.c: New file.
2207 * elf/ifuncmain7pie.c: New file.
2208 * elf/ifuncmain7static.c: New file.
2209 * elf/ifuncmod5.c: New file.
2210 * elf/ifuncmod6.c: New file.
2212 2009-06-20 Ulrich Drepper <drepper@redhat.com>
2215 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2216 (nss_endgrent): New variable.
2217 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2218 fields. Change type of files to bool and adjust all users.
2219 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2220 (internal_endgrent): Call nss_endgrent if necessary.
2221 (add_group): New function. Broken out of...
2222 (check_and_add_group): ...here.
2223 (getgrent_next_nss): Remove test that any callback is available.
2224 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2225 callback. If there is no blacklist we can trust the results returned
2226 by the initgroups_dyn callback. In case there is a callback and we
2227 find a group entry for the group ID but it doesn't contain the
2228 correct member, switch to the slow mode and use getgrent_r.
2229 (internal_getgrent_r): When we see a +: entry, determine whether
2230 there is any callback and which we can use the initgroups_dyn
2233 2009-06-18 Ulrich Drepper <drepper@redhat.com>
2235 * malloc/malloc.c (_int_malloc): Add some consistency checks.
2236 (_int_free): Likewise.
2238 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2240 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2241 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2242 and ARPHRD_IEEE802154_PHY.
2244 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2245 relative to generic Linux version.
2247 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
2249 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2250 ($(objpfx)ifuncmain1vispie): Likewise.
2252 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2254 * login/Makefile: Build pt_chown as PIE.
2256 2009-06-15 Andreas Schwab <aschwab@redhat.com>
2258 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2260 * elf/sln.c (usage): Likewise.
2261 * malloc/memusage.sh (do_help): Likewise.
2262 * nss/getent.c (more_help): Likewise.
2263 * posix/getconf.c (main): Likewise.
2264 * sunrpc/rpcinfo.c (usage): Likewise.
2265 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2267 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2269 * login/programs/pt_chown.c: Use libcap to drop privileges other than
2271 * login/Makefile: If necessary link pt_chown with -lcap.
2272 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2273 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2275 2009-06-16 Jakub Jelinek <jakub@redhat.com>
2277 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2279 * string/test-memchr.c (do_random_tests): Test very large lengths
2282 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2284 * Makeconfig (+link-pie): Define.
2285 (+prectorS): Define.
2286 (+postctorS): Define.
2287 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2288 * nscd/Makefile ($(objpfx)nscd): Likewise.
2290 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
2293 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2295 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2297 2009-06-16 Ulrich Drepper <drepper@redhat.com>
2299 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2301 * sysdeps/unix/grantpt.c: ...here.
2303 2009-06-15 Ulrich Drepper <drepper@redhat.com>
2305 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2306 chmod if it is necessary.
2309 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2310 when the slave device is in devpts or devfs.
2313 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2316 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2317 of nd_opt_home_agent_info_preference to uint16_t.
2318 Patch by Arnaud Ebalard <arno@natisbad.org>.
2321 * nss/getent.c: Add support for printing gshadow data.
2324 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2325 not just the currently used one and those which follow.
2326 Patch by Joe Landers <jlanders@vmware.com>.
2329 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2330 * libio/Makefile: Run tst-fgetwc with necessary envvar.
2331 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2334 * stdlib/abort.c: Define variable __abort_msg.
2335 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2336 * include/stdlib.h: Declare __abort_msg.
2337 * assert/assert-perr.c: Don't free buffer for message immediately.
2338 Store atomically in __abort_msg and free old buffer if necessary.
2339 * assert/assert.c: Likewise.
2340 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2341 store pointer in __abort_msg, and possibly free old string.
2342 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2344 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2347 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2348 handle leap seconds if they are available.
2349 Patch by Akinori Hattori <hattya@gentoo.org>.
2351 * timezone/tzselect.ksh: Update from tzcode2009i.
2352 * timezone/zdump.c: Likewise.
2353 * timezone/zic.c: Likewise.
2355 * timezone/africa: Update from tzdata2009i.
2356 * timezone/antarctica: Likewise.
2357 * timezone/asia: Likewise.
2358 * timezone/australasia: Likewise.
2359 * timezone/backward: Likewise.
2360 * timezone/etcetera: Likewise.
2361 * timezone/europe: Likewise.
2362 * timezone/factory: Likewise.
2363 * timezone/iso3166.tab: Likewise.
2364 * timezone/leapseconds: Likewise.
2365 * timezone/northamerica: Likewise.
2366 * timezone/pacificnew: Likewise.
2367 * timezone/solar87: Likewise.
2368 * timezone/solar88: Likewise.
2369 * timezone/solar89: Likewise.
2370 * timezone/southamerica: Likewise.
2371 * timezone/systemv: Likewise.
2372 * timezone/yearistype: Likewise.
2373 * timezone/zone.tab: Likewise.
2375 2009-06-15 Jakub Jelinek <jakub@redhat.com>
2377 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2378 STT_GNU_IFUNC symbol or in 8 into type_class.
2380 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2381 instead of Elf64_Addr.
2383 2009-06-14 Ulrich Drepper <drepper@redhat.com>
2385 * po/sv.po: Update from translation team.
2388 * misc/sys/select.h (__NFDBITS): Expression should have type int.
2389 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2390 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
2393 2009-06-12 Ulrich Drepper <drepper@redhat.com>
2395 * Versions.def: Add GLIBC_2.11 for libpthread.
2397 2009-06-11 Ulrich Drepper <drepper@redhat.com>
2399 * resolv/res_send.c (send_dg): Remember we switched to
2400 single-request mode.
2402 2009-06-09 Ulrich Drepper <drepper@redhat.com>
2404 * dlfcn/dlfcn.h: Remove comma at end of enum.
2405 Patch by J.H.M. Dassen <rdassen@redhat.com>.
2407 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2408 parsing mode string.
2410 2009-06-05 Ulrich Drepper <drepper@redhat.com>
2412 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2414 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2416 * sysdeps/x86_64/multiarch/strlen.S: New file.
2417 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2418 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2419 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2422 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2425 2009-06-04 Ulrich Drepper <drepper@redhat.com>
2427 * sysdeps/x86_64/strlen.S: Minor optimizations.
2429 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
2431 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2432 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2433 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2434 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2435 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2436 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2437 ifuncmain3.c, ifuncmod3.c,.
2438 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2439 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2440 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2441 ifuncmain4picstatic.
2442 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2443 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2444 ifuncmain3, ifuncmain4.
2445 (tests): Depend on $(objpfx)ifuncmain1pie.out and
2446 $(objpfx)ifuncmain1vispie.out.
2447 (modules-names): Add ifuncmod1 ifuncmod3.
2448 (generated): Add ifuncmain1pie ifuncmain1pie.out
2449 ifuncmain1vispie ifuncmain1vispie.out.
2450 Define rules to build and run the tests.
2451 * elf/ifuncdep1.c: New file.
2452 * elf/ifuncdep1pic.c: New file.
2453 * elf/ifuncdep2.c: New file.
2454 * elf/ifuncdep2pic.c: New file.
2455 * elf/ifuncmain1.c: New file.
2456 * elf/ifuncmain1pic.c: New file.
2457 * elf/ifuncmain1picstatic.c: New file.
2458 * elf/ifuncmain1pie.c: New file.
2459 * elf/ifuncmain1static.c: New file.
2460 * elf/ifuncmain1staticpic.c: New file.
2461 * elf/ifuncmain1vis.c: New file..
2462 * elf/ifuncmain1vispic.c: New file..
2463 * elf/ifuncmain1vispie.c: New file.
2464 * elf/ifuncmain2.c: New file.
2465 * elf/ifuncmain2pic.c: New file.
2466 * elf/ifuncmain2picstatic.c: New file.
2467 * elf/ifuncmain2static.c: New file.
2468 * elf/ifuncmain3.c: New file.
2469 * elf/ifuncmain4.c: New file.
2470 * elf/ifuncmain4picstatic.c: New file.
2471 * elf/ifuncmain4static.c: New file.
2472 * elf/ifuncmod1.c: New file.
2473 * elf/ifuncmod3.c: New file.
2475 2009-06-03 Ulrich Drepper <drepper@redhat.com>
2477 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2479 2009-06-02 Ulrich Drepper <drepper@redhat.com>
2482 * posix/Makefile (routines): Add execvpe.
2483 * posix/Versions: Export execvpe for GLIBC_2.11.
2484 * posix/execvp.c: Now only a wrapper. Move code to...
2485 * posix/execvpe.c: ...here. New file.
2486 * posix/unistd.h: Declare execvpe.
2488 2009-06-01 Ulrich Drepper <drepper@redhat.com>
2490 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2491 for STT_GNU_IFUNC handling for efficiency.
2492 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2494 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2496 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2498 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2500 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2503 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
2505 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2507 (__rela_iplt_start): New declaration.
2508 (__rela_iplt_end): Likewise.
2509 (__rel_iplt_start): Likewise.
2510 (__rel_iplt_end): Likewise.
2511 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2512 * elf/elf.h (R_386_IRELATIVE): New macro.
2513 (R_X86_64_IRELATIVE): New macro.
2514 (R_386_NUM): Updated.
2515 (R_X86_64_NUM): Likewise.
2516 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2517 (libc_ifunc_hidden_def): New macro.
2518 * sysdeps/generic/dl-irel.h: New file.
2519 * sysdeps/i386/dl-irel.h: New file.
2520 * sysdeps/x86_64/dl-irel.h: New file.
2521 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2522 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2523 Handle R_386_IRELATIVE.
2524 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2525 (elf_machine_lazy_rela): Likewise.
2526 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2528 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2530 2009-05-31 Ulrich Drepper <drepper@redhat.com>
2532 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2533 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
2534 are no differences. If an architecture has bits in CPUID index 1
2535 meaning different things the values for the COMMON_CPUID_INDEX_1
2536 index must not be set.
2537 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2538 (HAS_POPCOUNT): ...this. New macro.
2539 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2540 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
2541 to set the value for Intel and AMD architectures.
2542 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2543 INTEL_CPUID_INDEX_1.
2544 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2547 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
2549 * configure.in: Move AC_CANONICAL_HOST before first use of $host
2552 2009-05-29 Jakub Jelinek <jakub@redhat.com>
2554 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2555 (__expm1l): Set errno to ERANGE on overflow.
2556 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2557 (__tanl): Set errno to EDOM for ±Inf.
2558 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2559 (__cosl): Set errno to EDOM for ±Inf.
2560 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2561 (__sinl): Set errno to EDOM for ±Inf.
2563 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2565 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2566 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2567 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2569 2009-05-29 Ulrich Drepper <drepper@redhat.com>
2571 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
2573 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2575 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
2577 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
2578 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2579 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2580 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2582 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2583 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2584 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2586 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2587 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2589 2009-05-22 Jakub Jelinek <jakub@redhat.com>
2591 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2592 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2593 is, either do nothing at all if __ASSUME_ACCEPT4, or
2594 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2595 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2596 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2598 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2599 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2600 internal_accept4 in socket directory.
2602 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
2604 * sysdeps/ia64/configure.in: New file.
2606 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
2609 * sysdeps/ia64/memchr.S: Use speculative load.
2611 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2612 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2615 * sysdeps/i386/__longjmp.S: Add .text.
2616 * sysdeps/x86_64/__longjmp.S: Likewise.
2618 2009-05-21 Ulrich Drepper <drepper@redhat.com>
2620 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2621 __ASSUME_ACCEPT4 for IA-64.
2623 2009-05-21 Jakub Jelinek <jakub@redhat.com>
2625 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2627 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2628 (SOCKOP_accept4): Define.
2630 2009-05-20 Ulrich Drepper <drepper@redhat.com>
2632 Sun approved the change of the license.
2633 * sunrpc/auth_des.c: Replace license text.
2634 * sunrpc/auth_none.c: Likewise.
2635 * sunrpc/auth_unix.c: Likewise.
2636 * sunrpc/authdes_prot.c: Likewise.
2637 * sunrpc/authuxprot.c: Likewise.
2638 * sunrpc/bindrsvprt.c: Likewise.
2639 * sunrpc/clnt_gen.c: Likewise.
2640 * sunrpc/clnt_perr.c: Likewise.
2641 * sunrpc/clnt_raw.c: Likewise.
2642 * sunrpc/clnt_simp.c: Likewise.
2643 * sunrpc/clnt_tcp.c: Likewise.
2644 * sunrpc/clnt_udp.c: Likewise.
2645 * sunrpc/clnt_unix.c: Likewise.
2646 * sunrpc/des_crypt.c: Likewise.
2647 * sunrpc/des_soft.c: Likewise.
2648 * sunrpc/get_myaddr.c: Likewise.
2649 * sunrpc/getrpcport.c: Likewise.
2650 * sunrpc/key_call.c: Likewise.
2651 * sunrpc/key_prot.c: Likewise.
2652 * sunrpc/openchild.c: Likewise.
2653 * sunrpc/pm_getmaps.c: Likewise.
2654 * sunrpc/pm_getport.c: Likewise.
2655 * sunrpc/pmap_clnt.c: Likewise.
2656 * sunrpc/pmap_prot.c: Likewise.
2657 * sunrpc/pmap_prot2.c: Likewise.
2658 * sunrpc/pmap_rmt.c: Likewise.
2659 * sunrpc/rpc/auth.h: Likewise.
2660 * sunrpc/rpc/auth_unix.h: Likewise.
2661 * sunrpc/rpc/clnt.h: Likewise.
2662 * sunrpc/rpc/des_crypt.h: Likewise.
2663 * sunrpc/rpc/key_prot.h: Likewise.
2664 * sunrpc/rpc/netdb.h: Likewise.
2665 * sunrpc/rpc/pmap_clnt.h: Likewise.
2666 * sunrpc/rpc/pmap_prot.h: Likewise.
2667 * sunrpc/rpc/pmap_rmt.h: Likewise.
2668 * sunrpc/rpc/rpc.h: Likewise.
2669 * sunrpc/rpc/rpc_des.h: Likewise.
2670 * sunrpc/rpc/rpc_msg.h: Likewise.
2671 * sunrpc/rpc/svc.h: Likewise.
2672 * sunrpc/rpc/svc_auth.h: Likewise.
2673 * sunrpc/rpc/types.h: Likewise.
2674 * sunrpc/rpc/xdr.h: Likewise.
2675 * sunrpc/rpc_clntout.c: Likewise.
2676 * sunrpc/rpc_cmsg.c: Likewise.
2677 * sunrpc/rpc_common.c: Likewise.
2678 * sunrpc/rpc_cout.c: Likewise.
2679 * sunrpc/rpc_dtable.c: Likewise.
2680 * sunrpc/rpc_hout.c: Likewise.
2681 * sunrpc/rpc_main.c: Likewise.
2682 * sunrpc/rpc_parse.c: Likewise.
2683 * sunrpc/rpc_parse.h: Likewise.
2684 * sunrpc/rpc_prot.c: Likewise.
2685 * sunrpc/rpc_sample.c: Likewise.
2686 * sunrpc/rpc_scan.c: Likewise.
2687 * sunrpc/rpc_scan.h: Likewise.
2688 * sunrpc/rpc_svcout.c: Likewise.
2689 * sunrpc/rpc_tblout.c: Likewise.
2690 * sunrpc/rpc_util.c: Likewise.
2691 * sunrpc/rpc_util.h: Likewise.
2692 * sunrpc/rpcinfo.c: Likewise.
2693 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2694 * sunrpc/rpcsvc/key_prot.x: Likewise.
2695 * sunrpc/rpcsvc/klm_prot.x: Likewise.
2696 * sunrpc/rpcsvc/mount.x: Likewise.
2697 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2698 * sunrpc/rpcsvc/rex.x: Likewise.
2699 * sunrpc/rpcsvc/rstat.x: Likewise.
2700 * sunrpc/rpcsvc/rusers.x: Likewise.
2701 * sunrpc/rpcsvc/sm_inter.x: Likewise.
2702 * sunrpc/rpcsvc/spray.x: Likewise.
2703 * sunrpc/rpcsvc/yppasswd.x: Likewise.
2704 * sunrpc/rtime.c: Likewise.
2705 * sunrpc/svc.c: Likewise.
2706 * sunrpc/svc_auth.c: Likewise.
2707 * sunrpc/svc_authux.c: Likewise.
2708 * sunrpc/svc_raw.c: Likewise.
2709 * sunrpc/svc_run.c: Likewise.
2710 * sunrpc/svc_simple.c: Likewise.
2711 * sunrpc/svc_tcp.c: Likewise.
2712 * sunrpc/svc_udp.c: Likewise.
2713 * sunrpc/svc_unix.c: Likewise.
2714 * sunrpc/svcauth_des.c: Likewise.
2715 * sunrpc/xcrypt.c: Likewise.
2716 * sunrpc/xdr.c: Likewise.
2717 * sunrpc/xdr_array.c: Likewise.
2718 * sunrpc/xdr_float.c: Likewise.
2719 * sunrpc/xdr_mem.c: Likewise.
2720 * sunrpc/xdr_rec.c: Likewise.
2721 * sunrpc/xdr_ref.c: Likewise.
2722 * sunrpc/xdr_sizeof.c: Likewise.
2723 * sunrpc/xdr_stdio.c: Likewise.
2725 * po/da.po: Update from translation team.
2727 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2729 * sysdeps/sh/____longjmp_chk.S: New file.
2730 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2731 * sysdeps/sh/sh4/__longjmp.S: Likewise.
2733 2009-05-18 Jakub Jelinek <jakub@redhat.com>
2734 Ulrich Drepper <drepper@redhat.com>
2736 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2737 (__nscd_cache_search): Assume each entry in the
2738 hash chain needs one hashentry and half of datahead. Use
2739 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2741 2009-05-16 Ulrich Drepper <drepper@redhat.com>
2743 * posix/sys/wait.h: Fix typos. Pretty printing.
2744 * stdlib/stdlib.h: Likewise. Correct comments.
2747 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2749 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2752 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2754 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2755 Use it if we absolutely cannot reach any more correct list elements
2756 because that many do not fit into the currently mapped database.
2758 2009-05-14 Jakub Jelinek <jakub@redhat.com>
2760 * nscd/nscd_helper.c: Include stddef.h.
2761 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
2762 in a couple of places. Return NULL if trail is not less than
2763 datasize, don't consider dataheads with length smaller than
2764 offsetof (struct datahead, data) + datalen.
2765 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2766 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2767 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2768 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2769 * nscd/nscd_getai.c (__nscd_getai): Likewise.
2770 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2771 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2773 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2775 (fallocate64): ... to this.
2776 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
2778 (fallocate64): ... to this.
2779 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
2780 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
2781 fallocate64@@GLIBC_2.10.
2782 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
2783 fallocate64@@GLIBC_2.11.
2784 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
2785 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
2786 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
2787 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
2789 * nscd/selinux.c (nscd_avc_destroy): Removed.
2790 * nscd/selinux.h (nscd_avc_destroy): Likewise.
2791 * nscd/nscd.c (termination_handler): Don't call
2794 2009-05-12 Jakub Jelinek <jakub@redhat.com>
2796 * include/atomic.h: Formatting.
2797 (catomic_compare_and_exchange_val_acq): Don't define if already
2798 defined by bits/atomic.h.
2800 2009-05-15 Ulrich Drepper <drepper@redhat.com>
2802 * math/libm-test.inc (expm1_test): Add test for range error.
2804 * Versions.def: Add GLIBC_2.11 for libc.
2805 * debug/Makefile (routines): Add longjmp_chk.
2806 Add rules to build and run tst-longjmp_chk.
2807 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
2808 * debug/longjmp_chk.c: New file.
2809 * debug/tst-longjmp_chk.c: New file.
2810 * include/bits/setjmp2.: New file.
2811 * include/stdio.h: Mark __fortify_fail as internal_function.
2812 * setjmp/Makefile (headers): Add bits/setjmp2.h.
2813 * setjmp/bits/setjmp2.h: New file.
2814 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
2816 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
2818 * sysdeps/i386/____longjmp_chk.S: New file.
2819 * sysdeps/x86_64/____longjmp_chk.S: New file.
2820 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
2821 * sysdeps/x86_64/__longjmp.S: Likewise.
2823 * version.h: Bump for 2.11 development.
2825 * elf/check-execstack.c: New file.
2826 * elf/Makefile: Add rules to build and run check-execstack.
2828 2009-05-10 Ulrich Drepper <drepper@redhat.com>
2830 * version.h (VERSION): Bump to 2.10.1.
2832 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
2833 compatibility functions.
2834 * nss/getXXent_r.c: Likewise.
2835 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
2836 * gshadow/getsgnam_r.c: Likewise.
2837 * gshadow/Version: Remove duplicate entries.
2839 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
2840 for recent processor.
2841 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
2844 2009-05-09 Ulrich Drepper <drepper@redhat.com>
2846 * version.h (VERSION): Bump for 2.10 release.
2847 * include/features.h (__GLIBC_MINOR__): Bump to 10.
2849 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
2850 same place we add ASFLAGS-config.
2852 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
2855 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
2856 or FORMERR and the other NOERROR, don't raise an error.
2858 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
2861 * Makeconfig (+asflags): New variable based upon ASFLAG or
2863 (ASFLAGS): Add override to set ASFLAGS to +asflags.
2864 * config.make.in (asflags-cpu): Add variable based upon
2865 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
2867 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2868 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
2869 recognizes power6 instruction set due to passing -mcpu=power6 from
2870 --with-cpu=power6 when compiling .S files.
2871 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2873 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2875 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2878 2009-05-09 Jakub Jelinek <jakub@redhat.com>
2880 * string/stratcliff.c (do_test): Test for zero length
2881 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
2882 at the end of the page.
2884 2009-05-08 Ulrich Drepper <drepper@redhat.com>
2886 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
2888 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
2891 * po/da.po: Update from translation team.
2893 2009-05-05 Jakub Jelinek <jakub@redhat.com>
2895 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
2896 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
2898 2009-05-05 Ulrich Drepper <drepper@redhat.com>
2900 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
2901 and READ_IMPLIES_EXEC.
2903 2009-05-04 Ulrich Drepper <drepper@redhat.com>
2905 * po/da.po: Update from translation team.
2907 2009-04-29 Jakub Jelinek <jakub@redhat.com>
2909 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
2912 2009-04-27 Jakub Jelinek <jakub@redhat.com>
2914 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
2915 to MAP_ANON in PROT_NONE mmap64 call.
2916 (open_archive): Likewise.
2917 (file_data_available_p): Use mmap64 instead of mremap.
2918 (enlarge_archive): Likewise. Update head if ah->addr changed.
2919 Attempt to reserve address space after mmap64 region.
2921 2009-04-26 Ulrich Drepper <drepper@redhat.com>
2923 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
2924 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2925 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2927 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
2928 atanh should set ERANGE.
2931 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
2932 result of lookup to make call to implement STT_GNU_IFUNC.
2933 (_dl_profile_fixup): Likewise.
2934 Patch by H.J. Lu <hjl.tools@gmail.com>.
2936 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
2939 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
2942 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
2943 label if it is not used.
2945 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
2946 of gmon_hist_hdr and gmon_hdr structures and use them.
2947 * elf/sprof.c: Likewise.
2949 * elf/dl-load.c (open_verify): Add temporary variable to avoid
2952 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
2954 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
2957 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
2958 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
2960 (iruserok_af): Use ss_family instead of casts.
2962 * gmon/gmon.c (write_hist): Define real-type variant of
2963 gmon_hist_hdr structure and use it.
2964 (write_gmon): Likewise for gmon_hdr.
2966 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
2967 function if we are not going to define it.
2968 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2970 * inet/inet6_option.c (option_alloc): Add temporary variable to
2973 * libio/strfile.h (struct _IO_streambuf): Use correct type and
2974 name of VTable element.
2975 * libio/iovsprintf.c: Avoid casts to avoid warnings.
2976 * libio/iovsscanf.c: Likewise.
2977 * libio/vasprintf.c: Likewise.
2978 * libio/vsnprintf.c: Likewise.
2979 * stdio-common/isoc99_vsscanf.c: Likewise.
2980 * stdlib/strfmon_l.c: Likewise.
2981 * debug/vasprintf_chk.c: Likewise.
2982 * debug/vsnprintf_chk.c: Likewise.
2983 * debug/vsprintf_chk.c: Likewise.
2985 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
2988 2009-04-26 Jakub Jelinek <jakub@redhat.com>
2990 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
2992 2009-04-25 Ulrich Drepper <drepper@redhat.com>
2994 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
2996 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
2997 * sysdeps/i386/fpu/s_tanf.S: Likewise.
2998 * sysdeps/i386/fpu/s_tanl.S: Likewise.
2999 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3000 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3001 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3002 * math/libm-test.inc: Add tests for errno after tan calls with
3005 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3006 errno value vor pow(+-0,neg).
3007 * math/libm-test.inc (pow_test): Add tests for errno value for
3010 * math/w_fmod.c: Also handle x=±Inf as error.
3011 * math/w_fmodf.c: Likewise.
3012 * math/w_fmodl.c: Likewise.
3013 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3016 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
3017 * sysdeps/i386/fpu/s_cosf.S: Likewise.
3018 * sysdeps/i386/fpu/s_cosl.S: Likewise.
3019 * sysdeps/i386/fpu/s_sin.S: Likewise.
3020 * sysdeps/i386/fpu/s_sinf.S: Likewise.
3021 * sysdeps/i386/fpu/s_sinl.S: Likewise.
3022 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3023 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3024 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3025 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3026 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3027 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3028 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3029 * math/libm-test.inc: Add tests for errno after sin/cos calls with
3032 * stdlib/strtod_l.c (round_and_return): We have to set errno to
3033 ERANGE for underflows.
3034 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3036 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3039 * libio/tst-widetext.input: Remove surrogates.
3041 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3043 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3044 for lgamma should set errno to ERANGE, not EDOM.
3045 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3047 2009-04-24 Ulrich Drepper <drepper@redhat.com>
3050 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3053 * locale/programs/locarchive.c (enlarge_archive): Conserve address
3054 space when temporarily mapping the whole content of the old file.
3057 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3060 2009-04-24 Jakub Jelinek <jakub@redhat.com>
3062 * iconvdata/sjis.c (BODY): Don't advance inptr before
3063 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3064 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3067 2009-04-24 Ulrich Drepper <drepper@redhat.com>
3069 * locale/locarchive.h (struct locarhandle): Rename len field to
3070 mmaped and add new reserved field.
3071 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3072 (create_archive): Reserve address space and then map file into it.
3073 (open_archive): Likewise.
3074 (file_data_available_p): New function.
3075 (compare_from_file): New function.
3076 (close_archive): Adjust to member name changes.
3077 (add_locale): Before comparing locale data, check it is mapped.
3078 Otherwise fall back to reading from the file.
3080 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
3082 * stdio-common/psiginfo.c: Include <errno.h>.
3084 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3087 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3088 to get consistency between 32 and 64 bit architectures.
3091 * sysdeps/unix/make-syscalls.sh: Add rule to create target
3092 directory for dummy syscall rules.
3093 Patch by Chris Steinbroner <hesh@pobox.com>.
3095 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
3098 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3101 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3103 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
3104 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3106 2009-04-23 Jakub Jelinek <jakub@redhat.com>
3108 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
3109 data from vector to temporary buffer and call PWRITEV after it
3110 instead of vice versa.
3111 * sysdeps/posix/preadv.c: Fix up comment.
3112 * misc/preadv.c: Likewise.
3113 * misc/preadv64.c: Likewise.
3114 * misc/pwritev.c: Likewise.
3115 * misc/pwritev64.c: Likewise.
3116 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3118 2009-04-23 Ulrich Drepper <drepper@redhat.com>
3120 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3122 * shadow/Makefile (tests): Add tst-shadow.
3123 * shadow/tst-shadow.c: New file.
3126 * gshadow/Makefile: New file.
3127 * gshadow/Versions: New file.
3128 * gshadow/fgetsgent.c: New file.
3129 * gshadow/fgetsgent_r.c: New file.
3130 * gshadow/getsgent.c: New file.
3131 * gshadow/getsgent_r.c: New file.
3132 * gshadow/getsgnam.c: New file.
3133 * gshadow/getsgnam_r.c: New file.
3134 * gshadow/gshadow.h: New file.
3135 * gshadow/putsgent.c: New file.
3136 * gshadow/sgetsgent.c: New file.
3137 * gshadow/sgetsgent_r.c: New file.
3138 * gshadow/tst-gshadow.c: New file.
3139 * include/gshadow.h: New file.
3140 * Makeconfig (all-subdirs): Add gshadow.
3141 * Makefile (installed-headers): Add gshadow/gshadow.h.
3142 * nss/Makefile (databases): Add sgrp.
3143 * nss/Versions: Add gshadow functions as private exports.
3144 * nss/nsswitch.conf: Add gshadow entry.
3145 * nss/sgrp-lookup.c: New file.
3146 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
3147 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3148 * nss/nss_files/files-sgrp.c: New file.
3149 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3150 * sysdeps/unix/sysv/linux/paths.h: Likewise.
3152 2009-04-22 Ulrich Drepper <drepper@redhat.com>
3154 * stdio-common/printf.h: Add missing const to register_printf_modifier.
3155 * stdio-common/reg-modifier.c: Likewise.
3157 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
3159 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3162 2009-04-20 Ulrich Drepper <drepper@redhat.com>
3165 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3166 headers up to 2.6.30.
3168 * po/ca.po: Update from translation team.
3170 2009-04-19 Ulrich Drepper <drepper@redhat.com>
3173 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3174 an object that uses static TLS if the TLS modid is higher than the
3175 reserve we always allocate. At least for multi-threaded code.
3177 2009-04-18 Ulrich Drepper <drepper@redhat.com>
3179 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3180 Numerically stable check for valid width.
3182 * locale/programs/locarchive.c (open_archive): Map the entire file
3183 and not just the administrative data.
3184 (add_locale): When we find a hash sum match compare the content
3187 * malloc/malloc.c (malloc_info): Output address space information.
3189 2009-04-17 Ulrich Drepper <drepper@redhat.com>
3191 * malloc/malloc.c (malloc_info): Also output system memory information.
3193 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3194 architectures have preadv/pwritev in 2.6.30.
3196 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3197 * sysdeps/posix/readv.c: Likewise.
3198 Reported by Markus Armbruster <armbru@redhat.com>.
3200 * malloc/hooks.c (top_check): Force hook value into register.
3202 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3204 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3205 calls to _dl_relocate_object.
3207 2009-04-16 Ulrich Drepper <drepper@redhat.com>
3210 * malloc/malloc.c (force_reg): Define.
3211 (sYSMALLOc): Load hook variable into variable
3212 before test and force into register.
3213 (sYSTRIm): Likewise.
3214 (public_mALLOc): Force hook value into register.
3215 (public_fREe): Likewise.
3216 (public_rEALLOc): Likewise.
3217 (public_mEMALIGn): Likewise.
3218 (public_vALLOc): Likewise.
3219 (public_pVALLOc): Likewise.
3220 (public_cALLOc): Likewise.
3221 (__posix_memalign): Likewise.
3222 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3223 before test and force into register.
3224 * malloc/hooks.c (top_check): Likewise.
3225 (public_sET_STATe): Pretty printing.
3227 * resolv/res_send.c (send_dg): Don't just ignore the result we got
3228 in case we only receive one reply in single-request mode.
3230 2009-04-16 Jakub Jelinek <jakub@redhat.com>
3232 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3233 are dlopened in statically linked program even for __LM_ID_CALLER.
3235 2009-04-16 Ulrich Drepper <drepper@redhat.com>
3237 * resolv/res_send.c (send_dg): Don't switch into single-request
3238 mode if we already are in it.
3240 2009-04-15 Ulrich Drepper <drepper@redhat.com>
3242 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3243 are always at least 4 bytes in the returned line.
3245 2009-04-15 Jakub Jelinek <jakub@redhat.com>
3247 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3248 __libc_use_alloca (8192), if the stack is too small use 512 bytes
3249 instead of 8K. Stop searching in /proc/stat after hitting first
3250 line not starting with cpu.
3251 (next_line): Truncate too long
3252 lines at buffer size * 3/4 instead of pretending there were line
3253 breaks inside of large lines.
3255 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3257 * sysdeps/x86_64/mp_clz_tab.c: New file.
3259 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
3260 Ulrich Drepper <drepper@redhat.com>
3262 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3263 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3264 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3266 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
3268 * sysdeps/sh/libc-tls.c: New file.
3270 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3272 2009-04-14 Roland McGrath <roland@redhat.com>
3274 * elf/elf.h: Add various missing ARM constants, to match binutils.
3276 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3278 Optimizations from GMP.
3279 * sysdeps/x86_64/add_n.S: New file.
3280 * sysdeps/x86_64/addmul_1.S: New file.
3281 * sysdeps/x86_64/lshift.S: New file.
3282 * sysdeps/x86_64/mul_1.S: New file.
3283 * sysdeps/x86_64/rshift.S: New file.
3284 * sysdeps/x86_64/sub_n.S: New file.
3285 * sysdeps/x86_64/submul_1.S: New file.
3287 2009-04-14 Jakub Jelinek <jakub@redhat.com>
3289 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3290 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3291 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3292 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3294 2009-04-14 Ulrich Drepper <drepper@redhat.com>
3296 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3299 2009-04-13 Ulrich Drepper <drepper@redhat.com>
3301 * sysdeps/x86-64/strrchr.S: New file.
3303 2009-04-10 Ulrich Drepper <drepper@redhat.com>
3305 * stdio-common/printf.h (struct printf_info): Add user element.
3306 New types printf_arginfo_size_function, printf_va_arg_function.
3307 Declare register_printf_specifier, register_printf_modifier,
3308 register_printf_type.
3309 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3310 (union printf_arg): Add pa_user element.
3311 Adjust __printf_arginfo_table type.
3312 Add __printf_va_arg_table, __printf_modifier_table,
3313 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3315 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3316 If registered arginfo call failed try normal specifier.
3317 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3319 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3320 * stdio-common/Versions: Export register_printf_modifier,
3321 register_printf_type, and register_printf_specifier for GLIBC_2.10.
3322 * stdio-common/reg-modifier.c: New file.
3323 * stdio-common/reg-type.c: New file.
3324 * stdio-common/reg-printf.c (__register_printf_specifier): New
3325 function. Mostly the old __register_printf_function function but
3326 uses locking and type of third parameter changed.
3327 (__register_printf_function): Implement using
3328 __register_printf_specifier.
3329 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3330 calls to arginfo functions. Allocate enough memory for user-defined
3331 types. Call new va_arg functions to get user-defined types.
3332 Try installed handlers even for existing format specifiers first.
3334 2009-04-09 Ulrich Drepper <drepper@redhat.com>
3336 * sysdeps/x86_64/rawmemchr.S: New file.
3338 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3339 Simplified code and possible copy problem fixed.
3341 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3342 function if it is not defined. Add some necessary casts.
3343 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3345 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3346 have preadv/pwritev in 2.6.30.
3348 2009-04-08 Ulrich Drepper <drepper@redhat.com>
3350 * malloc/malloc.c (malloc_info): New function.
3351 * malloc/malloc.h: Declare it.
3352 * malloc/Versions: Export malloc_info for GLIBC_2.10.
3354 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3357 * malloc/malloc.c (_int_realloc): Add parameter with old block
3358 size. Remove duplicated test. Don't handle mmap'ed blocks here.
3360 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3362 2009-04-07 Ulrich Drepper <drepper@redhat.com>
3364 * sysdeps/x86_64/strchrnul.S: New file.
3366 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3367 depending libcrypt on -lfreebl3.
3369 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3370 preadv/pwritev in 2.6.30.
3372 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3373 instead of __strcasecmp.
3375 * string/stratcliff.c (do_test): Add memchr tests..
3376 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3377 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3378 first read quad word.
3380 2009-04-06 Ulrich Drepper <drepper@redhat.com>
3382 * string/strverscmp.c (__strverscmp): Fix last cleanups.
3383 * string/tst-svc.input: Add new test case.
3384 * string/tst-svc.expect: Adjust.
3385 * string/Makefile: Don't ignore tst-svc error.
3387 * sysdeps/x86_64/memchr.S: New file.
3389 * resolv/resolv.h (RES_SNGLKUP): Define.
3390 * resolv/res_init.c (res_setoptions): Recognize single-request option.
3391 * resolv/res_send.c (send_dg): If we sent two requests at once and
3392 only get one reply before timeout switch to mode where we send the
3393 second request only after the first answer has been received.
3395 2009-04-05 Ulrich Drepper <drepper@redhat.com>
3397 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3398 * sysdeps/x86_64/strchr.S: Likewise.
3400 2009-04-03 Ulrich Drepper <drepper@redhat.com>
3402 * configure.in: We need to test for the compiler earlier.
3404 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3405 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3407 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3408 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3410 * misc/preadv.c: New file.
3411 * misc/preadv64.c: New file.
3412 * misc/pwritev.c: New file.
3413 * misc/pwritev64.c: New file.
3414 * sysdeps/posx/preadv.c: New file.
3415 * sysdeps/posx/preadv64.c: New file.
3416 * sysdeps/posx/pwritev.c: New file.
3417 * sysdeps/posx/pwritev64.c: New file.
3418 * sysdeps/unix/sysv/linux/preadv.c: New file.
3419 * sysdeps/unix/sysv/linux/preadv64.c: New file.
3420 * sysdeps/unix/sysv/linux/pwritev.c: New file.
3421 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3422 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3423 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3425 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3427 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3429 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3430 __ASSUME_COMPLETE_READV_WRITEV.
3431 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3432 with modern kernels.
3433 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3435 * sysdeps/posix/readv.c: Since read is a cancellation point we have
3436 to free a possible malloced buffer in case of cancellation.
3437 * sysdeps/posix/writev.c: Likewise for write.
3439 2009-04-02 Ulrich Drepper <drepper@redhat.com>
3441 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3443 * configure.in: Recognize --enable-nss-crypt.
3444 * config.make.in: Add nss-crypt entry.
3445 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3446 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
3447 and include path for NSS directory to compiler for md5-crypt,
3448 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
3449 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3450 function implementation, use NSS. Introduce wrappers around the
3451 hash function calls. Little code size optimization.
3452 * crypt/sha256-crypt.c: Likewise.
3453 * crypt/sha512-crypt.c: Likewise.
3454 * scripts/check-local-headers.sh: Ignore nss3 directory.
3456 * configure.in: Rename pic_default to libc_cv_pic_default.
3457 * config.make.in: Likewise.
3459 2009-04-01 Roland McGrath <roland@redhat.com>
3461 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3462 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3463 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3464 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3465 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3466 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3467 (R_SPARC_NUM): Update.
3468 From Dave Miller <davem@davemloft.net>.
3470 2009-04-01 Ulrich Drepper <drepper@redhat.com>
3472 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3474 2009-03-31 Ulrich Drepper <drepper@redhat.com>
3476 * elf/dl-open.c: Keep track of used name spaces and only iterate over
3477 those which are used.
3478 * elf/dl-addr.c: Likewise.
3479 * elf/dl-caller.c: Likewise.
3480 * elf/dl-fini.c: Likewise.
3481 * elf/dl-iteratephdr.c: Likewise.
3482 * elf/dl-libc.c: Likewise.
3483 * elf/dl-load.c: Likewise.
3484 * elf/dl-support.c: Likewise.
3485 * elf/dl-sym.c: Likewise.
3486 * elf/rtld.c: Likewise.
3487 * sysdeps/generic/ldsodefs.h: Likewise.
3489 * elf/dl-load.c: Remove support for systems without MAP_ANON.
3490 * elf/dl-minimal.c: Likewise.
3491 * elf/dl-misc.c: Likewise.
3492 * elf/rtld.c: Likewise.
3493 * sysdeps/generic/ldsodefs.h: Likewise.
3495 2009-03-30 Ulrich Drepper <drepper@redhat.com>
3497 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3498 Avoid reuse of complex expression.
3500 * po/fr.po: Update from translation team.
3502 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3504 * include/dirent.h: Yet more changes to match sort function type
3506 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3507 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3508 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3510 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
3512 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3514 2009-03-16 Ulrich Drepper <drepper@redhat.com>
3516 * nscd/connections.c (restart): Try to preserve the process name
3517 by reading the /proc/self/exe symlink and using the return name.
3518 Patch by Jeff Bastian <jbastian@redhat.com>.
3520 2009-03-15 Ulrich Drepper <drepper@redhat.com>
3523 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3524 if we are not loading a new audit library.
3525 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3526 Only use profiling trampoline for auditing if we are not relocating
3528 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3529 * elf/rtld.c: Likewise.
3530 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3532 * elf/rtld.c (dl_main): Extend help message for --audit option.
3535 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3536 alphasort64, versionsort, and versionsort64 to POSIX 2008.
3537 * dirent/alphasort.c: Adjust implementation to type change.
3538 * dirent/alphasort64.c: Likewise.
3539 * dirent/scandir.c: Likewise.
3540 * dirent/versionsort.c: Likewise.
3541 * dirent/versionsort64.c: Likewise.
3542 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3544 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3548 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3549 correctly. Set segleft member in output as required.
3550 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3551 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3554 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3555 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3556 * inet/Makefile (tests): Add tst-inet6_rth.
3557 * inet/tst-inet6_rth.c: New file.
3560 * string/strlen.c (strlen): Fix omission in the expression to test
3563 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3565 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3567 * elf/dl-runtime.c (reloc_offset): Define.
3568 (reloc_index): Define.
3569 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3570 (_dl_fixup_profile): Likewise. Use reloc_index instead of
3571 computing index from reloc_offset.
3572 (_dl_call_pltexit): Likewise.
3573 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3574 the relocation index to _dl_fixup.
3575 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3577 * sysdeps/x86_64/dl-runtime.c: New file.
3580 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3581 alignment of La_x86_64_regs. Store xmm parameters.
3582 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3585 * string/strverscmp.c (__strverscmp): Fix case of different digits
3586 in fractional part of string.
3587 Patch by Jingyu Liu <jyliu@fortinet.com>.
3588 * string/Makefile (tests): Add tst-svc2.
3589 * string/tst-svc2.c: New file.
3591 * string/strverscmp.c (__strverscmp): Optimize size of tables.
3593 * locale/iso-639.def: Add Min Nan.
3595 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3598 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3600 2009-03-14 Ulrich Drepper <drepper@redhat.com>
3602 * elf/dl-sysdep.c (auxvars): Compress data structure.
3604 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3605 STT_GNU_IFUNC handling.
3606 (elf_machine_rela): Likewise.
3608 2009-03-13 Ulrich Drepper <drepper@redhat.com>
3610 * config.h.in (USE_MULTIARCH): Define.
3611 * configure.in: Handle --enable-multi-arch.
3612 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3613 (_dl_fixup_profile): Likewise.
3614 * elf/do-lookup.c (dl_lookup_x): Likewise.
3615 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3616 * elf/elf.h (STT_GNU_IFUNC): Define.
3617 * include/libc-symbols.h (libc_ifunc): Define.
3618 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3619 framework in init-arch.h to get CPUID values.
3620 * sysdeps/x86_64/multiarch/Makefile: New file.
3621 * sysdeps/x86_64/multiarch/init-arch.c: New file.
3622 * sysdeps/x86_64/multiarch/init-arch.h: New file.
3623 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3625 * config.make.in (experimental-malloc): Define.
3626 * configure.in: Handle --enable-experimental-malloc.
3627 * malloc/Makefile: Handle experimental-malloc flag.
3628 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3629 * malloc/arena.c: Likewise.
3630 * malloc/hooks.c: Likewise.
3631 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3633 2009-03-11 Ulrich Drepper <drepper@redhat.com>
3635 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3636 prediction. A few size optimizations.
3638 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3640 * time/tzset.c: Optimize a bit for size.
3642 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3644 * include/stdio.h (fmemopen): Add libc_hidden_proto.
3645 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3647 * elf/sprof.c: Avoid warning about multi-line comment.
3649 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3651 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3653 * time/tst-posixtz.c: Add tests for quoted timezone names.
3655 2009-03-10 Jakub Jelinek <jakub@redhat.com>
3657 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3658 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3659 200809L instead of 200112L.
3660 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3661 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3663 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3664 instead of __quick_exit_funcs to __run_exit_handlers.
3665 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3666 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3667 (__cxa_at_quick_exit): Remove attribute_hidden.
3668 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3669 to __run_exit_handlers.
3670 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3673 2009-03-10 Ulrich Drepper <drepper@redhat.com>
3675 * po/id.po: Update from translation team.
3677 2009-02-18 Jakub Jelinek <jakub@redhat.com>
3679 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3680 .machine push; .machine "power6" and .machine pop around mtfsf
3681 insns outside of _ARCH_PWR6 define.
3682 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3683 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3685 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3687 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3688 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3689 relax_fenv_state): Likewise.
3691 2009-03-08 Ulrich Drepper <drepper@redhat.com>
3693 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3695 (static-only-routines): Add at_quick_exit.
3696 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3698 * stdlib/quick_exit.c: New file.
3699 * stdlib/at_quick_exit.c: New file.
3700 * stdlib/cxa_at_quick_exit.c: New file.
3701 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
3703 (__internal_atexit): New function.
3704 (__new_exitfn): Now takes parameter to point to the list to use.
3705 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3706 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
3707 (exit): ...here. Just call __run_exit_handlers appropriately.
3708 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3709 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
3710 * stdlib/on_exit.c: Adjust call to __new_exitfn.
3711 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3713 * po/id.po: Update from translation team.
3715 2009-03-07 Ulrich Drepper <drepper@redhat.com>
3717 * po/ru.po: Update from translation team.
3719 2009-03-04 Ulrich Drepper <drepper@redhat.com>
3721 * po/nl.po: Update from translation team.
3723 2009-03-03 Ulrich Drepper <drepper@redhat.com>
3725 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3726 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3727 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3728 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3729 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3730 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3731 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3733 * po/pl.po: Update from translation team.
3735 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3738 * sysdeps/unix/sysv/linux/fallocate.c: New file.
3739 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3740 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3741 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3742 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3743 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3744 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3746 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3747 Add fallocate and fallocate64.
3749 * io/fcntl.h: Pretty printing.
3751 2009-03-02 Richard Guenther <rguenther@suse.de>
3753 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3754 attribute also for non-C99 inline semantics variant.
3756 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3758 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3759 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3760 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3761 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3762 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3764 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3767 2009-03-02 Ulrich Drepper <drepper@redhat.com>
3769 * po/cs.po: Update from translation team.
3771 2009-02-28 Ulrich Drepper <drepper@redhat.com>
3773 * po/bg.po: Update from translation team.
3774 * po/sv.po: Likewise.
3775 * po/fi.po: Likewise.
3776 * po/vi.po: Likewise.
3778 2009-02-27 Roland McGrath <roland@redhat.com>
3780 * Makeconfig (%.v.i): Depend on Makeconfig.
3781 Exclude % lines from initial #-comment removal.
3783 2009-02-27 Ulrich Drepper <drepper@redhat.com>
3785 * po/ko.po: Update from translation team.
3787 2009-02-26 Roland McGrath <roland@redhat.com>
3789 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
3790 avoids unused warning.
3792 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
3793 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3795 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
3796 sys/ucontext.h and asm/elf.h. Include sys/user.h.
3797 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
3798 and asm/user.h. Include asm/ptrace.h.
3799 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
3800 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3801 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
3803 (start_thread): Don't undefine.
3804 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
3807 2009-02-26 Ulrich Drepper <drepper@redhat.com>
3809 * wctype/wctype.h: The *_l functions are in POSIX 2008.
3810 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
3811 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
3812 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
3813 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
3815 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
3816 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3817 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
3818 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
3819 _SC_THREAD_ROBUST_PRIO_PROTECT.
3820 * posix/unistd.h: fexecve is in POSIX 2008.
3821 * time/time.h: strftime_l is in POSIX 2008.
3822 * io/sys/stat.h: futimens is in POSIX 2008.
3823 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
3824 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
3825 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
3826 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
3827 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
3828 open_memstream, and vdprintf are in POSIX 2008.
3830 2009-02-25 Ulrich Drepper <drepper@redhat.com>
3832 * include/features.h: Define macros for XPG7/POSIX 2008.
3833 * ctype/ctype.h: The *_l functions are in POSIX 2008.
3834 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
3836 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
3837 * locale/xlocale.h: Define locale_t type.
3838 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
3839 in POSIX 2008. Don't define locale_t here.
3840 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
3841 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
3842 UTIME_OMIT only with __USE_ATFILE.
3843 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
3844 * stdio-common/psiginfo.c: New file.
3845 * stdio-common/psiginfo-data.h: New file.
3846 * stdio-common/psiginfo-define.h: New file.
3847 * stdio-common/Makefile (routines): Add psiginfo.
3848 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
3849 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3850 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
3851 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3852 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3853 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3854 * io/sys/stat.h: Move mknodat definition into same conditional as
3856 * time/sys/time.h: futimesat is not among the functions accepted
3857 into the POSIX standard.
3859 * include/features.h: If no feature selection given and we select
3860 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
3861 * posix/Versions: Export __posix_getopt.
3862 * posix/getopt.c (_getopt_initialize): Take additional parameter.
3863 Use it to alternatively initialize __posixly_correct.
3864 (_getopt_internal_r): Take addition parameter. Pass on to
3866 (_getopt_internal): Take addition parameter. Pass on to
3868 (getopt): Pass additional zero to _getopt_internal.
3869 (__posix_getopt): New function.
3870 * posix/getopt.h: Add redirection for getopt.
3871 * posix/getopt1.c (getopt_long): Pass additional zero to
3873 (getopt_long_only): Likewise.
3874 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
3875 (_getopt_long_only_r): Likewise.
3876 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
3879 2009-02-24 Ulrich Drepper <drepper@redhat.com>
3881 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
3882 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3883 * sysdeps/posix/sysconf.c (__sysconf): Handle
3884 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
3885 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
3887 2009-02-24 Roland McGrath <roland@redhat.com>
3890 * README.template: Reworded not to use substituted version number.
3892 * README: ... here (no longer generated).
3893 * Makefile (README): Target removed.
3895 2009-02-24 Ulrich Drepper <drepper@redhat.com>
3897 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
3898 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
3901 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
3903 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
3905 2009-02-22 Ulrich Drepper <drepper@redhat.com>
3907 * po/bg.po: Update from translation team.
3909 2009-02-16 Jakub Jelinek <jakub@redhat.com>
3911 * stdlib/monetary.h: Uglify function parameter names.
3912 * sunrpc/rpc/pmap_clnt.h: Likewise.
3913 * sunrpc/rpc/svc.h: Likewise.
3914 * sunrpc/rpc/xdr.h: Likewise.
3915 * sunrpc/rpc/clnt.h: Likewise.
3916 * resolv/netdb.h: Likewise.
3917 * resolv/arpa/nameser.h: Likewise.
3918 * resolv/resolv.h: Likewise.
3919 * argp/argp.h: Likewise.
3920 * locale/langinfo.h: Likewise.
3921 * io/sys/stat.h: Likewise.
3922 * posix/spawn.h: Likewise.
3923 * nis/rpcsvc/nislib.h: Likewise.
3924 * malloc/obstack.h: Likewise.
3925 * sysdeps/ia64/bits/link.h: Likewise.
3926 * sysdeps/i386/bits/link.h: Likewise.
3927 * sysdeps/s390/bits/link.h: Likewise.
3928 * sysdeps/powerpc/bits/link.h: Likewise.
3929 * sysdeps/x86_64/bits/link.h: Likewise.
3930 * sysdeps/sparc/bits/link.h: Likewise.
3931 * sysdeps/sh/bits/link.h: Likewise.
3932 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
3933 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
3934 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
3935 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3937 2008-12-01 Fredrik Unger <fred@tree.se>
3939 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
3940 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
3941 _FP_UNPACK_RAW_2, fix up first argument.
3943 2009-02-15 Ulrich Drepper <drepper@redhat.com>
3945 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
3946 (GET_NPROCS_PARSER): Change parameters and use next_line.
3947 (__get_nprocs): Rewrite to not use stdio routines.
3948 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
3949 Change parameters and use next_line.
3951 2009-02-13 Ulrich Drepper <drepper@redhat.com>
3954 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
3955 Change mempool_alloc prototype.
3956 * nscd/mem.c (gc): Don't handle mem_in_flight.
3957 (mempool_alloc): Third parameter now only indicates whether this is the
3958 first call (to allocate data) or not. If it is, get db rdlock.
3959 Release it on error. Don't handle mem_in_flight.
3960 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
3961 Adjust third parameter of mempool_alloc calls.
3962 Nothing to do here in case mempool_alloc fails.
3963 Avoid local variable shadowing parameter. No need to get db rdlock
3964 before calling cache_add.
3965 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
3966 no mem_in_flight array anymore.
3967 * nscd/connections.c: Remove definition and handling of mem_in_flight.
3968 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
3969 mempool_alloc calls. Mark he parameter as const. Nothing to do here
3970 in case mempool_alloc fails. No need to get db rdlock before calling
3972 * nscd/hstcache.c (cache_addhst): Likewise.
3973 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3974 * nscd/servicescache.c (cache_addserv): Likewise.
3975 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
3977 2009-02-11 Ulrich Drepper <drepper@redhat.com>
3979 * po/lt.po: Update from translation team.
3981 2009-02-10 Ulrich Drepper <drepper@redhat.com>
3983 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
3984 defined, allow additional data to be added using the optional
3985 MORE_ELF_HEADER_DATA macro.
3986 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
3987 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
3989 2009-02-08 Ulrich Drepper <drepper@redhat.com>
3991 * include/atomic.h: Define catomic_and if not already defined.
3992 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
3993 * sysdeps/i386/i486/bits/atomic.h: Likewise.
3995 2009-02-07 Ulrich Drepper <drepper@redhat.com>
3997 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
3999 (_int_realloc): Likewise. Third argument is now padded size
4000 All _int_* functions are now static.
4002 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4003 * malloc/arena.c: Likewise.
4004 * include/malloc.h: Remove now unnecessary declarations of the _int_*
4007 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4010 * malloc/malloc.c: Add branch prediction for use of the hooks.
4012 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4014 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4017 * bits/confname.h: Add SUSv7 macros for getconf environments.
4018 * bits/environments.h: Likewise.
4019 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4020 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4021 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4022 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4023 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4024 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4025 * posix/getconf.c: Likewise.
4026 * posix/sysconf.c: Likewise.
4027 * sysdeps/posix/sysconf.c: Likewise.
4028 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4031 2009-01-16 Petr Baudis <pasky@suse.cz>
4034 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4035 even if we currently have zero nscount.
4037 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4040 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4041 the input line is too long.
4043 * po/Makefile (libc.pot): Add f_print as function taking c-format
4046 * debug/xtrace.sh: Unify translatable messages.
4047 * elf/ldd.bash.in: Likewise.
4048 * elf/sprof.c: Likewise.
4049 * locale/programs/locale.c: Likewise.
4050 * malloc/memusage.sh: Likewise.
4051 * nss/getent.c: Likewise.
4053 2009-02-06 Joseph Myers <joseph@codesourcery.com>
4055 * debug/pcprofiledump.c (print_version,
4056 argp_program_version_hook): New function.
4057 * elf/ldconfig.c (more_help): New function.
4059 * elf/sln.c (usage): New function.
4060 (main): Support --help and --version.
4061 * malloc/memusagestat.c (print_version): New function.
4062 (argp_program_version_hook): New variable.
4063 * nscd/nscd.c (more_help): New function.
4065 * posix/getconf.c (main): Send --version output to stdout.
4067 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4068 arguments. All callers changed.
4069 (print_version): New function.
4070 (parseargs): Support --help and --version.
4071 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
4073 (print_version): New function.
4074 (main): Use getopt_long. Support --help and --version.
4075 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4078 2009-02-06 Ulrich Drepper <drepper@redhat.com>
4080 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4081 (update_data): Fix handling of wrapping back
4082 to the beginning of the buffer.
4085 * stdio-common/psignal.c (psignal): Fix test for empty string.
4087 2009-02-05 Ulrich Drepper <drepper@redhat.com>
4089 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4090 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
4091 move _null_auth to .rodata.
4093 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4096 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4098 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4099 today than when the original code was written. Use larger
4100 buffers. This also makes it unnecessary to have stat information,
4101 if this causes extra efforts.
4102 (__opendir): In case O_DIRECTORY works, don't call fstat just for
4105 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
4107 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4109 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4110 * sysdeps/sh/sh4/__longjmp.S: Likewise.
4111 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4112 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4113 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4114 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4116 2009-02-04 Ulrich Drepper <drepper@redhat.com>
4118 * po/ru.po: Update from translation team.
4120 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
4122 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4123 Add _tid slot to maintain consistency with kernel.
4125 2009-02-04 Ulrich Drepper <drepper@redhat.com>
4127 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4128 incomplete characters at end of input buffer.
4129 * libio/Makefile (tests): Add tst-fgetwc.
4130 * libio/tst-fgetwc.c: New file.
4131 * libio/tst-fgetwc.input: New file.
4133 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
4135 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4137 2009-02-02 Ulrich Drepper <drepper@redhat.com>
4140 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4141 *OUTBUFSTART unless the whole output fit into the buffer.
4142 * iconv/Makefile (tests): Add tst-iconv4.
4143 * iconv/tst-iconv4.c: New file.
4145 2009-02-01 Ulrich Drepper <drepper@redhat.com>
4147 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4148 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4150 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
4152 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4153 newer linker scripts.
4155 2009-01-30 Ulrich Drepper <drepper@redhat.com>
4158 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4159 inotify_rm_watch should have type int.
4161 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
4163 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4164 Make aligned_restore_vmx a local symbol.
4165 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4168 2009-01-30 Andreas Jaeger <aj@suse.de>
4170 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4171 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4172 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4173 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4174 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4175 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4176 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4178 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
4181 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4182 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4184 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
4187 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4188 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4189 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4190 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4192 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
4194 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4195 memcpy instead of memcmp.
4196 (_dl_setup_pointer_guard): Likewise.
4198 2009-01-30 Ulrich Drepper <drepper@redhat.com>
4200 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4201 manipulated brk, use malloc_printerr.
4202 * misc/sbrk.c (__sbrk): Better error handling for nonsense
4205 2009-01-30 Jakub Jelinek <jakub@redhat.com>
4207 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4208 rindex): For C++ add inlines so that they can be recognized as
4210 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4212 2009-01-29 Ulrich Drepper <drepper@redhat.com>
4213 Jakub Jelinek <jakub@redhat.com>
4215 * string/string.h: Define correct C++ prototypes for gcc 4.4.
4216 * wcsmbs/wchar.h: Likewise.
4218 2009-01-29 Ulrich Drepper <drepper@redhat.com>
4220 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4221 (stackinfo_sub_sp): Define.
4223 2009-01-28 Ulrich Drepper <drepper@redhat.com>
4226 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4227 * include/alloca.h (alloca_account): Define.
4228 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4229 (stackinfo_sub_sp): Define.
4231 * nscd/connections.c (nscd_init): If database file access fails
4232 check whether this is due to permission problems and bail in that
4236 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4237 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4239 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4241 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4242 Add "t" to clobber list.
4243 (INTERNAL_SYSCALL_NCS): Likewise.
4245 2009-01-28 Ulrich Drepper <drepper@redhat.com>
4247 * nss/getent.c (print_networks): Don't print comma between aliases.
4249 2009-01-23 Ulrich Drepper <drepper@redhat.com>
4251 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4253 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4255 * misc/Makefile (tests): Add bug-hsearch1.
4256 * misc/bug-hsearch1.c: New file.
4258 2009-01-22 Roland McGrath <roland@redhat.com>
4260 * Makeconfig (%.v.i): Strip trailing # comments,
4261 not only whole-line comments.
4263 2009-01-10 Ulrich Drepper <drepper@redhat.com>
4265 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4266 one parameter. If non-NULL use it to initialize return value.
4267 (_dl_setup_pointer_guard): New function.
4268 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4269 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4270 * elf/rtld.c (security_init): Pass _dl_random to
4271 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
4273 * elf/dl-sysdep.c (_dl_random): New variable.
4274 (_dl_sysdep_start): Handle AT_RANDOM.
4275 (_dl_show_auxv): Likewise.
4276 * elf/dl-support.c (_dl_random): New variable.
4277 (_dl_aux_init): Handle AT_RANDOM.
4278 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4279 to _dl_setup_stack_chk_guard.
4281 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4283 2009-01-10 Roland McGrath <roland@redhat.com>
4285 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4287 2009-01-08 Ulrich Drepper <drepper@redhat.com>
4289 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4292 * nss/nss_files/files-parse.c (strtou32): New function.
4293 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4294 across 32-bit and 64-bit platforms.
4295 (INT_FIELD_MAYBE_NULL): Likewise.
4297 2009-01-08 Jakub Jelinek <jakub@redhat.com>
4300 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4301 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4302 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4305 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
4308 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4309 being NULL also if there are no backreferences.
4310 * posix/rxspencer/tests: Add testcases.
4312 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
4315 * posix/bug-regex17.c: Add testcases.
4316 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4319 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
4321 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4322 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4323 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4324 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4326 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4327 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4328 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4329 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4330 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4331 * sysdeps/unix/sysv/linux/s390/Versions: New file.
4333 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
4335 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4336 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4337 re_string_skip_chars, re_string_reconstruct): Likewise.
4338 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4340 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
4342 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4343 adjust the buffer alignment.
4345 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4347 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4348 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4351 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4352 flavor to description only when flavor is not NULL.
4354 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4355 mutex after SIGIO/SIGURG lookup loop.
4357 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4359 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4361 2009-01-03 Ulrich Drepper <drepper@redhat.com>
4363 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4366 2009-01-02 Ulrich Drepper <drepper@redhat.com>
4368 * sysdeps/unix/sysv/linux/kernel-features.h
4369 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4371 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4372 if no output is written.
4374 * version.h: Bump to 2.10 development.
4376 * posix/getconf.c: Update copyright year.
4377 * nss/getent.c: Likewise.
4378 * iconv/iconvconfig.c: Likewise.
4379 * iconv/iconv_prog.c: Likewise.
4380 * elf/ldconfig.c: Likewise.
4381 * catgets/gencat.c: Likewise.
4382 * csu/version.c: Likewise.
4383 * elf/ldd.bash.in: Likewise.
4384 * elf/sprof.c (print_version): Likewise.
4385 * locale/programs/locale.c: Likewise.
4386 * locale/programs/localedef.c: Likewise.
4387 * nscd/nscd.c (print_version): Likewise.
4388 * debug/xtrace.sh: Likewise.
4389 * malloc/memusage.sh: Likewise.
4390 * malloc/mtrace.pl: Likewise.
4391 * debug/catchsegv.sh: Likewise.
4393 2008-12-29 Mike Frysinger <vapier@gentoo.org>
4395 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4398 2008-12-29 Ulrich Drepper <drepper@redhat.com>
4400 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4401 gethostbyname4_r function call succeeded, just leave the loop.
4404 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4406 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4407 * wctype/Makefile (tests): Add bug-wctypeh.
4408 * wctype/bug-wctypeh.c: New file.
4410 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4411 LOCALDOMAIN is defined.
4412 * nscd/nscd_getai.c (__nscd_getai): Likewise.
4414 * sysdeps/x86_64/bits/select.h: New file.
4416 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4418 2008-12-21 Bruno Haible <bruno@clisp.org>
4421 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4422 if no output is written.
4424 2008-12-13 Klaus Dittrich <kladit@arcor.de>
4426 * login/utmp_file.c (pututline_file): Replace call to dup2 with
4427 libc internal symbol __dup2 to avoid access through the PLT.
4429 2008-12-08 Ulrich Drepper <drepper@redhat.com>
4432 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4433 available only for __USE_GNU.
4435 * inet/Makefile (tests): Add tst-getni2.
4436 * inet/tst-getni2.c: New file.
4439 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4440 NULL when NI_NAMEREQD is set.
4441 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4442 * inet/Makefile (tests): Add tst-getni1.
4443 * inet/tst-getni1.c: New file.
4445 2008-12-03 Petr Baudis <pasky@suse.cz>
4448 * nscd/connections.c (invalidate_cache): Use prune_run_lock
4449 instead of prune_lock.
4450 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4451 * nscd/nscd.h (database_dyn): Add prune_run_cache.
4453 2008-12-07 Ulrich Drepper <drepper@redhat.com>
4455 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4458 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4461 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4462 after reading name server list.
4465 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4466 handling for host name aliases.
4468 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
4470 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4471 instead of doing things manually.
4473 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
4475 * posix/regex_internal.h (build_wcs_upper_buffer):
4476 Return type is reg_error_t.
4478 2008-12-05 Ulrich Drepper <drepper@redhat.com>
4480 * posix/globtest.sh: Use mktemp to create temporary file and
4483 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4485 (__CPU_CLR_S): Likewise.
4486 (__CPU_ISSET_S): Likewise.
4488 2008-12-05 Joseph Myers <joseph@codesourcery.com>
4489 Ulrich Drepper <drepper@redhat.com>
4491 * scripts/firstversion.awk: Use custom comparison function to compare
4493 * scripts/versions.awk: Use sort invocation which can handle
4494 multi-digit sub-version numbers.
4496 2008-12-04 Ulrich Drepper <drepper@redhat.com>
4498 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4499 * locale/iso-639.def: Add Chhattisgarhi entry.
4501 2008-12-02 Ulrich Drepper <drepper@redhat.com>
4503 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4505 (_nss_dns_gethostbyname4_r): Likewise.
4506 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4507 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4508 gethostbyname4_r, we don't have a separate IPv6 status, so copy
4509 the no_data variable.
4511 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4512 information at the correct index.
4514 * socket/sys/socket.h: Declare accept4.
4515 * socket/accept4.c: New file.
4516 * sysdeps/unix/sysv/linux/accept4.c: New file.
4517 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4518 * socket/Makefile (routines): Add accept4.
4519 * socket/Versions: Export accept4 with version GLIBC_2.10.
4520 * socket/paccept.c: Removed.
4521 * sysdeps/unix/sysv/linux/paccept.c: Removed.
4522 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4523 * Versions.def: Define GLIBC_2.10 for libc.
4524 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4526 * nscd/connections.c: Use accept4.
4528 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4530 2008-12-01 Ulrich Drepper <drepper@redhat.com>
4532 * resolv/res_send.c (send_dg): Create sockets with non-blocking
4535 * stdlib/setenv.c (unsetenv): Don't search environment if it does
4537 * stdlib/Makefile (tests): Add tst-unsetenv1.
4538 * stdlib/tst-unsetenv1.c: New file.
4540 2008-11-29 Ulrich Drepper <drepper@redhat.com>
4542 * login/utmp_file.c (file_writable): New variable.
4543 (setutent_file): Don't try to open file for writing.
4544 (pututline_file): Before writing, make descriptor writable if
4547 2008-11-26 Ulrich Drepper <drepper@redhat.com>
4549 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4550 to IPv4 or IPv6 if an interface has been found.
4552 2008-11-26 Roland McGrath <roland@redhat.com>
4554 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4555 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4557 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4558 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4559 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4561 * elf/elf.h (NT_386_IOPERM): New macro.
4562 (NT_PPC_VSX): New macro.
4564 2008-11-25 Roland McGrath <roland@redhat.com>
4566 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4567 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4568 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4569 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4570 Subdirectories moved to ports repository.
4571 * configure.in (base_machine): Remove alpha case.
4573 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
4575 * sysdeps/mach/strerror_l.c: New file.
4577 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
4580 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4581 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4583 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4584 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4585 (relax_fenv_state): Same as above.
4586 (FPSCR_29): Reserve bit in ISA 2.05.
4587 (FPSCR_NI): Provide define for compat.
4588 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4590 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4592 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
4593 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4594 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4595 access to hwcap to account for hwcap size increase to uint64_t.
4596 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4598 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4599 (*setcontext): Likewise.
4600 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4602 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4604 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4605 (*setcontext): dynamically select mtfsf insn based on
4606 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4607 increase to uint64_t.
4608 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4609 (*swapcontext): dynamically select mtfsf insn based on
4610 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4611 increase to uint64_t.
4612 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4616 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4617 (*setcontext): dynamically select mtfsf insn based on
4618 PPC_FEATURE_HAS_DFP.
4619 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4620 (*swapcontext): dynamically select mtfsf insn based on
4621 PPC_FEATURE_HAS_DFP.
4623 2008-11-13 Ulrich Drepper <drepper@redhat.com>
4625 * version.h: Bump for 2.9 release.
4626 * include/features.h (__GLIBC_MINOR__): Bump to 9.
4629 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4630 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4633 2008-11-11 Ulrich Drepper <drepper@redhat.com>
4636 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4637 unknown request types for now.
4639 2008-11-11 Roland McGrath <roland@redhat.com>
4641 * sysdeps/x86_64/configure: New file.
4643 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4644 * configure: Regenerated.
4646 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
4648 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4649 correct instruction to remove the stack frame.
4651 2008-11-03 Michael Matz <matz@suse.de>
4653 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4654 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4656 2008-11-07 Jakub Jelinek <jakub@redhat.com>
4658 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4661 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4662 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4663 of the thread variable instead of void *.
4664 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4665 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4666 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4667 __libc_tsd_define arguments.
4668 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4669 __libc_tsd_address arguments. Remove union hack.
4670 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4671 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4672 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4673 Adjust __libc_tsd_{set,get} arguments.
4674 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4675 __libc_tsd_define arguments.
4676 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4678 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4679 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4680 (LOCALE): Adjust __libc_tsd_define arguments.
4681 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4683 (LOCALE): Adjust __libc_tsd_define arguments.
4684 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4686 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4689 2008-11-02 Ulrich Drepper <drepper@redhat.com>
4691 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4692 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4694 2008-11-01 Ulrich Drepper <drepper@redhat.com>
4697 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4699 2008-10-24 Joseph Myers <joseph@codesourcery.com>
4700 Ulrich Drepper <drepper@redhat.com>
4702 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4703 definition for GCC 3.1 and later.
4705 2008-10-31 Jakub Jelinek <jakub@redhat.com>
4707 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4708 refetch dtv, as it might have changed.
4709 * elf/Makefile: Add rules to build and run tst-tls18.
4710 * elf/tst-tls18.c: New test.
4711 * elf/tst-tlsmod18a.c: New file.
4713 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
4716 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4718 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4721 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4724 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4725 Fix length of copy operation.
4727 2008-10-02 Pierre Habouzit <madcoder@debian.org>
4729 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4730 and fix its calling convention.
4732 2008-10-07 Andreas Schwab <schwab@suse.de>
4735 * resolv/res_send.c (send_vc): Fix last change.
4736 (send_dg): Align here as well.
4738 2008-10-31 Ulrich Drepper <drepper@redhat.com>
4740 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4741 return value in case rlimit is RLIM_INFINITY.
4744 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4746 * resource/Makefile (tests): Add bug-ulimit1.
4747 * resource/bug-ulimit1.c: New file.
4750 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4751 without dot. Properly terminate the string with a null byte.
4752 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4755 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4757 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4761 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4763 2008-10-30 Ulrich Drepper <drepper@redhat.com>
4765 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4766 abort if there is no initgroups_dyn function.
4768 * resolv/res_send.c (send_dg): On timeout, only return nonzero
4769 result if any of the queries really provided an answer.
4771 2008-10-28 Ulrich Drepper <drepper@redhat.com>
4773 * po/lt.po: Update from translation team.
4775 2008-10-26 Ulrich Drepper <drepper@redhat.com>
4777 * po/id.po: Update from translation team.
4779 2008-10-24 Ulrich Drepper <drepper@redhat.com>
4781 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
4782 Fix tests for existence of second reply.
4784 2008-10-23 Ulrich Drepper <drepper@redhat.com>
4786 * po/id.po: New file.
4787 Contributed by the Indonesian translation team.
4789 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
4791 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4794 2008-10-17 Jakub Jelinek <jakub@redhat.com>
4796 * elf/Makefile: Add rules to build and run tst-tls17.
4797 * elf/tst-tls17.c: New test.
4798 * elf/tst-tlsmod17a.c: New file.
4799 * elf/tst-tlsmod17b.c: Likewise.
4801 2008-10-17 Ulrich Drepper <drepper@redhat.com>
4803 * stdlib/divmod_1.c: Use correct type for dummy variable.
4804 * stdlib/mod_1.c: Likewise.
4806 2008-10-16 Ulrich Drepper <drepper@redhat.com>
4808 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
4810 2008-10-16 Jakub Jelinek <jakub@redhat.com>
4812 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
4813 __nonnull order for C++.
4814 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
4815 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
4817 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
4819 * stdlib/longlong.h: Update from GCC.
4821 2008-10-09 Jakub Jelinek <jakub@redhat.com>
4822 David S. Miller <davem@davemloft.net>
4824 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
4825 make sure any registers used with 64-bit 'branch-on-register'
4826 instructions have their top 32-bits clear.
4827 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
4828 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
4830 2008-09-18 Andreas Schwab <schwab@suse.de>
4833 * resolv/res_send.c (send_vc): Fix use of unaligned address.
4834 Properly handle partial reads.
4836 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
4838 * elf/elf.h (STO_MIPS_PLT): New.
4840 (R_MIPS_JUMP_SLOT): New.
4841 (R_MIPS_NUM): Redefine to 128.
4842 (DT_MIPS_PLTGOT): New.
4843 (DT_MIPS_RWPLT): New.
4844 (DT_MIPS_NUM): Redefine to 0x35.
4846 2008-10-01 Ulrich Drepper <drepper@redhat.com>
4848 * timezone/africa: Update from tzdata2008f.
4849 * timezone/asia: Likewise.
4850 * timezone/australasia: Likewise.
4851 * timezone/europe: Likewise.
4852 * timezone/leapseconds: Likewise.
4853 * timezone/northamerica: Likewise.
4854 * timezone/southamerica: Likewise.
4855 * timezone/zone.tab: Likewise.
4857 2008-09-30 Ulrich Drepper <drepper@redhat.com>
4859 * nscd/connections.c: Disable use of paccept for now.
4861 2008-09-29 Ulrich Drepper <drepper@redhat.com>
4863 * socket/Versions: Remove paccept export for GLIBC_2.9.
4864 * socket/Makefile (routines): Remove paccept.
4865 * socket/sys/socket.h: Remove paccept declaration.
4867 * po/sv.po: Update from translation team.
4869 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
4871 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
4872 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4874 2008-09-16 Ulrich Drepper <drepper@redhat.com>
4876 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
4877 Patch by Olivier Fourdan <ofourdan@redhat.com>.
4879 2008-09-15 Ulrich Drepper <drepper@redhat.com>
4881 * sunrpc/rpc/svc.h: Declare svcfd_create.
4882 Patch by Michael Solberg <msolberg@redhat.com>.
4884 2008-09-12 Flavio Leitner <fleitner@redhat.com>
4885 Ulrich Drepper <drepper@redhat.com>
4887 * malloc/malloc.c (public_vALLOc): Try other arenas in case
4889 (public_pVALLOc): Likewise.
4891 2008-09-02 Andreas Jaeger <aj@suse.de>
4893 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
4896 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
4899 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
4901 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
4903 * Makefile (check-data): Check data directory in add-ons.
4904 * elf/Makefile (check-data): Likewise.
4906 2008-08-18 Roland McGrath <roland@redhat.com>
4908 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
4909 * configure: Regenerated.
4910 * config.make.in (cflags-cpu): New substituted variable.
4911 (with-cpu): Variable removed.
4912 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
4914 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
4917 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
4918 __signbitl definition and __LONG_DOUBLE_128__ guard from:
4919 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
4920 redundant. Functions which call floating point assembler operations
4921 should go into a sysdeps powerpc/fpu directory.
4923 2008-08-15 Ulrich Drepper <drepper@redhat.com>
4925 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
4926 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
4928 2008-08-14 Ulrich Drepper <drepper@redhat.com>
4930 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
4932 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
4933 change related to AT_EXECFN. We cannot use that string.
4934 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
4936 * elf/dl-support.c: Remove _dl_execfn variable.
4937 (_dl_aux_init): Remove handling of AT_EXECFN.
4938 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
4939 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
4941 2008-08-13 Ulrich Drepper <drepper@redhat.com>
4944 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
4945 byte gets added to writes and seeks from the end use the length of
4946 the buffer and not the currently terminating NUL byte.
4949 * login/utmp_file.c (getutent_r_file): Take additional parameter.
4950 Set to true if locking failed.
4951 (getutid_r_file): Adjust caller.
4952 (pututline_file): Likewise. Return NULL in this case.
4953 Patch mostly by halesh.s@gmail.com.
4955 2008-08-12 Ulrich Drepper <drepper@redhat.com>
4958 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
4960 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
4962 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
4965 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
4966 macro since it is now available in elf/dynamic-link.h.
4968 2008-08-12 Roland McGrath <roland@frob.com>
4970 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
4971 in case used outside of libc.
4972 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
4974 2008-08-11 Ulrich Drepper <drepper@redhat.com>
4976 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
4977 directly instead of going through dn_comp.
4979 2008-08-11 Aurelien Jarno <aurel32@debian.org>
4981 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
4982 Fix asm constraints.
4984 2008-08-07 Ulrich Drepper <drepper@redhat.com>
4987 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
4988 (IPV6_PMTUDISC_PROBE): Likewise.
4990 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
4993 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
4995 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
4996 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
4999 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5000 Added the members 'vsx' and 'arch_2_06'.
5001 (_dl_powerpc_platforms): Add the member 'power7'.
5002 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5003 to reflect the changes required by VSX and ISA 2.06.
5004 Modify _DL_PLATFORMS_COUNT to reflect the addition of
5006 Defined PPC_PLATFORM_POWER7.
5007 (_dl_string_platform): Add support for POWER7.
5008 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5009 capability and ISA 2.06.
5011 2008-08-07 Ulrich Drepper <drepper@redhat.com>
5014 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5015 macro to detect use of 128 bit long double.
5016 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5018 2008-08-05 Ulrich Drepper <drepper@redhat.com>
5020 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5023 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5025 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5026 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5028 2008-08-03 Ulrich Drepper <drepper@redhat.com>
5030 * nscd/connections.c (main_loop_poll): Pass a buffer which is
5031 guaranteed to be large enough to read inotify event. Ignore
5032 EAGAIN error. Better error message. Add branch predicition.
5033 (main_loop_epoll): Likewise.
5035 2008-08-02 Roland McGrath <roland@frob.com>
5037 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5038 Add memory clobbers.
5040 2008-08-02 Ulrich Drepper <drepper@redhat.com>
5042 * manual/arith.texi: Avoid @strong{Note:}.
5043 * manual/creature.texi: Likewise.
5044 * manual/filesys.texi: Likewise.
5045 * manual/math.texi: Likewise.
5046 * manual/memory.texi: Likewise.
5047 * manual/resource.texi: Likewise.
5048 * manual/syslog.texi: Likewise.
5049 * manual/time.texi: Likewise.
5051 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5054 2008-08-01 Ulrich Drepper <drepper@redhat.com>
5056 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5057 new epoll_create1 interface.
5058 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5059 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5060 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5062 * include/arpa/nameser.h (NS_GET16): Use const pointer.
5063 (NS_GET32): Likewise.
5065 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5068 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5069 use the AT_EXECFN value if it is no absolute path.
5070 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5073 * Versions.def: Add GLIBC_2.9 to libresolv.
5074 * include/resolv.h: Remove hidden proto declarations for __ns_*
5075 functions. Add them for __dn_count_labels and __p_secstodate.
5076 * include/arpa/nameser.h: Add a number of hidden proto declarations.
5077 Define ns_msg_getflags macro here.
5078 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5080 * resolv/Versions: Export functions from <arpa/nameser.h> from
5081 libresolv in version GLIBC_2.9.
5082 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
5084 * resolv/ns_netint.c: Likewise.
5085 * resolv/ns_parse.c: Likewise.
5086 * resolv/ns_print.c: Likewise.
5087 * resolv/ns_samedomain.c: Likewise.
5088 * resolv/ns_ttl.c: Likewise.
5089 * resolv/arpa/nameser_compat.h: Likewise.
5090 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
5092 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5093 instead of ns_get16.
5094 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5095 __ns_get32 instead of ns_get16 and ns_get32 respectively.
5096 (gaih_getanswer_slice): Likewise.
5097 * resolv/Makefile (libresolv-routines): Add ns_date.
5098 * resolv/ns_date.c: New file.
5100 * elf/Makefile (check-localplt.out): Also check libresolv and
5103 2008-07-31 Ulrich Drepper <drepper@redhat.com>
5105 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5108 2008-07-30 Ulrich Drepper <drepper@redhat.com>
5110 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5111 buffer passed to NSS functions.
5113 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5115 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5118 * misc/syslog.c (openlog_internal): Fix compile problem.
5120 2008-07-28 Roland McGrath <roland@redhat.com>
5122 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5124 2008-07-28 Ulrich Drepper <drepper@redhat.com>
5126 * io/ftw.c (add_object): Remove inline to avoid warning.
5128 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5130 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5131 Use it instead of locally defined resplen2 variable.
5132 (res_nsend): Adjust for __libc_res_nsend interface change.
5133 (send_vc): Initialize *resplen2 if necessary. Read length of
5134 package into an appropriately aligned variable. Store converted length
5135 in new variable and use it appropriately.
5136 Add branch prediction help.
5137 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5138 and pass it on to __libc_res_nsend. Adjust all callers.
5139 (__libc_res_nsearch): Likewise.
5140 (__libc_res_nqeurydomain): Likewise.
5141 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5143 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5144 Define resplen2 variable and pass it to __libc_res_nsearch and then
5146 (getanswer_r): In case of incorrect DNS data don't overread buffer.
5147 Add branch prediction.
5148 (gaih_getanswer_slice): Likewise. Check for invalid data types.
5149 (gaih_getanswer): Don't decode second slice if first one failed due
5150 to a too small buffer. Don't let not found status of second
5151 decoder shadow results of the first.
5152 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5153 and __libc_res_nquery interface changes
5154 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5155 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5156 __libc_res_nsearch, and __libc_res_nsend.
5157 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5159 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5160 __libc_res_nsearch interface changes.
5162 2008-07-27 Ulrich Drepper <drepper@redhat.com>
5164 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5166 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5167 file descriptors with close-on-exec set.
5168 (exec_comm_child): Fix the case where the write end of the pipe is
5169 STDOUT_FILENO already. In case it is, clear close-on-exec.
5171 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5172 * io/pipe2.c: Likewise.
5173 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5174 instead of __ASSUME_PACCEPT.
5175 * include/unistd.h: Declare __have_pipe2.
5176 * libio/iopopen.c: Implement "e" flag.
5177 * libio/Makefile (tests): Add tst-popen1.
5178 * libio/tst-popen1.c: New file.
5180 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5181 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5183 2008-07-26 Ulrich Drepper <drepper@redhat.com>
5186 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5187 success call of _IO_SEEKOFF or calls which failed because the
5188 descriptor is for a pipe.
5190 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5193 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5195 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
5196 F_SETFD use if we know fopen set the flag.
5198 * login/utmp_file.c (setutent_file): Minor optimization in case
5199 O_CLOEXEC is available.
5201 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
5203 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5204 * elf/Makefile: Use pie-ccflag variable.
5205 * nscd/Makefile: Likewise.
5206 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5208 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
5211 * Versions.def: Add GLIBC_2.9 version tag for libutil.
5212 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5213 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
5214 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5215 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
5216 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5217 utmp32, utmpx32 and login32.
5218 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5219 versions of struct utmp functions to libc and libutil.
5220 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5221 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5222 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5223 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5224 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5225 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5226 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5227 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5228 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5229 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5230 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5231 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5232 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5233 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5234 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5235 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5236 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5237 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5238 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5239 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5240 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5241 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5243 2008-07-26 Ulrich Drepper <drepper@redhat.com>
5245 * scripts/gen-as-const.awk: Generate more widely usable code by
5246 using 64-bit arithmetic.
5248 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5249 the same treatment as narrow output code in last patch.
5251 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5254 * elf/dl-load.c (local_strdup): Remove inline.
5255 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5256 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5259 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5261 2008-07-25 Ulrich Drepper <drepper@redhat.com>
5263 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5264 the new syscalls, too.
5266 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5267 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5270 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5271 parameter for end of buffer. If temporary copy is too large use
5273 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5275 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
5276 string rewrite when allocating buffer.
5278 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5281 * nscd/connections.c (nscd_init): Clean up fcntl call.
5283 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5284 SOCK_NONBLOCK if possible.
5286 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5287 SOCK_CLOEXEC if available.
5289 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5290 __libc_clntudp_bufcreate_internal.
5291 * include/sys/socket.h: Declare __have_sock_cloexec.
5292 * socket/Makefile (aux): Add have_sock_cloexec.
5293 * socket/have_sock_cloexec.c: New file.
5294 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5295 __libc_clntudp_bufcreate.
5296 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5297 which takes an additional parameter. Create socket with non-blocking
5298 mode and close-on-exec flag set, if wanted.
5299 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5300 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5301 instead of clntudp_create. The socket has already the close-on-exec
5302 flag set if SOCK_CLOEXEC is defined.
5304 2008-07-24 Ulrich Drepper <drepper@redhat.com>
5306 * sysdeps/unix/sysv/linux/kernel-features.h: Define
5307 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5309 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5310 non-blocking mode by using socket, paccept, and inotify_init1.
5312 * Versions.def (glibc): Add GLIBC_2.9.
5313 * io/Makefile (routines): Add dup3 and pipe2.
5314 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5315 * io/dup3.c: New file.
5316 * io/pipe2.c: New file.
5317 * posix/unistd.h: Declare dup3 and pipe2.
5318 * socket/Makefile (routines): Add paccept.
5319 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5320 * socket/paccept.c: New file.
5321 * socket/sys/socket.h: Declare paccept.
5322 * sysdeps/unix/syscalls.list: Add entry for dup3.
5323 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5324 epoll_create2 and inotify_init1.
5325 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5326 * sysdeps/unix/sysv/linux/paccept.c: New file.
5327 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5329 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5330 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5331 inotify_init1, and pipe2 entries.
5332 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5333 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5334 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5335 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5336 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5337 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5339 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5340 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5341 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5342 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5343 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5344 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5345 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5346 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5347 EPOLL_NONBLOCK. Declare epoll_create2.
5348 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5350 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5351 IN_NONBLOCK. Declare inotify_init1.
5352 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5354 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5357 * elf/elf.h: Define AT_EXECFN.
5358 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5360 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5361 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
5362 if __ASSUME_AT_EXECFN is defined.
5363 (_dl_aux_init): Handle AT_EXECFN.
5364 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5366 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5367 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5368 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5369 _dl_execfn if available and avoid compatibility code if
5370 __ASSUME_AT_EXECFN is defined.
5372 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5373 _dl_discover_osversion only for older kernels.
5375 2008-07-22 Roland McGrath <roland@frob.com>
5377 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5379 2008-07-21 Roland McGrath <roland@frob.com>
5381 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5382 returned too much data out of line.
5384 2008-07-20 Ulrich Drepper <drepper@redhat.com>
5386 * locale/setlocale.c (setname): Remove inline to avoid compiler
5390 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5392 2008-07-15 Ulrich Drepper <drepper@redhat.com>
5394 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5395 doesn't manage to write anything, fail.
5397 * malloc/hooks.c (__malloc_check_init): Remove printf.
5399 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5401 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5403 2008-07-12 Ulrich Drepper <drepper@redhat.com>
5405 * nscd/connections.c (main_loop_poll): Fix handling of read errors
5407 (main_loop_epoll): Likewise.
5409 2008-07-09 Ulrich Drepper <drepper@redhat.com>
5411 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5413 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5414 if DEBUG is defined.
5416 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5417 query. Adjust buffer size computation for padding.
5419 2008-07-08 Ulrich Drepper <drepper@redhat.com>
5421 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5422 * stdio-common/tst-setvbuf1.c: New file.
5423 * stdio-common/tst-setvbuf1.expect: New file.
5426 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5427 when selecting fully-buffered stream.
5428 Patch by Wang Xin <wxinee@gmail.com>.
5430 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
5432 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5433 (__open_2): New function.
5434 (__open64_2): New alias to __open_2.
5435 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5436 (__openat_2): New function.
5437 (__openat64_2): New alias to __openat_2.
5439 2008-07-06 Ulrich Drepper <drepper@redhat.com>
5442 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5444 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5446 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5447 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5448 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5450 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5451 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5452 * sysdeps/mach/hurd/send.c (__send): Likewise.
5453 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5454 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5456 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5458 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5459 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5460 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5461 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5462 * hurd/get-host.c (_hurd_get_host_config): Likewise.
5463 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5465 2008-06-27 Ulrich Drepper <drepper@redhat.com>
5468 * time/strptime_l.c: Don't clear s.era_cnt after successful match
5470 Patch by Petr Baudis.
5472 2008-06-26 Ulrich Drepper <drepper@redhat.com>
5474 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5475 Patch by Peter Jones <pjones@redhat.com>.
5477 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5480 * stdlib/canonicalize.c (__realpath): readlink can write too much
5481 into the buffer on platforms without PATH_MAX.
5483 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
5486 * posix/tst-regex.c (main): Rename to...
5487 (do_test): ... this. Remove cmdline option processing.
5489 (TEST_FUNCTION): Define.
5490 (CMDLINE_OPTIONS): Define.
5492 2008-06-25 Ulrich Drepper <drepper@redhat.com>
5495 * configure.in: Add -Werror to -fstack-protector test to catch
5496 unsupported architectures.
5497 Patch by Gilles Esponasse <g.esp@free.fr>.
5499 2008-06-17 Joseph Myers <joseph@codesourcery.com>
5501 * stdlib/tst-setcontext.c: Set back_in_main before exit if
5502 getcontext returns ENOSYS.
5504 2008-06-18 Ulrich Drepper <drepper@redhat.com>
5506 * nscd/connections.c (main_loop_poll): Fix test for read error.
5507 (main_loop_epoll): Likewise.
5509 2008-06-13 Ulrich Drepper <drepper@redhat.com>
5511 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5512 better place so it is not called when nscd is used.
5514 * nscd/connections.c: Also recognize and handle changes to the
5515 resolver configuration file.
5517 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5519 * time/strftime.c: Pass reference to tzset_called around to handle
5523 * time/strftime.c (__strftime_internal): Call tzset() only
5524 when printing timezone-dependent values.
5525 Based on a patch by Petr Baudis <pasky@suse.cz>.
5527 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5528 unconditionally use second gaih_getanswer_slice result.
5530 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5531 (getaddrinfo): RES must always be non-NULL.
5533 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5535 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5537 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5538 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5540 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5543 2008-06-12 Ulrich Drepper <drepper@redhat.com>
5545 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5547 * nscd/connections.c (inotify_fd): New variable.
5548 (nscd_init): Try to open an inotify descriptor.
5549 If successful, watch files for databases using inotify instead of
5550 having prune threads stat the files.
5551 (nscd_run_prune): Recognize clear_cache flag being set and call
5552 prune_cache appropriately.
5553 (main_loop_poll): Add inotify descriptor to wait set and handle the
5555 (main_loop_epoll): Likewise.
5556 * nscd/cache.c (prune_cache): Don't stat files for databases if
5558 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5559 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5561 * nscd/grpcache.c (cache_addgr): Correctly compute size of
5562 fixed-size portion of the record.
5563 * nscd/servicescache.c (cache_addserv): Likewise.
5564 * nscd/pwdcache.c (cache_addpw): Likewise.
5565 * nscd/initgrcache.c (addinitgroupsX): Likewise.
5567 2008-06-11 Ulrich Drepper <drepper@redhat.com>
5569 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5570 out we don't use uninitialized memory.
5572 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5575 2008-06-10 Ulrich Drepper <drepper@redhat.com>
5577 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5578 ignore T_DNAME messages.
5579 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5581 2008-06-05 Jakub Jelinek <jakub@redhat.com>
5583 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5584 Avoid segfault if first GETC returns eof/'\0'/'\n'.
5586 2008-06-03 Jakub Jelinek <jakub@redhat.com>
5588 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5589 instead of portstr to nscd_getserv_r. Patch by
5590 Roman Kagan <rkagan@mail.ru>.
5592 2008-05-26 Jim Meyering <meyering@redhat.com>
5594 Remove more useless "if" tests before "free".
5595 * include/inline-hashtab.h (htab_delete): Likewise.
5596 * libio/freopen.c (freopen): Likewise.
5597 * libio/freopen64.c (freopen64): Likewise.
5598 * locale/programs/ld-collate.c (collate_read): Likewise.
5599 * misc/fstab.c (libc_freeres_fn): Likewise.
5600 * posix/glob.c (globfree): Likewise.
5602 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5604 * string/Makefile (strop-tests): Add memmem.
5605 * string/test-memmem.c: New file.
5606 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5607 (test_init): Size buf1 according to BUF1PAGES.
5609 2008-05-24 Jakub Jelinek <jakub@redhat.com>
5611 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5612 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5613 (CFLAGS-scanf17.c): New.
5614 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5615 * stdio-common/scanf15.c (main): Likewise.
5616 * stdio-common/scanf16.c: New file.
5617 * stdio-common/scanf17.c: New file.
5619 2008-05-24 Ulrich Drepper <drepper@redhat.com>
5621 * resolv/res_send.c (send_dg): If we already have one of two
5622 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5623 use the one answer insted of failing.
5625 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
5627 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5628 being executed on PowerPC as the expected result exceeds IBM
5629 long double 128 __LDBL_MAX__.
5631 2008-05-21 Roland McGrath <roland@redhat.com>
5633 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5635 * Makefile (check-data): Use $(abi-name) before other guesses.
5636 Look in $(add-ons) dirs before scripts/data/.
5637 * elf/Makefile (check-data): Likewise.
5639 * scripts/soversions.awk: Grok ABI line.
5640 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5641 Emit definition for abi-name variable.
5643 2008-05-21 Ulrich Drepper <drepper@redhat.com>
5645 * string/endian.h: Define new fixed-size hto* and *toh macros only
5648 * iconvdata/Depend: Add localedata.
5650 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5652 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5654 2008-05-08 David S. Miller <davem@davemloft.net>
5656 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5658 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5659 (__SYSCALL_CLOBBERS): Remove %g* registers.
5660 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5661 (__SYSCALL_CLOBBERS): Likewise.
5662 * scripts/data/localplt-sparc-linux-gnu.data: New file.
5663 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5665 2008-05-21 Jakub Jelinek <jakub@redhat.com>
5667 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5668 (CALL_ERRNO_LOCATION): Define.
5669 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5670 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5671 (CALL_ERRNO_LOCATION): Define.
5672 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5673 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5674 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5676 2008-05-20 Ulrich Drepper <drepper@redhat.com>
5678 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5681 2008-05-20 Jakub Jelinek <jakub@redhat.com>
5683 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5684 (FIRST_FRAME_POINTER): Define.
5686 2008-05-09 David S. Miller <davem@davemloft.net>
5688 * sysdeps/sparc/sparc64/backtrace.c: New file.
5690 2008-05-14 David S. Miller <davem@davemloft.net>
5692 * sysdeps/sparc/machine-gmon.h: New file.
5693 * sysdeps/sparc/sparc-mcount.S: Likewise.
5694 * sysdeps/sparc/Makefile: Add sparc-mcount target to
5695 sysdep_routines in gmon directory.
5697 2008-05-19 Jakub Jelinek <jakub@redhat.com>
5699 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5701 2008-05-19 Ulrich Drepper <drepper@redhat.com>
5703 * resolv/res_query.c (__libc_res_nquery): In case one of two
5704 answer was too short don't try to read that answer's header.
5706 * resolv/res_send.c (send_dg): In case of timeout and there are
5707 two queries and one has been answered, return value indicating
5710 2008-05-18 Ulrich Drepper <drepper@redhat.com>
5712 * nscd/cache.c (cache_add): Take additional parameter specifying
5713 whether this is in response of a cache refill. Check alignment
5714 of package data. Revamp waking of pruning thread.
5715 (prune_cache): Small optimization.
5716 * nscd/nscd.h: Adjust cache_add prototypes.
5717 * nscd/aicache.c: Adjust cache_add calls.
5718 * nscd/grpcache.c: Likewise.
5719 * nscd/hstcache.c: Likewise.
5720 * nscd/initgrcache.c: Likewise.
5721 * nscd/pwdcache.c: Likewise.
5722 * nscd/servicescache.c: Likewise.
5723 * nscd/connections.c (restart): Really disable cache use before
5724 exec attempt. If it fails, reenable cache.
5725 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
5726 time to max to be able to notice concurrent cache additions. Unlock
5727 prune_lock while performing gc. Afterwards compute wakeup time with
5728 current wakeup_time value in mind.
5730 2008-05-17 Ulrich Drepper <drepper@redhat.com>
5732 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5734 * nscd/mem.c (gc): Correctly determine highest used array element
5737 * nscd/mem.c (markrange): Add assert to check entries are all
5738 aligned. Small cleanup in bitmap use.
5740 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5741 blockoff of type nscd_ssize_t.
5742 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5743 (mempoll_alloc): Record block offset and not address.
5745 * nscd/mem.c (gc): Fix test for stack overuse.
5747 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5750 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5751 entry is available, believe it.
5753 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5754 no answers return NSS_STATUS_NOTFOUND.
5755 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5756 buffer does not have any content.
5758 2008-05-16 Ulrich Drepper <drepper@redhat.com>
5760 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5762 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5763 lookup, don't assign canon unconditionally.
5765 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5767 * string/Makefile (distribute): Add str-two-way.h.
5769 2008-03-29 Eric Blake <ebb9@byu.net>
5771 Rewrite string searches to O(n) rather than O(n^2).
5772 * string/str-two-way.h: New file. For linear fixed-allocation
5774 * string/memmem.c: New implementation.
5775 * string/strstr.c: New implementation.
5776 * string/strcasestr.c: New implementation.
5778 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
5780 * posix/regcomp.c (optimize_utf8): Add a note on why we test
5782 (calc_first): Initialize constraint field.
5783 (duplicate_node_closure): Use it instead of special casing ANCHORS.
5784 Use search_duplicated_node to avoid loops. Fix grammar.
5785 (duplicate_node): Merge constraint field for all node types.
5786 (calc_eclosure_iter): Look at constraint field for all node types.
5787 * posix/regex_internal.c (create_cd_newstate): Don't look at
5790 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5793 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
5796 * string/endian.h: Add macros for fixed-size endian conversion.
5797 * bits/byteswap.h: Allow inclusion from <endian.h>.
5798 * sysdeps/i386/bits/byteswap.h: Likewise.
5799 * sysdeps/ia64/bits/byteswap.h: Likewise.
5800 * sysdeps/s390/bits/byteswap.h: Likewise.
5801 * sysdeps/x86_64/bits/byteswap.h: Likewise.
5802 * string/Makefile (tests): Add tst-endian.
5803 * string/tst-endian.c: New file.
5805 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
5806 Patch by Reuben Thomas.
5808 2008-05-14 Joseph Myers <joseph@codesourcery.com>
5810 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
5812 2008-05-14 Ulrich Drepper <drepper@redhat.com>
5814 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
5817 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
5819 (BODY for __gconv_transform_internal_ascii): Likewise.
5822 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
5823 to be treated like link-local addresses.
5824 (match_prefix): Don't treat IPv4 loopback address special when
5825 converting to v4 mapped addressed.
5827 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
5829 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
5830 * posix/tst-rfc3484-2.c: Likewise.
5831 * posix/tst-rfc3484-3.c: Likewise.
5833 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
5836 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
5838 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
5840 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
5842 2008-05-13 Ulrich Drepper <drepper@redhat.com>
5844 * po/lt.po: New file. From Lituanian translation team.
5846 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
5848 Introduce TLS descriptors for i386 and x86_64.
5849 * include/inline-hashtab.h: New file, copied from 2005's
5850 libiberty, with fix for memory leak imported afterwards by
5851 Glauber de Oliveira Costa.
5852 * elf/tlsdeschtab.h: New file.
5853 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
5854 (_dl_allocate_static_tls): ... here. Rearrange failure path.
5855 (CHECK_STATIC_TLS): Move to...
5856 * elf/dynamic-link.h: ... this file.
5857 (TRY_STATIC_TLS): New macro.
5858 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
5859 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
5860 R_386_TLS_DESC): Define.
5861 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
5863 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
5864 R_X86_64_TLSDESC): Define.
5865 (R_386_NUM, R_X86_64_NUM): Adjust.
5866 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
5867 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5868 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5869 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5870 release tlsdesc_table.
5871 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
5872 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
5873 (elf_machine_rel): Handle R_386_TLS_DESC.
5874 (elf_machine_rela): Likewise.
5875 (elf_machine_lazy_rel): Likewise.
5876 (elf_machine_lazy_rela): Likewise.
5877 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
5878 * sysdeps/i386/dl-tlsdesc.S: New file.
5879 * sysdeps/i386/dl-tlsdesc.h: New file.
5880 * sysdeps/i386/tlsdesc.c: New file.
5881 * sysdeps/i386/tlsdesc.sym: New file.
5882 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
5884 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
5885 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
5886 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
5887 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
5888 release tlsdesc_table.
5889 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
5890 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
5891 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
5892 (elf_machine_rel): Handle R_X86_64_TLSDESC.
5893 (elf_machine_rela): Likewise.
5894 (elf_machine_lazy_rel): Likewise.
5895 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
5896 (__tls_get_addr): Do not declare for non-shared compiles.
5897 * sysdeps/x86_64/dl-tlsdesc.S: New file.
5898 * sysdeps/x86_64/dl-tlsdesc.h: New file.
5899 * sysdeps/x86_64/tlsdesc.c: New file.
5900 * sysdeps/x86_64/tlsdesc.sym: New file.
5901 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
5902 tlsdesc_table for both 32- and 64-bit structs.
5904 2008-05-11 Ulrich Drepper <drepper@redhat.com>
5906 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
5907 its own function. This reduces the frame setup costs and more.
5909 2008-02-11 Joseph Myers <joseph@codesourcery.com>
5912 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
5913 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
5915 2008-05-11 Ulrich Drepper <drepper@redhat.com>
5917 * io/openat.c (__openat_2): Also pass fd to __openat.
5918 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
5919 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
5921 * string/tester.c (test_memcmp): Add a few more tests.
5922 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
5924 2008-05-10 Ulrich Drepper <drepper@redhat.com>
5926 * nscd/cache.c (cache_add): Before returning with failure and this
5927 is the first use of the record, mark it as unusable.
5928 * nscd/aicache.c: Don't touch the dataset after cache_add returns
5929 reporting a failure.
5930 * nscd/grpcache.c: Likewise
5931 * nscd/hstcache.c: Likewise.
5932 * nscd/initgrcache.c: Likewise.
5933 * nscd/pwdcache.c: Likewise.
5934 * nscd/servicescache.c: Likewise.
5936 2008-05-10 Roland McGrath <roland@redhat.com>
5939 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
5941 2008-05-08 David S. Miller <davem@davemloft.net>
5943 * misc/truncate64.c (truncate64): Use __truncate not truncate.
5945 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
5946 (__ieee754_y0l): Likewise.
5947 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5948 (__ieee754_y1l): Likewise.
5949 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
5950 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
5951 frexpl and ldexpl. math_private.h provides them and the latter
5953 (__log1pl): Use __frexpl.
5955 2008-05-10 Ulrich Drepper <drepper@redhat.com>
5957 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
5959 * include/arpa/nameser_compat.h: Define T_UNSPEC.
5960 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
5961 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
5962 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
5964 (_nss_nis_gethostbyname4_r): New function.
5965 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
5966 Change to also handle af==AF_UNSPEC.
5967 (get_tablename): New function. Use it to avoid duplication.
5968 (_nss_nisplus_gethostbyname4_r): New function.
5969 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
5971 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
5972 * nss/nss.h: Define struct gaih_addrtuple.
5973 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
5975 (_nss_files_gethostbyname4_r): New function.
5976 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
5977 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
5979 * resolv/res_query.c (__libc_res_nquery): Take two additional
5980 parameters for second answer buffer. Handle type=T_UNSPEC to mean
5981 look up IPv4 and IPv6.
5983 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
5984 for an additional query and answer buffer. Pass to send_vc and
5986 (send_vc): Send possibly two requests and receive two answers.
5987 (send_dg): Likewise.
5988 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
5990 (_nss_dns_gethostbyname4_r): New function.
5991 (gaih_getanswer_slice): Likewise.
5992 (gaih_getanswer): Likewise.
5993 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
5994 __libc_res_nquery call.
5995 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5996 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
5997 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6000 2008-05-05 David S. Miller <davem@davemloft.net>
6002 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6003 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6005 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6007 Fix termios bit macros.
6008 Move *DLY definitions where they belong, in termios.h.
6009 Add *[0-3] definitions.
6010 Fixes confusion between VT and FF.
6011 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6012 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6013 are already defined to avoid collision with termios.h.
6014 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6015 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6016 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6017 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6018 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6019 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6020 VTDLY, VT0, VT1): New macros.
6021 [__USE_GNU] (OLCUC): Change value of macro.
6022 [__USE_XOPEN] (OFILL): New macro.
6023 [__USE_BSD] (CRTSCTS): Change value.
6024 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6025 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6026 (B7200, B14400, B28800, B76800): New macros.
6028 2008-05-01 David S. Miller <davem@davemloft.net>
6030 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6031 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6032 (gen-as-const-headers): Add it.
6033 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6034 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6035 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6036 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6038 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6039 six system call parameters.
6040 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6042 2008-04-30 Ulrich Drepper <drepper@redhat.com>
6044 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6046 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6047 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6049 2008-04-30 Jakub Jelinek <jakub@redhat.com>
6051 * stdlib/tst-setcontext.c: Include unistd.h.
6053 2008-04-25 David S. Miller <davem@davemloft.net>
6055 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6056 Pass "union semun" properly in to sys_ipc, it must be passed
6057 by value, not by reference.
6059 2008-04-22 Jakub Jelinek <jakub@redhat.com>
6061 * nscd/Makefile (nscd-cflags): Set back to -fpie.
6062 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6063 * nscd/connections.c (mem_in_flight): Likewise.
6065 * nscd/nscd.h (dbs): Make hidden.
6067 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6068 Avoid returning -1, return 0 instead.
6070 2008-04-19 Ulrich Drepper <drepper@redhat.com>
6072 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6074 2008-04-15 Ulrich Drepper <drepper@redhat.com>
6077 * sysdeps/unix/sysv/linux/times.c: New file.
6080 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6081 mem_in_flight_list variables. Add new parameter to mempool_alloc
6083 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
6084 appropriate mem_in_flight element.
6085 (gc): Take allocations which have not yet been committed to the
6086 database into account.
6087 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6088 Reset mem_in_flight before returning.
6089 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6090 cue it up in mem_in_flight_list.
6091 * nscd/aicache.c: Adjust mempool_alloc call.
6092 * nscd/grpcache.c: Likewise.
6093 * nscd/hstcache.c: Likewise.
6094 * nscd/initgrcache.c: Likewise.
6095 * nscd/pwdcache.c: Likewise.
6096 * nscd/servicescache.c: Likewise.
6097 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6100 * nscd/connections.c (handle_request): Provide better error message
6101 in case SELinux forbids the service.
6103 * version.h (VERSION): Bump to 2.8.90.
6105 2008-04-17 Jakub Jelinek <jakub@redhat.com>
6107 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6109 2008-04-11 Ulrich Drepper <drepper@redhat.com>
6111 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6112 Also use for 32-bit.
6113 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6114 __nextafter instead of nextafter to avoid local PLT.
6115 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6116 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6118 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6120 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6122 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
6123 <fenv_libc.h> instead of <fenv.h>.
6124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6125 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6127 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6129 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6130 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6131 function from fegetexcept and make old name weak alias.
6132 * include/fenv.h: Declare __fegetexcept.
6133 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6135 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6136 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6138 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6139 instead of frexpl to avoid local PLT.
6140 * math/s_significandl.c (__significandl): Use __ilogbl instead of
6141 ilogbl to avoid local PLT.
6142 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6143 instead of ldexpl to avoid local PLT.
6144 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6145 __roundl not roundl to avoid local PLT.
6146 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6147 local PLTs. Use __sincosl instead of separate sinl and cosl
6149 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6151 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6152 version for ppc64 to 2.4.21 since without it makecontext will fail.
6154 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6156 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6158 [__powerpc64__] (TLS_GD): Likewise.
6160 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
6163 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6164 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6166 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6167 Likewise. Also account for when x is an odd number between 2^52
6169 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6170 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6171 * math/libm-test.inc (lround_test, llround_test): Added test cases to
6172 detect aforementioned erroneous conditions.
6174 2008-04-11 Jakub Jelinek <jakub@redhat.com>
6176 * configure.in: Check for -fno-section-anchors in addition to
6177 -fno-toplevel-reorder.
6179 2008-04-11 Ulrich Drepper <drepper@redhat.com>
6181 * include/features.h (__GLIBC_MINOR__): Bump to 8.
6183 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6184 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6185 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6186 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6187 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6188 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6190 2008-04-11 Jakub Jelinek <jakub@redhat.com>
6193 * time/era.c: Transform __libc_setlocale_lock into rwlock.
6194 * time/alt_digit.c: Likewise.
6195 * wcsmbs/wcsmbsload.c: Likewise.
6197 2008-04-10 Ulrich Drepper <drepper@redhat.com>
6199 * version.h (VERSION): Bump to 2.8.
6201 * timzeone/asia: Update from tzdata2008b.
6202 * timezone/backward: Likewise.
6203 * timezone/europe: Likewise.
6204 * timezone/northamerica: Likewise.
6205 * timezone/southamerica: Likewise.
6206 * timezone/iso3166.tab: Likewise.
6207 * timezone/leapseconds: Likewise.
6208 * timezone/zone.tab: Likewise.
6209 * timezone/private.h: Update from tzcode2008a.
6210 * timezone/zdump.c: Likewise.
6211 * timezone/zic.c: Likewise.
6213 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
6216 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6217 Define additonal Data Cache Block instruction macros.
6218 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6219 Replace dcbst with dcbf and sync with sync/isync.
6221 2008-02-21 Alan Modra <amodra@bigpond.net.au>
6223 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6224 Always set ELF_RTYPE_CLASS_PLT.
6225 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6227 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
6229 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6230 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6231 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6232 For ISA 2.01 and later replace mftb with mfspr 268.
6234 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
6237 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6238 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6240 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
6243 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6244 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6245 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6246 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6248 2008-04-10 Jakub Jelinek <jakub@redhat.com>
6250 * stdlib/tst-makecontext.c (othervar): New variable.
6251 (cf): Test sign extending the argument to long.
6253 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
6255 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6256 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6257 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6258 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6259 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6260 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6261 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6263 2008-02-22 Alan Modra <amodra@bigpond.net.au>
6265 * elf/Makefile (tests): Substitute tests-vis-yes here.
6266 (tests-vis-yes): Delete.
6267 (modules-name, modules-vis-yes): Similarly.
6269 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
6272 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6273 Preserve sign in signgamp when x is zero.
6275 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
6277 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6278 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6279 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6280 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6281 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6282 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6284 2008-04-09 Ulrich Drepper <drepper@redhat.com>
6287 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6291 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6292 a reserved error value.
6294 * stdlib/tst-makecontext.c: Change parameter to cf to negative
6295 value to check for correct sign extension.
6298 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6299 Copy 64-bit parameter values even though this is not required in
6302 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6305 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
6307 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6310 2008-04-09 Jakub Jelinek <jakub@redhat.com>
6312 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6314 2008-04-09 Ulrich Drepper <drepper@redhat.com>
6317 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6318 in line-buffered stream failed.
6319 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6321 2008-04-08 Ulrich Drepper <drepper@redhat.com>
6324 * scripts/abi-versions.awk: If the version specified by
6325 --enable-oldest-abi is older than the first version for this
6326 architecture, use the default version.
6328 * locale/programs/ld-collate.c (collate_read): Ignore script lines
6329 as well when ignoring the whole category.
6331 2008-04-07 Ulrich Drepper <drepper@redhat.com>
6334 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6335 ETHERTYPE_* definitions.
6336 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6338 2008-04-07 Jakub Jelinek <jakub@redhat.com>
6340 * stdlib/mbtowc.c (__no_r_state): Remove.
6341 (mbtowc): New static state variable. Use it instead of
6343 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6344 (__wctomb_state): New hidden variable.
6345 (wctomb): Use __wctomb_state instead of __no_r_state.
6346 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6347 (__wctomb_state): New extern decl.
6348 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6350 2008-04-07 Ulrich Drepper <drepper@redhat.com>
6353 * resolv/res_init.c: Handle scope IDs in resolv.conf.
6355 2008-04-07 Jakub Jelinek <jakub@redhat.com>
6357 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6359 2008-04-06 Ulrich Drepper <drepper@redhat.com>
6361 * po/nl.po: Update from translation team.
6363 2008-03-31 Ulrich Drepper <drepper@redhat.com>
6366 * string/strfry.c: Handle empty strings again.
6368 2008-03-30 Ulrich Drepper <drepper@redhat.com>
6371 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6372 before looking for translation.
6373 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6374 * locale/freelocale.c: Likewise.
6375 * locale/newlocale.c: Likewise.
6376 * locale/setlocale.c: Likewise.
6377 Based partially on a patch by ryo@np.css.fujitsu.com.
6379 2008-03-30 Jakub Jelinek <jakub@redhat.com>
6381 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6382 acquiring wrlock. Do conv_tab allocation while holding lock.
6383 * intl/Makefile: Add rules to build and run tst-gettext6.
6384 * intl/tst-gettext6.c: New test.
6385 * intl/tst-gettext6.sh: New file.
6387 2008-03-30 Ulrich Drepper <drepper@redhat.com>
6389 * po/nl.po: Update from translation team.
6391 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6392 provided through st_blksize, try the default size before giving up.
6394 2008-03-29 Ulrich Drepper <drepper@redhat.com>
6396 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6399 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6401 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6402 error message. POSIX today does not require the messages to be in
6403 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
6406 * sunrpc/auth_unix.c: Unify printed strings.
6407 * sunrpc/clnt_tcp.c: Likewise.
6408 * sunrpc/clnt_udp.c: Likewise.
6409 * sunrpc/clnt_unix.c: Likewise.
6410 * sunrpc/svc_tcp.c: Likewise.
6411 * sunrpc/svc_udp.c: Likewise.
6412 * sunrpc/svc_unix.c: Likewise.
6413 * sunrpc/xdr.c: Likewise.
6414 * sunrpc/xdr_array.c: Likewise.
6415 * sunrpc/xdr_rec.c: Likewise.
6416 * sunrpc/xdr_ref.c: Likewise.
6417 * locale/programs/ld-time.c (time_finish): Unify messages.
6418 * locale/programs/locfile.c (handle_copy): Fix typo.
6419 * nscd/nscd.c (options): Fix typo.
6422 * stdlib/strtod_l.c: Use correct sign for result in one more
6424 Patch by Eric Blake <ebb9@byu.net>.
6426 2008-03-27 Jakub Jelinek <jakub@redhat.com>
6428 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6429 and creat system calls.
6430 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6432 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6434 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6435 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6436 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6438 2008-03-27 Ulrich Drepper <drepper@redhat.com>
6440 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6441 <linux/limits.h> has defined it.
6442 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6443 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6445 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6446 it instead of ARG_MAX.
6448 2008-03-25 Jakub Jelinek <jakub@redhat.com>
6450 * posix/gai.conf: Fix comment for scope nullbits.
6451 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6452 default to 128 bits for v4 mapped addresses.
6454 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
6456 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6457 ptrace call to get the ieee_instruction_pointer from the kernel.
6458 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6459 ptrace call to set the ieee_instructtion_pointer.
6460 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6461 Add comment that ieee_instruction_pointer is always 0.
6463 2008-03-09 Andreas Jaeger <aj@suse.de>
6466 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6467 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6468 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6470 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6471 (rint_test): Likewise.
6473 2008-03-24 Ulrich Drepper <drepper@redhat.com>
6475 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6477 (__nisfind_server): Similar for open readColdStartFile call.
6478 Patch partially by Jim Meyering.
6479 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6480 around internal_setent call.
6482 * po/vi.po: New Vietnamese translation.
6484 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6487 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6488 remove CLONE_STOPPED.
6490 2008-02-10 Jim Meyering <meyering@redhat.com>
6492 Remove useless "if" before "free":
6493 * elf/ldconfig.c (parse_conf_include): Likewise.
6494 * gmon/gmon.c (weak_alias): Likewise.
6495 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6496 * inet/rcmd.c (__validuser2_sa): Likewise.
6497 * intl/bindtextdom.c (set_binding_values): Likewise.
6498 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6499 * libio/genops.c (save_for_backup): Likewise.
6500 * libio/wgenops.c (save_for_wbackup): Likewise.
6501 * locale/programs/ld-collate.c (collate_read): Likewise.
6502 * locale/programs/linereader.c (get_string): Likewise.
6503 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6504 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6505 * resolv/res_debug.c (do_section): Likewise.
6506 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6507 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6508 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6509 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6510 * time/tzset.c (tzset_internal): Likewise.
6512 2008-03-18 Jakub Jelinek <jakub@redhat.com>
6514 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6517 2008-03-11 Ulrich Drepper <drepper@redhat.com>
6520 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6521 not stream for output file. Open output file here.
6522 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6523 and output file name.
6524 (process_fd): Likewise.
6525 (process_file): Likewise.
6526 (main): Adjust callers of changed functions.
6527 * iconv/iconv_prog.h: Adjust prototype.
6529 2008-03-09 Andreas Jaeger <aj@suse.de>
6532 * sysdeps/ia64/ieee754.h: Use protected namespace
6533 __BIG_ENDIAN/__LITTLE_ENDIAN.
6534 * sysdeps/ieee754/ieee754.h: Likewise.
6535 Patch by Aurelien Jarno <aurelien@aurel32.net>.
6537 2008-03-08 Roland McGrath <roland@frob.com>
6539 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6540 ignore a signal that came from a machine exception, treat it as a
6541 fatal core-dump signal instead.
6542 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6544 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6545 Clear DF bit in thread state's eflags.
6546 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6548 2008-03-08 Ulrich Drepper <drepper@redhat.com>
6551 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6552 of NAN(...) sequence.
6553 * stdlib/Makefile (tests): Add tst-strtod6.
6554 * stdlib/tst-strtod6.c: New file.
6556 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6559 * posix/getopt.c (_getopt_internal_r): Clarify error message by
6560 putting offending option character in quotes. Clean up error
6562 * po/be.po: Adjust msgstr in translation file.
6563 * po/bg.po: Likewise.
6564 * po/ca.po: Likewise.
6565 * po/cs.po: Likewise.
6566 * po/da.po: Likewise.
6567 * po/de.po: Likewise.
6568 * po/es.po: Likewise.
6569 * po/fr.po: Likewise.
6570 * po/hr.po: Likewise.
6571 * po/ko.po: Likewise.
6572 * po/nl.po: Likewise.
6573 * po/rw.po: Likewise.
6574 * po/sk.po: Likewise.
6575 * po/sv.po: Likewise.
6576 * po/tr.po: Likewise.
6577 * po/zh_CN.po: Likewise.
6578 * po/zh_TW.po: Likewise.
6581 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6582 Patch by Roland Bless <roland@bless.de>.
6584 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6586 * elf/Makefile (routines): Add dl-sysdep.
6587 (elide-routines.os): Likewise.
6589 2008-03-07 Ulrich Drepper <drepper@redhat.com>
6592 * elf/dl-sysdep.c: Undefine ROUND after use.
6593 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6594 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6595 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6596 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6598 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6599 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6601 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6603 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6604 _dl_tls_get_addr_soft element.
6605 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6606 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6607 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6609 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6610 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6611 of internal_function.
6613 * stdlib/Makefile (aux): Add tens_in_limb.
6614 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6615 * stdlib/tens_in_limb.c: ...here. New file.
6618 * sysdeps/unix/sysv/linux/pathconf.h: Declare
6619 __statfs_chown_restricted.
6620 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6621 for _PC_CHOWN_RESTRICTED.
6622 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6623 Implement __statfs_chown_restricted.
6624 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6625 _POSIX_CHOWN_RESTRICTED value to zero.
6626 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6629 * sysdeps/x86_64/rtld-memset.c: New file.
6631 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
6633 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6635 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6636 Barcelona machine. Make default fall through branch of
6637 __x86_64_preferred_memory_instruction check as the integer code path.
6639 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6641 * sysdeps/x86_64/cacheinfo.c
6642 (__x86_64_preferred_memory_instruction): New variable.
6643 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6645 * sysdeps/x86_64/memset.S: Rewrite.
6647 2008-03-04 Jakub Jelinek <jakub@redhat.com>
6649 * include/stdio.h (__asprintf_chk, __dprintf_chk,
6650 __obstack_printf_chk): New prototypes.
6651 (__vasprintf_chk, __vdprintf_chk,
6652 __obstack_vprintf_chk): Likewise.
6653 Add libc_hidden_proto.
6655 (_IO_obstack_jumps): No longer static, add attribute_hidden.
6656 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6657 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6658 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6659 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6660 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6661 __obstack_vprintf_chk): New prototypes.
6662 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6663 obstack_vprintf): New inlines.
6664 * debug/dprintf_chk.c: New file.
6665 * debug/vdprintf_chk.c: New file.
6666 * debug/asprintf_chk.c: New file.
6667 * debug/vasprintf_chk.c: New file.
6668 * debug/obprintf_chk.c: New file.
6669 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6670 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6671 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6673 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6674 vdprintf_chk and obprintf_chk, set CFLAGS for them.
6675 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6676 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6678 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6679 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6680 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6681 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6682 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6684 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6685 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6686 obstack_vprintf_chk.
6687 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6688 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6689 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6690 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6691 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6692 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6694 2008-03-04 Ulrich Drepper <drepper@redhat.com>
6697 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6698 Patch by Roy Marples <roy@marples.name>.
6701 * malloc/malloc.c: Fix typo in comment.
6704 * locale/iso-639.def: Add Shuswap.
6706 2008-02-25 Jakub Jelinek <jakub@redhat.com>
6709 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6710 overwrite *h_errnop/*errnop values from getanswer_r in case of
6713 2008-03-03 Ulrich Drepper <drepper@redhat.com>
6716 * nscd/connections.c (dbs): Add initializers for .suggested_module.
6717 (verify_persistent_db): Remove one unnecessary test and add a new one
6718 for bad configuration.
6719 (nscd_init): Improve error reported when persistent database cannot
6721 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6722 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6723 .suggested_module and .max_db_size and case config file says the
6725 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6728 * nis/ypclnt.c (yp_order): Fix handling of return value of
6730 Patch by Jeff Moyer <jmoyer@redhat.com>.
6732 * po/fr.po: Update from translation team.
6734 2008-02-22 Andreas Jaeger <aj@suse.de>,
6735 Carlos O'Donell <carlos@systemhalted.org>
6738 * FAQ.in: Describe why glibc needs to be compiled with
6741 2008-02-19 Roland McGrath <roland@redhat.com>
6743 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6745 2008-02-15 Ulrich Drepper <drepper@redhat.com>
6748 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6749 __USE_MISC is defined.
6751 2008-02-10 Ulrich Drepper <drepper@redhat.com>
6753 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6754 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6756 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6757 timerfd_gettime, timerfd_settime.
6758 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6759 timerfd_gettime, timerfd_settime for GLIBC_2.8.
6761 2008-02-08 Roland McGrath <roland@redhat.com>
6763 * elf/elf.h (NT_PPC_SPE): New macro.
6765 2008-02-06 Roland McGrath <roland@redhat.com>
6767 * Makerules ($(common-objpfx)sysd-rules):
6768 Depend on $(sysdep-makeconfigs).
6770 2008-01-31 Roland McGrath <roland@redhat.com>
6773 * configure.in: Use -print-file-name if it yields a directory,
6774 for each of include and include-fixed.
6775 * configure: Regenerated.
6777 * Makeconfig (sysd-rules-targets): New variable.
6778 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
6779 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
6781 2008-01-30 Roland McGrath <roland@redhat.com>
6783 * manual/libc.texinfo: Update back-cover text.
6785 * elf/elf.h (NT_386_TLS): New macro.
6787 2008-01-29 Roland McGrath <roland@redhat.com>
6789 * Makeconfig (sysd-rules-patterns): New variable.
6790 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
6791 (check-inhibit-asm): New canned sequence, replaces ...
6792 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
6793 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
6794 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
6795 (CFLAGS-rtld): Variable removed.
6797 2008-01-24 Roland McGrath <roland@redhat.com>
6799 * configure.in: Let configure fragments set base_os.
6800 * configure: Regenerated.
6802 2008-01-22 Ulrich Drepper <drepper@redhat.com>
6804 * po/ko.po: Update from translation team.
6806 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
6808 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
6810 2008-01-12 Andreas Jaeger <aj@suse.de>
6813 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
6816 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
6818 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
6819 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
6820 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
6822 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
6824 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
6825 * elf/dl-close.c (_dl_close): Check for it.
6826 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
6827 (_dl_allocate_static_tls): Likewise.
6828 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
6829 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
6831 * elf/tst-tls16.c: New file.
6832 * elf/tst-tlsmod16a.c: New file.
6833 * elf/tst-tlsmod16b.c: New file.
6834 * elf/Makefile: Add rules to build and run tst-tls16.
6836 2008-01-16 Ulrich Drepper <drepper@redhat.com>
6839 * bits/shm.h: Fix comment describing shmid_ds.
6840 * sysdeps/gnu/bits/shm.h: Likewise.
6841 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
6842 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
6843 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6844 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6845 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6846 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6847 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6848 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
6849 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
6852 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
6854 * conform/data/limits.h-data: Adjust limits changed in v6 and add
6855 additional suffixes.
6856 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
6857 Add optional functions mq_timedreceive and mq_timedsend.
6858 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
6859 * conform/data/pthread.h-data: Fix prototype of
6860 pthread_condattr_setclock. pthread_sigmask is not required in v6.
6861 * conform/data/semaphore.h-data: Allow time.h definitions.
6862 * conform/data/signal.h-data: Likewise.
6863 * conform/data/stdio.h-data: getw and putw are not required in v6.
6864 * conform/data/stdlib.h-data: Change setstate prototype.
6865 * conform/data/string.h-data: Fix strerror_r prototype.
6866 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
6867 * conform/data/unistd.h-data: pthread_atfork not required in v6.
6868 Fix readlink prototype.
6869 * conform/data/netinet/in.h-data: Add const to in6addr_any and
6871 * inet/netinet/in.h: Cleanup namespace.
6872 * posix/regex.h: Likewise.
6873 * resolv/netdb.h: Likewise.
6874 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
6875 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6876 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6877 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
6878 of names of in in6_addr.
6879 (default_precedence): Likewise.
6880 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
6883 2008-01-15 Ulrich Drepper <drepper@redhat.com>
6885 * conform/data/fmtmsg.h-data: Add missing allows.
6886 * conform/data/ftw.h-data: Likewise.
6887 * conform/data/inttypes.h-data: Likewise.
6888 * conform/data/math.h-data: Likewise.
6889 * conform/data/signal.h-data: Likewise.
6890 * conform/data/net/if.h-data: Likewise.
6891 * conform/data/netinet/in.h-data: Likewise.
6892 * conform/data/sys/socket.h-data: Likewise.
6895 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
6896 (__strtok_r): Simplify.
6897 * string/tester.c (test_strtok_r): Add test case for futile search
6898 with single-character seach string.
6900 2008-01-12 Ulrich Drepper <drepper@redhat.com>
6902 * po/ko.po: Update from translation team.
6904 2008-01-11 Andreas Jaeger <aj@suse.de>
6907 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
6908 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
6911 2008-01-10 Ulrich Drepper <drepper@redhat.com>
6913 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
6914 native interface lookup in all the relevant places.
6916 2008-01-10 Jakub Jelinek <jakub@redhat.com>
6917 Ulrich Drepper <drepper@redhat.com>
6919 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
6920 field. Use sockaddr_in6 for source_addr.
6921 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
6922 (match_prefix): Likewise.
6923 (get_label): Likewise.
6924 (get_precedence): Likewise.
6925 (rfc3484_sort): Change to use indirect access to results array.
6926 Adjust to use of sockaddr_in6. Replace service_order test with
6927 simple index comparison.
6928 (getaddrinfo): Define order array. Initialize it. Don't initialize
6929 service_order field. Adjust qsort_t calls. Access sorted result
6930 array indirectly through order array.
6931 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
6932 * posix/tst-rfc3484-2.c: Likewise.
6933 * posix/tst-rfc3484-3.c: Likewise.
6935 2008-01-09 Ulrich Drepper <drepper@redhat.com>
6938 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
6940 Patch by André Cruz.
6943 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
6944 (clnt_spcreateerror): Likewise.
6947 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
6948 (public_mEMALIGn): Likewise.
6949 Patch mostly by Daniel Jacobowitz.
6951 2008-01-09 Jakub Jelinek <jakub@redhat.com>
6953 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
6954 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
6955 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
6956 * stdlib/tst-makecontext2.c: New test.
6958 2008-01-08 Jakub Jelinek <jakub@redhat.com>
6960 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
6962 (REINIT_PARAMS): Likewise. Undefine before end of file.
6963 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
6964 transliteration hooks and REINIT_PARAMS afterwards.
6965 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
6967 (REINIT_PARAMS): Define.
6968 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
6969 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
6970 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
6971 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
6972 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
6973 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
6974 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
6975 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
6976 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
6977 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
6978 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
6979 * iconvdata/tst-iconv7.c: New test.
6981 2008-01-07 Ulrich Drepper <drepper@redhat.com>
6983 * libio/stdio.h (vscanf): Fix definition for loser compilers.
6985 2008-01-05 Jakub Jelinek <jakub@redhat.com>
6988 * nscd/connections.c (restart): Fix condition.
6990 2008-01-03 Jakub Jelinek <jakub@redhat.com>
6992 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
6993 __ctype_toupper_loc): Add __THROW.
6995 2008-01-02 Ulrich Drepper <drepper@redhat.com>
6997 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
6998 recognition of interface family.
7000 * posix/getconf.c: Update copyright year.
7001 * nss/getent.c: Likewise.
7002 * iconv/iconvconfig.c: Likewise.
7003 * iconv/iconv_prog.c: Likewise.
7004 * elf/ldconfig.c: Likewise.
7005 * catgets/gencat.c: Likewise.
7006 * csu/version.c: Likewise.
7007 * elf/ldd.bash.in: Likewise.
7008 * elf/sprof.c (print_version): Likewise.
7009 * locale/programs/locale.c: Likewise.
7010 * locale/programs/localedef.c: Likewise.
7011 * nscd/nscd.c (print_version): Likewise.
7012 * debug/xtrace.sh: Likewise.
7013 * malloc/memusage.sh: Likewise.
7014 * malloc/mtrace.pl: Likewise.
7015 * debug/catchsegv.sh: Likewise.
7017 2007-12-26 Ulrich Drepper <drepper@redhat.com>
7019 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7022 2007-12-23 Ulrich Drepper <drepper@redhat.com>
7024 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7025 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7027 2007-12-17 Roland McGrath <roland@redhat.com>
7029 * inet/ether_line.c (ether_line): Remove unused variable.
7031 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
7033 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7035 * login/openpty.c (openpty): Likewise.
7036 * login/pty.h (openpty, forkpty): Likewise.
7037 * manual/terminal.texi (openpty, forkpty): Likewise.
7039 2007-12-17 Ulrich Drepper <drepper@redhat.com>
7041 * malloc/malloc.c (public_cALLOc): For arenas other than
7042 main_arena, count all bytes inside the mprotect_size range of the
7043 heap as uninitialized.
7045 2007-12-16 Ulrich Drepper <drepper@redhat.com>
7047 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7050 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7051 mTRIm for all of them.
7052 (mTRIm): Additionally iterate over all free blocks and use madvise
7053 to free memory for all those blocks which contain at least one
7055 * malloc/tst-trim1.c: New file.
7056 * malloc/Makefile (tests): Add tst-trim1.
7058 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7060 2007-12-14 Ulrich Drepper <drepper@redhat.com>
7062 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7063 First cast argument to long
7064 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7066 (__vdso_clock_gettime): Likewise.
7067 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7070 2007-12-13 Ulrich Drepper <drepper@redhat.com>
7072 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7073 * locale/nl_langinfo_l.c: Real implementation, copied from
7075 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7077 2007-12-01 Jim Meyering <meyering@redhat.com>
7079 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7080 that would inhibit utf8-optimization of a regexp containing line-
7081 or buffer-anchors, e.g., `^', `$'.
7083 2007-12-12 Ulrich Drepper <drepper@redhat.com>
7085 * time/bug-getdate1.c (do_test): Don't use century values which
7086 aren't valid on 32-bit systems.
7088 2007-12-12 Jakub Jelinek <jakub@redhat.com>
7090 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7091 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7092 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7093 __strcat_g, __strncat_g): Add __asm__.
7095 2007-12-12 Ulrich Drepper <drepper@redhat.com>
7098 * io/fchmodat.c: Fix typo in stub_warning use.
7099 Patch by Petr Salinger.
7101 2007-12-11 Ulrich Drepper <drepper@redhat.com>
7103 * iconvdata/hp-thai8.c: New file.
7104 * iconvdata/Makefile: Add rules for hp-thai8.c.
7105 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7106 * iconvdata/gconv-modules: Likewise.
7109 * iconvdata/hp-greek8.c: New file.
7110 * iconvdata/Makefile: Add rules for hp-greek8.c.
7111 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7112 * iconvdata/gconv-modules: Likewise.
7115 * iconvdata/hp-turkish8.c: New file.
7116 * iconvdata/Makefile: Add rules for hp-turkish8.c.
7117 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7118 * iconvdata/gconv-modules: Likewise.
7120 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7121 (shrink_heap): ... this new function.
7122 (heap_trim): Call shrink_heap instead of grow_heap.
7124 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7125 case don't call alloc_perturb.
7127 2007-12-10 Ulrich Drepper <drepper@redhat.com>
7129 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7131 * sysdeps/unix/sysv/linux/kernel-features.h
7132 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7133 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7135 2007-12-08 Ulrich Drepper <drepper@redhat.com>
7138 * stdio-common/vfprintf.c: Do not overflow when adding to done.
7139 * stdio-common/Makefile (tests): Add bug22.
7140 * stdio-common/bug22.c: New file.
7143 * time/getdate.c: Fix filling in default values.
7144 * time/bug-getdate1.c: New file.
7145 * time/Makefile: Add rules to build and run bug-getdate1.
7147 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7148 * iconvdata/ebcdic-es.c: Likewise.
7149 * iconvdata/ebcdic-es-a.c: Likewise.
7150 * iconvdata/ebcdic-uk.c: Likewise.
7151 * iconvdata/iso8859-16.c: Likewise.
7152 * iconvdata/viscii.c: Likewise.
7153 * iconvdata/iso8859-9e.c: Likewise.
7154 * iconvdata/Makefile: Adjust appropriately.
7157 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7160 2007-12-07 Ulrich Drepper <drepper@redhat.com>
7163 * iconvdata/hp-roman9.c: New file.
7164 * iconvdata/Makefile: Add rules for hp-roman9.c.
7165 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7166 * iconvdata/gconv-modules: Likewise.
7168 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7169 * iconvdata/Makefile: Adjust appropriately.
7172 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7173 structure, it's allocated with alloca.
7174 * stdio-common/Makefile (tests): Add bug21.
7175 * stdio-common/bug21.c: New file.
7177 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
7180 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7181 keyword for gcc's braced-groups.
7183 2007-12-07 Ulrich Drepper <drepper@redhat.com>
7186 * inet/ether_line.c: Strip hostname of whitespaces.
7187 * inet/Makefile (tests): Add tst-ether_line.
7188 * inet/tst-ether_line.c: New file.
7190 2007-12-03 Ulrich Drepper <drepper@redhat.com>
7193 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7196 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7198 * stdlib/tst-setcontext.c: Catch the case where the links gets
7199 messed up and we do not reach main again.
7201 * po/ca.po: Update from translation team.
7203 2007-11-26 Ulrich Drepper <drepper@redhat.com>
7205 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7206 * posix/regex.h (REG_ENOSYS): Likewise.
7207 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7209 2007-11-25 Ulrich Drepper <drepper@redhat.com>
7211 * nscd/nscd.h (MAX_STACK_USE): Define.
7212 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7213 (gc): Initialize stack_used based on allocation in prune_cache.
7214 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7215 Clear array before use.
7217 * nscd/aicache.c (addhstaiX): Update statistics counter in case
7218 memory allocation failed.
7219 * nscd/hstcache.c (cache_addhst): Likewise.
7220 * nscd/grpcache.c (cache_addgr): Likewise.
7221 * nscd/servicescache.c (cache_addserv): Likewise.
7222 * nscd/pwdcache.c (cache_addpw): Likewise.
7223 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7225 2007-11-23 Ulrich Drepper <drepper@redhat.com>
7227 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7228 and creat system calls.
7230 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7232 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
7234 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7236 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7237 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7239 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7240 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7241 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7243 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
7245 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7246 strncat): Define as macros to avoid compile errors.
7248 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
7251 2007-11-22 Ulrich Drepper <drepper@redhat.com>
7254 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7255 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7256 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7258 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7260 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7261 Return zero in case the thread library is not NPTL.
7264 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7265 initializing interface list.
7268 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7269 use result of nss_getgrgid_r if nothing was found. For other
7270 error return with a failure.
7271 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7273 * locale/programs/ld-collate.c (collate_read): Fix loop to match
7276 2007-11-19 Ulrich Drepper <drepper@redhat.com>
7278 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7279 (get_scope): For IPv4 scope, use scopes table.
7280 (fini): Free scopes table if necessary.
7281 (free_scopelist): New function.
7282 (scopecmp): New function.
7283 (gaiconf_init): Also handle scopev4 entries.
7284 * posix/tst-rfc3484.c (do_test): Initialize scopes.
7285 * posix/tst-rfc3484-2.c (do_test): Likewise.
7286 * posix/gai.conf: Document scopev4 defaults.
7287 * posix/Makefile (tests): Add tst-rfc3484-3.
7288 * posix/tst-rfc3484-3.c: New file.
7290 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7292 * posix/gai.conf: Update for current default tables.
7294 2007-11-19 Ulrich Drepper <drepper@redhat.com>
7296 * po/tr.po: Update from translation team.
7298 2007-11-18 Roland McGrath <roland@frob.com>
7300 * manual/arith.texi (Remainder Functions): Spelling fix.
7301 From Shaun Silk <genix@mysoul.com.au>.
7303 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7305 2007-11-17 Ulrich Drepper <drepper@redhat.com>
7307 * po/zh_CN.po: Update from translation team.
7309 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7310 Add sys/signalfd.h and sys/eventfd.h.
7312 2007-11-15 Bruno Haible <bruno@clisp.org>
7315 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7317 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7318 (DCIGETTEXT): Change the allocation of the 'search' variable so that
7319 it needs only fixed stack space. Delay the initialization of
7320 msgid_len until it is needed.
7322 2007-11-15 Andreas Jaeger <aj@suse.de>
7324 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7325 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7327 2007-11-15 Ulrich Drepper <drepper@redhat.com>
7329 * po/ko.po: Update from translation team.
7331 2007-11-14 Ulrich Drepper <drepper@redhat.com>
7333 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7334 significantly. The device type is also part of the ifinfomsg data.
7336 * po/sv.po: Update from translation team.
7337 * po/nl.po: Likewise.
7339 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7340 to wake up in 24 hours.
7342 * nscd/gai.c (__ioctl): Define. Include check_native.c.
7344 2007-11-13 Ulrich Drepper <drepper@redhat.com>
7346 * po/cs.po: Update from translation team.
7347 * po/pl.po: Likewise.
7349 * include/ifaddrs.h: Remove in6ai_temporary.
7350 (struct in6addrinfo): Add index element.
7351 Declare __check_native.
7352 * inet/Makefile (aux): Add check_native.
7353 * sysdeps/unix/sysv/linux/check_native.c: New file.
7354 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7355 IFA_F_TEMPORARY. Pass back ifa_index.
7356 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7357 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
7358 call __check_native if necessary.
7359 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
7360 to sort addresses. Pass information about the results.
7361 * posix/tst-rfc3484.c: Adjust for addition of index field and change
7362 of rfc3484_sort interface.
7363 * posix/tst-rfc3484-2.c: Likewise.
7365 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
7366 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7368 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7369 (qsort_r): Renamed from qsort. Take additional parameter and pass it
7370 on as third parameter to compare function and _quicksort.
7371 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7372 to the compare function.
7373 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7374 * Versions.def: Add GLIBC_2.8 for libc.
7376 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7377 * posix/tst-rfc3484-2.c: Likewise.
7379 * include/kernel-features.h: Moved to...
7380 * sysdeps/mach/hurd/kernel-features.h: ...here.
7382 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
7384 * sysdeps/i386/i586/memcpy_chk.S: New file.
7385 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7386 * sysdeps/i386/i586/memset_chk.S: Likewise.
7388 2007-11-12 Ulrich Drepper <drepper@redhat.com>
7390 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7391 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7392 list of interfaces. Also store prefix length.
7393 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7394 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7395 prefix if source and destination address are in the same subnet.
7396 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
7397 Always look for matching record in in6ai list.
7398 Correct source_addr_len value for IPv6->IPv4 converted records.
7400 2007-11-11 Roland McGrath <roland@frob.com>
7402 * include/kernel-features.h: New file.
7404 2007-11-10 Ulrich Drepper <drepper@redhat.com>
7406 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7407 complications for 64-bit platforms.
7409 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7410 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
7411 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7413 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7415 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7416 * sysdeps/wordsize-64/alphasort.c: New file.
7417 * sysdeps/wordsize-64/alphasort64.c: New file.
7418 * sysdeps/wordsize-64/fseeko.c: New file.
7419 * sysdeps/wordsize-64/fseeko64.c: New file.
7420 * sysdeps/wordsize-64/ftello.c: New file.
7421 * sysdeps/wordsize-64/ftello64.c: New file.
7422 * sysdeps/wordsize-64/ftw.c: New file.
7423 * sysdeps/wordsize-64/ftw64.c: New file.
7424 * sysdeps/wordsize-64/iofgetpos.c: New file.
7425 * sysdeps/wordsize-64/iofgetpos64.c: New file.
7426 * sysdeps/wordsize-64/iofopen.c: New file.
7427 * sysdeps/wordsize-64/iofopen64.c: New file.
7428 * sysdeps/wordsize-64/iofsetpos.c: New file.
7429 * sysdeps/wordsize-64/iofsetpos64.c: New file.
7430 * sysdeps/wordsize-64/lockf.c: New file.
7431 * sysdeps/wordsize-64/lockf64.c: New file.
7432 * sysdeps/wordsize-64/mkostemp.c: New file.
7433 * sysdeps/wordsize-64/mkostemp64.c: New file.
7434 * sysdeps/wordsize-64/mkstemp.c: New file.
7435 * sysdeps/wordsize-64/mkstemp64.c: New file.
7436 * sysdeps/wordsize-64/scandir.c: New file.
7437 * sysdeps/wordsize-64/scandir64.c: New file.
7438 * sysdeps/wordsize-64/tmpfile.c: New file.
7439 * sysdeps/wordsize-64/tmpfile64.c: New file.
7440 * sysdeps/wordsize-64/versionsort.c: New file.
7441 * sysdeps/wordsize-64/versionsort64.c: New file.
7442 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7443 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7444 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7445 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7446 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7447 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7448 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7449 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7450 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7451 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7452 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7453 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7455 * crypt/sha256-crypt.c: Fix a comment.
7456 * crypt/sha512-crypt.c: Likewise.
7458 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
7460 * sysdeps/x86_64/memset.S: Add sfence after movnti.
7462 2007-11-07 Ulrich Drepper <drepper@redhat.com>
7465 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7466 because output buffer is too small break, don't loop.
7467 * iconvdata/Makefile (tests): Add bug-iconv6.
7468 * iconvdata/bug-iconv6.c: New file.
7470 2007-11-06 Ulrich Drepper <drepper@redhat.com>
7472 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7474 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7475 size_t. Add casts where needed.
7477 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7478 old headers, don't call avc_has_perm if we don't have the
7479 permission information.
7481 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
7483 * elf/rtld.c (dl_main): Use the page size to find the map start.
7485 2007-11-05 Ulrich Drepper <drepper@redhat.com>
7487 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7488 Patch by Szymon Siwek <sls@poczta.wp.pl>.
7490 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7491 when the lookup call failed.
7493 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7494 Add prune_cond and wakeup_time.
7495 (CACHE_PRUNE_INTERNAL): Define.
7496 Update declarations of prune_cache and setup_thread.
7497 * nscd/connections.c (dbs): Update initializers.
7498 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7499 (nscd_init): Default number of threads is now 4.
7500 (invalidate_cache): Take lock before calling prune_cache.
7501 (handle_request): If SELinux forbids the request, say so.
7502 (readylist_cond): Use static initializer.
7503 (nscd_run_prune): New function. Used only by pruning threads.
7504 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
7506 (fd_ready): Update nscd_run reference.
7507 (start_threads): No need to initialize readylist_cond.
7508 Start pruning threads separately.
7509 * nscd/nscd_setup_thread.c: Change return value type to int and always
7511 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7512 to int and return nonzero value if we can use the TID address hack.
7513 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7514 the database is later than the new entry's timeout, update the
7515 wakeup time and wake the cleanup thread.
7516 (prune_cache): Return seconds the next entry in the database is still
7517 valid. Remove locking for pruning here.
7518 * nscd/nscd.conf: Document default number of threads.
7520 2007-10-31 Ulrich Drepper <drepper@redhat.com>
7522 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7523 stack is properly aligned for the target function.
7524 Correct unwind info.
7526 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7527 when using auditing libraries.
7529 2007-10-29 Ulrich Drepper <drepper@redhat.com>
7531 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7532 _nss_dns_getnetbyaddr2_r.
7533 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
7534 extra parameter to getanswer_r.
7535 (_nss_dns_getnetbyaddr_r): Now a wrapper around
7536 _nss_dns_getnetbyaddr2_r.
7538 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7540 * nscd/gethstbynm2_r.c: Remove.
7541 * nscd/gethstbynm3_r.c: New file.
7542 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7544 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
7545 __gethostbyaddr_r compatibility wrapper.
7546 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
7547 determining timeout of entry.
7548 (lookup): Take new parameter and pass it to __gethostbyname3_r and
7550 (addhstbyX): Pass reference to variable for TTL to lookup and
7552 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7553 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7554 and __nss_next2. Remove __nss_services_lookup.
7555 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
7557 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7559 * nss/getXXent_r.c: Likewise.
7560 * nss/getnssent_r.c: Likewise.
7561 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
7562 does not exist in module, try the optional second name.
7563 (__nss_next2): New function.
7564 (__nss_next): Now wrapper around __nss_next2.
7565 * nss/nsswitch.h: Adjust __nss_lookup prototype.
7566 Declare __nss_next2.
7567 Adjust definition of db_lookup_function type.
7568 * nss/service-lookup.c: Define NO_COMPAT.
7569 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7570 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7571 * inet/ether_ntoh.c: Likewise.
7572 * sunrpc/netname.c: Likewise.
7573 * sunrpc/publickey.c: Likewise.
7574 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
7575 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7576 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7577 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7578 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7580 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7582 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7584 2007-10-28 Ulrich Drepper <drepper@redhat.com>
7587 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7588 * crypt/sha512c-test.c: Likewise.
7591 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7592 to keep track of end of %[ format string element.
7593 * stdio-common/Makefile (tests): Add bug20.
7594 * stdio-common/bug20.c: New file.
7597 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7598 path elements in counting mode.
7600 2007-10-27 Andreas Jaeger <aj@suse.de>
7603 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7606 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7607 (__cleanup): Free shared library when exiting.
7608 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7609 (__cleanup): Free shared library when exiting.
7611 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
7614 * math/libm-test.inc (check_float_internal): Support
7615 denormalized return.
7617 2007-10-23 Andreas Jaeger <aj@suse.de>
7620 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7621 __LONG_LONG_PAIR to handle little endian byte order.
7622 Suggested by abhishekrai@google.com
7624 2007-10-27 Ulrich Drepper <drepper@redhat.com>
7626 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7628 2007-10-26 Ulrich Drepper <drepper@redhat.com>
7630 * nscd/cache.c (prune_cache): Move test for modified file outside
7633 2007-10-21 Andreas Jaeger <aj@suse.de>
7635 * manual/texinfo.tex: Update to latest version.
7637 * manual/sysinfo.texi (System Parameters): Fix Formatting.
7639 * manual/arith.texi (Status bit operations): Fix formatting.
7641 * manual/errno.texi (Error Messages): Fix formatting.
7643 * manual/sysinfo.texi (System Parameters): Fix formatting.
7645 * manual/libc.texinfo: Update VERSION and UPDATED.
7647 2007-10-19 Roland McGrath <roland@redhat.com>
7649 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7651 2007-10-06 David S. Miller <davem@davemloft.net>
7653 * configure.in: Add sparcv9v2 and sparc64v2.
7654 * scripts/config.sub: Likewise.
7655 * configure: Regenerate.
7656 * elf/elf.h (HWCAP_SPARC_N2): New.
7657 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7658 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7659 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7660 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7661 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7662 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7663 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7665 2007-10-18 Ulrich Drepper <drepper@redhat.com>
7667 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7668 even if the poll result indicates there is data to read.
7669 Patch by Jeff Moyer <jmoyer@redhat.com>.
7671 2007-10-18 Roland McGrath <roland@redhat.com>
7673 * elf/elf.h (NT_PPC_VMX): New macro.
7675 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7677 * version.h (VERSION): Set to 2.7.90.
7679 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7681 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
7684 2007-10-17 Roland McGrath <roland@frob.com>
7686 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7687 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7689 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7691 * version.h (VERSION): Bump to 2.7.
7692 * include/features.h (__GLIBC_MINOR__): Bump to 7.
7695 * time/tzset.c (__tz_convert): Don't force testing for a change of
7696 TZ if not called from localtime. But then also see whether the
7697 file changed, in case __use_tzfile is set.
7699 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7700 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7701 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7702 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7703 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7704 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7705 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7706 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7708 2007-10-17 Jakub Jelinek <jakub@redhat.com>
7710 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7711 and admin selects to be able to replace the gai.conf file, lock
7712 data structures around the qsort call.
7714 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7716 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7718 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
7719 too high for the improvements. Implement bzero unconditionally for
7722 2007-10-17 Ulrich Drepper <drepper@redhat.com>
7723 Jakub Jelinek <jakub@redhat.com>
7725 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7726 even when time_t is 32-bit.
7727 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7728 timezone data read by __tzfile_default. Ensure __tzname[0] is
7729 always set after the search.
7731 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7733 * time/tzfile.c (__tzfile_read): Help the compiler recognize
7734 unreachable code on 32-bit machines.
7736 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7739 * time/strftime_l.c: Include stdbool.h.
7740 (my_strftime): New wrapper, old function renamed to...
7741 (__strftime_internal): ... new function. Add tzset_called
7742 argument, pass it down to recursive calls, don't call tzset ()
7743 if already true, set to true after call to tzset ().
7745 2007-10-16 Ulrich Drepper <drepper@redhat.com>
7747 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7748 into account when copying TZ string.
7750 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7752 * time/tzfile.c (__tzfile_compute): For use_last case set i to
7753 num_transition rather than num_transitions - 1.
7755 2007-10-16 Jakub Jelinek <jakub@redhat.com>
7757 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7760 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7761 a local label rather than HIDDEN_JUMPTARGET.
7763 2007-10-15 Ulrich Drepper <drepper@redhat.com>
7765 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7766 (init_cacheinfo): Initialize it.
7767 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7768 Always define bzero.
7769 Remove non-glibc code.
7770 * sysdeps/x86_64/bzero.S: Make an empty file.
7772 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
7774 * sysdeps/x86_64/cacheinfo.c
7775 (__x86_64_preferred_memory_instruction): New.
7776 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7778 * sysdeps/x86_64/memset.S: Rewrite.
7780 2007-10-15 Roland McGrath <roland@redhat.com>
7782 * po/libc.pot: Regenerated.
7784 2007-10-15 Ulrich Drepper <drepper@redhat.com>
7786 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
7790 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
7791 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
7792 address record to T_A/T_AAAA requests.
7794 2007-10-14 Ulrich Drepper <drepper@redhat.com>
7796 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
7798 * posix/glob.c: Add some branch prediction throughout.
7800 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
7803 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
7805 (rfc3484_sort): Make sure that even if qsort doesn't support
7806 stable sorting out sorting here is stable by comparing service_order.
7807 (getaddrinfo): Initialize service_order.
7808 * posix/tst-rfc3484.c (do_test): Adjust for addition of
7809 service_order field to sorting structure.
7810 * posix/tst-rfc3484-2.c (do_test): Likewise.
7812 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
7813 * time/tzset.c (tzset_internal): Break TZ string parsing out into
7814 __tzset_parse_tz and updating of daylight, timezone, tzname into
7816 (__tz_compute): Renamed from tz_compute. Take additional parameters.
7817 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
7818 happens in __tz_compute.
7819 * time/tzfile.c (__tzfile_read): Also read TZ string.
7820 (find_transition): Fold into __tzfile_compute.
7821 (__tzfile_compute): For times beyond the last transition try to
7823 * timezone/tst-timezone.c: Information in daylight and tzname does
7824 change for Asia/Tokyo timezone with more concrete information.
7827 * include/stdio.h: Add libc_hidden_proto for ftello.
7828 * libio/ftello.c: Add libc_hidden_def.
7831 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
7832 on the specified time and not the last entries in the file. Move
7833 code to determine tzname[] to...
7834 (find_transition): ...here. Add ugly guess for times before the
7837 2007-10-13 Ulrich Drepper <drepper@redhat.com>
7840 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
7842 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
7843 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7844 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7845 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7847 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
7848 read mechanism when there are no group members and avoid no-op
7849 read syscall in this case.
7852 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
7853 (__readall): If reading failed due to EAGAIN error wait a bit
7854 and possibly try again.
7855 (__readvall): Likewise.
7857 2007-10-13 Bruno Haible <bruno@clisp.org>
7859 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
7860 when we cannot recode the message.
7862 2007-10-13 Ulrich Drepper <drepper@redhat.com>
7865 * libio/__freading.c (__freading): Don't return true for
7866 write-only streams. For read/write streams, check whether we
7867 performed a read operation already.
7868 * libio/Makefile (tests): Add tst-ext2.
7869 * libio/tst-ext2.c: New file.
7871 2007-10-12 Ulrich Drepper <drepper@redhat.com>
7873 * locale/programs/repertoire.c (repertoire_read): Always free
7874 memory for repertoire file name [Coverity CID 270].
7876 * elf/cache.c (save_aux_cache): Free memory allocated for
7877 temporary file name [Coverity CID 267].
7879 2007-10-12 Jakub Jelinek <jakub@redhat.com>
7881 * misc/Makefile (headers): Add bits/error.h.
7883 2007-10-12 Ulrich Drepper <drepper@redhat.com>
7885 * posix/fnmatch_loop.c: Take rule index returned as part of
7886 findidx return value into account when accessing weights.
7887 * posix/regcomp.c: Likewise.
7888 * posix/regexec.c: Likewise.
7890 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
7891 (skip_to): Fix problems with parameter of elifdef/elifndef.
7893 2007-10-11 Ulrich Drepper <drepper@redhat.com>
7895 * iconv/gconv_simple.c: Add some branch prediction.
7897 2007-10-12 Jakub Jelinek <jakub@redhat.com>
7899 * locale/programs/ld-collate.c (collate_read): If ignore_content
7900 and nowtok is tok_define, eat any tok_eol tokens.
7902 2007-10-11 Jakub Jelinek <jakub@redhat.com>
7904 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
7905 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
7907 * inet/netinet/in.h: Don't include bits/socket.h.
7908 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
7910 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
7912 2007-10-10 Ulrich Drepper <drepper@redhat.com>
7914 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
7916 * locale/programs/locfile-kw.gperf: Likewise.
7917 * locale/programs/ld-collate.c: Implement primitive preprocessor.
7919 2007-10-10 Jakub Jelinek <jakub@redhat.com>
7921 * stdio-common/printf-parse.h: Include string.h and wchar.h.
7922 (__find_specwc): Change into __extern_always_inline function.
7923 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
7924 (__parse_one_specmb): Remove ps argument.
7925 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
7926 Adjust __find_specmb and __parse_one_specmb callers.
7927 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
7928 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
7930 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
7933 2007-10-09 Ulrich Drepper <drepper@redhat.com>
7935 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
7936 with some Pentium Ds.
7938 2007-10-08 Ulrich Drepper <drepper@redhat.com>
7940 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
7942 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
7945 2007-10-07 Ulrich Drepper <drepper@redhat.com>
7948 * locale/C-time.c: Set week_1stday data to 19971201.
7949 * locale/programs/ld-time.c (time_finish): Default for
7950 first_workday is Monday.
7953 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
7956 * posix/glob.c (glob): Recognize patterns starting \/.
7957 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
7958 (main): Add test for pattern starting \/.
7960 * misc/error.h: Use __const instead of const.
7961 * misc/bits/error.h: Likewise.
7963 2007-10-07 Andreas Jaeger <aj@suse.de>
7965 * include/bits/error.h: New file.
7967 * misc/bits/error.h (error_at_line): Fix prototype.
7969 2007-10-06 Ulrich Drepper <drepper@redhat.com>
7972 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
7973 more little bugs in creating the stack frame when pltexit has to
7976 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
7977 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
7980 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
7981 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
7982 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7983 * math/libm-test.inc: Add test for this case.
7986 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
7987 (svc_register): Initialize sc_mapped. Set to TRUE if call to
7988 map service succeeded.
7989 (svc_is_mapped): New function.
7990 (svc_unregister): Use it before trying to unmap service.
7992 2007-10-05 Ulrich Drepper <drepper@redhat.com>
7994 * timezone/zic.c: Update from tzcode2007h.
7997 * timezone/africa: Update from tzdata2007h.
7998 * timezone/antarctica: Likewise.
7999 * timezone/asia: Likewise.
8000 * timezone/australasia: Likewise.
8001 * timezone/europe: Likewise.
8002 * timezone/leapseconds: Likewise.
8003 * timezone/northamerica: Likewise.
8004 * timezone/southamerica: Likewise.
8005 * timzeone/zone.tab: Likewise.
8008 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8011 * string/bits/string2.h (__strdup): Cast parameters to calloc to
8012 avoid warning with -Wconversion.
8013 (__strndup): Likewise.
8014 Half the patch by Christian Iseli <christian.iseli@licr.org>.
8017 * nscd/connections.c (restart): Don't resync if database is
8018 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8020 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8021 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
8023 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8024 evetnfd_read, eventfd_write.
8025 * sysdeps/unix/sysv/linux/eventfd.c: New file.
8026 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8027 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8028 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8029 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8030 eventfd_write for GLIBC_2.7.
8032 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8033 * sysdeps/unix/sysv/linux/signalfd.c: New file.
8034 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8035 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8037 2007-10-04 Jakub Jelinek <jakub@redhat.com>
8039 * stdlib/msort.c: Include stdint.h.
8040 (struct msort_param): New type.
8041 (msort_with_tmp): Use struct msort_param pointer for unchanging
8042 parameters. Add optimized handling for several common sizes
8043 and indirect sorting mode.
8044 (qsort): Adjust msort_with_tmp callers. For big S use indirect
8046 Suggested by Belazougui Djamel .
8048 * stdlib/Makefile (tests): Add tst-qsort2.
8049 * stdlib/tst-qsort2.c: New test.
8051 2007-10-04 Ulrich Drepper <drepper@redhat.com>
8053 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8054 for dup2 in case another thread races with the current one. Retry
8057 * misc/error.h: Remove support for use outside of libc. We have to
8058 include <features.h> now. Include <bits/error.h> if possible.
8059 * misc/bits/error.h: New file.
8061 2007-10-03 Jakub Jelinek <jakub@redhat.com>
8063 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8064 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8065 __extern_always_inline functions unconditionally, drop macros.
8067 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8068 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8069 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8071 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8072 add __artificial__ attribute.
8074 2007-10-02 Ulrich Drepper <drepper@redhat.com>
8076 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8077 backward to forward direction.
8079 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8082 * locale/programs/ld-collate.c (collate_finish): Compare against last
8083 used section which is known to have rules defined.
8084 (collate_read): After order_start, correctly record order of sections
8085 and queue sections up.
8087 2007-10-01 Ulrich Drepper <drepper@redhat.com>
8090 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8091 the same number of pages.
8092 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8094 * locale/programs/ld-collate.c (collate_read): After initial copy
8095 statement, continue in state 0.
8097 * include/stdio_ext.h (__fsetlocking): Define as macro.
8099 2007-09-30 Ulrich Drepper <drepper@redhat.com>
8101 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8104 * po/pt_BR.po: Fix typo.
8106 2007-09-29 Ulrich Drepper <drepper@redhat.com>
8108 * iconvdata/Makefile (modules): Add ISO8859-9E.
8109 (distribute): Add iso8859-9e.c.
8110 (gen-8bit-gap-modules): Add iso8859-9e.
8111 * iconvdata/iso8859-9e.c: New file.
8112 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8113 * iconvdata/TESTS: Likewise.
8114 * iconvdata/tst-tables.sh: Likewise.
8116 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8118 * locale/iso-639.def: Add several new entries.
8120 2007-09-24 Jakub Jelinek <jakub@redhat.com>
8122 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8123 void * pointers instead of struct link_map **.
8124 (_dl_scope_free): Change argument type to void *.
8125 * include/link.h (struct link_map): Change type of l_reldeps
8126 to struct link_map_reldeps, move l_reldepsact into that
8128 * elf/dl-deps.c: Include atomic.h.
8129 (_dl_map_object_deps): Only change l->l_initfini when it is
8130 fully populated, use _dl_scope_free for freeing it. Optimize
8131 removal of libs from reldeps by using l_reserved flag, when
8132 some removal is needed, allocate a new list instead of
8133 reallocating and free the old with _dl_scope_free. Adjust
8134 for l_reldeps and l_reldepsact changes.
8135 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
8136 searching in l_initfini and l_reldeps without holding dl_load_lock.
8137 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8138 l_reldepsact changes.
8139 * elf/dl-close.c (_dl_close_worker): Likewise.
8140 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8142 2007-09-28 Ulrich Drepper <drepper@redhat.com>
8144 * iconvdata/Makefile (modules): Add KOI8-RU.
8145 (distribute): Add koi8-ru.c.
8146 (gen-8bit-gap-modules): Add koi8-ru.
8147 * iconvdata/koi8-ru.c: New file.
8148 * iconvdata/gconv-modules: Add entries for KOI8-RU.
8149 * iconvdata/TESTS: Likewise.
8150 * iconvdata/tst-tables.sh: Likewise.
8152 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8154 2007-09-26 Jakub Jelinek <jakub@redhat.com>
8156 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8157 with __warning__/__error__ attributes.
8158 (__warnattr): Define.
8159 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8160 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8162 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8163 of __*_chk if compile time detectable overflow is found.
8164 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8165 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8167 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8168 instead of __*_chk if compile time detectable overflow is found.
8169 (__gets_alias): Rename to...
8170 (__gets_warn): ... this. Add __warnattr.
8171 (gets): Call __gets_warn instead of __gets_alias.
8172 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8173 aliases with __warnattr.
8174 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8175 time detectable overflow is found.
8176 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8177 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8178 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8179 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8180 __getdomainname_chk_warn): New aliases with __warnattr.
8181 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8182 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8183 __*_chk_warn instead of __*_chk if compile time detectable overflow
8185 (__getgroups_chk): Rename argument to __listlen from listlen.
8186 (__getwd_alias): Rename to...
8187 (__getwd_warn): ... this. Add __warnattr.
8188 (getwd): Call __getwd_warn instead of __getwd_alias.
8189 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8190 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8191 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8192 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8193 __wcsnrtombs_chk_warn): New aliases with __warnattr.
8194 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8195 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8196 compile time detectable overflow is found.
8197 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
8198 to use __*_chk or not.
8199 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8200 in comparisons which function should be called and in __*_chk*
8201 arguments. Call __*_chk_warn instead of __*_chk if compile time
8202 detectable overflow is found.
8203 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8205 * debug/tst-chk1.c (do_test): Add a few more tests.
8207 2007-09-24 Ulrich Drepper <drepper@redhat.com>
8210 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8211 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8212 (_nl_unload_domain): Finalize conversions_lock.
8213 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8214 handling table of known conversions.
8216 2007-09-24 Jakub Jelinek <jakub@redhat.com>
8218 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8219 close_not_cancel_no_status instead of close.
8221 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
8224 * posix/regcomp.c (lookup_collation_sequence_value): Check that
8225 nrules != 0 for multibyte chars.
8227 2007-09-23 Ulrich Drepper <drepper@redhat.com>
8229 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8230 Provide better error message in case the type is unknown.
8233 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8234 * string/stratcliff.c: Make usable to test wide char functions.
8235 * wcsmbs/wcsatcliff.c: New file.
8236 * wcsmbs/Makefiel (tests): Add wcsatcliff.
8239 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8240 (distribute): Add mac-centraleurope.c.
8241 (gen-8bit-gap-modules): Add mac-centraleurope.
8242 * iconvdata/mac-centraleurope.c: New file.
8243 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8244 * iconvdata/TESTS: Likewise.
8245 * iconvdata/tst-tables.sh: Likewise.
8248 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8250 2007-09-21 Ulrich Drepper <drepper@redhat.com>
8252 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8253 from __x86_64_core_cache_size_half.
8254 (init_cacheinfo): Compute shared cache size for AMD processors with
8255 shared L3 correctly.
8256 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8258 Patch in large parts by Evandro Menezes.
8260 2007-09-19 Ulrich Drepper <drepper@redhat.com>
8262 * elf/dl-lookup.c (add_dependency): Handle failing memory
8263 allocation for dependency list. Remove unnecessary check.
8265 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8266 open/close when determining source addresses.
8268 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8269 sha512-crypt, and sha512.
8270 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8271 (distribute): Add sha256.h and sha512.h.
8272 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8273 and call the appropriate code.
8274 * crypt/sha256-crypt.c: New file.
8275 * crypt/sha256.c: New file.
8276 * crypt/sha256.h: New file.
8277 * crypt/sha256c-test.c: New file.
8278 * crypt/sha256test.c: New file.
8279 * crypt/sha512-crypt.c: New file.
8280 * crypt/sha512.c: New file.
8281 * crypt/sha512.h: New file.
8282 * crypt/sha512c-test.c: New file.
8283 * crypt/sha512test.c: New file.
8285 2007-09-19 Jakub Jelinek <jakub@redhat.com>
8287 * misc/bits/syslog.h (syslog): Remove extraneous argument from
8288 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8291 2007-09-18 Jakub Jelinek <jakub@redhat.com>
8293 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8294 %as in fscanf format strings.
8296 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8297 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8298 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8300 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8303 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8304 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8305 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8306 * elf/dl-sym.c (do_sym): Likewise.
8307 * include/link.h (struct link_map): Add l_serial field.
8308 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8309 * elf/dl-lookup.c (add_dependency): Add flags argument.
8310 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8311 flags, use THREAD_GSCOPE_RESET_FLAG before and
8312 THREAD_GSCOPE_SET_FLAG after
8313 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8314 Don't dereference map until it has been found on some list.
8315 If map->l_serial changed, return -1.
8317 2007-09-17 Jakub Jelinek <jakub@redhat.com>
8319 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8320 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8321 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8323 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8324 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8325 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8326 add libc_hidden_proto.
8327 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8328 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8329 conformance requested.
8330 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8331 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8332 conformance requested.
8333 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8334 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8335 conformance requested.
8336 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8337 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8338 ISO C99 or POSIX conformance requested.
8339 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8340 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8341 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8342 and __isoc99_vsscanf@@GLIBC_2.7.
8343 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8344 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8345 (tests): Add scanf14.
8346 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8347 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8348 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8349 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8350 CFLAGS-isoc99_scanf.c): Add $(exceptions).
8351 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8352 from using internal headers.
8353 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8354 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8355 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8356 and __isoc99_vswscanf@@GLIBC_2.7.
8357 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8358 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8359 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8360 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8361 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8362 * stdio-common/isoc99_scanf.c: New file.
8363 * stdio-common/isoc99_vsscanf.c: New file.
8364 * stdio-common/isoc99_vscanf.c: New file.
8365 * stdio-common/isoc99_vfscanf.c: New file.
8366 * stdio-common/isoc99_fscanf.c: New file.
8367 * stdio-common/isoc99_sscanf.c: New file.
8368 * wcsmbs/isoc99_fwscanf.c: New file.
8369 * wcsmbs/isoc99_vswscanf.c: New file.
8370 * wcsmbs/isoc99_swscanf.c: New file.
8371 * wcsmbs/isoc99_wscanf.c: New file.
8372 * wcsmbs/isoc99_vwscanf.c: New file.
8373 * wcsmbs/isoc99_vfwscanf.c: New file.
8374 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8375 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8376 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8377 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8378 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8379 * stdio-common/scanf14.c: New test.
8380 * stdio-common/scanf15.c: New test.
8381 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8382 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8383 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8384 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8385 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8386 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8387 __nldbl___isoc99_scanf@@GLIBC_2.7,
8388 __nldbl___isoc99_fscanf@@GLIBC_2.7,
8389 __nldbl___isoc99_sscanf@@GLIBC_2.7,
8390 __nldbl___isoc99_vscanf@@GLIBC_2.7,
8391 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8392 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8393 __nldbl___isoc99_wscanf@@GLIBC_2.7,
8394 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8395 __nldbl___isoc99_swscanf@@GLIBC_2.7,
8396 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8397 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8398 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8399 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8400 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8401 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8402 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8403 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8404 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8405 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8406 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8407 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8408 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8409 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8410 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8412 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8413 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8414 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8415 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8416 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8417 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8418 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8419 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8420 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8421 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8422 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8423 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8425 * stdio-common/Makefile (tests): Add scanf13.
8427 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8428 m modifier followed by l.
8429 (STRING_ARG): Add width argument.
8430 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8431 <case L_('C')>: Handle %mlc and %mC.
8432 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8434 * stdio-common/scanf13.c: New test.
8436 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8437 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8439 2007-09-18 Ulrich Drepper <drepper@redhat.com>
8441 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8442 type and __THROW marker of splice, vmsplice, and tee.
8443 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8444 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8445 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8446 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8447 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8448 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8449 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8450 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8451 as cancellation points.
8453 2003-11-01 Daniel Jacobowitz <dan@debian.org>
8455 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8456 parse more than three parts of the version number.
8458 2007-09-15 Ulrich Drepper <drepper@redhat.com>
8460 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8461 modifier. Patch by Jakub Jelinek.
8463 2007-08-26 Jakub Jelinek <jakub@redhat.com>
8465 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8466 call_fallocate in misc subdir.
8467 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8468 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8469 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8470 instead of __fallocate64.
8471 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8473 2007-09-15 Jakub Jelinek <jakub@redhat.com>
8475 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8476 * rt/Makefile (headers): Add bits/mqueue2.h.
8477 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8478 optimizing with GCC and __va_arg_pack_len is defined.
8479 * rt/bits/mqueue2.h: New file.
8480 * rt/mq_open.c (__mq_open): Renamed from mq_open.
8481 (mq_open): New strong_alias.
8482 (__mq_open_2): New function.
8483 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8484 (mq_open): New strong_alias.
8485 (__mq_open_2): New function.
8486 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8487 * Versions.def (librt): Add GLIBC_2.7 version.
8488 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8489 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8491 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8492 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8493 is defined rather than when not C++.
8494 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8495 __openat64_alias): New redirects.
8496 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8497 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8498 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8499 (open, open64, openat, openat64): Rewrite as __extern_always_inline
8500 functions instead of function-like macros.
8502 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
8504 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8505 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8506 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8508 2007-09-15 Mike Frysinger <vapier@gentoo.org>
8510 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8511 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8513 2007-09-14 Mike Frysinger <vapier@gentoo.org>
8515 * inet/tst-network.c: Increment ERRORS for failing tests.
8517 2007-09-07 Jakub Jelinek <jakub@redhat.com>
8519 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8520 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8521 implement as __extern_always_inline function.
8522 (vsyslog): Define as __extern_always_inline function unconditionally.
8523 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8524 When __va_arg_pack is defined, implement as __extern_always_inline
8526 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8527 __extern_always_inline functions unconditionally.
8528 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8529 bits/stdio2.h will be included.
8530 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8531 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8532 implement as __extern_always_inline functions.
8533 (vswprintf, vwprintf, vfwprintf): Define as
8534 __extern_always_inline functions unconditionally.
8535 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8537 2007-09-03 Jakub Jelinek <jakub@redhat.com>
8539 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8540 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8542 * include/features.h (__USE_EXTERN_INLINES): Define only when
8543 __extern_inline is defined.
8544 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8545 is defined instead of when not __cplusplus.
8546 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8547 is defined instead of when not __cplusplus.
8548 * socket/sys/socket.h: Include bits/socket2.h when
8549 __extern_always_inline is defined instead of when not __cplusplus.
8550 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8551 is defined instead of when not __cplusplus.
8552 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8553 is defined instead of when not __cplusplus.
8554 * string/string.h: Include bits/string3.h when __extern_always_inline
8555 is defined instead of when not __cplusplus.
8556 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8557 is defined instead of when not __cplusplus.
8558 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8559 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8561 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8562 defined __extern_always_inline instead of !defined __cplusplus.
8563 * libio/bits/stdio-ldbl.h: Likewise.
8564 * wcsmbs/bits/wchar-ldbl.h: Likewise.
8565 * misc/bits/syslog.h (syslog): Don't define for C++.
8566 (vsyslog): Use __extern_always_inline function for C++ instead of
8568 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8569 whenever that macro is defined.
8570 (vprintf): Don't provide the inline for C++.
8571 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8572 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8573 define the macros for C++.
8574 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8575 __extern_always_inline functions for C++.
8576 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8577 stat64, lstat64, fstat64, fstatat64): Don't define if not
8578 __USE_EXTERN_INLINES.
8579 * wcsmbs/bits/wchar2.h: Fix #error message.
8580 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8581 (vswprintf, vwprintf, vfwprintf): Define using
8582 __extern_always_inline functions for C++.
8583 * string/bits/string3.h: Don't #undef macros if __cplusplus.
8584 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8585 strncpy, strcat, strncat): Define as __extern_always_inline
8586 functions instead of macros for C++.
8587 * math/bits/cmathcalls.h: Guard __extern_inline routines with
8588 defined __extern_inline.
8589 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8590 to __extern_inline whenever that macro is defined.
8591 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8592 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8593 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8594 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8595 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8596 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8597 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8598 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8599 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8600 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8601 prototypes. Only provide __extern_inline routines if
8602 __USE_EXTERN_INLINES.
8603 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8605 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8606 For now avoid some *printf tests in C++. Skip all testing
8607 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8609 * debug/tst-chk4.cc: New file.
8610 * debug/tst-chk5.cc: New file.
8611 * debug/tst-chk6.cc: New file.
8612 * debug/tst-lfschk4.cc: New file.
8613 * debug/tst-lfschk5.cc: New file.
8614 * debug/tst-lfschk6.cc: New file.
8615 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8617 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8618 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8619 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8621 2007-09-13 Ulrich Drepper <drepper@redhat.com>
8623 * po/cs.po: Update from translation team.
8625 2007-09-11 Roland McGrath <roland@redhat.com>
8627 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8630 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8632 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8634 2007-09-05 Roland McGrath <roland@redhat.com>
8636 * manual/signal.texi (Signaling Another Process): Typo fix.
8637 From Karl Berry <karl@freefriends.org>.
8639 2007-08-29 Ulrich Drepper <drepper@redhat.com>
8641 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8642 zero if not defined.
8643 (make_request): Recognize optimistic addresses and treat them like
8644 deprecated addresses.
8645 Reported by Neil Horman <nhorman@redhat.com>.
8647 2007-08-28 Ulrich Drepper <drepper@redhat.com>
8649 * nscd/connections.c (send_ro_fd): Also transfer file size.
8650 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8651 file size don't call fstat.
8653 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8654 ahead and map the file. This should always be correct and we can
8655 catch problems later.
8657 2007-08-28 Jakub Jelinek <jakub@redhat.com>
8659 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8661 (__fread_alias, __fread_unlocked_alias): New aliases.
8662 (fread): New extern inline.
8663 (fread_unlocked): Likewise. Undef macro before definition of
8664 the inline function.
8665 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8666 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8667 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8668 and __fread_unlocked_chk@@GLIBC_2.7.
8669 * debug/fread_chk.c: New file.
8670 * debug/fread_u_chk.c: New file.
8671 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8673 2007-08-27 Jakub Jelinek <jakub@redhat.com>
8675 * sysdeps/unix/sysv/linux/syscalls.list
8676 (personality): Change caller to EXTRA.
8678 2007-08-25 Ulrich Drepper <drepper@redhat.com>
8680 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8682 * iconvdata/iso-2022-cn.c (BODY): Likewise.
8684 * locale/programs/ld-collate.c (collate_output): Avoid warning if
8687 * Makerules: Use -p option with mkdir.
8689 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8690 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8691 (_xdr_directory_obj): Likewise.
8692 (xdr_entry_obj): Likewise.
8693 (xdr_group_obj): Likewise.
8694 (xdr_link_obj): Likewise.
8695 (xdr_table_obj): Likewise.
8696 (_xdr_nis_result): Likewise.
8697 (_xdr_ns_request): Likewise.
8698 (_xdr_ib_request): Likewise.
8699 (_xdr_nis_taglist): Likewise.
8700 (xdr_cback_data): Likewise.
8701 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8702 (xdr_ypresp_maplist): Likewise.
8704 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8706 * posix/regex_internal.h: Prevent some declarations and definitions
8707 to be seen when used in tests.
8709 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8710 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8712 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8714 * config.make.in (datarootdir): Add to shut up configure.
8716 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8717 associativity for fully-associative caches.
8719 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8720 requests. Fill on more associativity values for L2.
8721 Patch mostly by Evandro Menezes.
8723 2007-08-24 Ulrich Drepper <drepper@redhat.com>
8725 * sysdeps/unix/sysv/linux/x86_64/init-first.c
8726 (_libc_vdso_platform_setup): Avoid using exported variable by using
8729 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8731 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8732 fallocate64 as EXTRA. It is not referenced if the symbol isn't
8735 2007-08-23 Ulrich Drepper <drepper@redhat.com>
8737 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8738 align stack for call if pltexit is to be used.
8741 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8742 align for function call in case pltexit has to be called later.
8744 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8745 implicit atomic operation when storing function pointer.
8746 (_dl_runtime_profile): Likewise.
8748 2007-08-17 Jakub Jelinek <jakub@redhat.com>
8750 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8753 2007-08-21 Ulrich Drepper <drepper@redhat.com>
8756 * string/strtok.c: Fix typo in comment.
8759 * debug/segfault.c: Fix typos in comments.
8762 * stdio-common/tempnam.c: Fix comment, it is not checked that
8763 TMPDIR points to a writable directory.
8766 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8767 memory allocated for the name server address.
8770 * nscd/connections.c (handle_request): Using sendfile always
8771 requires that mmap is used for the database.
8772 Patch by Petr Baudis <pasky@suse.cz>.
8775 * nscd/hstcache.c (cache_addhst): When reloading an entry which
8776 suddenly has two or more addresses, ignore it and remove the old
8780 * resolv/res_hconf.c: Prepare for compiling outside libc.
8781 * nscd/res_hconf.c: New file.
8782 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
8784 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
8785 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
8787 * nscd/hstcache.c (cache_addhst): Minimal optimization.
8790 * debug/pcprofiledump.c: Turn on internationalization by calling
8791 setlocale. Patch mostly by Benno Schulenberg.
8794 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
8796 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
8797 * iconvdata/bug-iconv5.c: New file.
8799 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
8802 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
8803 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
8804 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
8805 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
8806 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
8807 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
8808 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
8809 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
8811 2007-08-21 Ulrich Drepper <drepper@redhat.com>
8814 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
8815 lookup loop. Suggested by John Reiser.
8817 2007-08-21 Jakub Jelinek <jakub@redhat.com>
8819 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
8821 2007-08-20 Ulrich Drepper <drepper@redhat.com>
8823 * csu/libc-start.c: Don't handle VDSO_SETUP here.
8824 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
8825 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
8826 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
8827 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
8829 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
8831 2007-08-18 Ulrich Drepper <drepper@redhat.com>
8833 * po/nl.po: Update from translation team.
8835 2007-08-16 Andreas Jaeger <aj@suse.de>
8837 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
8838 Reported by Peter Festner <peter.festner@ewetel.net>.
8840 2007-08-17 Jakub Jelinek <jakub@redhat.com>
8842 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
8844 2007-08-16 Jakub Jelinek <jakub@redhat.com>
8846 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
8847 to check for undefined symbols.
8849 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
8850 If the syscall fails, set errno to the actual returned error number
8852 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
8853 arguments are incorrect, set errno to EINVAL, if the syscall
8854 fails, set errno to the actual returned error number.
8856 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
8857 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
8859 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
8860 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
8862 (ASI_PNF, ASI_BLK_P): Don't define.
8863 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
8864 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
8866 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
8867 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
8870 2007-08-15 Jakub Jelinek <jakub@redhat.com>
8872 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
8873 FE_UNDERFLOW on Niagara CPUs.
8875 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
8878 2007-08-14 Jakub Jelinek <jakub@redhat.com>
8880 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
8881 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
8882 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
8883 flush should be used or not inside of the function.
8884 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
8886 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
8887 __thread_start): Use HIDDEN_JUMPTARGET.
8888 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
8889 __thread_start): Likewise.
8890 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
8892 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
8893 Add libc_hidden_proto.
8894 (STRTOF): Add libc_hidden_proto.
8895 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
8896 (strtold_l, wcstold_l): Use them as second argument for
8899 2007-08-14 Ulrich Drepper <drepper@redhat.com>
8901 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
8903 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8905 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
8907 2007-08-14 Ulrich Drepper <drepper@redhat.com>
8909 * po/bg.po: New file. From the translation team.
8911 2007-08-13 Jakub Jelinek <jakub@redhat.com>
8913 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
8914 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
8915 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
8916 when each feature was introduced.
8918 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
8919 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
8920 (CHECK_HASH): New macro.
8921 (PREPARE_VERSION): Use it.
8923 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
8924 prototype if not __ASSUME_PSELECT.
8925 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
8926 prototype if not __ASSUME_PPOLL.
8928 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
8930 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
8931 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
8934 2007-08-13 Ulrich Drepper <drepper@redhat.com>
8936 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8937 (_libc_vdso_platform_setup): If vDSO is not available point
8938 __vdso_gettimeofday to the vsyscall.
8939 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
8940 __vdso_gettimeofday instead of vsyscall.
8942 2007-08-13 Jakub Jelinek <jakub@redhat.com>
8944 * nscd/servicescache.c: Include kernel-features.h.
8945 * nscd/gai.c: Likewise.
8946 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8947 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8948 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
8949 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
8950 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
8951 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
8952 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
8953 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
8954 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
8956 2007-08-12 Ulrich Drepper <drepper@redhat.com>
8958 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
8959 and _dl_get_origin defines anymore.
8961 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
8962 Build fix for systems which might lack POSIX timer support.
8964 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
8965 (_libc_vdso_platform_setup): Mangle function pointers before storing
8967 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
8968 Demangle vdso pointer before use.
8969 (INTERNAL_VSYSCALL): Likewise.
8971 * elf/cache.c (primes): Mark as const.
8972 Noted by Roland McGrath.
8974 2007-08-01 Andreas Jaeger <aj@suse.de>
8975 Jakub Jelinek <jakub@redhat.com>
8977 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
8978 (options): Add option.
8979 (parse_opt): Handle option.
8980 (manual_link): Adjust process_file caller. Call implicit_soname.
8981 (search_dir): Formatting. Use and populate auxiliary cache.
8982 (main): Load and save auxiliary cache.
8983 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
8984 stat64 from fstat64 to caller.
8985 (implicit_soname): New function.
8986 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
8987 leave *soname as NULL.
8988 * elf/cache.c: Include libgen.h.
8989 (print_entry, print_cache, compare, save_cache, add_to_cache):
8990 Formatting and cleanups.
8991 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
8992 aux_cache_file): New structures.
8993 (AUX_CACHEMAGIC): Define.
8994 (primes): New array.
8995 (aux_hash_size, aux_hash): New variables.
8996 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
8997 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
8998 load_aux_cache, save_aux_cache): New functions.
8999 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9000 (init_aux_cache, search_aux_cache, add_to_aux_cache,
9001 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9002 (process_file): Adjust prototype.
9004 2007-08-12 Jakub Jelinek <jakub@redhat.com>
9006 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9009 2007-08-12 Ulrich Drepper <drepper@redhat.com>
9011 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9012 r_found_version structure as second parameter.
9013 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9014 (_dl_vdso_vsym): Change type of second parameter accordingly.
9015 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9016 (_libc_vdso_platform_setup): Adjust.
9017 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9018 (_libc_vdso_platform_setup): Likewise.
9020 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9021 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9022 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9023 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9024 * csu/libc-start.c: Pretty printing.
9025 Use VDSO_SETUP if defined.
9026 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9027 and let generic code call into _libc_vdso_platform_setup.
9028 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9029 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9030 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9031 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9032 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9034 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9035 (sysdep_rountines): Add dl-vdso.
9037 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9040 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9041 attribute_hidden to __vdso_gettimeofday prototype.
9043 2007-08-12 Roland McGrath <roland@redhat.com>
9045 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9046 From: Karl Berry <karl@freefriends.org>.
9048 2007-08-11 Ulrich Drepper <drepper@redhat.com>
9050 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9051 an atime update for the files we read.
9053 2007-08-10 Ulrich Drepper <drepper@redhat.com>
9055 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9057 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
9060 * misc/Makefile (routines): Add mkostemp and mkostemp64.
9061 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9062 * misc/mkostemp.c: New file.
9063 * misc/mkostemp64.c: New file.
9064 * stdlib/stdlib.h: Declare the new functions.
9065 * sysdeps/posix/tempname.c: Add new parameter which is added to
9066 the flags for open. Remove __GT_BIGFILE handling.
9067 * stdio-common/tempname.c: Likewise.
9068 * include/stdio.h: Adjust __gen_tempname prototype.
9069 Renumber __GT_* constants.
9070 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9071 * misc/mkdtemp.c: Likewise.
9072 * misc/mkstemp.c: Likewise.
9073 * misc/mkstemp64.c: Likewise.
9074 * misc/mktemp.c: Likewise.
9075 * stdio-common/tempnam.c: Likewise.
9076 * stdio-common/tmpfile.c: Likewise.
9077 * stdio-common/tmpfile64.c: Likewise.
9078 * stdio-common/tmpnam.c: Likewise.
9079 * stdio-common/tmpnam_r.c: Likewise.
9081 2007-08-10 Roland McGrath <roland@frob.com>
9083 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9085 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9086 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9088 2007-08-10 Ulrich Drepper <drepper@redhat.com>
9090 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9092 * nss/nss_files/files-alias.c (internal_setent): Likewise.
9093 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9094 * nss/nss_files/files-have_o_cloexec.c: New file.
9096 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9099 2007-08-10 Jakub Jelinek <jakub@redhat.com>
9101 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9102 ___new_wcstold_l): New weak aliases.
9103 (strtold_l, wcstold_l): Use them as second argument for
9106 2007-08-09 Ulrich Drepper <drepper@redhat.com>
9108 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9109 register in test for error.
9111 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9112 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9114 * po/sv.po: Update from translation team.
9116 2007-08-06 Roland McGrath <roland@redhat.com>
9118 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9119 Remove __strto*_l inlines.
9120 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9121 * stdlib/strtod.c: Add libc_hidden_def.
9122 * stdlib/strtod_l.c: Likewise.
9123 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9124 for __new_strtold and __new_wcstold.
9125 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9127 * stdlib/strtol.c: Add libc_hidden_def.
9128 * stdlib/strtol_l.c: Likewise.
9129 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9132 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9134 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9135 * scripts/data/localplt-generic.data: ... here.
9136 * elf/Makefile (check-data): Get generic file if no other.
9137 ($(objpfx)check-localplt.out): Make target unconditional.
9139 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9142 2007-08-05 Ulrich Drepper <drepper@redhat.com>
9144 * po/zh_CN.po: Updated translation from translation team.
9146 2007-08-05 Jakub Jelinek <jakub@redhat.com>
9148 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9149 Don't use CGOTSETUP and CGOTRESTORE macros.
9151 2007-08-04 Roland McGrath <roland@redhat.com>
9153 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9155 2007-08-04 Jakub Jelinek <jakub@redhat.com>
9157 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9158 __extension__ around the whole statement expression.
9160 2007-08-04 Ulrich Drepper <drepper@redhat.com>
9162 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9163 elements during initialization.
9165 * po/pl.po: Updated translation from translation team.
9166 * po/tr.po: Likewise.
9167 * po/nl.po: Likewise.
9169 2007-08-03 Ulrich Drepper <drepper@redhat.com>
9171 * rt/aio.h: Add __nonnull attributes.
9173 2007-08-03 Jakub Jelinek <jakub@redhat.com>
9175 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9176 * stdlib/Makefile (tests): Add tst-strtod5.
9177 (tst-strtod5-ENV): New.
9178 * stdlib/tst-strtod5.c: New file.
9180 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9182 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9185 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9188 2007-08-03 Jakub Jelinek <jakub@redhat.com>
9190 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9193 2007-08-02 Ulrich Drepper <drepper@redhat.com>
9195 * io/Makefile (aux): Add have_o_cloexec.
9196 * include/fcntl.h: Declare __have_o_cloexec.
9197 * io/have_o_cloexec.c: New file.
9198 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9199 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9200 fcntl call if not necessary.
9201 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9204 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9205 Avoid memset, add explicit initialization.
9206 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9207 to the end and change into zero-sized array.
9208 Move lock member to fill a hole on 64-bit platforms.
9210 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9212 * include/stdlib.h: Add __strto*_internal prototypes here.
9213 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9215 * include/wchar.h: Add __wcsto*_internal prototypes.
9216 * sysdeps/generic/inttypes.h: No need to protect the declaration
9217 of the __strto*_internal and __wcsto*_internal members here.
9219 * rt/mqueue.h: Change const to __const and add nonnull attributes.
9221 2007-08-02 Roland McGrath <roland@redhat.com>
9223 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9224 $(inst_bindir)/getconf if possible.
9226 * posix/Makefile ($(objpfx)getconf.speclist): New target.
9227 (generated): Add it.
9228 ($(inst_libexecdir)/getconf): Use it.
9230 2007-08-01 Ulrich Drepper <drepper@redhat.com>
9232 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9233 /proc is faster and sufficient. /sys is still needed for
9236 2007-08-01 Jakub Jelinek <jakub@redhat.com>
9238 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9239 syscall as __fallocate64.
9240 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9241 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9243 2007-07-30 Jakub Jelinek <jakub@redhat.com>
9245 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9248 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9249 if off_t is different rank from size_t.
9251 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9252 uw_frame_state_for): Avoid type punning warnings.
9253 * sysdeps/generic/unwind-dw2-fde-glibc.c
9254 (_Unwind_IteratePhdrCallback): Likewise.
9255 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9256 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9257 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9260 2007-07-31 Ulrich Drepper <drepper@redhat.com>
9262 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9263 total processors using sysfs.
9264 (__get_nprocs): Use sysfs to determine which processors are online.
9266 2007-07-31 Jakub Jelinek <jakub@redhat.com>
9268 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9269 syscall arguments count.
9271 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9273 2007-07-30 Roland McGrath <roland@redhat.com>
9275 * manual/libc.texinfo: Update copyrights, formatting magic, and
9276 @dircategory. From Karl Berry <karl@freefriends.org>.
9278 2007-07-29 Ulrich Drepper <drepper@redhat.com>
9281 * io/Makefile (headers): Add bits/fcntl2.h.
9283 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9285 (__CPU_EQUAL_S): Likewise.
9287 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9288 (tests): Add tst-cpuset.
9289 * posix/sched_cpualloc.c: New file.
9290 * posix/sched_cpufree.c: New file.
9291 * posix/tst-cpuset.c: New file.
9292 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9294 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9295 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9296 macros. Define CPU_*_S macros.
9298 2007-07-28 Ulrich Drepper <drepper@redhat.com>
9300 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9304 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9305 #.0g and value rounded to 1.0.
9306 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9308 2007-07-26 Jakub Jelinek <jakub@redhat.com>
9310 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9311 for int_frac_digits and frac_digits.
9313 * login/logout.c (logout): Avoid aliasing violation.
9314 * login/logwtmp.c (logwtmp): Likewise.
9316 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9318 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9320 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9322 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9324 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9327 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9329 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9331 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9332 char * to avoid warning.
9333 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9335 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9337 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9338 allocate_arrays): Cast second argument to charmap_find_symbol
9339 to char * to avoid warnings.
9341 * locale/programs/repertoire.c (repertoire_new_char): Change
9342 from_nr, to_nr and cnt to unsigned long, adjust printf format
9345 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9346 Cast second argument to new_element to char * to avoid warnings.
9348 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9350 * intl/gettextP.h (struct loaded_domain): Change plural to const
9351 struct expression *.
9352 * intl/plural-eval.c (plural_eval): Change first argument to
9353 const struct expression *.
9354 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9355 argument to const struct expression **.
9356 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9358 * intl/loadmsgcat (_nl_unload_domain): Cast away const
9359 in call to __gettext_free_exp.
9361 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9362 unitialized wstring/wpattern var warnings.
9364 * posix/runtests.c (struct a_test): Make data field const char *.
9366 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9367 vars if not LDBL_MANT_DIG >= 106.
9369 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9371 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9372 __find_specmb to avoid warning.
9374 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9376 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9379 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9382 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9383 tv var when it will be actually used.
9385 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9388 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9389 char array resp. pointer.
9390 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9392 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9393 to const unsigned char **.
9394 (ucs4_to_cns11643): Change second argument to unsigned char *.
9395 * iconvdata/euc-tw.c (BODY): Change endp type to
9396 const unsigned char *.
9397 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9399 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9400 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9401 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9402 types to unsigned char pointers/arrays instead of char.
9403 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9405 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9406 * iconvdata/jis0212.h: Include assert.h.
9407 (ucs4_to_jisx0212): Change second argument to unsigned char *.
9408 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9409 of trying to handle that.
9410 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9412 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9413 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9414 two dimensional const unsigned char arrays.
9415 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9416 Initialize endp to inptr to shut up a warning.
9418 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9421 * time/strptime_l.c (__strptime_internal): Silently ignore
9422 strftime modifiers and field width in recursive calls.
9424 * include/time.h (enum ptime_locale_status): Remove.
9425 (__strptime_internal): Remove decided and era_cnt arguments,
9426 add statep argument.
9427 * time/strptime_l.c (__strptime_internal): Remove decided
9428 and era_cnt arguments, add statep argument. Don't recompute
9429 any fields in recursive calls, only update caller's tm
9430 and state, if recursive call fails, don't change tm nor
9432 (get_alt_number): Adjust.
9433 (recursive): Adjust caller.
9434 (strptime): Likewise.
9435 * time/strptime.c (strptime): Likewise.
9437 2007-07-19 Jakub Jelinek <jakub@redhat.com>
9439 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9440 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9441 if from and to charsets are the same.
9442 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9443 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9444 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9446 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9448 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9449 Don't define wint_t when __need_mbstate_t unless it
9451 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9452 in the typedef if possible.
9453 * wctype/wctype.h (wint_t): Define by including
9454 wchar.h with __need_wint_t instead of including stddef.h
9455 with __need_wint_t and as fallback definining it ourselves.
9456 * iconv/gconv.h (__need_wint_t): Define before including
9458 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9459 or _GLIBCPP_USE_WCHAR_T.
9460 (__need_wchar_t): Don't define
9461 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9462 (__need_wint_t): Don't define before including stddef.h,
9463 define before including wchar.h only if _LIBC or
9464 _GLIBCPP_USE_WCHAR_T.
9465 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9466 * sysdeps/mach/hurd/_G_config.h: Likewise.
9467 * sysdeps/generic/_G_config.h: Likewise.
9468 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9469 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9470 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9471 if _LIBC or _GLIBCPP_USE_WCHAR_T.
9473 2007-07-28 Ulrich Drepper <drepper@redhat.com>
9475 * sysdeps/posix/posix_fallocate64.c: Undefine
9476 __posix_fallocate64_l64 before alias handling.
9477 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9478 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9479 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9480 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9482 * io/tst-posix_fallocate.c: Include <fcntl.h>.
9484 2007-07-23 Jakub Jelinek <jakub@redhat.com>
9486 * locale/programs/ld-collate.c (atwc): New variable.
9487 (add_to_tablewc): New toplevel function, moved from collate_output.
9488 (collate_output): Remove add_to_tablewc nested function.
9490 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9491 (name_insert): New function.
9492 (write_output): Remove hash_table and hash_size vars and name_insert
9495 2007-07-24 Roland McGrath <roland@redhat.com>
9497 * Makerules (install-others-programs-nosubdir): New target.
9498 (install-no-libc.a-nosubdir): Depend on it.
9500 * iconv/Makefile (install-others-programs): Set this instead of
9502 * login/Makefile (install-others-programs): Likewise.
9503 * posix/Makefile (install-others-programs): Likewise.
9505 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9508 2007-07-23 Ulrich Drepper <drepper@redhat.com>
9510 * io/Makefile (tests): Add tst-posix_fallocate.
9511 * io/tst-posix_fallocate.c: New file.
9513 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9516 2007-07-22 Roland McGrath <roland@frob.com>
9518 * hurd/getdport.c: Add missing copyright year update.
9520 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9521 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9523 2007-07-22 Ulrich Drepper <drepper@redhat.com>
9525 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9527 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9528 O_CLOEXEC is needed.
9529 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9530 Avoid additional fcntl to set O_CLOEXEC if not needed.
9531 * nis/nss_compat/compat-initgroups.c: Likewise.
9532 * nis/nss_compat/compat-pwd.c: Likewise.
9533 * nis/nss_compat/compat-spwd.c: Likewise.
9535 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
9538 * manual/errno.texi: Change ECANCELED value to 119.
9541 * mach/lock-intern.h: Include <sys/cdefs.h>.
9544 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9548 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9551 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9553 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
9555 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9557 * sysdeps/mach/hurd/i386/tls.h: Likewise.
9559 2007-07-21 Ulrich Drepper <drepper@redhat.com>
9561 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9562 descriptor received from nscd.
9564 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9566 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9567 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9568 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9569 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9570 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9571 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9573 2007-07-20 Jakub Jelinek <jakub@redhat.com>
9576 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9579 * login/forkpty.c (forkpty): Close master and slave fds on
9580 fork failure. Patch by
9581 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9583 2007-07-18 Jakub Jelinek <jakub@redhat.com>
9585 * include/features.h (__USE_ISOC95): New define.
9586 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9587 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9588 for -std=iso9899:199409.
9589 * CONFORMANCE: Remove comments about unsupported AMD1.
9591 2007-07-17 Jakub Jelinek <jakub@redhat.com>
9593 * sysdeps/ia64/sched_cpucount.c: New file.
9594 * sysdeps/powerpc/sched_cpucount.c: New file.
9596 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9597 __BEGIN_DECLS/__END_DECLS around the prototype.
9598 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
9599 pointer to const cpu_set_t.
9601 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9602 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9603 __need_size_t and include stddef.h.
9604 * sysvipc/sys/msg.h: Likewise.
9605 * posix/sched.h: Likewise.
9606 * hurd/hurd/signal.h (__need_size_t): Define.
9608 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9609 neither does signal.h in pedantic ISO C namespaces. stdio.h
9610 no longer defines wint_t or wchar_t.
9612 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9613 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9614 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9615 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9616 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9617 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9618 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9619 * debug/printf_chk.c (__printf_chk): Likewise.
9620 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9621 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9623 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9626 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9627 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9629 2007-07-16 Jakub Jelinek <jakub@redhat.com>
9632 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9633 * malloc/malloc.h (realloc): Likewise.
9635 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9636 if one of proc_file_chain streams has that fileno.
9637 * stdio-common/Makefile (tests): Add tst-popen2.
9638 * stdio-common/tst-popen2.c: New test.
9640 2007-07-14 Jakub Jelinek <jakub@redhat.com>
9642 * elf/ldconfig.c: Allow GPLv2 or any later version.
9643 * elf/readlib.c: Likewise.
9644 * elf/chroot_canon.c: Likewise.
9645 * elf/cache.c: Likewise.
9646 * nscd/mem.c: Likewise.
9647 * nscd/getpwuid_r.c: Likewise.
9648 * nscd/grpcache.c: Likewise.
9649 * nscd/aicache.c: Likewise.
9650 * nscd/getsrvbynm_r.c: Likewise.
9651 * nscd/nscd.c: Likewise.
9652 * nscd/servicescache.c: Likewise.
9653 * nscd/getsrvbypt_r.c: Likewise.
9654 * nscd/initgrcache.c: Likewise.
9655 * nscd/gethstbyad_r.c: Likewise.
9656 * nscd/gethstbynm2_r.c: Likewise.
9657 * nscd/getgrnam_r.c: Likewise.
9658 * nscd/nscd_setup_thread.c: Likewise.
9659 * nscd/getpwnam_r.c: Likewise.
9660 * nscd/gai.c: Likewise.
9661 * nscd/connections.c: Likewise.
9662 * nscd/dbg_log.c: Likewise.
9663 * nscd/cache.c: Likewise.
9664 * nscd/hstcache.c: Likewise.
9665 * nscd/nscd_conf.c: Likewise.
9666 * nscd/getgrgid_r.c: Likewise.
9667 * nscd/pwdcache.c: Likewise.
9668 * catgets/gencat.c: Likewise.
9669 * locale/programs/linereader.h: Likewise.
9670 * locale/programs/locarchive.c: Likewise.
9671 * locale/programs/ld-paper.c: Likewise.
9672 * locale/programs/locfile-kw.h: Likewise.
9673 * locale/programs/ld-address.c: Likewise.
9674 * locale/programs/xmalloc.c: Likewise.
9675 * locale/programs/ld-time.c: Likewise.
9676 * locale/programs/localedef.c: Likewise.
9677 * locale/programs/simple-hash.c: Likewise.
9678 * locale/programs/xstrdup.c: Likewise.
9679 * locale/programs/ld-numeric.c: Likewise.
9680 * locale/programs/locfile-kw.gperf: Likewise.
9681 * locale/programs/ld-collate.c: Likewise.
9682 * locale/programs/charmap-kw.gperf: Likewise.
9683 * locale/programs/charmap.h: Likewise.
9684 * locale/programs/charmap-kw.h: Likewise.
9685 * locale/programs/config.h: Likewise.
9686 * locale/programs/locfile.c: Likewise.
9687 * locale/programs/ld-ctype.c: Likewise.
9688 * locale/programs/charmap.c: Likewise.
9689 * locale/programs/ld-messages.c: Likewise.
9690 * locale/programs/repertoire.h: Likewise.
9691 * locale/programs/locale.c: Likewise.
9692 * locale/programs/ld-name.c: Likewise.
9693 * locale/programs/linereader.c: Likewise.
9694 * locale/programs/locfile.h: Likewise.
9695 * locale/programs/3level.h: Likewise.
9696 * locale/programs/ld-monetary.c: Likewise.
9697 * locale/programs/ld-measurement.c: Likewise.
9698 * locale/programs/charmap-dir.c: Likewise.
9699 * locale/programs/ld-identification.c: Likewise.
9700 * locale/programs/localedef.h: Likewise.
9701 * locale/programs/charmap-dir.h: Likewise.
9702 * locale/programs/repertoire.c: Likewise.
9703 * locale/programs/simple-hash.h: Likewise.
9704 * locale/programs/ld-telephone.c: Likewise.
9705 * locale/programs/locale-spec.c: Likewise.
9706 * locale/programs/locfile-token.h: Likewise.
9707 * posix/getconf.c: Likewise.
9708 * iconv/dummy-repertoire.c: Likewise.
9709 * iconv/iconv_charmap.c: Likewise.
9710 * iconv/iconvconfig.c: Likewise.
9711 * iconv/iconv_prog.c: Likewise.
9712 * malloc/memusagestat.c: Likewise.
9713 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9715 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9717 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9718 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9719 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9720 check for the first argument.
9722 2007-07-12 Jakub Jelinek <jakub@redhat.com>
9725 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9726 (__tgmath_real_type): Fix if expr is const int or other const
9727 qualified integral type.
9728 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9729 expressions and handle const qualified arguments.
9730 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9731 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9732 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9733 statement expressions.
9734 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9735 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9736 (__TGMATH_UNARY_IMAG): Define.
9737 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9738 * math/Makefile (tests): Add test-tgmath2.
9739 (CFLAGS-test-tgmath2.c): Add.
9740 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9741 count_cfloat, count_cldouble): New variables.
9743 (main): Check number of complex calls as well.
9744 (F(compile_test)): Add complex tests and tests with const qualified
9746 (y, z, ccount): Define.
9747 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9748 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9749 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9750 F(cproj)): New functions.
9751 * math/test-tgmath2.c: New test.
9753 2007-07-11 Jakub Jelinek <jakub@redhat.com>
9756 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9757 RPATH etc. as "/" rather than "", don't segfault on empty paths,
9759 * dlfcn/Makefile (distribute): Add glreflib3.c.
9760 (module-names): Add glreflib3.
9761 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9763 (LDFLAGS_glreflib3.so): New.
9764 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9766 * dlfcn/glreflib3.c: New file.
9768 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9769 returned -1, return NULL.
9770 * intl/explodename.c (_nl_explode_name): Return -1 if
9771 _nl_normalize_codeset failed.
9773 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
9775 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9776 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
9777 and avoid branch misspredicts for > 31 bytes memset case.
9778 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
9779 Remove toc ref to __cache_line_size.
9781 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
9782 to get ISA-V2.0 branch hints.
9783 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
9784 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
9785 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9786 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9787 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9788 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
9789 Remove toc ref to __cache_line_size.
9791 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
9792 Include math_ldbl_opt.h.
9794 2007-07-10 Ulrich Drepper <drepper@redhat.com>
9797 * time/strptime_l.c (__strptime_internal): Implement greedy
9798 matching of weekday and month names.
9800 2007-07-09 Roland McGrath <roland@redhat.com>
9802 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
9803 (ELF_NOTE_ABI): Use it.
9804 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
9806 2007-07-09 Ulrich Drepper <drepper@redhat.com>
9808 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
9809 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9811 2007-07-07 Ulrich Drepper <drepper@redhat.com>
9814 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
9815 in loop to look for conversion specifier to avoid testing of
9817 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
9818 * stdio-common/bug18.c: New file.
9819 * stdio-common/bug18a.c: New file.
9820 * stdio-common/bug19.c: New file.
9821 * stdio-common/bug19a.c: New file.
9823 2007-07-05 Mike Frysinger <vapier@gentoo.org>
9825 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
9828 2007-07-01 Jakub Jelinek <jakub@redhat.com>
9830 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
9831 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
9832 Return NULL if mmap failed instead of asserting it does not.
9833 (calloc): Check for integer overflow.
9835 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
9838 2007-07-03 Jakub Jelinek <jakub@redhat.com>
9841 * nis/nss-default.c: Include errno.h.
9842 (init): Preserve errno.
9844 2007-07-02 Ulrich Drepper <drepper@redhat.com>
9846 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
9848 2007-06-30 Ulrich Drepper <drepper@redhat.com>
9850 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
9852 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
9854 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
9856 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
9858 * sysdeps/s390/dl-procinfo.c: New file.
9859 * sysdeps/s390/dl-procinfo.h: New file.
9860 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
9862 2007-06-29 Jakub Jelinek <jakub@redhat.com>
9864 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
9865 in PT_NOTE segments with multiple notes.
9866 * elf/readelflib.c (process_elf_file): Likewise.
9868 2007-06-22 Ulrich Drepper <drepper@redhat.com>
9870 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
9873 2007-06-19 Ulrich Drepper <drepper@redhat.com>
9875 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
9877 2007-06-13 Jakub Jelinek <jakub@redhat.com>
9879 * include/link.h: Don't include rtld-lowlevel.h.
9880 (struct link_map): Remove l_scope_lock.
9881 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
9882 (_dl_scope_free_list): New field (variable) in _rtld_global.
9883 (DL_LOOKUP_SCOPE_LOCK): Remove.
9884 (_dl_scope_free): New prototype.
9885 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
9886 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
9887 (_dl_profile_fixup): Likewise.
9888 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
9889 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
9890 THREAD_GSCOPE_RESET_FLAG around it.
9891 * elf/dl-close.c (_dl_close_worker): Don't use
9892 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
9893 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
9894 scopes were queued or if l_scope_mem has been abandoned.
9895 * elf/dl-open.c (_dl_scope_free): New function.
9896 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
9897 * elf/dl-support.c (_dl_scope_free_list): New variable.
9898 * elf/dl-lookup.c (add_dependency): Remove flags argument.
9899 Remove DL_LOOKUP_SCOPE_LOCK handling.
9900 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
9902 * elf/dl-object.c (_dl_new_object): Don't use
9903 __rtld_mrlock_initialize.
9905 2007-06-19 Ulrich Drepper <drepper@redhat.com>
9907 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
9909 (rtld_global_ro): Likewise.
9911 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9913 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
9914 Move PT_LOAD checking to...
9915 (_dl_addr_inside_object): ... here, new function.
9916 * elf/dl-sym.c (do_sym): If not l_contiguous,
9917 call _dl_addr_inside_object.
9918 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
9919 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9920 * elf/dl-open.c (dl_open_worker): Likewise.
9921 (_dl_addr_inside_object): New function if IS_IN_rtld.
9922 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
9923 holes are present or are PROT_NONE protected.
9924 * include/link.h (struct link_map): Add l_contiguous field.
9925 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
9927 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9928 Tomas Janousek <tjanouse@redhat.com>
9929 Ulrich Drepper <drepper@redhat.com>
9932 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
9933 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
9935 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
9936 unused member a bitmap.
9937 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
9938 servers are configured.
9940 2007-06-18 Jakub Jelinek <jakub@redhat.com>
9942 * elf/rtld.c (dl_main): Don't call init_tls more than once.
9944 2007-06-17 Andreas Schwab <schwab@suse.de>
9946 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
9948 2007-06-16 Andreas Jaeger <aj@suse.de>
9951 * sysdeps/unix/sysv/linux/sys/ptrace.h
9952 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
9953 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
9954 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
9955 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
9956 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
9958 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9959 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
9960 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9961 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9963 2007-06-16 Ulrich Drepper <drepper@redhat.com>
9966 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
9967 determining whether there are IPv4/IPv6 addresses, ignore loopback
9970 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
9972 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
9973 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
9974 as the return type. Change type of "r" variable to CMPtype.
9975 * soft-fp/eqsf2.c (__eqsf2): Likewise.
9976 * soft-fp/eqtf2.c (__eqtf2): Likewise.
9977 * soft-fp/gedf2.c (__gedf2): Likewise.
9978 * soft-fp/gesf2.c (__gesf2): Likewise.
9979 * soft-fp/getf2.c (__getf2): Likewise.
9980 * soft-fp/ledf2.c (__ledf2): Likewise.
9981 * soft-fp/lesf2.c (__lesf2): Likewise.
9982 * soft-fp/letf2.c (__letf2): Likewise.
9983 * soft-fp/unorddf2 (__unorddf2): Likewise.
9984 * soft-fp/unordsf2 (__unordsf2): Likewise.
9985 * soft-fp/unordtf2 (__unordtf2): Likewise.
9987 2007-06-09 Ulrich Drepper <drepper@redhat.com>
9989 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
9990 make sure gcc doesn't mess around with this.
9992 2007-06-08 Ulrich Drepper <drepper@redhat.com>
9994 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
9996 2007-06-08 Jakub Jelinek <jakub@redhat.com>
9998 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
9999 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10000 at most once per _dl_close_worker.
10002 2007-06-08 Ulrich Drepper <drepper@redhat.com>
10004 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10005 __sched_cpucount as const.
10006 * posix/sched_cpucount.c: Adjust.
10008 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10009 instruction for counting bits.
10010 * sysdeps/x86_64/sched_cpucount.c: New file.
10012 2007-06-07 Ulrich Drepper <drepper@redhat.com>
10014 * configure.in: Avoid variable named BASH.
10015 * config.make.in: Likewise.
10016 Patch in part by Mike Frysinger.
10018 2007-06-06 Jakub Jelinek <jakub@redhat.com>
10021 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10022 pseudo-zeros as zero.
10023 * sysdeps/x86_64/ldbl2mpn.c: New file.
10024 * sysdeps/ia64/ldbl2mpn.c: New file.
10026 2007-06-04 Jakub Jelinek <jakub@redhat.com>
10028 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10029 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10030 Remove unreachable code at the end.
10032 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
10034 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10035 ldbl-128ibm in comment.
10036 (fpclassifyl): Correct classification of denormals.
10037 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10038 return value for MIN denormal. Rewrite using long double math too
10039 correctly handle denormals and canonicalize the results.
10041 2007-06-05 Jakub Jelinek <jakub@redhat.com>
10043 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10044 (__mpn_construct_long_double): Fix conversion where result ought
10045 to be smaller than __LDBL_MIN__, or the low double should be
10046 denormal. Fix decision where to negate low double - honor round
10048 * stdio-common/tst-sprintf2.c: Include string.h.
10049 (COMPARE_LDBL): Define.
10050 (TEST): Also test whether a string hexadecimal float representation
10051 can be parsed back to the number.
10052 (main): Add a couple of further tests.
10054 2007-06-04 Jakub Jelinek <jakub@redhat.com>
10056 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10057 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10058 is non-zero, but smaller than 2 * __DBL_MIN__.
10059 * stdio-common/tst-sprintf2.c: New test.
10060 * stdio-common/Makefile (tests): Add tst-sprintf2.
10062 * math/test-misc.c (main): Don't run last batch of tests with
10063 IBM long double format.
10065 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10067 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10068 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10069 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10070 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10071 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10072 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10073 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10074 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10075 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10076 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10077 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10078 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10080 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10082 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10084 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10086 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10088 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10089 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10091 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10093 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10095 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10097 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10100 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10102 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10103 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10104 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10105 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10106 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10107 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10108 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10109 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10111 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
10113 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10114 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10115 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10116 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10117 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10118 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10119 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10120 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10122 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
10124 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10125 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10126 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10127 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10129 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
10131 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10132 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10134 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
10136 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10137 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10138 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10139 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10141 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
10143 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10144 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10146 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
10148 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10149 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10151 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10152 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10153 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10154 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10156 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
10158 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10159 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10160 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10161 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10163 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
10165 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10166 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10167 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10168 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10169 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10170 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10172 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
10174 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10175 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10176 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10177 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10179 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
10181 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10182 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10183 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10184 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10185 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10186 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10187 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10188 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10189 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10190 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10191 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10192 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10193 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10194 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10195 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10196 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10198 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
10200 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10201 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10203 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
10205 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10206 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10208 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
10210 * sysdeps/powerpc/powerpc32/970/Implies: New file.
10211 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10212 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10213 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10214 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10215 * sysdeps/powerpc/powerpc64/970/Implies: New file.
10216 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10217 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10218 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10219 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10221 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
10223 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10225 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
10227 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10228 branch miss-predicts. Ensure that cache line crossing does not impact
10231 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
10233 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10234 "../../powerpc32/power4/memcopy.h".
10235 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10236 "../../powerpc32/power4/wordcopy.c".
10238 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
10240 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10241 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10242 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10243 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10244 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10245 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10247 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
10249 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10251 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
10253 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10254 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10255 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10256 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10257 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10258 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10259 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10260 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10262 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
10264 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10266 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
10268 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10269 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10270 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10271 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10272 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10273 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10274 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10276 2007-05-29 Roland McGrath <roland@redhat.com>
10278 * po/Makefile (po-sed-cmd): New variable.
10279 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10281 2007-05-29 Ulrich Drepper <drepper@redhat.com>
10283 * crypt/md5-crypt.c: Fix comment.
10285 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10286 of crashing. When this is the case or if the reply is malformed,
10287 don't try to close the new file descriptor since it does not
10289 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10291 2007-05-28 Jakub Jelinek <jakub@redhat.com>
10293 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10294 if __NR_utimensat is not defined.
10296 2007-05-26 Ulrich Drepper <drepper@redhat.com>
10298 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10300 2007-05-25 Jakub Jelinek <jakub@redhat.com>
10302 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10303 (open): Fix comment typos. Don't call __open_2 if flags
10304 is a compile time constant without O_CREAT.
10305 (__open64_2): Add nonnull attribute.
10306 (open64): Fix comment typos. Don't call __open64_2 if flags
10307 is a compile time constant without O_CREAT.
10308 (__openat_2): Add nonnull attribute, fix nonnull attribute
10310 (openat): Fix comment typos. Don't call __openat_2 if flags
10311 is a compile time constant without O_CREAT.
10312 (__openat64_2): Add nonnull attribute, fix nonnull attribute
10314 (openat64): Fix comment typos. Don't call __openat64_2 if flags
10315 is a compile time constant without O_CREAT.
10317 2007-05-24 Ulrich Drepper <drepper@redhat.com>
10319 * Makerules (sysd-rules): Define PTW for ptw-* files.
10320 * Versions: Define GLIBC_2.7 for libc.
10321 * include/stdio.h: Declare __fortify_fail.
10322 * debug/fortify_fail.c: New file.
10323 * debug/Makefile (routines): Add fortify_fail.
10324 * debug/chk_fail.c: Use __fortify_fail.
10325 * debug/stack_chk_fail.c: Likewise.
10326 * io/Versions: Export __open_2, __open64_2, __openat_2, and
10327 __openat64_2 for GLIBC_2.7.
10328 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10329 * io/open.c: Define *_2 variant of function which checks for O_CREAT
10330 and fails if necessary.
10331 * io/open64.c: Likewise.
10332 * io/openat.c: Likewise.
10333 * io/openat64.c: Likewise.
10334 * sysdeps/unix/sysv/linux/open64.c: Likewise.
10335 * sysdeps/unix/sysv/linux/openat.c: Likewise.
10336 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10337 * io/bits/fcntl2.h: New file.
10338 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10340 * include/bits/fcntl2.h: New file.
10341 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10343 * sysdeps/unix/sysv/linux/open_2.c: New file.
10345 2007-05-21 Ulrich Drepper <drepper@redhat.com>
10347 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10348 as second parameter to handle_intel.
10350 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10353 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10355 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
10356 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10358 * sysdeps/x86_64/memcpy.S: Complete rewrite.
10359 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10360 Patch by Evandro Menezes <evandro.menezes@amd.com>.
10362 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10364 2007-05-21 Jakub Jelinek <jakub@redhat.com>
10367 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10368 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10369 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10371 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10374 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10375 reinitialize workend at the start of each do_positional format spec
10376 loop, free workstart before do_positional loops.
10377 (printf_unknown): Fix size of work_buffer.
10378 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10380 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10381 (public_sET_STATe): If ms->version < 3, put all chunks into
10382 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10385 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10386 * malloc/hooks.c: Likewise.
10387 * malloc/arena.c: Likewise.
10388 * malloc/malloc.c (do_check_malloc_state): Don't assert
10389 n_mmaps is not greater than n_mmaps_max. This removes the need
10390 for the previous change.
10392 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10395 2007-05-19 Ulrich Drepper <drepper@redhat.com>
10397 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10398 Define for kernel >= 2.6.22.
10400 2007-05-18 Ulrich Drepper <drepper@redhat.com>
10402 * elf/dl-close.c (_dl_close_worker): When removing object from
10403 global scope, wait for all lookups to finish afterwards.
10404 * elf/dl-open.c (add_to_global): When global scope array must
10405 grow, allocate a new one and free old array only after all
10407 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10408 (_dl_lookup_symbol_x): Likewise.
10409 * elf/dl-support.c: Define _dl_wait_lookup_done.
10410 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10411 _dl_wait_lookup_done.
10413 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10414 not overlapping with arena.
10416 * malloc/mcheck.c (reallochook): If size==0, free the block.
10418 * rt/tst-shm.c: Use fstat64 instead of fstat.
10420 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10421 __NR_sync_file_range is not defined.
10423 2007-05-17 Ulrich Drepper <drepper@redhat.com>
10425 Dummy files to prevent stub versions from being used.
10426 * sysdeps/x86_64/fpu/k_cosl.c: New file.
10427 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10428 * sysdeps/x86_64/fpu/k_sinl.c: New file.
10429 * sysdeps/x86_64/fpu/k_tanl.c: New file.
10431 * version.h (VERSION): Set to 2.6.90.
10433 2007-05-14 Ulrich Drepper <drepper@redhat.com>
10435 * version.h (VERSION): Define to 2.6.
10436 * include/features.h (__GLIBC_MINOR__): Define to 6.
10438 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10440 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10443 2007-05-13 Ulrich Drepper <drepper@redhat.com>
10445 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10446 number of mmaps. n_mmaps_max is the target.
10447 * malloc/hooks.c: Likewise.
10448 * malloc/arena.c: Likewise.
10450 2007-05-12 Andreas Jaeger <aj@suse.de>
10452 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10455 2007-05-11 Ulrich Drepper <drepper@redhat.com>
10457 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10458 adding new variables.
10460 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10461 optimize. Completely extend global scope array before making the
10462 new entries visible.
10464 2007-05-10 Ulrich Drepper <drepper@redhat.com>
10466 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10467 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10470 * include/link.h: Move l_version and l_nversion members around to
10473 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10475 * sysdeps/unix/sysv/linux/sched_setaffinity.c
10476 (__sched_setaffinity_new): If syscall was successful and
10477 RESET_VGETCPU_CACHE is defined, use it before returning.
10478 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10480 * io/sys/stat.h: Make sure struct timespec is defined for
10483 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10485 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10486 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10487 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10488 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10489 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10490 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10491 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10492 * io/sys/stat.h: Declare utimensat, futimens.
10493 * io/utimensat.c: New file.
10494 * io/futimens.c: New file.
10495 * sysdeps/unix/sysv/linux/utimensat.c: New file.
10496 * sysdeps/unix/sysv/linux/futimens.c: New file.
10497 * io/Makefile (routines): Add utimensat, futimens.
10498 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10499 * sysdeps/unix/sysv/linux/lutimes.c: New file.
10500 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10503 * include/sys/cdefs.h: Redefine __nonnull so that test for
10504 incorrect parameters in the libc code itself are not omitted.
10506 2007-05-09 Jakub Jelinek <jakub@redhat.com>
10508 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10509 exception in addition to inexact when asked to raise only FE_INEXACT.
10512 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10515 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10518 * string/strfry.c (strfry): Make result more random.
10520 2007-05-07 Richard Henderson <rth@redhat.com>
10522 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10523 if __NO_LONG_DOUBLE_MATH.
10524 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10525 available in the compiler, add .arch directive to the assembly.
10527 2007-05-07 Jakub Jelinek <jakub@redhat.com>
10529 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10530 compat_symbol to GLIBC_2_1.
10531 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10532 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10533 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10534 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10535 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10536 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10537 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10539 (__isnanl): New compat_symbol.
10541 2007-05-07 Ulrich Drepper <drepper@redhat.com>
10542 Jakub Jelinek <jakub@redhat.com>
10544 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10545 (new_heap): Initialize mprotect_size.
10546 (grow_heap): When growing, only mprotect from mprotect_size till
10547 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
10548 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10550 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
10551 Peter Bergner <bergner@us.ibm.com>
10553 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10554 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
10555 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10556 * sysdeps/powerpc/fpu/fe_mask.c: New file.
10557 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10558 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10559 Call __fe_mask_env() if all FP exceptions disabled.
10560 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10561 from old FPSCR to new fenv to propagate DFP rounding modes.
10562 Call __fe_mask_env() if FP exceptions previously enabled.
10563 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10564 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
10565 transitioning from all exceptions disabled to any exception enabled
10567 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10568 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
10569 when transitioning from all exceptions disabled to any exception
10570 enabled or visa versa.
10571 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10572 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10573 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10574 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10575 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10576 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10578 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10581 * posix/unistd.h: Remove __THROW from fdatasync.
10583 2007-05-06 Mike Frysinger <vapier@gentoo.org>
10586 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10588 2007-05-06 Ulrich Drepper <drepper@redhat.com>
10590 * stdio-common/vfprintf.c (process_string_arg): Optimize
10591 ridiculous precision in wide char code printing multi-byte string.
10592 Reported by Jim Meyering <jim@meyering.net>.
10595 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10596 boundaries to work around systems with overlapping binary loading.
10597 Based on a patch by Suzuki <suzuki@in.ibm.com>.
10599 2007-05-04 Ulrich Drepper <drepper@redhat.com>
10601 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10602 __mbsnrtowcs after last change.
10604 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10605 (get_ident): Likewise.
10607 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10609 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10610 with setting the sticky bit.
10611 * math/test-misc.c (main): Add more truncation tests.
10613 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
10615 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10616 double in the function declaration.
10617 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10618 double in the function declaration.
10619 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10620 float in the function declaration.
10621 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10622 float in the function declaration.
10624 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10625 denormal operands. Do not generate FP_EX_DENORM exception.
10626 (FP_UNPACK_RAW_EP): Ditto.
10627 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10628 undefined _FP_UNPACK_RAW_E.
10629 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10630 undefined _FP_UNPACK_RAW_EP.
10631 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10632 undefined _FP_PACK_RAW_E.
10633 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10634 undefined _FP_PACK_RAW_EP.
10636 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10638 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10641 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
10642 Jakub Jelinek <jakub@redhat.com>
10644 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10645 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
10647 * soft-fp/op-common.h (FP_TRUNC): Ditto.
10649 2007-05-03 Jakub Jelinek <jakub@redhat.com>
10651 * math/test-misc.c (main): Add tests for rounding long double
10652 values close to smallest double denormalized value to double.
10654 2007-04-30 Joseph Myers <joseph@codesourcery.com>
10656 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10657 condition for truncating to 0. Set sticky bit for such
10660 2007-05-02 Jakub Jelinek <jakub@redhat.com>
10662 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10663 fixed length array for ignore.
10665 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10668 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10669 stack for large precisions.
10670 * stdio-common/test-vfprintf.c (main): Add test for large
10673 2007-04-30 Jakub Jelinek <jakub@redhat.com>
10675 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10677 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10680 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10681 account in the size check.
10682 * resolv/tst-inet_ntop.c: New test.
10683 * resolv/Makefile (tests): Add tst-inet_ntop.
10685 2007-04-30 Ulrich Drepper <drepper@redhat.com>
10686 Jakub Jelinek <jakub@redhat.com>
10689 * malloc/malloc.c: Keep separate list for first blocks on the bin
10690 lists with a given size. This helps skipping over list elements
10691 we know won't fit in two places.
10692 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10694 2007-04-28 Ulrich Drepper <drepper@redhat.com>
10697 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10698 label to Teredo tunnel addresses 2001://32.
10700 2007-04-27 Ulrich Drepper <drepper@redhat.com>
10702 * locale/programs/ld-collate.c (collate_read): Allow order_start
10705 * locale/programs/ld-collate.c (collate_read): Fix printing of
10709 * locale/C-translit.h.in: Add entry for U2044.
10712 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10713 hexa-decimal floats without exponent.
10714 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10716 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10718 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10719 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10720 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10721 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10723 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10726 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10728 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10729 of 0 after the out_fail label.
10731 2007-04-25 Ulrich Drepper <drepper@redhat.com>
10734 * iconv/gconv_charset.h (strip): Allow ':'.
10735 * iconv/iconv_open.c (iconv_open): Adjust comment.
10737 2007-04-25 Jakub Jelinek <jakub@redhat.com>
10739 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10742 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10745 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10746 alignment of buffer and tmp_buffer.
10747 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10748 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10749 alignment of buffer.
10750 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
10751 bigger than INT_MAX.
10752 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
10753 h_errnop arguments. Fail if buflen is too small.
10754 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10756 2007-04-23 Jakub Jelinek <jakub@redhat.com>
10759 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10760 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
10762 2007-04-22 Roland McGrath <roland@redhat.com>
10764 * elf/elf.h (NT_PRXFPREG): New macro.
10766 2007-04-19 Andreas Jaeger <aj@suse.de>
10769 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10770 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10773 2007-04-19 Ulrich Drepper <drepper@redhat.com>
10775 * include/sys/mman.h: Mark madvise hidden.
10776 * misc/madvise.c: Add libc_hidden_def.
10778 2007-04-06 Jakub Jelinek <jakub@redhat.com>
10780 * nis/nis_domain_of.c (__nis_domain_of): New function.
10781 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
10782 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
10783 * nis/nis_call.c (rec_dirsearch): Likewise.
10784 (first_shoot): Likewise. Remove search_parent_first argument.
10785 (struct nis_server_cache): Rename search_parent_first field
10787 (nis_server_cache_search, nis_server_cache_add): Rename
10788 search_parent_first argument to search_parent.
10789 (__nisfind_server): Likewise. If search_parent, call
10792 2007-04-18 Ulrich Drepper <drepper@redhat.com>
10794 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
10796 2007-04-17 Ulrich Drepper <drepper@redhat.com>
10799 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
10801 2007-04-16 Ulrich Drepper <drepper@redhat.com>
10804 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
10806 2007-04-15 Jakub Jelinek <jakub@redhat.com>
10808 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
10809 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
10810 current number of locales in SUPPORTED.
10811 (create_archive): Initialize serial.
10812 (enlarge_archive): Preserve aliases rather than duplicating
10815 2007-04-13 Jakub Jelinek <jakub@redhat.com>
10817 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
10818 after _IO_un_link, not before it.
10820 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
10821 special case handling when wcp == wstartp + 1. Fix a comment typo.
10822 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
10824 2007-03-30 Jakub Jelinek <jakub@redhat.com>
10826 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
10827 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
10828 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
10830 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
10831 _IO_file_xsgetn_maybe_mmap): Likewise.
10832 * libio/oldfileops.c (old_do_write): Likewise.
10833 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
10834 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
10835 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
10836 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
10837 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
10838 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
10839 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
10840 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
10841 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
10842 _IO_file_underflow, _IO_file_underflow_mmap,
10843 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
10844 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
10845 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
10846 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
10847 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
10848 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
10849 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
10850 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
10851 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
10852 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
10853 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
10854 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
10855 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
10856 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
10857 _IO_adjust_column_internal, _IO_default_uflow_internal,
10858 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
10859 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
10860 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
10861 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
10862 _IO_file_close_it_internal, _IO_file_underflow_internal,
10863 _IO_file_overflow_internal, _IO_file_attach_internal,
10864 _IO_file_fopen_internal, _IO_file_sync_internal,
10865 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
10866 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
10867 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
10868 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
10869 _IO_seekpos_unlocked): Likewise.
10870 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
10871 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
10873 2007-04-16 Jakub Jelinek <jakub@redhat.com>
10875 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
10876 argument in xmalloc size computation.
10878 2007-04-01 Jakub Jelinek <jakub@redhat.com>
10880 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
10881 math_opt_barrier and math_force_eval macros.
10883 2007-03-27 Jakub Jelinek <jakub@redhat.com>
10886 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
10887 * sysdeps/i386/fpu/math_private.h: New file.
10888 * sysdeps/x86_64/fpu/math_private.h: New file.
10889 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
10890 math_force_eval macros. Use "+m" constraint on asm rather than
10892 * math/s_nextafter.c (__nextafter): Likewise.
10893 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10895 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
10896 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
10897 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10898 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
10899 math_opt_barrier and math_force_eval macros.
10900 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
10901 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
10902 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
10903 (__nexttoward): Use math_opt_barrier and
10904 math_force_eval macros. Use "+m" constraint on asm rather than
10905 "=m" and "m". Only use asm to force double result if
10906 FLT_EVAL_METHOD is 2.
10907 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
10908 (__nexttowardf): Use math_opt_barrier and
10909 math_force_eval macros. Use "+m" constraint on asm rather than
10910 "=m" and "m". Only use asm to force double result if
10911 FLT_EVAL_METHOD is not 0.
10912 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
10913 (__nexttowardf): Use math_opt_barrier and
10914 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10915 x to float using asm.
10916 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
10917 (__nldbl_nexttowardf): Use math_opt_barrier and
10918 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
10919 x to float using asm.
10920 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
10921 (__nexttowardf): Use math_opt_barrier and math_force_eval
10922 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
10923 * math/bug-nextafter.c (zero, inf): New variables.
10924 (main): Add new tests.
10925 * math/bug-nexttoward.c (zero, inf): New variables.
10926 (main): Add new tests.
10928 2007-03-22 Jakub Jelinek <jakub@redhat.com>
10931 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
10932 exceptions both in SW and MXCSR.
10933 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
10934 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
10935 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10936 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10937 in MXCSR if SSE is available.
10938 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
10940 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
10942 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
10943 Return 0 rather than 1.
10944 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
10945 Remove incorrect part of a comment. Fix argument to feraiseexcept.
10946 * math/test-fenv.c (feholdexcept_tests): New function.
10949 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
10952 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
10955 2007-04-13 Jakub Jelinek <jakub@redhat.com>
10958 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
10959 Reported by David Anderson <davea42@earthlink.net>.
10961 2007-04-07 Ulrich Drepper <drepper@redhat.com>
10963 * posix/sys/wait.h: Remove unnecessary forward declaration.
10965 2007-04-05 Jakub Jelinek <jakub@redhat.com>
10967 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
10968 with obj->do_servers after first_shoot.
10970 2007-04-03 Ulrich Drepper <drepper@redhat.com>
10972 * posix/Makefile (routines): Add sched_cpucount.
10973 (tests): Add tst-cpucount.
10974 * posix/sched_cpucount.c: New file.
10975 * posix/tst-cpucount.c: New file.
10976 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
10977 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
10978 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
10979 * posix/sched.h: Define CPU_COUNT.
10981 2007-03-27 Jakub Jelinek <jakub@redhat.com>
10983 * posix/fnmatch.c (STRUCT): Define.
10984 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
10985 * posix/fnmatch_loop.c (struct STRUCT): New type.
10986 (FCT): Add ends argument. If ends != NULL and normal * is
10987 seen in the pattern, store current pattern and string pointers
10988 and return. Adjust recursive calls.
10989 (EXT): Adjust FCT callers.
10990 (STRUCT): Undef at the end of the file.
10991 * posix/Makefile (tests): Add tst-fnmatch2.
10992 * posix/tst-fnmatch2.c: New test.
10994 2007-04-01 Jakub Jelinek <jakub@redhat.com>
10996 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
10999 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11000 Change last argument to unsigned int.
11002 2007-03-23 Jakub Jelinek <jakub@redhat.com>
11004 * scripts/check-local-headers.sh: Filter out sys/capability.h.
11006 2007-03-22 Jakub Jelinek <jakub@redhat.com>
11008 * config.h.in (HAVE_LIBCAP): Add.
11009 * nscd/selinux.h: Include sys/capability.h rather than non-existent
11010 sys/capabilities.h.
11011 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11012 free_caps. Cast away const from 4th cap_set_flag argument.
11014 2007-03-26 Ulrich Drepper <drepper@redhat.com>
11016 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11018 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11019 Add sync_file_range.
11020 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11022 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
11024 * sysdeps/powerpc/bits/atomic.h
11025 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11026 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11027 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11028 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11029 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11030 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11031 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11032 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11033 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11034 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11035 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11036 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11037 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11038 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11039 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11040 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11041 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11042 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11043 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11044 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11046 2007-03-20 Jakub Jelinek <jakub@redhat.com>
11048 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11049 (__cache_line_size): Define the variable here. Add
11050 attribute_hidden, remove weak_extern.
11051 (__libc_start_main): Set __cache_line_size
11053 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11054 (__cache_line_size): Define the variable here. Add
11055 attribute_hidden, remove weak_extern.
11056 (DL_PLATFORM_AUXV): Set __cache_line_size
11058 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11059 weak_extern, add attribute_hidden.
11060 (__elf_machine_runtime_setup): Assume __cache_line_size is always
11062 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11064 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11066 2007-03-26 Jakub Jelinek <jakub@redhat.com>
11069 * timezone/africa: Update from tzdata2007d.
11070 * timezone/asia: Likewise.
11071 * timezone/australasia: Likewise.
11072 * timezone/backward: Likewise.
11073 * timezone/europe: Likewise.
11074 * timezone/iso3166.tab: Likewise.
11075 * timezone/leapseconds: Likewise.
11076 * timezone/northamerica: Likewise.
11077 * timezone/southamerica: Likewise.
11078 * timezone/zone.tab: Likewise.
11080 * timezone/private.h: Update from tzcode2007d.
11081 * timezone/zdump.c: Likewise.
11082 * timezone/zic.c: Likewise.
11084 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11086 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11087 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11089 (nis_server_cache_search, nis_server_cache_add): New functions.
11090 (__nisfind_server): Use them. Add dbp and flags argument, if
11091 call __nisbind_create.
11092 (__nisbind_create): Add server_used and current_ep arguments,
11093 only call __nis_findfastest if server_used is ~0.
11094 (__do_niscall2, __prepare_niscall): Adjust callers.
11095 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11096 ckey_cache_euid, ckey_cache_lock): New variables.
11097 (get_ckey): New function.
11098 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11099 __pmap_getnisport. Save __pmap_getnisport result in
11100 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
11102 * nis/nis_lookup.c (nis_lookup): Likewise.
11103 * nis/nis_table.c (nis_list): Likewise.
11104 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11107 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11108 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11109 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11110 _nss_nisplus_getservbyport_r): Likewise.
11111 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11112 _nss_nisplus_getnetbyaddr_r): Likewise.
11113 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11114 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11115 _nss_nisplus_getntohost_r): Likewise.
11116 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11117 _nss_nisplus_getrpcbynumber_r): Likewise.
11119 2007-03-20 Jakub Jelinek <jakub@redhat.com>
11121 * configure.in (libc_cv_gnu89_inline): Only do compile test.
11122 * configure: Rebuilt.
11124 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11126 * soft-fp/extended.h (_FP_UNION_E): Likewise.
11128 2006-06-07 Joseph Myers <joseph@codesourcery.com>
11131 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11134 2007-03-18 Jakub Jelinek <jakub@redhat.com>
11136 * nscd/gai.c: Include alloca.h.
11137 (__libc_use_alloca): Define.
11139 2007-03-16 Jakub Jelinek <jakub@redhat.com>
11141 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11143 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11144 (DL_DST_REQUIRED): Adjust user.
11146 * include/dlfcn.h (struct link_map): New forward decl.
11148 * inet/getnameinfo.c: Include stddef.h.
11149 (getnameinfo): Use offsetof.
11151 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11153 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11155 * string/strerror_l.c: Include stdlib.h.
11157 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11158 * config.make.in (gnu89-inline-CFLAGS): New variable.
11159 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11161 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11162 * argp/argp.h: Use it.
11163 * bits/mathinline.h: Likewise.
11164 * bits/sigset.h: Likewise.
11165 * bits/string.h: Likewise.
11166 * ctype/ctype.h: Likewise.
11167 * hurd/hurd.h: Likewise.
11168 * hurd/hurd/fd.h: Likewise.
11169 * hurd/hurd/port.h: Likewise.
11170 * hurd/hurd/signal.h: Likewise.
11171 * hurd/hurd/threadvar.h: Likewise.
11172 * hurd/hurd/userlink.h: Likewise.
11173 * io/sys/stat.h: Likewise.
11174 * libio/bits/stdio.h: Likewise.
11175 * libio/bits/stdio2.h: Likewise.
11176 * mach/lock-intern.h: Likewise.
11177 * mach/mach/mig_support.h: Likewise.
11178 * math/bits/cmathcalls.h: Likewise.
11179 * posix/bits/unistd.h: Likewise.
11180 * socket/bits/socket2.h: Likewise.
11181 * stdlib/bits/stdlib.h: Likewise.
11182 * stdlib/stdlib.h: Likewise.
11183 * string/argz.h: Likewise.
11184 * string/bits/string2.h: Likewise.
11185 * string/bits/string3.h: Likewise.
11186 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11187 * sysdeps/generic/inttypes.h: Likewise.
11188 * sysdeps/generic/machine-lock.h: Likewise.
11189 * sysdeps/generic/machine-sp.h: Likewise.
11190 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11191 * sysdeps/i386/i486/bits/string.h: Likewise.
11192 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11193 * sysdeps/mach/alpha/machine-lock.h: Likewise.
11194 * sysdeps/mach/alpha/machine-sp.h: Likewise.
11195 * sysdeps/mach/i386/machine-lock.h: Likewise.
11196 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11197 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11198 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11199 * sysdeps/s390/bits/string.h: Likewise.
11200 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11201 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11202 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11203 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11204 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11205 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11206 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11207 * wcsmbs/bits/wchar2.h: Likewise.
11208 * wcsmbs/wchar.h: Likewise.
11209 * stdlib/gmp.h: Likewise. Include <features.h> to get
11210 __extern_inline definition.
11212 2007-03-15 Jakub Jelinek <jakub@redhat.com>
11214 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11218 * math/libm-test.inc (log_test): Test -Inf and NaN.
11219 (log10_test, log1p_test, log2_test): Test -Inf.
11220 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11221 FE_INVALID when argument is qNaN.
11222 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11223 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11224 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11225 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11226 andb $1, %ah with testb $1, %ah, don't test for parity, instead
11227 testb $4, %ah and jump if non-zero.
11228 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11229 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11232 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11233 ancestors with the same depths.
11234 Patch by Niels Moeller <nisse@lysator.liu.se>.
11235 (filter_doc): Don't crash if argp is NULL.
11236 * argp/Makefile (tests): Add tst-argp2.
11237 * argp/tst-argp2.c: New test.
11240 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11242 (updwtmp_file): Likewise.
11245 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11246 (inet6_opt_append): Don't check extlen is big enough if extbuf
11248 (inet6_opt_finish): Likewise.
11249 * inet/Makefile (tests): Add test-inet6_opt.
11250 * inet/test-inet6_opt.c: New test.
11252 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11253 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11254 NLMSG_ERR. Instead use a page sized buffer.
11255 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11258 2007-03-14 Richard Henderson <rth@redhat.com>
11260 * sysdeps/alpha/fpu/s_llround.c: New file.
11261 * sysdeps/alpha/fpu/s_llroundf.c: New file.
11262 * sysdeps/alpha/fpu/s_lround.c: New file.
11263 * sysdeps/alpha/fpu/s_lroundf.c: New file.
11264 * sysdeps/alpha/fpu/s_round.c: New file.
11265 * sysdeps/alpha/fpu/s_roundf.c: New file.
11266 * sysdeps/alpha/fpu/s_trunc.c: New file.
11267 * sysdeps/alpha/fpu/s_truncf.c: New file.
11269 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11270 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11271 * sysdeps/alpha/fpu/s_floor.c: Likewise.
11272 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11273 * sysdeps/alpha/fpu/s_rint.c: Likewise.
11274 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11276 * sysdeps/alpha/fpu/s_fmax.S: New file.
11277 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11278 * sysdeps/alpha/fpu/s_fmin.S: New file.
11279 * sysdeps/alpha/fpu/s_fminf.S: New file.
11280 * sysdeps/alpha/fpu/s_isnan.c: New file.
11281 * sysdeps/alpha/fpu/s_isnanf.c: New file.
11282 * sysdeps/alpha/fpu/s_llrint.c: New file.
11283 * sysdeps/alpha/fpu/s_llrintf.c: New file.
11284 * sysdeps/alpha/fpu/s_lrint.c: New file.
11285 * sysdeps/alpha/fpu/s_lrintf.c: New file.
11286 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11287 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11289 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11290 (__fdimf, fdimf, __fdim, fdim): Remove.
11291 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11292 (__isnanf, __isnan, __isnanl): New.
11294 2007-03-13 Richard Henderson <rth@redhat.com>
11296 * sysdeps/ieee754/ldbl-128/Makefile: New file.
11298 2007-03-13 Richard Henderson <rth@redhat.com>
11300 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11301 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11302 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11303 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11304 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11305 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11307 2007-03-13 Richard Henderson <rth@redhat.com>
11309 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11310 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11311 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11312 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11313 Move to dl-auxv.h; initialize instead of extern weak.
11314 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11316 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11317 Extern instead of initialized.
11319 2007-03-13 Richard Henderson <rth@redhat.com>
11321 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11322 __sigsuspend_nocancel.
11324 2007-03-06 Ulrich Drepper <drepper@redhat.com>
11326 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11327 172.16/12 address range.
11329 2007-03-02 Jakub Jelinek <jakub@redhat.com>
11331 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11332 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11335 2007-03-01 Jakub Jelinek <jakub@redhat.com>
11338 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11340 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11342 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11343 for x qNaN and y either +-inf or non-integer value.
11344 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11345 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11346 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11348 2007-02-10 Mike Frysinger <vapier@gentoo.org>
11350 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11351 from sysdep_headers.
11353 2007-02-28 Jakub Jelinek <jakub@redhat.com>
11355 * time/tzfile.c (find_transition): Instead of a linear search try to
11356 guess the transition index, use a linear search if the result is at
11357 most 10 transitions away from the guess or binary search otherwise.
11359 2007-02-27 Jakub Jelinek <jakub@redhat.com>
11361 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11362 memory reallocation.
11364 2007-02-21 Ulrich Drepper <drepper@redhat.com>
11366 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11367 and fix some typos.
11368 Optimize use of TOLOWER.
11371 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11372 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11373 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11376 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11377 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11380 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11381 (open_dir_stream): Likewise.
11382 * io/Makefile (tests): Add bug-ftw5.
11383 * io/bug-ftw5.c: New file.
11385 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11386 * nscd/servicescache.c (cache_addserv): Likewise.
11388 * nscd/grpcache.c (cache_addgr): In case a record changed on
11389 refresh, adjust key_copy.
11392 * nscd/pwdcache.c (cache_addpw): In case a record changed on
11393 refresh, adjust key_copy.
11396 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11398 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11400 2007-02-19 Ulrich Drepper <drepper@redhat.com>
11402 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11405 * stdio-common/vfscanf.c: Small cleanups throughout.
11407 2007-02-18 Ulrich Drepper <drepper@redhat.com>
11410 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11411 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11412 * sysdeps/i386/fpu/e_fmod.S: Likewise.
11413 Patch by Jared Casper <jaredcasper@gmail.com>.
11415 * sysdeps/unix/closedir.c: Outside libc don't use locking.
11416 * sysdeps/unix/opendir.c: Likewise.
11417 * sysdeps/unix/readdir.c: Likewise.
11420 * stdio-common/vfscanf.c: Handle localized digits etc for floating
11422 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11424 * stdio-common/vfscanf.c: Fix problems in width accounting.
11425 * stdio-common/tst-sscanf.c (double_tests): New tests.
11426 (main): Hook them up.
11428 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11429 More simplifications of floating-point reader.
11431 * stdio-common/Makefile (tests): Add tst-swscanf.
11432 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11434 * stdio-common/tst-swscanf.c: New file.
11436 2007-02-17 Ulrich Drepper <drepper@redhat.com>
11439 * libio/stdio.h: Define struct _IO_FILE in global namespace.
11440 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11441 Remove using for __jmp_buf_tag.
11442 * locale/locale.h (struct lconv): Also define in std namespace.
11443 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11446 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11447 using __libc_enable_secure.
11450 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11453 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11454 of names for ellipsises.
11457 * malloc/memusage.sh: Cleanups.
11458 * debug/xtrace.sh: Quoting and trap changes.
11460 2007-02-16 Ulrich Drepper <drepper@redhat.com>
11462 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11464 * locale/iso-3166.def: Update entry for Serbia.
11465 * locale/iso-4217.def: Define RSD, remove CSD.
11467 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11468 and 64-bit operations.
11471 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11474 * nscd/nscd.c (parse_opt): One more conversion to use send instead
11477 2007-02-15 Ulrich Drepper <drepper@redhat.com>
11480 * assert/assert.h (assert): Simplify.
11481 (assert_perror): Likewise.
11482 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11484 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11487 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11488 change: don't pass NULL in place of an integer.
11490 2007-02-02 Bruno Haible <bruno@clisp.org>
11493 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11494 Add mapping for U+327E.
11495 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11496 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11497 mapping of 0xD9 0xE8.
11498 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11500 Reported by Jungshik Shin <jungshik@google.com>.
11503 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11504 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11505 Reported by Jungshik Shin <jungshik@google.com>.
11507 2007-02-14 Ulrich Drepper <drepper@redhat.com>
11509 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11513 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11514 byte variants. Patch mostly be tom@tommay.net.
11516 2007-02-14 Jakub Jelinek <jakub@redhat.com>
11519 * posix/glob.c (attribute_hidden): Define if not defined.
11520 (glob): Unescape dirname, filename or username when needed and not
11521 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
11522 is NULL. Handle unescaped [ in pattern without closing ].
11523 Don't pass GLOB_CHECK down to recursive glob for directories.
11524 (__glob_pattern_type): New function.
11525 (__glob_pattern_p): Implement using __glob_pattern_type.
11526 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11527 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11528 Remove unreachable code.
11529 * posix/globtest.sh: Add a couple of new tests.
11531 2007-02-13 Ulrich Drepper <drepper@redhat.com>
11533 * po/ru.po: Update from translation team.
11535 2007-02-12 Jakub Jelinek <jakub@redhat.com>
11537 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11538 to the list of i486+ CPUs.
11539 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11541 2007-02-12 Ulrich Drepper <drepper@redhat.com>
11543 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11544 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11547 2007-02-09 Ulrich Drepper <drepper@redhat.com>
11549 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11551 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11552 * resolv/res_mkquery.c: Define __res_nopt.
11553 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11554 try adding EDNS0 record.
11555 * resolv/res_send.c (send_dg): If request failed with FORMERR and
11556 EDNS0 record was send make sure we don't try it again.
11557 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11558 * include/resolv.h: Declare __res_nopt.
11560 2007-02-08 Jakub Jelinek <jakub@redhat.com>
11563 * time/strptime_l.c (__strptime_internal): Set have_mon for
11564 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
11565 have been computed from tm_yday and tm_year. Don't crash
11566 in day_of_the_week or day_of_the_year if not have_mon
11567 and tm_mon contains bogus value.
11568 * time/Makefile (tests): Add tst-strptime3.
11569 * time/tst-strptime3.c: New test.
11571 2007-02-05 Jakub Jelinek <jakub@redhat.com>
11574 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11575 bit for RE_HAT_LISTS_NOT_NEWLINE.
11576 (build_charclass_op): Remove bogus comment.
11577 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11578 * posix/bug-regex27.c: New test.
11579 * posix/bug-regex28.c: New test.
11581 2007-02-03 Ulrich Drepper <drepper@redhat.com>
11583 * po/sv.po: Update from translation team.
11585 2007-02-02 Ulrich Drepper <drepper@redhat.com>
11587 * nscd/nscd_helper.c (open_socket): Minor size optimization.
11589 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11591 * include/locale.h (__uselocale): Add libc_hidden_proto.
11592 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11594 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11597 2007-02-01 Ulrich Drepper <drepper@redhat.com>
11599 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11601 (PTR_DEMANGLE): Real definition now that it's not the same as
11602 PRT_MANGLE anymore.
11603 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11605 * string/strerror_l.c: New file.
11606 * string/Makefile (routines): Add strerror_l.
11607 * string/string.h: Declare strerror_l.
11608 * string/Versions: Export strerror_l for GLIBC_2.6.
11610 2007-01-31 Ulrich Drepper <drepper@redhat.com>
11612 * nscd/nscd_helper.c (open_socket): Now takes request type and key
11613 as parameter. Construct request record. Try sending request
11614 before the first poll use, it usually succeeds. Adjust all
11616 * nscd/nscd-client.h: Define MAXKEYLEN.
11617 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11619 2007-01-31 Jakub Jelinek <jakub@redhat.com>
11621 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11623 * nscd/nscd_helper.c: Include string.h.
11624 (__nscd_cache_search): Remove const qualifier from return value.
11625 On strict alignment architectures check hash entry and data head
11627 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11628 mmapped data during GC cycle contains garbage. If
11629 __nscd_drop_map_ref fails, decrement mapped->counter when returning
11630 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11632 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11633 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11634 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11635 * nscd/nscd_getai.c (__nscd_getai): Likewise.
11636 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11638 2007-01-30 Ulrich Drepper <drepper@redhat.com>
11640 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11642 2007-01-26 Ulrich Drepper <drepper@redhat.com>
11644 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11645 names not numbers in cfi_*.
11647 2007-01-26 Andreas Jaeger <aj@suse.de>
11649 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11650 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11651 Correct values of PER_HPUX and PER_OSF4.
11653 2007-01-24 Ulrich Drepper <drepper@redhat.com>
11655 * elf/dl-minimal.c: Undefine _itoa first.
11656 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11657 * malloc/mtrace.c: Revert last change.
11658 * posix/wordexp.c: Likewise.
11660 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11662 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11663 and __geode__ to the list of i486+ CPUs.
11664 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11666 2007-01-23 Ulrich Drepper <drepper@redhat.com>
11668 * stdio-common/_itoa.c: Include <limits.h>.
11669 * stdio-common/_itowa.c: Likewise.
11671 2007-01-22 Ulrich Drepper <drepper@redhat.com>
11673 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11675 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11677 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11679 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11683 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11684 * stdio-common/Makefile (tests): Add bug17.
11685 * stdio-common/bug17.c: New file.
11687 2007-01-19 Ulrich Drepper <drepper@redhat.com>
11689 * iconvdata/brf.c: New file.
11690 * iconvdata/testdata/BRF: New file.
11691 * iconvdata/testdata/BRF..UTF8: New file.
11692 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11693 * iconvdata/Makefile: Add rules to build BRF.
11694 * iconvdata/TESTS: Add BRF entry.
11695 * iconvdata/gconv-modules: Likewise.
11696 * iconvdata/tst-tables.sh: Likewise.
11698 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
11700 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11701 type `long long int', not `long int'.
11702 (wcstoq): Likewise.
11704 2007-01-18 Ulrich Drepper <drepper@redhat.com>
11706 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11707 of values on 64-bit platforms which are too large.
11709 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
11710 Joe Kerian <jkerian@us.us.ibm.com>
11713 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11714 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
11715 (__copysignl): Use signbit() for comparison.
11716 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11717 SET_LDOUBLE_WORDS64.
11720 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11721 (__ceill): Remove calls to fegetround(), fesetround().
11722 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11723 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11724 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11726 2007-01-17 Jakub Jelinek <jakub@redhat.com>
11728 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11730 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11732 2007-01-17 Ulrich Drepper <drepper@redhat.com>
11734 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11736 * csu/libc-start.c: Likewise.
11738 2007-01-16 Ulrich Drepper <drepper@redhat.com>
11740 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11741 really work anyway.
11743 2007-01-15 Ulrich Drepper <drepper@redhat.com>
11745 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
11747 (handle_request): Remove unnecessary tests.
11749 * nscd/cache.c (cache_add): Record the failure to add to the cache.
11751 2007-01-15 Jakub Jelinek <jakub@redhat.com>
11753 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11754 workbits in semi-raw fraction.
11756 * math/test-misc.c: Add new tests.
11758 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
11760 * math/basic-test.c: Include test-skeleton.c.
11761 (TEST_TRUNC): Define.
11762 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11763 (main): Rename to ...
11764 (do_test): ...this. Run new tests.
11765 (TEST_FUNCTION): Define.
11767 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
11768 Joe Kerian <jkerian@us.us.ibm.com>
11771 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11772 handling for high words.
11773 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11774 and overflow for infinity.
11776 2007-01-15 Ulrich Drepper <drepper@redhat.com>
11778 * nscd/connections.c (handle_request): Add a __builtin_expect.
11780 * nscd/connections.c (serv2db): Change type into structure which
11781 also says whether this is a request for data. Renamed to
11782 servinfo. All users changed.
11783 (handle_request): Much simpler test whether we should search the cache.
11785 * nscd/connections.c (handle_request): Fix thinko in selinux test
11788 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
11789 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
11790 it before getting dl_load_lock and then relock.
11791 (_dl_lookup_symbol_x): Pass flags to add_dependency.
11792 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
11793 case we unlocked the scope.
11794 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
11795 _dl_lookup_symbol_x in case we locked the scope.
11796 (_dl_profile_fixup): Likewise.
11797 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
11798 set DL_LOOKUP_SCOPE_LOCK.
11800 2007-01-13 Ulrich Drepper <drepper@redhat.com>
11802 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
11803 CFLAGS-getsrvbynpt_r.c.
11804 * nscd/getsrvbynm_r.c: New file.
11805 * nscd/getsrvbypt_r.c: New file.
11806 * nscd/nscd_getserv_r.c: New file.
11807 * nscd/servicescache.c: New file.
11808 * nscd/Makefile (routines): Add nscd_getserv_r.
11809 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
11810 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
11811 CFLAGS-getsrvbypt_r.c.
11812 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
11813 table. Add entries for services database.
11814 * nscd/connections.c (serv2str): Mark as const. Add entries for
11816 (dbs): Add .reset_res and servdb initialization.
11817 (serv2db): Add entries for services database.
11818 (verify_persistent_db): Accept dbnr == servdb.
11819 (invalidate_cache): Rewrite database name recognition to use a table.
11820 Call res_init() if .reset_res is set for database.
11821 (handle_request): Add code to handle services database.
11822 * nscd/gai.c: Don't define __getservbyname_r.
11823 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
11824 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
11825 (serv_response_header): Define.
11826 (struct datahead): Add serv_response_header member.
11827 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
11829 * nscd/nscd.conf: Add entries for services database.
11830 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
11831 Declare serv_iov_disabled.
11832 Declare addservbyname, readdservbyname, addservbyport, and
11834 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
11835 (find_db): Fix error message.
11836 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
11837 __nscd_getservbyname_r, and __nscd_getservbyport_r.
11838 * nscd/selinux.c (perms): Add entries for services database.
11839 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
11840 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
11842 * nscd/grpcache.c: Remove obsolete code. Cleanups.
11843 * nscd/hstcache.c: Likewise.
11844 * nscd/pwdcache.c: Likewise.
11846 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
11847 computation of keylen.
11849 * include/string.h: Only redefine strndupa if this is really for
11852 2007-01-12 Ulrich Drepper <drepper@redhat.com>
11854 * nscd/nscd_gethst_r.c: Minor cleanups.
11856 * nscd/connections.c (handle_request): Check selinux permissions
11857 for all non-admin commands.
11859 * sysdeps/i386/i486/bits/atomic.h: Define
11860 atomic_compare_and_exchange_val_acq,
11861 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
11862 using __sync_* built-ins for gcc >= 4.1.
11863 * sysdeps/x86_64/bits/atomic.h: Likewise.
11866 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
11869 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
11871 * stdlib/tst-makecontext.c: Include errno.h. Change main()
11872 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
11873 (do_test): Check errno and exit(0) if ENOSYS.
11875 2007-01-11 Jakub Jelinek <jakub@redhat.com>
11877 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
11878 thousands separators.
11879 * stdlib/Makefile: Add rules to build and run tst-strtod4.
11880 * stdlib/tst-strtod4.c: New test.
11883 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
11884 hexadecimal digit should accept just the initial 0.
11885 * stdlib/tst-strtod2.c (tests): New variable.
11886 (do_test): Run several tests rather than just one.
11888 2007-01-11 Jakub Jelinek <jakub@redhat.com>
11890 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
11891 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
11893 2007-01-10 Ulrich Drepper <drepper@redhat.com>
11895 * io/fts.c: Make sure fts_cur is always valid after return from
11897 Patch by Miloslav Trmac <mitr@redhat.com>.
11899 2006-10-27 Richard Sandiford <richard@codesourcery.com>
11901 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
11902 (R_MIPS_NUM): Bump by 1.
11904 2007-01-03 Jakub Jelinek <jakub@redhat.com>
11906 * posix/execvp.c: Include alloca.h.
11907 (allocate_scripts_argv): Renamed to...
11908 (scripts_argv): ... this. Don't allocate buffer here nor count
11910 (execvp): Use alloca if possible.
11911 * posix/Makefile: Add rules to build and run tst-vfork3 test.
11912 * posix/tst-vfork3.c: New test.
11914 2007-01-03 Ulrich Drepper <drepper@redhat.com>
11916 * string/Makefile (tst-strxfrm2-ENV): Define.
11917 * stdlib/Makefile (tst-strtod3-ENV): Define.
11919 2007-01-02 Ulrich Drepper <drepper@redhat.com>
11921 * posix/getconf.c: Update copyright year.
11922 * nss/getent.c: Likewise.
11923 * iconv/iconvconfig.c: Likewise.
11924 * iconv/iconv_prog.c: Likewise.
11925 * elf/ldconfig.c: Likewise.
11926 * catgets/gencat.c: Likewise.
11927 * csu/version.c: Likewise.
11928 * elf/ldd.bash.in: Likewise.
11929 * elf/sprof.c (print_version): Likewise.
11930 * locale/programs/locale.c: Likewise.
11931 * locale/programs/localedef.c: Likewise.
11932 * nscd/nscd.c (print_version): Likewise.
11933 * debug/xtrace.sh: Likewise.
11934 * malloc/memusage.sh: Likewise.
11935 * malloc/mtrace.pl: Likewise.
11936 * debug/catchsegv.sh: Likewise.
11938 2006-12-24 Ulrich Drepper <drepper@redhat.com>
11940 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
11943 2006-12-23 Ulrich Drepper <drepper@redhat.com>
11945 * posix/wordexp.c: Remove some unnecessary tests.
11947 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
11949 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
11950 blacklist the group till after we look it up.
11952 2006-12-21 Ulrich Drepper <drepper@redhat.com>
11954 * include/atomic.h (atomic_forced_read): New macro.
11956 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
11958 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
11960 2006-12-19 Jakub Jelinek <jakub@redhat.com>
11962 * nss/getXXbyYY_r.c: Include atomic.h.
11963 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
11964 add atomic_write_barrier () in between.
11966 * stdlib/Makefile (tests): Add tst-makecontext.
11967 * stdlib/tst-makecontext.c: New test.
11969 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
11970 (__makecontext): Don't realign uc_mcontext.uc_regs.
11972 2006-11-28 Jakub Jelinek <jakub@redhat.com>
11974 * elf/dl-support.c: Include dl-procinfo.h.
11975 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
11976 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
11977 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
11979 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
11980 hardcoded constants.
11981 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
11982 PPC_PLATFORM_* macros for array designators.
11984 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
11986 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
11987 names to the beginning.
11988 (_dl_powerpc_platforms): Add "power6x".
11989 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11990 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
11991 (_DL_PLATFORMS_COUNT): Increase.
11992 (_dl_string_platform): Handle power6x case.
11993 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
11994 PPC_FEATURE_POWER6_EXT): Define.
11995 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
11997 2006-12-18 Jakub Jelinek <jakub@redhat.com>
12000 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12001 [-2^31 .. 2^31) range.
12002 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12004 * stdlib/tst-rand48-2.c: New test.
12005 * stdlib/Makefile (tests): Add tst-rand48-2.
12007 2006-12-14 Jakub Jelinek <jakub@redhat.com>
12009 * misc/tst-pselect.c (do_test): Fix sigblock argument.
12011 2006-12-14 Ulrich Drepper <drepper@redhat.com>
12013 * misc/tst-pselect.c (do_test): Make sure the helper process is
12014 terminating when the test is aborted.
12016 2006-12-13 Ulrich Drepper <drepper@redhat.com>
12018 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12019 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12020 Handle relatime mount option.
12023 * libio/Makefile (tests): Add tst-setvbuf1.
12024 * libio/tst-setvbuf1.c: New file.
12026 2006-12-08 Jakub Jelinek <jakub@redhat.com>
12029 * libio/genops.c (__uflow): Fix a typo.
12030 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12031 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
12032 the narrow buffer size.
12034 2006-11-24 Jakub Jelinek <jakub@redhat.com>
12037 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12038 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12039 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12041 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12042 _IO_wstr_finish): Likewise.
12043 * libio/wmemstream.c (open_wmemstream): Likewise.
12044 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12045 even for wide streams.
12047 2006-12-13 Jakub Jelinek <jakub@redhat.com>
12049 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12052 2006-12-11 Ulrich Drepper <drepper@redhat.com>
12054 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12055 separators also if no non-zero digits found.
12056 * stdlib/Makefile (tests): Add tst-strtod3.
12058 2006-12-09 Ulrich Drepper <drepper@redhat.com>
12061 * include/features.h: Fix comment about default value for
12065 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12066 empty parsed strings.
12067 * stdlib/Makefile (tests): Add tst-strtod2.
12068 * stdlib/tst-strtod2.c: New file.
12071 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12073 * stdlib/Makefile (tests): Add tst-atof2.
12074 * stdlib/tst-atof2.c: New file.
12077 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12078 correctly if removing trailing zero of hex-float.
12079 * stdlib/Makefile (tests): Add tst-atof1.
12080 * stdlib/tst-atof1.c: New file.
12082 2006-12-09 Jakub Jelinek <jakub@redhat.com>
12084 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12085 Start searching for next comma at p rather than rest.
12086 * misc/Makefile (tests): Add tst-mntent2.
12087 * misc/tst-mntent2.c: New test.
12089 * misc/getusershell.c (initshells): Check for integer overflows.
12090 Make strings buffer one bigger as fgets always succeeds when second
12091 argument is 1. Don't use calloc for shells array. Disallow
12094 2006-12-08 Ulrich Drepper <drepper@redhat.com>
12096 * malloc/memusage.c: Handle realloc with new size of zero and
12097 non-NULL pointer correctly.
12098 (me): Really write first record twice.
12099 (struct entry): Make format bi-arch safe.
12100 (dest): Write out more realloc statistics.
12101 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12103 2006-12-05 Jakub Jelinek <jakub@redhat.com>
12105 * nis/nis_subr.c (nis_getnames): Revert last change.
12107 2006-12-04 Jakub Jelinek <jakub@redhat.com>
12109 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12110 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12111 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12112 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12114 * io/Makefile: Add rules to build and run tst-ttyname_r test.
12115 * io/tst-ttyname_r.c: New test.
12117 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
12119 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12121 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
12123 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12124 jump table entries.
12126 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
12128 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12129 `clone' function to ensure proper unwinding stop of gdb.
12130 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12132 2006-12-01 Ulrich Drepper <drepper@redhat.com>
12134 * nscd/nscd.init: Remove obsolete and commented-out -S option
12137 2006-11-23 Jakub Jelinek <jakub@redhat.com>
12140 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12143 * manual/string.texi (strtok): Remove duplicate paragraph.
12145 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12147 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12148 libgcc not supporting `rflags' unwinding (register # >= 17).
12150 2006-11-30 Jakub Jelinek <jakub@redhat.com>
12152 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12155 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
12156 Jakub Jelinek <jakub@redhat.com>
12157 Jan Kratochvil <jan.kratochvil@redhat.com>
12159 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12160 unwind information.
12161 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12162 'restore_rt' even in the 'signal' directory.
12163 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12165 2006-11-27 Jakub Jelinek <jakub@redhat.com>
12168 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12169 malloc crashed. Don't allocate memory unnecessarily in each
12172 2006-10-21 Jakub Jelinek <jakub@redhat.com>
12174 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12176 2006-11-20 Ulrich Drepper <drepper@redhat.com>
12178 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12180 2006-11-18 Bruno Haible <bruno@clisp.org>
12182 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12183 __sysconf only after having tried to call getgroups32.
12185 2006-11-19 Ulrich Drepper <drepper@redhat.com>
12187 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12188 addresses for IPv4 queries if they can be mapped.
12190 2006-11-16 Jakub Jelinek <jakub@redhat.com>
12192 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12193 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12194 (signmask): Add .size directive.
12195 (othermask): Add .type directive.
12197 2006-11-14 Ulrich Drepper <drepper@redhat.com>
12199 * po/nl.po: Update from translation team.
12201 * timezone/zdump.c: Redo fix for BZ #3137.
12203 2006-11-14 Jakub Jelinek <jakub@redhat.com>
12205 * nss/nss_files/files-alias.c (get_next_alias): Set line back
12206 to first_unused after parsing :include: file.
12208 2006-11-10 Ulrich Drepper <drepper@redhat.com>
12210 * timezone/africa: Update from tzdata2006o.
12211 * timezone/antarctica: Likewise.
12212 * timezone/asia: Likewise.
12213 * timezone/australasia: Likewise.
12214 * timezone/backward: Likewise.
12215 * timezone/europe: Likewise.
12216 * timezone/iso3166.tab: Likewise.
12217 * timezone/northamerica: Likewise.
12218 * timezone/southamerica: Likewise.
12219 * timezone/zone.tab: Likewise.
12221 * time/tzfile.c (__tzfile_read): Extend to handle new file format
12222 on machines with 64-bit time_t.
12224 * timezone/checktab.awk: Update from tzcode2006o.
12225 * timezone/ialloc.c: Likewise.
12226 * timezone/private.h: Likewise.
12227 * timezone/scheck.c: Likewise.
12228 * timezone/tzfile.h: Likewise.
12229 * timezone/tzselect.ksh: Likewise.
12230 * timezone/zdump.c: Likewise.
12231 * timezone/zic.c: Likewise.
12234 * elf/ldconfig.c (main): Call setlocale and textdomain.
12235 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12238 * manual/argp.texi: Fix typos.
12239 * manual/charset.texi: Likewise.
12240 * manual/errno.texi: Likewise.
12241 * manual/filesys.texi: Likewise.
12242 * manual/lang.texi: Likewise.
12243 * manual/maint.texi: Likewise.
12244 * manual/memory.texi: Likewise.
12245 * manual/message.texi: Likewise.
12246 * manual/resource.texi: Likewise.
12247 * manual/search.texi: Likewise.
12248 * manual/signal.texi: Likewise.
12249 * manual/startup.texi: Likewise.
12250 * manual/stdio.texi: Likewise.
12251 * manual/sysinfo.texi: Likewise.
12252 * manual/syslog.texi: Likewise.
12253 * manual/time.texi: Likewise.
12254 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12257 * sunrpc/clnt_raw.c: Minimal message improvements.
12258 * sunrpc/pm_getmaps.c: Likewise.
12259 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12260 * nis/nis_print_group_entry.c: Likewise.
12261 * locale/programs/repertoire.c: Likewise.
12262 * locale/programs/charmap.c: Likewise.
12263 * malloc/memusage.sh: Likewise.
12264 * elf/dl-deps.c: Likewise.
12265 * locale/programs/ld-collate.c: Likewise.
12266 * libio/vswprintf.c: Likewise.
12267 * malloc/memusagestat.c: Likewise.
12268 * sunrpc/auth_unix.c: Likewise.
12269 * sunrpc/rpc_main.c: Likewise.
12270 * nscd/cache.c: Likewise.
12271 * locale/programs/repertoire.c: Unify output messages.
12272 * locale/programs/charmap.c: Likewise.
12273 * locale/programs/ld-ctype.c: Likewise.
12274 * locale/programs/ld-monetary.c: Likewise.
12275 * locale/programs/ld-numeric.c: Likewise.
12276 * locale/programs/ld-time.c: Likewise.
12277 * elf/ldconfig.c: Likewise.
12278 * nscd/selinux.c: Likewise.
12279 * elf/cache.c: Likewise.
12280 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12283 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12287 2006-11-10 Jakub Jelinek <jakub@redhat.com>
12289 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12290 if N is one bigger than return value.
12291 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12292 and l1 last arguments, if buf is defined, verify the return value
12293 equals to strlen (buf) and verify no byte beyond passed length
12296 2006-11-10 Ulrich Drepper <drepper@redhat.com>
12298 * po/sv.po: Update from translation team.
12300 2006-11-09 Ulrich Drepper <drepper@redhat.com>
12302 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12303 noinline attribute.
12305 2006-11-10 Jakub Jelinek <jakub@redhat.com>
12307 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12308 noinline attribute.
12310 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12311 Use __new_sys_siglist instead of _sys_siglist_internal as
12312 second macro argument.
12313 (_old_sys_siglist): Use declare_symbol_alias macro instead of
12316 2006-11-09 Ulrich Drepper <drepper@redhat.com>
12319 * posix/unistd.h (sysconf): Remove const attribute.
12321 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12322 temporary or deprecated addresses.
12323 Patch by Sridhar Samudrala <sri@us.ibm.com>.
12325 * string/Makefile (tests): Add tst-strxfrm2.
12326 * string/tst-strxfrm2.c: New file.
12328 2006-10-09 Jakub Jelinek <jakub@redhat.com>
12330 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12331 rather than r->r_brk.
12333 2006-11-08 Jakub Jelinek <jakub@redhat.com>
12335 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12336 optimization even if needed > n.
12338 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12339 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12340 return false, otherwise return true.
12341 (cache_rpath): Return decompose_rpath return value.
12343 2006-11-07 Jakub Jelinek <jakub@redhat.com>
12345 * include/libc-symbols.h (declare_symbol): Rename to...
12346 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
12347 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12349 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12351 * sysdeps/gnu/siglist.c: Likewise.
12353 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
12355 * sysdeps/powerpc/fpu/bits/mathinline.h
12356 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12357 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
12359 2006-11-05 Ulrich Drepper <drepper@redhat.com>
12361 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12362 Update handling of cache descriptor 0x49 for new models.
12363 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12366 2006-11-02 Jakub Jelinek <jakub@redhat.com>
12368 * malloc/memusage.c (dest): Reset not_me back to false after
12369 printing statistics.
12371 2006-11-02 Ulrich Drepper <drepper@redhat.com>
12373 * configure.in: Work around ld --help change and avoid -z relro
12374 test completely if the architecture doesn't care about security.
12376 2006-11-01 Ulrich Drepper <drepper@redhat.com>
12378 * po/sv.po: Update from translation team.
12380 2006-10-31 Ulrich Drepper <drepper@redhat.com>
12382 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12383 generate compatibility version.
12385 2006-10-29 Ulrich Drepper <drepper@redhat.com>
12387 * configure.in: Relax -z relro requirement a bit.
12389 * po/sv.po: Update from translation team.
12391 2006-10-29 Jakub Jelinek <jakub@redhat.com>
12393 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12394 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12395 * elf/dl-close.c (_dl_close_worker): Likewise.
12396 * elf/dl-open.c (_dl_open_worker): Likewise.
12397 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12399 2006-10-27 Ulrich Drepper <drepper@redhat.com>
12401 * configure.in: Require assembler support for visibility, compiler
12402 support for visibility and aliases, linker support for various -z
12404 * Makeconfig: Remove conditional code which now is unnecessary.
12405 * config.h.in: Likewise.
12406 * config.make.in: Likewise.
12407 * dlfcn/Makefile: Likewise.
12408 * elf/Makefile: Likewise.
12409 * elf/dl-load.c: Likewise.
12410 * elf/rtld.c: Likewise.
12411 * include/libc-symbols.h: Likewise.
12412 * include/stdio.h: Likewise.
12413 * io/Makefile: Likewise.
12414 * io/fstat.c: Likewise.
12415 * io/fstat64.c: Likewise.
12416 * io/fstatat.c: Likewise.
12417 * io/fstatat64.c: Likewise.
12418 * io/lstat.c: Likewise.
12419 * io/lstat64.c: Likewise.
12420 * io/mknod.c: Likewise.
12421 * io/mknodat.c: Likewise.
12422 * io/stat.c: Likewise.
12423 * io/stat64.c: Likewise.
12424 * libio/stdio.c: Likewise.
12425 * nscd/Makefile: Likewise.
12426 * stdlib/Makefile: Likewise.
12427 * stdlib/atexit.c: Likewise.
12428 * sysdeps/generic/ldsodefs.h: Likewise.
12429 * sysdeps/i386/dl-machine.h: Likewise.
12430 * sysdeps/i386/sysdep.h: Likewise.
12431 * sysdeps/i386/i686/memcmp.S: Likewise.
12432 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12433 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12434 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12436 * Makerules: USE_TLS support is now default.
12437 * tls.make.c: Likewise.
12438 * csu/Versions: Likewise.
12439 * csu/libc-start.c: Likewise.
12440 * csu/libc-tls.c: Likewise.
12441 * csu/version.c: Likewise.
12442 * dlfcn/dlinfo.c: Likewise.
12443 * elf/dl-addr.c: Likewise.
12444 * elf/dl-cache.c: Likewise.
12445 * elf/dl-close.c: Likewise.
12446 * elf/dl-iteratephdr.c: Likewise.
12447 * elf/dl-load.c: Likewise.
12448 * elf/dl-lookup.c: Likewise.
12449 * elf/dl-object.c: Likewise.
12450 * elf/dl-open.c: Likewise.
12451 * elf/dl-reloc.c: Likewise.
12452 * elf/dl-support.c: Likewise.
12453 * elf/dl-sym.c: Likewise.
12454 * elf/dl-sysdep.c: Likewise.
12455 * elf/dl-tls.c: Likewise.
12456 * elf/ldconfig.c: Likewise.
12457 * elf/rtld.c: Likewise.
12458 * elf/tst-tls-dlinfo.c: Likewise.
12459 * elf/tst-tls1.c: Likewise.
12460 * elf/tst-tls10.h: Likewise.
12461 * elf/tst-tls14.c: Likewise.
12462 * elf/tst-tls2.c: Likewise.
12463 * elf/tst-tls3.c: Likewise.
12464 * elf/tst-tls4.c: Likewise.
12465 * elf/tst-tls5.c: Likewise.
12466 * elf/tst-tls6.c: Likewise.
12467 * elf/tst-tls7.c: Likewise.
12468 * elf/tst-tls8.c: Likewise.
12469 * elf/tst-tls9.c: Likewise.
12470 * elf/tst-tlsmod1.c: Likewise.
12471 * elf/tst-tlsmod13.c: Likewise.
12472 * elf/tst-tlsmod13a.c: Likewise.
12473 * elf/tst-tlsmod14a.c: Likewise.
12474 * elf/tst-tlsmod2.c: Likewise.
12475 * elf/tst-tlsmod3.c: Likewise.
12476 * elf/tst-tlsmod4.c: Likewise.
12477 * elf/tst-tlsmod5.c: Likewise.
12478 * elf/tst-tlsmod6.c: Likewise.
12479 * include/errno.h: Likewise.
12480 * include/link.h: Likewise.
12481 * include/tls.h: Likewise.
12482 * locale/global-locale.c: Likewise.
12483 * locale/localeinfo.h: Likewise.
12484 * malloc/arena.c: Likewise.
12485 * malloc/hooks.c: Likewise.
12486 * malloc/malloc.c: Likewise.
12487 * resolv/Versions: Likewise.
12488 * sysdeps/alpha/dl-machine.h: Likewise.
12489 * sysdeps/alpha/libc-tls.c: Likewise.
12490 * sysdeps/generic/ldsodefs.h: Likewise.
12491 * sysdeps/generic/tls.h: Likewise.
12492 * sysdeps/i386/dl-machine.h: Likewise.
12493 * sysdeps/ia64/dl-machine.h: Likewise.
12494 * sysdeps/ia64/libc-tls.c: Likewise.
12495 * sysdeps/mach/hurd/fork.c: Likewise.
12496 * sysdeps/mach/hurd/i386/tls.h: Likewise.
12497 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12498 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12499 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12500 * sysdeps/s390/libc-tls.c: Likewise.
12501 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12502 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12503 * sysdeps/sh/dl-machine.h: Likewise.
12504 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12505 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12506 * sysdeps/x86_64/dl-machine.h: Likewise.
12508 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12509 split out locking and parameter checking.
12510 (_dl_close): Call _dl_close_worker after locking and checking.
12511 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12513 * elf/Makefile: Add rules to build and run tst-thrlock.
12514 * elf/tst-thrlock.c: New file.
12517 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12521 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12522 we are sure we do not need it anymore for _dl_close. Also move
12523 the asserts inside the lock region.
12524 Patch mostly by Suzuki <suzuki@in.ibm.com>.
12526 2006-10-27 Jakub Jelinek <jakub@redhat.com>
12528 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12530 (_dl_lookup_symbol_x): Adjust caller.
12532 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12534 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12536 * elf/dl-libc.c: Revert l_scope name changes.
12537 * elf/dl-load.c: Likewise.
12538 * elf/dl-object.c: Likewise.
12539 * elf/rtld.c: Likewise.
12540 * elf/dl-close.c (_dl_close): Likewise.
12541 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
12542 always use __rtld_mrlock_{change,done}. Always free old scope list
12543 here if not l_scope_mem.
12544 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12545 change. Never free scope list here. Just __rtld_mrlock_lock before
12546 the lookup and __rtld_mrlock_unlock it after the lookup.
12547 * elf/dl-sym.c: Likewise.
12548 * include/link.h (struct r_scoperec): Remove.
12549 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12550 with l_scope_mem and l_scoperec_lock with l_scope_lock.
12552 2006-10-25 Ulrich Drepper <drepper@redhat.com>
12554 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12556 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12558 * configure.in: Disable building profile libraries by default.
12560 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12562 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12563 as signed longs, check for x_base + pos overflow.
12564 * sunrpc/Makefile (tests): Add tst-xdrmem2.
12565 * sunrpc/tst-xdrmem2.c: New test.
12567 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12569 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12570 _dl_lookup_symbol_x code.
12572 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12574 * elf/dl-runtime.c: Include sysdep-cancel.h.
12575 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12576 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
12577 instead of catomic_* macros.
12578 * elf/dl-sym.c: Include sysdep-cancel.h.
12579 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12580 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12581 * elf/dl-close.c: Include sysdep-cancel.h.
12582 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12583 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12584 * elf/dl-open.c: Include sysdep-cancel.h.
12585 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12586 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
12588 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12591 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12592 fastbin rather than end of fastbin array.
12594 2006-10-18 Ulrich Drepper <drepper@redhat.com>
12596 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12598 * sysdeps/x86_64/bits/atomic.h
12599 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12600 (catomic_decrement): Use correct body macro.
12602 2006-10-17 Jakub Jelinek <jakub@redhat.com>
12604 * include/atomic.h: Add a unique prefix to all local variables
12606 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12608 2006-10-16 Ulrich Drepper <drepper@redhat.com>
12611 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12614 2006-10-14 Ulrich Drepper <drepper@redhat.com>
12616 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12618 2006-10-13 Ulrich Drepper <drepper@redhat.com>
12621 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12622 determine highest fast bin to consolidate, always look into all of
12624 (do_check_malloc_state): Only require for empty bins for large
12625 sizes in main arena.
12627 * libio/stdio.h: Add more __wur attributes.
12629 * elf/dl-minimal.c (realloc): Optimize last patch.
12631 2006-10-12 Richard Sandiford <richard@codesourcery.com>
12634 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12635 and use memcpy() if it does.
12637 2006-11-12 Andreas Jaeger <aj@suse.de>
12640 * manual/search.texi (Hash Search Function): Clarify.
12641 (Array Search Function): Clarify.
12643 2006-11-12 Joseph Myers <joseph@codesourcery.com>
12646 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12648 * math/atest-exp2.c (read_mpn_hex): Likewise.
12649 * math/atest-sincos.c (main): Likewise.
12651 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12653 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12654 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12655 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12657 * Versions.def: Add GLIBC_2.6 for libc.
12659 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12661 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12663 2006-10-11 Jakub Jelinek <jakub@redhat.com>
12665 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12667 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12669 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12670 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12672 2006-10-11 Ulrich Drepper <drepper@redhat.com>
12674 * include/atomic.c: Define catomic_* operations.
12675 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
12676 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12677 * malloc/memusage.c: Likewise.
12678 * gmon/mcount.c: Likewise.
12679 * elf/dl-close.c: Likewise.
12680 * elf/dl-open.c: Likewise.
12681 * elf/dl-profile.c: Likewise.
12682 * elf/dl-sym.c: Likewise.
12683 * elf/dl-runtime.c: Likewise.
12684 * elf/dl-fptr.c: Likewise.
12685 * resolv/res_libc.c: Likewise.
12687 2006-10-10 Ulrich Drepper <drepper@redhat.com>
12689 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12690 components which lack them.
12692 * nis/nis_subr.c (nis_getnames): Make sure that we always return
12693 at least one entry consisting of the parameter concatenated with
12696 2006-10-10 Roland McGrath <roland@frob.com>
12698 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12699 * sysdeps/mach/hurd/futimes.c: Likewise.
12700 * sysdeps/mach/hurd/lutimes.c: Likewise.
12702 2006-10-09 Ulrich Drepper <drepper@redhat.com>
12703 Jakub Jelinek <jakub@redhat.com>
12705 Implement reference counting of scope records.
12706 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12707 from the list in objects which remain. Always allocate new scope
12709 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12710 don't resize, allocate a new one.
12711 * elf/dl-runtime.c: Update reference counters before using a scope
12713 * elf/dl-sym.c: Likewise.
12714 * elf/dl-libc.c: Adjust for l_scope name change.
12715 * elf/dl-load.c: Likewise.
12716 * elf/dl-object.c: Likewise.
12717 * elf/rtld.c: Likewise.
12718 * include/link.h: Include <rtld-lowlevel.h>. Define struct
12719 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
12720 Add l_scoperec_lock.
12721 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12722 * sysdeps/generic/rtld-lowlevel.h: New file.
12724 * include/atomic.h: Rename atomic_and to atomic_and_val and
12725 atomic_or to atomic_or_val. Define new macros atomic_and and
12726 atomic_or which do not return values.
12727 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12729 * sysdeps/i386/i486/bits/atomic.h: Likewise.
12731 * po/sv.po: Update from translation team.
12733 2006-10-07 Ulrich Drepper <drepper@redhat.com>
12735 * Versions.def: Add GLIBC_2.6 to libpthread.
12737 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12738 (versioned_symbol): Likewise.
12739 (compat_symbol): Likewise.
12741 * po/tr.po: Update from translation team.
12743 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12745 * nis/Banner: Removed. It's been integral part forever and the
12746 author info is incomplete anyway.
12747 * libio/Banner: Likewise.
12749 * nis/nis_table.c (nis_list): If __follow_path fails in the new
12750 code, make sure the nis_freeresult call doesn't crash and that the
12751 result is reported correctly.
12753 2006-09-27 Jakub Jelinek <jakub@redhat.com>
12755 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12756 when callback is NULL.
12758 * nis/Versions (libnss_nisplus): Add
12759 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12760 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12761 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12762 _nss_create_tablename): Rename to...
12763 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12764 ... these. No longer static.
12765 (internal_setgrent): Adjust users.
12766 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12767 Don't use locking around _nss_grp_create_tablename call.
12768 * nis/nss_nisplus/nisplus-initgroups.c: New file.
12770 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12772 * version.h (VERSION): Bump to 2.5.90 for new development tree.
12774 2006-10-06 Andreas Jaeger <aj@suse.de>
12776 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
12778 2006-10-06 Ulrich Drepper <drepper@redhat.com>
12780 * po/pl.po: Update from translation team.
12782 * nscd/nscd.c (main): Fix typo in message.
12783 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
12785 2006-10-02 Jakub Jelinek <jakub@redhat.com>
12788 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
12789 errno.h, signal.h, unistd.h and sysdep-cancel.h.
12790 (__sigprocmask): Define.
12792 2006-10-02 Ulrich Drepper <drepper@redhat.com>
12794 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
12797 2006-10-02 Jakub Jelinek <jakub@redhat.com>
12799 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
12800 in oldtotal and newtotal calculation.
12801 * nscd/nscd-client.h (struct mapped_database): Add datasize
12803 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
12804 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
12806 (__nscd_cache_search): Add checks to make sure we never reference
12807 data beyond the current mapping.
12809 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
12811 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
12812 variables const to avoid compiler warnings.
12814 * io/fts.c (fts_close): Remove redundant checks.
12815 (fts_build): Likewise.
12816 (fts_palloc): Likewise.
12818 * manual/message.texi (Advanced gettext functions,
12819 Using gettextized software): Fix typos.
12821 2006-09-30 Ulrich Drepper <drepper@redhat.com>
12823 * posix/glob.c (glob_in_dir): Add some comments and asserts to
12824 explain why there are no leaks.
12826 2006-09-29 Ulrich Drepper <drepper@redhat.com>
12828 * libio/wmemstream.c: Include <wchar.h>.
12829 * libio/bug-wmemstream1.c: Likewise.
12830 * libio/tst-wmemstream1.c: Likewise.
12831 * libio/tst-wmemstream2.c: Likewise.
12833 * version.h (RELEASE): Bump to 2.5.
12834 * README: Regenerated.
12836 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
12839 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
12840 found no group members.
12841 Patch by Petr Baudis.
12843 2006-09-29 Jakub Jelinek <jakub@redhat.com>
12845 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
12846 assert bootstrap_map.l_tls_modid is zero.
12847 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
12850 2006-09-27 Ulrich Drepper <drepper@redhat.com>
12852 * libio/stdio.h: Move open_wmemstream prototype to ...
12853 * wcsmbs/wchar.h: ... here.
12855 2006-09-25 Jakub Jelinek <jakub@redhat.com>
12858 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
12859 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
12860 __{,l}chown to handle the rest.
12861 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
12862 fchownat syscall and __ASSUME_32BITUIDS case inline, call
12863 __{,l}chown to handle the rest.
12864 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
12866 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
12867 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
12870 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
12871 time, rather allocate increasingly bigger arrays of pointers, if
12872 possible with alloca, if too large with malloc.
12874 2006-09-24 Jakub Jelinek <jakub@redhat.com>
12876 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
12878 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
12880 2006-09-24 Ulrich Drepper <drepper@redhat.com>
12882 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
12884 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
12885 IFA_F_HOMEADDRESS flag for interfaces.
12886 * include/ifaddrs.h (struct in6addrinfo): Define
12889 2006-09-21 Jakub Jelinek <jakub@redhat.com>
12892 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
12893 PTR_DEMANGLE3): Define.
12894 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
12895 PTR_DEMANGLE3): Likewise.
12896 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
12897 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
12899 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12901 2006-09-20 Jakub Jelinek <jakub@redhat.com>
12903 * po/libc.pot: Regenerated.
12904 * po/be.po: Updated.
12905 * po/ca.po: Likewise.
12906 * po/cs.po: Likewise.
12907 * po/da.po: Likewise.
12908 * po/de.po: Likewise.
12909 * po/el.po: Likewise.
12910 * po/en_GB.po: Likewise.
12911 * po/es.po: Likewise.
12912 * po/fi.po: Likewise.
12913 * po/fr.po: Likewise.
12914 * po/gl.po: Likewise.
12915 * po/hr.po: Likewise.
12916 * po/hu.po: Likewise.
12917 * po/ja.po: Likewise.
12918 * po/ko.po: Likewise.
12919 * po/nb.po: Likewise.
12920 * po/nl.po: Likewise.
12921 * po/pl.po: Likewise.
12922 * po/pt_BR.po: Likewise.
12923 * po/ru.po: Likewise.
12924 * po/rw.po: Likewise.
12925 * po/sk.po: Likewise.
12926 * po/sv.po: Likewise.
12927 * po/tr.po: Likewise.
12928 * po/zh_CN.po: Likewise.
12929 * po/zh_TW.po: Likewise.
12932 * iconv/iconv_prog.c (main): Fix spelling in error message.
12933 * iconv/iconvconfig.c (main): Likewise.
12934 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
12935 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
12936 * locale/programs/localedef.c (main): Likewise.
12937 * locale/programs/repertoire.c (repertoire_read): Likewise.
12938 * timezone/zdump.c (main): Likewise.
12939 * nscd/connections.c (handle_request): Fix spelling in log message.
12940 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
12942 2006-09-20 Ulrich Drepper <drepper@redhat.com>
12944 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
12947 2006-09-20 Andreas Jaeger <aj@suse.de>
12949 * math/libm-test.inc (lrint_test_upward): Fix typo.
12951 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
12954 * math/libm-test.inc (lrint_test_tonearest): New function.
12955 (lrint_test_towardzero): New function.
12956 (lrint_test_downward): New function.
12957 (lrint_test_upward): New function.
12958 (main): Run these new tests.
12959 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
12960 of values near to 0.
12961 (two52): Use double not long double.
12962 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
12963 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
12964 (two23): Use float not double.
12965 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
12966 (two23): Use float not double.
12967 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
12968 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
12969 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
12970 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
12972 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
12974 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
12975 Cast sp to unsigned long to avoid compiler warning.
12976 Use __makecontext_ret function instead of a trampoline on the stack.
12977 (__makecontext_ret): New function.
12978 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
12980 2006-09-19 Jakub Jelinek <jakub@redhat.com>
12982 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
12983 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
12986 2006-09-19 Ulrich Drepper <drepper@redhat.com>
12988 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
12989 sure no reference to the unloaded map's search list remains in the
12990 dependency's scope.
12992 2006-09-16 Jakub Jelinek <jakub@redhat.com>
12994 * elf/Makefile: Add rules to build and run unload7 test.
12995 * elf/unload7.c: New test.
12996 * elf/unload7mod1.c: New file.
12997 * elf/unload7mod2.c: New file.
12999 2006-09-18 Jakub Jelinek <jakub@redhat.com>
13001 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13002 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13003 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13004 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13005 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13006 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13007 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13008 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13009 PTRACE_GETEVENTMSG): Likewise.
13010 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13013 2006-09-17 Mike Frysinger <vapier@gentoo.org>
13015 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13016 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13017 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13018 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13020 2006-09-16 Jakub Jelinek <jakub@redhat.com>
13022 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13023 write '\0' to the fd.
13024 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13025 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13026 Change regs to unsigned long pointer from unsigned int, fix fscr
13029 2006-09-14 Jakub Jelinek <jakub@redhat.com>
13031 * io/Makefile (CFLAGS-fstatat.c): Set.
13032 (CFLAGS-fstatat64.c): Likewise.
13033 (CFLAGS-mknodat.c): Likewise.
13035 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13036 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13037 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13038 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13040 2006-09-14 Jakub Jelinek <jakub@redhat.com>
13041 Steven Munroe <sjmunroe@us.ibm.com>
13043 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13044 names to the beginning. Rename "cell" to "cellbe".
13045 (_dl_powerpc_platforms): New.
13046 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13047 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13048 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13049 (_DL_HWCAP_PLATFORM): Define to new mask.
13050 (_dl_platform_string, _dl_string_platform): New functions.
13051 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13052 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13054 2006-09-12 Jakub Jelinek <jakub@redhat.com>
13057 * README.libm: Fix a thinko in sqrt algorithm description.
13060 * manual/string.texi (argz_delete): Fix prototype.
13061 Patch by <alpt@freaknet.org>.
13063 2006-08-26 Joseph Myers <joseph@codesourcery.com>
13066 * io/test-lfs.c (do_prepare): Give name_len type size_t.
13067 * io/tst-fcntl.c (do_prepare): Likewise.
13068 * posix/tst-exec.c (do_prepare): Likewise.
13069 * posix/tst-preadwrite.c (do_prepare): Likewise.
13070 * posix/tst-spawn.c (do_prepare): Likewise.
13071 * posix/tst-truncate.c (do_prepare): Likewise.
13072 * rt/tst-aio.c (do_prepare): Likewise.
13073 * rt/tst-aio64.c (do_prepare): Likewise.
13074 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13077 2006-09-09 Ulrich Drepper <drepper@redhat.com>
13080 * time/mktime.c (guess_time_tm): Fix overflow detection.
13081 * time/Makefile (tests): Add bug-mktime1.
13082 * time/bug-mktime1.c: New file.
13085 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13086 (mremap): Likewise.
13088 2006-09-07 Jakub Jelinek <jakub@redhat.com>
13091 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13092 Ensure relocation doesn't clobber any bits outside of the
13093 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13094 R_SPARC_HI22 and R_SPARC_H44.
13097 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13098 (long) (MINSIZE + nb - old_size) is positive.
13100 * malloc/arena.c (grow_heap): When growing bail even if new_size
13104 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13107 2006-09-06 Jakub Jelinek <jakub@redhat.com>
13109 * posix/regex_internal.c (re_string_reconstruct): Handle
13110 offset < pstr->valid_raw_len && pstr->offsets_needed case.
13111 Ensure no bytes read before raw_mbs array. Pass a saved copy of
13112 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13113 re_string_context_at.
13114 * posix/Makefile: Add rules to build and run bug-regex26 test.
13115 * posix/bug-regex26.c: New test.
13117 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13118 rather than col_sym_free. Move seqp declaration earlier.
13120 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13122 2006-09-05 Jakub Jelinek <jakub@redhat.com>
13124 * nscd/initgrcache.c (addinitgroupsX): Move any_success
13125 decl before first goto out.
13127 2006-09-04 Jakub Jelinek <jakub@redhat.com>
13129 * Makerules (shlib.lds): If have-hash-style, put .hash section
13130 at the end of the RO segment.
13132 2006-09-04 Ulrich Drepper <drepper@redhat.com>
13134 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13135 style hash table format is used.
13137 2006-09-04 Jakub Jelinek <jakub@redhat.com>
13139 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13140 randomization rather than before.
13141 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13143 2006-08-31 Jakub Jelinek <jakub@redhat.com>
13145 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13147 * malloc/malloc.c (_int_malloc): Use full list insert and not
13148 shortcut which assumes the list is empty for large requests
13151 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13153 2006-08-30 Jakub Jelinek <jakub@redhat.com>
13155 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13156 and offout arguments to the prototype.
13157 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13158 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13159 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13160 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13161 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13162 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13163 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13164 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13166 2006-08-28 Ulrich Drepper <drepper@redhat.com>
13168 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13170 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13173 2006-08-28 Jakub Jelinek <jakub@redhat.com>
13175 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13176 only if herrno is NETDB_INTERNAL. Handle errors other than
13177 ERANGE outside of the loops, handle TRY_AGAIN.
13179 * locale/programs/ld-ctype.c (translit_flatten): Issue error
13180 if other's ctype category was missing.
13181 * locale/programs/ld-collate.c (collate_read): Return if
13182 copy_locale's collate category is missing.
13184 2006-08-27 Ulrich Drepper <drepper@redhat.com>
13187 * malloc/malloc.c (public_rEALLOc): Try harder by using other
13188 arenas if allocation failed.
13189 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13191 2006-08-26 Ulrich Drepper <drepper@redhat.com>
13193 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13195 (malloc_state): Reduce bins size by 2.
13196 (_int_malloc): Fix test for large enough buffer for early termination.
13197 When no unsorted block matches perfectly and an exiting block has
13198 to be split, use full list insert and not shortcut which assumes
13201 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13204 2006-08-24 Ulrich Drepper <drepper@redhat.com>
13206 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13209 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13210 symbol require exact match (these are PLTs).
13211 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13212 (_dl_ppc64_addr_sym_match): Likewise.
13215 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13216 If symbol has a value use it.
13217 * elf/tst-dladdr1.c: New file.
13218 * elf/Makefile: Add rules to build and run tst-addr1.
13220 2006-08-24 Jakub Jelinek <jakub@redhat.com>
13222 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13223 keeps failing and heap growth or new heap creation isn't
13225 * malloc/tst-malloc.c (main): Add new tests.
13227 2006-08-24 Ulrich Drepper <drepper@redhat.com>
13230 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13231 as in the x86-64 code to use bswap.
13233 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
13236 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13238 * posix/bits/unistd.h: Likewise.
13240 2006-05-15 Mike Frysinger <vapier@gentoo.org>
13243 * string/strchr.c: Add cast to avoid warning.
13245 2006-08-21 Ulrich Drepper <drepper@redhat.com>
13247 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13248 platforms define as 512K. For 64-bit platforms as 32MB. The lower
13249 limit is needed to avoid the exploding of the address space
13250 requirement for secondary heaps.
13251 * malloc/arena.c (HEAP_MAX_SIZE): Define using
13252 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13254 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
13257 * Makerules (depfiles): Handle extra-test-objs the same as
13259 (common-mostlyclean): Likewise.
13260 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13262 * elf/Makefile (extra-objs): Likewise.
13263 * stdlib/Makefile (extra-objs): Likewise.
13265 2006-08-14 Eric Blake <ebb9@byu.net>
13268 * misc/error.h: Assume C89 or better.
13269 * misc/error.c: Likewise.
13271 2006-08-21 Ulrich Drepper <drepper@redhat.com>
13274 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13275 __ASSUME_ATFCTS is defined.
13277 2006-08-19 Ulrich Drepper <drepper@redhat.com>
13279 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13280 to sort in each call.
13282 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13283 is empty simply return and use next service.
13284 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13286 * locale/programs/charmap.c (charmap_read): Add new parameter. It
13287 tells us when not finding a charmap file is an error.
13288 * locale/programs/charmap.h: Adjust charmap_read prototype.
13289 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13290 cannot find a charmap.
13291 * locale/programs/localedef.c (main): Adjust charmap_read call.
13293 2006-08-15 Jakub Jelinek <jakub@redhat.com>
13295 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13296 sysdeps/posix/pause.c implementation instead.
13298 2006-08-09 Jakub Jelinek <jakub@redhat.com>
13300 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13303 2006-08-13 Andreas Schwab <schwab@suse.de>
13305 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13306 Don't clobber caller's LRSAVE.
13307 (_dl_prof_resolve): Likewise.
13309 2006-08-14 Ulrich Drepper <drepper@redhat.com>
13312 * libio/memstream.c (open_memstream): Allocate initial buffer with
13314 * libio/wmemstream.c (open_wmemstream): Likewise.
13315 * libio/strops.c: Pretty printing.
13316 (_IO_str_overflow): Clear uninitialized part of the new buffer.
13317 (enlarge_userbuf): New function.
13318 (_IO_str_seekoff): Call it if seek position is larger than current
13320 * libio/wstrops.c: Likewise.
13321 * libio/vasprintf.c: Add comment as to why we do not have to use
13322 calloc instead of malloc to allocate initial buffer.
13323 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13324 * libio/bug-memstream1.c: New file.
13325 * libio/bug-wmemstream1.c: New file.
13327 2006-08-13 Ulrich Drepper <drepper@redhat.com>
13329 * libio/wstrops.c: Remove dead macro definitions and comments.
13330 * libio/strops.c: Likewise.
13333 * login/utmpname.c (__utmpname): Remove unnecessary test.
13335 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
13338 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13341 2006-08-13 Ulrich Drepper <drepper@redhat.com>
13344 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13346 * sysdeps/unix/clock_settime.c: Add support for platform-specific
13347 setting of CPU clocks.
13349 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
13352 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13353 since C99 requires the result to promote to 'int' when uint_least8_t
13354 and uint_least16_t promote to 'int'.
13356 2006-08-12 Ulrich Drepper <drepper@redhat.com>
13359 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13360 lenght of one output field, correct bitmask creation.
13361 * locale/programs/ld-time.c: Add alignment.
13364 * misc/error.c: Add space between program name and message if file
13367 2006-08-03 Eric Blake <ebb9@byu.net>
13370 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13372 2006-08-09 Ulrich Drepper <drepper@redhat.com>
13374 * malloc/memusagestat.c: Silence warnings.
13376 * malloc/malloc.c: Dynamically size mmap treshold if the program
13377 frees mmaped blocks.
13378 Patch by Valerie Henson and Arjan van de Ven.
13380 2006-08-08 Jakub Jelinek <jakub@redhat.com>
13382 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13385 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13386 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13387 (DEF): Don't put the var into .gnu.linkonce.r.* section.
13388 Only provide var definitions in strtol_l (or for *ull*
13391 * stdio-common/bug16.c (tests): New array.
13392 (do_tests): Allow the first hexadecimal digit
13393 to be 1, 2, 4 or 8. Do 3 additional tests.
13395 * sysdeps/s390/fpu/libm-test-ulps: Update.
13397 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13398 fchownat syscall if available.
13399 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13400 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13401 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13403 2006-08-07 Ulrich Drepper <drepper@redhat.com>
13405 * nis/nis_xdr.c: Avoid some function calls.
13407 2006-08-07 Jakub Jelinek <jakub@redhat.com>
13408 Ulrich Drepper <drepper@redhat.com>
13410 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13411 short cut if only one name component is stripped away.
13413 2006-08-07 Ulrich Drepper <drepper@redhat.com>
13415 * nis/nis_call.c: Minor cleanups throughout.
13416 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13417 (first_shoot): Add search_parent_first parameter. Only if it is set
13418 search parent server first.
13419 If directory for table found through cold start cache is not the same
13420 as referenced in the cache, don't use it.
13421 (__nisfind_server): Take additional parameter. Pass it on to
13423 (__prepare_niscall): Adjust __nisfind_server call.
13424 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13425 * nis/nis_table.c: Adjust __nisfind_server call.
13426 * nis/nis_lookup.c: Likewise.
13427 (nis_lookup): Don't loop endlessly if name is reduced to ".".
13429 2006-08-03 Ulrich Drepper <drepper@redhat.com>
13432 * math/s_cacosh.c: Return values from positive branch.
13433 * math/s_cacoshf.c: Likewise.
13434 * math/s_cacoshl.c: Likewise.
13437 * sysvipc/sys/msg.h: Change return value to ssize_t.
13438 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13439 * sysvipc/msgrcv.c: Likewise.
13440 * include/sys/msg.h: Likewise.
13442 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13443 test introduced in patch for bz #661.
13444 (getgrouplist): Simplify code a bit. Don't allocate one additional
13445 element for NEWGROUPS.
13448 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13449 'f', use '1' as leading digit not '\1'.
13450 * stdio-common/Makefile (tests): Add bug16.
13451 * stdio-common/bug16.c: New file.
13454 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13455 and don't try to open it. The patch introducing the macro
13456 contained a bug and used the same file name as the new file
13457 instead of using /var/adm/hostid. Nobody complaint so I'm taking
13458 this out completely.
13461 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13462 Patch by Jerry James <Jerry.James@usu.edu>.
13464 * rt/Makefile (tests): Add tst-clock2.
13465 * rt/tst-clock2.c: New file.
13468 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13469 function and its parameters and pass it to new thread.
13470 (__gai_notify): Add support for alternative waiting for completion.
13471 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13472 waiting for completion.
13473 * resolv/getaddrinfo_a.c: Likewise.
13474 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13475 waiting for completion is used.
13476 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13477 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13478 * resolv/gai_error.c: Likewise.
13479 * resolv/gai_sigqueue.c: Likewise.
13481 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
13483 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13484 errno to EBADF and return MACH_PORT_NULL.
13486 2006-06-23 Joseph Myers <joseph@codesourcery.com>
13489 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13491 2006-08-02 Ulrich Drepper <drepper@redhat.com>
13493 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13494 walk them instead of the symbol table.
13496 2006-08-01 Ulrich Drepper <drepper@redhat.com>
13499 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13500 status of NSS calls, not the number of returned entries.
13502 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13503 request_key, keyctl.
13505 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13507 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13509 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
13511 * elf/tst-auditmod1.c: Fix typo in #error.
13513 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13515 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13517 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13519 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
13521 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13522 that the directory is empty even on non-POSIX filesystems.
13524 2006-07-31 Ulrich Drepper <drepper@redhat.com>
13526 * elf/dl-open.c (dl_open_worker): Add branch prediction.
13528 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13529 the backend NSS module. If backend setgrent call failed, don't have
13530 internal_setgrent fail. Just remember this until it is needed.
13531 * nis/nss_compat/compat-pwd.c: Likewise.
13532 * nis/nss_compat/compat-spwd.c: Likewise.
13534 2006-07-30 Roland McGrath <roland@redhat.com>
13536 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13537 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13538 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13539 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13541 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13542 (nanosleep_not_cancel): New macro.
13543 (sigsuspend_not_cancel): new macro.
13544 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13545 (do_sigsuspend): Define as inline.
13546 (__sigsuspend): Always use do_sigsuspend.
13547 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13548 * include/signal.h: Declare __sigsuspend_nocancel.
13549 * sysdeps/posix/pause.c
13550 [! NO_CANCELLATION] (__pause_nocancel): New function.
13552 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13553 * include/time.h (__nanosleep_nocancel): Likewise.
13555 2006-07-30 Ulrich Drepper <drepper@redhat.com>
13557 * locale/programs/localedef.c (add_to_readlist): Rename local
13558 variables to avoid confusion.
13560 * locale/programs/charmap.c (charmap_read): Emit error message if
13561 charmap couldn't be found or read.
13563 2006-07-28 Ulrich Drepper <drepper@redhat.com>
13565 * sysdeps/unix/sysv/linux/kernel-features.h: Define
13566 __ASSUME_FUTEX_LOCK_PI.
13567 * include/time.h: Declare __nanosleep_nocancel.
13568 * include/unistd.h: Declare __pause_nocancel.
13570 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13571 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
13572 get the __stack_chk_fail_local definition when it's needed.
13574 2006-07-26 Ulrich Drepper <drepper@redhat.com>
13576 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13577 * dlfcn/bug-atexit3.c: New file.
13578 * dlfcn/bug-atexit3-lib.cc: New file.
13580 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13581 used when the namespace is not the base namespace.
13583 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
13585 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13586 (__new_exitfn): Bump it in every successful call.
13587 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13588 more exit handlers, call them right away.
13589 * stdlib/exit.h: Declare __new_exitfn_called.
13591 2006-07-25 Ulrich Drepper <drepper@redhat.com>
13593 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13594 calling registered handler.
13596 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13597 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13598 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13599 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13600 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13601 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13602 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13603 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13605 2006-07-10 Ulrich Drepper <drepper@redhat.com>
13607 * elf/dl-lookup.c (dl_new_hash): New functions.
13608 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13609 value here. Compute new-style hash value. Pass new hash value
13610 and reference to variable with the old value to do_lookup_x.
13611 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13612 old-style hash table.
13613 (_dl_debug_bindings): Pass new hash value and reference to variable
13614 with the old value to do_lookup_x.
13615 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13616 new-style hash value and change old-style hash value parameter to
13617 be a reference. Reoganize functions to determine whether
13618 new-style hash table is available. Only fall back on old-style
13619 table. If old-style hash value is needed, compute it here.
13620 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13622 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13623 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
13624 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13625 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13626 * Makeconfig: If linker supports --hash-style option add it to all
13627 linker command lines to build DSOs.
13628 * config.make.in: Define have-hash-style.
13629 * configure.in: Test whether linker supports --hash-style option.
13631 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13632 * sysdeps/generic/ldsodefs.h: Adjust prototype.
13634 2006-06-27 Ulrich Drepper <drepper@redhat.com>
13636 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13639 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13640 RPATH of main map twice.
13642 2006-06-22 Ulrich Drepper <drepper@redhat.com>
13644 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13645 look further, return original strings.
13646 (_nl_find_msg): Do not return found translation if the conversion
13647 failed. Either signal the string is unusable or that something went
13648 wrong and the original should be used.
13650 2006-06-21 Ulrich Drepper <drepper@redhat.com>
13652 * string/_strerror.c (__strerror_r): Add __builtin_expect.
13654 2006-06-14 Jakub Jelinek <jakub@redhat.com>
13657 * misc/insremque.c (insque): Handle prev == NULL.
13658 * misc/Makefile (tests): Add tst-insremque.
13659 * misc/tst-insremque.c: New test.
13661 2006-06-17 Ulrich Drepper <drepper@redhat.com>
13664 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13665 conflict with DL_DST_REQUIRED.
13667 2006-06-16 Ulrich Drepper <drepper@redhat.com>
13669 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13670 match what Solaris does.
13672 2006-06-04 Ulrich Drepper <drepper@redhat.com>
13674 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13675 local_setegid instead of seteuid and setegid.
13676 * sysdeps/generic/local-setxid.h: New file.
13677 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13679 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13681 * string/Makefile (tests): Add bug-envz1.
13682 * string/bug-envz1.c: New file.
13684 2006-06-02 Jakub Jelinek <jakub@redhat.com>
13686 * posix/regex_internal.c (re_string_skip_chars): If no character has
13687 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
13688 to the byte which couldn't be converted.
13689 (re_string_reconstruct): Don't clear valid_raw_len before calling
13690 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
13691 tip_context using re_string_context_at.
13692 * posix/Makefile: Add rules to build and run bug-regex25 test.
13693 * posix/bug-regex25.c: New test.
13695 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
13698 * string/envz.c (envz_strip): Correct erroneously reversed src
13699 and dest parameters to memmove() invocation.
13701 2006-05-30 Jakub Jelinek <jakub@redhat.com>
13703 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13704 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13705 to make sure the database has been already invalidated.
13706 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
13707 after the cache has been invalidated. Use pthread_mutex_lock rather
13708 than pthread_mutex_trylock if fd != -1.
13709 * nscd/connections.c (invalidate_cache): Add fd argument, write
13710 response to fd if not calling prune_cache, pass fd to prune_cache.
13711 (handle_request): Adjust invalidate_cache caller.
13712 (nscd_run): Pass -1 as fd to prune_cache.
13714 2006-05-30 Ulrich Drepper <drepper@redhat.com>
13716 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13719 2006-05-29 Ulrich Drepper <drepper@redhat.com>
13721 * nscd/nscd.h (struct database_dyn): Add prunelock field.
13722 * nscd/cache.c (prune_cache): Take prunelock before starting the
13723 work. Just return in case it is already taken.
13724 * nscd/connections.c (dbs): Initialize .prunelock.
13726 2006-05-25 Ulrich Drepper <drepper@redhat.com>
13728 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13729 copying. No need to allocate new array for group members. Just
13730 move the pointers and update the size.
13732 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13733 Avoid memory leak in case realloc fails. Simplification for
13734 better code generation.
13736 Avoid deprecation warning because of libc_hidden_proto for
13737 inet6_option_alloc.
13738 * inet/inet6_option.c (option_alloc): Renamed from
13739 inet6_option_alloc. Made static.
13740 (inet6_option_alloc): Now a simple wrapper around option_alloc.
13741 (inet6_option_append): Call option_alloc.
13742 * include/netinet/in.h: Remove libc_hidden_proto for
13743 inet6_option_alloc.
13745 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13746 for cleanup when cb!=NULL [Coverity CID 233].
13748 2006-05-24 Ulrich Drepper <drepper@redhat.com>
13751 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13752 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13753 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13754 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13755 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13756 and inet6_rth_getaddr.
13757 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13759 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13760 Mark inet6_option_* interfaces as deprecated.
13761 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13762 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13763 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13764 inet6_rth_segments, and inet6_rth_getaddr.
13765 * inet/inet6_opt.c: New file.
13766 * inet/inet6_rth.c: New file.
13768 * inet/netinet/icmp6.h: Pretty printing.
13771 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13773 2006-05-23 Ulrich Drepper <drepper@redhat.com>
13775 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13776 doing it all here. When server does not know the answer do not
13777 fail immediate, try parent first.
13779 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
13782 2006-05-20 Ulrich Drepper <drepper@redhat.com>
13784 * nis/nis_call.c (__prepare_niscall): New function. Split out
13786 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
13788 (__follow_path): New function. Split out from nis_list.
13789 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
13791 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
13793 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
13795 * nis/Versions: Export __prepare_niscall, __create_ib_request,
13796 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
13797 from libnsl for version GLIBC_PRIVATE.
13798 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
13799 Remove entry parameter from _nss_nisplus_parse_pwent and
13800 _nss_nisplus_parse_grent.
13801 * nis/nss_nisplus/nisplus-parser.c: Likewise.
13802 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
13803 again. Rewrite getpwent handling to not use nis_first_entry and
13804 nis_next_entry. Roll out own niscall handling.
13805 * nis/nss_nisplus/nisplus-grp.c: Likewise.
13807 * sunrpc/xdr_rec.c: Fix typo in comment.
13809 2006-05-19 Ulrich Drepper <drepper@redhat.com>
13811 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
13814 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
13815 to allocate memory for my_pollfd. Better initialization of
13816 cb_is_running. Use TEMP_FAILURE_RETRY.
13818 * malloc/memusage.sh (memusageso): Add quotes.
13819 (memusagestat): Likewise.
13820 * debug/xtrace.sh (pcprofileso): Likewise.
13821 (pcprofiledump): Likewise.
13822 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
13824 * malloc/Makefile ($(objpfx)memusage): Likewise.
13826 * nis/nis_callback.c (__nis_create_callback): Calls to
13827 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
13828 asprintf call fails.
13830 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
13831 no uninitialized memory is passed to sendto.
13833 2006-05-18 Ulrich Drepper <drepper@redhat.com>
13835 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
13836 of snprintf+strdup. Handle OOM.
13837 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
13838 cb->serv together. Remove now obsolete free calls.
13839 (__nis_destroy_callback): Remove now obsolete free call.
13841 2006-05-18 David Woodhouse <dwmw2@redhat.com>
13843 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
13844 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
13845 and ULA respectively). Set precedence for IPv4 address to 10 as
13846 defined in RFC3484 for preferring IPv6.
13847 * posix/gai.conf: Update to match the new default tables.
13849 2006-05-18 Jakub Jelinek <jakub@redhat.com>
13851 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
13852 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
13853 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
13854 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
13856 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
13858 (init_nss_interface): Remove initialization of these variables.
13860 2006-05-18 Ulrich Drepper <drepper@redhat.com>
13862 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
13863 nis_free_directory forward to avoid duplication.
13865 2006-05-17 Ulrich Drepper <drepper@redhat.com>
13867 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
13868 rec_dirsearch returning NULL.
13869 (first_shoot): Handle __nis_finddirectory returning NULL.
13870 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
13872 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
13873 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
13875 2006-05-17 Jakub Jelinek <jakub@redhat.com>
13877 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
13880 2006-05-15 Ulrich Drepper <drepper@redhat.com>
13882 * include/rpc/pmap_prot.h: Mark all functions as hidden.
13884 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
13885 * nscd/nscd_getgr_r.c: Likewise.
13887 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
13889 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
13890 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
13892 * stdlib/longlong.h (__clz_tab): Mark as hidden.
13894 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
13896 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
13898 * include/rpc/auth.h: Mark xdr_des_block_internal and
13899 xdr_opaque_auth_internal as hidden.
13901 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
13904 * include/rpc/xdr.h: Mark all _internal functions as hidden.
13906 * misc/getusershell.c (okshells): Don't use static initializers,
13909 * stdlib/fmtmsg.c (keywords): Change type of len element to
13910 uint32_t to not waste space on 64bit machines.
13912 * locale/setlocale.c: Change _nl_category_names into a string.
13913 Add new _nl_category_name_idxs. Change all users.
13914 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
13915 Declare _nl_category_name_idxs.
13916 * locale/findlocale.c: Adjust for _nl_category_names change.
13917 * locale/loadlocale.c: Likewise.
13918 * locale/newlocale.c: Likewise.
13919 * intl/dcigettext.c: Likewise.
13921 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
13922 (add_alias2): ...here. New function.
13923 (__gconv_read_conf): Simplify builtin alias handling.
13924 (builtin_aliases): Convert to string to avoid relocations.
13925 * iconv/gconv_builtin.h: Add comment about correct formatting.
13927 2006-05-15 Jakub Jelinek <jakub@redhat.com>
13929 * resolv/res_debug.c (loc_ntoa): Make error const.
13931 2006-05-14 Andreas Schwab <schwab@suse.de>
13933 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
13935 2006-05-12 Jakub Jelinek <jakub@redhat.com>
13937 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
13938 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
13939 sizeof (cpu_set_t).
13941 2006-05-11 Ulrich Drepper <drepper@redhat.com>
13943 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
13945 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
13947 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
13948 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
13950 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
13951 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
13953 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
13954 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
13957 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
13958 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13961 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
13962 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
13964 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
13965 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
13967 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
13968 * include/rpcsvc/nis_callback.h: New file.
13970 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
13971 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
13973 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13974 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13976 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
13977 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
13979 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
13980 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
13982 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
13983 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
13986 * nis/nis_xdr.h: Mark all functions as hidden. Remove
13987 __BEGIN_DECLS and __END_DECLS, the header is not installed.
13989 * nis/nis_error.c: Remove table of strings. Use position
13990 independent mechanism.
13991 * nis/nis_error.h: New file.
13993 2006-05-11 Jakub Jelinek <jakub@redhat.com>
13995 * locale/programs/ld-time.c (time_finish): If wide era name or
13996 format aren't provided, set both wname and wformat to L"".
13998 2006-05-10 Ulrich Drepper <drepper@redhat.com>
14000 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14001 results if the call was succesful.
14003 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14005 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14008 2006-05-10 Jakub Jelinek <jakub@redhat.com>
14010 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14012 2006-05-10 Ulrich Drepper <drepper@redhat.com>
14014 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14015 caller makes sure this is not the case.
14016 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
14018 2006-05-09 Ulrich Drepper <drepper@redhat.com>
14020 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14023 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14024 [Coverity CID 229, 230]
14026 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14028 (hol_help): Likewise. [Coverity CID 226, 227]
14030 * string/argz-replace.c (__argz_replace): Unconditionally call
14031 free on SRC. [Coverity CID 225]
14033 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14034 the return value of __nis_default_owner and __nis_default_group,
14035 it has been especially allocated. [Coverity CID 224]
14037 * nis/nis_defaults.c (searchXYX): New functions. Used by both
14038 searchgroup and searchowner. Significantly simplified.
14039 (__nis_default_owner): Remove duplication. Do not locally copy the
14040 string before duplicating it.
14041 (__nis_default_group): Likewise.
14043 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14044 we must clear the variable before calling __nisfind_server.
14046 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14047 nis_getnames. [Coverity CID 223]
14049 * locale/programs/locfile.c (locfile_read): Use alloca instead of
14050 xmalloc to allocate local repertoire name. [Coverity CID 222]
14052 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14053 allocate memory for the input to add_bytes. [Coverity CID 221]
14055 * posix/wordexp.c (w_addword): Free word if realloc fails and it
14056 was allocated here. [Coverity CID 219, 220]
14058 * posix/getconf.c (print_all): Free confstr data after printing.
14061 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14062 list allocation fails. [Coverity CID 215]
14064 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14067 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14068 string is NULL. [Coverity CID 212]
14069 * argp/Makefile: Add rules to build and run bug-argp1.
14070 * argp/bug-argp1.c: New file.
14072 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14074 * stdlib/canonicalize.c (__realpath): Likewise.
14076 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14077 pointer. [Coverity CID 206]
14079 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14080 in statically linked code.
14081 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14082 statically built code, be prepared to have no link map.
14085 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14086 dgettext calls. [Coverity CID 204]
14088 * argp/argp-help.c (struct uparams): Remove valid member. Change
14090 (uparam_names): Reduce size. Avoid relative relocations.
14091 Moved to read-only segment.
14092 (fill_in_uparams): Update for new layout.
14094 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14095 assumed to always be != NULL. [Coverity CID 202]
14097 * argp/argp-help.c (hol_entry_help): Remove some dead code
14098 [Coverity CID 200].
14100 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14101 away a few more unconditional yperr2nss calls.
14102 (_nss_nis_getservbyname_r): Likewise.
14104 2006-05-06 Ulrich Drepper <drepper@redhat.com>
14106 * sysdeps/generic/ldsodefs.h: Remove support for non-core
14109 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14110 that unused memory passed to sendto is nevertheless initialized.
14113 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14114 possibly unaligned memory accesses.
14116 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14117 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14118 and __putlong respectively. Correct buffer overflow check for
14121 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14123 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14124 (send_dg): Rewrite error handling to be more compact and avoid
14125 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
14127 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14129 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14130 instead of ns_get16.
14131 (res_queriesmatch): Likewise. Minor optimization.
14134 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14135 __libc_res_nsend might reallocate the buffer for the answer. In
14136 this case we have to reload the HP pointer.
14138 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14140 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
14141 some branch prediction hints.
14143 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14144 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14145 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14146 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14147 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14148 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14149 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14150 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14152 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
14154 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14155 by a GOT relocation to make Scrt1.o position independent.
14156 * sysdeps/s390/s390-64/elf/start.S: Likewise.
14158 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14159 six system call parameters.
14160 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14162 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14164 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14167 * sunrpc/svc_udp.c (BZERO): Remove definition.
14169 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14171 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
14172 (des_SPtrans): Use uint32_t type.
14173 (des_skb): Likewise.
14175 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14177 2006-05-05 Jakub Jelinek <jakub@redhat.com>
14180 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14183 2006-05-05 Ulrich Drepper <drepper@redhat.com>
14185 * locale/programs/ld-address.c (address_finish): Fix one more
14186 place where the iso639 array might be accessed beyond the limits.
14188 2006-05-04 Ulrich Drepper <drepper@redhat.com>
14190 * nis/nis_table.c (nis_list): Avoid clearing res twice before
14191 filling it for the first time.
14193 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14194 Adjust all callers.
14195 Free res object content before returning.
14197 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14199 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14202 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14203 cleanup for initial thread, just the free call on TVP.
14205 * nscd/gai.c (__getline): Define.
14208 See ChangeLog.16 for earlier changes.