Avoid warnings in __*_finite math function declarations with C++
[platform/upstream/glibc.git] / ChangeLog
1 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
2
3         [BZ #13484]
4         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
5         of __asm__.
6
7 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8
9         [BZ #13506]
10         * time/tzfile.c (__tzfile_read): Check values from file header.
11
12 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13
14         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
16         * powerpc/powerpc32/dl-start.S: Likewise.
17         * powerpc/powerpc32/elf/start.S: Likewise.
18         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
19         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
20         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
21         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
22         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
23         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
24         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
25         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
26         * powerpc/powerpc32/fpu/s_round.S: Likewise.
27         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
28         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
29         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
30         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
31         * powerpc/powerpc32/memset.S: Likewise.
32         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
33         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
34         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
35         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
36         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
37         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
38         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
39         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
40         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
41         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
42         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
43         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
44         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
45
46 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47
48         * math/libm-test.inc: Added more nearbyint tests.
49         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
50         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
51         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
52         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
53
54 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
55
56         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
57         FD_CLOEXEC.
58
59 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
60
61         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
62         Add wcscpy-ssse3 wcscpy-c.
63         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
64         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
65         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
66         * sysdeps/x86_64/wcschr.S: New file.
67         * sysdeps/x86_64/wcsrchr.S: New file.
68         * string/test-strcmp.c: Remove checking of wcscmp function for
69         wrong alignments.
70         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
71         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
72         wcsrchr-sse2 wcsrchr-c.
73         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
74         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
75         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
76         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
77         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
78         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
79         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
80         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
81         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
82         * wcsmbc/wcschr.c (WCSCHR): New macro.
83
84 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85
86         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
87         * wcsmbs/test-wcsrchr.c: New file.
88         * string/test-strrchr.c: Add wcsrchr support.
89         (WIDE): New macro.
90         * wcsmbs/test-wcscpy.c: New file.
91         * string/test-strcpy.c: Add wcscpy support.
92         (WIDE): New macro.
93
94 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
95
96         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
97         the inner loop.
98
99 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
100
101         [BZ #13472]
102         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
103
104 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
105
106         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
107         Minor optimizations.
108
109         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
110         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
111         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
112
113 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
114
115         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
116         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
117         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
118         for gcc to avoid warnings.
119         * inet/Makefile (tests): Add tst-checks.
120         * inet/tst-checks.c: New file.
121
122         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
123         warning.
124
125         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
126         __wmemcmp_sse2.
127
128         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
129         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
130
131         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
132
133 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
134
135         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
136         problem.
137
138         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
139
140 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
141
142         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
143         conditional on GCC version.
144         (__arch_compare_and_exchange_val_8_acq)
145         (__arch_compare_and_exchange_val_16_acq)
146         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
147         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
148         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
149
150 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
151
152         * sysdeps/sh/backtrace.c: New file.
153
154 2011-12-02  Andreas Schwab  <schwab@redhat.com>
155
156         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
157         parenthesis.
158
159 2011-12-01  Andreas Schwab  <schwab@redhat.com>
160
161         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
162         falling back to utime.
163
164 2011-11-30  Andreas Schwab  <schwab@redhat.com>
165
166         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
167         expectations for float.
168
169 2011-11-29  Andreas Schwab  <schwab@redhat.com>
170
171         * locale/weight.h (findidx): Add parameter len.
172         * locale/weightwc.h (findidx): Likewise.
173         * posix/fnmatch_loop.c (FCT): Adjust caller.
174         * posix/regcomp.c (build_equiv_class): Likewise.
175         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
176         * posix/regexec.c (check_node_accept_bytes): Likewise.
177         * string/strcoll_l.c (STRCOLL): Likewise.
178         * string/strxfrm_l.c (STRXFRM): Likewise.
179
180 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
181
182         * Makefile.in: Remove CVSOPT handling.
183         * configure.in: Remove use of AC_REVISION.
184         * iconvdata/Makefile (distribute): No need to filter out CVS.
185         * scripts/list-sources.sh: Remove CVS, subversion and monotone
186         handling.
187
188 2011-11-16  Andreas Schwab  <schwab@redhat.com>
189
190         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
191         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
192         [USE_AS_STRNCASECMP_L]: Likewise.
193         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
194         NO_TLS_DIRECT_SEG_REFS.
195         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
196         Fix argument offsets for non-PIC.
197         [USE_AS_STRNCASECMP_L]: Likewise.
198         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
199         NO_TLS_DIRECT_SEG_REFS.
200
201 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
202
203         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
204         O_CLOEXEC.
205         * locale/loadlocale.c (_nl_load_locale): Likewise.
206
207 2011-11-15  Andreas Schwab  <schwab@redhat.com>
208
209         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
210         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
211         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
212         (SYSCALL_GETTIME): Set errno on error.
213
214         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
215         count references to noai6ai_cached.
216
217 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
218
219         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
220
221         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
222         FD_CLOEXEC for /proc/self/maps.
223
224         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
225         FD_CLOEXEC for /proc/meminfo.
226
227         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
228         gai.conf.
229
230         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
231         FD_CLOEXEC for given file.
232
233         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
234
235         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
236         FD_CLOEXEC for /etc/hosts.
237         (_gethtent): Likewise.
238
239         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
240
241         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
242         cancellation and set FD_CLOEXEC for /etc/netgroup.
243
244         * nss/nss_files/files-key.c (search): Don't allow cancellation when
245         reading /etc/publickey.
246
247         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
248         allow cancellation when reading /etc/group.
249
250         * nss/nss_files/files-alias.c (internal_setent): Don't allow
251         cancellation.
252         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
253
254         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
255         when using data file.
256
257         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
258
259         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
260         (write_nis_obj): Use "c" and "e" in fopen.
261
262         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
263
264         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
265
266         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
267
268         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
269
270         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
271         locale.alias.
272
273         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
274
275         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
276
277         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
278
279         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
280         file parsing and set FD_CLOEXEC.
281
282 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
283
284         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
285
286 2011-11-14  Andreas Schwab  <schwab@redhat.com>
287
288         * malloc/arena.c (arena_get2): Don't call reused_arena when
289         _int_new_arena failed.
290
291 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
292
293         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
294         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
295         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
296         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
297         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
298         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
299         to compile strcasecmp and strncasecmp.
300         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
301         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
302
303         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
304
305 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
306
307         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
308         locale-defines.sym to gen-as-const-headers.
309         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
310         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
311         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
312         to compile strcasecmp and strncasecmp.
313         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
314         strcasecmp_l and strncasecmp_l.
315         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
316         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
317         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
318         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
319         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
320         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
321         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
322         * sysdeps/i386/i686/multiarch/strncase.S: New file.
323         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
324         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
325         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
326
327 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
328
329         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
330         result of SYSDEP_GETTIME_CPU to retval.
331         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
332         parameter list to macro.  Remove trailing semicolon.  Adjust users.
333
334         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
335         variable.
336
337         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
338         mantissa words.
339         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
340
341         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
342         from unused variable.
343
344         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
345         DWARF definitions.
346         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
347         for assembling.
348
349         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
350         over namespaces.
351
352         * sunrpc/rpc_prot.c (rejected): Fix case value.
353
354         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
355         unsigned long long int to avoid warnings in shift.
356
357         * posix/regex_internal.c (re_string_reconstruct): Actually use result
358         of use of trans.
359         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
360         variable tmp.
361
362         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
363         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
364         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
365
366         * nis/nis_table.c (nis_list): Use variable of correct type for
367         result of __follow_path call.
368
369 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
370
371         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
372         of math functions ceil, trunc, floor, round, and sqrt, when
373         avaliable on the platform.
374         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
375         name clash.
376         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
377         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
378         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
379
380 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
381
382         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
383         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
384
385 2011-11-11  Roland McGrath  <roland@hack.frob.com>
386
387         * include/unistd.h: Fix __readlink return type.
388         Reported by Chris Metcalf <cmetcalf@tilera.com>.
389
390 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
391
392         * stdlib/ucontext.h: Undo last change for makecontext.
393
394 2011-11-11  Andreas Schwab  <schwab@redhat.com>
395
396         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
397
398         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
399         * setjmp/setjmp.h: Mark functions as non-leaf.
400         * setjmp/bits/setjmp2.h: Likewise.
401         * stdlib/ucontext.h: Likewise.
402
403 2011-11-10  Andreas Schwab  <schwab@redhat.com>
404
405         * malloc/arena.c (_int_new_arena): Don't increment narenas.
406         (reused_arena): Don't check arena limit.
407         (arena_get2): Atomically check arena limit.
408
409 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
410
411         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
412         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
413
414         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
415         instructions.
416
417 2011-11-07  Andreas Schwab  <schwab@redhat.com>
418
419         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
420         handler when locking.
421
422         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
423         Fix size of allocated buffer.
424
425 2011-11-04  Andreas Schwab  <schwab@redhat.com>
426
427         [BZ #10103]
428         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
429         declarations for long double functions.
430         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
431
432         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
433
434 2011-11-03  Andreas Schwab  <schwab@redhat.com>
435
436         * nscd/nscd.c (main): Don't start AVC thread until credentials are
437         installed.
438
439         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
440         is disabled.
441
442 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
443
444         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
445
446 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
447
448         * include/alloca.h (stackinfo_alloca_round): Define.
449         (extend_alloca): Use it.
450         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
451         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
452         here.
453
454         * scripts/check-local-headers.sh: Ignore libaudit.h.
455
456         * nscd/Makefile (extra-objs): Make recursively expanded.
457
458 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
459
460         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
461         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
462
463         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
464         * posix/tst-rfc3484-2.c: Likewise.
465         * posix/tst-rfc3484-3.c: Likewise.
466
467         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
468         process_vm_writev.
469         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
470         process_vm_writev.
471         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
472         process_vm_writev from libc using GLIBC_2.15 version.
473
474         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
475
476 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
477
478         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
479         stack usage.
480
481 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
482
483         [BZ #13367]
484         * nss/getent.c (initgroups_keys): Show error message in case no group
485         names are given.
486
487         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
488         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
489         __bump_nl_timestamp.
490         * nscd/connections (nscd_init): When host database is served open
491         netlink socket and request notification about configuration changes.
492         (main_loop_poll): Track netlink file descriptor and bump timestamp
493         in case data becomes available.
494         (main_loop_epoll): Likewise.
495         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
496         (database_pers_head): Add extra_data fileds.
497         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
498         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
499         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
500         Adjust caller.
501         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
502         in6ai data, call __free_in6ai.
503         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
504         Add -DHAVE_NETLINK.
505         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
506         interface information.  Reuse previous data if netlink timestamp
507         is not changed.
508         (__bump_nl_timestamp): New function.
509         (__free_in6ai): New function.
510
511 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
512
513         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
514         close_not_cancel_no_status here.
515         (__check_pf): Reorganize code a bit to not call close twice if OOM.
516
517 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
518
519         [BZ #13276]
520         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
521         return value.
522
523         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
524         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
525         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
526
527 2011-07-03  Andreas Jaeger  <aj@suse.de>
528
529         [BZ #10709]
530         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
531         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
532         * math/libm-test.inc (sin_test): Add test case.
533
534 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
535
536         [BZ #13337]
537         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
538         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
539
540         * elf/chroot_canon.c (chroot_canon): Cleanups.
541
542         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
543
544         [BZ #13335]
545         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
546         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
547
548         * string/test-strchr.c: Make usable for strchrnul testing.
549         * string/test-strchrnul.c: New file.
550         * string/Makefile (strop-tests): Add strchrnul.
551
552         * po/it.po: Update from translation team.
553         * po/es.po: Likewise.
554
555 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
556
557         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
558         the three constants needed as parameters.  Drop the others.
559         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
560         __m128i_strloadu_tolower.
561         Create and initialize variable zero and use it in all the places
562         where _mm_setzero_si128 was used.
563
564         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
565         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
566         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
567         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
568         anymore.
569         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
570         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
571         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
572         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
573         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
574         __mpranred, __mptan.
575         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
576         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
577         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
578         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
579         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
580         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
581         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
582         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
583         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
584
585 2011-10-28  Andreas Schwab  <schwab@redhat.com>
586
587         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
588         redefine if SHARED.
589         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
590
591         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
592         wide char related routines to wcsmbs subdir.
593
594 2011-10-27  Andreas Schwab  <schwab@redhat.com>
595
596         [BZ #13344]
597         * misc/sys/cdefs.h (__THROWNL): Define.
598         * posix/unistd.h: Use __THREADNL instead of __THREAD
599         for memory synchronization functions.
600
601 2011-10-26  Roland McGrath  <roland@hack.frob.com>
602
603         [BZ #13349]
604         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
605         doesn't exist.
606         * manual/stdio.texi (Obstack Streams): Node removed.
607
608 2011-10-26  Andreas Schwab  <schwab@redhat.com>
609
610         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
611         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
612         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
613
614         * math/math_private.h (math_force_eval): Allow non-addressable
615         arguments.
616         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
617
618 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
619
620         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
621         file is not needed.
622
623         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
624         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
625         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
626         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
627         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
628         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
629         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
630         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
631         Add AVX variants.
632         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
633         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
634         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
635         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
636         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
637         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
638         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
639         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
640         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
641         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
642         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
643         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
644         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
645         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
646         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
647         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
648         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
649         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
650         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
651
652         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
653         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
654
655         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
656         place.  Use VEX encoding when compiling for AVX.
657
658 2011-10-25  Andreas Schwab  <schwab@redhat.com>
659
660         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
661         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
662
663         * string/test-strchr.c (do_test): Don't generate NUL bytes.
664
665 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
666
667         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
668         useless if() expression.
669         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
670         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
671         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
672         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
673         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
674         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
675         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
676         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
677         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
678         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
679         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
680         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
681         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
682         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
683         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
684         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
685         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
686         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
687         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
688
689         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
690
691 2011-10-25  Andreas Schwab  <schwab@redhat.com>
692
693         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
694         condition.
695         * elf/dl-fini.c (_dl_sort_fini): Likewise.
696
697 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
698
699         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
700         .text section.  Avoid duplicate constants.
701         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
702         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
703         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
704         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
705         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
706         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
707         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
708         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
709         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
710         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
711         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
712         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
713         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
714         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
715         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
716         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
717         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
718         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
719         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
720         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
721         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
722         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
723         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
724         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
725         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
726         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
727         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
728         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
729         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
730         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
731         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
732         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
733         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
734         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
735         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
736         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
737         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
738         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
739         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
740         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
741         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
742         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
743         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
744         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
745         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
746
747 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
748
749         * sysdeps/x86_64/dla.h: Move to ...
750         * sysdeps/x86_64/fpu/dla.h: ...here.
751         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
752         situations.  Use __builtin_fma only for gcc 4.6 and up.
753
754         * config.make.in: Add have-mfma4 entry.
755         * configure.in: Substitute libc_cv_cc_fma4.
756         * math/Makefile (dbl-only-routines): Add sincostab.
757         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
758         Use __sincostab not sincos.
759         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
760         name is a macro.
761         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
762         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
763         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
764         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
765         using __copysign.
766         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
767         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
768         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
769         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
770         and __inv.
771         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
772         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
773         __copysign.
774         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
775         define aliases when function name is a macro.
776         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
777         sysdeps/ieee754/dbl-64/sincos.tbl.
778         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
779         fma4-enabled routines.
780         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
781         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
782         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
783         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
784         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
785         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
786         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
787         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
788         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
789         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
790         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
791         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
792         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
793         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
794         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
795         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
796         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
797         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
798         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
799         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
800         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
801         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
802         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
803         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
804         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
805         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
806         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
807         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
808         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
809         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
810
811         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
812         rename.
813         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
814         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
815         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
816         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
817         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
818         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
819         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
820         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
821
822 2011-10-24  Andreas Schwab  <schwab@redhat.com>
823
824         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
825
826 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
827
828         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
829
830         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
831         prediction.
832         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
833
834         * string/strnlen.c: Don't define STRNLEN, reverse logic.
835         Remove unused variable magic_bits.
836         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
837
838         * string/strnlen.c: Define and use STRNLEN macro.
839         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
840         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
841         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
842         * wcsmbs/wcslen.c: Define and use WCSLEN.
843         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
844         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
845         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
846         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
847         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
848         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
849         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
850
851 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
852
853         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
854         strnlen-sse2-no-bsf.
855         Rename strlen-no-bsf to strlen-sse2-no-bsf.
856         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
857         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
858         Add strnlen support.
859         (USE_AS_STRNLEN): New macro.
860         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
861         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
862         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
863         * sysdeps/x86_64/wcslen.S: New file.
864
865 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
866
867         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
868         XMM-moves are used for copying on small sizes.
869
870 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
871
872         * wcsmbs/Makefile (strop-tests): Add wcschr.
873         * wcsmbs/test-wcschr.c: New file.
874         * string/test-strchr.c: Update.
875         Add wcschr support.
876         (WIDE): New macro.
877
878 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
879
880         * wcsmbs/Makefile (strop-tests): Add wcslen.
881         * wcsmbs/test-wcslen.c: New file.
882         * string/test-strlen.c: Update.
883         Add wcslen support.
884         (WIDE): New macro.
885
886 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
887
888         * po/it.po: Update from translation team.
889
890 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
891
892         * sysdeps/x86_64/wcscmp.S: Update.
893         Fix wrong comparison semantics.
894         wcscmp shall use signed comparison not unsigned.
895         Don't use substraction to avoid overflow bug.
896         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
897         * wcsmbc/wcscmp.c: Likewise.
898         * string/test-strcmp.c: Likewise.
899         Add new tests to check cases with negative values.
900
901 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
902
903         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
904         * sysdeps/x86_64/dla.h: ...here.  New file.
905         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
906         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
907         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
908         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
909         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
910         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
911         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
912         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
913         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
914
915 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
916
917         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
918         __ynl_finite aliases.
919
920 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
921
922         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
923
924         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
925         define DLA_FMA.
926         [DLA_FMA] (EMULV): Use DLA_FMA.
927         [DLA_FMA] (MUL12): Use EMULV.
928         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
929         that are not needed.
930         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
931         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
932         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
933         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
934         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
935         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
936         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
937
938 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
939
940         * math/s_nan.c: Undef __nan.
941         * math/s_nanf.c: Undef __nanf.
942         * math/s_nanl.c: Undef __nanl.
943         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
944         "math_private.h".
945
946 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
947
948         * math/s_catan.c: Add branch predictions.
949         * math/s_catanf.c: Likewise.
950         * math/s_catanh.c: Likewise.
951         * math/s_catanhf.c: Likewise.
952         * math/s_catanhl.c: Likewise.
953         * math/s_catanl.c: Likewise.
954         * math/s_cexp.c: Likewise.
955         * math/s_cexpf.c: Likewise.
956         * math/s_cexpl.c: Likewise.
957         * math/s_clog.c: Likewise.
958         * math/s_clog10.c: Likewise.
959         * math/s_clog10f.c: Likewise.
960         * math/s_clog10l.c: Likewise.
961         * math/s_clogf.c: Likewise.
962         * math/s_clogl.c: Likewise.
963         * math/s_csqrt.c: Likewise.
964         * math/s_csqrtf.c: Likewise.
965         * math/s_csqrtl.c: Likewise.
966         * math/s_ctanf.c: Likewise.
967         * math/s_ctanh.c: Likewise.
968         * math/s_ctanhf.c: Likewise.
969         * math/s_ctanhl.c: Likewise.
970         * math/s_ctanl.c: Likewise.
971
972         * math/math_private.h: Define __nan, __nanf, __nanl.
973         * math/s_cacosh.c: Include <math_private.h>.
974         * math/s_cacoshl.c: Likewise.
975         * math/s_casinh.c: Likewise.
976         * math/s_casinhf.c: Likewise.
977         * math/s_casinhl.c: Likewise.
978         * math/s_ccos.c: Rely entire on ccosh.
979         * math/s_ccosf.c: Rely entire on ccoshf.
980         * math/s_ccosl.c: Rely entirely on ccoshl.
981         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
982         Remove tests for FE_INVALID.
983         * math/s_ccoshf.c: Likewise.
984         * math/s_ccoshl.c: Likewise.
985         * math/s_csin.c: Likewise.
986         * math/s_csinf.c: Likewise.
987         * math/s_csinh.c Likewise.
988         * math/s_csinhf.c: Likewise.
989         * math/s_csinhl.c: Likewise.
990         * math/s_csinl.c: Likewise.
991         * math/s_ctan.c: Likewise.
992         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
993         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
994         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
995
996 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
997
998         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
999         compilation problems.
1000
1001         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
1002         __builtin_expect.
1003
1004 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
1005
1006         * sysdeps/i386/configure.in: Test for -mfma4 option.
1007         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
1008         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
1009         COMMON_CPUID_INDEX_80000001.
1010         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
1011         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
1012         use it if FMA3 is not supported.
1013         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
1014
1015         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
1016         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
1017
1018 2011-10-20  Andreas Schwab  <schwab@redhat.com>
1019
1020         [BZ #12892]
1021         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
1022         it would create a cycle with a link time dependency.
1023
1024 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
1025
1026         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
1027         instruction.
1028         * string/Makefile (strop-tests): Add rawmemchr.
1029         * string/test-rawmemchr.c: New file.
1030
1031         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
1032         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
1033         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
1034         when compiling str{,n}casecmp and when AVX is available.  Hook up
1035         new optimized code in initializers.
1036
1037 2011-10-19  Andreas Schwab  <schwab@redhat.com>
1038
1039         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
1040         __feraiseexcept instead of feraiseexcept.
1041
1042 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
1043
1044         * math/math_private.h: Define defaults for libc_fetestexcept and
1045         libc_feupdateenv.
1046         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
1047         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
1048         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
1049         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
1050         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
1051         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
1052         libc_fetestexcept and libc_feupdateenv.
1053
1054         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
1055         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
1056         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
1057         * sysdeps/x86_64/fpu/math_private.h: Define special version of
1058         libc_feholdexcept_setround.
1059
1060         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
1061         Add s_nearbyint-c and s_nearbyintf-c.
1062         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
1063         nearbyintf inlines.
1064         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
1065         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
1066         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
1067         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
1068
1069         * math/math_private.h: Define defaults for libc_fegetround,
1070         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
1071         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
1072         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
1073         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
1074         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
1075         standard functions.
1076         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
1077         Remove comments and hacks for old compiler versions.
1078         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
1079         libc_fegetround, libc_fesetround, libc_feholdexcept, and
1080         libc_feholdexceptl.
1081
1082 2011-10-18  Andreas Schwab  <schwab@redhat.com>
1083
1084         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
1085         (__feraiseexcept_renamed): Add __NTH.
1086         (feraiseexcept): Add __NTH.  Rename local variables to fix
1087         namespace violations.
1088
1089 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
1090
1091         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
1092
1093         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
1094
1095         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
1096         recently added interfaces.
1097         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
1098
1099         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
1100         about macro parameter expansion.
1101
1102         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
1103         __NO_MATH_INLINES is defined.  Cleanups.
1104
1105         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
1106         and __floorf is target has SSE4.1.
1107         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
1108         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
1109         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
1110         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
1111
1112         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
1113         name.
1114         (floorf): Likewise.
1115
1116         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
1117
1118 2011-10-17  Andreas Schwab  <schwab@redhat.com>
1119
1120         * misc/sys/cdefs.h: Fix last change.
1121
1122         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
1123         database lookup.
1124
1125 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
1126
1127         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
1128
1129         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
1130         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
1131         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
1132         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
1133         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
1134         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
1135         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
1136         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
1137         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
1138         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
1139         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
1140         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
1141         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
1142         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
1143         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
1144         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
1145         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
1146         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
1147         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
1148         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
1149         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
1150         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
1151
1152         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
1153         ceil, ceilf, floor, floorf.
1154
1155         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
1156         Perform IRELATIVE relocations last.
1157
1158         * elf/do-rel.h: Add another parameter nrelative, replacing the
1159         local variable with the same name.  Change name of the function
1160         to end in Rel or Rela (uppercase).
1161         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
1162         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
1163         elf_dynamic_do_##reloc function.
1164
1165 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
1166
1167         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
1168         is sufficient, at least on modern CPUs.
1169
1170         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
1171
1172         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
1173         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
1174
1175         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
1176         __expl_finite.
1177         * math/bits/math-finite.h: Add entries for exp.
1178         * math/e_expl.c: Add __*_finite alias.
1179         * sysdeps/i386/fpu/e_exp.S: Likewise.
1180         * sysdeps/i386/fpu/e_expf.S: Likewise.
1181         * sysdeps/i386/fpu/e_expl.c: Likewise.
1182         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
1183         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
1184         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
1185         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
1186         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
1187         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1188         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1189
1190         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
1191         is sufficient, at least on modern CPUs.
1192
1193         * ctype/ctype-info.c (__ctype_init): Define.
1194         * include/ctype.h (__ctype_init): Declare.
1195         (__ctype_b_loc): The variable is always initialized.
1196         (__ctype_toupper_loc): Likewise.
1197         (__ctype_tolower_loc): Likewise.
1198         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
1199         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
1200
1201 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
1202
1203         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
1204
1205         * configure.in: Also look in $cxxmachine/include for C++ system
1206         headers.
1207
1208 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1209
1210         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
1211         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
1212         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
1213         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
1214         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
1215         (USE_AS_WMEMCMP): New macro.
1216         Fixing indents.
1217         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
1218         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
1219         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
1220         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
1221         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
1222         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
1223         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
1224         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
1225         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
1226         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
1227         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
1228         (USE_AS_WMEMCMP): New macro.
1229         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
1230         * sysdeps/string/test-memcmp.c: Update.
1231         Fix simple_wmemcmp.
1232         Add new tests.
1233         * wcsmbs/wmemcmp.c: Update.
1234         (WMEMCMP): New macro.
1235         Fix overflow bug.
1236
1237 2011-10-12  Andreas Jaeger  <aj@suse.de>
1238
1239         [BZ #13268]
1240         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
1241
1242 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
1243
1244         * libio/iofwide.c (do_length): Avoid warning.
1245
1246         * ctype/ctype.h (__isctype_f): Add missing __THROW.
1247
1248 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
1249
1250         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
1251
1252         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
1253         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
1254         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
1255         * sysdeps/i386/i686/fpu/e_log.S: New file.
1256         * sysdeps/i386/i686/fpu/e_logf.S: New file.
1257         * sysdeps/i386/i686/fpu/e_logl.S: New file.
1258
1259         * ctype/ctype.h: Add support for inlined isXXX functions when
1260         compiling C++ code.
1261
1262 2011-10-14  Andreas Schwab  <schwab@redhat.com>
1263
1264         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
1265
1266         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
1267
1268 2011-10-13  Roland McGrath  <roland@hack.frob.com>
1269
1270         [BZ #13291]
1271         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
1272
1273 2011-10-13  Andreas Schwab  <schwab@redhat.com>
1274
1275         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
1276         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
1277         feraiseexcept.
1278
1279         * sysdeps/x86_64/memrchr.S: Check for zero size.
1280
1281         * string/stratcliff.c: Add memrchr tests.
1282
1283 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1284
1285         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
1286         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
1287         rawmemchr-sse2 rawmemchr-sse2-bsf.
1288         * sysdeps/i386/i686/multiarch/memchr.S: New file.
1289         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
1290         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
1291         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
1292         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
1293         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
1294         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
1295         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
1296         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
1297         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
1298         * string/memrchr.c (MEMRCHR): New macro.
1299
1300 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
1301
1302         Add integration with gcc's -ffinite-math-only and optimize wrapper
1303         functions in libm.
1304         * Versions.def: Define GLIBC_2.15 version for libm.
1305         * math/Makefile (headers): Add bits/math-finite.h.
1306         * math/bits/math-finite.h: New file.
1307         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
1308         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
1309         * math/e_acoshl.c: Add __*_finite alias.
1310         * math/e_acosl.c: Likewise.
1311         * math/e_asinl.c: Likewise.
1312         * math/e_atan2l.c: Likewise.
1313         * math/e_atanhl.c: Likewise.
1314         * math/e_coshl.c: Likewise.
1315         * math/e_exp10.c: Likewise.
1316         * math/e_exp10f.c: Likewise.
1317         * math/e_exp10l.c: Likewise.
1318         * math/e_exp2l.c: Likewise.
1319         * math/e_fmodl.c: Likewise.
1320         * math/e_gammal_r.c: Likewise.
1321         * math/e_hypotl.c: Likewise.
1322         * math/e_j0l.c: Likewise.
1323         * math/e_j1l.c: Likewise.
1324         * math/e_jnl.c: Likewise.
1325         * math/e_lgammal_r.c: Likewise.
1326         * math/e_log10l.c: Likewise.
1327         * math/e_log2l.c: Likewise.
1328         * math/e_logl.c: Likewise.
1329         * math/e_powl.c: Likewise.
1330         * math/e_sinhl.c: Likewise.
1331         * math/e_sqrtl.c: Likewise.
1332         * math/e_scalb.c: Completely rewritten and optimized.
1333         * math/e_scalbf.c: Likewise.
1334         * math/e_scalbl.c: Likewise.
1335         * math/w_acos.c: Likewise.
1336         * math/w_acosf.c: Likewise.
1337         * math/w_acosl.c: Likewise.
1338         * math/w_acosh.c: Likewise.
1339         * math/w_acoshf.c: Likewise.
1340         * math/w_acoshl.c: Likewise.
1341         * math/w_asin.c: Likewise.
1342         * math/w_asinf.c: Likewise.
1343         * math/w_asinl.c: Likewise.
1344         * math/w_atan2.c: Likewise.
1345         * math/w_atan2f.c: Likewise.
1346         * math/w_atan2l.c: Likewise.
1347         * math/w_atanh.c: Likewise.
1348         * math/w_atanhf.c: Likewise.
1349         * math/w_atanhl.c: Likewise.
1350         * math/w_exp10.c: Likewise.
1351         * math/w_exp10f.c: Likewise.
1352         * math/w_exp10l.c: Likewise.
1353         * math/w_fmod.c: Likewise.
1354         * math/w_fmodf.c: Likewise.
1355         * math/w_fmodl.c: Likewise.
1356         * math/w_j0.c: Likewise.
1357         * math/w_j0f.c: Likewise.
1358         * math/w_j0l.c: Likewise.
1359         * math/w_j1.c: Likewise.
1360         * math/w_j1f.c: Likewise.
1361         * math/w_j1l.c: Likewise.
1362         * math/w_jn.c: Likewise.
1363         * math/w_jnf.c: Likewise.
1364         * math/w_log.c: Likewise.
1365         * math/w_logf.c: Likewise.
1366         * math/w_logl.c: Likewise.
1367         * math/w_log10.c: Likewise.
1368         * math/w_log10f.c: Likewise.
1369         * math/w_log10l.c: Likewise.
1370         * math/w_log2.c: Likewise.
1371         * math/w_log2f.c: Likewise.
1372         * math/w_log2l.c: Likewise.
1373         * math/w_pow.c: Likewise.
1374         * math/w_powf.c: Likewise.
1375         * math/w_powl.c: Likewise.
1376         * math/w_remainder.c: Likewise.
1377         * math/w_remainderf.c: Likewise.
1378         * math/w_remainderl.c: Likewise.
1379         * math/w_scalb.c: Likewise.
1380         * math/w_scalbf.c: Likewise.
1381         * math/w_scalbl.c: Likewise.
1382         * math/w_sqrt.c: Likewise.
1383         * math/w_sqrtf.c: Likewise.
1384         * math/w_sqrtl.c: Likewise.
1385         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
1386         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
1387         used.
1388         * math/math_private.h: Declare __kernel_standard_f.
1389         * math/w_cosh.c: Remove cruft and optimize a bit.
1390         * math/w_coshf.c: Likewise.
1391         * math/w_coshl.c: Likewise.
1392         * math/w_exp2.c: Likewise.
1393         * math/w_exp2f.c: Likewise.
1394         * math/w_exp2l.c: Likewise.
1395         * math/w_hypot.c: Likewise.
1396         * math/w_hypotf.c: Likewise.
1397         * math/w_hypotl.c: Likewise.
1398         * math/w_lgamma.c: Likewise.
1399         * math/w_lgamma_r.c: Likewise.
1400         * math/w_lgammaf.c: Likewise.
1401         * math/w_lgammaf_r.c: Likewise.
1402         * math/w_lgammal.c: Likewise.
1403         * math/w_lgammal_r.c: Likewise.
1404         * math/w_sinh.c: Likewise.
1405         * math/w_sinhf.c: Likewise.
1406         * math/w_sinhl.c: Likewise.
1407         * math/w_tgamma.c: Likewise.
1408         * math/w_tgammaf.c: Likewise.
1409         * math/w_tgammal.c: Likewise.
1410         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
1411         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
1412         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
1413         Minor optimizations.  Pretty printing.  Remove cruft.
1414         * sysdeps/i386/fpu/e_acosf.S: Likewise.
1415         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1416         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1417         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1418         * sysdeps/i386/fpu/e_acosl.c: Likewise.
1419         * sysdeps/i386/fpu/e_asin.S: Likewise.
1420         * sysdeps/i386/fpu/e_asinf.S: Likewise.
1421         * sysdeps/i386/fpu/e_atan2.S: Likewise.
1422         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
1423         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
1424         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1425         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1426         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1427         * sysdeps/i386/fpu/e_exp10.S: Likewise.
1428         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
1429         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
1430         * sysdeps/i386/fpu/e_exp2.S: Likewise.
1431         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
1432         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
1433         * sysdeps/i386/fpu/e_fmod.S: Likewise.
1434         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
1435         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
1436         * sysdeps/i386/fpu/e_hypot.S: Likewise.
1437         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
1438         * sysdeps/i386/fpu/e_log.S: Likewise.
1439         * sysdeps/i386/fpu/e_log10.S: Likewise.
1440         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1441         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1442         * sysdeps/i386/fpu/e_log2.S: Likewise.
1443         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1444         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1445         * sysdeps/i386/fpu/e_logf.S: Likewise.
1446         * sysdeps/i386/fpu/e_logl.S: Likewise.
1447         * sysdeps/i386/fpu/e_pow.S: Likewise.
1448         * sysdeps/i386/fpu/e_powf.S: Likewise.
1449         * sysdeps/i386/fpu/e_powl.S: Likewise.
1450         * sysdeps/i386/fpu/e_remainder.S: Likewise.
1451         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
1452         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
1453         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1454         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1455         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1456         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
1457         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
1458         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
1459         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
1460         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
1461         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
1462         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
1463         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
1464         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
1465         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
1466         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
1467         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
1468         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
1469         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
1470         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
1471         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1472         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
1473         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
1474         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
1475         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1476         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
1477         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1478         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1479         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
1480         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
1481         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
1482         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
1483         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
1484         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
1485         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
1486         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
1487         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
1488         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
1489         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
1490         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
1491         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
1492         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
1493         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
1494         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
1495         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
1496         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
1497         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
1498         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
1499         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
1500         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
1501         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
1502         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
1503         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
1504         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
1505         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
1506         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
1507         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
1508         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
1509         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
1510         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
1511         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1512         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
1513         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
1514         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1515         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
1516         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
1517         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
1518         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
1519         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
1520         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
1521         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
1522         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
1523         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
1524         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
1525         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
1526         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
1527         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
1528         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
1529         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
1530         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
1531         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
1532         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
1533         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
1534         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
1535         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
1536         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
1537         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
1538         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
1539         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
1540         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
1541         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
1542         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
1543         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
1544         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
1545         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
1546         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
1547         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
1548         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
1549         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
1550         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
1551         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
1552         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
1553         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1554         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
1555         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
1556         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
1557         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
1558         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
1559         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
1560         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
1561         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
1562         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
1563         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1564         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1565         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1566         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1567         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
1568         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1569         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
1570         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
1571         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
1572         (__isnanf): Likewise.
1573         (__isinf_ns): Likewise.
1574         (__isinf_nsf): Likewise.
1575         (__finite): Likewise.
1576         (__finitef): Likewise.
1577         (__ieee754_sqrt): Define as macro.
1578         (__ieee754_sqrtf): Define as macro.
1579         (__ieee754_sqrtl): Define as macro.
1580         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
1581         inlined copy.
1582         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
1583         __FINITE_MATH_ONLY__ consistent.
1584         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
1585
1586 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
1587
1588         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
1589         of rawmemchr.
1590
1591         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
1592
1593 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
1594
1595         * po/ja.po: Update from translation team.
1596
1597 2011-10-08  Roland McGrath  <roland@hack.frob.com>
1598
1599         * locale/programs/locarchive.c (prepare_address_space): New function.
1600         (create_archive, enlarge_archive, open_archive): Use it.
1601
1602         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
1603         inside [SHARED], where it is used.
1604
1605         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
1606
1607         * nss/getent.c (netgroup_keys): Remove unused variable.
1608         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
1609
1610 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
1611
1612         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
1613         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
1614         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
1615         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
1616         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
1617         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
1618         * math/Makefile (libm-calls): Add s_isinf_ns.
1619         * math/divtc3.c: Use __isinf_nsl instead of isinf.
1620         * math/multc3.c: Likewise.
1621         * math/s_casin.c: Likewise.
1622         * math/s_casinf.c: Likewise.
1623         * math/s_casinl.c: Likewise.
1624         * math/s_ccos.c: Likewise.
1625         * math/s_ccosf.c: Likewise.
1626         * math/s_ccosl.c: Likewise.
1627         * math/s_ctan.c: Likewise.
1628         * math/s_ctanf.c: Likewise.
1629         * math/s_ctanh.c: Likewise.
1630         * math/s_ctanhf.c: Likewise.
1631         * math/s_ctanhl.c: Likewise.
1632         * math/s_ctanl.c: Likewise.
1633         * math/w_fmod.c: Likewise.
1634         * math/w_fmodf.c: Likewise.
1635         * math/w_fmodl.c: Likewise.
1636         * math/w_remainder.c: Likewise.
1637         * math/w_remainderf.c: Likewise.
1638         * math/w_remainderl.c: Likewise.
1639         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
1640         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
1641         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
1642         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
1643         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
1644         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
1645         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
1646         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
1647
1648         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
1649         of the number.
1650         * stdio-common/printf_fphex.c: Likewise.
1651         * stdio-common/printf_size.c: Likewise.
1652
1653         * math/e_exp10.c: Include math_private.h using <...> not "...".
1654         * math/e_exp10f.c: Likewise.
1655         * math/e_exp10l.c: Likewise.
1656         * math/e_exp2l.c: Likewise.
1657         * math/e_j0l.c: Likewise.
1658         * math/e_j1l.c: Likewise.
1659         * math/e_jnl.c: Likewise.
1660         * math/e_lgammal_r.c: Likewise.
1661         * math/e_rem_pio2l.c: Likewise.
1662         * math/e_scalb.c: Likewise.
1663         * math/e_scalbf.c: Likewise.
1664         * math/e_scalbl.c: Likewise.
1665         * math/k_cosl.c: Likewise.
1666         * math/k_sinl.c: Likewise.
1667         * math/k_tanl.c: Likewise.
1668         * math/s_cacoshf.c: Likewise.
1669         * math/s_catan.c: Likewise.
1670         * math/s_catanf.c: Likewise.
1671         * math/s_catanh.c: Likewise.
1672         * math/s_catanhf.c: Likewise.
1673         * math/s_catanhl.c: Likewise.
1674         * math/s_catanl.c: Likewise.
1675         * math/s_ccosh.c: Likewise.
1676         * math/s_ccoshf.c: Likewise.
1677         * math/s_ccoshl.c: Likewise.
1678         * math/s_cexp.c: Likewise.
1679         * math/s_cexpf.c: Likewise.
1680         * math/s_cexpl.c: Likewise.
1681         * math/s_clog.c: Likewise.
1682         * math/s_clog10.c: Likewise.
1683         * math/s_clog10f.c: Likewise.
1684         * math/s_clog10l.c: Likewise.
1685         * math/s_clogf.c: Likewise.
1686         * math/s_clogl.c: Likewise.
1687         * math/s_csin.c: Likewise.
1688         * math/s_csinf.c: Likewise.
1689         * math/s_csinh.c: Likewise.
1690         * math/s_csinhf.c: Likewise.
1691         * math/s_csinhl.c: Likewise.
1692         * math/s_csinl.c: Likewise.
1693         * math/s_csqrt.c: Likewise.
1694         * math/s_csqrtf.c: Likewise.
1695         * math/s_csqrtl.c: Likewise.
1696         * math/s_ctan.c: Likewise.
1697         * math/s_ctanf.c: Likewise.
1698         * math/s_ctanh.c: Likewise.
1699         * math/s_ctanhf.c: Likewise.
1700         * math/s_ctanhl.c: Likewise.
1701         * math/s_ctanl.c: Likewise.
1702         * math/s_ldexp.c: Likewise.
1703         * math/s_ldexpf.c: Likewise.
1704         * math/s_ldexpl.c: Likewise.
1705         * math/s_significand.c: Likewise.
1706         * math/s_significandf.c: Likewise.
1707         * math/s_significandl.c: Likewise.
1708         * math/w_acos.c: Likewise.
1709         * math/w_acosf.c: Likewise.
1710         * math/w_acosh.c: Likewise.
1711         * math/w_acoshf.c: Likewise.
1712         * math/w_acoshl.c: Likewise.
1713         * math/w_acosl.c: Likewise.
1714         * math/w_asin.c: Likewise.
1715         * math/w_asinf.c: Likewise.
1716         * math/w_asinl.c: Likewise.
1717         * math/w_atan2.c: Likewise.
1718         * math/w_atan2f.c: Likewise.
1719         * math/w_atan2l.c: Likewise.
1720         * math/w_atanh.c: Likewise.
1721         * math/w_atanhf.c: Likewise.
1722         * math/w_atanhl.c: Likewise.
1723         * math/w_cosh.c: Likewise.
1724         * math/w_coshf.c: Likewise.
1725         * math/w_coshl.c: Likewise.
1726         * math/w_dremf.c: Likewise.
1727         * math/w_exp10.c: Likewise.
1728         * math/w_exp10f.c: Likewise.
1729         * math/w_exp10l.c: Likewise.
1730         * math/w_exp2.c: Likewise.
1731         * math/w_exp2f.c: Likewise.
1732         * math/w_fmod.c: Likewise.
1733         * math/w_fmodf.c: Likewise.
1734         * math/w_fmodl.c: Likewise.
1735         * math/w_hypot.c: Likewise.
1736         * math/w_hypotf.c: Likewise.
1737         * math/w_hypotl.c: Likewise.
1738         * math/w_j0.c: Likewise.
1739         * math/w_j0f.c: Likewise.
1740         * math/w_j0l.c: Likewise.
1741         * math/w_j1.c: Likewise.
1742         * math/w_j1f.c: Likewise.
1743         * math/w_j1l.c: Likewise.
1744         * math/w_jn.c: Likewise.
1745         * math/w_jnf.c: Likewise.
1746         * math/w_jnl.c: Likewise.
1747         * math/w_lgamma.c: Likewise.
1748         * math/w_lgamma_r.c: Likewise.
1749         * math/w_lgammaf.c: Likewise.
1750         * math/w_lgammaf_r.c: Likewise.
1751         * math/w_lgammal.c: Likewise.
1752         * math/w_lgammal_r.c: Likewise.
1753         * math/w_log.c: Likewise.
1754         * math/w_log10.c: Likewise.
1755         * math/w_log10f.c: Likewise.
1756         * math/w_log10l.c: Likewise.
1757         * math/w_log2.c: Likewise.
1758         * math/w_log2f.c: Likewise.
1759         * math/w_log2l.c: Likewise.
1760         * math/w_logf.c: Likewise.
1761         * math/w_logl.c: Likewise.
1762         * math/w_pow.c: Likewise.
1763         * math/w_powf.c: Likewise.
1764         * math/w_powl.c: Likewise.
1765         * math/w_remainder.c: Likewise.
1766         * math/w_remainderf.c: Likewise.
1767         * math/w_remainderl.c: Likewise.
1768         * math/w_scalb.c: Likewise.
1769         * math/w_scalbf.c: Likewise.
1770         * math/w_scalbl.c: Likewise.
1771         * math/w_sinh.c: Likewise.
1772         * math/w_sinhf.c: Likewise.
1773         * math/w_sinhl.c: Likewise.
1774         * math/w_sqrt.c: Likewise.
1775         * math/w_sqrtf.c: Likewise.
1776         * math/w_sqrtl.c: Likewise.
1777         * math/w_tgamma.c: Likewise.
1778         * math/w_tgammaf.c: Likewise.
1779         * math/w_tgammal.c: Likewise.
1780
1781         * po/ja.po: Update from translation team.
1782
1783 2011-09-29  Andreas Jaeger  <aj@suse.de>
1784
1785         [BZ #13179]
1786         * sunrpc/netname.c (netname2host): Fix logic.
1787
1788         [BZ #6779]
1789         [BZ #6783]
1790         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
1791         correctly.
1792         * math/w_remainder.c (__remainder): Likewise.
1793         * math/w_remainderf.c (__remainderf): Likewise.
1794         * math/libm-test.inc (remainder_test): Add test cases.
1795
1796 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1797
1798         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
1799         sdiv_qrnnd.
1800
1801 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
1802
1803         * string/test-memcmp.c: Avoid unncessary #defines.
1804         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
1805
1806 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1807
1808         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
1809         Use new sse2 version for core i3 - i7 as it's faster
1810         than sse42 version.
1811         (bit_Prefer_PMINUB_for_stringop): New.
1812         * sysdeps/x86_64/rawmemchr.S: Update.
1813         Replace with faster SSE2 version.
1814         * sysdeps/x86_64/memrchr.S: New file.
1815         * sysdeps/x86_64/memchr.S: Update.
1816         Replace with faster SSE2 version.
1817
1818 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
1819
1820         * elf/dl-load.c (lose): Add cast to avoid warning.
1821
1822 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
1823
1824         * po/ca.po: Update from translation team.
1825
1826         * inet/getnetgrent_r.c: Hook up nscd.
1827         * nscd/Makefile (routines): Add nscd_netgroup.
1828         (nscd-modules): Add netgroupcache.
1829         (CFLAGS-netgroupcache.c): Define.
1830         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
1831         (cache_search): Add const to second parameter.
1832         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
1833         INNETGR.
1834         (dbs): Add netgrdb entry.
1835         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
1836         (verify_persistent_db): Handle netgrdb.
1837         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
1838         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
1839         GETFDNETGR.
1840         (netgroup_response_header): Define.
1841         (innetgroup_response_header): Define.
1842         (datahead): Add netgroup_response_header and innetgroup_response_header
1843         elements.
1844         * nscd/nscd.conf: Add entries for netgroup cache.
1845         * nscd/nscd.h (dbtype): Add netgrdb.
1846         (_PATH_NSCD_NETGROUP_DB): Define.
1847         (netgroup_iov_disabled): Declare.
1848         (xmalloc, xcalloc, xrealloc): Move declarations here.
1849         (cache_search): Adjust prototype.
1850         Add netgroup-related prototypes.
1851         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
1852         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
1853         (__nscd_innetgr): Declare.
1854         * nscd/selinux.c (perms): Use access_vector_t as element type and
1855         add netgroup-related initializers.
1856         * nscd/netgroupcache.c: New file.
1857         * nscd/nscd_netgroup.c: New file.
1858         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
1859         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
1860         For four parameters use innetgr.
1861         * nss/nss_files/files-init.c: Add definition and callback for netgr.
1862         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
1863         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
1864         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
1865
1866         * nscd/connections.c (register_traced_file): Don't register file
1867         for disabled databases.
1868
1869 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
1870
1871         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
1872
1873         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
1874         from tree and freeing node.
1875
1876 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
1877
1878         * nss/nsswitch.c (__nss_database_lookup): Handle
1879         nss_parse_service_list out of memory case.
1880
1881 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
1882
1883         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
1884         out of memory case.
1885
1886 2011-10-04  Andreas Schwab  <schwab@redhat.com>
1887
1888         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
1889         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
1890         pass it down.
1891         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
1892         elf_machine_rela, elf_machine_lazy_rel.
1893         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
1894         (ELF_DYNAMIC_DO_REL): Likewise.
1895         (ELF_DYNAMIC_DO_RELA): Likewise.
1896         (ELF_DYNAMIC_RELOCATE): Likewise.
1897         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
1898         to ELF_DYNAMIC_DO_REL.
1899         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
1900         (dl_main): In trace mode always set __RTLD_NOIFUNC.
1901         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
1902         elf_machine_rela.
1903         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
1904         skip_ifunc, don't call ifunc function if non-zero.
1905         (elf_machine_rela): Likewise.
1906         (elf_machine_lazy_rel): Likewise.
1907         (elf_machine_lazy_rela): Likewise.
1908         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
1909         (elf_machine_lazy_rel): Likewise.
1910         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
1911         Likewise.
1912         (elf_machine_lazy_rel): Likewise.
1913         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
1914         Likewise.
1915         (elf_machine_lazy_rel): Likewise.
1916         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
1917         (elf_machine_lazy_rel): Likewise.
1918         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1919         (elf_machine_lazy_rel): Likewise.
1920         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1921         (elf_machine_lazy_rel): Likewise.
1922         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
1923         (elf_machine_lazy_rel): Likewise.
1924         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
1925         (elf_machine_lazy_rel): Likewise.
1926         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1927         (elf_machine_lazy_rel): Likewise.
1928
1929 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
1930
1931         * nss/nss_files/files-init.c (_nss_files_init): Use static
1932         initialization for all the *_traced_file variables.
1933
1934 2011-09-28  Andreas Schwab  <schwab@redhat.com>
1935
1936         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
1937
1938 2011-09-27  Roland McGrath  <roland@hack.frob.com>
1939
1940         [BZ #13226]
1941         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
1942
1943 2011-09-27  Andreas Schwab  <schwab@redhat.com>
1944
1945         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
1946         Reread the line before reparsing it.
1947
1948 2011-09-26  Andreas Schwab  <schwab@redhat.com>
1949
1950         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1951
1952 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
1953             Maxim Kuvyrkov  <maxim@codesourcery.com>
1954             Joseph Myers  <joseph@codesourcery.com>
1955
1956         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
1957         if needed for __stack_chk_guard.
1958
1959 2011-09-19  Roland McGrath  <roland@hack.frob.com>
1960
1961         * sysdeps/posix/spawni.c (script_execute): Always define it.
1962         It will be optimized away if unused.
1963         (maybe_script_execute): New function.
1964         (__spawni): Call it.
1965
1966         * Makerules: Don't include tls.make.
1967         (config-tls): Always set to thread.
1968         * tls.make.c: File removed.
1969
1970 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
1971
1972         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
1973         * config.make.in (CPPFLAGS-config): New substituted variable.
1974
1975 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
1976
1977         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
1978
1979         [BZ #13192]
1980         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
1981         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
1982
1983 2011-09-15  Roland McGrath  <roland@hack.frob.com>
1984
1985         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
1986         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
1987         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
1988         (CALL_FAIL): Likewise.
1989         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
1990         (CALL_FAIL): Macro removed.
1991         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
1992
1993 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
1994
1995         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
1996         for __FINITE_MATH_ONLY__ == 1.
1997
1998 2011-09-15  Andreas Schwab  <schwab@redhat.com>
1999
2000         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
2001         __ieee754_sqrt instead of sqrt.
2002         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
2003         __ieee754_sqrtf instead of sqrtf.
2004         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
2005         __floorf instead of floorf.
2006         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
2007         __floorf, __truncf instead of floorf, truncf.
2008
2009 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
2010
2011         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
2012
2013         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
2014         __extern_always_inline.
2015         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
2016         32-bit.
2017
2018 2011-09-14  Andreas Schwab  <schwab@redhat.com>
2019
2020         * elf/rtld.c (dl_main): Also relocate in dependency order when
2021         doing symbol dependency testing.
2022
2023 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
2024
2025         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2026         Always define `refsym'.
2027
2028 2011-09-13  Andreas Schwab  <schwab@redhat.com>
2029
2030         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
2031         (__FD_ELT): Renamed from __FDELT.
2032         * misc/bits/select2.h (__FD_ELT): Likewise.
2033         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
2034         __FD_MASK instead of __FDELT, __FDMASK.
2035         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
2036         Likewise.
2037         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
2038         Likewise.
2039
2040         * elf/Makefile (gen-ldd): Fix pattern.
2041
2042         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
2043         (init_tls): Likewise.
2044
2045 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
2046
2047         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
2048
2049 2011-09-12  Andreas Schwab  <schwab@redhat.com>
2050
2051         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
2052         `struct cmsghdr *' instead of `void *'.
2053         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
2054         Likewise.
2055
2056 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
2057
2058         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
2059         if non-absolute.
2060         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
2061         ldd_rewrite_script.
2062
2063 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
2064
2065         * configure.in: Remove --with-tls option.
2066         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
2067         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
2068         out in case it is missing.
2069         * sysdeps/ia64/elf/configure.in: Likewise.
2070         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
2071         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
2072         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
2073         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
2074         * sysdeps/sh/elf/configure.in: Likewise.
2075         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
2076         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
2077         * sysdeps/x86_64/elf/configure.in: Likewise.
2078         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
2079         * sysdeps/mach/hurd/tls.h: Likewise.
2080
2081         [BZ #13067]
2082         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
2083
2084         [BZ #13090]
2085         * configure.in: Fix use of AC_INIT.
2086
2087         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
2088
2089 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
2090
2091         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
2092         __set_errno.
2093         * malloc/hooks.c: Likewise.
2094
2095         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
2096         variables statically.
2097         (narenas): Initialize.
2098         (list_lock): Initialize.
2099         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
2100         initializtion of main_arena and list_lock.  Small cleanups.
2101         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
2102         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
2103         Add initializers to main_arena and mp_.
2104         (malloc_state): Remove pagesize member.  Change all users to use
2105         GLRO(dl_pagesize).
2106
2107         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
2108         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
2109         is always initialized.
2110
2111         * malloc/malloc.c: Removed unused configurations and dead code.
2112         * malloc/arena.c: Likewise.
2113         * malloc/hooks.c: Likewise.
2114         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
2115
2116         * include/tls.h: Removed.  USE___THREAD must always be defined.
2117         * bits/libc-tsd.h: Don't handle !USE___THREAD.
2118         * elf/dl-libc.c: Likewise.
2119         * elf/dl-tsd.c: Likewise.
2120         * include/errno.h: Likewise.
2121         * include/netdb.h: Likewise.
2122         * include/resolv.h: Likewise.
2123         * inet/herrno-loc.c: Likewise.
2124         * inet/herrno.c: Likewise.
2125         * malloc/arena.c: Likewise.
2126         * malloc/hooks.c: Likewise.
2127         * malloc/malloc.c: Likewise.
2128         * resolv/res-state.c: Likewise.
2129         * resolv/res_libc.c: Likewise.
2130         * sysdeps/i386/dl-machine.h: Likewise.
2131         * sysdeps/ia64/dl-machine.h: Likewise.
2132         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
2133         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
2134         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2135         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2136         * sysdeps/sh/dl-machine.h: Likewise.
2137         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2138         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2139         * sysdeps/unix/i386/sysdep.S: Likewise.
2140         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2141         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
2142         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
2143         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
2144         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2145         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2146         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
2147         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2148         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
2149         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2150         * sysdeps/unix/x86_64/sysdep.S: Likewise.
2151         * sysdeps/x86_64/dl-machine.h: Likewise.
2152         * tls.make.c: Likewise.
2153
2154         * configure.in: Remove --with-__thread option.  Make tests for
2155         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
2156         tls_model attribute fail if no support is available.  Remove
2157         USE_IN_LIBIO.
2158         * Makeconfig: Adjust for dropped configure option.  All features are
2159         now mandatory.
2160         * Makerules: Likewise.
2161         * Versions.def: Likewise.
2162         * argp/argp-fmtstream.c: Likewise.
2163         * argp/argp-fmtstream.h: Likewise.
2164         * argp/argp-help.c: Likewise.
2165         * assert/assert.c: Likewise.
2166         * config.h.in: Likewise.
2167         * config.make.in: Likewise.
2168         * configure: Likewise.
2169         * configure.in: Likewise.
2170         * csu/Versions: Likewise.
2171         * csu/init.c: Likewise.
2172         * elf/tst-audit2.c: Likewise.
2173         * elf/tst-tls10.c: Likewise.
2174         * elf/tst-tls10.h: Likewise.
2175         * elf/tst-tls11.c: Likewise.
2176         * elf/tst-tls12.c: Likewise.
2177         * elf/tst-tls14.c: Likewise.
2178         * elf/tst-tlsmod11.c: Likewise.
2179         * elf/tst-tlsmod12.c: Likewise.
2180         * elf/tst-tlsmod13.c: Likewise.
2181         * elf/tst-tlsmod13a.c: Likewise.
2182         * elf/tst-tlsmod14a.c: Likewise.
2183         * elf/tst-tlsmod15b.c: Likewise.
2184         * elf/tst-tlsmod16a.c: Likewise.
2185         * elf/tst-tlsmod16b.c: Likewise.
2186         * elf/tst-tlsmod7.c: Likewise.
2187         * elf/tst-tlsmod8.c: Likewise.
2188         * elf/tst-tlsmod9.c: Likewise.
2189         * gmon/gmon.c: Likewise.
2190         * grp/fgetgrent_r.c: Likewise.
2191         * grp/putgrent.c: Likewise.
2192         * hurd/fopenport.c: Likewise.
2193         * include/libc-symbols.h: Likewise.
2194         * include/tls.h: Likewise.
2195         * intl/gettextP.h: Likewise.
2196         * intl/loadinfo.h: Likewise.
2197         * locale/global-locale.c: Likewise.
2198         * locale/localeinfo.h: Likewise.
2199         * mach/devstream.c: Likewise.
2200         * malloc/arena.c: Likewise.
2201         * malloc/set-freeres.c: Likewise.
2202         * misc/err.c: Likewise.
2203         * misc/getttyent.c: Likewise.
2204         * misc/mntent_r.c: Likewise.
2205         * posix/getopt.c: Likewise.
2206         * posix/wordexp.c: Likewise.
2207         * pwd/fgetpwent_r.c: Likewise.
2208         * resolv/Versions: Likewise.
2209         * resolv/res_hconf.c: Likewise.
2210         * shadow/fgetspent_r.c: Likewise.
2211         * shadow/putspent.c: Likewise.
2212         * stdio-common/printf_fphex.c: Likewise.
2213         * stdio-common/tmpfile.c: Likewise.
2214         * stdlib/abort.c: Likewise.
2215         * stdlib/fmtmsg.c: Likewise.
2216         * sunrpc/auth_unix.c: Likewise.
2217         * sunrpc/clnt_perr.c: Likewise.
2218         * sunrpc/clnt_tcp.c: Likewise.
2219         * sunrpc/clnt_udp.c: Likewise.
2220         * sunrpc/clnt_unix.c: Likewise.
2221         * sunrpc/openchild.c: Likewise.
2222         * sunrpc/svc_simple.c: Likewise.
2223         * sunrpc/svc_tcp.c: Likewise.
2224         * sunrpc/svc_udp.c: Likewise.
2225         * sunrpc/svc_unix.c: Likewise.
2226         * sunrpc/xdr.c: Likewise.
2227         * sunrpc/xdr_array.c: Likewise.
2228         * sunrpc/xdr_rec.c: Likewise.
2229         * sunrpc/xdr_ref.c: Likewise.
2230         * sunrpc/xdr_stdio.c: Likewise.
2231
2232 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
2233
2234         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
2235
2236 2011-07-03  Andreas Jaeger  <aj@suse.de>
2237
2238         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
2239         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
2240         regenerate with gen-libm-tests.pl.
2241
2242 2010-05-12  Petr Baudis  <pasky@suse.cz>
2243
2244         [BZ #11589]
2245         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
2246         around j0() zero points by switching to j1().
2247         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
2248         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2249         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
2250         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2251
2252 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
2253
2254         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
2255         instead of 0.
2256         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
2257         instead of 0.                              .
2258         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2259         Patch in part by Pavel Roskin <proski@gnu.org>.
2260
2261         [BZ #13138]
2262         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
2263         realloc.
2264         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
2265         Free memory block if necessary.
2266
2267         [BZ #12847]
2268         * libio/genops.c (INTDEF): For string streams the _lock pointer can
2269         be NULL.  Don't lock in this case.
2270
2271 2011-09-09  Roland McGrath  <roland@hack.frob.com>
2272
2273         * elf/elf.h (ELFOSABI_GNU): New macro.
2274         (ELFOSABI_LINUX): Define to that.
2275
2276 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
2277
2278         * string/strncat.c (strncat): Undef the symbol in case it has been
2279         defined in bits/string.h.
2280
2281 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
2282
2283         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
2284
2285         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
2286         link map.
2287
2288 2011-08-17  Andreas Jaeger  <aj@suse.de>
2289
2290         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
2291
2292 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
2293             Ian Lance Taylor  <iant@google.com>
2294
2295         * math/libm-test.inc (lround_test): New testcase.
2296         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
2297
2298 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
2299
2300         * Makefile: Remove support for automatic cvs check-ins.
2301         * Makerules: Likewise.
2302         * config.make.in: Likewise.
2303         * configure.in: Likewise.
2304         * intl/Makefile: Likewise.
2305         * locale/Makefile: Likewise.
2306         * po/Makefile: Likewise.
2307         * posix/Makefile: Likewise.
2308         * sysdeps/gnu/Makefile: Likewise.
2309         * sysdeps/mach/hurd/Makefile: Likewise.
2310         * sysdeps/sparc/sparc32/Makefile: Likewise.
2311
2312         [BZ #13118]
2313         * posix/Makefile (bug-regex32-ENV): Define.
2314         Patch by John Stanley <jpsinthemix@verizon.net>.
2315
2316         * misc/Makefile (headers): Add bits/select2.h.
2317         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
2318         * misc/bits/select2.h: New file.
2319         * include/bits/select2.h: New file.
2320         * debug/Makefile (routines): Add fdelt_chk.
2321         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
2322         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
2323         FD_ISSET.
2324         * debug/fdelt_chk.c: New file.
2325
2326         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
2327         * wcsmbs/test-wmemcmp.c: Likewise.
2328         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
2329         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
2330
2331 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2332
2333         * string/Makefile (strop-tests): Add memcmp.
2334         * string/test-wmemcmp.c: New file.
2335         * string/test-memcmp.c: Add wmemcmp support.
2336
2337 2011-09-08  Roland McGrath  <roland@hack.frob.com>
2338
2339         [BZ #13153]
2340         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
2341         2011-07-19 change.
2342
2343         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
2344         garbage value in a __mach_port_mod_refs call in the cases of the
2345         task-self and thread-self ports.
2346
2347 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2348
2349         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
2350
2351 2011-09-08  Andreas Schwab  <schwab@redhat.com>
2352
2353         * elf/dl-load.c (lose): Check for non-null L.
2354
2355 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
2356
2357         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
2358
2359         * elf/dl-libc.c (dlerror_run): Pass back error code from
2360         dl_catch_error.
2361
2362         [BZ #13123]
2363         * elf/dl-load.c (lose): Free l_origin if it is valid.
2364
2365         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
2366         names.
2367         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
2368         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
2369         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
2370         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
2371         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
2372         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
2373
2374 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2375
2376         * sysdeps/powerpc/fpu/e_hypot.c: New file.
2377         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
2378         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
2379         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
2380         * sysdeps/powerpc/fpu/k_cosf.c: New file.
2381         * sysdeps/powerpc/fpu/k_sinf.c: New file.
2382         * sysdeps/powerpc/fpu/s_cosf.c: New file.
2383         * sysdeps/powerpc/fpu/s_sinf.c: New file.
2384         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
2385         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
2386
2387 2011-08-15  Alan Modra  <amodra@gmail.com>
2388
2389         [BZ #13092]
2390         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
2391         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
2392         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
2393         ppc_mcount to static-only-routines.
2394         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
2395         __mcount_internal.
2396         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
2397         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
2398
2399 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
2400
2401         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
2402         for finite and infinity parameters.
2403
2404 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
2405
2406         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
2407         and add nop instructions for throughput optimization.
2408         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
2409
2410 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
2411
2412         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
2413         aligned copy for power7 with vector-scalar instructions.
2414         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
2415
2416 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
2417
2418         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
2419         AVX check.
2420
2421 2011-09-07  Andreas Schwab  <schwab@redhat.com>
2422
2423         [BZ #13144]
2424         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
2425         last change.
2426
2427 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
2428
2429         * sysdeps/unix/sysv/linux/x86_64/init-first.c
2430         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
2431         syscall wrapper around clock_gettime in __vdso_clock_gettime.
2432         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
2433         clock_gettime.
2434
2435 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
2436
2437         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
2438         Forgot to demangle the pointer.
2439
2440         * sysdeps/i386/sysdep.h: Define atom_text_section.
2441         * sysdeps/x86_64/sysdep.h: Likewise.
2442         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
2443         section with atom_text_section.
2444         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
2445         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
2446         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
2447         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
2448         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
2449
2450         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
2451         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
2452         already be defined.  Change to take two parameters and don't assign
2453         result to variable.  Adjust all users.
2454         Define INTERNAL_GETTIME if not already defined.
2455         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
2456         call.
2457         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
2458         HAVE_CLOCK_GETTIME_VSYSCALL.
2459         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
2460
2461         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
2462         gettimeofday vsyscall, just use time.
2463
2464 2011-09-06  Andreas Schwab  <schwab@redhat.com>
2465
2466         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
2467         <errno.h>.
2468
2469 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
2470
2471         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
2472         syscall on x86-64.
2473         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
2474         syscall.
2475         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
2476         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
2477         syscall if possible.
2478
2479 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
2480
2481         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
2482         e_ident.  Don't pass to find_mapsXX.
2483         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
2484
2485 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2486
2487         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2488         strchr-sse2-no-bsf strrchr-sse2-no-bsf
2489         * sysdeps/x86_64/multiarch/strchr.S: Update.
2490         Check bit_slow_BSF bit.
2491         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2492         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
2493         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
2494
2495 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
2496
2497         [BZ #13134]
2498         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
2499         before glibc 2.15.
2500         (tryshell): Define.
2501         (__spawni): Change last parameter to be flag.  Test
2502         SPAWN_XFLAGS_USE_PATH flag to use path or not.
2503         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
2504         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
2505         * posix/spawni.c: Likewise.
2506         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
2507         * posix/spawnp.c: Likewise.  Change normal version to use
2508         SPAWN_XFLAGS_USE_PATH.
2509         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
2510         SPAWN_XFLAGS_TRY_SHELL.
2511
2512         [BZ #13150]
2513         * posix/glob.h: Remove gcc 1.x support.
2514
2515         [BZ #13068]
2516         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
2517
2518 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2519
2520         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
2521         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
2522         strrchr-sse2-bsf
2523         * sysdeps/i386/i686/multiarch/strchr.S: New file.
2524         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
2525         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
2526         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
2527         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
2528         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
2529
2530 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2531
2532         * sysdeps/x86_64/wcscmp.S: New file.
2533
2534         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
2535         wcscmp-c wcscmp-sse2
2536         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
2537         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
2538         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
2539         * wcsmbs/wcscmp.c: Allow renaming.
2540
2541 2011-09-05  David S. Miller  <davem@davemloft.net>
2542
2543         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
2544         stack slot, rather than the struct return pointer slot.
2545         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
2546         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
2547         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
2548         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
2549
2550 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
2551
2552         * po/ja.po: Update from translation team.
2553
2554         [BZ #13144]
2555         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
2556         kernel in 64-bit binaries.
2557
2558 2011-09-01  David S. Miller  <davem@davemloft.net>
2559
2560         * elf/elf.h (HWCAP_SPARC_*): Move to..
2561         * sysdeps/sparc/sysdep.h: this new file and add new values.
2562         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
2563         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
2564         _DL_HWCAP_COUNT to 24.
2565         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
2566         entries.
2567         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
2568         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
2569         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
2570         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
2571         instead of magic constants.
2572         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
2573
2574 2011-08-31  David S. Miller  <davem@davemloft.net>
2575
2576         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
2577         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
2578         Reimplement to do errno handling inline.
2579         (SYSCALL_ERROR_HANDLER): New macro.
2580         (__SYSCALL_STRING): Do not do errno handling in asm.
2581         (__CLONE_SYSCALL_STRING): Delete.
2582         (__INTERNAL_SYSCALL_STRING): Delete.
2583         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
2584         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
2585         (PSEUDO): Reimplement to do errno handling inline.
2586         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
2587         (SYSCALL_ERROR_HANDLER): New macro.
2588         (__SYSCALL_STRING): Do not do errno handling in asm.
2589         (__CLONE_SYSCALL_STRING): Delete.
2590         (__INTERNAL_SYSCALL_STRING): Delete.
2591         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
2592         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
2593         i386.
2594         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
2595         (inline_syscall*): Add 'err' argument.
2596         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
2597         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
2598         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
2599         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
2600
2601         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
2602         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
2603
2604 2011-08-30  Andreas Schwab  <schwab@redhat.com>
2605
2606         * elf/rtld.c (dl_main): Relocate objects in dependency order.
2607
2608 2011-08-29  Jiri Olsa <jolsa@redhat.com>
2609
2610         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
2611         directive.
2612
2613 2011-08-24  David S. Miller  <davem@davemloft.net>
2614
2615         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
2616
2617 2011-08-24  Andreas Schwab  <schwab@redhat.com>
2618
2619         * elf/Makefile: Add rules to build and run unload8 test.
2620         * elf/unload8.c: New file.
2621         * elf/unload8mod1.c: New file.
2622         * elf/unload8mod1x.c: New file.
2623         * elf/unload8mod2.c: New file.
2624         * elf/unload8mod3.c: New file.
2625
2626         * elf/dl-close.c (_dl_close_worker): Reset private search list if
2627         it wasn't used.
2628
2629 2011-08-23  David S. Miller  <davem@davemloft.net>
2630
2631         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
2632         subtract stack bias.
2633         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
2634         %sp not %fp in calculations.
2635         (_JMPBUF_UNWINDS_ADJ): Likewise.
2636
2637         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
2638         (aio_suspend): Call it to force an exception region around the
2639         AIO_MISC_WAIT() invocation.
2640
2641 2011-08-23  Andreas Schwab  <schwab@redhat.com>
2642
2643         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
2644         backslash.
2645
2646 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
2647
2648         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
2649         protection macro.
2650         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
2651         and <dl-machine.h>.
2652         (Elf64_FuncDesc): Remove.
2653
2654 2011-08-22  David S. Miller  <davem@davemloft.net>
2655
2656         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
2657         sigaltstack check, add missing cfi directives.
2658         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
2659         missing cfi directives, and sigaltstack handling.
2660
2661 2011-08-16  Andreas Schwab  <schwab@redhat.com>
2662
2663         [BZ #11724]
2664         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
2665         object is seen twice.
2666         * elf/dl-fini.c (_dl_sort_fini): Likewise.
2667
2668         * elf/Makefile (distribute): Add tst-initorder2.c.
2669         (tests): Add tst-initorder2.
2670         (modules-names): Add tst-initorder2a tst-initorder2b
2671         tst-initorder2c tst-initorder2d.  Add rules to build them.
2672         ($(objpfx)tst-initorder2.out): New rule.
2673         * elf/tst-initorder2.c: New file.
2674         * elf/tst-initorder2.exp: New file.
2675
2676 2011-08-22  Andreas Schwab  <schwab@redhat.com>
2677
2678         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
2679
2680         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
2681         dependencies back to end of function.
2682
2683         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
2684         $(elfobjdir)/ld.so.
2685
2686 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
2687
2688         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
2689         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
2690         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
2691         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
2692         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
2693         of __vdso_gettimeofday.
2694         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
2695         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
2696         attribute_hidden.
2697         (_libc_vdso_platform_setup): Remove initialization of
2698         __vdso_gettimeofday and __vdso_time.
2699
2700 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
2701
2702         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
2703         and fgetc_unlocked.
2704         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
2705         getc_unlocked.
2706
2707         * elf/dl-open.c (add_to_global): Report additions to the global scope
2708         for LD_DEBUG=scopes.
2709         (dl_open_worker): Also print scope of newly loaded dependencies.
2710         (_dl_show_scope): Indicate if there is no scope.
2711
2712         [BZ #13114]
2713         * stdio-common/Makefile (tests): Add bug24.
2714         * stdio-common/bug24.c: New file.
2715
2716 2011-08-19  Andreas Jaeger  <aj@suse.de>
2717
2718         [BZ #13114]
2719         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
2720         non-existant file when using close-on-exec mode.
2721
2722 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
2723
2724         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
2725         the very first instruction.
2726
2727         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
2728         the CFI state in the end.
2729         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
2730         inclusion of dl-trampoline.h.
2731         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
2732
2733 2011-08-19  Andreas Schwab  <schwab@redhat.com>
2734
2735         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
2736         expectations for long double.
2737
2738         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
2739         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
2740
2741 2011-08-14  David S. Miller  <davem@davemloft.net>
2742
2743         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
2744         artificual limit depends upon the system page size.
2745
2746 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
2747
2748         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
2749         * resolv/Makefile: Define CFLAGS-libresolv.
2750
2751 2011-08-17  Andreas Schwab  <schwab@redhat.com>
2752
2753         * nss/makedb.c (compute_tables): Make variables used in nested
2754         function static.
2755
2756 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
2757
2758         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
2759         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
2760         if buffer was too small.
2761
2762         * elf/pldd.c (main): Attach to all threads in the process.
2763         Rewrite /proc handling to use *at functions.
2764
2765 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
2766
2767         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
2768         specifies first scope to show.
2769         (dl_open_worker): Update callers.  Move printing scope of new
2770         object to before the relocation.
2771         * elf/rtld.c (dl_main): Update _dl_show_scope call.
2772         * sysdeps/generic/ldsodefs.h: Update declaration.
2773
2774         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
2775         string for the scope number.
2776
2777 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
2778
2779         * nscd/servicescache.c (cache_addserv): Make sure written is always
2780         initialized.
2781
2782 2011-08-14  Roland McGrath  <roland@hack.frob.com>
2783
2784         * sysdeps/i386/i486/bits/atomic.h
2785         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
2786         statement expression, so as to suppress "set but not used" warning.
2787         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
2788
2789         * string/strncat.c (STRNCAT): Use prototype definition.
2790
2791         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
2792         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
2793         -Iprograms here.
2794         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
2795         (localedef-modules): Add localedef.
2796         (locale-modules): Add locale.
2797
2798         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
2799         * elf/rtld.c (dl_main): Invert order of assignment in last change,
2800         to avoid a warning.
2801
2802 2011-08-14  David S. Miller  <davem@davemloft.net>
2803
2804         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
2805         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
2806
2807 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
2808
2809         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
2810         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
2811         * elf/rtld.c (dl_main): Set l_name of vDSO.
2812         Call _dl_show_scope when DL_DEBUG_SCOPES.
2813         (process_dl_debug): Recognize scopes flag and also set it for all.
2814         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
2815         Declare _dl_show_scope.
2816
2817         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
2818         (do_dlopen): Pass caller_dlopen to dl_open.
2819         (__libc_dlopen_mode): Initialize caller_dlopen.
2820
2821         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
2822         of libc.  Make tolower call locale-independent.  Optimize a bit by
2823         using isdigit instead of isalnum.
2824         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
2825
2826 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
2827
2828         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
2829         was a dependency or dynamically loaded.
2830
2831 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
2832
2833         * intl/l10nflist.c: Allow architecture-specific pop function.
2834         * sysdeps/x86_64/l10nflist.c: New file.
2835
2836         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
2837         classification.
2838
2839 2011-08-10  Andreas Schwab  <schwab@redhat.com>
2840
2841         * include/dirent.h: Add libc_hidden_proto for scandirat and
2842         scandirat64.  Don't declare __scandirat64.
2843         * dirent/scandirat.c: Add libc_hidden_def.
2844         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
2845         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
2846
2847 2011-08-10  David S. Miller  <davem@davemloft.net>
2848
2849         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
2850         enum.
2851         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2852         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2853         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2854
2855 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
2856
2857         * Versions.def [libc]: Add GLIBC_2.15.
2858         * dirent/Makefile (routines): Add scandirat and scandirat64.
2859         * dirent/Versions [libc]: Export scandirat and scandirat64 for
2860         GLIBC_2.15.
2861         * dirent/dirent.h: Declare scandirat and scandirat64.
2862         * dirent/scandirat.c: New file.
2863         * dirent/scandirat64.c: New file.
2864         * sysdeps/wordsize-64/scandirat.c: New file.
2865         * sysdeps/wordsize-64/scandirat64.c: New file.
2866         * dirent/opendir.c: Define opendirat.
2867         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
2868         using scandirat.
2869         * dirent/scandir64.c: Adjust for scandir.c change.
2870         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
2871         __scandirat64, and __scandir_cancel_handler.
2872         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
2873         additional parameter and use openat instead of open (outside of ld.so).
2874         Add new __opendir as wrapper around __opendirat.
2875         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
2876         here without requiring old scandirat implementation.
2877
2878 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
2879
2880         * dirent/scandir.c (cancel_handler): Renamed to
2881         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
2882         defined.  Adjust users.
2883         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
2884         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
2885
2886 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
2887
2888         * string/test-string.h (IMPL): Use __STRING to expand name and then
2889         stringify it.
2890
2891         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
2892         of cleanups.
2893
2894 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2895
2896         * string/Makefile: Update.
2897         (strop-tests): Append strncat.
2898         * string/test-wcscmp.c: New file.
2899         New comprehensive test for wcscmp.
2900         * string/test-strcmp.c: Update.
2901         (WIDE): New define.
2902
2903 2011-07-22  Andreas Schwab  <schwab@redhat.com>
2904
2905         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
2906         line.
2907
2908 2011-07-26  Andreas Schwab  <schwab@redhat.com>
2909
2910         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
2911         encoding to ACE if AI_IDN.
2912
2913 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
2914
2915         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
2916         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
2917
2918 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2919
2920         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
2921         Fix overflow bug in strncat.
2922         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
2923
2924         * string/test-strncat.c: Update.
2925         Add new tests for checking overflow bugs.
2926
2927 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2928
2929         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
2930         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
2931         * sysdeps/i386/i686/multiarch/strcat.S: New file.
2932         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
2933         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
2934         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
2935         * sysdeps/i386/i686/multiarch/strncat.S: New file.
2936         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
2937         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
2938
2939         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
2940         (USE_AS_STRCAT): Define.
2941         Add strcat and strncat support.
2942         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
2943
2944 2011-07-25  Andreas Schwab  <schwab@redhat.com>
2945
2946         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
2947         __n bigger than INT_MAX+1.
2948         (__strncmp_g): Likewise.
2949
2950 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
2951
2952         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
2953         * libio/stido.h: Likewise.
2954
2955         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
2956         (AF_NFC): Define.
2957         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
2958         (AF_NFC): Define.
2959
2960         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
2961         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2962         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2963         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
2964         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2965
2966         [BZ #13021]
2967         * scripts/test-installation.pl: Don't expect libnss_test1 to be
2968         installed.
2969
2970         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
2971         typo.
2972         (_dl_x86_64_save_sse): Likewise.
2973
2974 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
2975
2976         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
2977         OSXSAVE.
2978         (_dl_x86_64_save_sse): Likewise.
2979
2980         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
2981
2982         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
2983
2984 2011-07-21  Andreas Schwab  <schwab@redhat.com>
2985
2986         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
2987         change.
2988         (_dl_x86_64_save_sse): Use correct AVX check.
2989
2990 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2991
2992         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
2993         bug in strncpy/strncat.
2994         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
2995
2996 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
2997
2998         * string/tester.c (test_strcat): Add tests for different alignments
2999         of source and destination.
3000         (test_strncat): Likewise.
3001
3002 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
3003
3004         [BZ #12852]
3005         * posix/glob.c (glob): Check passed in values before using them in
3006         expressions to avoid some overflows.
3007         (glob_in_dir): Likewise.
3008
3009         [BZ #13007]
3010         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
3011         check for AVX enablement so that we don't crash with old kernels and
3012         new hardware.
3013         * elf/tst-audit4.c: Add same checks here.
3014         * elf/tst-audit6.c: Likewise.
3015
3016         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
3017
3018 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
3019
3020         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
3021
3022 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
3023
3024         * po/cs.po: Update from translation team.
3025         * po/bg.po: Likewise.
3026
3027 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
3028
3029         * misc/sys/cdefs.h: Add support for const attribute.
3030         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
3031         to gnu_dev_{major,minor,makedev} functions.
3032
3033 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
3034
3035         * intl/dcigettext.c (get_output_charset): Add missing bracket.
3036
3037 2011-07-20  Andreas Schwab  <schwab@redhat.com>
3038
3039         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
3040         strlen results.
3041
3042 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3043
3044         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
3045         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
3046         register in order to avoid conflicts with the soft frame pointer
3047         being held in r11 when necessary.
3048         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
3049         (INTERNAL_VSYSCALL_NCS): Likewise.
3050
3051 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
3052
3053         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
3054         * elf/dl-fini.c (_dl_fini): Adjust caller.
3055         * elf/dl-close.c (_dl_close_worker): Likewise.
3056         * sysdeps/generic/ldsodefs.h: Adjust declaration.
3057
3058 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
3059
3060         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
3061         "aux_cache->nlibs < 0".
3062
3063         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
3064         in the reload-count case.
3065
3066 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
3067
3068         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3069         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
3070         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
3071         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
3072         * sysdeps/x86_64/multiarch/strcat.S: New file.
3073         * sysdeps/x86_64/multiarch/strncat.S: New file.
3074         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
3075         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
3076         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
3077         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
3078         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
3079         (USE_AS_STRCAT): Define.
3080         Add strcat and strncat support.
3081         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
3082         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3083         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
3084         * string/strncat.c: Update.
3085         (USE_AS_STRNCAT): Define.
3086         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3087         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
3088         and i7.
3089         * sysdeps/x86_64/multiarch/init-arch.h
3090         (bit_Prefer_PMINUB_for_stringop): New.
3091         (index_Prefer_PMINUB_for_stringop): Likewise.
3092         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
3093         bit_Prefer_PMINUB_for_stringop.
3094
3095 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
3096
3097         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
3098         buffer64.
3099         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
3100         of casting of buffer.
3101         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
3102         buffer32 and buffer64.
3103         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
3104         writes instead of casting of buffer.
3105         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
3106         buffer32.
3107         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
3108         casting of buffer.
3109
3110 2011-07-19  Andreas Schwab  <schwab@redhat.com>
3111
3112         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
3113
3114 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
3115
3116         * nscd/nscd.c (termination_handler): Don't do anything for a database
3117         if it has not yet been initialized.
3118
3119 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
3120
3121         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
3122
3123 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
3124
3125         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
3126
3127 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
3128
3129         * po/nl.po: Update from translation team.
3130         * po/sv.po: Likewise.
3131
3132 2011-07-16  Roland McGrath  <roland@hack.frob.com>
3133
3134         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
3135         now disallowed by GCC.
3136
3137         * configure.in (use-default-link): Default to yes if a test -shared
3138         link meets our qualifications.
3139         * configure: Regenerated.
3140
3141         * config.make.in (output-format): New variable.
3142         * configure.in: Check for ld --print-output-format support.
3143         * configure: Regenerated.
3144         * Makerules ($(common-objpfx)format.lds)
3145         [$(output-format) != unknown]: Just use $(output-format),
3146         instead of the linker-script munging.
3147
3148 2011-07-14  Roland McGrath  <roland@hack.frob.com>
3149
3150         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
3151         of $(common-objpfx)shlib.lds.
3152         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
3153
3154         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
3155         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
3156
3157         * configure.in (-z relro check): Adjust test code to add a large
3158         writable data section after it.
3159         * configure: Regenerated.
3160
3161 2011-07-11  Roland McGrath  <roland@hack.frob.com>
3162
3163         * configure.in (-z relro check): Fix test code to make the variable
3164         truly const.
3165         * configure: Regenerated.
3166
3167 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
3168
3169         * nscd/nscd.h (struct traced_file): Define.
3170         (struct database_dyn): Remove inotify_descr, reset_res, and filename
3171         elements.  Add traced_files.
3172         (inotify_fd): Declare.
3173         (register_traced_file): Declare.
3174         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
3175         (inotify_fd): Export.
3176         (resolv_conf_descr): Remove.
3177         (nscd_init): Move inotify descriptor creation to main.
3178         Don't register files for notification here.
3179         (register_traced_file): New function.
3180         (invalidate_cache): Don't use reset_res to determine whether to call
3181         res_init, go through the list of registered files.
3182         (main_loop_poll): The inotify descriptors are now stored in the
3183         structures for the traced files.
3184         (main_loop_epoll): Likewise
3185         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
3186         to __nss_disable_nscd.
3187         * nscd/cache.c (prune_cache): There is no single inotify descriptor
3188         for a database anymore.  Check the records for all the registered
3189         files instead.
3190         * nss/Makefile (libnss_files-routines): Add files-init.
3191         (libnss_db-routines): Add db-init.
3192         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
3193         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
3194         * nss/nss_db/db-init.c: New file.
3195         * nss/nss_files/files-init.c: New file.
3196         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
3197         __nss_lookup_function.
3198         (__nss_lookup_function): Call nss_load_library.
3199         (nss_load_all_libraries): New function.
3200         (__nss_disable_nscd): Take parameter with callback function for files
3201         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
3202         used for the cached services.
3203         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
3204         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
3205         options for features to all the files in nscd.
3206
3207         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
3208
3209 2011-07-10  Roland McGrath  <roland@hack.frob.com>
3210
3211         * csu/elf-init.c (__libc_csu_init): Comment typo.
3212
3213 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
3214
3215         * po/pl.po: Update from translation team.
3216         * po/ja.po: Likewise.
3217         * po/ru.po: Likewise.
3218         * po/ko.po: Likewise.
3219         * po/fr.po: Likewise.
3220
3221 2011-07-09  Roland McGrath  <roland@hack.frob.com>
3222
3223         * configure.in (.ctors/.dtors header and trailer check):
3224         Use an empirical test on a built program.
3225         * configure: Regenerated.
3226
3227         * configure.in (-z relro check): Use an empirical test on a built DSO.
3228         Detect, but do not require, on ia64.
3229         * configure: Regenerated.
3230
3231         * configure.in (READELF): Find it with AC_CHECK_TOOL.
3232         Update tests that use readelf to use $READELF instead.
3233         * configure: Regenerated.
3234
3235 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
3236
3237         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
3238         if the result is not used.
3239
3240 2011-07-05  Andreas Jaeger  <aj@suse.de>
3241
3242         [BZ#9696]
3243         * stdlib/tst-strtod.c: Add testcase.
3244
3245 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
3246
3247         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
3248         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
3249         The latter has a higher limit.  Take additional parameter to pass to
3250         the new function.
3251         (__pathconf): Pass file to __statfs_link_max.
3252         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
3253         __statfs_link_max.
3254         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
3255         __statfs_link_max.
3256
3257         [BZ #12868]
3258         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
3259         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
3260         Handle Lustre.
3261         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
3262         (__statfs_filesize_max): Likewise.
3263         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
3264
3265 2011-07-05  Andreas Jaeger  <aj@suse.de>
3266
3267         * resolv/res_comp.c (dn_skipname): Remove unused variable.
3268
3269 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
3270
3271         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
3272         `status' variable.
3273         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
3274         Likewise.
3275
3276 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3277
3278         * Makefile (strop-tests): Add strncat.
3279         * string/test-strncat.c: New file.
3280
3281 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
3282
3283         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
3284
3285 2011-06-21  Andreas Jaeger  <aj@suse.de>
3286
3287         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
3288         Copy rule from iconvdata/Makefile.
3289
3290 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
3291
3292         [BZ #12922]
3293         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
3294         but no long options are defined, just return 'W'.
3295
3296 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
3297
3298         [BZ #9696]
3299         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
3300
3301 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
3302
3303         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
3304         netgroups to read.
3305         (innetgr): Likewise.
3306
3307 2011-07-05  Roland McGrath  <roland@hack.frob.com>
3308
3309         * config.make.in (install_root): Default to $(DESTDIR).
3310
3311 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
3312
3313         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
3314
3315 2011-07-02  Roland McGrath  <roland@hack.frob.com>
3316
3317         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
3318
3319         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
3320         containing directory rather than embedding absolute directory names.
3321
3322         * scripts/check-local-headers.sh: Rewritten using awk.
3323         Match by word, not by line.  Print error messages for matches.
3324         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
3325
3326         * Makerules [shlib-lds-flags empty]:
3327         ($(common-objpfx)libc_pic.opts): New target.
3328         ($(common-objpfx)libc_pic.os.clean): New target.
3329         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
3330
3331         * config.make.in (OBJCOPY): New variable.
3332         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
3333         * configure: Regenerated.
3334
3335         * config.make.in (use-default-link): New variable.
3336         * configure.in (use_default_link): Grok --with-default-link to set it.
3337         * configure: Regenerated.
3338         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
3339         (shlib-lds, shlib-lds-flags): Define to empty.
3340
3341         * Makerules (shlib-lds): New variable.
3342         (shlib-lds-flags): New variable.
3343         (build-shlib, build-moduile, build-module-asneeded): Use it.
3344         ($(common-objpfx)libc.so): Use $(shlib-lds).
3345         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
3346         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
3347
3348         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
3349         DT_FLAGS/DT_FLAGS_1 with zero flags.
3350
3351         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
3352         linker script munging.
3353
3354 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
3355
3356         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
3357         as 128-bit value.
3358         * crypt/sha512.c (sha512_process_block): Perform total addition using
3359         128-bit if possible.
3360         (__sha512_finish_ctx): Likewise.
3361         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
3362         as 64-bit value.
3363         * crypt/sha256.c (SWAP64): Define.
3364         (sha256_process_block): Perform total addition using 64-bit if
3365         possible.
3366         (__sha256_finish_ctx): Likewise.
3367
3368 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
3369
3370         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
3371         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3372         * nscd/hstcache.c (cache_addhst): Likewise.
3373         * nscd/grpcache.c (cache_addgr): Likewise.
3374         * nscd/aicache.c (addhstaiX): Likewise
3375         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
3376
3377 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
3378
3379         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
3380         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3381         * nscd/hstcache.c (cache_addhst): Likewise.
3382         * nscd/grpcache.c (cache_addgr): Likewise.
3383         * nscd/aicache.c (addhstaiX): Likewise
3384
3385 2011-07-01  Andreas Schwab  <schwab@redhat.com>
3386
3387         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
3388         domain only when needed.
3389
3390 2011-06-30  Andreas Schwab  <schwab@redhat.com>
3391
3392         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
3393         is always restored.
3394
3395 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
3396
3397         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
3398         are re-adding the entry.
3399         * nscd/servicescache.c (cache_addserv): Likewise.
3400
3401 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
3402
3403         * sysdeps/generic/dl-irel.h: fix protection against multiple
3404         inclusions.
3405         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
3406
3407 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
3408
3409         [BZ #12935]
3410         * malloc/memusage.sh: Fix quoting in message.
3411         * debug/xtrace.sh: Likewise.
3412
3413         * configure.in: Remove support for --experimental-malloc option, make
3414         it the default.
3415         * config.make.in: Likewise.
3416         * malloc/Makefile: Likewise.
3417
3418 2011-06-27  Andreas Schwab  <schwab@redhat.com>
3419
3420         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
3421         two-byte characters.
3422
3423 2011-06-27  Roland McGrath  <roland@hack.frob.com>
3424
3425         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
3426         AC_CACHE_CHECK invocation.
3427         * configure: Regenerated.
3428
3429         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
3430
3431 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
3432
3433         [BZ #12350]
3434         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
3435         bit from old_res_options.
3436
3437         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
3438
3439         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
3440         value type for setfct.
3441
3442 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
3443
3444         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
3445         __gettimeofday instead of gettimeofday.
3446
3447 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
3448
3449         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
3450
3451 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
3452
3453         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
3454
3455         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
3456         info.
3457
3458 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
3459
3460         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3461         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
3462         strcpy-sse2-unaligned strncpy-sse2-unaligned
3463         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
3464         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
3465         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
3466         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
3467         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
3468         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
3469         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
3470         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
3471         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
3472         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
3473         (STRCPY): Support SSE2 and SSSE3 versions.
3474
3475 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
3476
3477         [BZ #12874]
3478         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
3479         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
3480         kernels which artificially limit size of requests.
3481
3482 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
3483
3484         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
3485         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
3486         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
3487         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
3488         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
3489         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
3490         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
3491         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
3492         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
3493         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
3494         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
3495         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
3496         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
3497         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
3498         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
3499         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3500         Enable unaligned load optimization for Intel Core i3, i5 and i7
3501         processors.
3502         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
3503         Define.
3504         (index_Fast_Unaligned_Load): Define.
3505         (HAS_FAST_UNALIGNED_LOAD): Define.
3506
3507 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
3508
3509         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
3510
3511 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
3512
3513         [BZ #12907]
3514         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
3515         until it is clear that the information is realy needed.
3516         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
3517
3518 2011-06-22  Andreas Schwab  <schwab@redhat.com>
3519
3520         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
3521
3522 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
3523
3524         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
3525         /sys/devices/system/cpu/online if it is usable.
3526
3527         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
3528         reading the information from the /proc filesystem to once a second.
3529
3530 2011-06-21  Andreas Jaeger  <aj@suse.de>
3531
3532         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
3533         NULL after inclusion of kernel headers.
3534
3535 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
3536
3537         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
3538         calls to internal_setent.
3539
3540         [BZ #12885]
3541         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
3542         addresses using gethostbyname4_r ignore IPv4 addresses.
3543
3544         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
3545         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
3546
3547         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
3548
3549 2011-06-20  David S. Miller  <davem@davemloft.net>
3550
3551         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
3552         inclusions.
3553         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
3554
3555         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
3556         (elf_irel): Use it.
3557         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
3558         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
3559         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
3560         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
3561         * sysdeps/x86_64/dl-irel.h: Likewise.
3562
3563         * elf/dl-runtime.c: Use elf_ifunc_invoke.
3564         * elf/dl-sym.c: Likewise.
3565
3566 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
3567
3568         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
3569         need to dereference resplen2.
3570
3571 2011-06-14  Andreas Schwab  <schwab@redhat.com>
3572
3573         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
3574
3575 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
3576
3577         * Makeconfig: Define vardbdir and inst_vardbdir.
3578         * nss/Makefile: Add rules to install db-Makefile.
3579
3580         * nss/nss_db/db-XXX.c: Cleanup.
3581
3582         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
3583         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
3584         GLIBC_PRIVATE.
3585         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
3586         * nss/makedb.c: Implement -g option to specify that value strings
3587         are generated and should not be added to table iterated over for
3588         get*ent calls.
3589         * nss/nss_db/db-initgroups.c: New file.
3590
3591         * nss/getent.c: Add support for initgroups lookups through getgrouplist
3592         interface.
3593
3594         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
3595         (internal_getgrouplist): Adjust to name change.
3596         Update use_initgroups_entry if this is not the first call.
3597         * nss/databases.def: Add initgroups entry.
3598
3599         * nss/makedb.c (compute_tables): Check result of multiple hash table
3600         sizes to minimize maximum chain length.
3601
3602 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
3603
3604         * Versions.def: Add entry for libnss_db.
3605         * shlib-versions: Likewise.
3606         * nss/Makefile: Add rules to build libnss_db.
3607         * nss/Versions: Add libnss_db information.  Organize libnss_files
3608         entries better.
3609         * nss/db-Makefile: Add gshadow support.  Change rules for the new
3610         makedb progra.  Some minor improvements to generate smaller files.
3611         * nss/nss_db/nss_db.h: Move NSS database header data structures to
3612         here from...
3613         * nss/makedb.c: ...here.
3614         Improve database format to be smaller and require less memory at
3615         runtime.
3616         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
3617         db anymore.
3618         * nss/nss_db/db-netgrp.c: Likewise.
3619         * nss/nss_db/db-open.c: Likewise.
3620         * nss/nss_files/flies-XXX.x: Adjust comments.
3621         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
3622         * nss/nss_files/files-grp.c: Likewise.
3623         * nss/nss_files/files-hosts.c: Likewise.
3624         * nss/nss_files/files-network.c: Likewise.
3625         * nss/nss_files/files-proto.c: Likewise.
3626         * nss/nss_files/files-pwd.c: Likewise.
3627         * nss/nss_files/files-rpc.c: Likewise.
3628         * nss/nss_files/files-service.c: Likewise.
3629         * nss/nss_files/files-sgrp.c: Likewise.
3630         * nss/nss_files/files-spwd.c: Likewise.
3631         * nss/nss_db/db-alias.c: Removed.
3632         * nss/nss_db/dummy-db.h: Removed.
3633
3634 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
3635
3636         * nss/makedb.c: Rewritten to not use database library.
3637         * nss/Makefile: Update to build new makedb program.
3638
3639 2011-06-14  Andreas Jaeger  <aj@suse.de>
3640
3641         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
3642         memset declaration.
3643
3644 2011-06-10  Andreas Schwab  <schwab@redhat.com>
3645
3646         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
3647         tmpbuf.
3648
3649 2011-06-10  Roland McGrath  <roland@hack.frob.com>
3650
3651         * Makerules (shlib.lds): Fail if the linker script comes out empty.
3652         * elf/Makefile ($(objpfx)ld.so): Likewise.
3653
3654         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
3655         Don't list ld.so twice in dependencies.
3656
3657         * posix/bug-regex31.c: Include <stdlib.h>.
3658
3659         * nscd/hstcache.c (cache_addhst): Remove unused variable.
3660
3661         * nis/nss_compat/compat-spwd.c
3662         (getspent_next_nss_netgr): Remove unused variable.
3663         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
3664
3665         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
3666         nonmembers" output to use the right array.
3667
3668         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
3669
3670         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
3671
3672         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
3673         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
3674         * catgets/gencat.c (read_input_file): Likewise.
3675         * locale/programs/locarchive.c (enlarge_archive): Likewise.
3676
3677         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
3678         variable definition inside #if's controlling its use.
3679
3680         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
3681
3682         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
3683
3684         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
3685
3686         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
3687         unreachable code.
3688
3689         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
3690
3691         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
3692         * configure: Regenerated.
3693
3694         * Makerules: Revert last change.
3695         * elf/Makefile: Likewise.
3696
3697 2011-06-09  Roland McGrath  <roland@hack.frob.com>
3698
3699         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
3700         * elf/Makefile ($(objpfx)librtld.os): Likewise.
3701         (reloc-link): Likewise.
3702
3703 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
3704
3705         * elf/Makefile: Add rules to build pldd.
3706         * elf/pldd.c: New file.
3707         * elf/pldd-xx.c: New file.
3708
3709 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
3710
3711         * version.h: Update for 2.15 development version.
3712
3713 2011-06-07  David S. Miller  <davem@davemloft.net>
3714
3715         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
3716         ifuncs.
3717         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
3718         elf_machine_lazy_rel): Likewise.
3719         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
3720         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
3721         elf_machine_lazy_rel): Likewise.
3722         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
3723         dl_hwcap via passed in argument.
3724         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
3725         Likewise.
3726
3727 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3728
3729         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
3730
3731 2011-06-06  Roland McGrath  <roland@hack.frob.com>
3732
3733         [BZ #12849]
3734         * manual/fdl-1.1.texi: New file, verbatim from:
3735         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
3736         * manual/lgpl-2.1.texi: New file, verbatim from:
3737         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
3738         * manual/Makefile (licenses): New variable, list those new file names.
3739         (texis): Use it.
3740         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
3741
3742         * manual/fdl.texi: File removed.
3743         * manual/lesser.texi: File removed.
3744         * manual/libc.texinfo (Copying, Documentation License):
3745         Use new @include file names, put @appendix directive before @include.
3746
3747 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
3748
3749         [BZ #12841]
3750         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
3751         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
3752         (mq_open): Add __NTH.
3753
3754 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3755
3756         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3757         Assume Intel Core i3/i5/i7 processor if AVX is available.
3758
3759 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
3760
3761         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
3762         typo.
3763
3764 2011-05-31  Andreas Schwab  <schwab@redhat.com>
3765
3766         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
3767         memory.  Use alloca_account.  Fix memory leak when retrying.
3768
3769 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
3770
3771         * version.h (RELEASE): Bump for 2.14 release.
3772         * include/features.h (__GLIBC_MINOR__): Bump to 14.
3773
3774         * config.make.in (RANLIB): Remove entry.
3775
3776 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
3777
3778         * po/Makefile (po-sed-cmd): Add ksh to extensions.
3779         (libc.pot): Work around missing support for .ksh extension in xgettext.
3780
3781         [BZ #12684]
3782         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
3783         if both request failed.
3784         (send_dg): In case of server errors clear resplen or *resplen2.
3785
3786         [BZ #12454]
3787         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
3788         when there are multiple maps.
3789         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
3790         (_dl_fini): Remove test here.
3791
3792         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
3793
3794 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
3795
3796         [BZ #12350]
3797         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
3798         bit from old_res_options.
3799         (gaih_inet): Likewise.
3800
3801         [BZ #11099]
3802         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
3803         as signed.
3804
3805         * resolv/res_init.c (res_setoptions): Make the code more compact.
3806
3807         [BZ #11558]
3808         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
3809         set RES_USEVC.
3810
3811         [BZ #11634]
3812         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
3813
3814         * malloc/malloc.h: Mark malloc hook variables as deprecated.
3815
3816         [BZ #11781]
3817         * malloc/malloc.h: Declare malloc hook variables as volatile.
3818
3819         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
3820         in last patch.
3821
3822         [BZ #11799]
3823         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
3824         raise in the comment.
3825         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3826         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3827         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
3828
3829 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
3830
3831         [BZ #12811]
3832         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
3833         grow the buffers more if it already has to be sufficient.
3834         (build_wcs_upper_buffer): Likewise.
3835         * posix/regexec.c (check_matching): Likewise.
3836         (clean_state_log_if_needed): Likewise.
3837         (extend_buffers): Don't enlarge buffers beyond size of the input
3838         buffer.
3839         Patches mostly by Emil Wojak <emil@wojak.eu>.
3840         * posix/bug-regex32.c: New file.
3841         * posix/Makefile (tests): Add bug-regex32.
3842
3843         * locale/findlocale.c (_nl_find_locale): Return right away if
3844         _nl_explode_name failed.
3845         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
3846
3847         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
3848
3849         * debug/xtrace.sh: Unify messages.
3850         * malloc/memusage.sh: Likewise.
3851
3852         [BZ #12813]
3853         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
3854         time symbol from vDSO.  Substitute with vsyscall if not available.
3855         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
3856         __vdso_time.
3857
3858         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
3859         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
3860         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
3861         Add sendmmsg and internal_sendmmsg.
3862         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
3863         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
3864         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
3865
3866         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
3867         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
3868         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
3869
3870 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
3871
3872         [BZ #12813]
3873         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
3874         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
3875         available.
3876         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
3877         __vdso_getcpu.
3878
3879         [BZ #12814]
3880         * iconvdata/Makefile (tests): Add bug-iconv9.
3881         * iconvdata/bug-iconv9.c: New file.
3882
3883 2011-05-27  Andreas Schwab  <schwab@redhat.com>
3884
3885         [BZ #12814]
3886         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
3887
3888 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
3889
3890         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
3891         (struct user_regs_struct): Change intcs field back to cs.
3892
3893 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
3894
3895         * po/ja.po: Update from translation team.
3896
3897 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
3898
3899         [BZ #12795]
3900         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
3901         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3902
3903 2011-05-20  Andreas Schwab  <schwab@redhat.com>
3904
3905         * stdlib/longlong.h: Update from GCC.
3906
3907 2011-05-23  Andreas Schwab  <schwab@redhat.com>
3908
3909         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
3910         parameter name.
3911         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
3912         Add parameter name.
3913         (__sysconf): Pass it down.
3914
3915 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
3916
3917         [BZ #12671]
3918         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
3919         some situations.
3920         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3921         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
3922         add in in __libc_use_alloca calls.  Adjust callers.
3923         (glob): Use malloc in some situations.
3924
3925         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
3926         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
3927         pltexit.
3928
3929 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
3930
3931         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
3932         and CLOCK_BOOTTIME_ALARM.
3933
3934         [BZ #12782]
3935         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
3936         is returned.
3937
3938         * string/_strerror.c (__strerror_r): Print negative errors as signed
3939         numbers.
3940
3941         [BZ #12777]
3942         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
3943         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
3944         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
3945
3946         * configure.in: Fix typo in redirection and correct removal of test
3947         files in two cases.
3948
3949         [BZ #12788]
3950         * locale/setlocale.c (new_composite_name): Fix test to check for
3951         identical name of all categories.
3952
3953         [BZ #12792]
3954         * libio/filedoalloc.c (local_isatty): New function.
3955         (_IO_file_doallocate): Use local_isatty.
3956         * stdio-common/perror.c (perror): In case a new stream is used
3957         forward the stream error.
3958         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
3959         error flag.
3960
3961 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
3962
3963         [BZ #11869]
3964         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
3965         alloca.
3966         * include/alloca.h (extend_alloca_account): Define.
3967
3968         [BZ #11857]
3969         * posix/regex.h: Fix comments with documentation of user-accessible
3970         fields after compilation and describe correct free'ing of pattern
3971         after re_compile_pattern.
3972         Patch by Reuben Thomas <rrt@sc3d.org>.
3973
3974 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
3975
3976         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
3977         and -mno-altivec to prevent the compiler from using Altivec and/or
3978         VSX instructions when the corresponding registers are not available.
3979
3980 2011-05-19  Andreas Schwab  <schwab@redhat.com>
3981
3982         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
3983
3984 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
3985
3986         * libio/freopen.c (freopen): Use __dup2, not dup2.
3987         * libio/freopen64.c (freopen64): Likewise.
3988
3989 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
3990
3991         [BZ #12775]
3992         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
3993         * math/Makefile (tests): Add test-powl.
3994         (CFLAGS-test-powl.c): Define.
3995         * math/test-powl.c: New file.
3996
3997 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
3998
3999         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
4000
4001 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
4002
4003         [BZ #11837]
4004         * iconvdata/gb18030.c: Update to GB18020-2005.
4005
4006 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
4007
4008         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
4009         RE_SYNTAX_POSIX_AWK): Update to match recent development.
4010         Patch by Aharon Robbins <arnold@skeeve.com>.
4011
4012         [BZ #11892]
4013         * stdlib/putenv.c (putenv): Don't always create copy of the variable
4014         on the stack.
4015
4016         [BZ #11895]
4017         * misc/pselect.c (__pselect): Handle timeout value errors hidden
4018         through underflows.
4019
4020         [BZ #12766]
4021         * misc/error.c (error_at_line): Ensure file_name and old_file_name
4022         point to strings before performing equality test for error_one_per_line
4023         mode.
4024
4025         [BZ #11697]
4026         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
4027
4028         [BZ #11820]
4029         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
4030         (struct user_fpregs_struct): Avoid __uint*_t types.
4031
4032         [BZ #6420]
4033         * malloc/mtrace.c (tr_where): Add additional parameter to point to
4034         symbol info.  Use it instead of calling _dl_addr locally.
4035         (lock_and_info): New function.
4036         (tr_freehook): Call lock_and_info and pass symbol info as additional
4037         parameter to tr_where.
4038         (tr_mallochook): Likewise.
4039         (tr_reallochook): Likewise.
4040         (tr_memalignhook): Likewise.
4041
4042         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
4043         used and couldn't be at all thread-safe.
4044
4045 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
4046
4047         * libio/freopen.c (freopen): Don't close old file descriptor
4048         before the new one is opened.  Instead dup the new file descriptor
4049         to the old one after the new stream is created.
4050         * libio/freopen64.c (freopen64): Likewise.
4051         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
4052         * libio/fileops.c (_IO_new_file_close_it): Handle new
4053         _IO_FLAGS2_NOCLOSE flag.
4054         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
4055         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
4056         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
4057         _IO_FLAGS2_NOCLOSE flag.
4058         * include/unistd.h: Add hidden_proto for dup3.
4059         Define __have_dup3.
4060         * io/dup3.c: Define hidden symbol.
4061         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
4062
4063         [BZ #7101]
4064         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
4065         when an incomplete long option is used.
4066         * posix/tst-getopt_long1.c: New file.
4067         * posix/Makefile (tests): Add tst-getopt_long1.
4068
4069         [BZ #10138]
4070         * scripts/config.guess: Update from autoconf-2.68.
4071         * scripts/config.sub: Likewise.
4072
4073         [BZ #10157]
4074         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
4075         tests into ...
4076         (has_cpuclock): ...this.  New function.
4077         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
4078         macro here based on has_cpuclock code.
4079
4080         [BZ #10149]
4081         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
4082         First byte (not low byte) is now always NUL.
4083         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
4084
4085         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
4086         Use non-cancelable interfaces.
4087
4088         [BZ #9809]
4089         * locale/iso-639.def: Add entry for Sorani.
4090
4091         [BZ #11901]
4092         * include/stdlib.h: Move include protection to the right place.
4093         Define abort_msg_s.  Declare __abort_msg with it.
4094         * stdlib/abort.c (__abort_msg): Adjust type.
4095         * assert/assert.c (__assert_fail_base): New function.  Majority
4096         of code from __assert_fail.  Allocate memory for __abort_msg with
4097         mmap.
4098         (__assert_fail): Now call __assert_fail_base.
4099         * assert/assert-perr.c: Remove bulk of implementation.  Use
4100         __assert_fail_base.
4101         * include/assert.hL Declare __assert_fail_base.
4102         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
4103         mmap.
4104         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
4105
4106 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
4107
4108         [BZ #11952]
4109         [BZ #12453]
4110         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
4111         until all modules are registered in the DTV.
4112         * elf/Makefile: Add rules to build and run tst-tls19.
4113         * elf/tst-tls19.c: New file.
4114         * elf/tst-tls19mod1.c: New file.
4115         * elf/tst-tls19mod2.c: New file.
4116         * elf/tst-tls19mod3.c: New file.
4117         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
4118
4119         [BZ #12083]
4120         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
4121         correctly.
4122
4123         [BZ #12601]
4124         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
4125         two-byte sequence errors.
4126         * iconvdata/Makefile (tests): Add bug-iconv8.
4127         * iconvdata/bug-iconv8.c: New file.
4128
4129         [BZ #12626]
4130         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
4131         buf2 definition.
4132
4133         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
4134
4135         [BZ #12432]
4136         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
4137         (dummy_getcfa): New function.
4138         (init): Get _Unwind_GetCFA address, use dummy if not found.
4139         (backtrace_helper): In recursion check, also check whether CFA changes.
4140         (__backtrace): Completely initialize arg.
4141
4142         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
4143         storing incomplete byte sequence in state object.  Avoid testing for
4144         guaranteed too small input if we know there is enough data available.
4145
4146 2011-05-11  Andreas Schwab  <schwab@redhat.com>
4147
4148         * Makeconfig (+link-pie): Indent.
4149         * Rules (binaries-pie): Define if $(have-fpie) and
4150         $(build-shared).
4151         (binaries-shared): Also filter out $(binaries-pie).
4152         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
4153         * nscd/Makefile (others-pie): Add nscd.
4154         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
4155         ($(objpfx)nscd): Remove command override.
4156         * login/Makefile (others-pie): Add pt_chown.
4157         ($(objpfx)pt_chown): Remove command override.
4158         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
4159         remove command overrides.
4160
4161 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
4162
4163         * libio/tst_putwc.c: Fix error messages.
4164
4165         [BZ #12724]
4166         * libio/fileops.c (_IO_new_file_close_it): Always flush when
4167         currently writing and seek to current position when not.
4168         * libio/Makefile (tests): Add bug-fclose1.
4169         * libio/bug-fclose1.c: New file.
4170
4171 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
4172
4173         [BZ #12511]
4174         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
4175         don't set DF_1_NODELETE here.
4176         (do_lookup_x): When entering new entry test for copy relocation
4177         and if necessary set DF_1_NODELETE flag.
4178         * elf/tst-unique4.cc: New file.
4179         * elf/tst-unique4.h: New file.
4180         * elf/tst-unique4lib.cc: New file.
4181         * elf/Makefile: Add rules to build and run tst-unique4.
4182         Patch by Piotr Bury <pbury@goahead.com>.
4183
4184 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
4185
4186         [BZ #12052]
4187         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
4188
4189         [BZ #12625]
4190         * misc/mntent_r.c (addmntent): Flush the stream after the output
4191
4192         [BZ #12393]
4193         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
4194         (is_trusted_path_normalize): Skip initial colon.  Append slash
4195         to empty buffer.  Duplicate is_trusted_path code but allow
4196         constructed patch to be prefix.
4197         (is_dst): Allow $ORIGIN followed by /.
4198         (_dl_dst_substitute): Correct clearing of check_for_trusted.
4199         Correct testing of result of is_trusted_path_normalize
4200         (decompose_rpath): Fix warning.
4201
4202 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
4203
4204         [BZ #11257]
4205         * grp/initgroups.c (internal_getgrouplist): When we found the service
4206         list through the initgroups entry in nsswitch.conf do not always
4207         continue on a successful lookup.  Don't always use the
4208         __nss_group_database value if it is set.
4209         * nss/nsswitch.conf (initgroups): Change action for successful db
4210         lookup to continue for compatibility.
4211
4212 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
4213
4214         [BZ #11532]
4215         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
4216         and CP774 modules.
4217         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
4218         and CP774 modules.
4219         * iconvdata/tst-tables.sh: Likewise.
4220         * iconvdata/cp770.c: New file.
4221         * iconvdata/cp771.c: New file.
4222         * iconvdata/cp772.c: New file.
4223         * iconvdata/cp773.c: New file.
4224         * iconvdata/cp774.c: New file.
4225         * iconvdata/testdata/CP770: New file.
4226         * iconvdata/testdata/CP770..UTF8: New file.
4227         * iconvdata/testdata/CP771: New file.
4228         * iconvdata/testdata/CP771..UTF8: New file.
4229         * iconvdata/testdata/CP772: New file.
4230         * iconvdata/testdata/CP772..UTF8: New file.
4231         * iconvdata/testdata/CP773: New file.
4232         * iconvdata/testdata/CP773..UTF8: New file.
4233         * iconvdata/testdata/CP774: New file.
4234         * iconvdata/testdata/CP774..UTF8: New file.
4235
4236         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
4237         END CHARMAP line.
4238         * iconvdata/gen-8bit-gap.sh: Likewise.
4239         * iconvdata/gen-8bit.sh: Likewise.
4240
4241         * locale/iso-639.def: Add ary entry.
4242
4243         [BZ #11258]
4244         * locale/C-translit.h.in: Add U20A1 transliteration.
4245
4246         [BZ #12178]
4247         * locale/iso-639.def: Add wae entry.
4248         Patch by Kevin Bortis <bortis@translate-wae.ch>.
4249
4250         [BZ #12545]
4251         * locale/programs/localedef.c (construct_output_path): Use ssize_t
4252         for n.
4253
4254         [BZ #12711]
4255         * locale/C-translit.h.in: Add entry for U20B9.
4256         Patch by pravin.d.s@gmail.com.
4257
4258 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
4259
4260         [BZ #12713]
4261         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
4262         ENAMETOOLONG use generic getcwd.
4263         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
4264         in rtld.  Use *stat64.
4265         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
4266         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
4267         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
4268         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
4269         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
4270         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
4271         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
4272         __fstatat64 macros.
4273         * include/dirent.h: Add libc_hidden_proto for rewinddir.
4274         * dirent/rewinddir.c: Add libc_hidden_def.
4275         * sysdeps/mach/hurd/rewinddir.c: Likewise.
4276         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
4277
4278         * include/dirent.h (__alloc_dir): Add flags parameter.
4279         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
4280         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
4281         __alloc_dir.
4282         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
4283         from fdopendir if O_CLOEXEC is already set.
4284
4285 2011-03-15  Alan Modra  <amodra@gmail.com>
4286
4287         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
4288         l_tls_firstbyte_offset non-zero.  Save padding offset in
4289         l_tls_firstbyte_offset for later use.
4290         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
4291         freeing static tls block.
4292
4293 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
4294
4295         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
4296         where #ifdef was intended.  The intent is to prevent ARG_MAX from
4297         being defined by the kernel headers.
4298
4299 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
4300
4301         [BZ #12734]
4302         * resolv/resolv.h: Define RES_NOTLDQUERY.
4303         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
4304         no-tld-query and set RES_NOTLDQUERY.
4305         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
4306         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
4307         modern BIND to search name as TLD unless forbidden.
4308
4309 2011-05-07  Petr Baudis  <pasky@suse.cz>
4310             Ulrich Drepper  <drepper@gmail.com>
4311
4312         [BZ #12393]
4313         * elf/dl-load.c (fillin_rpath): Move trusted path check...
4314         (is_trusted_path): ...to here.
4315         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
4316         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
4317         using is_trusted_path_normalize() in setuid scripts.
4318
4319 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
4320
4321         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
4322         __BEGIN/__END_DECLS.
4323
4324 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
4325
4326         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
4327         NSS_STATUS_NOTFOUND if no record was found.
4328
4329 2011-05-05  Andreas Schwab  <schwab@redhat.com>
4330
4331         * sunrpc/Makefile (headers): Add rpc/netdb.h.
4332         (headers-not-in-tirpc): Remove rpc/netdb.h
4333         * resolv/netdb.h: Revert last change.
4334
4335 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
4336
4337         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
4338         circular dependency between libgcc.a and libc.a.
4339
4340 2011-05-05  Andreas Schwab  <schwab@redhat.com>
4341
4342         * resolv/netdb.h: Don't include <rpc/netdb.h>.
4343         * nis/Makefile: Don't install rpcsvc/*.
4344         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
4345         instead of <rpc/types.h>.
4346         (MAXHOSTNAMELEN): Define.
4347
4348 2011-05-03  Andreas Schwab  <schwab@redhat.com>
4349
4350         * elf/ldconfig.c (add_dir): Don't crash on empty path.
4351
4352 2011-04-28  Maciej Babinski  <mbabinski@google.com>
4353
4354         [BZ #12714]
4355         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
4356         gethostbyname4_r when IPv6 results are possible.
4357
4358 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
4359
4360         [BZ #12723]
4361         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
4362         _PC_PIPE_BUF handling.
4363
4364 2011-04-30  Bruno Haible  <bruno@clisp.org>
4365
4366         [BZ #12717]
4367         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
4368         * resolv/netdb.h (getnameinfo): Change type of flags parameter
4369         to 'int'.
4370         * inet/getnameinfo.c (getnameinfo): Likewise.
4371
4372 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
4373
4374         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
4375         to groups setting in database lookup.
4376         * nss/nsswitch.conf: Add initgroups entry.
4377
4378 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
4379
4380         [BZ #12685]
4381         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
4382         mode string.
4383         Patch by Eric Blake <eblake@redhat.com>.
4384
4385 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
4386
4387         * sunrpc/Makefile (need-export-routines): Add svc_run.
4388         (routines): Remove svc_run.
4389         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
4390         * sunrpc/clnt_perr.c (clnt_perrno): Export.
4391         * sunrpc/svc_run.c (svc_run): Likewise.
4392         * sunrpc/svc_udp.c (svcudp_create): Likewise.
4393
4394 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
4395
4396         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
4397         problem in reallocation in last patch.
4398
4399 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
4400
4401         * sunrpc/Makefile: Move inclusion of Rules.
4402
4403 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
4404
4405         * nss/nss_files/files-initgroups.c: New file.
4406         * nss/Makefile (libnss_files-routines): Add files-initgroups.
4407         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
4408         _nss_files_initgroups_dyn.
4409
4410 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
4411
4412         * elf/elf.h (R_ARM_IRELATIVE): Define.
4413
4414 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
4415
4416         * po/ru.po: Update from translation team.
4417
4418 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
4419
4420         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
4421         dependencies.
4422
4423 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
4424
4425         [BZ #12653]
4426         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
4427         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
4428         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
4429         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4430         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
4431
4432 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
4433
4434         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
4435         differing bytes.
4436         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
4437         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
4438         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
4439
4440 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
4441
4442         [BZ #12420]
4443         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
4444         storing it.
4445         * stdlib/bug-getcontext.c: New file.
4446         * stdlib/Makefile: Add rules to build and run bug-getcontext.
4447
4448 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4449
4450         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
4451         instructions into .machine "z9-109".
4452         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
4453         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
4454
4455 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4456
4457         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
4458         between environment variables and auxiliary vector.
4459
4460 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
4461
4462         * Makefile: Add rules to build linkobj/libc.so.
4463         * include/libc-symbols.h: Define libc_hidden_nolink.
4464         * include/rpc/auth.h: Mark functions which are to be hidden.
4465         * include/rpc/auth_des.h: Likewise.
4466         * include/rpc/auth_unix.h: Likewise.
4467         * include/rpc/clnt.h: Likewise.
4468         * include/rpc/des_crypt.h: Likewise.
4469         * include/rpc/key_prot.h: Likewise.
4470         * include/rpc/pmap_clnt.h: Likewise.
4471         * include/rpc/pmap_prot.h: Likewise.
4472         * include/rpc/pmap_rmt.h: Likewise.
4473         * include/rpc/rpc_msg.h: Likewise.
4474         * include/rpc/svc.h: Likewise.
4475         * include/rpc/svc_auth.h: Likewise.
4476         * include/rpc/xdr.h: Likewise.
4477         * nis/Makefile: Link all DSOs against linkobj/libc.so.
4478         * nss/Makefile: Likewise.
4479         * sunrpc/Makefile: Don't install headers.  Build library with normal
4480         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
4481         * sunrpc/auth_des.c: Hide exported symbols by default, export some
4482         for the compat linking library.  Remove use of INTDEF/INTUSE.
4483         * sunrpc/auth_none.c: Likewise.
4484         * sunrpc/auth_unix.c: Likewise.
4485         * sunrpc/authdes_prot.c: Likewise.
4486         * sunrpc/authuxprot.c: Likewise.
4487         * sunrpc/clnt_gen.c: Likewise.
4488         * sunrpc/clnt_perr.c: Likewise.
4489         * sunrpc/clnt_raw.c: Likewise.
4490         * sunrpc/clnt_simp.c: Likewise.
4491         * sunrpc/clnt_tcp.c: Likewise.
4492         * sunrpc/clnt_udp.c: Likewise.
4493         * sunrpc/clnt_unix.c: Likewise.
4494         * sunrpc/des_crypt.c: Likewise.
4495         * sunrpc/des_soft.c: Likewise.
4496         * sunrpc/get_myaddr.c: Likewise.
4497         * sunrpc/key_call.c: Likewise.
4498         * sunrpc/key_prot.c: Likewise.
4499         * sunrpc/netname.c: Likewise.
4500         * sunrpc/pm_getmaps.c: Likewise.
4501         * sunrpc/pm_getport.c: Likewise.
4502         * sunrpc/pmap_clnt.c: Likewise.
4503         * sunrpc/pmap_prot.c: Likewise.
4504         * sunrpc/pmap_prot2.c: Likewise.
4505         * sunrpc/pmap_rmt.c: Likewise.
4506         * sunrpc/publickey.c: Likewise.
4507         * sunrpc/rpc_cmsg.c: Likewise.
4508         * sunrpc/rpc_common.c: Likewise.
4509         * sunrpc/rpc_dtable.c: Likewise.
4510         * sunrpc/rpc_prot.c: Likewise.
4511         * sunrpc/rpc_thread.c: Likewise.
4512         * sunrpc/rtime.c: Likewise.
4513         * sunrpc/svc.c: Likewise.
4514         * sunrpc/svc_auth.c: Likewise.
4515         * sunrpc/svc_authux.c: Likewise.
4516         * sunrpc/svc_raw.c: Likewise.
4517         * sunrpc/svc_run.c: Likewise.
4518         * sunrpc/svc_simple.c: Likewise.
4519         * sunrpc/svc_tcp.c: Likewise.
4520         * sunrpc/svc_udp.c: Likewise.
4521         * sunrpc/svc_unix.c: Likewise.
4522         * sunrpc/svcauth_des.c: Likewise.
4523         * sunrpc/xcrypt.c: Likewise.
4524         * sunrpc/xdr.c: Likewise.
4525         * sunrpc/xdr_array.c: Likewise.
4526         * sunrpc/xdr_float.c: Likewise.
4527         * sunrpc/xdr_intXX_t.c: Likewise.
4528         * sunrpc/xdr_mem.c: Likewise.
4529         * sunrpc/xdr_rec.c: Likewise.
4530         * sunrpc/xdr_ref.c: Likewise.
4531         * sunrpc/xdr_sizeof.c: Likewise.
4532         * sunrpc/xdr_stdio.c: Likewise.
4533
4534 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
4535
4536         [BZ #12650]
4537         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
4538         * sysdeps/ia64/dl-tls.h: Likewise.
4539         * sysdeps/powerpc/dl-tls.h: Likewise.
4540         * sysdeps/s390/dl-tls.h: Likewise.
4541         * sysdeps/sh/dl-tls.h: Likewise.
4542         * sysdeps/sparc/dl-tls.h: Likewise.
4543         * sysdeps/x86_64/dl-tls.h: Likewise.
4544         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
4545
4546 2011-03-14  Andreas Schwab  <schwab@redhat.com>
4547
4548         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
4549         rpath element also skip the following colon.
4550         (expand_dynamic_string_token): Add is_path parameter and pass
4551         down to DL_DST_REQUIRED and _dl_dst_substitute.
4552         (decompose_rpath): Call expand_dynamic_string_token with
4553         non-zero is_path.  Ignore empty rpaths.
4554         (_dl_map_object_from_fd): Call expand_dynamic_string_token
4555         with zero is_path.
4556
4557 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
4558
4559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
4560         Make cancelable.
4561
4562 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
4563
4564         [BZ #12655]
4565         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
4566         Patch by Filipe David Manana <fdmanana@apache.org>.
4567
4568 2011-04-07  Andreas Schwab  <schwab@redhat.com>
4569
4570         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
4571         Maintain aligned stack.
4572         (CHECK_RSP): Remove unused macro.
4573
4574 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
4575
4576         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
4577         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4578
4579 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
4580
4581         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
4582
4583         * include/features.h: Mention __USE_XOPEN2K8 in comment.
4584
4585 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
4586
4587         [BZ #12518]
4588         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
4589         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
4590         * sysdeps/x86_64/memmove.c: New file.
4591         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
4592         (memcpy): Renamed to ...
4593         (__new_memcpy): This.
4594         (memcpy): Provide GLIBC_2_14 memcpy.
4595         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
4596         (memcpy): Provide GLIBC_2_2_5 memcpy.
4597
4598 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
4599
4600         [BZ #12631]
4601         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
4602
4603 2011-03-30  Andreas Schwab  <schwab@redhat.com>
4604
4605         * misc/syncfs.c: New file.
4606         * misc/Makefile (routines): Add syncfs.
4607         * posix/unistd.h: Declare syncfs.
4608         * sysdeps/unix/syscalls.list: Add syncfs.
4609
4610 2011-04-01  Andreas Schwab  <schwab@redhat.com>
4611
4612         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
4613         open_by_handle_at.
4614         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4615         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4616         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4617         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4618         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4619         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4620         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4621
4622 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
4623
4624         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
4625         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4626         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4627         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4628         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4629         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4630         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4631
4632         * io/Makefile: Compile fallocate.c, fallocate64.c, and
4633         sync_file_range.c with -fexceptions.
4634         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
4635         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
4636         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
4637         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
4638         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
4639         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
4640         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
4641         sync_file_range as cancellation point
4642         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
4643         now a wrapper around __call_sync_file_range with cancellation handling.
4644         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
4645         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
4646         function name to __call_sync_file_range.
4647         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
4648         Add call_sync_file_range.
4649
4650 2011-04-01  Andreas Schwab  <schwab@redhat.com>
4651
4652         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4653         bits/timex.h.
4654
4655 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
4656
4657         * iconv/iconv.h: Fix typo in comment.
4658         * io/fcntl.h: Likewise.
4659         * libio/stdio.h: Likewise.
4660         * posix/spawn.h: Likewise.
4661         * posix/unistd.h: Likewise.
4662         * stdlib/stdlib.h: Likewise.
4663         * time/time.h: Likewise.
4664         * wcsmbs/wchar.h: Likewise.
4665
4666         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
4667         open_by_handle): Add.
4668         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
4669         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
4670         Augment a few comments.
4671         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4672         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4673         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4674         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4675         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4676         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
4677         open_by_handle.
4678
4679         * io/fcntl.h (AT_EMPTY_PATH): Define.
4680
4681 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
4682
4683         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
4684         * sysdeps/unix/sysv/linux/bits/time.h: New file.
4685         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
4686         to...
4687         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
4688         * Versions.def: Add GLIBC_2.14.
4689         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
4690         Export.
4691
4692 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
4693
4694         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
4695         round counter.
4696         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
4697
4698 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4699
4700         [BZ #12597]
4701         * string/test-strncmp.c (do_page_test): New function.
4702         (check2): Likewise.
4703         (test_main): Call check2.
4704         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
4705
4706 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
4707
4708         [BZ #12587]
4709         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
4710         Handle cache information in CPU leaf 4.
4711         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
4712
4713 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
4714
4715         [BZ #12583]
4716         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
4717         character representation.
4718         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
4719
4720 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
4721
4722         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
4723         END(__isnan) to END(__isnanf) to match function entry point/label
4724         EALIGN(__isnanf,...).
4725
4726 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
4727
4728         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
4729
4730 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
4731
4732         [BZ #12510]
4733         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
4734         copy from the symbol referenced in the relocation to initialize the
4735         used variable.
4736         Patch by Piotr Bury <pbury@goahead.com>.
4737         * elf/Makefile: Add rules to build and tst-unique3.
4738         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
4739         * elf/tst-unique3.cc: New file.
4740         * elf/tst-unique3.h: New file.
4741         * elf/tst-unique3lib.cc: New file.
4742         * elf/tst-unique3lib2.cc: New file.
4743
4744         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
4745
4746 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
4747
4748         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
4749         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
4750         to _start.
4751
4752 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
4753
4754         * elf/dl-load.c (_dl_map_object): If we are looking for the first
4755         to-be-loaded object along a path to loader is ld.so.
4756
4757 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
4758             Ulrich Drepper  <drepper@gmail.com>
4759
4760         * sysdeps/x86_64/memset.S: After aligning destination, code
4761         branches to different locations depending on the value of
4762         misalignment, when multiarch is enabled. Fix this.
4763
4764 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
4765
4766         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
4767         Set _x86_64_preferred_memory_instruction for AMD processsors.
4768         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4769         Set bit_Prefer_SSE_for_memop for AMD processors.
4770
4771 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
4772
4773         * libio/fmemopen.c (fmemopen): Optimize a bit.
4774
4775 2011-03-03  Andreas Schwab  <schwab@redhat.com>
4776
4777         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
4778
4779 2011-03-03  Roland McGrath  <roland@redhat.com>
4780
4781         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
4782
4783 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
4784
4785         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
4786         __bzero_ultra1 instead of __memset_ultra1.
4787
4788 2011-02-23  Andreas Schwab  <schwab@redhat.com>
4789             Ulrich Drepper  <drepper@gmail.com>
4790
4791         [BZ #12509]
4792         * include/link.h (struct link_map): Add l_orig_initfini.
4793         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
4794         returning unsuccessfully.
4795         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
4796         close of a file loaded at startup, restore the original l_initfini
4797         list.
4798         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
4799         list, store the pointer.
4800         * elf/Makefile ($(objpfx)noload-mem): New rule.
4801         (noload-ENV): Define.
4802         (tests): Add $(objpfx)noload-mem.
4803         * elf/noload.c: Include <memcheck.h>.
4804         (main): Call mtrace.  Close all opened handles.
4805
4806 2011-02-17  Andreas Schwab  <schwab@redhat.com>
4807
4808         [BZ #12454]
4809         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
4810         dependencies are missing.
4811
4812 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4813
4814         Fix __if_freereq crash: Unlike the generic version which uses free,
4815         Hurd needs munmap.
4816         * sysdeps/mach/hurd/ifreq.h: New file.
4817
4818 2011-01-27  Petr Baudis  <pasky@suse.cz>
4819             Ulrich Drepper  <drepper@gmail.com>
4820
4821         [BZ 12445]#
4822         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
4823         to extend_alloca().
4824         * stdio-common/bug23.c: New file.
4825         * stdio-common/Makefile (tests): Add bug23.
4826
4827 2010-09-28  Andreas Schwab  <schwab@redhat.com>
4828             Ulrich Drepper  <drepper@gmail.com>
4829
4830         [BZ #12489]
4831         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
4832         before performing relro protection.  At old place add assertion
4833         to make sure nothing changed.
4834
4835 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
4836             Glauber de Oliveira Costa  <glommer@gmail.com>
4837
4838         * elf/elf.h: Add new ARM TLS relocs.
4839
4840 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
4841
4842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4843         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
4844         cast from r3.
4845         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
4846         'tests' variable.
4847         * sysdeps/wordsize-64/tst-writev.c: New file.
4848
4849 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
4850
4851         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
4852         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
4853         insns in _dl_start to prevent a TOC reference before relocs are
4854         resolved.
4855
4856 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
4857
4858         [BZ #12469]
4859         * Makeconfig: Remove RANLIB definition.
4860         * Makerules: Don't use RANLIB.
4861         * aclocal.m4: Remove ranlib test.
4862         * configure.in: No need to check for ranlib.
4863         * elf/rtld-Rules: Don't use RANLIB.
4864
4865 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4866
4867         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
4868         protection macro.
4869         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
4870         inclusion protection macro.
4871
4872         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
4873         SIGRTMIN and SIGRTMAX and print information in that case only when
4874         SIGRTMIN is defined.
4875
4876 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
4877
4878         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
4879         arginfo fn returning -1.
4880
4881         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
4882         and thousands string is zero terminated.
4883
4884 2011-02-03  Andreas Schwab  <schwab@redhat.com>
4885
4886         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
4887         sysdeps/unix/sysv/linux/bits/socket.h.
4888
4889 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4890
4891         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
4892         (__CPU_COUNT): Remove old macros.
4893         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
4894         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
4895         (__CPU_ALLOC, __CPU_FREE): Add macros.
4896         (__sched_cpualloc, __sched_cpufree): Add declarations.
4897
4898 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
4899
4900         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
4901         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
4902         * nscd/aicache.c (addhstaiX): Return timeout of added value.
4903         (readdhstai): Return value of addhstaiX call.
4904         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
4905         (addgrbyX): Return value returned by cache_addgr.
4906         (readdgrbyname): Return value returned by addgrbyX.
4907         (readdgrbygid): Likewise.
4908         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
4909         (addpwbyX): Return value returned by cache_addpw.
4910         (readdpwbyname): Return value returned by addhstbyX.
4911         (readdpwbyuid): Likewise.
4912         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
4913         (addservbyX): Return value returned by cache_addserv.
4914         (readdservbyname): Return value returned by addservbyX:
4915         (readdservbyport): Likewise.
4916         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
4917         (addhstbyX): Return value returned by cache_addhst.
4918         (readdhstbyname): Return value returned by addhstbyX.
4919         (readdhstbyaddr): Likewise.
4920         (readdhstbynamev6): Likewise.
4921         (readdhstbyaddrv6): Likewise.
4922         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
4923         (readdinitgroups): Return value returned by addinitgroupsX.
4924         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
4925         (prune_cache): Keep track of timeout value of re-added entries.
4926         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
4927         * nscd/nscd.h: Adjust prototypes of readd* functions.
4928
4929 2011-02-04  Roland McGrath  <roland@redhat.com>
4930
4931         * nis/nis_server.c (nis_servstate): Use the right name for 0.
4932         (nis_stats): Likewise.
4933         * nis/nis_modify.c (nis_modify): Likewise.
4934         * nis/nis_remove.c (nis_remove): Likewise.
4935         * nis/nis_add.c (nis_add): Likewise.
4936
4937         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
4938
4939         * posix/fnmatch_loop.c: Add some consts.
4940
4941         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
4942
4943 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
4944
4945         [BZ #12460]
4946         * config.make.in (config-cflags-novzeroupper): Define.
4947         * configure.in: Substitute libc_cv_cc_novzeroupper.
4948         * elf/Makefile (AVX-CFLAGS): Define.
4949         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
4950         (CFLAGS-tst-auditmod4a.c): Likewise.
4951         (CFLAGS-tst-auditmod4b.c): Likewise.
4952         (CFLAGS-tst-auditmod6b.c): Likewise.
4953         (CFLAGS-tst-auditmod6c.c): Likewise.
4954         (CFLAGS-tst-auditmod7b.c): Likewise.
4955         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
4956
4957 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
4958
4959         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
4960         function to the callback.
4961         Patch partly by Jiri Olsa <jolsa@redhat.com>.
4962
4963 2011-02-02  Andreas Schwab  <schwab@redhat.com>
4964
4965         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
4966         of errno.
4967
4968 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
4969
4970         [BZ #11724]
4971         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
4972         of constructors.
4973         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
4974         of destructors.
4975         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
4976
4977         [BZ #11724]
4978         * elf/Makefile: Add rules to build and run new test.
4979         * elf/tst-initorder.c: New file.
4980         * elf/tst-initorder.exp: New file.
4981         * elf/tst-initordera1.c: New file.
4982         * elf/tst-initordera2.c: New file.
4983         * elf/tst-initordera3.c: New file.
4984         * elf/tst-initordera4.c: New file.
4985         * elf/tst-initorderb1.c: New file.
4986         * elf/tst-initorderb2.c: New file.
4987         * elf/tst-order-a1.c: New file.
4988         * elf/tst-order-a2.c: New file.
4989         * elf/tst-order-a3.c: New file.
4990         * elf/tst-order-a4.c: New file.
4991         * elf/tst-order-b1.c: New file.
4992         * elf/tst-order-b2.c: New file.
4993         * elf/tst-order-main.c: New file.
4994         New test case by George Gensure <werkt0@gmail.com>.
4995
4996 2010-10-01  Andreas Schwab  <schwab@redhat.com>
4997
4998         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
4999         decoding ACE if AI_CANONIDN.
5000
5001 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
5002
5003         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
5004
5005 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
5006
5007         * version.h (RELEASE): Bump for 2.13 release.
5008         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
5009
5010         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
5011
5012         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
5013         MADV_NOHUGEPAGE.
5014         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
5015         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
5016         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5017         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
5018         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
5019         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
5020
5021         * posix/getconf.c: Update copyright year.
5022         * catgets/gencat.c: Likewise.
5023         * csu/version.c: Likewise.
5024         * debug/catchsegv.sh: Likewise.
5025         * debug/xtrace.sh: Likewise.
5026         * elf/ldconfig.c: Likewise.
5027         * elf/ldd.bash.in: Likewise.
5028         * elf/sprof.c (print_version): Likewise.
5029         * iconv/iconv_prog.c: Likewise.
5030         * iconv/iconvconfig.c: Likewise.
5031         * locale/programs/locale.c: Likewise.
5032         * locale/programs/localedef.c: Likewise.
5033         * malloc/memusage.sh: Likewise.
5034         * malloc/mtrace.pl: Likewise.
5035         * nscd/nscd.c (print_version): Likewise.
5036         * nss/getent.c: Likewise.
5037
5038         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
5039         PF_CAIF, and PF_ALG.
5040         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5041
5042 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
5043
5044         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
5045         (modules-names): Use them.
5046         (ifunc-test-modules, ifunc-pie-tests): Define.
5047         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
5048         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
5049         (test-extras): Likewise.
5050         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
5051         $(compile-command.c).
5052         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
5053         (all-built-dso): Define.
5054         (check-textrel.out, check-execstack.out): Depend on it.
5055
5056         * configure.in: Don't override --enable-multi-arch.
5057
5058 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
5059
5060         [BZ #6812]
5061         * nscd/hstcache.c (tryagain): Define.
5062         (cache_addhst): Return tryagain not notfound for temporary errors.
5063         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
5064         failed.
5065
5066 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
5067
5068         [BZ #10563]
5069         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
5070         to make the syscall.
5071         * sysdeps/unix/sysv/linux/setgroups.c: New file.
5072
5073         [BZ #12378]
5074         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
5075         and fall back to matching as normal character if the string ends before
5076         the matching ']' is found.  This is what POSIX requires.
5077         * posix/testfnm.c: Adjust test result.
5078         * posix/globtest.sh: Adjust test result.  Add new test.
5079         * posix/tst-fnmatch.input: Likewise.
5080         * posix/tst-fnmatch2.c: Add new test.
5081
5082 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
5083
5084         * elf/Makefile (check-execstack): Revert last change.  Depend on
5085         check-execstack.h.
5086         (check-execstack.h): New target.
5087         (generated): Add check-execstack.h.
5088         * elf/check-execstack.c: Include "check-execstack.h".
5089         (main): Revert last change.
5090         (handle_file): Return zero if GNU_STACK is absent and
5091         DEFAULT_STACK_PERMS doesn't include PF_X.
5092
5093 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
5094
5095         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
5096         in child fails because the descriptor is already closed.
5097         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
5098         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
5099         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
5100
5101         [BZ #12397]
5102         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
5103         syscall.
5104
5105         [BZ #10484]
5106         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
5107         temporary buffer used to handle multi lookups locally.
5108         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
5109
5110 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
5111
5112         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
5113         loader is ld.so.
5114
5115 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
5116
5117         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
5118         alignment for SSE2.
5119
5120 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
5121
5122         [BZ #12394]
5123         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
5124         characters.  When rounding increased number of integer digits recompute
5125         number of groups.
5126         * stdio-common/tst-grouping.c: New file.
5127         * stdio-common/Makefile: Add rules to build and run tst-grouping.
5128
5129 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
5130
5131         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
5132         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
5133
5134         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
5135         void.
5136         * bits/select.h: Likewise.
5137
5138 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
5139
5140         * po/ja.po: Update from translation team.
5141
5142 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
5143
5144         [BZ #11155]
5145         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
5146         implementation just like for lxstat, fxstatat, et al.
5147
5148 2010-12-27  Jim Meyering  <meyering@redhat.com>
5149
5150         [BZ #12348]
5151         * posix/regexec.c (build_trtable): Return failure indication upon
5152         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
5153
5154 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
5155
5156         [BZ #12201]
5157         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
5158         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
5159         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
5160         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
5161
5162         [BZ #12207]
5163         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
5164
5165         [BZ #12204]
5166         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
5167         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
5168
5169 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5170
5171         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
5172         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
5173         script has SORT_BY_INIT_PRIORITY.
5174         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
5175         NO_CTORS_DTORS_SECTIONS is defined.
5176         * elf/soinit.c: Likewise.
5177         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
5178         NO_CTORS_DTORS_SECTIONS is defined.
5179         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
5180         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
5181         * sysdeps/sh/init-first.c: Likewise.
5182         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5183
5184 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
5185
5186         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
5187         always use the slow path.
5188
5189 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
5190
5191         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
5192         similar rule which adds the sysdep directories to the header search in
5193         order to pick up the correct platform stackinfo.h.
5194         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
5195         perform test if it is, otherwise return successfully without testing.
5196         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
5197         DEFAULT_STACK_PERMS define in stackinfo.h.
5198         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
5199         defined in stackinfo.h.
5200         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
5201         DEFAULT_STACK_PERMS defined in stackinfo.h.
5202         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
5203         * sysdeps/ia64/stackinfo.h: Likewise.
5204         * sysdeps/s390/stackinfo.h: Likewise.
5205         * sysdeps/sh/stackinfo.h: Likewise.
5206         * sysdeps/sparc/stackinfo.h: Likewise.
5207         * sysdeps/x86_64/stackinfo.h: Likewise.
5208         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
5209         PF_X for powerpc64.  Retain PF_X for powerpc32.
5210
5211 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
5212
5213         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
5214         accurately.
5215         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
5216         GETDENTS_64BIT_ALIGNED.
5217
5218 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
5219
5220         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
5221
5222 2010-12-10  Andreas Schwab  <schwab@redhat.com>
5223
5224         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
5225         _GNU_SOURCE.
5226
5227         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
5228         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
5229         Remove __restrict.
5230         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
5231         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
5232
5233 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
5234
5235         [BZ #11655]
5236         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
5237         are initialized.
5238
5239 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
5240
5241         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
5242
5243 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
5244
5245         * po/it.po: Update from translation team.
5246
5247 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
5248
5249         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
5250         unused codes.
5251
5252 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
5253
5254         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
5255
5256 2010-11-24  Andreas Schwab  <schwab@redhat.com>
5257
5258         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
5259         specially.
5260         (gaih_getanswer_slice): Likewise.
5261
5262 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
5263
5264         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
5265
5266 2010-05-31  Petr Baudis  <pasky@suse.cz>
5267
5268         [BZ #11149]
5269         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
5270         silently even in the chroot mode.
5271
5272 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
5273
5274         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
5275         last patch a bit.  Pretty printing
5276
5277 2010-05-31  Petr Baudis <pasky@suse.cz>
5278
5279         [BZ #10085]
5280         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
5281         initialization of skip_initgroups_dyn.
5282
5283 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
5284
5285         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
5286         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
5287
5288 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
5289
5290         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
5291
5292 2010-11-11  Andreas Schwab  <schwab@redhat.com>
5293
5294         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
5295         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
5296         (tst-fnmatch-ENV): Set MALLOC_TRACE.
5297         ($(objpfx)tst-fnmatch-mem): New rule.
5298         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
5299         * posix/tst-fnmatch.c (main): Call mtrace.
5300
5301 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
5302
5303         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5304         Support Intel processor model 6 and model 0x2c.
5305
5306 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
5307
5308         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
5309           signed comparison.
5310
5311 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
5312
5313         [BZ #12205]
5314         * string/test-strncasecmp.c (check_result): New function.
5315         (do_one_test): Use it.
5316         (check1): New function.
5317         (test_main): Use it.
5318         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
5319         Support strcasecmp and strncasecmp.
5320
5321 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
5322
5323         [BZ #12194]
5324         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
5325         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5326
5327 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
5328
5329         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
5330         IFUNC support.
5331         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
5332         memset-x86-64.
5333         * sysdeps/x86_64/multiarch/bzero.S: New file.
5334         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
5335         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
5336         * sysdeps/x86_64/multiarch/memset.S: New file.
5337         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
5338         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5339         Set bit_Prefer_SSE_for_memop for Intel processors.
5340         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
5341         Define.
5342         (index_Prefer_SSE_for_memop): Define.
5343         (HAS_PREFER_SSE_FOR_MEMOP): Define.
5344
5345 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
5346
5347         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
5348         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
5349
5350 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
5351
5352         [BZ #12191]
5353         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
5354         (__x86_64_raw_data_cache_size_half): Likewise.
5355         (__x86_64_raw_shared_cache_size): Likewise.
5356         (__x86_64_raw_shared_cache_size_half): Likewise.
5357
5358         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
5359         (__x86_64_raw_data_cache_size_half): Likewise.
5360         (__x86_64_raw_shared_cache_size): Likewise.
5361         (__x86_64_raw_shared_cache_size_half): Likewise.
5362         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
5363         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
5364         and __x86_64_raw_shared_cache_size_half.  Round
5365         __x86_64_data_cache_size_half, __x86_64_data_cache_size
5366         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
5367         to multiple of 256 bytes.
5368
5369 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
5370
5371         [BZ #12167]
5372         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
5373         of inacessible symlinks.  Verify result of symlink before returning it.
5374         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
5375         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
5376
5377 2010-10-28  Erich Ritz  <erichritz@gmail.com>
5378
5379         * math/math.h (isinf): Fix typo in comment.
5380
5381 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
5382
5383         * po/da.po: Update from translation team.
5384
5385 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
5386
5387         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
5388         is added to the list.
5389
5390 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5391             Ulrich Drepper  <drepper@gmail.com>
5392
5393         * elf/dl-object.c (_dl_new_object): Don't append the new object to
5394         the global list here.  Move code to...
5395         (_dl_add_to_namespace_list): ...here.  New function.
5396         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
5397         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
5398         * elf/dl-load.c (lose): Don't remove the element from the list.
5399         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
5400         (_dl_map_object): Likewise.
5401
5402 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
5403
5404         [BZ #12159]
5405         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
5406         into all bytes of SSE register.
5407         Patch by Richard Li <richardpku@gmail.com>.
5408
5409 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
5410
5411         [BZ #12140]
5412         * malloc/malloc.c (_int_free): Fill correct number of bytes when
5413         perturbing.
5414
5415 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
5416
5417         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
5418         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
5419         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
5420         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
5421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
5422         submachine.
5423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
5424
5425 2010-10-22  Andreas Schwab  <schwab@redhat.com>
5426
5427         * include/dlfcn.h (__RTLD_SECURE): Define.
5428         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
5429         mode & __RTLD_SECURE instead.
5430         (open_path): Rename preloaded parameter to secure.
5431         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
5432         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
5433         * elf/dl-deps.c (openaux): Likewise.
5434         * elf/rtld.c (struct map_args): Remove is_preloaded.
5435         (map_doit): Don't use it.
5436         (dl_main): Likewise.
5437         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
5438         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
5439
5440 2010-09-09  Andreas Schwab  <schwab@redhat.com>
5441
5442         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
5443         (sysd-rules-targets): Remove duplicates.
5444         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
5445         rtld-%.$o dependency.
5446
5447 2010-10-18  Andreas Schwab  <schwab@redhat.com>
5448
5449         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
5450         _dl_map_object do it.
5451
5452 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
5453
5454         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
5455         fast fma builtins, define the macros in the C99 standard.
5456         (FP_FAST_FMAF): Likewise.
5457         (FP_FAST_FMAL): Likewise.
5458         * sysdeps/x86_64/bits/mathdef.h: Likewise.
5459
5460         * bits/mathdef.h: Update copyright year.
5461         * sysdeps/powerpc/bits/mathdef.h: Likewise.
5462
5463 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
5464
5465         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
5466         builtins, define the macros in the C99 standard.
5467         (FP_FAST_FMAF): Likewise.
5468         (FP_FAST_FMAL): Likewise.
5469         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
5470         multiply/add.
5471         (FP_FAST_FMAF): Likewise.
5472
5473 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
5474
5475         [BZ #3268]
5476         * math/libm-test.inc (fma_test): Some new testcases.
5477         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
5478         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
5479         y and infinite z.  Do multiplication by C already in long double.
5480         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
5481         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
5482         y and infinite z.  Do bitwise or of inexact bit into u.d.
5483         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
5484         * sysdeps/i386/fpu/s_fmaf.S: Removed.
5485         * sysdeps/i386/fpu/s_fma.S: Removed.
5486         * sysdeps/i386/fpu/s_fmal.S: Removed.
5487
5488 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
5489
5490         [BZ #3268]
5491         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
5492         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
5493         computation is not scheduled after fetestexcept.  Fix value
5494         of minimum denormal long double.
5495
5496 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
5497
5498         [BZ #3268]
5499         * math/libm-test.inc (fma_test): Add some more tests.
5500         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
5501         correctly.
5502
5503 2010-10-15  Andreas Schwab  <schwab@redhat.com>
5504
5505         * scripts/data/localplt-s390-linux-gnu.data: New file.
5506         * scripts/data/localplt-s390x-linux-gnu.data: New file.
5507
5508 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
5509
5510         [BZ #3268]
5511         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
5512         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
5513         instead of dbl-64.
5514         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
5515         inlines.
5516         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
5517         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
5518         if one of x and y is very large and the other is subnormal.
5519         * sysdeps/s390/fpu/s_fmaf.c: New file.
5520         * sysdeps/s390/fpu/s_fma.c: New file.
5521         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
5522         * sysdeps/powerpc/fpu/s_fma.S: New file.
5523         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
5524         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
5525         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
5526
5527 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
5528
5529         [BZ #3268]
5530         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
5531         fma tests.
5532         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
5533         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
5534         * sysdeps/i386/i686/multiarch/s_fma.c: Include
5535         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
5536         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
5537         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
5538         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
5539
5540 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
5541
5542         [BZ #12078]
5543         * posix/regcomp.c (parse_branch): One more memory leak plugged.
5544         * posix/bug-regex31.input: Add test case.
5545
5546 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
5547
5548         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
5549         * posix/bug-regex31.input: New file.
5550
5551         [BZ #12078]
5552         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
5553         (parse_sub_exp): Fix last change, use postorder.
5554
5555         * posix/bug-regex31.c: New file.
5556         * posix/Makefile: Add rules to build and run bug-regex31.
5557
5558         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
5559
5560         [BZ #12078]
5561         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
5562
5563         [BZ #12108]
5564         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
5565         to have entries in sys_siglist.
5566
5567         [BZ #12093]
5568         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
5569         be NULL.
5570
5571 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
5572
5573         [BZ #3268]
5574         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
5575         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
5576         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
5577         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
5578         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
5579         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
5580         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
5581         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
5582         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
5583         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
5584         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
5585         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
5586         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
5587         * math/ftestexcept.c (fetestexcept): Likewise.
5588         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
5589         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
5590         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
5591         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
5592         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
5593         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
5594         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5595
5596 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
5597
5598         [BZ #12107]
5599         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
5600         newline.
5601
5602 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
5603
5604         * string/bug-strstr1.c: New file.
5605         * string/Makefile: Add rules to build and run bug-strstr1.
5606
5607 2010-10-05  Eric Blake  <eblake@redhat.com>
5608
5609         [BZ #12092]
5610         * string/str-two-way.h (two_way_long_needle): Always clear memory
5611         when skipping input due to the shift table.
5612
5613 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
5614
5615         [BZ #12005]
5616         * malloc/mcheck.c: Handle large requests.
5617
5618         [BZ #12077]
5619         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
5620         for strncmp and strncasecmp.
5621         * string/stratcliff.c: Add tests for strcmp and strncmp.
5622         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
5623
5624 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5625
5626         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
5627         __set_fpscr.
5628
5629 2010-09-30  Andreas Jaeger  <aj@suse.de>
5630
5631         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
5632         (CGROUP_SUPER_MAGIC): Define.
5633         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
5634         Handle btrfs and cgroup file systems.
5635         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
5636         Likewise.
5637
5638 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
5639
5640         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
5641         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
5642
5643 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5644
5645         [BZ #12067]
5646         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
5647         trying to locate the ELF header.
5648
5649 2010-09-27  Andreas Schwab  <schwab@redhat.com>
5650
5651         [BZ #11611]
5652         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
5653         Mask out sign-bit copies when constructing f_fsid.
5654
5655 2010-09-24  Petr Baudis <pasky@suse.cz>
5656
5657         * debug/stack_chk_fail_local.c: Add missing licence exception.
5658         * debug/warning-nop.c: Likewise.
5659
5660 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
5661
5662         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
5663         implementing getdents64 using getdents syscall, set d_type if
5664         __ASSUME_GETDENTS32_D_TYPE.
5665
5666 2010-09-16  Andreas Schwab  <schwab@redhat.com>
5667
5668         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
5669         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
5670
5671 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
5672
5673         [BZ #12037]
5674         * posix/unistd.h: Undo change of feature selection for ftruncate from
5675         2010-01-11.
5676
5677 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
5678
5679         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
5680         detection.
5681
5682 2010-09-20  Andreas Schwab  <schwab@redhat.com>
5683
5684         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
5685         fanotify_mark.
5686         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
5687
5688 2010-09-14  Andreas Schwab  <schwab@redhat.com>
5689
5690         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
5691         variables after CHECK_SP call.
5692         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
5693
5694 2010-09-13  Andreas Schwab  <schwab@redhat.com>
5695             Ulrich Drepper  <drepper@redhat.com>
5696
5697         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
5698         re-relocationg ld.so.
5699         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
5700         _dl_init_paths call.
5701         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
5702         here anymore.
5703
5704 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
5705
5706         * resolv/res_init.c (__res_vinit): Count the default server we added.
5707
5708 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
5709             Ulrich Drepper  <drepper@redhat.com>
5710
5711         [BZ #11968]
5712         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
5713         (____longjmp_chk): Use %ebx for saving value across system call.
5714         Add unwind info.
5715
5716 2010-09-06  Andreas Schwab  <schwab@redhat.com>
5717
5718         * manual/Makefile: Don't mix pattern rules with normal rules.
5719
5720 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
5721
5722         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
5723         operation.
5724         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
5725         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5726         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5727         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5728         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5729         Likewise.
5730
5731 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
5732
5733         [BZ #11979]
5734         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
5735         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
5736
5737 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
5738
5739         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
5740         * sysdeps/x86_64/addmul_1.S: Likewise.
5741         * sysdeps/x86_64/lshift.S: Likewise.
5742         * sysdeps/x86_64/mul_1.S: Likewise.
5743         * sysdeps/x86_64/rshift.S: Likewise.
5744         * sysdeps/x86_64/sub_n.S: Likewise.
5745         * sysdeps/x86_64/submul_1.S: Likewise.
5746
5747 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5748
5749         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
5750         Define __sched_param instead of SCHED_* and sched_param when
5751         <bits/sched.h> is included with __need_schedparam defined.
5752         * bits/sched.h [__need_schedparam]
5753         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
5754         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
5755         (__defined_schedparam): Define to 1.
5756         (__sched_param): New structure, identical to sched_param.
5757         (__need_schedparam): Undefine.
5758
5759 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
5760
5761         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
5762         (epoll_create1): Declare.
5763
5764         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
5765
5766 2010-08-31  Andreas Schwab  <schwab@redhat.com>
5767
5768         [BZ #7066]
5769         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
5770         shifting retval into place.
5771
5772 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
5773
5774         * nis/rpcsvc/nis.h: Update copyright notice.
5775         * nis/rpcsvc/nis.x: Likewise.
5776         * nis/rpcsvc/nis_callback.h: Likewise.
5777         * nis/rpcsvc/nis_callback.x: Likewise.
5778         * nis/rpcsvc/nis_object.x: Likewise.
5779         * nis/rpcsvc/nis_tags.h: Likewise.
5780         * nis/rpcsvc/yp.h: Likewise.
5781         * nis/rpcsvc/yp.x: Likewise.
5782         * nis/rpcsvc/ypupd.h: Likewise.
5783         * nis/yp_xdr.c: Likewise.
5784         * nis/ypupdate_xdr.c: Likewise.
5785
5786         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
5787         mainly the body of pmap_getport.  Add parameters to specify timeouts.
5788         (pmap_getport): Use __libc_rpc_getport.
5789         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
5790         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
5791         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
5792
5793 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
5794
5795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
5796         fanotify_mark.
5797
5798 2010-08-27  Roland McGrath  <roland@redhat.com>
5799
5800         * sysdeps/i386/i686/multiarch/Makefile
5801         (CFLAGS-varshift.c): New variable.
5802
5803 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
5804
5805         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
5806         * sysdeps/i386/i686/multiarch/varshift.c: New file.
5807
5808         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
5809
5810         * sysdeps/x86_64/strlen.S: Minimal code improvement.
5811
5812 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
5813
5814         * sysdeps/x86_64/strlen.S: Unroll the loop.
5815         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
5816         strlen-sse2 strlen-sse2-bsf.
5817         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
5818         __strlen_no_bsf if bit_Slow_BSF is set.
5819         (__strlen_sse42): Removed.
5820         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
5821         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
5822
5823 2010-08-25  Roland McGrath  <roland@redhat.com>
5824
5825         * sysdeps/x86_64/multiarch/varshift.S: File removed.
5826         * sysdeps/x86_64/multiarch/varshift.c: New file.
5827         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
5828         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
5829         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
5830         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5831
5832 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
5833
5834         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
5835         strlen-sse2 strlen-sse2-bsf.
5836         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
5837         __strlen_sse2_bsf if bit_Slow_BSF is unset.
5838         (__strlen_sse2): Removed.
5839         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
5840         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
5841         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
5842         bit_Slow_BSF for Atom.
5843         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
5844         (index_Slow_BSF): Define.
5845         (HAS_SLOW_BSF): Define.
5846
5847 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
5848
5849         [BZ #10851]
5850         * resolv/res_init.c (__res_vinit): When no server address at all
5851         is given default to loopback.
5852
5853 2010-08-24  Roland McGrath  <roland@redhat.com>
5854
5855         * configure.in: Remove config-name.h generation.
5856         * configure: Regenerated.
5857         * config-name.in: File removed.
5858         * scripts/config-uname.sh: New file.
5859         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
5860         ($(objdir)config-name.h): New target.
5861
5862         * sunrpc/rpc_parse.h: Avoid nested comment.
5863
5864 2010-08-24  Richard Henderson  <rth@redhat.com>
5865             Ulrich Drepper  <drepper@redhat.com>
5866             H.J. Lu  <hongjiu.lu@intel.com>
5867
5868         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
5869         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
5870         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
5871         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
5872         _mm_alignr_epi8 with _mm_loadu_si128.
5873         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
5874         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
5875         (__m128i_shift_right): Removed.
5876         * sysdeps/i386/i686/multiarch/varshift.h: New file.
5877         * sysdeps/i386/i686/multiarch/varshift.S: New file.
5878         * sysdeps/x86_64/multiarch/varshift.h: New file.
5879         * sysdeps/x86_64/multiarch/varshift.S: New file.
5880
5881 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
5882
5883         * configure.in: Move assembler checks to before sysdep dir checking.
5884
5885 2010-08-20  Petr Baudis  <pasky@suse.cz>
5886
5887         * LICENSES: Sync the sunrpc license.
5888
5889 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
5890
5891         * sunrpc/auth_des.c: Update copyright notice once again.
5892         * sunrpc/auth_none.c: Likewise.
5893         * sunrpc/auth_unix.c: Likewise.
5894         * sunrpc/authdes_prot.c: Likewise.
5895         * sunrpc/authuxprot.c: Likewise.
5896         * sunrpc/bindrsvprt.c: Likewise.
5897         * sunrpc/clnt_gen.c: Likewise.
5898         * sunrpc/clnt_perr.c: Likewise.
5899         * sunrpc/clnt_raw.c: Likewise.
5900         * sunrpc/clnt_simp.c: Likewise.
5901         * sunrpc/clnt_tcp.c: Likewise.
5902         * sunrpc/clnt_udp.c: Likewise.
5903         * sunrpc/clnt_unix.c: Likewise.
5904         * sunrpc/des_crypt.c: Likewise.
5905         * sunrpc/des_soft.c: Likewise.
5906         * sunrpc/get_myaddr.c: Likewise.
5907         * sunrpc/getrpcport.c: Likewise.
5908         * sunrpc/key_call.c: Likewise.
5909         * sunrpc/key_prot.c: Likewise.
5910         * sunrpc/openchild.c: Likewise.
5911         * sunrpc/pm_getmaps.c: Likewise.
5912         * sunrpc/pm_getport.c: Likewise.
5913         * sunrpc/pmap_clnt.c: Likewise.
5914         * sunrpc/pmap_prot.c: Likewise.
5915         * sunrpc/pmap_prot2.c: Likewise.
5916         * sunrpc/pmap_rmt.c: Likewise.
5917         * sunrpc/rpc/auth.h: Likewise.
5918         * sunrpc/rpc/auth_unix.h: Likewise.
5919         * sunrpc/rpc/clnt.h: Likewise.
5920         * sunrpc/rpc/des_crypt.h: Likewise.
5921         * sunrpc/rpc/key_prot.h: Likewise.
5922         * sunrpc/rpc/netdb.h: Likewise.
5923         * sunrpc/rpc/pmap_clnt.h: Likewise.
5924         * sunrpc/rpc/pmap_prot.h: Likewise.
5925         * sunrpc/rpc/pmap_rmt.h: Likewise.
5926         * sunrpc/rpc/rpc.h: Likewise.
5927         * sunrpc/rpc/rpc_des.h: Likewise.
5928         * sunrpc/rpc/rpc_msg.h: Likewise.
5929         * sunrpc/rpc/svc.h: Likewise.
5930         * sunrpc/rpc/svc_auth.h: Likewise.
5931         * sunrpc/rpc/types.h: Likewise.
5932         * sunrpc/rpc/xdr.h: Likewise.
5933         * sunrpc/rpc_clntout.c: Likewise.
5934         * sunrpc/rpc_cmsg.c: Likewise.
5935         * sunrpc/rpc_common.c: Likewise.
5936         * sunrpc/rpc_cout.c: Likewise.
5937         * sunrpc/rpc_dtable.c: Likewise.
5938         * sunrpc/rpc_hout.c: Likewise.
5939         * sunrpc/rpc_main.c: Likewise.
5940         * sunrpc/rpc_parse.c: Likewise.
5941         * sunrpc/rpc_parse.h: Likewise.
5942         * sunrpc/rpc_prot.c: Likewise.
5943         * sunrpc/rpc_sample.c: Likewise.
5944         * sunrpc/rpc_scan.c: Likewise.
5945         * sunrpc/rpc_scan.h: Likewise.
5946         * sunrpc/rpc_svcout.c: Likewise.
5947         * sunrpc/rpc_tblout.c: Likewise.
5948         * sunrpc/rpc_util.c: Likewise.
5949         * sunrpc/rpc_util.h: Likewise.
5950         * sunrpc/rpcinfo.c: Likewise.
5951         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
5952         * sunrpc/rpcsvc/key_prot.x: Likewise.
5953         * sunrpc/rpcsvc/klm_prot.x: Likewise.
5954         * sunrpc/rpcsvc/mount.x: Likewise.
5955         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
5956         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
5957         * sunrpc/rpcsvc/rex.x: Likewise.
5958         * sunrpc/rpcsvc/rstat.x: Likewise.
5959         * sunrpc/rpcsvc/rusers.x: Likewise.
5960         * sunrpc/rpcsvc/sm_inter.x: Likewise.
5961         * sunrpc/rpcsvc/spray.x: Likewise.
5962         * sunrpc/rpcsvc/yppasswd.x: Likewise.
5963         * sunrpc/rtime.c: Likewise.
5964         * sunrpc/svc.c: Likewise.
5965         * sunrpc/svc_auth.c: Likewise.
5966         * sunrpc/svc_authux.c: Likewise.
5967         * sunrpc/svc_raw.c: Likewise.
5968         * sunrpc/svc_run.c: Likewise.
5969         * sunrpc/svc_simple.c: Likewise.
5970         * sunrpc/svc_tcp.c: Likewise.
5971         * sunrpc/svc_udp.c: Likewise.
5972         * sunrpc/svc_unix.c: Likewise.
5973         * sunrpc/svcauth_des.c: Likewise.
5974         * sunrpc/xcrypt.c: Likewise.
5975         * sunrpc/xdr.c: Likewise.
5976         * sunrpc/xdr_array.c: Likewise.
5977         * sunrpc/xdr_float.c: Likewise.
5978         * sunrpc/xdr_mem.c: Likewise.
5979         * sunrpc/xdr_rec.c: Likewise.
5980         * sunrpc/xdr_ref.c: Likewise.
5981         * sunrpc/xdr_sizeof.c: Likewise.
5982         * sunrpc/xdr_stdio.c: Likewise.
5983
5984         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
5985         handling.
5986
5987 2010-08-19  Andreas Schwab  <schwab@redhat.com>
5988
5989         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
5990
5991 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
5992
5993         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
5994         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
5995         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
5996         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
5997         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
5998         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
5999         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
6000         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
6001         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
6002         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
6003         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
6004         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
6005         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
6006         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
6007
6008 2010-07-26  Anton Blanchard  <anton@samba.org>
6009
6010         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
6011         * malloc/arena.c (heap_trim): Likewise.
6012
6013 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
6014
6015         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
6016         here.  Not...
6017         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
6018         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
6019
6020 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
6021
6022         * sysdeps/i386/elf/Makefile: New file.
6023
6024 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
6025
6026         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
6027         from fanotify_init.
6028         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
6029         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
6030
6031 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
6032
6033         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
6034         of strncasecmp_l.
6035         * sysdeps/multiarch/strcmp.S: Likewise.
6036
6037 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
6038
6039         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6040         strncase_l-nonascii.
6041         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
6042         Add strncase_l-ssse3.
6043         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
6044         * sysdeps/x86_64/strcmp.S: Likewise.
6045         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
6046         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
6047         * sysdeps/x86_64/strncase.S: New file.
6048         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
6049         * sysdeps/x86_64/strncase_l.S: New file.
6050         * string/Makefile (strop-tests): Add strncasecmp.
6051         * string/test-strncasecmp.c: New file.
6052
6053         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
6054         warning.
6055
6056         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
6057         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
6058
6059 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
6060
6061         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
6062
6063 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
6064
6065         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
6066         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
6067         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
6068
6069 2010-05-01  Alan Modra  <amodra@gmail.com>
6070
6071         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
6072         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
6073         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
6074         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
6075         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
6076         tidying.  Don't tail-call __sigjmp_save for static lib.
6077         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
6078         save location.
6079         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
6080         (CALL_MCOUNT): Add eh info, and nop after bl.
6081         (TAIL_CALL_SYSCALL_ERROR): New macro.
6082         (PSEUDO_RET): Use it.
6083         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
6084         Correct save location of integer regs and cr.
6085         (_dl_profile_resolve): Correct cr save location.  Delete nops
6086         after bl when SHARED.  Reduce cfi size a little by better
6087         placement of cfi directives.
6088         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
6089         make a stack frame.  Instead use parm save area as a temp.
6090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
6091         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
6092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
6093         Don't make a stack frame for parent, use parm save area.
6094         Increase child stack frame to 112 bytes.  Don't save unused reg,
6095         and adjust reg usage.  Set up cfi on error recovery and
6096         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
6097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
6098         (__makecontext): Add dummy nop after jump to exit.
6099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
6100         Use correct parm save area and cr save, reduce stack frame.
6101         Correct cfi for possible PSEUDO_RET frame setup.
6102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
6103         Branch to local label emitted by PSEUDO_RET rather than
6104         __syscall_error.
6105
6106 2010-08-12  Andreas Schwab  <schwab@redhat.com>
6107
6108         [BZ #11904]
6109         * locale/programs/locale.c (print_assignment): New function.
6110         (show_locale_vars): Use it.
6111
6112 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
6113
6114         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
6115         field.
6116         (struct statfs64): Likewise.
6117         (_STATFS_F_FLAGS): Define.
6118         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
6119         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
6120         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
6121         (ST_VALID): Define locally.
6122         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
6123         __statvfs_getflags, use the provided value.
6124         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6125         __ASSUME_STATFS_F_FLAGS.
6126
6127         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
6128
6129         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6130         Add sys/fanotify.h.
6131         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
6132         fanotify_mask for GLIBC_2.13.
6133         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
6134         fanotify_init and fanotify_mark.
6135         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
6136         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
6137
6138         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
6139         Add prlimit.
6140         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
6141         prlimit64 for GLIBC_2.13.
6142         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
6143         prlimit64.
6144         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
6145         syscall.
6146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
6147         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
6148         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
6149         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
6150         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
6151         add prlimit alias.
6152         * sysdeps/unix/sysv/linux/prlimit.c: New file.
6153
6154         [BZ #11903]
6155         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
6156         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
6157
6158         * nss/Makefile: Add rules to build and run tst-nss-test1.
6159         * shlib-versions: Add entry for libnss_test1.
6160         * nss/nss_test1.c: New file.
6161         * nss/tst-nss-test1.c: New file.
6162
6163         * nss/nsswitch.c (__nss_database_custom): Define new variable.
6164         (__nss_configure_lookup): Set appropriate entry in
6165         __nss_configure_lookup to true.
6166         * nss/nsswitch.h: Define enum with indeces of databases in
6167         databases and __nss_database_custom arrays.  Declare
6168         __nss_database_custom.
6169         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
6170         to avoid using nscd when custom rules are installed.
6171         * nss/getXXbyYY_r.c: Likewise.
6172         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
6173
6174         * nss/nss_files/files-parse.c: Whitespace fixes.
6175
6176 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
6177
6178         [BZ #11883]
6179         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
6180         * posix/fnmatch_loop.c: Likewise.
6181
6182 2010-07-17  Andi Kleen  <ak@linux.intel.com>
6183
6184         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
6185         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
6186         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
6187         * Versions.def [GLIBC_2.13]: Add.
6188
6189 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
6190
6191         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
6192         Also fail if tpwd after pwuid call is NULL.
6193
6194 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6195
6196         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
6197         when converting to ms.
6198
6199 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6200
6201         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
6202         EOPNOTSUPP errors with ENOTTY.
6203         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
6204         EOPNOTSUPP errors with ENOTTY.
6205
6206 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
6207
6208         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
6209         Add strcasecmp_l-ssse3.
6210         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
6211         strcasecmp.
6212         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
6213         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
6214         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
6215
6216 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
6217
6218         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
6219
6220         * string/Makefile (strop-tests): Add strcasecmp.
6221         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
6222         strcasecmp_l-nonascii.
6223         (gen-as-const-headers): Add locale-defines.sym.
6224         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
6225         * sysdeps/x86_64/strcasecmp.S: New file.
6226         * sysdeps/x86_64/strcasecmp_l.S: New file.
6227         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
6228         * sysdeps/x86_64/locale-defines.sym: New file.
6229         * string/test-strcasecmp.c: New file.
6230
6231         * string/test-strcasestr.c: Test both ends of the range of characters.
6232         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
6233
6234 2010-07-29  Roland McGrath  <roland@redhat.com>
6235
6236         [BZ #11856]
6237         * manual/locale.texi (Yes-or-No Questions): Fix example code.
6238
6239 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
6240
6241         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
6242         for ld.so.
6243
6244 2010-07-27  Andreas Schwab  <schwab@redhat.com>
6245
6246         * manual/memory.texi (Malloc Tunable Parameters): Document
6247         M_PERTURB.
6248
6249 2010-07-26  Roland McGrath  <roland@redhat.com>
6250
6251         [BZ #11840]
6252         * configure.in (-fgnu89-inline check): Set and substitute
6253         gnu89_inline, not libc_cv_gnu89_inline.
6254         * configure: Regenerated.
6255         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
6256
6257 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
6258
6259         * string/test-strnlen.c: New file.
6260         * string/Makefile (strop-tests): Add strnlen.
6261         * string/tester.c (test_strnlen): Add a few more test cases.
6262         * string/tst-strlen.c: Better error reporting.
6263
6264         * sysdeps/x86_64/strnlen.S: New file.
6265
6266 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
6267
6268         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
6269         lower-latency instructions.
6270
6271 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
6272
6273         * string/test-strcasestr.c: New file.
6274         * string/test-strstr.c: New file.
6275         * string/Makefile (strop-tests): Add strstr and strcasestr.
6276         * string/str-two-way.h: Don't undefine MAX.
6277         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
6278
6279 2010-07-21  Andreas Schwab  <schwab@redhat.com>
6280
6281         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6282         strcasestr-nonascii.
6283         (CFLAGS-strcasestr-nonascii.c): Define.
6284         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
6285         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
6286         Remove unused attribute.
6287
6288 2010-07-20  Roland McGrath  <roland@redhat.com>
6289
6290         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
6291         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
6292         ld.so.cache was broken.  With it, there is no way to disable dsocaps
6293         like LD_HWCAP_MASK can disable hwcaps.
6294
6295 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
6296
6297         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
6298
6299 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
6300
6301         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
6302         call in strcasestr.
6303         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
6304         __strcasestr_sse42_nonascii.
6305         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
6306         strcasestr-nonascii.c.
6307         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
6308
6309 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
6310
6311         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
6312         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
6313         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
6314         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
6315
6316 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
6317
6318         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
6319         fcntl.
6320
6321 2010-07-06  Andreas Schwab  <schwab@redhat.com>
6322
6323         [BZ #11577]
6324         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
6325         dl_signal_cerror.
6326
6327 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
6328
6329         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
6330         _PC_PIPE_BUF using F_GETPIPE_SZ.
6331
6332 2010-07-05  Roland McGrath  <roland@redhat.com>
6333
6334         * manual/arith.texi (Rounding Functions): Fix rint description
6335         implicit in round description.
6336
6337 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
6338
6339         * elf/Makefile: Fix linking for a few tests to make recent linker
6340         happy.
6341
6342 2010-06-30  Andreas Schwab  <schwab@redhat.com>
6343
6344         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
6345         $(common-objpfx)libc_nonshared.a.
6346
6347 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
6348
6349         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
6350         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
6351         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
6352         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
6353         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
6354         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
6355         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
6356         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
6357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
6358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
6359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
6360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
6361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
6362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
6363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
6364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
6365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
6366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
6367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
6368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
6369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
6370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
6371         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
6372         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
6373         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
6374         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
6375         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
6376         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
6377         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
6378         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
6379         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
6380         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
6381         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
6382         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
6383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
6384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
6385         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
6386         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
6387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
6388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
6389         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
6390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
6391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
6392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
6393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
6394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
6395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
6396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
6397
6398 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
6399
6400         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
6401         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
6402         * string/memmove.c (memmove): Renamed to ...
6403         (MEMMOVE): ...this.  Default to memmove.
6404         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
6405         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
6406         (END_CHK): Define.
6407         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6408         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
6409         mempcpy-ssse3-back memmove-ssse3-back.
6410         * sysdeps/x86_64/multiarch/bcopy.S: New file .
6411         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
6412         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
6413         * sysdeps/x86_64/multiarch/memcpy.S: New file.
6414         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
6415         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
6416         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
6417         * sysdeps/x86_64/multiarch/memmove.c: New file.
6418         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
6419         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
6420         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
6421         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
6422         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
6423         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
6424         Define.
6425         (index_Fast_Copy_Backward): Define.
6426         (HAS_ARCH_FEATURE): Define.
6427         (HAS_FAST_REP_STRING): Define.
6428         (HAS_FAST_COPY_BACKWARD): Define.
6429
6430 2010-06-21  Andreas Schwab  <schwab@redhat.com>
6431
6432         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
6433         Restore proper fallback handling.
6434
6435 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
6436
6437         [BZ #11701]
6438         * posix/group_member.c (__group_member): Correct checking loop.
6439
6440         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
6441         OOM in getpwuid_r correctly.  Return error number when the caller
6442         should return, otherwise -1.
6443         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
6444         call returning > 0 value.
6445         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
6446
6447 2010-06-07  Andreas Schwab  <schwab@redhat.com>
6448
6449         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
6450         libc_nonshared.a from targets in modules-names.
6451
6452 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
6453
6454         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
6455         requires it.
6456
6457 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
6458
6459         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
6460         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
6461         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
6462         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
6463
6464 2010-06-02  Andreas Schwab  <schwab@redhat.com>
6465
6466         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
6467
6468 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
6469
6470         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
6471         and F_GETPIPE_SZ.
6472         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6473         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6474         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6475         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6476         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6477         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
6478
6479 2010-06-14  Roland McGrath  <roland@redhat.com>
6480
6481         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
6482
6483 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
6484
6485         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
6486         __REDIRECT followed by __THROW.
6487         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
6488         * posix/getopt.h (getopt): Likewise.
6489
6490 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
6491
6492         * hurd/lookup-at.c (__file_name_lookup_at): Accept
6493         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
6494         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
6495         in AT_FLAGS.
6496         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
6497         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
6498
6499 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
6500
6501         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
6502
6503 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
6504
6505         [BZ #11640]
6506         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6507         Properly check family and model.
6508
6509 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
6510
6511         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
6512
6513 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
6514
6515         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
6516
6517 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
6518
6519         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
6520         symbol reference.
6521
6522 2010-05-19  Andreas Schwab  <schwab@redhat.com>
6523
6524         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
6525         symbol reference.
6526
6527 2010-05-21  Andreas Schwab  <schwab@redhat.com>
6528
6529         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
6530         and internal_recvmmsg.
6531         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
6532         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
6533         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
6534         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
6535
6536         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
6537         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
6538         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
6539
6540 2010-05-20  Andreas Schwab  <schwab@redhat.com>
6541
6542         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
6543
6544 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
6545
6546         POWER7 optimizations.
6547         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
6548         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
6549
6550 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
6551
6552         * version.h: Update for 2.13 development version.
6553
6554 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
6555
6556         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
6557         exceptions.  Return 0.
6558
6559 2010-05-07  Roland McGrath  <roland@redhat.com>
6560
6561         * elf/ldconfig.c (main): Add a const.
6562
6563 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
6564
6565         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
6566         (args_options): Add no-idn option.
6567         (ahosts_keys_int): Add idn_flags to ai_flags.
6568         (parse_option): Handle 'i' option to clear idn_flags.
6569
6570         * malloc/malloc.c (_int_free): Possible race in the most recently
6571         added check.  Only act on the data if no current modification
6572         happened.
6573
6574 See ChangeLog.17 for earlier changes.