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