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