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