Fix jn precision
[glibc.git] / ChangeLog
blob663765f6be2bb949035f974ce53d2d64dcd7dc70
1 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
3         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
5 2011-07-03  Andreas Jaeger  <aj@suse.de>
7         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
8         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
9         regenerate with gen-libm-tests.pl.
11 2010-05-12  Petr Baudis  <pasky@suse.cz>
13         [BZ #11589]
14         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
15         around j0() zero points by switching to j1().
16         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
19         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
21 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
23         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
24         instead of 0.
25         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
26         instead of 0.                              .
27         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
28         Patch in part by Pavel Roskin <proski@gnu.org>.
30         [BZ #13138]
31         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
32         realloc.
33         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
34         Free memory block if necessary.
36         [BZ #12847]
37         * libio/genops.c (INTDEF): For string streams the _lock pointer can
38         be NULL.  Don't lock in this case.
40 2011-09-09  Roland McGrath  <roland@hack.frob.com>
42         * elf/elf.h (ELFOSABI_GNU): New macro.
43         (ELFOSABI_LINUX): Define to that.
45 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
47         * string/strncat.c (strncat): Undef the symbol in case it has been
48         defined in bits/string.h.
50 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
52         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
54         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
55         link map.
57 2011-08-17  Andreas Jaeger  <aj@suse.de>
59         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
61 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
62             Ian Lance Taylor  <iant@google.com>
64         * math/libm-test.inc (lround_test): New testcase.
65         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
67 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
69         * Makefile: Remove support for automatic cvs check-ins.
70         * Makerules: Likewise.
71         * config.make.in: Likewise.
72         * configure.in: Likewise.
73         * intl/Makefile: Likewise.
74         * locale/Makefile: Likewise.
75         * po/Makefile: Likewise.
76         * posix/Makefile: Likewise.
77         * sysdeps/gnu/Makefile: Likewise.
78         * sysdeps/mach/hurd/Makefile: Likewise.
79         * sysdeps/sparc/sparc32/Makefile: Likewise.
81         [BZ #13118]
82         * posix/Makefile (bug-regex32-ENV): Define.
83         Patch by John Stanley <jpsinthemix@verizon.net>.
85         * misc/Makefile (headers): Add bits/select2.h.
86         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
87         * misc/bits/select2.h: New file.
88         * include/bits/select2.h: New file.
89         * debug/Makefile (routines): Add fdelt_chk.
90         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
91         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
92         FD_ISSET.
93         * debug/fdelt_chk.c: New file.
95         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
96         * wcsmbs/test-wmemcmp.c: Likewise.
97         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
98         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
100 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
102         * string/Makefile (strop-tests): Add memcmp.
103         * string/test-wmemcmp.c: New file.
104         * string/test-memcmp.c: Add wmemcmp support.
106 2011-09-08  Roland McGrath  <roland@hack.frob.com>
108         [BZ #13153]
109         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
110         2011-07-19 change.
112         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
113         garbage value in a __mach_port_mod_refs call in the cases of the
114         task-self and thread-self ports.
116 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
118         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
120 2011-09-08  Andreas Schwab  <schwab@redhat.com>
122         * elf/dl-load.c (lose): Check for non-null L.
124 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
126         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
128         * elf/dl-libc.c (dlerror_run): Pass back error code from
129         dl_catch_error.
131         [BZ #13123]
132         * elf/dl-load.c (lose): Free l_origin if it is valid.
134         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
135         names.
136         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
137         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
138         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
139         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
140         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
141         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
143 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
145         * sysdeps/powerpc/fpu/e_hypot.c: New file.
146         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
147         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
148         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
149         * sysdeps/powerpc/fpu/k_cosf.c: New file.
150         * sysdeps/powerpc/fpu/k_sinf.c: New file.
151         * sysdeps/powerpc/fpu/s_cosf.c: New file.
152         * sysdeps/powerpc/fpu/s_sinf.c: New file.
153         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
154         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
156 2011-08-15  Alan Modra  <amodra@gmail.com>
158         [BZ #13092]
159         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
160         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
161         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
162         ppc_mcount to static-only-routines.
163         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
164         __mcount_internal.
165         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
166         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
168 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
170         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
171         for finite and infinity parameters.
173 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
175         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
176         and add nop instructions for throughput optimization.
177         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
179 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
181         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
182         aligned copy for power7 with vector-scalar instructions.
183         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
185 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
187         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
188         AVX check.
190 2011-09-07  Andreas Schwab  <schwab@redhat.com>
192         [BZ #13144]
193         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
194         last change.
196 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
198         * sysdeps/unix/sysv/linux/x86_64/init-first.c
199         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
200         syscall wrapper around clock_gettime in __vdso_clock_gettime.
201         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
202         clock_gettime.
204 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
206         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
207         Forgot to demangle the pointer.
209         * sysdeps/i386/sysdep.h: Define atom_text_section.
210         * sysdeps/x86_64/sysdep.h: Likewise.
211         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
212         section with atom_text_section.
213         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
214         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
215         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
216         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
217         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
219         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
220         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
221         already be defined.  Change to take two parameters and don't assign
222         result to variable.  Adjust all users.
223         Define INTERNAL_GETTIME if not already defined.
224         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
225         call.
226         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
227         HAVE_CLOCK_GETTIME_VSYSCALL.
228         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
230         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
231         gettimeofday vsyscall, just use time.
233 2011-09-06  Andreas Schwab  <schwab@redhat.com>
235         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
236         <errno.h>.
238 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
240         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
241         syscall on x86-64.
242         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
243         syscall.
244         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
245         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
246         syscall if possible.
248 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
250         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
251         e_ident.  Don't pass to find_mapsXX.
252         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
254 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
256         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
257         strchr-sse2-no-bsf strrchr-sse2-no-bsf
258         * sysdeps/x86_64/multiarch/strchr.S: Update.
259         Check bit_slow_BSF bit.
260         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
261         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
262         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
264 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
266         [BZ #13134]
267         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
268         before glibc 2.15.
269         (tryshell): Define.
270         (__spawni): Change last parameter to be flag.  Test
271         SPAWN_XFLAGS_USE_PATH flag to use path or not.
272         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
273         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
274         * posix/spawni.c: Likewise.
275         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
276         * posix/spawnp.c: Likewise.  Change normal version to use
277         SPAWN_XFLAGS_USE_PATH.
278         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
279         SPAWN_XFLAGS_TRY_SHELL.
281         [BZ #13150]
282         * posix/glob.h: Remove gcc 1.x support.
284         [BZ #13068]
285         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
287 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
289         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
290         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
291         strrchr-sse2-bsf
292         * sysdeps/i386/i686/multiarch/strchr.S: New file.
293         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
294         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
295         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
296         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
297         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
299 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
301         * sysdeps/x86_64/wcscmp.S: New file.
303         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
304         wcscmp-c wcscmp-sse2
305         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
306         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
307         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
308         * wcsmbs/wcscmp.c: Allow renaming.
310 2011-09-05  David S. Miller  <davem@davemloft.net>
312         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
313         stack slot, rather than the struct return pointer slot.
314         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
315         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
316         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
317         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
319 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
321         * po/ja.po: Update from translation team.
323         [BZ #13144]
324         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
325         kernel in 64-bit binaries.
327 2011-09-01  David S. Miller  <davem@davemloft.net>
329         * elf/elf.h (HWCAP_SPARC_*): Move to..
330         * sysdeps/sparc/sysdep.h: this new file and add new values.
331         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
332         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
333         _DL_HWCAP_COUNT to 24.
334         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
335         entries.
336         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
337         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
338         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
339         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
340         instead of magic constants.
341         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
343 2011-08-31  David S. Miller  <davem@davemloft.net>
345         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
346         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
347         Reimplement to do errno handling inline.
348         (SYSCALL_ERROR_HANDLER): New macro.
349         (__SYSCALL_STRING): Do not do errno handling in asm.
350         (__CLONE_SYSCALL_STRING): Delete.
351         (__INTERNAL_SYSCALL_STRING): Delete.
352         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
353         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
354         (PSEUDO): Reimplement to do errno handling inline.
355         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
356         (SYSCALL_ERROR_HANDLER): New macro.
357         (__SYSCALL_STRING): Do not do errno handling in asm.
358         (__CLONE_SYSCALL_STRING): Delete.
359         (__INTERNAL_SYSCALL_STRING): Delete.
360         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
361         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
362         i386.
363         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
364         (inline_syscall*): Add 'err' argument.
365         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
366         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
367         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
368         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
370         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
371         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
373 2011-08-30  Andreas Schwab  <schwab@redhat.com>
375         * elf/rtld.c (dl_main): Relocate objects in dependency order.
377 2011-08-29  Jiri Olsa <jolsa@redhat.com>
379         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
380         directive.
382 2011-08-24  David S. Miller  <davem@davemloft.net>
384         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
386 2011-08-24  Andreas Schwab  <schwab@redhat.com>
388         * elf/Makefile: Add rules to build and run unload8 test.
389         * elf/unload8.c: New file.
390         * elf/unload8mod1.c: New file.
391         * elf/unload8mod1x.c: New file.
392         * elf/unload8mod2.c: New file.
393         * elf/unload8mod3.c: New file.
395         * elf/dl-close.c (_dl_close_worker): Reset private search list if
396         it wasn't used.
398 2011-08-23  David S. Miller  <davem@davemloft.net>
400         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
401         subtract stack bias.
402         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
403         %sp not %fp in calculations.
404         (_JMPBUF_UNWINDS_ADJ): Likewise.
406         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
407         (aio_suspend): Call it to force an exception region around the
408         AIO_MISC_WAIT() invocation.
410 2011-08-23  Andreas Schwab  <schwab@redhat.com>
412         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
413         backslash.
415 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
417         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
418         protection macro.
419         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
420         and <dl-machine.h>.
421         (Elf64_FuncDesc): Remove.
423 2011-08-22  David S. Miller  <davem@davemloft.net>
425         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
426         sigaltstack check, add missing cfi directives.
427         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
428         missing cfi directives, and sigaltstack handling.
430 2011-08-16  Andreas Schwab  <schwab@redhat.com>
432         [BZ #11724]
433         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
434         object is seen twice.
435         * elf/dl-fini.c (_dl_sort_fini): Likewise.
437         * elf/Makefile (distribute): Add tst-initorder2.c.
438         (tests): Add tst-initorder2.
439         (modules-names): Add tst-initorder2a tst-initorder2b
440         tst-initorder2c tst-initorder2d.  Add rules to build them.
441         ($(objpfx)tst-initorder2.out): New rule.
442         * elf/tst-initorder2.c: New file.
443         * elf/tst-initorder2.exp: New file.
445 2011-08-22  Andreas Schwab  <schwab@redhat.com>
447         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
449         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
450         dependencies back to end of function.
452         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
453         $(elfobjdir)/ld.so.
455 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
457         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
458         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
459         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
460         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
461         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
462         of __vdso_gettimeofday.
463         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
464         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
465         attribute_hidden.
466         (_libc_vdso_platform_setup): Remove initialization of
467         __vdso_gettimeofday and __vdso_time.
469 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
471         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
472         and fgetc_unlocked.
473         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
474         getc_unlocked.
476         * elf/dl-open.c (add_to_global): Report additions to the global scope
477         for LD_DEBUG=scopes.
478         (dl_open_worker): Also print scope of newly loaded dependencies.
479         (_dl_show_scope): Indicate if there is no scope.
481         [BZ #13114]
482         * stdio-common/Makefile (tests): Add bug24.
483         * stdio-common/bug24.c: New file.
485 2011-08-19  Andreas Jaeger  <aj@suse.de>
487         [BZ #13114]
488         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
489         non-existant file when using close-on-exec mode.
491 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
493         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
494         the very first instruction.
496         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
497         the CFI state in the end.
498         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
499         inclusion of dl-trampoline.h.
500         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
502 2011-08-19  Andreas Schwab  <schwab@redhat.com>
504         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
505         expectations for long double.
507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
508         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
510 2011-08-14  David S. Miller  <davem@davemloft.net>
512         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
513         artificual limit depends upon the system page size.
515 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
517         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
518         * resolv/Makefile: Define CFLAGS-libresolv.
520 2011-08-17  Andreas Schwab  <schwab@redhat.com>
522         * nss/makedb.c (compute_tables): Make variables used in nested
523         function static.
525 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
527         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
528         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
529         if buffer was too small.
531         * elf/pldd.c (main): Attach to all threads in the process.
532         Rewrite /proc handling to use *at functions.
534 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
536         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
537         specifies first scope to show.
538         (dl_open_worker): Update callers.  Move printing scope of new
539         object to before the relocation.
540         * elf/rtld.c (dl_main): Update _dl_show_scope call.
541         * sysdeps/generic/ldsodefs.h: Update declaration.
543         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
544         string for the scope number.
546 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
548         * nscd/servicescache.c (cache_addserv): Make sure written is always
549         initialized.
551 2011-08-14  Roland McGrath  <roland@hack.frob.com>
553         * sysdeps/i386/i486/bits/atomic.h
554         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
555         statement expression, so as to suppress "set but not used" warning.
556         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
558         * string/strncat.c (STRNCAT): Use prototype definition.
560         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
561         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
562         -Iprograms here.
563         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
564         (localedef-modules): Add localedef.
565         (locale-modules): Add locale.
567         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
568         * elf/rtld.c (dl_main): Invert order of assignment in last change,
569         to avoid a warning.
571 2011-08-14  David S. Miller  <davem@davemloft.net>
573         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
574         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
576 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
578         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
579         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
580         * elf/rtld.c (dl_main): Set l_name of vDSO.
581         Call _dl_show_scope when DL_DEBUG_SCOPES.
582         (process_dl_debug): Recognize scopes flag and also set it for all.
583         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
584         Declare _dl_show_scope.
586         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
587         (do_dlopen): Pass caller_dlopen to dl_open.
588         (__libc_dlopen_mode): Initialize caller_dlopen.
590         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
591         of libc.  Make tolower call locale-independent.  Optimize a bit by
592         using isdigit instead of isalnum.
593         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
595 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
597         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
598         was a dependency or dynamically loaded.
600 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
602         * intl/l10nflist.c: Allow architecture-specific pop function.
603         * sysdeps/x86_64/l10nflist.c: New file.
605         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
606         classification.
608 2011-08-10  Andreas Schwab  <schwab@redhat.com>
610         * include/dirent.h: Add libc_hidden_proto for scandirat and
611         scandirat64.  Don't declare __scandirat64.
612         * dirent/scandirat.c: Add libc_hidden_def.
613         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
614         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
616 2011-08-10  David S. Miller  <davem@davemloft.net>
618         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
619         enum.
620         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
621         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
622         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
624 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
626         * Versions.def [libc]: Add GLIBC_2.15.
627         * dirent/Makefile (routines): Add scandirat and scandirat64.
628         * dirent/Versions [libc]: Export scandirat and scandirat64 for
629         GLIBC_2.15.
630         * dirent/dirent.h: Declare scandirat and scandirat64.
631         * dirent/scandirat.c: New file.
632         * dirent/scandirat64.c: New file.
633         * sysdeps/wordsize-64/scandirat.c: New file.
634         * sysdeps/wordsize-64/scandirat64.c: New file.
635         * dirent/opendir.c: Define opendirat.
636         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
637         using scandirat.
638         * dirent/scandir64.c: Adjust for scandir.c change.
639         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
640         __scandirat64, and __scandir_cancel_handler.
641         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
642         additional parameter and use openat instead of open (outside of ld.so).
643         Add new __opendir as wrapper around __opendirat.
644         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
645         here without requiring old scandirat implementation.
647 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
649         * dirent/scandir.c (cancel_handler): Renamed to
650         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
651         defined.  Adjust users.
652         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
653         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
655 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
657         * string/test-string.h (IMPL): Use __STRING to expand name and then
658         stringify it.
660         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
661         of cleanups.
663 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
665         * string/Makefile: Update.
666         (strop-tests): Append strncat.
667         * string/test-wcscmp.c: New file.
668         New comprehensive test for wcscmp.
669         * string/test-strcmp.c: Update.
670         (WIDE): New define.
672 2011-07-22  Andreas Schwab  <schwab@redhat.com>
674         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
675         line.
677 2011-07-26  Andreas Schwab  <schwab@redhat.com>
679         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
680         encoding to ACE if AI_IDN.
682 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
684         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
685         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
687 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
689         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
690         Fix overflow bug in strncat.
691         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
693         * string/test-strncat.c: Update.
694         Add new tests for checking overflow bugs.
696 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
698         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
699         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
700         * sysdeps/i386/i686/multiarch/strcat.S: New file.
701         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
702         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
703         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
704         * sysdeps/i386/i686/multiarch/strncat.S: New file.
705         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
706         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
708         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
709         (USE_AS_STRCAT): Define.
710         Add strcat and strncat support.
711         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
713 2011-07-25  Andreas Schwab  <schwab@redhat.com>
715         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
716         __n bigger than INT_MAX+1.
717         (__strncmp_g): Likewise.
719 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
721         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
722         * libio/stido.h: Likewise.
724         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
725         (AF_NFC): Define.
726         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
727         (AF_NFC): Define.
729         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
730         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
731         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
732         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
733         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
735         [BZ #13021]
736         * scripts/test-installation.pl: Don't expect libnss_test1 to be
737         installed.
739         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
740         typo.
741         (_dl_x86_64_save_sse): Likewise.
743 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
745         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
746         OSXSAVE.
747         (_dl_x86_64_save_sse): Likewise.
749         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
751         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
753 2011-07-21  Andreas Schwab  <schwab@redhat.com>
755         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
756         change.
757         (_dl_x86_64_save_sse): Use correct AVX check.
759 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
761         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
762         bug in strncpy/strncat.
763         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
765 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
767         * string/tester.c (test_strcat): Add tests for different alignments
768         of source and destination.
769         (test_strncat): Likewise.
771 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
773         [BZ #12852]
774         * posix/glob.c (glob): Check passed in values before using them in
775         expressions to avoid some overflows.
776         (glob_in_dir): Likewise.
778         [BZ #13007]
779         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
780         check for AVX enablement so that we don't crash with old kernels and
781         new hardware.
782         * elf/tst-audit4.c: Add same checks here.
783         * elf/tst-audit6.c: Likewise.
785         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
787 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
789         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
791 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
793         * po/cs.po: Update from translation team.
794         * po/bg.po: Likewise.
796 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
798         * misc/sys/cdefs.h: Add support for const attribute.
799         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
800         to gnu_dev_{major,minor,makedev} functions.
802 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
804         * intl/dcigettext.c (get_output_charset): Add missing bracket.
806 2011-07-20  Andreas Schwab  <schwab@redhat.com>
808         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
809         strlen results.
811 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
813         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
814         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
815         register in order to avoid conflicts with the soft frame pointer
816         being held in r11 when necessary.
817         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
818         (INTERNAL_VSYSCALL_NCS): Likewise.
820 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
822         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
823         * elf/dl-fini.c (_dl_fini): Adjust caller.
824         * elf/dl-close.c (_dl_close_worker): Likewise.
825         * sysdeps/generic/ldsodefs.h: Adjust declaration.
827 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
829         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
830         "aux_cache->nlibs < 0".
832         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
833         in the reload-count case.
835 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
837         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
838         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
839         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
840         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
841         * sysdeps/x86_64/multiarch/strcat.S: New file.
842         * sysdeps/x86_64/multiarch/strncat.S: New file.
843         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
844         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
845         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
846         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
847         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
848         (USE_AS_STRCAT): Define.
849         Add strcat and strncat support.
850         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
851         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
852         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
853         * string/strncat.c: Update.
854         (USE_AS_STRNCAT): Define.
855         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
856         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
857         and i7.
858         * sysdeps/x86_64/multiarch/init-arch.h
859         (bit_Prefer_PMINUB_for_stringop): New.
860         (index_Prefer_PMINUB_for_stringop): Likewise.
861         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
862         bit_Prefer_PMINUB_for_stringop.
864 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
866         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
867         buffer64.
868         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
869         of casting of buffer.
870         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
871         buffer32 and buffer64.
872         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
873         writes instead of casting of buffer.
874         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
875         buffer32.
876         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
877         casting of buffer.
879 2011-07-19  Andreas Schwab  <schwab@redhat.com>
881         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
883 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
885         * nscd/nscd.c (termination_handler): Don't do anything for a database
886         if it has not yet been initialized.
888 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
890         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
892 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
894         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
896 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
898         * po/nl.po: Update from translation team.
899         * po/sv.po: Likewise.
901 2011-07-16  Roland McGrath  <roland@hack.frob.com>
903         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
904         now disallowed by GCC.
906         * configure.in (use-default-link): Default to yes if a test -shared
907         link meets our qualifications.
908         * configure: Regenerated.
910         * config.make.in (output-format): New variable.
911         * configure.in: Check for ld --print-output-format support.
912         * configure: Regenerated.
913         * Makerules ($(common-objpfx)format.lds)
914         [$(output-format) != unknown]: Just use $(output-format),
915         instead of the linker-script munging.
917 2011-07-14  Roland McGrath  <roland@hack.frob.com>
919         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
920         of $(common-objpfx)shlib.lds.
921         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
923         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
924         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
926         * configure.in (-z relro check): Adjust test code to add a large
927         writable data section after it.
928         * configure: Regenerated.
930 2011-07-11  Roland McGrath  <roland@hack.frob.com>
932         * configure.in (-z relro check): Fix test code to make the variable
933         truly const.
934         * configure: Regenerated.
936 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
938         * nscd/nscd.h (struct traced_file): Define.
939         (struct database_dyn): Remove inotify_descr, reset_res, and filename
940         elements.  Add traced_files.
941         (inotify_fd): Declare.
942         (register_traced_file): Declare.
943         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
944         (inotify_fd): Export.
945         (resolv_conf_descr): Remove.
946         (nscd_init): Move inotify descriptor creation to main.
947         Don't register files for notification here.
948         (register_traced_file): New function.
949         (invalidate_cache): Don't use reset_res to determine whether to call
950         res_init, go through the list of registered files.
951         (main_loop_poll): The inotify descriptors are now stored in the
952         structures for the traced files.
953         (main_loop_epoll): Likewise
954         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
955         to __nss_disable_nscd.
956         * nscd/cache.c (prune_cache): There is no single inotify descriptor
957         for a database anymore.  Check the records for all the registered
958         files instead.
959         * nss/Makefile (libnss_files-routines): Add files-init.
960         (libnss_db-routines): Add db-init.
961         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
962         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
963         * nss/nss_db/db-init.c: New file.
964         * nss/nss_files/files-init.c: New file.
965         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
966         __nss_lookup_function.
967         (__nss_lookup_function): Call nss_load_library.
968         (nss_load_all_libraries): New function.
969         (__nss_disable_nscd): Take parameter with callback function for files
970         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
971         used for the cached services.
972         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
973         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
974         options for features to all the files in nscd.
976         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
978 2011-07-10  Roland McGrath  <roland@hack.frob.com>
980         * csu/elf-init.c (__libc_csu_init): Comment typo.
982 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
984         * po/pl.po: Update from translation team.
985         * po/ja.po: Likewise.
986         * po/ru.po: Likewise.
987         * po/ko.po: Likewise.
988         * po/fr.po: Likewise.
990 2011-07-09  Roland McGrath  <roland@hack.frob.com>
992         * configure.in (.ctors/.dtors header and trailer check):
993         Use an empirical test on a built program.
994         * configure: Regenerated.
996         * configure.in (-z relro check): Use an empirical test on a built DSO.
997         Detect, but do not require, on ia64.
998         * configure: Regenerated.
1000         * configure.in (READELF): Find it with AC_CHECK_TOOL.
1001         Update tests that use readelf to use $READELF instead.
1002         * configure: Regenerated.
1004 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
1006         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
1007         if the result is not used.
1009 2011-07-05  Andreas Jaeger  <aj@suse.de>
1011         [BZ#9696]
1012         * stdlib/tst-strtod.c: Add testcase.
1014 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
1016         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
1017         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
1018         The latter has a higher limit.  Take additional parameter to pass to
1019         the new function.
1020         (__pathconf): Pass file to __statfs_link_max.
1021         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
1022         __statfs_link_max.
1023         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
1024         __statfs_link_max.
1026         [BZ #12868]
1027         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
1028         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
1029         Handle Lustre.
1030         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
1031         (__statfs_filesize_max): Likewise.
1032         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
1034 2011-07-05  Andreas Jaeger  <aj@suse.de>
1036         * resolv/res_comp.c (dn_skipname): Remove unused variable.
1038 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
1040         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
1041         `status' variable.
1042         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
1043         Likewise.
1045 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
1047         * Makefile (strop-tests): Add strncat.
1048         * string/test-strncat.c: New file.
1050 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
1052         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
1054 2011-06-21  Andreas Jaeger  <aj@suse.de>
1056         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
1057         Copy rule from iconvdata/Makefile.
1059 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
1061         [BZ #12922]
1062         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
1063         but no long options are defined, just return 'W'.
1065 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
1067         [BZ #9696]
1068         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
1070 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
1072         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
1073         netgroups to read.
1074         (innetgr): Likewise.
1076 2011-07-05  Roland McGrath  <roland@hack.frob.com>
1078         * config.make.in (install_root): Default to $(DESTDIR).
1080 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
1082         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
1084 2011-07-02  Roland McGrath  <roland@hack.frob.com>
1086         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
1088         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
1089         containing directory rather than embedding absolute directory names.
1091         * scripts/check-local-headers.sh: Rewritten using awk.
1092         Match by word, not by line.  Print error messages for matches.
1093         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
1095         * Makerules [shlib-lds-flags empty]:
1096         ($(common-objpfx)libc_pic.opts): New target.
1097         ($(common-objpfx)libc_pic.os.clean): New target.
1098         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
1100         * config.make.in (OBJCOPY): New variable.
1101         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
1102         * configure: Regenerated.
1104         * config.make.in (use-default-link): New variable.
1105         * configure.in (use_default_link): Grok --with-default-link to set it.
1106         * configure: Regenerated.
1107         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
1108         (shlib-lds, shlib-lds-flags): Define to empty.
1110         * Makerules (shlib-lds): New variable.
1111         (shlib-lds-flags): New variable.
1112         (build-shlib, build-moduile, build-module-asneeded): Use it.
1113         ($(common-objpfx)libc.so): Use $(shlib-lds).
1114         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
1115         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
1117         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
1118         DT_FLAGS/DT_FLAGS_1 with zero flags.
1120         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
1121         linker script munging.
1123 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
1125         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
1126         as 128-bit value.
1127         * crypt/sha512.c (sha512_process_block): Perform total addition using
1128         128-bit if possible.
1129         (__sha512_finish_ctx): Likewise.
1130         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
1131         as 64-bit value.
1132         * crypt/sha256.c (SWAP64): Define.
1133         (sha256_process_block): Perform total addition using 64-bit if
1134         possible.
1135         (__sha256_finish_ctx): Likewise.
1137 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
1139         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
1140         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1141         * nscd/hstcache.c (cache_addhst): Likewise.
1142         * nscd/grpcache.c (cache_addgr): Likewise.
1143         * nscd/aicache.c (addhstaiX): Likewise
1144         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
1146 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
1148         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
1149         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1150         * nscd/hstcache.c (cache_addhst): Likewise.
1151         * nscd/grpcache.c (cache_addgr): Likewise.
1152         * nscd/aicache.c (addhstaiX): Likewise
1154 2011-07-01  Andreas Schwab  <schwab@redhat.com>
1156         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
1157         domain only when needed.
1159 2011-06-30  Andreas Schwab  <schwab@redhat.com>
1161         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
1162         is always restored.
1164 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
1166         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
1167         are re-adding the entry.
1168         * nscd/servicescache.c (cache_addserv): Likewise.
1170 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
1172         * sysdeps/generic/dl-irel.h: fix protection against multiple
1173         inclusions.
1174         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
1176 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
1178         [BZ #12935]
1179         * malloc/memusage.sh: Fix quoting in message.
1180         * debug/xtrace.sh: Likewise.
1182         * configure.in: Remove support for --experimental-malloc option, make
1183         it the default.
1184         * config.make.in: Likewise.
1185         * malloc/Makefile: Likewise.
1187 2011-06-27  Andreas Schwab  <schwab@redhat.com>
1189         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
1190         two-byte characters.
1192 2011-06-27  Roland McGrath  <roland@hack.frob.com>
1194         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
1195         AC_CACHE_CHECK invocation.
1196         * configure: Regenerated.
1198         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
1200 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
1202         [BZ #12350]
1203         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
1204         bit from old_res_options.
1206         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
1208         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
1209         value type for setfct.
1211 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
1213         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
1214         __gettimeofday instead of gettimeofday.
1216 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
1218         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
1220 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
1222         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
1224         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
1225         info.
1227 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1229         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1230         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
1231         strcpy-sse2-unaligned strncpy-sse2-unaligned
1232         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
1233         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
1234         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
1235         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
1236         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
1237         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
1238         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
1239         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
1240         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
1241         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
1242         (STRCPY): Support SSE2 and SSSE3 versions.
1244 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
1246         [BZ #12874]
1247         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
1248         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
1249         kernels which artificially limit size of requests.
1251 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1253         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
1254         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
1255         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
1256         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
1257         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
1258         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
1259         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
1260         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
1261         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
1262         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
1263         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
1264         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
1265         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
1266         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
1267         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
1268         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1269         Enable unaligned load optimization for Intel Core i3, i5 and i7
1270         processors.
1271         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
1272         Define.
1273         (index_Fast_Unaligned_Load): Define.
1274         (HAS_FAST_UNALIGNED_LOAD): Define.
1276 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
1278         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
1280 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
1282         [BZ #12907]
1283         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
1284         until it is clear that the information is realy needed.
1285         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
1287 2011-06-22  Andreas Schwab  <schwab@redhat.com>
1289         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
1291 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
1293         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
1294         /sys/devices/system/cpu/online if it is usable.
1296         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
1297         reading the information from the /proc filesystem to once a second.
1299 2011-06-21  Andreas Jaeger  <aj@suse.de>
1301         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
1302         NULL after inclusion of kernel headers.
1304 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
1306         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
1307         calls to internal_setent.
1309         [BZ #12885]
1310         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
1311         addresses using gethostbyname4_r ignore IPv4 addresses.
1313         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
1314         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
1316         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
1318 2011-06-20  David S. Miller  <davem@davemloft.net>
1320         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
1321         inclusions.
1322         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
1324         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
1325         (elf_irel): Use it.
1326         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
1327         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
1328         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
1329         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
1330         * sysdeps/x86_64/dl-irel.h: Likewise.
1332         * elf/dl-runtime.c: Use elf_ifunc_invoke.
1333         * elf/dl-sym.c: Likewise.
1335 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
1337         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
1338         need to dereference resplen2.
1340 2011-06-14  Andreas Schwab  <schwab@redhat.com>
1342         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
1344 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
1346         * Makeconfig: Define vardbdir and inst_vardbdir.
1347         * nss/Makefile: Add rules to install db-Makefile.
1349         * nss/nss_db/db-XXX.c: Cleanup.
1351         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
1352         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
1353         GLIBC_PRIVATE.
1354         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
1355         * nss/makedb.c: Implement -g option to specify that value strings
1356         are generated and should not be added to table iterated over for
1357         get*ent calls.
1358         * nss/nss_db/db-initgroups.c: New file.
1360         * nss/getent.c: Add support for initgroups lookups through getgrouplist
1361         interface.
1363         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
1364         (internal_getgrouplist): Adjust to name change.
1365         Update use_initgroups_entry if this is not the first call.
1366         * nss/databases.def: Add initgroups entry.
1368         * nss/makedb.c (compute_tables): Check result of multiple hash table
1369         sizes to minimize maximum chain length.
1371 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
1373         * Versions.def: Add entry for libnss_db.
1374         * shlib-versions: Likewise.
1375         * nss/Makefile: Add rules to build libnss_db.
1376         * nss/Versions: Add libnss_db information.  Organize libnss_files
1377         entries better.
1378         * nss/db-Makefile: Add gshadow support.  Change rules for the new
1379         makedb progra.  Some minor improvements to generate smaller files.
1380         * nss/nss_db/nss_db.h: Move NSS database header data structures to
1381         here from...
1382         * nss/makedb.c: ...here.
1383         Improve database format to be smaller and require less memory at
1384         runtime.
1385         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
1386         db anymore.
1387         * nss/nss_db/db-netgrp.c: Likewise.
1388         * nss/nss_db/db-open.c: Likewise.
1389         * nss/nss_files/flies-XXX.x: Adjust comments.
1390         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
1391         * nss/nss_files/files-grp.c: Likewise.
1392         * nss/nss_files/files-hosts.c: Likewise.
1393         * nss/nss_files/files-network.c: Likewise.
1394         * nss/nss_files/files-proto.c: Likewise.
1395         * nss/nss_files/files-pwd.c: Likewise.
1396         * nss/nss_files/files-rpc.c: Likewise.
1397         * nss/nss_files/files-service.c: Likewise.
1398         * nss/nss_files/files-sgrp.c: Likewise.
1399         * nss/nss_files/files-spwd.c: Likewise.
1400         * nss/nss_db/db-alias.c: Removed.
1401         * nss/nss_db/dummy-db.h: Removed.
1403 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
1405         * nss/makedb.c: Rewritten to not use database library.
1406         * nss/Makefile: Update to build new makedb program.
1408 2011-06-14  Andreas Jaeger  <aj@suse.de>
1410         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
1411         memset declaration.
1413 2011-06-10  Andreas Schwab  <schwab@redhat.com>
1415         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
1416         tmpbuf.
1418 2011-06-10  Roland McGrath  <roland@hack.frob.com>
1420         * Makerules (shlib.lds): Fail if the linker script comes out empty.
1421         * elf/Makefile ($(objpfx)ld.so): Likewise.
1423         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
1424         Don't list ld.so twice in dependencies.
1426         * posix/bug-regex31.c: Include <stdlib.h>.
1428         * nscd/hstcache.c (cache_addhst): Remove unused variable.
1430         * nis/nss_compat/compat-spwd.c
1431         (getspent_next_nss_netgr): Remove unused variable.
1432         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
1434         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
1435         nonmembers" output to use the right array.
1437         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
1439         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
1441         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
1442         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
1443         * catgets/gencat.c (read_input_file): Likewise.
1444         * locale/programs/locarchive.c (enlarge_archive): Likewise.
1446         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
1447         variable definition inside #if's controlling its use.
1449         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
1451         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
1453         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
1455         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
1456         unreachable code.
1458         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
1460         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
1461         * configure: Regenerated.
1463         * Makerules: Revert last change.
1464         * elf/Makefile: Likewise.
1466 2011-06-09  Roland McGrath  <roland@hack.frob.com>
1468         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
1469         * elf/Makefile ($(objpfx)librtld.os): Likewise.
1470         (reloc-link): Likewise.
1472 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
1474         * elf/Makefile: Add rules to build pldd.
1475         * elf/pldd.c: New file.
1476         * elf/pldd-xx.c: New file.
1478 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
1480         * version.h: Update for 2.15 development version.
1482 2011-06-07  David S. Miller  <davem@davemloft.net>
1484         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
1485         ifuncs.
1486         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
1487         elf_machine_lazy_rel): Likewise.
1488         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
1489         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
1490         elf_machine_lazy_rel): Likewise.
1491         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
1492         dl_hwcap via passed in argument.
1493         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
1494         Likewise.
1496 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1498         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
1500 2011-06-06  Roland McGrath  <roland@hack.frob.com>
1502         [BZ #12849]
1503         * manual/fdl-1.1.texi: New file, verbatim from:
1504         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
1505         * manual/lgpl-2.1.texi: New file, verbatim from:
1506         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
1507         * manual/Makefile (licenses): New variable, list those new file names.
1508         (texis): Use it.
1509         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
1511         * manual/fdl.texi: File removed.
1512         * manual/lesser.texi: File removed.
1513         * manual/libc.texinfo (Copying, Documentation License):
1514         Use new @include file names, put @appendix directive before @include.
1516 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
1518         [BZ #12841]
1519         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
1520         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
1521         (mq_open): Add __NTH.
1523 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1525         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1526         Assume Intel Core i3/i5/i7 processor if AVX is available.
1528 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
1530         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
1531         typo.
1533 2011-05-31  Andreas Schwab  <schwab@redhat.com>
1535         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
1536         memory.  Use alloca_account.  Fix memory leak when retrying.
1538 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
1540         * version.h (RELEASE): Bump for 2.14 release.
1541         * include/features.h (__GLIBC_MINOR__): Bump to 14.
1543         * config.make.in (RANLIB): Remove entry.
1545 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
1547         * po/Makefile (po-sed-cmd): Add ksh to extensions.
1548         (libc.pot): Work around missing support for .ksh extension in xgettext.
1550         [BZ #12684]
1551         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
1552         if both request failed.
1553         (send_dg): In case of server errors clear resplen or *resplen2.
1555         [BZ #12454]
1556         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
1557         when there are multiple maps.
1558         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
1559         (_dl_fini): Remove test here.
1561         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
1563 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
1565         [BZ #12350]
1566         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
1567         bit from old_res_options.
1568         (gaih_inet): Likewise.
1570         [BZ #11099]
1571         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
1572         as signed.
1574         * resolv/res_init.c (res_setoptions): Make the code more compact.
1576         [BZ #11558]
1577         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
1578         set RES_USEVC.
1580         [BZ #11634]
1581         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
1583         * malloc/malloc.h: Mark malloc hook variables as deprecated.
1585         [BZ #11781]
1586         * malloc/malloc.h: Declare malloc hook variables as volatile.
1588         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
1589         in last patch.
1591         [BZ #11799]
1592         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
1593         raise in the comment.
1594         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1595         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
1596         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
1598 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
1600         [BZ #12811]
1601         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
1602         grow the buffers more if it already has to be sufficient.
1603         (build_wcs_upper_buffer): Likewise.
1604         * posix/regexec.c (check_matching): Likewise.
1605         (clean_state_log_if_needed): Likewise.
1606         (extend_buffers): Don't enlarge buffers beyond size of the input
1607         buffer.
1608         Patches mostly by Emil Wojak <emil@wojak.eu>.
1609         * posix/bug-regex32.c: New file.
1610         * posix/Makefile (tests): Add bug-regex32.
1612         * locale/findlocale.c (_nl_find_locale): Return right away if
1613         _nl_explode_name failed.
1614         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
1616         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
1618         * debug/xtrace.sh: Unify messages.
1619         * malloc/memusage.sh: Likewise.
1621         [BZ #12813]
1622         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
1623         time symbol from vDSO.  Substitute with vsyscall if not available.
1624         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
1625         __vdso_time.
1627         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
1628         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
1629         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
1630         Add sendmmsg and internal_sendmmsg.
1631         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
1632         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
1633         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
1635         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
1636         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
1637         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
1639 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
1641         [BZ #12813]
1642         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
1643         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
1644         available.
1645         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
1646         __vdso_getcpu.
1648         [BZ #12814]
1649         * iconvdata/Makefile (tests): Add bug-iconv9.
1650         * iconvdata/bug-iconv9.c: New file.
1652 2011-05-27  Andreas Schwab  <schwab@redhat.com>
1654         [BZ #12814]
1655         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
1657 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
1659         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
1660         (struct user_regs_struct): Change intcs field back to cs.
1662 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
1664         * po/ja.po: Update from translation team.
1666 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
1668         [BZ #12795]
1669         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
1670         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1672 2011-05-20  Andreas Schwab  <schwab@redhat.com>
1674         * stdlib/longlong.h: Update from GCC.
1676 2011-05-23  Andreas Schwab  <schwab@redhat.com>
1678         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
1679         parameter name.
1680         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
1681         Add parameter name.
1682         (__sysconf): Pass it down.
1684 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
1686         [BZ #12671]
1687         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
1688         some situations.
1689         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1690         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
1691         add in in __libc_use_alloca calls.  Adjust callers.
1692         (glob): Use malloc in some situations.
1694         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
1695         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
1696         pltexit.
1698 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
1700         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
1701         and CLOCK_BOOTTIME_ALARM.
1703         [BZ #12782]
1704         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
1705         is returned.
1707         * string/_strerror.c (__strerror_r): Print negative errors as signed
1708         numbers.
1710         [BZ #12777]
1711         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
1712         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
1713         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
1715         * configure.in: Fix typo in redirection and correct removal of test
1716         files in two cases.
1718         [BZ #12788]
1719         * locale/setlocale.c (new_composite_name): Fix test to check for
1720         identical name of all categories.
1722         [BZ #12792]
1723         * libio/filedoalloc.c (local_isatty): New function.
1724         (_IO_file_doallocate): Use local_isatty.
1725         * stdio-common/perror.c (perror): In case a new stream is used
1726         forward the stream error.
1727         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
1728         error flag.
1730 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
1732         [BZ #11869]
1733         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
1734         alloca.
1735         * include/alloca.h (extend_alloca_account): Define.
1737         [BZ #11857]
1738         * posix/regex.h: Fix comments with documentation of user-accessible
1739         fields after compilation and describe correct free'ing of pattern
1740         after re_compile_pattern.
1741         Patch by Reuben Thomas <rrt@sc3d.org>.
1743 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
1745         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
1746         and -mno-altivec to prevent the compiler from using Altivec and/or
1747         VSX instructions when the corresponding registers are not available.
1749 2011-05-19  Andreas Schwab  <schwab@redhat.com>
1751         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
1753 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
1755         * libio/freopen.c (freopen): Use __dup2, not dup2.
1756         * libio/freopen64.c (freopen64): Likewise.
1758 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1760         [BZ #12775]
1761         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
1762         * math/Makefile (tests): Add test-powl.
1763         (CFLAGS-test-powl.c): Define.
1764         * math/test-powl.c: New file.
1766 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1768         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
1770 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
1772         [BZ #11837]
1773         * iconvdata/gb18030.c: Update to GB18020-2005.
1775 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
1777         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
1778         RE_SYNTAX_POSIX_AWK): Update to match recent development.
1779         Patch by Aharon Robbins <arnold@skeeve.com>.
1781         [BZ #11892]
1782         * stdlib/putenv.c (putenv): Don't always create copy of the variable
1783         on the stack.
1785         [BZ #11895]
1786         * misc/pselect.c (__pselect): Handle timeout value errors hidden
1787         through underflows.
1789         [BZ #12766]
1790         * misc/error.c (error_at_line): Ensure file_name and old_file_name
1791         point to strings before performing equality test for error_one_per_line
1792         mode.
1794         [BZ #11697]
1795         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
1797         [BZ #11820]
1798         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
1799         (struct user_fpregs_struct): Avoid __uint*_t types.
1801         [BZ #6420]
1802         * malloc/mtrace.c (tr_where): Add additional parameter to point to
1803         symbol info.  Use it instead of calling _dl_addr locally.
1804         (lock_and_info): New function.
1805         (tr_freehook): Call lock_and_info and pass symbol info as additional
1806         parameter to tr_where.
1807         (tr_mallochook): Likewise.
1808         (tr_reallochook): Likewise.
1809         (tr_memalignhook): Likewise.
1811         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
1812         used and couldn't be at all thread-safe.
1814 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
1816         * libio/freopen.c (freopen): Don't close old file descriptor
1817         before the new one is opened.  Instead dup the new file descriptor
1818         to the old one after the new stream is created.
1819         * libio/freopen64.c (freopen64): Likewise.
1820         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
1821         * libio/fileops.c (_IO_new_file_close_it): Handle new
1822         _IO_FLAGS2_NOCLOSE flag.
1823         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
1824         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
1825         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
1826         _IO_FLAGS2_NOCLOSE flag.
1827         * include/unistd.h: Add hidden_proto for dup3.
1828         Define __have_dup3.
1829         * io/dup3.c: Define hidden symbol.
1830         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
1832         [BZ #7101]
1833         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
1834         when an incomplete long option is used.
1835         * posix/tst-getopt_long1.c: New file.
1836         * posix/Makefile (tests): Add tst-getopt_long1.
1838         [BZ #10138]
1839         * scripts/config.guess: Update from autoconf-2.68.
1840         * scripts/config.sub: Likewise.
1842         [BZ #10157]
1843         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
1844         tests into ...
1845         (has_cpuclock): ...this.  New function.
1846         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
1847         macro here based on has_cpuclock code.
1849         [BZ #10149]
1850         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
1851         First byte (not low byte) is now always NUL.
1852         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
1854         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
1855         Use non-cancelable interfaces.
1857         [BZ #9809]
1858         * locale/iso-639.def: Add entry for Sorani.
1860         [BZ #11901]
1861         * include/stdlib.h: Move include protection to the right place.
1862         Define abort_msg_s.  Declare __abort_msg with it.
1863         * stdlib/abort.c (__abort_msg): Adjust type.
1864         * assert/assert.c (__assert_fail_base): New function.  Majority
1865         of code from __assert_fail.  Allocate memory for __abort_msg with
1866         mmap.
1867         (__assert_fail): Now call __assert_fail_base.
1868         * assert/assert-perr.c: Remove bulk of implementation.  Use
1869         __assert_fail_base.
1870         * include/assert.hL Declare __assert_fail_base.
1871         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
1872         mmap.
1873         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1875 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
1877         [BZ #11952]
1878         [BZ #12453]
1879         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
1880         until all modules are registered in the DTV.
1881         * elf/Makefile: Add rules to build and run tst-tls19.
1882         * elf/tst-tls19.c: New file.
1883         * elf/tst-tls19mod1.c: New file.
1884         * elf/tst-tls19mod2.c: New file.
1885         * elf/tst-tls19mod3.c: New file.
1886         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
1888         [BZ #12083]
1889         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
1890         correctly.
1892         [BZ #12601]
1893         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
1894         two-byte sequence errors.
1895         * iconvdata/Makefile (tests): Add bug-iconv8.
1896         * iconvdata/bug-iconv8.c: New file.
1898         [BZ #12626]
1899         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
1900         buf2 definition.
1902         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
1904         [BZ #12432]
1905         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
1906         (dummy_getcfa): New function.
1907         (init): Get _Unwind_GetCFA address, use dummy if not found.
1908         (backtrace_helper): In recursion check, also check whether CFA changes.
1909         (__backtrace): Completely initialize arg.
1911         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
1912         storing incomplete byte sequence in state object.  Avoid testing for
1913         guaranteed too small input if we know there is enough data available.
1915 2011-05-11  Andreas Schwab  <schwab@redhat.com>
1917         * Makeconfig (+link-pie): Indent.
1918         * Rules (binaries-pie): Define if $(have-fpie) and
1919         $(build-shared).
1920         (binaries-shared): Also filter out $(binaries-pie).
1921         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
1922         * nscd/Makefile (others-pie): Add nscd.
1923         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
1924         ($(objpfx)nscd): Remove command override.
1925         * login/Makefile (others-pie): Add pt_chown.
1926         ($(objpfx)pt_chown): Remove command override.
1927         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
1928         remove command overrides.
1930 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
1932         * libio/tst_putwc.c: Fix error messages.
1934         [BZ #12724]
1935         * libio/fileops.c (_IO_new_file_close_it): Always flush when
1936         currently writing and seek to current position when not.
1937         * libio/Makefile (tests): Add bug-fclose1.
1938         * libio/bug-fclose1.c: New file.
1940 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
1942         [BZ #12511]
1943         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
1944         don't set DF_1_NODELETE here.
1945         (do_lookup_x): When entering new entry test for copy relocation
1946         and if necessary set DF_1_NODELETE flag.
1947         * elf/tst-unique4.cc: New file.
1948         * elf/tst-unique4.h: New file.
1949         * elf/tst-unique4lib.cc: New file.
1950         * elf/Makefile: Add rules to build and run tst-unique4.
1951         Patch by Piotr Bury <pbury@goahead.com>.
1953 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
1955         [BZ #12052]
1956         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
1958         [BZ #12625]
1959         * misc/mntent_r.c (addmntent): Flush the stream after the output
1961         [BZ #12393]
1962         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
1963         (is_trusted_path_normalize): Skip initial colon.  Append slash
1964         to empty buffer.  Duplicate is_trusted_path code but allow
1965         constructed patch to be prefix.
1966         (is_dst): Allow $ORIGIN followed by /.
1967         (_dl_dst_substitute): Correct clearing of check_for_trusted.
1968         Correct testing of result of is_trusted_path_normalize
1969         (decompose_rpath): Fix warning.
1971 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
1973         [BZ #11257]
1974         * grp/initgroups.c (internal_getgrouplist): When we found the service
1975         list through the initgroups entry in nsswitch.conf do not always
1976         continue on a successful lookup.  Don't always use the
1977         __nss_group_database value if it is set.
1978         * nss/nsswitch.conf (initgroups): Change action for successful db
1979         lookup to continue for compatibility.
1981 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
1983         [BZ #11532]
1984         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
1985         and CP774 modules.
1986         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
1987         and CP774 modules.
1988         * iconvdata/tst-tables.sh: Likewise.
1989         * iconvdata/cp770.c: New file.
1990         * iconvdata/cp771.c: New file.
1991         * iconvdata/cp772.c: New file.
1992         * iconvdata/cp773.c: New file.
1993         * iconvdata/cp774.c: New file.
1994         * iconvdata/testdata/CP770: New file.
1995         * iconvdata/testdata/CP770..UTF8: New file.
1996         * iconvdata/testdata/CP771: New file.
1997         * iconvdata/testdata/CP771..UTF8: New file.
1998         * iconvdata/testdata/CP772: New file.
1999         * iconvdata/testdata/CP772..UTF8: New file.
2000         * iconvdata/testdata/CP773: New file.
2001         * iconvdata/testdata/CP773..UTF8: New file.
2002         * iconvdata/testdata/CP774: New file.
2003         * iconvdata/testdata/CP774..UTF8: New file.
2005         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
2006         END CHARMAP line.
2007         * iconvdata/gen-8bit-gap.sh: Likewise.
2008         * iconvdata/gen-8bit.sh: Likewise.
2010         * locale/iso-639.def: Add ary entry.
2012         [BZ #11258]
2013         * locale/C-translit.h.in: Add U20A1 transliteration.
2015         [BZ #12178]
2016         * locale/iso-639.def: Add wae entry.
2017         Patch by Kevin Bortis <bortis@translate-wae.ch>.
2019         [BZ #12545]
2020         * locale/programs/localedef.c (construct_output_path): Use ssize_t
2021         for n.
2023         [BZ #12711]
2024         * locale/C-translit.h.in: Add entry for U20B9.
2025         Patch by pravin.d.s@gmail.com.
2027 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
2029         [BZ #12713]
2030         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
2031         ENAMETOOLONG use generic getcwd.
2032         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
2033         in rtld.  Use *stat64.
2034         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
2035         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
2036         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
2037         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
2038         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
2039         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
2040         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
2041         __fstatat64 macros.
2042         * include/dirent.h: Add libc_hidden_proto for rewinddir.
2043         * dirent/rewinddir.c: Add libc_hidden_def.
2044         * sysdeps/mach/hurd/rewinddir.c: Likewise.
2045         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
2047         * include/dirent.h (__alloc_dir): Add flags parameter.
2048         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
2049         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
2050         __alloc_dir.
2051         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
2052         from fdopendir if O_CLOEXEC is already set.
2054 2011-03-15  Alan Modra  <amodra@gmail.com>
2056         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
2057         l_tls_firstbyte_offset non-zero.  Save padding offset in
2058         l_tls_firstbyte_offset for later use.
2059         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
2060         freeing static tls block.
2062 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
2064         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
2065         where #ifdef was intended.  The intent is to prevent ARG_MAX from
2066         being defined by the kernel headers.
2068 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
2070         [BZ #12734]
2071         * resolv/resolv.h: Define RES_NOTLDQUERY.
2072         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
2073         no-tld-query and set RES_NOTLDQUERY.
2074         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
2075         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
2076         modern BIND to search name as TLD unless forbidden.
2078 2011-05-07  Petr Baudis  <pasky@suse.cz>
2079             Ulrich Drepper  <drepper@gmail.com>
2081         [BZ #12393]
2082         * elf/dl-load.c (fillin_rpath): Move trusted path check...
2083         (is_trusted_path): ...to here.
2084         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
2085         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
2086         using is_trusted_path_normalize() in setuid scripts.
2088 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
2090         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
2091         __BEGIN/__END_DECLS.
2093 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
2095         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
2096         NSS_STATUS_NOTFOUND if no record was found.
2098 2011-05-05  Andreas Schwab  <schwab@redhat.com>
2100         * sunrpc/Makefile (headers): Add rpc/netdb.h.
2101         (headers-not-in-tirpc): Remove rpc/netdb.h
2102         * resolv/netdb.h: Revert last change.
2104 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
2106         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
2107         circular dependency between libgcc.a and libc.a.
2109 2011-05-05  Andreas Schwab  <schwab@redhat.com>
2111         * resolv/netdb.h: Don't include <rpc/netdb.h>.
2112         * nis/Makefile: Don't install rpcsvc/*.
2113         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
2114         instead of <rpc/types.h>.
2115         (MAXHOSTNAMELEN): Define.
2117 2011-05-03  Andreas Schwab  <schwab@redhat.com>
2119         * elf/ldconfig.c (add_dir): Don't crash on empty path.
2121 2011-04-28  Maciej Babinski  <mbabinski@google.com>
2123         [BZ #12714]
2124         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
2125         gethostbyname4_r when IPv6 results are possible.
2127 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
2129         [BZ #12723]
2130         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
2131         _PC_PIPE_BUF handling.
2133 2011-04-30  Bruno Haible  <bruno@clisp.org>
2135         [BZ #12717]
2136         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
2137         * resolv/netdb.h (getnameinfo): Change type of flags parameter
2138         to 'int'.
2139         * inet/getnameinfo.c (getnameinfo): Likewise.
2141 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
2143         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
2144         to groups setting in database lookup.
2145         * nss/nsswitch.conf: Add initgroups entry.
2147 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
2149         [BZ #12685]
2150         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
2151         mode string.
2152         Patch by Eric Blake <eblake@redhat.com>.
2154 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
2156         * sunrpc/Makefile (need-export-routines): Add svc_run.
2157         (routines): Remove svc_run.
2158         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
2159         * sunrpc/clnt_perr.c (clnt_perrno): Export.
2160         * sunrpc/svc_run.c (svc_run): Likewise.
2161         * sunrpc/svc_udp.c (svcudp_create): Likewise.
2163 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
2165         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
2166         problem in reallocation in last patch.
2168 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
2170         * sunrpc/Makefile: Move inclusion of Rules.
2172 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
2174         * nss/nss_files/files-initgroups.c: New file.
2175         * nss/Makefile (libnss_files-routines): Add files-initgroups.
2176         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
2177         _nss_files_initgroups_dyn.
2179 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
2181         * elf/elf.h (R_ARM_IRELATIVE): Define.
2183 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
2185         * po/ru.po: Update from translation team.
2187 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
2189         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
2190         dependencies.
2192 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
2194         [BZ #12653]
2195         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
2196         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
2197         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
2198         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
2199         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
2201 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
2203         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
2204         differing bytes.
2205         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
2206         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
2207         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
2209 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
2211         [BZ #12420]
2212         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
2213         storing it.
2214         * stdlib/bug-getcontext.c: New file.
2215         * stdlib/Makefile: Add rules to build and run bug-getcontext.
2217 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2219         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
2220         instructions into .machine "z9-109".
2221         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
2222         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
2224 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2226         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
2227         between environment variables and auxiliary vector.
2229 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
2231         * Makefile: Add rules to build linkobj/libc.so.
2232         * include/libc-symbols.h: Define libc_hidden_nolink.
2233         * include/rpc/auth.h: Mark functions which are to be hidden.
2234         * include/rpc/auth_des.h: Likewise.
2235         * include/rpc/auth_unix.h: Likewise.
2236         * include/rpc/clnt.h: Likewise.
2237         * include/rpc/des_crypt.h: Likewise.
2238         * include/rpc/key_prot.h: Likewise.
2239         * include/rpc/pmap_clnt.h: Likewise.
2240         * include/rpc/pmap_prot.h: Likewise.
2241         * include/rpc/pmap_rmt.h: Likewise.
2242         * include/rpc/rpc_msg.h: Likewise.
2243         * include/rpc/svc.h: Likewise.
2244         * include/rpc/svc_auth.h: Likewise.
2245         * include/rpc/xdr.h: Likewise.
2246         * nis/Makefile: Link all DSOs against linkobj/libc.so.
2247         * nss/Makefile: Likewise.
2248         * sunrpc/Makefile: Don't install headers.  Build library with normal
2249         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
2250         * sunrpc/auth_des.c: Hide exported symbols by default, export some
2251         for the compat linking library.  Remove use of INTDEF/INTUSE.
2252         * sunrpc/auth_none.c: Likewise.
2253         * sunrpc/auth_unix.c: Likewise.
2254         * sunrpc/authdes_prot.c: Likewise.
2255         * sunrpc/authuxprot.c: Likewise.
2256         * sunrpc/clnt_gen.c: Likewise.
2257         * sunrpc/clnt_perr.c: Likewise.
2258         * sunrpc/clnt_raw.c: Likewise.
2259         * sunrpc/clnt_simp.c: Likewise.
2260         * sunrpc/clnt_tcp.c: Likewise.
2261         * sunrpc/clnt_udp.c: Likewise.
2262         * sunrpc/clnt_unix.c: Likewise.
2263         * sunrpc/des_crypt.c: Likewise.
2264         * sunrpc/des_soft.c: Likewise.
2265         * sunrpc/get_myaddr.c: Likewise.
2266         * sunrpc/key_call.c: Likewise.
2267         * sunrpc/key_prot.c: Likewise.
2268         * sunrpc/netname.c: Likewise.
2269         * sunrpc/pm_getmaps.c: Likewise.
2270         * sunrpc/pm_getport.c: Likewise.
2271         * sunrpc/pmap_clnt.c: Likewise.
2272         * sunrpc/pmap_prot.c: Likewise.
2273         * sunrpc/pmap_prot2.c: Likewise.
2274         * sunrpc/pmap_rmt.c: Likewise.
2275         * sunrpc/publickey.c: Likewise.
2276         * sunrpc/rpc_cmsg.c: Likewise.
2277         * sunrpc/rpc_common.c: Likewise.
2278         * sunrpc/rpc_dtable.c: Likewise.
2279         * sunrpc/rpc_prot.c: Likewise.
2280         * sunrpc/rpc_thread.c: Likewise.
2281         * sunrpc/rtime.c: Likewise.
2282         * sunrpc/svc.c: Likewise.
2283         * sunrpc/svc_auth.c: Likewise.
2284         * sunrpc/svc_authux.c: Likewise.
2285         * sunrpc/svc_raw.c: Likewise.
2286         * sunrpc/svc_run.c: Likewise.
2287         * sunrpc/svc_simple.c: Likewise.
2288         * sunrpc/svc_tcp.c: Likewise.
2289         * sunrpc/svc_udp.c: Likewise.
2290         * sunrpc/svc_unix.c: Likewise.
2291         * sunrpc/svcauth_des.c: Likewise.
2292         * sunrpc/xcrypt.c: Likewise.
2293         * sunrpc/xdr.c: Likewise.
2294         * sunrpc/xdr_array.c: Likewise.
2295         * sunrpc/xdr_float.c: Likewise.
2296         * sunrpc/xdr_intXX_t.c: Likewise.
2297         * sunrpc/xdr_mem.c: Likewise.
2298         * sunrpc/xdr_rec.c: Likewise.
2299         * sunrpc/xdr_ref.c: Likewise.
2300         * sunrpc/xdr_sizeof.c: Likewise.
2301         * sunrpc/xdr_stdio.c: Likewise.
2303 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
2305         [BZ #12650]
2306         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
2307         * sysdeps/ia64/dl-tls.h: Likewise.
2308         * sysdeps/powerpc/dl-tls.h: Likewise.
2309         * sysdeps/s390/dl-tls.h: Likewise.
2310         * sysdeps/sh/dl-tls.h: Likewise.
2311         * sysdeps/sparc/dl-tls.h: Likewise.
2312         * sysdeps/x86_64/dl-tls.h: Likewise.
2313         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
2315 2011-03-14  Andreas Schwab  <schwab@redhat.com>
2317         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
2318         rpath element also skip the following colon.
2319         (expand_dynamic_string_token): Add is_path parameter and pass
2320         down to DL_DST_REQUIRED and _dl_dst_substitute.
2321         (decompose_rpath): Call expand_dynamic_string_token with
2322         non-zero is_path.  Ignore empty rpaths.
2323         (_dl_map_object_from_fd): Call expand_dynamic_string_token
2324         with zero is_path.
2326 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
2328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
2329         Make cancelable.
2331 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
2333         [BZ #12655]
2334         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
2335         Patch by Filipe David Manana <fdmanana@apache.org>.
2337 2011-04-07  Andreas Schwab  <schwab@redhat.com>
2339         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
2340         Maintain aligned stack.
2341         (CHECK_RSP): Remove unused macro.
2343 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
2345         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
2346         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2348 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
2350         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
2352         * include/features.h: Mention __USE_XOPEN2K8 in comment.
2354 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
2356         [BZ #12518]
2357         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
2358         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
2359         * sysdeps/x86_64/memmove.c: New file.
2360         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
2361         (memcpy): Renamed to ...
2362         (__new_memcpy): This.
2363         (memcpy): Provide GLIBC_2_14 memcpy.
2364         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
2365         (memcpy): Provide GLIBC_2_2_5 memcpy.
2367 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
2369         [BZ #12631]
2370         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
2372 2011-03-30  Andreas Schwab  <schwab@redhat.com>
2374         * misc/syncfs.c: New file.
2375         * misc/Makefile (routines): Add syncfs.
2376         * posix/unistd.h: Declare syncfs.
2377         * sysdeps/unix/syscalls.list: Add syncfs.
2379 2011-04-01  Andreas Schwab  <schwab@redhat.com>
2381         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
2382         open_by_handle_at.
2383         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2384         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2385         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2386         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2387         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2388         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2389         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2391 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
2393         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
2394         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2395         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2396         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2397         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2398         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2399         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2401         * io/Makefile: Compile fallocate.c, fallocate64.c, and
2402         sync_file_range.c with -fexceptions.
2403         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
2404         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2405         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
2406         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
2407         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2408         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
2409         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
2410         sync_file_range as cancellation point
2411         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
2412         now a wrapper around __call_sync_file_range with cancellation handling.
2413         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
2414         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
2415         function name to __call_sync_file_range.
2416         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
2417         Add call_sync_file_range.
2419 2011-04-01  Andreas Schwab  <schwab@redhat.com>
2421         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2422         bits/timex.h.
2424 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
2426         * iconv/iconv.h: Fix typo in comment.
2427         * io/fcntl.h: Likewise.
2428         * libio/stdio.h: Likewise.
2429         * posix/spawn.h: Likewise.
2430         * posix/unistd.h: Likewise.
2431         * stdlib/stdlib.h: Likewise.
2432         * time/time.h: Likewise.
2433         * wcsmbs/wchar.h: Likewise.
2435         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
2436         open_by_handle): Add.
2437         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
2438         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
2439         Augment a few comments.
2440         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2441         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2442         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2443         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2444         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2445         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
2446         open_by_handle.
2448         * io/fcntl.h (AT_EMPTY_PATH): Define.
2450 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
2452         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
2453         * sysdeps/unix/sysv/linux/bits/time.h: New file.
2454         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
2455         to...
2456         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
2457         * Versions.def: Add GLIBC_2.14.
2458         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
2459         Export.
2461 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
2463         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
2464         round counter.
2465         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
2467 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
2469         [BZ #12597]
2470         * string/test-strncmp.c (do_page_test): New function.
2471         (check2): Likewise.
2472         (test_main): Call check2.
2473         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
2475 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
2477         [BZ #12587]
2478         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
2479         Handle cache information in CPU leaf 4.
2480         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
2482 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
2484         [BZ #12583]
2485         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
2486         character representation.
2487         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
2489 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
2491         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
2492         END(__isnan) to END(__isnanf) to match function entry point/label
2493         EALIGN(__isnanf,...).
2495 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
2497         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
2499 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
2501         [BZ #12510]
2502         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
2503         copy from the symbol referenced in the relocation to initialize the
2504         used variable.
2505         Patch by Piotr Bury <pbury@goahead.com>.
2506         * elf/Makefile: Add rules to build and tst-unique3.
2507         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
2508         * elf/tst-unique3.cc: New file.
2509         * elf/tst-unique3.h: New file.
2510         * elf/tst-unique3lib.cc: New file.
2511         * elf/tst-unique3lib2.cc: New file.
2513         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
2515 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
2517         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
2518         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
2519         to _start.
2521 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
2523         * elf/dl-load.c (_dl_map_object): If we are looking for the first
2524         to-be-loaded object along a path to loader is ld.so.
2526 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
2527             Ulrich Drepper  <drepper@gmail.com>
2529         * sysdeps/x86_64/memset.S: After aligning destination, code
2530         branches to different locations depending on the value of
2531         misalignment, when multiarch is enabled. Fix this.
2533 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
2535         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
2536         Set _x86_64_preferred_memory_instruction for AMD processsors.
2537         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2538         Set bit_Prefer_SSE_for_memop for AMD processors.
2540 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
2542         * libio/fmemopen.c (fmemopen): Optimize a bit.
2544 2011-03-03  Andreas Schwab  <schwab@redhat.com>
2546         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
2548 2011-03-03  Roland McGrath  <roland@redhat.com>
2550         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
2552 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
2554         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
2555         __bzero_ultra1 instead of __memset_ultra1.
2557 2011-02-23  Andreas Schwab  <schwab@redhat.com>
2558             Ulrich Drepper  <drepper@gmail.com>
2560         [BZ #12509]
2561         * include/link.h (struct link_map): Add l_orig_initfini.
2562         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
2563         returning unsuccessfully.
2564         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
2565         close of a file loaded at startup, restore the original l_initfini
2566         list.
2567         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
2568         list, store the pointer.
2569         * elf/Makefile ($(objpfx)noload-mem): New rule.
2570         (noload-ENV): Define.
2571         (tests): Add $(objpfx)noload-mem.
2572         * elf/noload.c: Include <memcheck.h>.
2573         (main): Call mtrace.  Close all opened handles.
2575 2011-02-17  Andreas Schwab  <schwab@redhat.com>
2577         [BZ #12454]
2578         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
2579         dependencies are missing.
2581 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2583         Fix __if_freereq crash: Unlike the generic version which uses free,
2584         Hurd needs munmap.
2585         * sysdeps/mach/hurd/ifreq.h: New file.
2587 2011-01-27  Petr Baudis  <pasky@suse.cz>
2588             Ulrich Drepper  <drepper@gmail.com>
2590         [BZ 12445]#
2591         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
2592         to extend_alloca().
2593         * stdio-common/bug23.c: New file.
2594         * stdio-common/Makefile (tests): Add bug23.
2596 2010-09-28  Andreas Schwab  <schwab@redhat.com>
2597             Ulrich Drepper  <drepper@gmail.com>
2599         [BZ #12489]
2600         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
2601         before performing relro protection.  At old place add assertion
2602         to make sure nothing changed.
2604 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
2605             Glauber de Oliveira Costa  <glommer@gmail.com>
2607         * elf/elf.h: Add new ARM TLS relocs.
2609 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
2611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2612         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
2613         cast from r3.
2614         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
2615         'tests' variable.
2616         * sysdeps/wordsize-64/tst-writev.c: New file.
2618 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
2620         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
2621         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
2622         insns in _dl_start to prevent a TOC reference before relocs are
2623         resolved.
2625 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
2627         [BZ #12469]
2628         * Makeconfig: Remove RANLIB definition.
2629         * Makerules: Don't use RANLIB.
2630         * aclocal.m4: Remove ranlib test.
2631         * configure.in: No need to check for ranlib.
2632         * elf/rtld-Rules: Don't use RANLIB.
2634 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2636         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
2637         protection macro.
2638         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
2639         inclusion protection macro.
2641         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
2642         SIGRTMIN and SIGRTMAX and print information in that case only when
2643         SIGRTMIN is defined.
2645 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
2647         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
2648         arginfo fn returning -1.
2650         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
2651         and thousands string is zero terminated.
2653 2011-02-03  Andreas Schwab  <schwab@redhat.com>
2655         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
2656         sysdeps/unix/sysv/linux/bits/socket.h.
2658 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2660         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
2661         (__CPU_COUNT): Remove old macros.
2662         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
2663         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
2664         (__CPU_ALLOC, __CPU_FREE): Add macros.
2665         (__sched_cpualloc, __sched_cpufree): Add declarations.
2667 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
2669         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
2670         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
2671         * nscd/aicache.c (addhstaiX): Return timeout of added value.
2672         (readdhstai): Return value of addhstaiX call.
2673         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
2674         (addgrbyX): Return value returned by cache_addgr.
2675         (readdgrbyname): Return value returned by addgrbyX.
2676         (readdgrbygid): Likewise.
2677         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
2678         (addpwbyX): Return value returned by cache_addpw.
2679         (readdpwbyname): Return value returned by addhstbyX.
2680         (readdpwbyuid): Likewise.
2681         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
2682         (addservbyX): Return value returned by cache_addserv.
2683         (readdservbyname): Return value returned by addservbyX:
2684         (readdservbyport): Likewise.
2685         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
2686         (addhstbyX): Return value returned by cache_addhst.
2687         (readdhstbyname): Return value returned by addhstbyX.
2688         (readdhstbyaddr): Likewise.
2689         (readdhstbynamev6): Likewise.
2690         (readdhstbyaddrv6): Likewise.
2691         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
2692         (readdinitgroups): Return value returned by addinitgroupsX.
2693         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
2694         (prune_cache): Keep track of timeout value of re-added entries.
2695         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
2696         * nscd/nscd.h: Adjust prototypes of readd* functions.
2698 2011-02-04  Roland McGrath  <roland@redhat.com>
2700         * nis/nis_server.c (nis_servstate): Use the right name for 0.
2701         (nis_stats): Likewise.
2702         * nis/nis_modify.c (nis_modify): Likewise.
2703         * nis/nis_remove.c (nis_remove): Likewise.
2704         * nis/nis_add.c (nis_add): Likewise.
2706         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
2708         * posix/fnmatch_loop.c: Add some consts.
2710         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
2712 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
2714         [BZ #12460]
2715         * config.make.in (config-cflags-novzeroupper): Define.
2716         * configure.in: Substitute libc_cv_cc_novzeroupper.
2717         * elf/Makefile (AVX-CFLAGS): Define.
2718         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
2719         (CFLAGS-tst-auditmod4a.c): Likewise.
2720         (CFLAGS-tst-auditmod4b.c): Likewise.
2721         (CFLAGS-tst-auditmod6b.c): Likewise.
2722         (CFLAGS-tst-auditmod6c.c): Likewise.
2723         (CFLAGS-tst-auditmod7b.c): Likewise.
2724         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
2726 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
2728         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
2729         function to the callback.
2730         Patch partly by Jiri Olsa <jolsa@redhat.com>.
2732 2011-02-02  Andreas Schwab  <schwab@redhat.com>
2734         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
2735         of errno.
2737 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
2739         [BZ #11724]
2740         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
2741         of constructors.
2742         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
2743         of destructors.
2744         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
2746         [BZ #11724]
2747         * elf/Makefile: Add rules to build and run new test.
2748         * elf/tst-initorder.c: New file.
2749         * elf/tst-initorder.exp: New file.
2750         * elf/tst-initordera1.c: New file.
2751         * elf/tst-initordera2.c: New file.
2752         * elf/tst-initordera3.c: New file.
2753         * elf/tst-initordera4.c: New file.
2754         * elf/tst-initorderb1.c: New file.
2755         * elf/tst-initorderb2.c: New file.
2756         * elf/tst-order-a1.c: New file.
2757         * elf/tst-order-a2.c: New file.
2758         * elf/tst-order-a3.c: New file.
2759         * elf/tst-order-a4.c: New file.
2760         * elf/tst-order-b1.c: New file.
2761         * elf/tst-order-b2.c: New file.
2762         * elf/tst-order-main.c: New file.
2763         New test case by George Gensure <werkt0@gmail.com>.
2765 2010-10-01  Andreas Schwab  <schwab@redhat.com>
2767         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
2768         decoding ACE if AI_CANONIDN.
2770 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
2772         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
2774 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
2776         * version.h (RELEASE): Bump for 2.13 release.
2777         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
2779         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
2781         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
2782         MADV_NOHUGEPAGE.
2783         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
2784         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
2785         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2786         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
2787         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2788         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
2790         * posix/getconf.c: Update copyright year.
2791         * catgets/gencat.c: Likewise.
2792         * csu/version.c: Likewise.
2793         * debug/catchsegv.sh: Likewise.
2794         * debug/xtrace.sh: Likewise.
2795         * elf/ldconfig.c: Likewise.
2796         * elf/ldd.bash.in: Likewise.
2797         * elf/sprof.c (print_version): Likewise.
2798         * iconv/iconv_prog.c: Likewise.
2799         * iconv/iconvconfig.c: Likewise.
2800         * locale/programs/locale.c: Likewise.
2801         * locale/programs/localedef.c: Likewise.
2802         * malloc/memusage.sh: Likewise.
2803         * malloc/mtrace.pl: Likewise.
2804         * nscd/nscd.c (print_version): Likewise.
2805         * nss/getent.c: Likewise.
2807         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
2808         PF_CAIF, and PF_ALG.
2809         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2811 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
2813         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
2814         (modules-names): Use them.
2815         (ifunc-test-modules, ifunc-pie-tests): Define.
2816         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
2817         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
2818         (test-extras): Likewise.
2819         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
2820         $(compile-command.c).
2821         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
2822         (all-built-dso): Define.
2823         (check-textrel.out, check-execstack.out): Depend on it.
2825         * configure.in: Don't override --enable-multi-arch.
2827 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
2829         [BZ #6812]
2830         * nscd/hstcache.c (tryagain): Define.
2831         (cache_addhst): Return tryagain not notfound for temporary errors.
2832         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
2833         failed.
2835 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
2837         [BZ #10563]
2838         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
2839         to make the syscall.
2840         * sysdeps/unix/sysv/linux/setgroups.c: New file.
2842         [BZ #12378]
2843         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
2844         and fall back to matching as normal character if the string ends before
2845         the matching ']' is found.  This is what POSIX requires.
2846         * posix/testfnm.c: Adjust test result.
2847         * posix/globtest.sh: Adjust test result.  Add new test.
2848         * posix/tst-fnmatch.input: Likewise.
2849         * posix/tst-fnmatch2.c: Add new test.
2851 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
2853         * elf/Makefile (check-execstack): Revert last change.  Depend on
2854         check-execstack.h.
2855         (check-execstack.h): New target.
2856         (generated): Add check-execstack.h.
2857         * elf/check-execstack.c: Include "check-execstack.h".
2858         (main): Revert last change.
2859         (handle_file): Return zero if GNU_STACK is absent and
2860         DEFAULT_STACK_PERMS doesn't include PF_X.
2862 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
2864         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
2865         in child fails because the descriptor is already closed.
2866         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
2867         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
2868         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
2870         [BZ #12397]
2871         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
2872         syscall.
2874         [BZ #10484]
2875         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
2876         temporary buffer used to handle multi lookups locally.
2877         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
2879 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
2881         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
2882         loader is ld.so.
2884 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
2886         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
2887         alignment for SSE2.
2889 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
2891         [BZ #12394]
2892         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
2893         characters.  When rounding increased number of integer digits recompute
2894         number of groups.
2895         * stdio-common/tst-grouping.c: New file.
2896         * stdio-common/Makefile: Add rules to build and run tst-grouping.
2898 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
2900         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
2901         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
2903         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
2904         void.
2905         * bits/select.h: Likewise.
2907 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
2909         * po/ja.po: Update from translation team.
2911 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
2913         [BZ #11155]
2914         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
2915         implementation just like for lxstat, fxstatat, et al.
2917 2010-12-27  Jim Meyering  <meyering@redhat.com>
2919         [BZ #12348]
2920         * posix/regexec.c (build_trtable): Return failure indication upon
2921         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
2923 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
2925         [BZ #12201]
2926         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
2927         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
2928         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
2929         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
2931         [BZ #12207]
2932         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
2934         [BZ #12204]
2935         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
2936         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
2938 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
2940         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
2941         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
2942         script has SORT_BY_INIT_PRIORITY.
2943         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
2944         NO_CTORS_DTORS_SECTIONS is defined.
2945         * elf/soinit.c: Likewise.
2946         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
2947         NO_CTORS_DTORS_SECTIONS is defined.
2948         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
2949         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2950         * sysdeps/sh/init-first.c: Likewise.
2951         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
2953 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
2955         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
2956         always use the slow path.
2958 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
2960         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
2961         similar rule which adds the sysdep directories to the header search in
2962         order to pick up the correct platform stackinfo.h.
2963         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
2964         perform test if it is, otherwise return successfully without testing.
2965         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
2966         DEFAULT_STACK_PERMS define in stackinfo.h.
2967         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
2968         defined in stackinfo.h.
2969         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
2970         DEFAULT_STACK_PERMS defined in stackinfo.h.
2971         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
2972         * sysdeps/ia64/stackinfo.h: Likewise.
2973         * sysdeps/s390/stackinfo.h: Likewise.
2974         * sysdeps/sh/stackinfo.h: Likewise.
2975         * sysdeps/sparc/stackinfo.h: Likewise.
2976         * sysdeps/x86_64/stackinfo.h: Likewise.
2977         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
2978         PF_X for powerpc64.  Retain PF_X for powerpc32.
2980 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
2982         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
2983         accurately.
2984         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
2985         GETDENTS_64BIT_ALIGNED.
2987 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
2989         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
2991 2010-12-10  Andreas Schwab  <schwab@redhat.com>
2993         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
2994         _GNU_SOURCE.
2996         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
2997         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
2998         Remove __restrict.
2999         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
3000         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
3002 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
3004         [BZ #11655]
3005         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
3006         are initialized.
3008 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
3010         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
3012 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
3014         * po/it.po: Update from translation team.
3016 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
3018         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
3019         unused codes.
3021 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
3023         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
3025 2010-11-24  Andreas Schwab  <schwab@redhat.com>
3027         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
3028         specially.
3029         (gaih_getanswer_slice): Likewise.
3031 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
3033         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
3035 2010-05-31  Petr Baudis  <pasky@suse.cz>
3037         [BZ #11149]
3038         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
3039         silently even in the chroot mode.
3041 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
3043         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
3044         last patch a bit.  Pretty printing
3046 2010-05-31  Petr Baudis <pasky@suse.cz>
3048         [BZ #10085]
3049         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
3050         initialization of skip_initgroups_dyn.
3052 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
3054         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
3055         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
3057 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
3059         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
3061 2010-11-11  Andreas Schwab  <schwab@redhat.com>
3063         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
3064         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
3065         (tst-fnmatch-ENV): Set MALLOC_TRACE.
3066         ($(objpfx)tst-fnmatch-mem): New rule.
3067         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
3068         * posix/tst-fnmatch.c (main): Call mtrace.
3070 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
3072         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3073         Support Intel processor model 6 and model 0x2c.
3075 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
3077         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
3078           signed comparison.
3080 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
3082         [BZ #12205]
3083         * string/test-strncasecmp.c (check_result): New function.
3084         (do_one_test): Use it.
3085         (check1): New function.
3086         (test_main): Use it.
3087         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
3088         Support strcasecmp and strncasecmp.
3090 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
3092         [BZ #12194]
3093         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
3094         * sysdeps/x86_64/bits/byteswap.h: Likewise.
3096 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
3098         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
3099         IFUNC support.
3100         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3101         memset-x86-64.
3102         * sysdeps/x86_64/multiarch/bzero.S: New file.
3103         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
3104         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
3105         * sysdeps/x86_64/multiarch/memset.S: New file.
3106         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
3107         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3108         Set bit_Prefer_SSE_for_memop for Intel processors.
3109         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
3110         Define.
3111         (index_Prefer_SSE_for_memop): Define.
3112         (HAS_PREFER_SSE_FOR_MEMOP): Define.
3114 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
3116         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
3117         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
3119 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
3121         [BZ #12191]
3122         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
3123         (__x86_64_raw_data_cache_size_half): Likewise.
3124         (__x86_64_raw_shared_cache_size): Likewise.
3125         (__x86_64_raw_shared_cache_size_half): Likewise.
3127         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
3128         (__x86_64_raw_data_cache_size_half): Likewise.
3129         (__x86_64_raw_shared_cache_size): Likewise.
3130         (__x86_64_raw_shared_cache_size_half): Likewise.
3131         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
3132         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
3133         and __x86_64_raw_shared_cache_size_half.  Round
3134         __x86_64_data_cache_size_half, __x86_64_data_cache_size
3135         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
3136         to multiple of 256 bytes.
3138 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
3140         [BZ #12167]
3141         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
3142         of inacessible symlinks.  Verify result of symlink before returning it.
3143         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
3144         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
3146 2010-10-28  Erich Ritz  <erichritz@gmail.com>
3148         * math/math.h (isinf): Fix typo in comment.
3150 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
3152         * po/da.po: Update from translation team.
3154 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
3156         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
3157         is added to the list.
3159 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3160             Ulrich Drepper  <drepper@gmail.com>
3162         * elf/dl-object.c (_dl_new_object): Don't append the new object to
3163         the global list here.  Move code to...
3164         (_dl_add_to_namespace_list): ...here.  New function.
3165         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
3166         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
3167         * elf/dl-load.c (lose): Don't remove the element from the list.
3168         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
3169         (_dl_map_object): Likewise.
3171 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
3173         [BZ #12159]
3174         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
3175         into all bytes of SSE register.
3176         Patch by Richard Li <richardpku@gmail.com>.
3178 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
3180         [BZ #12140]
3181         * malloc/malloc.c (_int_free): Fill correct number of bytes when
3182         perturbing.
3184 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
3186         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
3187         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
3188         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
3189         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
3190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
3191         submachine.
3192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
3194 2010-10-22  Andreas Schwab  <schwab@redhat.com>
3196         * include/dlfcn.h (__RTLD_SECURE): Define.
3197         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
3198         mode & __RTLD_SECURE instead.
3199         (open_path): Rename preloaded parameter to secure.
3200         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
3201         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
3202         * elf/dl-deps.c (openaux): Likewise.
3203         * elf/rtld.c (struct map_args): Remove is_preloaded.
3204         (map_doit): Don't use it.
3205         (dl_main): Likewise.
3206         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
3207         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
3209 2010-09-09  Andreas Schwab  <schwab@redhat.com>
3211         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
3212         (sysd-rules-targets): Remove duplicates.
3213         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
3214         rtld-%.$o dependency.
3216 2010-10-18  Andreas Schwab  <schwab@redhat.com>
3218         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
3219         _dl_map_object do it.
3221 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
3223         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
3224         fast fma builtins, define the macros in the C99 standard.
3225         (FP_FAST_FMAF): Likewise.
3226         (FP_FAST_FMAL): Likewise.
3227         * sysdeps/x86_64/bits/mathdef.h: Likewise.
3229         * bits/mathdef.h: Update copyright year.
3230         * sysdeps/powerpc/bits/mathdef.h: Likewise.
3232 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
3234         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
3235         builtins, define the macros in the C99 standard.
3236         (FP_FAST_FMAF): Likewise.
3237         (FP_FAST_FMAL): Likewise.
3238         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
3239         multiply/add.
3240         (FP_FAST_FMAF): Likewise.
3242 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
3244         [BZ #3268]
3245         * math/libm-test.inc (fma_test): Some new testcases.
3246         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
3247         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
3248         y and infinite z.  Do multiplication by C already in long double.
3249         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
3250         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
3251         y and infinite z.  Do bitwise or of inexact bit into u.d.
3252         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
3253         * sysdeps/i386/fpu/s_fmaf.S: Removed.
3254         * sysdeps/i386/fpu/s_fma.S: Removed.
3255         * sysdeps/i386/fpu/s_fmal.S: Removed.
3257 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
3259         [BZ #3268]
3260         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
3261         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
3262         computation is not scheduled after fetestexcept.  Fix value
3263         of minimum denormal long double.
3265 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
3267         [BZ #3268]
3268         * math/libm-test.inc (fma_test): Add some more tests.
3269         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
3270         correctly.
3272 2010-10-15  Andreas Schwab  <schwab@redhat.com>
3274         * scripts/data/localplt-s390-linux-gnu.data: New file.
3275         * scripts/data/localplt-s390x-linux-gnu.data: New file.
3277 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
3279         [BZ #3268]
3280         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
3281         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
3282         instead of dbl-64.
3283         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
3284         inlines.
3285         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
3286         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
3287         if one of x and y is very large and the other is subnormal.
3288         * sysdeps/s390/fpu/s_fmaf.c: New file.
3289         * sysdeps/s390/fpu/s_fma.c: New file.
3290         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
3291         * sysdeps/powerpc/fpu/s_fma.S: New file.
3292         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
3293         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
3294         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
3296 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
3298         [BZ #3268]
3299         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
3300         fma tests.
3301         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
3302         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
3303         * sysdeps/i386/i686/multiarch/s_fma.c: Include
3304         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
3305         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
3306         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
3307         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
3309 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
3311         [BZ #12078]
3312         * posix/regcomp.c (parse_branch): One more memory leak plugged.
3313         * posix/bug-regex31.input: Add test case.
3315 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
3317         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
3318         * posix/bug-regex31.input: New file.
3320         [BZ #12078]
3321         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
3322         (parse_sub_exp): Fix last change, use postorder.
3324         * posix/bug-regex31.c: New file.
3325         * posix/Makefile: Add rules to build and run bug-regex31.
3327         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
3329         [BZ #12078]
3330         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
3332         [BZ #12108]
3333         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
3334         to have entries in sys_siglist.
3336         [BZ #12093]
3337         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
3338         be NULL.
3340 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
3342         [BZ #3268]
3343         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
3344         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
3345         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
3346         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
3347         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
3348         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
3349         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
3350         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
3351         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
3352         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
3353         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
3354         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
3355         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
3356         * math/ftestexcept.c (fetestexcept): Likewise.
3357         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
3358         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
3359         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
3360         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
3361         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
3362         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
3363         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3365 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
3367         [BZ #12107]
3368         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
3369         newline.
3371 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
3373         * string/bug-strstr1.c: New file.
3374         * string/Makefile: Add rules to build and run bug-strstr1.
3376 2010-10-05  Eric Blake  <eblake@redhat.com>
3378         [BZ #12092]
3379         * string/str-two-way.h (two_way_long_needle): Always clear memory
3380         when skipping input due to the shift table.
3382 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
3384         [BZ #12005]
3385         * malloc/mcheck.c: Handle large requests.
3387         [BZ #12077]
3388         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
3389         for strncmp and strncasecmp.
3390         * string/stratcliff.c: Add tests for strcmp and strncmp.
3391         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
3393 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3395         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
3396         __set_fpscr.
3398 2010-09-30  Andreas Jaeger  <aj@suse.de>
3400         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
3401         (CGROUP_SUPER_MAGIC): Define.
3402         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
3403         Handle btrfs and cgroup file systems.
3404         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
3405         Likewise.
3407 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
3409         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
3410         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
3412 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3414         [BZ #12067]
3415         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
3416         trying to locate the ELF header.
3418 2010-09-27  Andreas Schwab  <schwab@redhat.com>
3420         [BZ #11611]
3421         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
3422         Mask out sign-bit copies when constructing f_fsid.
3424 2010-09-24  Petr Baudis <pasky@suse.cz>
3426         * debug/stack_chk_fail_local.c: Add missing licence exception.
3427         * debug/warning-nop.c: Likewise.
3429 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
3431         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
3432         implementing getdents64 using getdents syscall, set d_type if
3433         __ASSUME_GETDENTS32_D_TYPE.
3435 2010-09-16  Andreas Schwab  <schwab@redhat.com>
3437         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
3438         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
3440 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
3442         [BZ #12037]
3443         * posix/unistd.h: Undo change of feature selection for ftruncate from
3444         2010-01-11.
3446 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
3448         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
3449         detection.
3451 2010-09-20  Andreas Schwab  <schwab@redhat.com>
3453         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
3454         fanotify_mark.
3455         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
3457 2010-09-14  Andreas Schwab  <schwab@redhat.com>
3459         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
3460         variables after CHECK_SP call.
3461         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
3463 2010-09-13  Andreas Schwab  <schwab@redhat.com>
3464             Ulrich Drepper  <drepper@redhat.com>
3466         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
3467         re-relocationg ld.so.
3468         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
3469         _dl_init_paths call.
3470         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
3471         here anymore.
3473 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
3475         * resolv/res_init.c (__res_vinit): Count the default server we added.
3477 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
3478             Ulrich Drepper  <drepper@redhat.com>
3480         [BZ #11968]
3481         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
3482         (____longjmp_chk): Use %ebx for saving value across system call.
3483         Add unwind info.
3485 2010-09-06  Andreas Schwab  <schwab@redhat.com>
3487         * manual/Makefile: Don't mix pattern rules with normal rules.
3489 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3491         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
3492         operation.
3493         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
3494         * libio/iofopncook.c (_IO_cookie_init): Likewise.
3495         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
3496         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
3497         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
3498         Likewise.
3500 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
3502         [BZ #11979]
3503         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
3504         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
3506 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
3508         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
3509         * sysdeps/x86_64/addmul_1.S: Likewise.
3510         * sysdeps/x86_64/lshift.S: Likewise.
3511         * sysdeps/x86_64/mul_1.S: Likewise.
3512         * sysdeps/x86_64/rshift.S: Likewise.
3513         * sysdeps/x86_64/sub_n.S: Likewise.
3514         * sysdeps/x86_64/submul_1.S: Likewise.
3516 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3518         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
3519         Define __sched_param instead of SCHED_* and sched_param when
3520         <bits/sched.h> is included with __need_schedparam defined.
3521         * bits/sched.h [__need_schedparam]
3522         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
3523         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
3524         (__defined_schedparam): Define to 1.
3525         (__sched_param): New structure, identical to sched_param.
3526         (__need_schedparam): Undefine.
3528 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
3530         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
3531         (epoll_create1): Declare.
3533         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
3535 2010-08-31  Andreas Schwab  <schwab@redhat.com>
3537         [BZ #7066]
3538         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
3539         shifting retval into place.
3541 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
3543         * nis/rpcsvc/nis.h: Update copyright notice.
3544         * nis/rpcsvc/nis.x: Likewise.
3545         * nis/rpcsvc/nis_callback.h: Likewise.
3546         * nis/rpcsvc/nis_callback.x: Likewise.
3547         * nis/rpcsvc/nis_object.x: Likewise.
3548         * nis/rpcsvc/nis_tags.h: Likewise.
3549         * nis/rpcsvc/yp.h: Likewise.
3550         * nis/rpcsvc/yp.x: Likewise.
3551         * nis/rpcsvc/ypupd.h: Likewise.
3552         * nis/yp_xdr.c: Likewise.
3553         * nis/ypupdate_xdr.c: Likewise.
3555         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
3556         mainly the body of pmap_getport.  Add parameters to specify timeouts.
3557         (pmap_getport): Use __libc_rpc_getport.
3558         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
3559         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
3560         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
3562 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
3564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
3565         fanotify_mark.
3567 2010-08-27  Roland McGrath  <roland@redhat.com>
3569         * sysdeps/i386/i686/multiarch/Makefile
3570         (CFLAGS-varshift.c): New variable.
3572 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
3574         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
3575         * sysdeps/i386/i686/multiarch/varshift.c: New file.
3577         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
3579         * sysdeps/x86_64/strlen.S: Minimal code improvement.
3581 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
3583         * sysdeps/x86_64/strlen.S: Unroll the loop.
3584         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3585         strlen-sse2 strlen-sse2-bsf.
3586         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
3587         __strlen_no_bsf if bit_Slow_BSF is set.
3588         (__strlen_sse42): Removed.
3589         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
3590         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
3592 2010-08-25  Roland McGrath  <roland@redhat.com>
3594         * sysdeps/x86_64/multiarch/varshift.S: File removed.
3595         * sysdeps/x86_64/multiarch/varshift.c: New file.
3596         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
3597         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
3598         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
3599         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
3601 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
3603         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
3604         strlen-sse2 strlen-sse2-bsf.
3605         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
3606         __strlen_sse2_bsf if bit_Slow_BSF is unset.
3607         (__strlen_sse2): Removed.
3608         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
3609         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
3610         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
3611         bit_Slow_BSF for Atom.
3612         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
3613         (index_Slow_BSF): Define.
3614         (HAS_SLOW_BSF): Define.
3616 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
3618         [BZ #10851]
3619         * resolv/res_init.c (__res_vinit): When no server address at all
3620         is given default to loopback.
3622 2010-08-24  Roland McGrath  <roland@redhat.com>
3624         * configure.in: Remove config-name.h generation.
3625         * configure: Regenerated.
3626         * config-name.in: File removed.
3627         * scripts/config-uname.sh: New file.
3628         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
3629         ($(objdir)config-name.h): New target.
3631         * sunrpc/rpc_parse.h: Avoid nested comment.
3633 2010-08-24  Richard Henderson  <rth@redhat.com>
3634             Ulrich Drepper  <drepper@redhat.com>
3635             H.J. Lu  <hongjiu.lu@intel.com>
3637         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
3638         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
3639         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
3640         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
3641         _mm_alignr_epi8 with _mm_loadu_si128.
3642         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
3643         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
3644         (__m128i_shift_right): Removed.
3645         * sysdeps/i386/i686/multiarch/varshift.h: New file.
3646         * sysdeps/i386/i686/multiarch/varshift.S: New file.
3647         * sysdeps/x86_64/multiarch/varshift.h: New file.
3648         * sysdeps/x86_64/multiarch/varshift.S: New file.
3650 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
3652         * configure.in: Move assembler checks to before sysdep dir checking.
3654 2010-08-20  Petr Baudis  <pasky@suse.cz>
3656         * LICENSES: Sync the sunrpc license.
3658 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
3660         * sunrpc/auth_des.c: Update copyright notice once again.
3661         * sunrpc/auth_none.c: Likewise.
3662         * sunrpc/auth_unix.c: Likewise.
3663         * sunrpc/authdes_prot.c: Likewise.
3664         * sunrpc/authuxprot.c: Likewise.
3665         * sunrpc/bindrsvprt.c: Likewise.
3666         * sunrpc/clnt_gen.c: Likewise.
3667         * sunrpc/clnt_perr.c: Likewise.
3668         * sunrpc/clnt_raw.c: Likewise.
3669         * sunrpc/clnt_simp.c: Likewise.
3670         * sunrpc/clnt_tcp.c: Likewise.
3671         * sunrpc/clnt_udp.c: Likewise.
3672         * sunrpc/clnt_unix.c: Likewise.
3673         * sunrpc/des_crypt.c: Likewise.
3674         * sunrpc/des_soft.c: Likewise.
3675         * sunrpc/get_myaddr.c: Likewise.
3676         * sunrpc/getrpcport.c: Likewise.
3677         * sunrpc/key_call.c: Likewise.
3678         * sunrpc/key_prot.c: Likewise.
3679         * sunrpc/openchild.c: Likewise.
3680         * sunrpc/pm_getmaps.c: Likewise.
3681         * sunrpc/pm_getport.c: Likewise.
3682         * sunrpc/pmap_clnt.c: Likewise.
3683         * sunrpc/pmap_prot.c: Likewise.
3684         * sunrpc/pmap_prot2.c: Likewise.
3685         * sunrpc/pmap_rmt.c: Likewise.
3686         * sunrpc/rpc/auth.h: Likewise.
3687         * sunrpc/rpc/auth_unix.h: Likewise.
3688         * sunrpc/rpc/clnt.h: Likewise.
3689         * sunrpc/rpc/des_crypt.h: Likewise.
3690         * sunrpc/rpc/key_prot.h: Likewise.
3691         * sunrpc/rpc/netdb.h: Likewise.
3692         * sunrpc/rpc/pmap_clnt.h: Likewise.
3693         * sunrpc/rpc/pmap_prot.h: Likewise.
3694         * sunrpc/rpc/pmap_rmt.h: Likewise.
3695         * sunrpc/rpc/rpc.h: Likewise.
3696         * sunrpc/rpc/rpc_des.h: Likewise.
3697         * sunrpc/rpc/rpc_msg.h: Likewise.
3698         * sunrpc/rpc/svc.h: Likewise.
3699         * sunrpc/rpc/svc_auth.h: Likewise.
3700         * sunrpc/rpc/types.h: Likewise.
3701         * sunrpc/rpc/xdr.h: Likewise.
3702         * sunrpc/rpc_clntout.c: Likewise.
3703         * sunrpc/rpc_cmsg.c: Likewise.
3704         * sunrpc/rpc_common.c: Likewise.
3705         * sunrpc/rpc_cout.c: Likewise.
3706         * sunrpc/rpc_dtable.c: Likewise.
3707         * sunrpc/rpc_hout.c: Likewise.
3708         * sunrpc/rpc_main.c: Likewise.
3709         * sunrpc/rpc_parse.c: Likewise.
3710         * sunrpc/rpc_parse.h: Likewise.
3711         * sunrpc/rpc_prot.c: Likewise.
3712         * sunrpc/rpc_sample.c: Likewise.
3713         * sunrpc/rpc_scan.c: Likewise.
3714         * sunrpc/rpc_scan.h: Likewise.
3715         * sunrpc/rpc_svcout.c: Likewise.
3716         * sunrpc/rpc_tblout.c: Likewise.
3717         * sunrpc/rpc_util.c: Likewise.
3718         * sunrpc/rpc_util.h: Likewise.
3719         * sunrpc/rpcinfo.c: Likewise.
3720         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3721         * sunrpc/rpcsvc/key_prot.x: Likewise.
3722         * sunrpc/rpcsvc/klm_prot.x: Likewise.
3723         * sunrpc/rpcsvc/mount.x: Likewise.
3724         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3725         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
3726         * sunrpc/rpcsvc/rex.x: Likewise.
3727         * sunrpc/rpcsvc/rstat.x: Likewise.
3728         * sunrpc/rpcsvc/rusers.x: Likewise.
3729         * sunrpc/rpcsvc/sm_inter.x: Likewise.
3730         * sunrpc/rpcsvc/spray.x: Likewise.
3731         * sunrpc/rpcsvc/yppasswd.x: Likewise.
3732         * sunrpc/rtime.c: Likewise.
3733         * sunrpc/svc.c: Likewise.
3734         * sunrpc/svc_auth.c: Likewise.
3735         * sunrpc/svc_authux.c: Likewise.
3736         * sunrpc/svc_raw.c: Likewise.
3737         * sunrpc/svc_run.c: Likewise.
3738         * sunrpc/svc_simple.c: Likewise.
3739         * sunrpc/svc_tcp.c: Likewise.
3740         * sunrpc/svc_udp.c: Likewise.
3741         * sunrpc/svc_unix.c: Likewise.
3742         * sunrpc/svcauth_des.c: Likewise.
3743         * sunrpc/xcrypt.c: Likewise.
3744         * sunrpc/xdr.c: Likewise.
3745         * sunrpc/xdr_array.c: Likewise.
3746         * sunrpc/xdr_float.c: Likewise.
3747         * sunrpc/xdr_mem.c: Likewise.
3748         * sunrpc/xdr_rec.c: Likewise.
3749         * sunrpc/xdr_ref.c: Likewise.
3750         * sunrpc/xdr_sizeof.c: Likewise.
3751         * sunrpc/xdr_stdio.c: Likewise.
3753         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
3754         handling.
3756 2010-08-19  Andreas Schwab  <schwab@redhat.com>
3758         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
3760 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
3762         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
3763         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
3764         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
3765         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
3766         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
3767         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
3768         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
3769         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
3770         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
3771         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
3772         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
3773         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
3774         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
3775         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
3777 2010-07-26  Anton Blanchard  <anton@samba.org>
3779         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
3780         * malloc/arena.c (heap_trim): Likewise.
3782 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
3784         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
3785         here.  Not...
3786         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
3787         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
3789 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
3791         * sysdeps/i386/elf/Makefile: New file.
3793 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
3795         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
3796         from fanotify_init.
3797         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
3798         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
3800 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
3802         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
3803         of strncasecmp_l.
3804         * sysdeps/multiarch/strcmp.S: Likewise.
3806 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
3808         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
3809         strncase_l-nonascii.
3810         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
3811         Add strncase_l-ssse3.
3812         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
3813         * sysdeps/x86_64/strcmp.S: Likewise.
3814         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
3815         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
3816         * sysdeps/x86_64/strncase.S: New file.
3817         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
3818         * sysdeps/x86_64/strncase_l.S: New file.
3819         * string/Makefile (strop-tests): Add strncasecmp.
3820         * string/test-strncasecmp.c: New file.
3822         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
3823         warning.
3825         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
3826         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
3828 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
3830         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
3832 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
3834         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
3835         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3836         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3838 2010-05-01  Alan Modra  <amodra@gmail.com>
3840         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
3841         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
3842         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
3843         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
3844         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
3845         tidying.  Don't tail-call __sigjmp_save for static lib.
3846         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
3847         save location.
3848         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
3849         (CALL_MCOUNT): Add eh info, and nop after bl.
3850         (TAIL_CALL_SYSCALL_ERROR): New macro.
3851         (PSEUDO_RET): Use it.
3852         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
3853         Correct save location of integer regs and cr.
3854         (_dl_profile_resolve): Correct cr save location.  Delete nops
3855         after bl when SHARED.  Reduce cfi size a little by better
3856         placement of cfi directives.
3857         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
3858         make a stack frame.  Instead use parm save area as a temp.
3859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
3860         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
3861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
3862         Don't make a stack frame for parent, use parm save area.
3863         Increase child stack frame to 112 bytes.  Don't save unused reg,
3864         and adjust reg usage.  Set up cfi on error recovery and
3865         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
3866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3867         (__makecontext): Add dummy nop after jump to exit.
3868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
3869         Use correct parm save area and cr save, reduce stack frame.
3870         Correct cfi for possible PSEUDO_RET frame setup.
3871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
3872         Branch to local label emitted by PSEUDO_RET rather than
3873         __syscall_error.
3875 2010-08-12  Andreas Schwab  <schwab@redhat.com>
3877         [BZ #11904]
3878         * locale/programs/locale.c (print_assignment): New function.
3879         (show_locale_vars): Use it.
3881 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
3883         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
3884         field.
3885         (struct statfs64): Likewise.
3886         (_STATFS_F_FLAGS): Define.
3887         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
3888         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
3889         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
3890         (ST_VALID): Define locally.
3891         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
3892         __statvfs_getflags, use the provided value.
3893         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3894         __ASSUME_STATFS_F_FLAGS.
3896         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
3898         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3899         Add sys/fanotify.h.
3900         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
3901         fanotify_mask for GLIBC_2.13.
3902         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
3903         fanotify_init and fanotify_mark.
3904         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
3905         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
3907         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
3908         Add prlimit.
3909         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
3910         prlimit64 for GLIBC_2.13.
3911         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
3912         prlimit64.
3913         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
3914         syscall.
3915         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
3916         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
3917         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
3918         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
3919         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
3920         add prlimit alias.
3921         * sysdeps/unix/sysv/linux/prlimit.c: New file.
3923         [BZ #11903]
3924         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
3925         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
3927         * nss/Makefile: Add rules to build and run tst-nss-test1.
3928         * shlib-versions: Add entry for libnss_test1.
3929         * nss/nss_test1.c: New file.
3930         * nss/tst-nss-test1.c: New file.
3932         * nss/nsswitch.c (__nss_database_custom): Define new variable.
3933         (__nss_configure_lookup): Set appropriate entry in
3934         __nss_configure_lookup to true.
3935         * nss/nsswitch.h: Define enum with indeces of databases in
3936         databases and __nss_database_custom arrays.  Declare
3937         __nss_database_custom.
3938         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
3939         to avoid using nscd when custom rules are installed.
3940         * nss/getXXbyYY_r.c: Likewise.
3941         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
3943         * nss/nss_files/files-parse.c: Whitespace fixes.
3945 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
3947         [BZ #11883]
3948         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
3949         * posix/fnmatch_loop.c: Likewise.
3951 2010-07-17  Andi Kleen  <ak@linux.intel.com>
3953         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
3954         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
3955         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
3956         * Versions.def [GLIBC_2.13]: Add.
3958 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
3960         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
3961         Also fail if tpwd after pwuid call is NULL.
3963 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3965         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
3966         when converting to ms.
3968 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3970         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
3971         EOPNOTSUPP errors with ENOTTY.
3972         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
3973         EOPNOTSUPP errors with ENOTTY.
3975 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
3977         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
3978         Add strcasecmp_l-ssse3.
3979         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
3980         strcasecmp.
3981         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
3982         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
3983         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
3985 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
3987         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
3989         * string/Makefile (strop-tests): Add strcasecmp.
3990         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
3991         strcasecmp_l-nonascii.
3992         (gen-as-const-headers): Add locale-defines.sym.
3993         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
3994         * sysdeps/x86_64/strcasecmp.S: New file.
3995         * sysdeps/x86_64/strcasecmp_l.S: New file.
3996         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
3997         * sysdeps/x86_64/locale-defines.sym: New file.
3998         * string/test-strcasecmp.c: New file.
4000         * string/test-strcasestr.c: Test both ends of the range of characters.
4001         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
4003 2010-07-29  Roland McGrath  <roland@redhat.com>
4005         [BZ #11856]
4006         * manual/locale.texi (Yes-or-No Questions): Fix example code.
4008 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
4010         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
4011         for ld.so.
4013 2010-07-27  Andreas Schwab  <schwab@redhat.com>
4015         * manual/memory.texi (Malloc Tunable Parameters): Document
4016         M_PERTURB.
4018 2010-07-26  Roland McGrath  <roland@redhat.com>
4020         [BZ #11840]
4021         * configure.in (-fgnu89-inline check): Set and substitute
4022         gnu89_inline, not libc_cv_gnu89_inline.
4023         * configure: Regenerated.
4024         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
4026 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
4028         * string/test-strnlen.c: New file.
4029         * string/Makefile (strop-tests): Add strnlen.
4030         * string/tester.c (test_strnlen): Add a few more test cases.
4031         * string/tst-strlen.c: Better error reporting.
4033         * sysdeps/x86_64/strnlen.S: New file.
4035 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
4037         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
4038         lower-latency instructions.
4040 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
4042         * string/test-strcasestr.c: New file.
4043         * string/test-strstr.c: New file.
4044         * string/Makefile (strop-tests): Add strstr and strcasestr.
4045         * string/str-two-way.h: Don't undefine MAX.
4046         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
4048 2010-07-21  Andreas Schwab  <schwab@redhat.com>
4050         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
4051         strcasestr-nonascii.
4052         (CFLAGS-strcasestr-nonascii.c): Define.
4053         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
4054         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
4055         Remove unused attribute.
4057 2010-07-20  Roland McGrath  <roland@redhat.com>
4059         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
4060         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
4061         ld.so.cache was broken.  With it, there is no way to disable dsocaps
4062         like LD_HWCAP_MASK can disable hwcaps.
4064 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
4066         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
4068 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
4070         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
4071         call in strcasestr.
4072         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
4073         __strcasestr_sse42_nonascii.
4074         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
4075         strcasestr-nonascii.c.
4076         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
4078 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
4080         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
4081         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
4082         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
4083         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
4085 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
4087         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
4088         fcntl.
4090 2010-07-06  Andreas Schwab  <schwab@redhat.com>
4092         [BZ #11577]
4093         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
4094         dl_signal_cerror.
4096 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
4098         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
4099         _PC_PIPE_BUF using F_GETPIPE_SZ.
4101 2010-07-05  Roland McGrath  <roland@redhat.com>
4103         * manual/arith.texi (Rounding Functions): Fix rint description
4104         implicit in round description.
4106 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
4108         * elf/Makefile: Fix linking for a few tests to make recent linker
4109         happy.
4111 2010-06-30  Andreas Schwab  <schwab@redhat.com>
4113         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
4114         $(common-objpfx)libc_nonshared.a.
4116 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
4118         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
4119         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
4120         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
4121         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
4122         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
4123         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
4124         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
4125         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
4126         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
4127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
4128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
4129         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
4130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
4131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
4132         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
4133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
4134         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
4135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
4136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
4137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
4138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
4139         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
4140         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
4141         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
4142         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
4143         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
4144         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
4145         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
4146         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
4147         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
4148         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
4149         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
4150         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
4151         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
4152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
4153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
4154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
4155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
4156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
4157         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
4158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
4159         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
4160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
4161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
4162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
4163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
4164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
4165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
4167 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
4169         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
4170         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
4171         * string/memmove.c (memmove): Renamed to ...
4172         (MEMMOVE): ...this.  Default to memmove.
4173         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
4174         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
4175         (END_CHK): Define.
4176         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4177         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
4178         mempcpy-ssse3-back memmove-ssse3-back.
4179         * sysdeps/x86_64/multiarch/bcopy.S: New file .
4180         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
4181         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
4182         * sysdeps/x86_64/multiarch/memcpy.S: New file.
4183         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
4184         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
4185         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
4186         * sysdeps/x86_64/multiarch/memmove.c: New file.
4187         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
4188         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
4189         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
4190         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
4191         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
4192         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
4193         Define.
4194         (index_Fast_Copy_Backward): Define.
4195         (HAS_ARCH_FEATURE): Define.
4196         (HAS_FAST_REP_STRING): Define.
4197         (HAS_FAST_COPY_BACKWARD): Define.
4199 2010-06-21  Andreas Schwab  <schwab@redhat.com>
4201         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
4202         Restore proper fallback handling.
4204 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
4206         [BZ #11701]
4207         * posix/group_member.c (__group_member): Correct checking loop.
4209         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
4210         OOM in getpwuid_r correctly.  Return error number when the caller
4211         should return, otherwise -1.
4212         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
4213         call returning > 0 value.
4214         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
4216 2010-06-07  Andreas Schwab  <schwab@redhat.com>
4218         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
4219         libc_nonshared.a from targets in modules-names.
4221 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
4223         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
4224         requires it.
4226 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
4228         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
4229         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
4230         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
4231         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
4233 2010-06-02  Andreas Schwab  <schwab@redhat.com>
4235         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
4237 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
4239         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
4240         and F_GETPIPE_SZ.
4241         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4242         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4243         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4244         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4245         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4246         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
4248 2010-06-14  Roland McGrath  <roland@redhat.com>
4250         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
4252 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
4254         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
4255         __REDIRECT followed by __THROW.
4256         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
4257         * posix/getopt.h (getopt): Likewise.
4259 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
4261         * hurd/lookup-at.c (__file_name_lookup_at): Accept
4262         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
4263         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
4264         in AT_FLAGS.
4265         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
4266         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
4268 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
4270         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
4272 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
4274         [BZ #11640]
4275         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4276         Properly check family and model.
4278 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
4280         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
4282 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
4284         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
4286 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
4288         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
4289         symbol reference.
4291 2010-05-19  Andreas Schwab  <schwab@redhat.com>
4293         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
4294         symbol reference.
4296 2010-05-21  Andreas Schwab  <schwab@redhat.com>
4298         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
4299         and internal_recvmmsg.
4300         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
4301         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
4302         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
4303         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
4305         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
4306         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
4307         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
4309 2010-05-20  Andreas Schwab  <schwab@redhat.com>
4311         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
4313 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
4315         POWER7 optimizations.
4316         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
4317         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
4319 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
4321         * version.h: Update for 2.13 development version.
4323 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
4325         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
4326         exceptions.  Return 0.
4328 2010-05-07  Roland McGrath  <roland@redhat.com>
4330         * elf/ldconfig.c (main): Add a const.
4332 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
4334         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
4335         (args_options): Add no-idn option.
4336         (ahosts_keys_int): Add idn_flags to ai_flags.
4337         (parse_option): Handle 'i' option to clear idn_flags.
4339         * malloc/malloc.c (_int_free): Possible race in the most recently
4340         added check.  Only act on the data if no current modification
4341         happened.
4343 See ChangeLog.17 for earlier changes.