Cleanup old obsolete PPC_REL16 checks
[platform/upstream/glibc.git] / ChangeLog
1 2010-02-12  Luis Machado  <luisgpm@br.ibm.com>
2
3         * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16
4         check.
5         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
6         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
7         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
8         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
9         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
10         * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
11         is not supported.
12         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
13         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
16         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
17         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
18         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
19         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
20         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
21         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
22         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
23         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
24         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
25         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
26         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
27         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
28         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
29         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
30         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
31         Likewise.
32         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
33         Likewise.
34         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
35         Likewise.
36         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
37
38 2010-02-12  Alan Modra  <amodra@gmail.com>
39
40         * elf/tls-macros.h (__TLS_CALL_CLOBBERS <__powerpc__>): Remove r3.
41         Define and use for __powerpc64__ too.
42         (TLS_LD <__powerpc__>): Add r3 to clobbers.
43         (TLS_GD <__powerpc__>): Set asm output.  Make __result r3 reg.
44         (TLS_GD <__powerpc64__>): Make __result r3 reg.
45         (TLS_IE <__powerpc64__>): Relax output constraint.
46
47 2010-02-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
48
49         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
50         instructions cu21 and cu24.  Add well-formedness checking
51         parameter and adjust the software implementation.
52         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
53
54 2010-02-10  Ulrich Drepper  <drepper@redhat.com>
55
56         [BZ #11271]
57         * io/ftw.c (ftw_startup): Close descriptor for initial directory
58         after changing back to it.
59
60 2010-02-05  David S. Miller  <davem@davemloft.net>
61
62         * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
63         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
64         ifunc relocs.
65         (elf_machine_lazy_rel): Likewise.
66         (sparc_fixup_plt): Pull out to...
67         * sysdeps/sparc/sparc32/dl-plt.h: ...here.
68         * sysdeps/sparc/sparc32/dl-irel.h: New file.
69         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
70         ifunc relocs.
71         (elf_machine_lazy_rel): Likewise.
72         (sparc64_fixup_plt): Pull out to...
73         * sysdeps/sparc/sparc64/dl-plt.h: ...here.
74         * sysdeps/sparc/sparc64/dl-irel.h: New file.
75
76 2010-02-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
77
78         * elf/elf.h: Define m68k TLS relocations.
79
80 2010-02-10  Luis Machado  <luisgpm@br.ibm.com>
81
82         * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
83         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
84         * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
85         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
86         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
87         64-bit power7 fpu path.
88         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
89         32-bit power7 fpu math.
90
91 2010-02-09  Ulrich Drepper  <drepper@redhat.com>
92
93         * sysdeps/i386/rshift.S: More compact unwind information.
94
95         * sysdeps/i386/lshift.S: Fix unwind information.
96
97 2010-02-08  Luis Machado  <luisgpm@br.ibm.com>
98
99         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
100         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
101         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
102         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
103         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
104         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
105         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
106         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
107         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
108         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
109         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
110         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
111
112 2010-02-08  Andreas Schwab  <schwab@redhat.com>
113
114         * include/fenv.h: Add hidden proto for fegetenv.
115         * math/fegetenv.c: Add hidden alias.
116         * sysdeps/i386/fpu/fegetenv.c: Likewise.
117         * sysdeps/ia64/fpu/fegetenv.c: Likewise.
118         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
119         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
120         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
121         * sysdeps/x86_64/fpu/fegetenv.c: Likewise
122         * sysdeps/s390/fpu/fegetenv.c: Likewise.  Remove unused headers.
123
124 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
125
126         [BZ #11230]
127         * sysdeps/ia64/memchr.S: Don't read beyond the last byte
128         during recovery.
129
130 2010-01-26  Andreas Schwab  <schwab@redhat.com>
131
132         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
133         interface.
134         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
135         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
136         utmpx interface.
137
138         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
139         entry for 2.12.
140
141 2010-02-03  Ulrich Drepper  <drepper@redhat.com>
142
143         [BZ #11235]
144         * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
145         S_IMMUTABLE.  Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
146         MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
147         MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
148         MS_ACTIVE, and MS_NOUSER.
149         (MS_RMT_MASK): Update according to current kernels.
150
151         [BZ #11242]
152         * misc/getusershell.c (initshells): Allocate one more byte in input
153         buffer so that fgets doesn't loop undefinitely.
154
155 2010-02-02  Ulrich Drepper  <drepper@redhat.com>
156
157         * stdlib/setenv.c (__add_to_environ): Don't use alloca if
158         __libc_use_alloca tells us not to.  Fix memory leak in an error
159         situation.  Based partially on patch by Jim Meyering.
160
161 2010-01-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
162
163         * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
164         get_phys_pages, get_avphys_pages): Add weak aliases.
165
166 2010-01-25  Andreas Schwab  <schwab@redhat.com>
167
168         * iconv/iconv_prog.c (write_output): Fix check for open failure.
169
170 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
171
172         [BZ #11200]
173         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
174         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
175
176 2010-01-22  Jim Meyering  <jim@meyering.net>
177
178         [BZ #11193]
179         * posix/regexec.c (extend_buffers): Avoid overflow in realloc
180         buffer length computation.
181
182         [BZ #11192]
183         * posix/regexec.c (re_copy_regs): Don't leak when allocation
184         of the start buffer succeeds but allocation of the "end" one fails.
185
186         [BZ #11191]
187         * posix/regexec.c (re_search_2_stub): Check for overflow
188         when adding the sizes of the two strings.
189
190         [BZ #11190]
191         * posix/regexec.c (re_search_internal): Avoid overflow
192         in computing re_malloc buffer size.
193
194         [BZ #11189]
195         * posix/regexec.c (prune_impossible_nodes): Avoid overflow
196         in computing re_malloc buffer size.
197
198         [BZ #11188]
199         * posix/regexec.c (build_trtable): Avoid arithmetic overflow
200         in size calculation.
201
202         [BZ #11187]
203         * posix/regexec.c (re_search_2_stub): Use simpler method than
204         boolean for freeing internal storage.
205
206 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
207
208         * posix/regex_internal.c (re_string_skip_chars): Simplify test for
209         failed mbrtowc call.
210
211 2010-01-22  Jim Meyering  <jim@meyering.net>
212
213         [BZ #11186]
214         * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
215         fits in wchar_t.  Problem reported by Eric Blake.
216
217         [BZ #11185]
218         * posix/regex_internal.c (re_string_reconstruct): Remove declaration
219         and stores into set-but-not-used local, "q".
220
221         [BZ #11184]
222         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
223         detection test.  Patch by Paul Eggert.
224
225         [BZ #11183]
226         * posix/regex_internal.c (re_string_realloc_buffers):
227         Detect and handle internal overflow.  Patch by Paul Eggert
228
229 2010-01-20  Andreas Schwab  <schwab@redhat.com>
230
231         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
232         (CHECK_SP): Fix check for alternate stack.
233         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
234         (CHECK_SP): Likewise.
235
236 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
237
238         * sysdeps/i386/i686/multiarch/memmove.S: Also check
239         bit_Fast_Rep_String when SHARED isn't defined.
240
241 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
242
243         [BZ #11194]
244         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
245
246 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
247
248         * sysdeps/mach/hurd/bits/libc-lock.h
249         (__rtld_lock_recursive_t): New type.
250         (__rtld_lock_initialize): New macro.
251
252 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
253
254         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
255         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
258
259 2010-01-18  Andreas Schwab  <schwab@redhat.com>
260
261         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
262         definitions of O_DSYNC and O_RSYNC.
263
264         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
265         casting d_tag.
266
267         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
268         dynamic entry types.
269
270 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
271
272         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
273         constant.
274         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
275         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
276         overflow.
277         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
278
279         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
280         math_opt_barrier and math_force_eval macros.
281
282 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
283
284         * posix/regcomp.c: Fix a few more cases of ignored return values.
285         * posix/regex_internal.c: Likewise.
286         * posix/regexec.c: Likewise.
287
288         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
289         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
290         if _XOPEN_SOURCE is not defined as well.
291
292 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
293
294         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
295         high gprs kernel facility.
296         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
297         Added high gprs check for DSOs.
298         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
299         new elf header flag.
300
301 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
302
303         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
304         dl_main.
305         * elf/dl-open.c (_dl_sysdep_start): Likewise..
306         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
307         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
308         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
309         started.
310
311 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
312
313         [BZ #11027]
314         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
315         to RFC 2474.
316         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
317
318         [BZ #11141]
319         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
320         addresses.
321
322         [BZ #11127]
323         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
324         re_node_set_insert failure; return REG_ESPACE.
325         Patch by Paul Eggert.
326
327         * bits/confname.h: Make pre-C99-safe.
328
329 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
330
331         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
332         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
333         files are found by GCC.
334
335 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
336
337         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
338         brk, and sbrk.
339
340         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
341         index, and rindex.
342
343         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
344
345         * Versions.def: Add GLIBC_2.12 for libpthread.
346
347         [BZ #11126]
348         * malloc/malloc.c (malloc_info): Initialize malloc if not already
349         done.  Handle empty bin lists.
350
351         * posix/unistd.h: Change getpagesize and getdtablesize declaration
352         visibility some more.
353
354         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
355
356         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
357
358         [BZ #11120]
359         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
360         needed outside libc.
361
362 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
363
364         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
365
366 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
367
368         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
369
370 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
371
372         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
373
374 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
375
376         * conform/data/complex.h-data: Test for POSIX2008.
377
378         * conform/data/ctype.h-data: Fix POSIX testing.
379
380         * conform/data/dirent.h-data: ino_t only needed for XSI.
381
382         * grp/grp.h: Declare getgrent and endgrent for XPG7.
383
384         * conform/data/inttypes.h-data: Use same types as the headers.
385
386         * resolv/netdb.h: Don't define old resolver macros for XPG7.
387
388         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
389
390         * conform/conformtest.pl: Implement tag for allow-header.
391         Fix newline handling in allow-header implementation.
392
393         * conform/data/time.h-data: Use allow-header instead of duplicating
394         information.
395
396         * conform/data/time.h-data: Allow sigevent tag.
397
398         * posix/sched.h: Define time_t and pid_t for XPG7.
399
400 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
401
402         * sysdeps/i386/i686/bcopy.S: New file.
403
404         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
405
406         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
407         and END_CHK.
408         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
409         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
410         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
411
412         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
413
414         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
415         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
416         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
417         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
418         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
419         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
420         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
421         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
422         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
423         * sysdeps/i386/i686/multiarch/bzero.S: New file.
424         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
425         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
426         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
427         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
428         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
429         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
430         * sysdeps/i386/i686/multiarch/memmove.S: New file.
431         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
432         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
433         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
434         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
435         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
436         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
437         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
438         * sysdeps/i386/i686/multiarch/memset.S: New file.
439         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
440
441         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
442         (END_CHK): Likewise.
443
444         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
445         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
446         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
447
448         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
449         for 0x0e and 0x80.
450         (__x86_64_data_cache_size): New.
451         (init_cacheinfo): Set __x86_64_data_cache_size.
452
453         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
454         on bit_Fast_Rep_String for Intel Core i7.
455
456         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
457         (index_Fast_Rep_String): Likewise.
458         (FEATURE_INDEX_1): Likewise.
459         (FEATURE_INDEX_MAX): Likewise.
460         (cpu_features): Add feature.
461
462 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
463
464         * conform/data/sys/select.h-data: Fix up for XPG7.
465
466 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
467
468         * posix/sys/wait.h: Don't define W* macros etc. if
469         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
470
471 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
472
473         * io/sys/stat.h: Declare fchmod for XPG7.
474         * conform/data/sys/stat.h-data: Fix up for XPG7.
475
476         * termios/termios.h: Define pid_t for XPG7.
477
478         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
479         * conform/data/tgmath.h-data: Likewise.
480
481         * conform/data/time.h-data: Fix POSIX tests.
482
483         * conform/data/wchar.h-data: Fix up XPG7 tests.
484
485         * include/features.h: Fix __USE_ISOC95 handling.
486
487         * conform/data/wordexp.h-data: Fix typo in last change.
488
489         * conform/data/unistd.h-data: Fix up older POSIX tests.
490
491         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
492         * posix/unistd.h: Likewise.
493
494         * posix/unistd.h: Include environments.h also for XPG6 and up.
495         Define intptr_t for XPG6 and up.
496         Fix up for XPG7.
497         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
498
499         * conform/data/sys/types.h-data: Fix up for XPG7.
500
501         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
502         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
503         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
504         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
505         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
506         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
507         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
508         * sysdeps/unix/sysv/bits/stat.h: Likewise.
509         * sysdeps/mach/hurd/bits/stat.h: Likewise.
510
511         * bits/confname.h: Fix typo in last change.
512
513         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
514
515 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
516
517         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
518         and SA_RESETHAND now available in Base.
519         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
520         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
521         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
522         * conform/data/signal.h-data: Update for XPG7.
523
524         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
525
526         * string/strings.h: Don't declare obsolete functions for XPG7.
527         Declare ffs only for XSI.
528         * conform/data/strings.h-data: Update for XPG7.
529
530 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
531
532         [BZ #11125]
533         * libio/stdio.h: Define va_list, off_t, and ssize_t.
534
535         * posix/glob.h: Define size_t.
536
537         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
538
539         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
540
541 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
542
543         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
544         be self-contained.
545
546         * conform/data/stdio.h-data: Expect off_t and ssize_t.
547
548 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
549
550         * libio/stdio.h: Define va_list also for XPG7.
551
552         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
553         * conform/data/ctype.h-data: Likewise.
554         * conform/data/dirent.h-data: Likewise.
555         * conform/data/errno.h-data: Likewise.
556         * conform/data/fcntl.h-data: Likewise.
557         * conform/data/fmtmsg.h-data: Likewise.
558         * conform/data/fnmatch.h-data: Likewise.
559         * conform/data/ftw.h-data: Likewise.
560         * conform/data/glob.h-data: Likewise.
561         * conform/data/grp.h-data: Likewise.
562         * conform/data/iconv.h-data: Likewise.
563         * conform/data/langinfo.h-data: Likewise.
564         * conform/data/libgen.h-data: Likewise.
565         * conform/data/limits.h-data: Likewise.
566         * conform/data/locale.h-data: Likewise.
567         * conform/data/math.h-data: Likewise.
568         * conform/data/monetary.h-data: Likewise.
569         * conform/data/mqueue.h-data: Likewise.
570         * conform/data/ndbm.h-data: Likewise.
571         * conform/data/netdb.h-data: Likewise.
572         * conform/data/pthread.h-data: Likewise.
573         * conform/data/pwd.h-data: Likewise.
574         * conform/data/regex.h-data: Likewise.
575         * conform/data/sched.h-data: Likewise.
576         * conform/data/search.h-data: Likewise.
577         * conform/data/semaphore.h-data: Likewise.
578         * conform/data/setjmp.h-data: Likewise.
579         * conform/data/signal.h-data: Likewise.
580         * conform/data/spawn.h-data: Likewise.
581         * conform/data/stdio.h-data: Likewise.
582         * conform/data/stdlib.h-data: Likewise.
583         * conform/data/string.h-data: Likewise.
584         * conform/data/strings.h-data: Likewise.
585         * conform/data/sys/ipc.h-data: Likewise.
586         * conform/data/sys/msg.h-data: Likewise.
587         * conform/data/sys/resource.h-data: Likewise.
588         * conform/data/sys/sem.h-data: Likewise.
589         * conform/data/sys/shm.h-data: Likewise.
590         * conform/data/sys/socket.h-data: Likewise.
591         * conform/data/sys/stat.h-data: Likewise.
592         * conform/data/sys/time.h-data: Likewise.
593         * conform/data/sys/types.h-data: Likewise.
594         * conform/data/sys/uio.h-data: Likewise.
595         * conform/data/sys/wait.h-data: Likewise.
596         * conform/data/syslog.h-data: Likewise.
597         * conform/data/tar.h-data: Likewise.
598         * conform/data/termios.h-data: Likewise.
599         * conform/data/time.h-data: Likewise.
600         * conform/data/ulimit.h-data: Likewise.
601         * conform/data/unistd.h-data: Likewise.
602         * conform/data/utmpx.h-data: Likewise.
603         * conform/data/wchar.h-data: Likewise.
604         * conform/data/wctype.h-data: Likewise.
605         * conform/data/wordexp.h-data: Likewise.
606
607         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
608         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
609         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
610         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
611         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
612         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
613         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
614         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
615         * sysdeps/unix/sysv/bits/stat.h: Likewise.
616         * sysdeps/mach/hurd/bits/stat.h: Likewise.
617
618         * stdlib/stdlib.h: Define wait-related bits for XPG7.
619         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
620         Declare mkstemp and getsubopt for XPG7.
621         Declare posix_openpt for XPG6 XSI.
622
623         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
624         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
625
626         * string/string.h: Declare strdup for XPG7.
627
628 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
629
630         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
631         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
632
633         * dirent/dirent.h: Really fix feature selection.
634
635         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
636         Fix all users.
637         * locale/C-address.c: Fix all users.
638         * locale/C-collate.c: Likewise.
639         * locale/C-ctype.c: Likewise.
640         * locale/C-identification.c: Likewise.
641         * locale/C-measurement.c: Likewise.
642         * locale/C-messages.c: Likewise.
643         * locale/C-monetary.c: Likewise.
644         * locale/C-name.c: Likewise.
645         * locale/C-numeric.c: Likewise.
646         * locale/C-paper.c: Likewise.
647         * locale/C-telephone.c: Likewise.
648         * locale/C-time.c: Likewise.
649         * locale/findlocale.c: Likewise.
650         * locale/global-locale.c: Likewise.
651         * locale/loadarchive.c: Likewise.
652         * locale/loadlocale.c: Likewise.
653         * locale/nl_langinfo_l.c: Likewise.
654         * locale/setlocale.c: Likewise.
655         * locale/xlocale.c: Likewise.
656         * locale/xlocale.h: Likewise.
657         * stdio-common/vfscanf.c: Likewise.
658         * stdlib/strfmon_l.c: Likewise.
659         * stdlib/strtod_l.c: Likewise.
660         * stdlib/strtol_l.c: Likewise.
661         * string/strcoll_l.c: Likewise.
662         * string/strxfrm_l.c: Likewise.
663         * time/alt_digit.c: Likewise.
664         * time/asctime.c: Likewise.
665         * time/era.c: Likewise.
666         * time/lc-time-cleanup.c: Likewise.
667         * time/strftime_l.c: Likewise.
668         * time/strptime_l.c: Likewise.
669         * wcsmbs/wcsmbsload.c: Likewise.
670         * wcsmbs/wcsmbsload.h: Likewise.
671
672         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
673         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
674         for XPG7.
675         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
676         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
677         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
678         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
679         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
680         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
681
682 2010-01-07  Roland McGrath  <roland@redhat.com>
683
684         * elf/elf.h (PN_XNUM): New macro.
685
686         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
687         literal 2.
688
689 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
690
691         * dirent/dirent.h: Fix typo in feature selection macro use.
692
693 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
694
695         [BZ #11115]
696         * stdlib/tst-makecontext3.c: New file.
697         * stdlib/Makefile (tests): Add new test.
698
699         * stdlib/tst-setcontext.c (check_called): Fix a typo.
700
701 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
702
703         * configure.in: Enable multi-arch by default if the assembler
704         supports gnu_indirect_function symbol type and the architecture
705         supports it.
706
707 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
708
709         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
710         is defined.
711
712 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
713
714         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
715         MACH_PORT_NULL when id != cttyid.
716
717 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
718
719         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
720         __mach_port_deallocate on rootdevid.
721
722 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
723
724         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
725         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
726         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
727         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
728
729 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
730
731         [BZ #10992]
732         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
733         Patch by Eric Blake <ebb9@byu.net>.
734
735 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
736
737         [BZ #11093]
738         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
739         POLLWRBAND also for POSIX 2008.
740         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
741         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
742
743         * include/link.h (struct link_map): Move l_used into its own word.
744         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
745         still zero.
746         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
747         never really used.
748
749 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
750
751         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
752         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
753         check processor feature.
754         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
755         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
756         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
757         (index_SSE2): Likewise.
758
759 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
760
761         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
762         if __ASSEMBLER__ is defined.
763         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
764         (bit_SSE4_2): Likewise.
765         (index_SSSE3): Likewise.
766         (index_SSE4_2): Likewise.
767         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
768         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
769         check processor feature.
770         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
771         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
772         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
773         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
774         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
775         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
776         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
777
778 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
779
780         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
781
782 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
783
784         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
785
786 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
787
788         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
789         O_DSYNC to match 2.6.33+ kernels.
790         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
791         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
792         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
793         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
794         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
795         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
796
797 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
798
799         [BZ #11000]
800         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
801         *herrnop before returning.
802         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
803         Likewise.
804         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
805         TRYAGAIN errors separately.
806         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
807         *name4_r after functions.
808
809 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
810
811         [BZ #11046]
812         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
813         version check.
814
815 2009-11-05  Bruno Haible  <bruno@clisp.org>
816
817         [BZ #11056]
818         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
819         argv argument as non-NULL.
820         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
821
822 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
823
824         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
825         recvmmsg.
826         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
827         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
828
829 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
830
831         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
832         registers.
833         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
834         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
835         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
836
837 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
838
839         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
840         SCHED_RESET_ON_FORK.
841
842 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
843
844         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
845         only used on truly ancient kernel if configuration requires a more
846         recent kernel.
847
848 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
849
850         [BZ #3662]
851         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
852         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
853
854         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
855         pass it on to __ptsname_internal.
856         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
857         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
858         All the code from __ptsname_r but take additional parameter.  Use that
859         instead of pointer to local stat64 variable.
860         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
861         variable.
862         * include/stdlib.h: Declare __ptsname_internal.
863
864         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
865         before the exec.
866         * sysdeps/unix/sysv/linux/grantpt.c: New file.
867         * login/programs/pt_chown.c (main): Don't print message on errors
868         when doing real work.
869
870         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
871         once.
872
873         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
874         irel relocations split out from...
875         (__libc_csu_init): ...here.
876         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
877
878 2009-11-23  Andreas Schwab  <schwab@redhat.com>
879
880         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
881         for timestamps also if __USE_XOPEN2K8.
882         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
883         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
884         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
885         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
886
887 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
888
889         * nscd/connections.c (restart): Try harder to re-exec.
890
891         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
892
893         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
894         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
895         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
896         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
897         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
898         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
899
900         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
901         Define.
902         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
903
904 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
905
906         [BZ #10162]
907         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
908         than software pipeline.  Properly recover from shorter read.
909
910 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
911
912         [BZ #10958]
913         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
914         initialized before using it.
915         (_IO_putwc_unlocked): Likewise.
916
917         [BZ #10918]
918         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
919         in cast to not throw away const-ness of parameters.
920         (__CPU_EQUAL_S): Likewise.
921         (__CPU_OP_S): Likewise.
922
923         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
924         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
925         this gratuitous change and we have to keep compatibility.
926         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
927         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
928         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
929         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
930         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
931         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
932
933 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
934
935         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
936         of parameters of sync_file_range.
937         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
938         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
939         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
940         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
941         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
942         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
943
944 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
945
946         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
947         Implement using sync_file_range2 syscall if __NR_sync_file_range2
948         is defined.
949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
950         file.
951
952 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
953
954         * posix/bug-regex30.c: New file.
955         * posix/Makefile: Add rules to build and run bug-regex30.
956         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
957         character lead bytes when there is a range in a COMPLEX_BRACKET.
958         Reported by Oleg Bylatov.
959
960 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
961
962         [BZ #10969]
963         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
964         * locale/tst-duplocale.c: New file.
965         * locale/Makefile (tests): Add tst-duplocale.
966
967         [BZ #10968]
968         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
969         Patch by Bruno Haible <bruno@clisp.org>.
970         * locale/tst-locname.c: New file.
971         * locale/Makefile (tests): Add tst-locname.
972
973         [BZ #10972]
974         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
975         constants from recent kernels.
976         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
977         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
978         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
979         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
980         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
981         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
982
983 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
984
985         [BZ #10162]
986         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
987         software pipeline.
988
989 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
990
991         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
992         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
993         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
994
995 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
996
997         * posix/bug-regex29.c: Include stdio.h.
998
999 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
1000
1001         [BZ #10939]
1002         * Versions.def: Define GLIBC_2.12 for libc.
1003         * manual/errno.texi: Add ERFKILL entry.
1004         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1005         for 2.12.
1006         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1007         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1008
1009         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1010         F_GETOWN_EX definitions according to corrected kernel definitions.
1011         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1012         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1013         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1014         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1015         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1016         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1017
1018 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
1019
1020         * version.h: Bump for 2.12 development.
1021
1022 2009-11-10  Andreas Schwab  <schwab@redhat.com>
1023
1024         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1025         out of buffer space.
1026         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1027         map_v4v6_hostent running out of space.
1028
1029 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
1030
1031         * string/bits/string3.h (memset): If the second parameter is constant
1032         and zero there is likely no transposition.
1033         Patch by Caolan McNamara <caolanm@redhat.com.
1034
1035 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
1036
1037         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1038         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1039
1040 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
1041
1042         * malloc/memusagestat.c (main): Fix spelling in an error message.
1043
1044 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1045
1046         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1047         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1048
1049 2009-11-03  Andreas Schwab  <schwab@redhat.com>
1050
1051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1052         readahead.
1053
1054 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
1055
1056         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1057         relocate opd entry when resolving prelink conflicts.
1058
1059 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
1060
1061         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1062         when -D_FILE_OFFSET_BITS=64.
1063
1064         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1065         of last two arguments when -D_FILE_OFFSET_BITS=64.
1066         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1067         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1068         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1069         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1070         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1071         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1072
1073 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1074
1075         [BZ #4457]
1076         * sysdeps/generic/libgcc_s.h: New file.
1077         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1078
1079 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
1080
1081         * malloc/hooks.c (free_check): Restore locking and call _int_free
1082         appropriately.
1083
1084 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1085
1086         * version.h (VERSION): Bump for 2.11 release.
1087         * include/features.h (__GLIBC_MINOR__): Bump to 11.
1088
1089         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1090
1091         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1092
1093         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1094         to avoid warning.
1095         * stdlib/tst-strtoll.c (tests): Likewise.
1096
1097         [BZ #9986]
1098         * time/strftime_l.c (__strftime_internal): Allow %OC.
1099
1100         * misc/mkostemps.c: New file.
1101         * misc/mkostemps64.c: New file.
1102
1103 2009-10-30  Andreas Schwab  <schwab@redhat.com>
1104
1105         * locale/programs/locale-spec.c: Include <error.h> and
1106         <libintl.h>.
1107
1108         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1109
1110 2009-10-28  Roland McGrath  <roland@redhat.com>
1111
1112         * Makefile (dist-prepare): New target.
1113         (tag-for-dist): Target removed.
1114         (glibc-%.tar): Pattern rule removed.
1115         (%.tar): New pattern rule, does simple use of git archive.
1116         (dist-version): Remove variable definition.
1117         (dist): Just depend on that.  Add .tar.xz dependency.
1118         If dist-version variable not set on command line, depend on
1119         dist-prepare, re-invoke with dist-version set via git describe.
1120
1121         * Makerules (%.xz): New pattern rule.
1122
1123 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
1124
1125         * elf/ifuncdep2.c: Include ifunc-sel.h.
1126         (global): Delete.
1127         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1128         * elf/ifuncmain1.c (global): Delete.
1129         * elf/ifuncmain1vis.c: Likewise.
1130         * elf/ifuncmain2.c: Likewise.
1131         * elf/ifuncmain5.c: Likewise.
1132         * elf/ifuncmod3.c: Likewise.
1133         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1134         (foo_ifunc): Use ifunc_one.
1135         * elf/ifuncmain7.c: Likewise.
1136         * elf/ifuncmod1.c: Include ifunc-sel.h.
1137         (global): Define protected var.
1138         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1139         * elf/ifuncmod5.c: Likewise.
1140         * sysdeps/generic/elf/ifunc-sel.h: New file.
1141         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1142
1143 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
1144
1145         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1146         (R_PPC_REL16*): Correct comments.
1147         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1148         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1149          R_PPC64_REL16_HA): Define.
1150         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1151         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1152         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1153         Delete unused "reloc" param.
1154         (__process_machine_rela): Handle R_PPC_IRELATIVE.
1155         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1156         Delete "reloc" param.
1157         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1158         R_PPC_IRELATIVE.
1159         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1160         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1161         relocations.
1162
1163 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1164
1165         [BZ #10315]
1166         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1167         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1168         UDP_ENCAP_L2TPINUDP.
1169
1170         [BZ #10349]
1171         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1172         parameter, specifying length of prefix.
1173         * stdio-common/tempname.c: Likewise.
1174         * include/stdio.h: Adjust prototypes.
1175         * libio/oldtmpfile.c: Adjust caller.
1176         * misc/mkdtemp.c: Likewise.
1177         * misc/mkostemp.c: Likewise.
1178         * misc/mkostemp64.c: Likewise.
1179         * misc/mkstemp.c:  Likewise.
1180         * misc/mkstemp64.c: Likewise.
1181         * misc/mktemp.c: Likewise.
1182         * stdio-common/tempnam.c: Likewise.
1183         * stdio-common/tmpfile.c: Likewise.
1184         * stdio-common/tmpnam.c: Likewise.
1185         * stdio-common/tmpnam_r.c: Likewise.
1186         * misc/mkstemps.c: New file.
1187         * misc/mkstemps64.c: New file.
1188         * stdlib/stdlib.h: Add prototypes.
1189         * misc/Makefile (routines): Add mkstemps and mkstemps64.
1190         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1191
1192 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1193
1194         * locale/iso-639.def: Add sml entry.
1195
1196         [BZ #10391]
1197         * resolv/res_send.c (send_dg): Initialize resplen.
1198
1199         [BZ #10446]
1200         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1201         definition to the kernel's.
1202         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1203
1204 2009-08-18  Anders Johansson  <ajohansson@novell.com>
1205
1206         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1207         offsets and record sizes in assert()s and response sending.
1208         * nscd/grpcache.c: Likewise.
1209         * nscd/hstcache.c: Likewise.
1210         * nscd/initgrcache.c: Likewise.
1211         * nscd/pwdcache.c: Likewise.
1212
1213 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1214
1215         [BZ #10540]
1216         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1217         /etc/hosts does not exist set errnop and herrnop appropriately.
1218         Patch by Steve Langasek <vorlon@debian.org>.
1219
1220         [BZ #10553]
1221         * malloc/malloc.c (malloc_info): Fix typos in format strings.
1222         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1223
1224         [BZ #10564]
1225         * login/utmp_file.c (TIMEOUT): Increase to 10.
1226
1227         [BZ #10609]
1228         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1229         for file names in case the syscall is not available.
1230         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1231         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1232         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1233         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1234         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1235         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1236         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1237         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1238         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1239         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1240         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1241         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1242         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1243         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1244         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1245         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1246         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1247
1248         [BZ #10643]
1249         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1250         creation filed, remove the request from the 'requests' list and signal
1251         the caller that the request is finished.
1252
1253         [BZ #10692]
1254         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1255         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1256
1257         [BZ #10713]
1258         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1259         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1260
1261         [BZ #10780]
1262         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1263         overflows the int return type.
1264
1265         [BZ #10717]
1266         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1267         have to compute maxsize_total, we have to update the variables, and
1268         the also_total handling must happen after the repair.
1269
1270         [BZ #10742]
1271         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1272         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1273
1274 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1275
1276         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1277         errno is always set when returning unsuccessfully.
1278
1279 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1280
1281         * malloc/memusage.c (update_data): Fix index wraparound handling
1282         so that buffer_cnt is actually reset.
1283
1284 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1285
1286         [BZ #10784]
1287         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1288         of the directory we look at into the static buffer if there is one
1289         at the start of the loop.
1290
1291         [BZ #10789]
1292         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1293         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1294
1295         [BZ #10840]
1296         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1297         __ASSUME_F_GETOWN_EX.
1298         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1299         if possible.
1300         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1301
1302         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1303         and f_owner_ex.
1304         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1305         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1306         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1307         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1308         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1309         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1310
1311         [BZ #10847]
1312         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1313         getutmpx symbol.
1314
1315         [BZ #10823]
1316         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1317         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
1318
1319 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
1320
1321         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1322
1323 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1324
1325         [BZ #10817]
1326         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1327         Reported by Ray Chason.
1328
1329 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1330
1331         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1332         strend-sse4.
1333         * sysdeps/x86_64/multiarch/strchr.S: New file.
1334         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1335         * sysdeps/x86_64/multiarch/strrchr.S: New file.
1336
1337 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1338
1339         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1340
1341 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1342
1343         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1344         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1345         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1346         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1347         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1348         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1349         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1350         __ieee751_expl to handle overflow.
1351
1352 2009-10-14  David S. Miller  <davem@davemloft.net>
1353
1354         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1355         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1356
1357 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1358
1359         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1360         !USE_MULTIARCH.
1361
1362 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1363
1364         [BZ #10730]
1365         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1366         Patch in part by Steve Ward <planet36@gmail.com>.
1367
1368         [BZ #10731]
1369         * stdlib/rand_r.c: Fix typo.
1370
1371         * po/cs.po: Update from translation team.
1372
1373 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1374
1375         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1376         returning if RTLD_NOLOAD.
1377
1378 2009-10-06  Roland McGrath  <roland@redhat.com>
1379
1380         * sysdeps/x86_64/multiarch/strstr-c.c
1381         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1382
1383         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1384         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1385
1386         * sysdeps/x86_64/multiarch/init-arch.h
1387         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1388         (HAS_CPU_FEATURE): New macro.
1389         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1390         * sysdeps/x86_64/multiarch/init-arch.c
1391         (__get_cpu_features): #undef it before definition.
1392
1393 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1394
1395         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1396         first_weekday to 1 and first_workday to 2.
1397
1398 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1399
1400         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1401         F_GETOWN_EX.
1402         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1403         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1404         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1405         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1406         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1407         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1408
1409 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1410
1411         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1412         * stdio-common/vfprintf.c: Likewise.
1413
1414 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1415
1416         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1417         (mkdirat): Call __directory_name_split_at instead of
1418         __directory_name_split.
1419
1420 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1421
1422         * locale/programs/locale-spec.c (locale_special): If nothing matches
1423         fail with an appropriate message.
1424
1425 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1426
1427         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1428         and XX.
1429
1430 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1431
1432         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1433         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1434
1435 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1436
1437         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1438
1439 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1440
1441         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1442         character size elements in step data.
1443
1444 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1445
1446         * po/hu.po: Update from translation team.
1447         * po/vi.po: Likewise.
1448
1449 2009-09-19  Roland McGrath  <roland@redhat.com>
1450
1451         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1452
1453 2009-09-15  Roland McGrath  <roland@redhat.com>
1454
1455         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1456         * nptl/sysdeps/pthread/configure: Regenerated.
1457         * nptl/sysdeps/x86_64/configure: Regenerated.
1458         * sysdeps/unix/sysv/linux/configure: Regenerated.
1459         * sysdeps/x86_64/elf/configure: Regenerated.
1460
1461         * Makefile (autoconf-it): Set execute bit only on top-level configure.
1462
1463         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1464         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1465         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1466         * configure: Regenerated.
1467
1468 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
1469
1470         * posix/getconf.c (main): Handle -- on command line.
1471
1472 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
1473
1474         * configure.in: Support binutils 2.100 and 3.0.
1475
1476 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
1477
1478         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1479         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1480         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1481         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1482
1483 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
1484
1485         * locale/programs/ld-collate.c (struct locale_collate_t): Add
1486         unnamed_section_defined field.
1487         (collate_read): Test and set unnamed_section_defined.
1488
1489         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1490         _POSIX2_LINE_MAX.
1491
1492 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1493
1494         * configure.in: Support binutils 2.20.
1495
1496 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
1497
1498         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1499         __strstr_ia32): Add attribute_hidden.
1500
1501 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1502
1503         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1504         parsing of group entry.
1505
1506 2009-09-02  Andreas Schwab  <schwab@redhat.com>
1507
1508         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1509         external buffer.  Always discard readahead in internal buffer.
1510         * libio/Makefile (tests): Add bug-wsetpos.
1511         * libio/bug-wsetpos.c: New file.
1512
1513 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1514
1515         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1516         Add attribute_hidden.
1517         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1518         __strcasestr_sse2): Likewise.
1519         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1520         (__fma_fma): Make static.
1521         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1522         (__fmaf_fma): Make static.
1523
1524 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1525
1526         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1527         reformulate in-buffer optimisation check to match code in
1528         _IO_new_file_seekoff.
1529
1530 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1531
1532         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1533         to srwi in 32-bit memcpy for power6.
1534
1535 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1536
1537         * include/stdio.h: Declare hidden proto for fflush.
1538         * libio/iofflush.c: Add hidden weak alias for fflush.
1539
1540 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1541
1542         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1543         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1544
1545 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1546
1547         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1548
1549 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1550
1551         [BZ #10560]
1552         * malloc/malloc.c: Add local assert definition to avoid problems with
1553         memory allocation in the real one.
1554
1555 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1556
1557         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1558         Removed.
1559         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1560         turn off SSSE3 on Atom.
1561
1562 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1563
1564         * stdlib/tst-strtol.c (tests): More tests.
1565         * stdlib/tst-strtoll.c (tests): Likewise.
1566
1567 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1568
1569         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1570
1571         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1572
1573 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1574
1575         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1576         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1577
1578         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1579
1580         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1581
1582         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1583
1584 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
1585
1586         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1587
1588 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1589
1590         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1591         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1592
1593         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1594
1595         * sysdeps/x86_64/fpu/s_signbit.S: New file.
1596         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1597
1598         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1599         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1600
1601         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1602         leftover YMM_SIZE definition.
1603
1604 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1605
1606         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1607         union.
1608         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1609         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1610         Redefine.
1611         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1612
1613         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1614         and SET_FLOAT_WORD definitions.
1615
1616 2009-08-24  Roland McGrath  <roland@redhat.com>
1617
1618         * sysdeps/unix/syscall-template.S: New file.
1619         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1620         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1621         (compile-syscall): Pass mkdep and -g options as normal.
1622         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1623         (common-generated): Don't add them here.
1624
1625 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1626
1627         * math/s_fdim.c: In case of overflows set errno.
1628         * math/s_fdimf.c: Likewise.
1629         * math/s_fdiml.c: Likewise.
1630
1631         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1632         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1633         are using the inline optimizations.
1634
1635         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
1636         (__signbitf): Likewise.
1637
1638 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
1639
1640         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
1641         terminated.
1642         * posix/Makefile (tests): Add bug-regex29.
1643         * posix/bug-regex29.c: New file.
1644
1645         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
1646         older POSIX versions are selected.
1647
1648         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
1649         as well.
1650         * stdio-common/printf_fphex.c: Likewise.
1651         * stdio-common/tstdiomisc.c: Add more tests.
1652
1653         * locale/locale.h: Include xlocale.h and the thread-local locale
1654         declarations for XPG7, not XPG6.
1655
1656 2009-08-21  Andreas Schwab  <schwab@redhat.com>
1657
1658         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
1659         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
1660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
1661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
1662         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
1663         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1664
1665 2009-08-20  Roland McGrath  <roland@redhat.com>
1666
1667         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
1668         Use l_addr instead of l_map_start (dli_fbase).
1669         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
1670         address when there is no proximate symbol.
1671         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
1672         Likewise.
1673
1674 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
1675
1676         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
1677
1678 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
1679
1680         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
1681         Also handle SIGINT.  In that case only do the cleanup and then
1682         re-raise the signal.
1683         (main): Install handler for SIGINT.
1684
1685 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
1686
1687         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
1688         clobber list.
1689
1690 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1691
1692         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
1693         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
1694         tst-auditmod7b.c.
1695         (tests): Add tst-audit6 tst-audit7.
1696         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
1697         tst-auditmod7a tst-auditmod7b.
1698         ($(objpfx)tst-audit6): New.
1699         ($(objpfx)tst-audit6.out): Likewise.
1700         ($(objpfx)tst-audit7): Likewise.
1701         ($(objpfx)tst-audit7.out): Likewise.
1702         (tst-audit6-ENV): Likewise.
1703         (tst-audit7-ENV): Likewise.
1704         (CFLAGS-tst-auditmod6b.c): Likewise.
1705         (CFLAGS-tst-auditmod6c.c): Likewise.
1706         (CFLAGS-tst-auditmod7b.c): Likewise.
1707         * elf/tst-audit6.c: New file.
1708         * elf/tst-audit7.c: New file.
1709         * elf/tst-auditmod6a.c: New file.
1710         * elf/tst-auditmod6b.c: New file.
1711         * elf/tst-auditmod6c.c: New file.
1712         * elf/tst-auditmod7a.c: New file.
1713         * elf/tst-auditmod7b.c: New file.
1714         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
1715         saving and restoring SSE/AVX registers to ...
1716         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
1717
1718 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1719
1720         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
1721         only if SHARED is defined.
1722         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
1723
1724 2009-08-03  Jim Meyering  <meyering@redhat.com>
1725
1726         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
1727
1728 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
1729
1730         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
1731         section as the other functions for this architecture.
1732         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1733
1734 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
1735
1736         * sysdeps/x86_64/strcmp.S: Add support to compile with
1737         USE_SSSE3.  In this case palignr is used.
1738         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
1739         available but SSSE3 is, pick __str{,n}cmp_ssse3.
1740         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
1741         Add strcmp-ssse3 and strncmp-ssse3.
1742         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
1743         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
1744
1745         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
1746         warning through fake initialization.
1747
1748 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1749
1750         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
1751
1752 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1753
1754         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
1755         unique symbols.
1756
1757 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1758
1759         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
1760         EBX from EAX = 1.  Handle EAX = 11.
1761
1762 2009-08-07  Andreas Schwab  <schwab@redhat.com>
1763
1764         * Makefile (TAGS): Use separate sed -e expressions to avoid \
1765         inside ''.
1766
1767 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
1768
1769         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
1770         hidden IFUNC functions.
1771         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1772
1773         * sysdeps/i386/i686/multiarch/strlen.S: New file.
1774
1775         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
1776         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
1777         strcasestr-c.
1778         (CFLAGS-strcspn-c.c): Define.
1779         (CFLAGS-strpbrk-c.c): Define.
1780         (CFLAGS-strspn-c.c): Define.
1781         (CFLAGS-strstr.c): Define.
1782         (CFLAGS-strcasestr.c): Define.
1783         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
1784         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
1785         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
1786         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
1787         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
1788         * sysdeps/i386/i686/multiarch/strspn.S: New file.
1789         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
1790         * sysdeps/i386/i686/multiarch/strstr.c: New file.
1791         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
1792         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
1793         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
1794         -16L instead of 0xfffffffffffffff0L.
1795         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
1796
1797 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
1798
1799         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
1800
1801 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
1802
1803         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
1804         another rewrite.  Much smaller and faster.
1805         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
1806
1807         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
1808         ss_flags from the correct location.
1809
1810 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1811
1812         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
1813         * sysdeps/i386/i686/cacheinfo.c: New file.
1814         * sysdeps/i386/i686/multiarch/Makefile: New file.
1815         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
1816         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
1817         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
1818         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
1819         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
1820         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
1821         (__cpuid_count): New. Provide the default.
1822         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
1823         (__x86_64_preferred_memory_instruction): Define only if
1824         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
1825         (intel_check_word): Use __cpuid.
1826         (handle_intel): Likewise.
1827         (handle_amd): Likewise.
1828         (__cache_sysconf): Likewise.
1829         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1830         (__cache_sysconf): Likewise.
1831         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
1832         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
1833         (get_common_indeces): Use __cpuid.
1834         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
1835         if ENABLE_SSSE3_ON_ATOM is not defined.
1836         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
1837         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
1838         popcnt instead of popcntq.
1839
1840 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
1841
1842         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
1843
1844 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
1845
1846         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
1847         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
1848         which always causes a compile error.
1849
1850         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
1851
1852         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
1853         comes from...
1854         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
1855         which always causes a compile error.
1856
1857         * debug/Makefile (tests): Add tst-longjmp_chk2.
1858         * debug/tst-longjmp_chk2.c: New file.
1859
1860         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
1861         Remove incorrect use of BP_SYM.
1862         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
1863         here now since it is more complex than just a simple check.
1864
1865         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
1866         we make no more progress.
1867
1868 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1869
1870         * math/s_fma.c: Don't define alias if __fma is a macro.
1871         * math/s_fmaf.c: Likewise.
1872         * sysdeps/x86_64/multiarch/s_fma.c: New file.
1873         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
1874         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
1875
1876         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
1877         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
1878         New macro HAS_FMA.
1879         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
1880         function.
1881         * include/libc-symbols.h (libm_ifunc): Define.
1882         * sysdeps/x86_64/multiarch/Versions: New file.
1883
1884         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
1885
1886 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1887
1888         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
1889
1890 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
1891
1892         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
1893         call that registers used in calling conventions need to be preserved.
1894         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
1895         to preserve register content if necessary.
1896         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
1897         (_dl_x86_64_restore_sse): New function.
1898         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
1899         is allowed to modify xmm/ymm registers.
1900
1901         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
1902         application's perspective.
1903         * stdio-common/scanf17.c: Likewise.
1904
1905 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
1906
1907         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
1908         size to memsz.
1909         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
1910         here.
1911         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
1912         two steps to catch bugs.
1913
1914 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
1915
1916         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
1917         determines which files are used in runtime lookups and only checks
1918         those for SSE use.
1919         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
1920         testing.
1921         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
1922         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
1923         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
1924         take a while.
1925
1926         * elf/dl-open.c: Move _dl_scope_free to...
1927         * elf/dl-scope.c: ...here.  New file.
1928         * elf/Makefile (dl-routines): Add scope.
1929
1930         * resolv/resolv.h (RES_USE_DNSSEC): Define.
1931         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
1932         RES_USE_DNSSEC.
1933         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
1934         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
1935         all the places we handled RES_USE_EDNS0 only before.
1936         Patch by Adam Tkac <atkac@redhat.com>.
1937
1938 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1939
1940         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
1941         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
1942         Update size when reallocating.
1943
1944 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1945
1946         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
1947         functions used in ld.so modify xmm/ymm registers.
1948         * sysdeps/x86_64/Makefile:  Hook new test up.
1949         * sysdeps/x86_64/rtld-memchr.c: New file.
1950         * sysdeps/x86_64/rtld-memcmp.c: New file.
1951         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
1952         * sysdeps/x86_64/rtld-strchr.S: New file.
1953         * sysdeps/x86_64/rtld-strlen.S: New file.
1954         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
1955         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
1956
1957 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1958
1959         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1960         strncmp-c.
1961         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
1962         (exit): Likewise.
1963         (Byte1): Likewise.
1964         (Byte2): Likewise.
1965         (Byte3): Likewise.
1966         (Byte4): Likewise.
1967         (Byte5): Likewise.
1968         (Byte6): Likewise.
1969         (next_8_bytes): Likewise.
1970         (Byte0): Remove commented out codes.
1971         (unaligned_table): Align jump table at 8 bytes.
1972         Add _sse4_2 to all labels.  Always include "../strcmp.S".
1973         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
1974         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
1975         * sysdeps/x86_64/strncmp.S: New file.
1976
1977 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
1978
1979         [BZ #10422]
1980         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
1981         kernels, dropped when eventfd2 support was added.
1982         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
1983         kernels, dropped when signalfd4 support was added.
1984         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
1985         added, name them.
1986
1987         [BZ #10452]
1988         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
1989         replies up.
1990
1991         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
1992
1993 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
1994
1995         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
1996         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
1997
1998         [BZ #10448]
1999         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2000         callback we must touch the status to avoid using stale value.
2001
2002         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2003         compiled in.
2004
2005 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
2006
2007         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2008         /lib/modules/* headers anymore.  We have sane headers in the standard
2009         place now.
2010
2011 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2012
2013         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2014         "etf3enh" and "highgprs" added.
2015         (_dl_s390_platforms): "z10" added.
2016         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2017         Increased for the new entries.
2018         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2019         HWCAP_S390_HIGH_GPRS added.
2020
2021         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2022         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2023         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2024         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2025         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2026
2027 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
2028
2029         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2030         avoid additional cpuid instructions.  Most of the information is
2031         stored somewhere.
2032
2033         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2034         cache descriptors.
2035         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2036
2037         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2038         SSSE3 bit for Atoms.
2039         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2040         here anymore.
2041
2042         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2043         structure before copying it to avoid warning.
2044         * posix/tst-rfc3484-2.c (do_test): Likewise.
2045         * posix/tst-rfc3484-3.c (do_test): Likewise.
2046
2047         [BZ #10416]
2048         * include/unistd.h: Make header file suitable for C++ test cases.
2049         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2050
2051         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2052         stack alignment in the exit code.
2053
2054         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2055         potentially be zero.
2056
2057         * elf/tst-unique1.c: Extend test to check for unloading DSO with
2058         unique symbol definition.
2059         Patch by Jakub Jelinek.
2060         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2061         make sure the object with the definition cannot be unloaded.  Adjust
2062         a few types.
2063         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2064         the unique symbol hash table should not be const.
2065
2066 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
2067
2068         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
2069         unnecesary variables.  Comment fixes.
2070
2071 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2072
2073         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2074         Use NONASCII_CASE information provided by the locale to determine
2075         whether optimized string load function can be used.  Minor cleanups.
2076
2077 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2078
2079         * string/strcasestr.c (STRCASESTR): New macro.
2080         (__strcasestr): Renamed to ..
2081         (STRCASESTR): ...this.
2082         * string/strstr.c (STRSTR): New macro.
2083         (strstr): Renamed to ..
2084         (STRSTR): ...this.
2085         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2086         strstr-c strcasestr-c
2087         (CFLAGS-strstr.c): New.
2088         (CFLAGS-strcasestr.c): Likewise.
2089         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2090         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2091         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2092         * sysdeps/x86_64/multiarch/strstr.c: New file.
2093
2094 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2095
2096         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2097         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2098         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2099         _NL_CTYPE_NONASCII_CASE.
2100         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2101         field.
2102         (ctype_finish): Check whether there are any 8-bit characters outside
2103         the range ASCII has or whether the mapping isn't the same as for
2104         ASCII (±0x20).  Set nonascii_case appropriately.
2105         (ctype_output): Add output handler for nonascii_case.
2106
2107 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
2108
2109         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2110         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2111
2112 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2113
2114         [BZ #10360]
2115         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2116         0xffff in the EDNS0 record.
2117
2118 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2119
2120         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2121         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2122         is written before the list head update.
2123         Patch by Andreas Schwab <aschwab@redhat.com>.
2124
2125 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2126             Jakub Jelinek  <jakub@redhat.com>
2127
2128         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2129         corruption thread-safe.
2130
2131 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
2132
2133         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2134         overrides atomic_compare_and_exchange_val_rel, define to
2135         atomic_compare_and_exchange_val_rel by default, otherwise default
2136         to catomic_compare_and_exchange_val_acq.
2137         (catomic_compare_and_exchange_bool_rel): If arch overrides
2138         atomic_compare_and_exchange_bool_rel, define to
2139         atomic_compare_and_exchange_bool_rel by default.
2140         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2141         Use catomic_compare_and_exchange_val_rel instead of
2142         catomic_compare_and_exchange_val_acq.
2143
2144 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2145
2146         * sysdeps/generic/ldsodefs.h: Add prototype for
2147         _dl_higher_prime_number.
2148         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2149
2150         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2151         restoring of ymm registers a bit.
2152
2153 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
2154
2155         * sysdeps/x86_64/memcmp.S: New file.
2156
2157 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
2158
2159         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2160         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
2161         pointers in writable memory.
2162
2163 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2164
2165         * config.h.in: Add HAVE_AVX_SUPPORT entry.
2166         * config.make.in: Add config-cflags-avx entry.
2167         * configure.in: Substitute libc_cv_cc_avx.
2168         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2169         * elf/tst-audit4.c: New file.
2170         * elf/tst-audit5.c: New file.
2171         * elf/tst-auditmod4a.c: New file.
2172         * elf/tst-auditmod4b.c: New file.
2173         * elf/tst-auditmod5a.c: New file.
2174         * elf/tst-auditmod5b.c: New file.
2175         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2176         link-defines.sym.
2177         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2178         (La_x86_64_vector): Likewise.
2179         (La_x86_64_regs): Append lr_vector.
2180         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2181         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2182         saving and restoring SSE registers to ...
2183         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2184         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2185         <link-defines.h>.
2186         (_dl_runtime_profile): Use LR_SIZE to allocate space for
2187         La_x86_64_regs.  Allocate extra space and jump to memory at
2188         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2189         (save_and_restore_vector_sse): New.
2190         (save_and_restore_vector_avx): Likewise.
2191         (check_avx): Likewise.
2192         (save_and_restore_vector): Likewise.
2193         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2194         HAVE_AVX_SUPPORT.
2195         * sysdeps/x86_64/link-defines.sym: New file.
2196
2197 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
2198
2199         * elf/do-lookup.h: Removed after folding content into...
2200         * elf/dl-lookup.c: ...here.
2201
2202         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2203
2204 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
2205
2206         * configure.in: Check for gnu_unique_symbol symbol type.
2207         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2208         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2209         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
2210         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2211         change.
2212         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2213         unique symbol table.
2214         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2215         for first namespace.
2216         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2217         unique symbol hash table.
2218         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2219         * elf/tst-unique1.c: New file.
2220         * elf/tst-unique1mod1.c: New file.
2221         * elf/tst-unique1mod2.c: New file.
2222         * elf/tst-unique2.c: New file.
2223         * elf/tst-unique2mod1.c: New file.
2224         * elf/tst-unique2mod2.c: New file.
2225
2226 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2227
2228         * elf/elf.h (STB_GNU_UNIQUE): Define.
2229
2230         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2231         from...
2232         * include/inline-hashtab.h: ...here.
2233         (htab_expand): Adjust for renamed function.  Correct memory handling.
2234
2235 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2236
2237         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2238
2239 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2240
2241         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2242         (PPC_FEATURE_HAS_VSX): Likewise.
2243
2244 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2245
2246         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2247         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2248
2249         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2250         aligned to 16 byte boundaries.
2251         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2252         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2253         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2254
2255 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2256
2257         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2258         * config.make.in (config-cflags-sse4): New variable.
2259         * configure.in: Substitute libc_cv_cc_sse4.
2260         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2261         HAVE_SSE4_SUPPORT.
2262         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2263         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2264         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2265         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2266         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2267         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2268         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2269         * sysdeps/x86_64/multiarch/strspn.S: New file.
2270
2271 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2272
2273         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2274         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2275         (tests): Add tst-audit3 for x86_64.
2276         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2277         ($(objpfx)tst-audit3): Define.
2278         ($(objpfx)tst-audit3.out): Define.
2279         (tst-audit3-ENV): Define.
2280         * elf/tst-audit3.c: New file.
2281         * elf/tst-auditmod3a.c: New file.
2282         * elf/tst-auditmod3b.c: New file.
2283         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2284         and restore xmm6.
2285
2286         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2287         (__stpncpy): Renamed to ...
2288         (STPNCPY): This.
2289         (stpncpy): Create alias only if STPNCPY is not defined.
2290         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2291         defined.
2292         (strncpy): Renamed to ...
2293         (STRNCPY): This.
2294         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2295          stpncpy-c strncpy-c for string.
2296         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2297         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2298         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2299         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2300         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2301         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2302
2303 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
2304
2305         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2306         adding to fast bin list.
2307
2308 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
2309
2310         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2311         inet_makeaddr.  This worked only with class-based networks.
2312         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2313         Likewise.
2314
2315         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2316         recognize all types.
2317         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2318         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
2319         be in host byte order.
2320
2321 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2322
2323         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2324         (MODEL_OFFSET): Define.
2325         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2326         family and model.
2327         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2328         out common code into new function get_common_indeces. Determine
2329         extended family and model for Intel processors.
2330
2331 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
2332
2333         * resolv/resolv.h: Define RES_SNGLKUPREOP.
2334         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2335         option.
2336         * resolv/res_send.c (reopen): New function.  Broken out of...
2337         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2338         fallback mechanism.  If single-request fails switch to
2339         single-request-reopen mode which opens a new socket for the second
2340         request.
2341
2342 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2343
2344         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2345         (CHECK_SP): Use it.
2346
2347 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2348
2349         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2350         for saved registers.
2351         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2352         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2353         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2354
2355 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2356
2357         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2358
2359 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2360
2361         * po/id.po: Update from translation team.
2362
2363         * po/bg.po: Update from translation team.
2364
2365 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2366
2367         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
2368         defined.
2369         (strncmp): Renamed to STRNCMP.
2370         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2371         strncmp-c for string.
2372         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2373         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2374         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2375         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2376
2377 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2378
2379         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2380         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2381         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2382         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2383         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2384         ifuncmain7static.c.
2385         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2386         ifuncmain7static, and ifuncmain7picstatic.
2387         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2388         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2389         $(objpfx)ifuncmain7pie.out.
2390         (modules-names): Add ifuncmod5 ifuncmod6
2391         (ifuncmod5.so-no-z-defs): Define.
2392         (ifuncmod6.so-no-z-defs): Define.
2393         (CFLAGS-ifuncmain5pic.c): Define.
2394         (CFLAGS-ifuncmain5picstatic.c): Define.
2395         (CFLAGS-ifuncmain5staticpic.c): Define.
2396         (CFLAGS-ifuncdep5pic.c): Define.
2397         (CFLAGS-ifuncmain7pic.c): Define.
2398         (CFLAGS-ifuncmain7picstatic.c): Define.
2399         (CFLAGS-ifuncmain1staticpie.c): Define.
2400         (CFLAGS-ifuncmain5pie.c): Define.
2401         (CFLAGS-ifuncmain6pie.c): Define.
2402         (CFLAGS-ifuncmain7pie.c): Define.
2403         ($(objpfx)ifuncmain1staticpie.out): Define.
2404         ($(objpfx)ifuncmain1staticpie): Define.
2405         ($(objpfx)ifuncmain5pie.out): Define.
2406         ($(objpfx)ifuncmain5pie): Define.
2407         ($(objpfx)ifuncmain6pie.out): Define.
2408         ($(objpfx)ifuncmain6pie): Define.
2409         ($(objpfx)ifuncmain5): Define.
2410         ($(objpfx)ifuncmain5pic): Define.
2411         ($(objpfx)ifuncmain5static): Define.
2412         ($(objpfx)ifuncmain5staticpic): Define.
2413         ($(objpfx)ifuncmain5picstatic): Define.
2414         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2415         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2416         ifuncmain6pie.out.
2417         * elf/b/elf/ifuncmain1staticpie.c: New file.
2418         * elf/ifuncdep5.c: New file.
2419         * elf/ifuncdep5pic.c: New file.
2420         * elf/ifuncmain5.c: New file.
2421         * elf/ifuncmain5pic.c: New file.
2422         * elf/ifuncmain5picstatic.c: New file.
2423         * elf/ifuncmain5pie.c: New file.
2424         * elf/ifuncmain5static.c: New file.
2425         * elf/ifuncmain5staticpic.c: New file.
2426         * elf/ifuncmain6pie.c: New file.
2427         * elf/ifuncmain7.c: New file.
2428         * elf/ifuncmain7pic.c: New file.
2429         * elf/ifuncmain7picstatic.c: New file.
2430         * elf/ifuncmain7pie.c: New file.
2431         * elf/ifuncmain7static.c: New file.
2432         * elf/ifuncmod5.c: New file.
2433         * elf/ifuncmod6.c: New file.
2434
2435 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2436
2437         [BZ #10085]
2438         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2439         (nss_endgrent): New variable.
2440         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2441         fields. Change type of files to bool and adjust all users.
2442         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2443         (internal_endgrent): Call nss_endgrent if necessary.
2444         (add_group): New function.  Broken out of...
2445         (check_and_add_group): ...here.
2446         (getgrent_next_nss): Remove test that any callback is available.
2447         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2448         callback.  If there is no blacklist we can trust the results returned
2449         by the initgroups_dyn callback.  In case there is a callback and we
2450         find a group entry for the group ID but it doesn't contain the
2451         correct member, switch to the slow mode and use getgrent_r.
2452         (internal_getgrent_r): When we see a +: entry, determine whether
2453         there is any callback and which we can use the initgroups_dyn
2454         callback.
2455
2456 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
2457
2458         * malloc/malloc.c (_int_malloc): Add some consistency checks.
2459         (_int_free): Likewise.
2460
2461         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2462         AF_IEEE802154.
2463         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2464         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2465         and ARPHRD_IEEE802154_PHY.
2466
2467         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2468         relative to generic Linux version.
2469
2470 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2471
2472         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2473         ($(objpfx)ifuncmain1vispie): Likewise.
2474
2475 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2476
2477         * login/Makefile: Build pt_chown as PIE.
2478
2479 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
2480
2481         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2482         a format string.
2483         * elf/sln.c (usage): Likewise.
2484         * malloc/memusage.sh (do_help): Likewise.
2485         * nss/getent.c (more_help): Likewise.
2486         * posix/getconf.c (main): Likewise.
2487         * sunrpc/rpcinfo.c (usage): Likewise.
2488         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2489
2490 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2491
2492         * login/programs/pt_chown.c: Use libcap to drop privileges other than
2493         those needed.
2494         * login/Makefile: If necessary link pt_chown with -lcap.
2495         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2496         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2497
2498 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2499
2500         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2501         comparisons.
2502         * string/test-memchr.c (do_random_tests): Test very large lengths
2503         as well.
2504
2505 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2506
2507         * Makeconfig (+link-pie): Define.
2508         (+prectorS): Define.
2509         (+postctorS): Define.
2510         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2511         * nscd/Makefile ($(objpfx)nscd): Likewise.
2512
2513 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2514
2515         [BZ #10107]
2516         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2517         with cmplwi.
2518         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2519
2520 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2521
2522         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2523         into ...
2524         * sysdeps/unix/grantpt.c: ...here.
2525
2526 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2527
2528         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2529         chmod if it is necessary.
2530
2531         [BZ #10166]
2532         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2533         when the slave device is in devpts or devfs.
2534
2535         [BZ #10183]
2536         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2537
2538         [BZ #10195]
2539         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2540         of nd_opt_home_agent_info_preference to uint16_t.
2541         Patch by Arnaud Ebalard <arno@natisbad.org>.
2542
2543         [BZ #10207]
2544         * nss/getent.c: Add support for printing gshadow data.
2545
2546         [BZ #10203]
2547         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2548         not just the currently used one and those which follow.
2549         Patch by Joe Landers <jlanders@vmware.com>.
2550
2551         [BZ #10196]
2552         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2553         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2554         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2555
2556         [BZ #10217]
2557         * stdlib/abort.c: Define variable __abort_msg.
2558         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2559         * include/stdlib.h: Declare __abort_msg.
2560         * assert/assert-perr.c: Don't free buffer for message immediately.
2561         Store atomically in __abort_msg and free old buffer if necessary.
2562         * assert/assert.c: Likewise.
2563         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2564         store pointer in __abort_msg, and possibly free old string.
2565         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2566
2567         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2568
2569         [BZ #10211]
2570         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2571         handle leap seconds if they are available.
2572         Patch by Akinori Hattori <hattya@gentoo.org>.
2573
2574         * timezone/tzselect.ksh: Update from tzcode2009i.
2575         * timezone/zdump.c: Likewise.
2576         * timezone/zic.c: Likewise.
2577
2578         * timezone/africa: Update from tzdata2009i.
2579         * timezone/antarctica: Likewise.
2580         * timezone/asia: Likewise.
2581         * timezone/australasia: Likewise.
2582         * timezone/backward: Likewise.
2583         * timezone/etcetera: Likewise.
2584         * timezone/europe: Likewise.
2585         * timezone/factory: Likewise.
2586         * timezone/iso3166.tab: Likewise.
2587         * timezone/leapseconds: Likewise.
2588         * timezone/northamerica: Likewise.
2589         * timezone/pacificnew: Likewise.
2590         * timezone/solar87: Likewise.
2591         * timezone/solar88: Likewise.
2592         * timezone/solar89: Likewise.
2593         * timezone/southamerica: Likewise.
2594         * timezone/systemv: Likewise.
2595         * timezone/yearistype: Likewise.
2596         * timezone/zone.tab: Likewise.
2597
2598 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
2599
2600         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2601         STT_GNU_IFUNC symbol or in 8 into type_class.
2602
2603         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2604         instead of Elf64_Addr.
2605
2606 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
2607
2608         * po/sv.po: Update from translation team.
2609
2610         [BZ #10229]
2611         * misc/sys/select.h (__NFDBITS): Expression should have type int.
2612         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2613         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
2614         the C version.
2615
2616 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
2617
2618         * Versions.def: Add GLIBC_2.11 for libpthread.
2619
2620 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
2621
2622         * resolv/res_send.c (send_dg): Remember we switched to
2623         single-request mode.
2624
2625 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
2626
2627         * dlfcn/dlfcn.h: Remove comma at end of enum.
2628         Patch by J.H.M. Dassen <rdassen@redhat.com>.
2629
2630         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2631         parsing mode string.
2632
2633 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
2634
2635         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
2636
2637         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
2638
2639         * sysdeps/x86_64/multiarch/strlen.S: New file.
2640         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
2641         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
2642         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
2643         content.
2644
2645         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
2646         is defined.
2647
2648 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
2649
2650         * sysdeps/x86_64/strlen.S: Minor optimizations.
2651
2652 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2653
2654         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
2655         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
2656         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
2657         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
2658         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
2659         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
2660         ifuncmain3.c, ifuncmod3.c,.
2661         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
2662         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
2663         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
2664         ifuncmain4picstatic.
2665         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
2666         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
2667         ifuncmain3, ifuncmain4.
2668         (tests): Depend on $(objpfx)ifuncmain1pie.out and
2669         $(objpfx)ifuncmain1vispie.out.
2670         (modules-names): Add ifuncmod1 ifuncmod3.
2671         (generated): Add ifuncmain1pie ifuncmain1pie.out
2672         ifuncmain1vispie ifuncmain1vispie.out.
2673         Define rules to build and run the tests.
2674         * elf/ifuncdep1.c: New file.
2675         * elf/ifuncdep1pic.c: New file.
2676         * elf/ifuncdep2.c: New file.
2677         * elf/ifuncdep2pic.c: New file.
2678         * elf/ifuncmain1.c: New file.
2679         * elf/ifuncmain1pic.c: New file.
2680         * elf/ifuncmain1picstatic.c: New file.
2681         * elf/ifuncmain1pie.c: New file.
2682         * elf/ifuncmain1static.c: New file.
2683         * elf/ifuncmain1staticpic.c: New file.
2684         * elf/ifuncmain1vis.c: New file..
2685         * elf/ifuncmain1vispic.c: New file..
2686         * elf/ifuncmain1vispie.c: New file.
2687         * elf/ifuncmain2.c: New file.
2688         * elf/ifuncmain2pic.c: New file.
2689         * elf/ifuncmain2picstatic.c: New file.
2690         * elf/ifuncmain2static.c: New file.
2691         * elf/ifuncmain3.c: New file.
2692         * elf/ifuncmain4.c: New file.
2693         * elf/ifuncmain4picstatic.c: New file.
2694         * elf/ifuncmain4static.c: New file.
2695         * elf/ifuncmod1.c: New file.
2696         * elf/ifuncmod3.c: New file.
2697
2698 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
2699
2700         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
2701
2702 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
2703
2704         [BZ #10221]
2705         * posix/Makefile (routines): Add execvpe.
2706         * posix/Versions: Export execvpe for GLIBC_2.11.
2707         * posix/execvp.c: Now only a wrapper.  Move code to...
2708         * posix/execvpe.c: ...here.  New file.
2709         * posix/unistd.h: Declare execvpe.
2710
2711 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
2712
2713         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
2714         for STT_GNU_IFUNC handling for efficiency.
2715         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2716
2717         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
2718         _exit.
2719         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
2720
2721 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2722
2723         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
2724         for !SHARED.
2725
2726 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
2727
2728         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
2729         is not defined.
2730         (__rela_iplt_start): New declaration.
2731         (__rela_iplt_end): Likewise.
2732         (__rel_iplt_start): Likewise.
2733         (__rel_iplt_end): Likewise.
2734         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
2735         * elf/elf.h (R_386_IRELATIVE): New macro.
2736         (R_X86_64_IRELATIVE): New macro.
2737         (R_386_NUM): Updated.
2738         (R_X86_64_NUM): Likewise.
2739         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
2740         (libc_ifunc_hidden_def): New macro.
2741         * sysdeps/generic/dl-irel.h: New file.
2742         * sysdeps/i386/dl-irel.h: New file.
2743         * sysdeps/x86_64/dl-irel.h: New file.
2744         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
2745         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
2746         Handle R_386_IRELATIVE.
2747         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
2748         (elf_machine_lazy_rela): Likewise.
2749         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2750         R_X86_64_IRELATIVE.
2751         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
2752
2753 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
2754
2755         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
2756         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
2757         are no differences.  If an architecture has bits in CPUID index 1
2758         meaning different things the values for the COMMON_CPUID_INDEX_1
2759         index must not be set.
2760         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
2761         (HAS_POPCOUNT): ...this.  New macro.
2762         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
2763         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
2764         to set the value for Intel and AMD architectures.
2765         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
2766         INTEL_CPUID_INDEX_1.
2767         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
2768         change.
2769
2770 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
2771
2772         * configure.in: Move AC_CANONICAL_HOST before first use of $host
2773         and $build.
2774
2775 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2776
2777         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
2778         (__expm1l): Set errno to ERANGE on overflow.
2779         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
2780         (__tanl): Set errno to EDOM for Â±Inf.
2781         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
2782         (__cosl): Set errno to EDOM for Â±Inf.
2783         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
2784         (__sinl): Set errno to EDOM for Â±Inf.
2785
2786         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
2787         defined, use it.
2788         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
2789         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
2790         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
2791
2792 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
2793
2794         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
2795         code accessing it.
2796         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
2797
2798 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
2799
2800         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
2801         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2802         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2803         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
2804
2805         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
2806         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
2807         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
2808         defined.
2809         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2810         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2811
2812 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
2813
2814         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
2815         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
2816         is, either do nothing at all if __ASSUME_ACCEPT4, or
2817         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
2818         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
2819         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
2820         define.
2821         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
2822         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
2823         internal_accept4 in socket directory.
2824
2825 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2826
2827         * sysdeps/ia64/configure.in: New file.
2828
2829 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2830
2831         [BZ #10162]
2832         * sysdeps/ia64/memchr.S: Use speculative load.
2833
2834         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
2835         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
2836         use it.
2837
2838         * sysdeps/i386/__longjmp.S: Add .text.
2839         * sysdeps/x86_64/__longjmp.S: Likewise.
2840
2841 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
2842
2843         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
2844         __ASSUME_ACCEPT4 for IA-64.
2845
2846 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
2847
2848         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
2849
2850         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
2851         (SOCKOP_accept4): Define.
2852
2853 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
2854
2855         Sun approved the change of the license.
2856         * sunrpc/auth_des.c: Replace license text.
2857         * sunrpc/auth_none.c: Likewise.
2858         * sunrpc/auth_unix.c: Likewise.
2859         * sunrpc/authdes_prot.c: Likewise.
2860         * sunrpc/authuxprot.c: Likewise.
2861         * sunrpc/bindrsvprt.c: Likewise.
2862         * sunrpc/clnt_gen.c: Likewise.
2863         * sunrpc/clnt_perr.c: Likewise.
2864         * sunrpc/clnt_raw.c: Likewise.
2865         * sunrpc/clnt_simp.c: Likewise.
2866         * sunrpc/clnt_tcp.c: Likewise.
2867         * sunrpc/clnt_udp.c: Likewise.
2868         * sunrpc/clnt_unix.c: Likewise.
2869         * sunrpc/des_crypt.c: Likewise.
2870         * sunrpc/des_soft.c: Likewise.
2871         * sunrpc/get_myaddr.c: Likewise.
2872         * sunrpc/getrpcport.c: Likewise.
2873         * sunrpc/key_call.c: Likewise.
2874         * sunrpc/key_prot.c: Likewise.
2875         * sunrpc/openchild.c: Likewise.
2876         * sunrpc/pm_getmaps.c: Likewise.
2877         * sunrpc/pm_getport.c: Likewise.
2878         * sunrpc/pmap_clnt.c: Likewise.
2879         * sunrpc/pmap_prot.c: Likewise.
2880         * sunrpc/pmap_prot2.c: Likewise.
2881         * sunrpc/pmap_rmt.c: Likewise.
2882         * sunrpc/rpc/auth.h: Likewise.
2883         * sunrpc/rpc/auth_unix.h: Likewise.
2884         * sunrpc/rpc/clnt.h: Likewise.
2885         * sunrpc/rpc/des_crypt.h: Likewise.
2886         * sunrpc/rpc/key_prot.h: Likewise.
2887         * sunrpc/rpc/netdb.h: Likewise.
2888         * sunrpc/rpc/pmap_clnt.h: Likewise.
2889         * sunrpc/rpc/pmap_prot.h: Likewise.
2890         * sunrpc/rpc/pmap_rmt.h: Likewise.
2891         * sunrpc/rpc/rpc.h: Likewise.
2892         * sunrpc/rpc/rpc_des.h: Likewise.
2893         * sunrpc/rpc/rpc_msg.h: Likewise.
2894         * sunrpc/rpc/svc.h: Likewise.
2895         * sunrpc/rpc/svc_auth.h: Likewise.
2896         * sunrpc/rpc/types.h: Likewise.
2897         * sunrpc/rpc/xdr.h: Likewise.
2898         * sunrpc/rpc_clntout.c: Likewise.
2899         * sunrpc/rpc_cmsg.c: Likewise.
2900         * sunrpc/rpc_common.c: Likewise.
2901         * sunrpc/rpc_cout.c: Likewise.
2902         * sunrpc/rpc_dtable.c: Likewise.
2903         * sunrpc/rpc_hout.c: Likewise.
2904         * sunrpc/rpc_main.c: Likewise.
2905         * sunrpc/rpc_parse.c: Likewise.
2906         * sunrpc/rpc_parse.h: Likewise.
2907         * sunrpc/rpc_prot.c: Likewise.
2908         * sunrpc/rpc_sample.c: Likewise.
2909         * sunrpc/rpc_scan.c: Likewise.
2910         * sunrpc/rpc_scan.h: Likewise.
2911         * sunrpc/rpc_svcout.c: Likewise.
2912         * sunrpc/rpc_tblout.c: Likewise.
2913         * sunrpc/rpc_util.c: Likewise.
2914         * sunrpc/rpc_util.h: Likewise.
2915         * sunrpc/rpcinfo.c: Likewise.
2916         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
2917         * sunrpc/rpcsvc/key_prot.x: Likewise.
2918         * sunrpc/rpcsvc/klm_prot.x: Likewise.
2919         * sunrpc/rpcsvc/mount.x: Likewise.
2920         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
2921         * sunrpc/rpcsvc/rex.x: Likewise.
2922         * sunrpc/rpcsvc/rstat.x: Likewise.
2923         * sunrpc/rpcsvc/rusers.x: Likewise.
2924         * sunrpc/rpcsvc/sm_inter.x: Likewise.
2925         * sunrpc/rpcsvc/spray.x: Likewise.
2926         * sunrpc/rpcsvc/yppasswd.x: Likewise.
2927         * sunrpc/rtime.c: Likewise.
2928         * sunrpc/svc.c: Likewise.
2929         * sunrpc/svc_auth.c: Likewise.
2930         * sunrpc/svc_authux.c: Likewise.
2931         * sunrpc/svc_raw.c: Likewise.
2932         * sunrpc/svc_run.c: Likewise.
2933         * sunrpc/svc_simple.c: Likewise.
2934         * sunrpc/svc_tcp.c: Likewise.
2935         * sunrpc/svc_udp.c: Likewise.
2936         * sunrpc/svc_unix.c: Likewise.
2937         * sunrpc/svcauth_des.c: Likewise.
2938         * sunrpc/xcrypt.c: Likewise.
2939         * sunrpc/xdr.c: Likewise.
2940         * sunrpc/xdr_array.c: Likewise.
2941         * sunrpc/xdr_float.c: Likewise.
2942         * sunrpc/xdr_mem.c: Likewise.
2943         * sunrpc/xdr_rec.c: Likewise.
2944         * sunrpc/xdr_ref.c: Likewise.
2945         * sunrpc/xdr_sizeof.c: Likewise.
2946         * sunrpc/xdr_stdio.c: Likewise.
2947
2948         * po/da.po: Update from translation team.
2949
2950 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2951
2952         * sysdeps/sh/____longjmp_chk.S: New file.
2953         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
2954         * sysdeps/sh/sh4/__longjmp.S: Likewise.
2955
2956 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
2957             Ulrich Drepper  <drepper@redhat.com>
2958
2959         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
2960         (__nscd_cache_search): Assume each entry in the
2961         hash chain needs one hashentry and half of datahead.  Use
2962         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
2963
2964 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
2965
2966         * posix/sys/wait.h: Fix typos.  Pretty printing.
2967         * stdlib/stdlib.h: Likewise.  Correct comments.
2968
2969         [BZ #10159]
2970         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
2971
2972         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
2973         patch.
2974
2975 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
2976
2977         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
2978         Use it if we absolutely cannot reach any more correct list elements
2979         because that many do not fit into the currently mapped database.
2980
2981 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
2982
2983         * nscd/nscd_helper.c: Include stddef.h.
2984         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
2985         in a couple of places.  Return NULL if trail is not less than
2986         datasize, don't consider dataheads with length smaller than
2987         offsetof (struct datahead, data) + datalen.
2988         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
2989         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
2990         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2991         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2992         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2993         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2994         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2995
2996         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
2997         Rename ...
2998         (fallocate64): ... to this.
2999         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3000         Rename ...
3001         (fallocate64): ... to this.
3002         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3003         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3004         fallocate64@@GLIBC_2.10.
3005         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3006         fallocate64@@GLIBC_2.11.
3007         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3009         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3010         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3011
3012         * nscd/selinux.c (nscd_avc_destroy): Removed.
3013         * nscd/selinux.h (nscd_avc_destroy): Likewise.
3014         * nscd/nscd.c (termination_handler): Don't call
3015         nscd_avc_destroy.
3016
3017 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
3018
3019         * include/atomic.h: Formatting.
3020         (catomic_compare_and_exchange_val_acq): Don't define if already
3021         defined by bits/atomic.h.
3022
3023 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3024
3025         * math/libm-test.inc (expm1_test): Add test for range error.
3026
3027         * Versions.def: Add GLIBC_2.11 for libc.
3028         * debug/Makefile (routines): Add longjmp_chk.
3029         Add rules to build and run tst-longjmp_chk.
3030         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3031         * debug/longjmp_chk.c: New file.
3032         * debug/tst-longjmp_chk.c: New file.
3033         * include/bits/setjmp2.: New file.
3034         * include/stdio.h: Mark __fortify_fail as internal_function.
3035         * setjmp/Makefile (headers): Add bits/setjmp2.h.
3036         * setjmp/bits/setjmp2.h: New file.
3037         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3038         of the aliases.
3039         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3040         defined.
3041         * sysdeps/i386/____longjmp_chk.S: New file.
3042         * sysdeps/x86_64/____longjmp_chk.S: New file.
3043         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3044         * sysdeps/x86_64/__longjmp.S: Likewise.
3045
3046         * version.h: Bump for 2.11 development.
3047
3048         * elf/check-execstack.c: New file.
3049         * elf/Makefile: Add rules to build and run check-execstack.
3050
3051 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
3052
3053         * version.h (VERSION): Bump to 2.10.1.
3054
3055         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3056         compatibility functions.
3057         * nss/getXXent_r.c: Likewise.
3058         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3059         * gshadow/getsgnam_r.c: Likewise.
3060         * gshadow/Version: Remove duplicate entries.
3061
3062         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3063         for recent processor.
3064         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3065         Likewise.
3066
3067 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
3068
3069         * version.h (VERSION): Bump for 2.10 release.
3070         * include/features.h (__GLIBC_MINOR__): Bump to 10.
3071
3072         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
3073         same place we add ASFLAGS-config.
3074
3075 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
3076
3077         [BZ #10128]
3078         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3079         or FORMERR and the other NOERROR, don't raise an error.
3080
3081 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
3082
3083         [BZ #10118]
3084         * Makeconfig (+asflags): New variable based upon ASFLAG or
3085         asflags-cpu.
3086         (ASFLAGS): Add override to set ASFLAGS to +asflags.
3087         * config.make.in (asflags-cpu): Add variable based upon
3088         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3089         the assembler.
3090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3091         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3092         recognizes power6 instruction set due to passing -mcpu=power6 from
3093         --with-cpu=power6 when compiling .S files.
3094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3095         Likewise.
3096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3097         Likewise.
3098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3099         Likewise.
3100
3101 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
3102
3103         * string/stratcliff.c (do_test): Test for zero length
3104         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3105         at the end of the page.
3106
3107 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
3108
3109         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3110
3111         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3112         count is zero.
3113
3114         * po/da.po: Update from translation team.
3115
3116 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
3117
3118         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3119         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3120
3121 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
3122
3123         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3124         and READ_IMPLIES_EXEC.
3125
3126 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
3127
3128         * po/da.po: Update from translation team.
3129
3130 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
3131
3132         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3133         comment change.
3134
3135 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
3136
3137         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3138         to MAP_ANON in PROT_NONE mmap64 call.
3139         (open_archive): Likewise.
3140         (file_data_available_p): Use mmap64 instead of mremap.
3141         (enlarge_archive): Likewise.  Update head if ah->addr changed.
3142         Attempt to reserve address space after mmap64 region.
3143
3144 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
3145
3146         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3147         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3148         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3149
3150         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3151         atanh should set ERANGE.
3152
3153         [BZ #10087]
3154         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3155         result of lookup to make call to implement STT_GNU_IFUNC.
3156         (_dl_profile_fixup): Likewise.
3157         Patch by H.J. Lu <hjl.tools@gmail.com>.
3158
3159         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3160         warning.
3161
3162         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3163         from definition.
3164
3165         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3166         label if it is not used.
3167
3168         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3169         of gmon_hist_hdr and gmon_hdr structures and use them.
3170         * elf/sprof.c: Likewise.
3171
3172         * elf/dl-load.c (open_verify): Add temporary variable to avoid
3173         warning.
3174
3175         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3176
3177         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3178         to avoid cast.
3179
3180         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3181         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3182         to avoid warnings.
3183         (iruserok_af): Use ss_family instead of casts.
3184
3185         * gmon/gmon.c (write_hist): Define real-type variant of
3186         gmon_hist_hdr structure and use it.
3187         (write_gmon): Likewise for gmon_hdr.
3188
3189         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3190         function if we are not going to define it.
3191         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3192
3193         * inet/inet6_option.c (option_alloc): Add temporary variable to
3194         avoid warning.
3195
3196         * libio/strfile.h (struct _IO_streambuf): Use correct type and
3197         name of VTable element.
3198         * libio/iovsprintf.c: Avoid casts to avoid warnings.
3199         * libio/iovsscanf.c: Likewise.
3200         * libio/vasprintf.c: Likewise.
3201         * libio/vsnprintf.c: Likewise.
3202         * stdio-common/isoc99_vsscanf.c: Likewise.
3203         * stdlib/strfmon_l.c: Likewise.
3204         * debug/vasprintf_chk.c: Likewise.
3205         * debug/vsnprintf_chk.c: Likewise.
3206         * debug/vsprintf_chk.c: Likewise.
3207
3208         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3209         function pointers.
3210
3211 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
3212
3213         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3214
3215 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
3216
3217         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3218
3219         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
3220         * sysdeps/i386/fpu/s_tanf.S: Likewise.
3221         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3222         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3223         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3224         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3225         * math/libm-test.inc: Add tests for errno after tan calls with
3226         Â±Inf.
3227
3228         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3229         errno value vor pow(+-0,neg).
3230         * math/libm-test.inc (pow_test): Add tests for errno value for
3231         pole errors.
3232
3233         * math/w_fmod.c: Also handle x=±Inf as error.
3234         * math/w_fmodf.c: Likewise.
3235         * math/w_fmodl.c: Likewise.
3236         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3237         x=±Inf or y=0.
3238
3239         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3240         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3241         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3242         * sysdeps/i386/fpu/s_sin.S: Likewise.
3243         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3244         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3245         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3246         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3247         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3248         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3249         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3250         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3251         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3252         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3253         Â±Inf.
3254
3255         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3256         ERANGE for underflows.
3257         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3258
3259         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3260         the 2001 revision.
3261
3262         * libio/tst-widetext.input: Remove surrogates.
3263
3264         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3265
3266         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3267         for lgamma should set errno to ERANGE, not EDOM.
3268         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3269
3270 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3271
3272         [BZ #10093]
3273         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3274         UTF-16 surrogates.
3275
3276         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3277         space when temporarily mapping the whole content of the old file.
3278
3279         [BZ #10100]
3280         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3281         not zero.
3282
3283 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3284
3285         * iconvdata/sjis.c (BODY): Don't advance inptr before
3286         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3287         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3288         two byte chars.
3289
3290 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3291
3292         * locale/locarchive.h (struct locarhandle): Rename len field to
3293         mmaped and add new reserved field.
3294         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3295         (create_archive): Reserve address space and then map file into it.
3296         (open_archive): Likewise.
3297         (file_data_available_p): New function.
3298         (compare_from_file): New function.
3299         (close_archive): Adjust to member name changes.
3300         (add_locale): Before comparing locale data, check it is mapped.
3301         Otherwise fall back to reading from the file.
3302
3303 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3304
3305         * stdio-common/psiginfo.c: Include <errno.h>.
3306
3307 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3308
3309         [BZ #9920]
3310         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3311         to get consistency between 32 and 64 bit architectures.
3312
3313         [BZ #10052]
3314         * sysdeps/unix/make-syscalls.sh: Add rule to create target
3315         directory for dummy syscall rules.
3316         Patch by Chris Steinbroner <hesh@pobox.com>.
3317
3318 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
3319
3320         [BZ #10092]
3321         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3322         MNT_EXPIRE.
3323
3324 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3325
3326         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
3327         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3328
3329 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
3330
3331         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
3332         data from vector to temporary buffer and call PWRITEV after it
3333         instead of vice versa.
3334         * sysdeps/posix/preadv.c: Fix up comment.
3335         * misc/preadv.c: Likewise.
3336         * misc/preadv64.c: Likewise.
3337         * misc/pwritev.c: Likewise.
3338         * misc/pwritev64.c: Likewise.
3339         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3340
3341 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3342
3343         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3344
3345         * shadow/Makefile (tests): Add tst-shadow.
3346         * shadow/tst-shadow.c: New file.
3347
3348         [BZ #9955]
3349         * gshadow/Makefile: New file.
3350         * gshadow/Versions: New file.
3351         * gshadow/fgetsgent.c: New file.
3352         * gshadow/fgetsgent_r.c: New file.
3353         * gshadow/getsgent.c: New file.
3354         * gshadow/getsgent_r.c: New file.
3355         * gshadow/getsgnam.c: New file.
3356         * gshadow/getsgnam_r.c: New file.
3357         * gshadow/gshadow.h: New file.
3358         * gshadow/putsgent.c: New file.
3359         * gshadow/sgetsgent.c: New file.
3360         * gshadow/sgetsgent_r.c: New file.
3361         * gshadow/tst-gshadow.c: New file.
3362         * include/gshadow.h: New file.
3363         * Makeconfig (all-subdirs): Add gshadow.
3364         * Makefile (installed-headers): Add gshadow/gshadow.h.
3365         * nss/Makefile (databases): Add sgrp.
3366         * nss/Versions: Add gshadow functions as private exports.
3367         * nss/nsswitch.conf: Add gshadow entry.
3368         * nss/sgrp-lookup.c: New file.
3369         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
3370         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3371         * nss/nss_files/files-sgrp.c: New file.
3372         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3373         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3374
3375 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3376
3377         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3378         * stdio-common/reg-modifier.c: Likewise.
3379
3380 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3381
3382         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3383         is no FPU.
3384
3385 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3386
3387         [BZ #10086]
3388         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3389         headers up to 2.6.30.
3390
3391         * po/ca.po: Update from translation team.
3392
3393 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3394
3395         [BZ #10069]
3396         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3397         an object that uses static TLS if the TLS modid is higher than the
3398         reserve we always allocate.  At least for multi-threaded code.
3399
3400 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3401
3402         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3403         Numerically stable check for valid width.
3404
3405         * locale/programs/locarchive.c (open_archive): Map the entire file
3406         and not just the administrative data.
3407         (add_locale): When we find a hash sum match compare the content
3408         to be sure.
3409
3410         * malloc/malloc.c (malloc_info): Output address space information.
3411
3412 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3413
3414         * malloc/malloc.c (malloc_info): Also output system memory information.
3415
3416         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3417         architectures have preadv/pwritev in 2.6.30.
3418
3419         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3420         * sysdeps/posix/readv.c: Likewise.
3421         Reported by Markus Armbruster <armbru@redhat.com>.
3422
3423         * malloc/hooks.c (top_check): Force hook value into register.
3424
3425 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3426
3427         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3428         calls to _dl_relocate_object.
3429
3430 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3431
3432         [BZ #9957]
3433         * malloc/malloc.c (force_reg): Define.
3434         (sYSMALLOc): Load hook variable into variable
3435         before test and force into register.
3436         (sYSTRIm): Likewise.
3437         (public_mALLOc): Force hook value into register.
3438         (public_fREe): Likewise.
3439         (public_rEALLOc): Likewise.
3440         (public_mEMALIGn): Likewise.
3441         (public_vALLOc): Likewise.
3442         (public_pVALLOc): Likewise.
3443         (public_cALLOc): Likewise.
3444         (__posix_memalign): Likewise.
3445         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3446         before test and force into register.
3447         * malloc/hooks.c (top_check): Likewise.
3448         (public_sET_STATe): Pretty printing.
3449
3450         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3451         in case we only receive one reply in single-request mode.
3452
3453 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
3454
3455         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3456         are dlopened in statically linked program even for __LM_ID_CALLER.
3457
3458 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3459
3460         * resolv/res_send.c (send_dg): Don't switch into single-request
3461         mode if we already are in it.
3462
3463 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
3464
3465         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3466         are always at least 4 bytes in the returned line.
3467
3468 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
3469
3470         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3471         __libc_use_alloca (8192), if the stack is too small use 512 bytes
3472         instead of 8K.  Stop searching in /proc/stat after hitting first
3473         line not starting with cpu.
3474         (next_line): Truncate too long
3475         lines at buffer size * 3/4 instead of pretending there were line
3476         breaks inside of large lines.
3477
3478 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3479
3480         * sysdeps/x86_64/mp_clz_tab.c: New file.
3481
3482 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
3483             Ulrich Drepper  <drepper@redhat.com>
3484
3485         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3486         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3487         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3488
3489 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
3490
3491         * sysdeps/sh/libc-tls.c: New file.
3492
3493         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3494
3495 2009-04-14  Roland McGrath  <roland@redhat.com>
3496
3497         * elf/elf.h: Add various missing ARM constants, to match binutils.
3498
3499 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3500
3501         Optimizations from GMP.
3502         * sysdeps/x86_64/add_n.S: New file.
3503         * sysdeps/x86_64/addmul_1.S: New file.
3504         * sysdeps/x86_64/lshift.S: New file.
3505         * sysdeps/x86_64/mul_1.S: New file.
3506         * sysdeps/x86_64/rshift.S: New file.
3507         * sysdeps/x86_64/sub_n.S: New file.
3508         * sysdeps/x86_64/submul_1.S: New file.
3509
3510 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3511
3512         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3513         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3514         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3515         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3516
3517 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3518
3519         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3520         preadv/pwritev.
3521
3522 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3523
3524         * sysdeps/x86-64/strrchr.S: New file.
3525
3526 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3527
3528         * stdio-common/printf.h (struct printf_info): Add user element.
3529         New types printf_arginfo_size_function, printf_va_arg_function.
3530         Declare register_printf_specifier, register_printf_modifier,
3531         register_printf_type.
3532         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3533         (union printf_arg): Add pa_user element.
3534         Adjust __printf_arginfo_table type.
3535         Add __printf_va_arg_table, __printf_modifier_table,
3536         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3537         declarations.
3538         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3539         If registered arginfo call failed try normal specifier.
3540         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3541         function.
3542         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3543         * stdio-common/Versions: Export register_printf_modifier,
3544         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3545         * stdio-common/reg-modifier.c: New file.
3546         * stdio-common/reg-type.c: New file.
3547         * stdio-common/reg-printf.c (__register_printf_specifier): New
3548         function.  Mostly the old __register_printf_function function but
3549         uses locking and type of third parameter changed.
3550         (__register_printf_function): Implement using
3551         __register_printf_specifier.
3552         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3553         calls to arginfo functions.  Allocate enough memory for user-defined
3554         types.  Call new va_arg functions to get user-defined types.
3555         Try installed handlers even for existing format specifiers first.
3556
3557 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3558
3559         * sysdeps/x86_64/rawmemchr.S: New file.
3560
3561         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3562         Simplified code and possible copy problem fixed.
3563
3564         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3565         function if it is not defined.  Add some necessary casts.
3566         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3567
3568         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3569         have preadv/pwritev in 2.6.30.
3570
3571 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3572
3573         * malloc/malloc.c (malloc_info): New function.
3574         * malloc/malloc.h: Declare it.
3575         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3576
3577         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3578         to avoid PLT slot.
3579
3580         * malloc/malloc.c (_int_realloc): Add parameter with old block
3581         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3582         Adjust all callers.
3583         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3584
3585 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
3586
3587         * sysdeps/x86_64/strchrnul.S: New file.
3588
3589         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3590         depending libcrypt on -lfreebl3.
3591
3592         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3593         preadv/pwritev in 2.6.30.
3594
3595         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3596         instead of __strcasecmp.
3597
3598         * string/stratcliff.c (do_test): Add memchr tests..
3599         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3600         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3601         first read quad word.
3602
3603 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
3604
3605         * string/strverscmp.c (__strverscmp): Fix last cleanups.
3606         * string/tst-svc.input: Add new test case.
3607         * string/tst-svc.expect: Adjust.
3608         * string/Makefile: Don't ignore tst-svc error.
3609
3610         * sysdeps/x86_64/memchr.S: New file.
3611
3612         * resolv/resolv.h (RES_SNGLKUP): Define.
3613         * resolv/res_init.c (res_setoptions): Recognize single-request option.
3614         * resolv/res_send.c (send_dg): If we sent two requests at once and
3615         only get one reply before timeout switch to mode where we send the
3616         second request only after the first answer has been received.
3617
3618 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
3619
3620         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3621         * sysdeps/x86_64/strchr.S: Likewise.
3622
3623 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
3624
3625         * configure.in: We need to test for the compiler earlier.
3626
3627         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3628         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3629         GLIBC_2.10.
3630         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3631         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3632         and pwritev.
3633         * misc/preadv.c: New file.
3634         * misc/preadv64.c: New file.
3635         * misc/pwritev.c: New file.
3636         * misc/pwritev64.c: New file.
3637         * sysdeps/posx/preadv.c: New file.
3638         * sysdeps/posx/preadv64.c: New file.
3639         * sysdeps/posx/pwritev.c: New file.
3640         * sysdeps/posx/pwritev64.c: New file.
3641         * sysdeps/unix/sysv/linux/preadv.c: New file.
3642         * sysdeps/unix/sysv/linux/preadv64.c: New file.
3643         * sysdeps/unix/sysv/linux/pwritev.c: New file.
3644         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
3645         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
3646         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
3647
3648         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
3649         compatibility code.
3650         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
3651
3652         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3653         __ASSUME_COMPLETE_READV_WRITEV.
3654         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
3655         with modern kernels.
3656         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3657
3658         * sysdeps/posix/readv.c: Since read is a cancellation point we have
3659         to free a possible malloced buffer in case of cancellation.
3660         * sysdeps/posix/writev.c: Likewise for write.
3661
3662 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
3663
3664         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
3665
3666         * configure.in: Recognize --enable-nss-crypt.
3667         * config.make.in: Add nss-crypt entry.
3668         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
3669         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
3670         and include path for NSS directory to compiler for md5-crypt,
3671         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
3672         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
3673         function implementation, use NSS.  Introduce wrappers around the
3674         hash function calls.  Little code size optimization.
3675         * crypt/sha256-crypt.c: Likewise.
3676         * crypt/sha512-crypt.c: Likewise.
3677         * scripts/check-local-headers.sh: Ignore nss3 directory.
3678
3679         * configure.in: Rename pic_default to libc_cv_pic_default.
3680         * config.make.in: Likewise.
3681
3682 2009-04-01  Roland McGrath  <roland@redhat.com>
3683
3684         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
3685         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
3686         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
3687         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
3688         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
3689         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
3690         (R_SPARC_NUM): Update.
3691         From Dave Miller <davem@davemloft.net>.
3692
3693 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
3694
3695         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
3696
3697 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
3698
3699         * elf/dl-open.c: Keep track of used name spaces and only iterate over
3700         those which are used.
3701         * elf/dl-addr.c: Likewise.
3702         * elf/dl-caller.c: Likewise.
3703         * elf/dl-fini.c: Likewise.
3704         * elf/dl-iteratephdr.c: Likewise.
3705         * elf/dl-libc.c: Likewise.
3706         * elf/dl-load.c: Likewise.
3707         * elf/dl-support.c: Likewise.
3708         * elf/dl-sym.c: Likewise.
3709         * elf/rtld.c: Likewise.
3710         * sysdeps/generic/ldsodefs.h: Likewise.
3711
3712         * elf/dl-load.c: Remove support for systems without MAP_ANON.
3713         * elf/dl-minimal.c: Likewise.
3714         * elf/dl-misc.c: Likewise.
3715         * elf/rtld.c: Likewise.
3716         * sysdeps/generic/ldsodefs.h: Likewise.
3717
3718 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
3719
3720         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
3721         Avoid reuse of complex expression.
3722
3723         * po/fr.po: Update from translation team.
3724
3725 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3726
3727         * include/dirent.h: Yet more changes to match sort function type
3728         change.
3729         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
3730         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
3731         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3732
3733 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
3734
3735         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
3736
3737 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
3738
3739         * nscd/connections.c (restart): Try to preserve the process name
3740         by reading the /proc/self/exe symlink and using the return name.
3741         Patch by Jeff Bastian <jbastian@redhat.com>.
3742
3743 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
3744
3745         [BZ #9733]
3746         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
3747         if we are not loading a new audit library.
3748         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
3749         Only use profiling trampoline for auditing if we are not relocating
3750         an audit library.
3751         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
3752         * elf/rtld.c: Likewise.
3753         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
3754
3755         * elf/rtld.c (dl_main): Extend help message for --audit option.
3756
3757         [BZ #9759]
3758         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
3759         alphasort64, versionsort, and versionsort64 to POSIX 2008.
3760         * dirent/alphasort.c: Adjust implementation to type change.
3761         * dirent/alphasort64.c: Likewise.
3762         * dirent/scandir.c: Likewise.
3763         * dirent/versionsort.c: Likewise.
3764         * dirent/versionsort64.c: Likewise.
3765         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
3766         declaration.
3767         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
3768         declaration.
3769
3770         [BZ #9880]
3771         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
3772         correctly.  Set segleft member in output as required.
3773         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3774         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
3775
3776         [BZ #9881]
3777         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
3778         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3779         * inet/Makefile (tests): Add tst-inet6_rth.
3780         * inet/tst-inet6_rth.c: New file.
3781
3782         [BZ #5807]
3783         * string/strlen.c (strlen): Fix omission in the expression to test
3784         for NUL bytes.
3785
3786 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3787
3788         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
3789
3790         * elf/dl-runtime.c (reloc_offset): Define.
3791         (reloc_index): Define.
3792         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
3793         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
3794         computing index from reloc_offset.
3795         (_dl_call_pltexit): Likewise.
3796         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
3797         the relocation index to _dl_fixup.
3798         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
3799         _dl_call_pltexit.
3800         * sysdeps/x86_64/dl-runtime.c: New file.
3801
3802         [BZ #9893]
3803         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
3804         alignment of La_x86_64_regs.  Store xmm parameters.
3805         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
3806
3807         [BZ #9913]
3808         * string/strverscmp.c (__strverscmp): Fix case of different digits
3809         in fractional part of string.
3810         Patch by Jingyu Liu <jyliu@fortinet.com>.
3811         * string/Makefile (tests): Add tst-svc2.
3812         * string/tst-svc2.c: New file.
3813
3814         * string/strverscmp.c (__strverscmp): Optimize size of tables.
3815
3816         * locale/iso-639.def: Add Min Nan.
3817
3818 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3819
3820         [BZ #9948]
3821         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
3822
3823 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
3824
3825         * elf/dl-sysdep.c (auxvars): Compress data structure.
3826
3827         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
3828         STT_GNU_IFUNC handling.
3829         (elf_machine_rela): Likewise.
3830
3831 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
3832
3833         * config.h.in (USE_MULTIARCH): Define.
3834         * configure.in: Handle --enable-multi-arch.
3835         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
3836         (_dl_fixup_profile): Likewise.
3837         * elf/do-lookup.c (dl_lookup_x): Likewise.
3838         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
3839         * elf/elf.h (STT_GNU_IFUNC): Define.
3840         * include/libc-symbols.h (libc_ifunc): Define.
3841         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
3842         framework in init-arch.h to get CPUID values.
3843         * sysdeps/x86_64/multiarch/Makefile: New file.
3844         * sysdeps/x86_64/multiarch/init-arch.c: New file.
3845         * sysdeps/x86_64/multiarch/init-arch.h: New file.
3846         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
3847
3848         * config.make.in (experimental-malloc): Define.
3849         * configure.in: Handle --enable-experimental-malloc.
3850         * malloc/Makefile: Handle experimental-malloc flag.
3851         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
3852         * malloc/arena.c: Likewise.
3853         * malloc/hooks.c: Likewise.
3854         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
3855
3856 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
3857
3858         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
3859         prediction.  A few size optimizations.
3860
3861 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3862
3863         * time/tzset.c: Optimize a bit for size.
3864
3865 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3866
3867         * include/stdio.h (fmemopen): Add libc_hidden_proto.
3868         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
3869
3870         * elf/sprof.c: Avoid warning about multi-line comment.
3871
3872 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3873
3874         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
3875         DST name.
3876         * time/tst-posixtz.c: Add tests for quoted timezone names.
3877
3878 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
3879
3880         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
3881         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
3882         200809L instead of 200112L.
3883         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
3884         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
3885
3886         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
3887         instead of __quick_exit_funcs to __run_exit_handlers.
3888         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
3889         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
3890         (__cxa_at_quick_exit): Remove attribute_hidden.
3891         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
3892         to __run_exit_handlers.
3893         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
3894         attribute_hidden.
3895
3896 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
3897
3898         * po/id.po: Update from translation team.
3899
3900 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
3901
3902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
3903         .machine push; .machine "power6" and .machine pop around mtfsf
3904         insns outside of _ARCH_PWR6 define.
3905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3907         Likewise.
3908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3909         Likewise.
3910         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
3911         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
3912         relax_fenv_state): Likewise.
3913
3914 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
3915
3916         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
3917         cxa_at_quick_exit.
3918         (static-only-routines): Add at_quick_exit.
3919         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
3920         GLIBC_2.10.
3921         * stdlib/quick_exit.c: New file.
3922         * stdlib/at_quick_exit.c: New file.
3923         * stdlib/cxa_at_quick_exit.c: New file.
3924         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
3925         it appropriately.
3926         (__internal_atexit): New function.
3927         (__new_exitfn): Now takes parameter to point to the list to use.
3928         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
3929         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
3930         (exit): ...here.  Just call __run_exit_handlers appropriately.
3931         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
3932         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
3933         * stdlib/on_exit.c: Adjust call to __new_exitfn.
3934         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
3935
3936         * po/id.po: Update from translation team.
3937
3938 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
3939
3940         * po/ru.po: Update from translation team.
3941
3942 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
3943
3944         * po/nl.po: Update from translation team.
3945
3946 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
3947
3948         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
3949         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3950         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3951         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3952         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3953         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3954         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3955
3956         * po/pl.po: Update from translation team.
3957
3958 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3959
3960         [BZ #7083]
3961         * sysdeps/unix/sysv/linux/fallocate.c: New file.
3962         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
3963         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
3964         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
3965         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
3966         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
3967         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
3968         for GLIBC_2.10.
3969         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3970         Add fallocate and fallocate64.
3971
3972         * io/fcntl.h: Pretty printing.
3973
3974 2009-03-02  Richard Guenther  <rguenther@suse.de>
3975
3976         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
3977         attribute also for non-C99 inline semantics variant.
3978
3979 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3980
3981         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
3982         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
3983         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3984         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
3985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
3986         Likewise.
3987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
3988         Likewise.
3989
3990 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
3991
3992         * po/cs.po: Update from translation team.
3993
3994 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
3995
3996         * po/bg.po: Update from translation team.
3997         * po/sv.po: Likewise.
3998         * po/fi.po: Likewise.
3999         * po/vi.po: Likewise.
4000
4001 2009-02-27  Roland McGrath  <roland@redhat.com>
4002
4003         * Makeconfig (%.v.i): Depend on Makeconfig.
4004         Exclude % lines from initial #-comment removal.
4005
4006 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
4007
4008         * po/ko.po: Update from translation team.
4009
4010 2009-02-26  Roland McGrath  <roland@redhat.com>
4011
4012         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4013         avoids unused warning.
4014
4015 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
4016             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4017
4018         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4019         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
4020         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4021         and asm/user.h.  Include asm/ptrace.h.
4022         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4023         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4024         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4025         Undefine.
4026         (start_thread): Don't undefine.
4027         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4028         Define.
4029
4030 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
4031
4032         * wctype/wctype.h: The *_l functions are in POSIX 2008.
4033         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4034         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4035         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4036         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4037         200112L to 200809L.
4038         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4039         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4040         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4041         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4042         _SC_THREAD_ROBUST_PRIO_PROTECT.
4043         * posix/unistd.h: fexecve is in POSIX 2008.
4044         * time/time.h: strftime_l is in POSIX 2008.
4045         * io/sys/stat.h: futimens is in POSIX 2008.
4046         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4047         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4048         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4049         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4050         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4051         open_memstream, and vdprintf are in POSIX 2008.
4052
4053 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
4054
4055         * include/features.h: Define macros for XPG7/POSIX 2008.
4056         * ctype/ctype.h: The *_l functions are in POSIX 2008.
4057         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4058         POSIX 2008.
4059         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4060         * locale/xlocale.h: Define locale_t type.
4061         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4062         in POSIX 2008.  Don't define locale_t here.
4063         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4064         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4065         UTIME_OMIT only with __USE_ATFILE.
4066         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4067         * stdio-common/psiginfo.c: New file.
4068         * stdio-common/psiginfo-data.h: New file.
4069         * stdio-common/psiginfo-define.h: New file.
4070         * stdio-common/Makefile (routines): Add psiginfo.
4071         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4072         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4073         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4074         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4075         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4076         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4077         * io/sys/stat.h: Move mknodat definition into same conditional as
4078         mknod.
4079         * time/sys/time.h: futimesat is not among the functions accepted
4080         into the POSIX standard.
4081
4082         * include/features.h: If no feature selection given and we select
4083         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4084         * posix/Versions: Export __posix_getopt.
4085         * posix/getopt.c (_getopt_initialize): Take additional parameter.
4086         Use it to alternatively initialize __posixly_correct.
4087         (_getopt_internal_r): Take addition parameter.  Pass on to
4088         _getopt_initialize.
4089         (_getopt_internal): Take addition parameter.  Pass on to
4090         _getopt_internal_r.
4091         (getopt): Pass additional zero to _getopt_internal.
4092         (__posix_getopt): New function.
4093         * posix/getopt.h: Add redirection for getopt.
4094         * posix/getopt1.c (getopt_long): Pass additional zero to
4095         _getopt_internal.
4096         (getopt_long_only): Likewise.
4097         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4098         (_getopt_long_only_r): Likewise.
4099         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4100         _getopt_internal_r.
4101
4102 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4103
4104         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4105         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4106         * sysdeps/posix/sysconf.c (__sysconf): Handle
4107         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4108         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4109
4110 2009-02-24  Roland McGrath  <roland@redhat.com>
4111
4112         [BZ #9895]
4113         * README.template: Reworded not to use substituted version number.
4114         Renamed to ...
4115         * README: ... here (no longer generated).
4116         * Makefile (README): Target removed.
4117
4118 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4119
4120         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4121         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4122         instead.
4123
4124         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4125
4126         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4127
4128 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
4129
4130         * po/bg.po: Update from translation team.
4131
4132 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
4133
4134         * stdlib/monetary.h: Uglify function parameter names.
4135         * sunrpc/rpc/pmap_clnt.h: Likewise.
4136         * sunrpc/rpc/svc.h: Likewise.
4137         * sunrpc/rpc/xdr.h: Likewise.
4138         * sunrpc/rpc/clnt.h: Likewise.
4139         * resolv/netdb.h: Likewise.
4140         * resolv/arpa/nameser.h: Likewise.
4141         * resolv/resolv.h: Likewise.
4142         * argp/argp.h: Likewise.
4143         * locale/langinfo.h: Likewise.
4144         * io/sys/stat.h: Likewise.
4145         * posix/spawn.h: Likewise.
4146         * nis/rpcsvc/nislib.h: Likewise.
4147         * malloc/obstack.h: Likewise.
4148         * sysdeps/ia64/bits/link.h: Likewise.
4149         * sysdeps/i386/bits/link.h: Likewise.
4150         * sysdeps/s390/bits/link.h: Likewise.
4151         * sysdeps/powerpc/bits/link.h: Likewise.
4152         * sysdeps/x86_64/bits/link.h: Likewise.
4153         * sysdeps/sparc/bits/link.h: Likewise.
4154         * sysdeps/sh/bits/link.h: Likewise.
4155         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4156         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4157         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4158         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4159
4160 2008-12-01  Fredrik Unger  <fred@tree.se>
4161
4162         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4163         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4164         _FP_UNPACK_RAW_2, fix up first argument.
4165
4166 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
4167
4168         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4169         (GET_NPROCS_PARSER): Change parameters and use next_line.
4170         (__get_nprocs): Rewrite to not use stdio routines.
4171         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4172         Change parameters and use next_line.
4173
4174 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
4175
4176         [BZ #5381]
4177         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4178         Change mempool_alloc prototype.
4179         * nscd/mem.c (gc): Don't handle mem_in_flight.
4180         (mempool_alloc): Third parameter now only indicates whether this is the
4181         first call (to allocate data) or not.  If it is, get db rdlock.
4182         Release it on error.  Don't handle mem_in_flight.
4183         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4184         Adjust third parameter of mempool_alloc calls.
4185         Nothing to do here in case mempool_alloc fails.
4186         Avoid local variable shadowing parameter.  No need to get db rdlock
4187         before calling cache_add.
4188         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
4189         no mem_in_flight array anymore.
4190         * nscd/connections.c: Remove definition and handling of mem_in_flight.
4191         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4192         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
4193         in case mempool_alloc fails. No need to get db rdlock before calling
4194         cache_add.
4195         * nscd/hstcache.c (cache_addhst): Likewise.
4196         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4197         * nscd/servicescache.c (cache_addserv): Likewise.
4198         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
4199
4200 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
4201
4202         * po/lt.po: Update from translation team.
4203
4204 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
4205
4206         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4207         defined, allow additional data to be added using the optional
4208         MORE_ELF_HEADER_DATA macro.
4209         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4210         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4211
4212 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
4213
4214         * include/atomic.h: Define catomic_and if not already defined.
4215         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4216         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4217
4218 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
4219
4220         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4221         Change all callers.
4222         (_int_realloc): Likewise.  Third argument is now padded size
4223         All _int_* functions are now static.
4224
4225         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4226         * malloc/arena.c: Likewise.
4227         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4228         functions.
4229
4230         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4231         easily.
4232
4233         * malloc/malloc.c: Add branch prediction for use of the hooks.
4234
4235         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4236
4237 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4238
4239         [BZ #7095]
4240         * bits/confname.h: Add SUSv7 macros for getconf environments.
4241         * bits/environments.h: Likewise.
4242         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4243         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4244         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4245         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4246         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4247         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4248         * posix/getconf.c: Likewise.
4249         * posix/sysconf.c: Likewise.
4250         * sysdeps/posix/sysconf.c: Likewise.
4251         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4252         environments.
4253
4254 2009-01-16  Petr Baudis  <pasky@suse.cz>
4255
4256         [BZ #9753]
4257         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4258         even if we currently have zero nscount.
4259
4260 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4261
4262         [BZ #9781]
4263         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4264         the input line is too long.
4265
4266         * po/Makefile (libc.pot): Add f_print as function taking c-format
4267         parameter.
4268
4269         * debug/xtrace.sh: Unify translatable messages.
4270         * elf/ldd.bash.in: Likewise.
4271         * elf/sprof.c: Likewise.
4272         * locale/programs/locale.c: Likewise.
4273         * malloc/memusage.sh: Likewise.
4274         * nss/getent.c: Likewise.
4275
4276 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4277
4278         * debug/pcprofiledump.c (print_version,
4279         argp_program_version_hook): New function.
4280         * elf/ldconfig.c (more_help): New function.
4281         (argp): Use it.
4282         * elf/sln.c (usage): New function.
4283         (main): Support --help and --version.
4284         * malloc/memusagestat.c (print_version): New function.
4285         (argp_program_version_hook): New variable.
4286         * nscd/nscd.c (more_help): New function.
4287         (argp): Use it.
4288         * posix/getconf.c (main): Send --version output to stdout.
4289         Support --help.
4290         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4291         arguments.  All callers changed.
4292         (print_version): New function.
4293         (parseargs): Support --help and --version.
4294         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4295         changed.
4296         (print_version): New function.
4297         (main): Use getopt_long.  Support --help and --version.
4298         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4299         --version.
4300
4301 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4302
4303         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4304         (update_data): Fix handling of wrapping back
4305         to the beginning of the buffer.
4306
4307         [BZ #9823]
4308         * stdio-common/psignal.c (psignal): Fix test for empty string.
4309
4310 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
4311
4312         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4313         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
4314         move _null_auth to .rodata.
4315
4316         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4317         value of 24.
4318
4319         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4320
4321         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4322         today than when the original code was written.  Use larger
4323         buffers.  This also makes it unnecessary to have stat information,
4324         if this causes extra efforts.
4325         (__opendir): In case O_DIRECTORY works, don't call fstat just for
4326         __alloc_dir.
4327
4328 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
4329
4330         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4331         is set.
4332         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4333         * sysdeps/sh/sh4/__longjmp.S: Likewise.
4334         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4335         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4336         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4337         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4338
4339 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4340
4341         * po/ru.po: Update from translation team.
4342
4343 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4344
4345         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4346         Add _tid slot to maintain consistency with kernel.
4347
4348 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4349
4350         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4351         incomplete characters at end of input buffer.
4352         * libio/Makefile (tests): Add tst-fgetwc.
4353         * libio/tst-fgetwc.c: New file.
4354         * libio/tst-fgetwc.input: New file.
4355
4356 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4357
4358         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4359
4360 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4361
4362         [BZ #9793]
4363         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4364         *OUTBUFSTART unless the whole output fit into the buffer.
4365         * iconv/Makefile (tests): Add tst-iconv4.
4366         * iconv/tst-iconv4.c: New file.
4367
4368 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
4369
4370         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4371         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4372
4373 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4374
4375         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4376         newer linker scripts.
4377
4378 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4379
4380         [BZ #7040]
4381         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4382         inotify_rm_watch should have type int.
4383
4384 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4385
4386         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4387         Make aligned_restore_vmx a local symbol.
4388         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4389         Likewise.
4390
4391 2009-01-30  Andreas Jaeger  <aj@suse.de>
4392
4393         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4394         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4395         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4396         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4397         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4398         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4399         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4400
4401 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4402
4403         [BZ #9726]
4404         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4405         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4406
4407 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4408
4409         [BZ #9726]
4410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4411         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4413         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4414
4415 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4416
4417         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4418         memcpy instead of memcmp.
4419         (_dl_setup_pointer_guard): Likewise.
4420
4421 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4422
4423         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4424         manipulated brk, use malloc_printerr.
4425         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4426         requests.
4427
4428 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4429
4430         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4431         rindex): For C++ add inlines so that they can be recognized as
4432         builtins.
4433         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4434
4435 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4436             Jakub Jelinek  <jakub@redhat.com>
4437
4438         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4439         * wcsmbs/wchar.h: Likewise.
4440
4441 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4442
4443         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4444         (stackinfo_sub_sp): Define.
4445
4446 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4447
4448         [BZ #9750]
4449         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4450         * include/alloca.h (alloca_account): Define.
4451         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4452         (stackinfo_sub_sp): Define.
4453
4454         * nscd/connections.c (nscd_init): If database file access fails
4455         check whether this is due to permission problems and bail in that
4456         case.
4457
4458         [BZ #9741]
4459         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4460         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4461
4462 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4463
4464         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4465         Add "t" to clobber list.
4466         (INTERNAL_SYSCALL_NCS): Likewise.
4467
4468 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4469
4470         * nss/getent.c (print_networks): Don't print comma between aliases.
4471
4472 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
4473
4474         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4475
4476         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4477         the hash table.
4478         * misc/Makefile (tests): Add bug-hsearch1.
4479         * misc/bug-hsearch1.c: New file.
4480
4481 2009-01-22  Roland McGrath  <roland@redhat.com>
4482
4483         * Makeconfig (%.v.i): Strip trailing # comments,
4484         not only whole-line comments.
4485
4486 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
4487
4488         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4489         one parameter.  If non-NULL use it to initialize return value.
4490         (_dl_setup_pointer_guard): New function.
4491         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4492         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4493         * elf/rtld.c (security_init): Pass _dl_random to
4494         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
4495         pointer_chk_guard.
4496         * elf/dl-sysdep.c (_dl_random): New variable.
4497         (_dl_sysdep_start): Handle AT_RANDOM.
4498         (_dl_show_auxv): Likewise.
4499         * elf/dl-support.c (_dl_random): New variable.
4500         (_dl_aux_init): Handle AT_RANDOM.
4501         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4502         to _dl_setup_stack_chk_guard.
4503
4504         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4505
4506 2009-01-10  Roland McGrath  <roland@redhat.com>
4507
4508         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4509
4510 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4511
4512         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4513
4514         [BZ #9706]
4515         * nss/nss_files/files-parse.c (strtou32): New function.
4516         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4517         across 32-bit and 64-bit platforms.
4518         (INT_FIELD_MAYBE_NULL): Likewise.
4519
4520 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4521
4522         [BZ #9720]
4523         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4524         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4525         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4526         Likewise.
4527
4528 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4529
4530         [BZ #697]
4531         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4532         being NULL also if there are no backreferences.
4533         * posix/rxspencer/tests: Add testcases.
4534
4535 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4536
4537         [BZ #9697]
4538         * posix/bug-regex17.c: Add testcases.
4539         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4540         handling.
4541
4542 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4543
4544         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4545         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4546         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4547         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4548         for elf subdir.
4549         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4550         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4551         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4552         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4553         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4554         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4555
4556 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4557
4558         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4559         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4560         re_string_skip_chars, re_string_reconstruct): Likewise.
4561         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4562
4563 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4564
4565         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4566         adjust the buffer alignment.
4567
4568 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4569
4570         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4571         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4572         net/route.h.
4573
4574         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4575         flavor to description only when flavor is not NULL.
4576
4577         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4578         mutex after SIGIO/SIGURG lookup loop.
4579
4580 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4581
4582         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4583
4584 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
4585
4586         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4587         handling.
4588
4589 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
4590
4591         * sysdeps/unix/sysv/linux/kernel-features.h
4592         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4593
4594         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4595         if no output is written.
4596
4597         * version.h: Bump to 2.10 development.
4598
4599         * posix/getconf.c: Update copyright year.
4600         * nss/getent.c: Likewise.
4601         * iconv/iconvconfig.c: Likewise.
4602         * iconv/iconv_prog.c: Likewise.
4603         * elf/ldconfig.c: Likewise.
4604         * catgets/gencat.c: Likewise.
4605         * csu/version.c: Likewise.
4606         * elf/ldd.bash.in: Likewise.
4607         * elf/sprof.c (print_version): Likewise.
4608         * locale/programs/locale.c: Likewise.
4609         * locale/programs/localedef.c: Likewise.
4610         * nscd/nscd.c (print_version): Likewise.
4611         * debug/xtrace.sh: Likewise.
4612         * malloc/memusage.sh: Likewise.
4613         * malloc/mtrace.pl: Likewise.
4614         * debug/catchsegv.sh: Likewise.
4615
4616 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
4617
4618         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4619         script.
4620
4621 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
4622
4623         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4624         gethostbyname4_r function call succeeded, just leave the loop.
4625
4626         [BZ #9694]
4627         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4628         very end.
4629         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4630         * wctype/Makefile (tests): Add bug-wctypeh.
4631         * wctype/bug-wctypeh.c: New file.
4632
4633         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4634         LOCALDOMAIN is defined.
4635         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4636
4637         * sysdeps/x86_64/bits/select.h: New file.
4638
4639         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
4640
4641 2008-12-21  Bruno Haible  <bruno@clisp.org>
4642
4643         [BZ #9677]
4644         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
4645         if no output is written.
4646
4647 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
4648
4649         * login/utmp_file.c (pututline_file): Replace call to dup2 with
4650         libc internal symbol __dup2 to avoid access through the PLT.
4651
4652 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
4653
4654         [BZ #6545]
4655         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
4656         available only for __USE_GNU.
4657
4658         * inet/Makefile (tests): Add tst-getni2.
4659         * inet/tst-getni2.c: New file.
4660
4661         [BZ #7080]
4662         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
4663         NULL when NI_NAMEREQD is set.
4664         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4665         * inet/Makefile (tests): Add tst-getni1.
4666         * inet/tst-getni1.c: New file.
4667
4668 2008-12-03  Petr Baudis  <pasky@suse.cz>
4669
4670         [BZ #7067]
4671         * nscd/connections.c (invalidate_cache): Use prune_run_lock
4672         instead of prune_lock.
4673         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
4674         * nscd/nscd.h (database_dyn): Add prune_run_cache.
4675
4676 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
4677
4678         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
4679         use.
4680
4681         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
4682         handling.
4683
4684         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
4685         after reading name server list.
4686
4687         [BZ #7058]
4688         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
4689         handling for host name aliases.
4690
4691 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
4692
4693         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
4694         instead of doing things manually.
4695
4696 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
4697
4698         * posix/regex_internal.h (build_wcs_upper_buffer):
4699         Return type is reg_error_t.
4700
4701 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
4702
4703         * posix/globtest.sh: Use mktemp to create temporary file and
4704         directory.
4705
4706         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
4707         sets correctly.
4708         (__CPU_CLR_S): Likewise.
4709         (__CPU_ISSET_S): Likewise.
4710
4711 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
4712             Ulrich Drepper  <drepper@redhat.com>
4713
4714         * scripts/firstversion.awk: Use custom comparison function to compare
4715         version numbers.
4716         * scripts/versions.awk: Use sort invocation which can handle
4717         multi-digit sub-version numbers.
4718
4719 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
4720
4721         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
4722         * locale/iso-639.def: Add Chhattisgarhi entry.
4723
4724 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
4725
4726         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
4727         ESRCH return value.
4728         (_nss_dns_gethostbyname4_r): Likewise.
4729         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
4730         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
4731         gethostbyname4_r, we don't have a separate IPv6 status, so copy
4732         the no_data variable.
4733
4734         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
4735         information at the correct index.
4736
4737         * socket/sys/socket.h: Declare accept4.
4738         * socket/accept4.c: New file.
4739         * sysdeps/unix/sysv/linux/accept4.c: New file.
4740         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
4741         * socket/Makefile (routines): Add accept4.
4742         * socket/Versions: Export accept4 with version GLIBC_2.10.
4743         * socket/paccept.c: Removed.
4744         * sysdeps/unix/sysv/linux/paccept.c: Removed.
4745         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
4746         * Versions.def: Define GLIBC_2.10 for libc.
4747         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
4748
4749         * nscd/connections.c: Use accept4.
4750
4751         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
4752
4753 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
4754
4755         * resolv/res_send.c (send_dg): Create sockets with non-blocking
4756         flag already set.
4757
4758         * stdlib/setenv.c (unsetenv): Don't search environment if it does
4759         not exist.
4760         * stdlib/Makefile (tests): Add tst-unsetenv1.
4761         * stdlib/tst-unsetenv1.c: New file.
4762
4763 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
4764
4765         * login/utmp_file.c (file_writable): New variable.
4766         (setutent_file): Don't try to open file for writing.
4767         (pututline_file): Before writing, make descriptor writable if
4768         necessary.
4769
4770 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
4771
4772         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
4773         to IPv4 or IPv6 if an interface has been found.
4774
4775 2008-11-26  Roland McGrath  <roland@redhat.com>
4776
4777         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
4778         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
4779
4780         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
4781         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
4782         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
4783
4784         * elf/elf.h (NT_386_IOPERM): New macro.
4785         (NT_PPC_VSX): New macro.
4786
4787 2008-11-25  Roland McGrath  <roland@redhat.com>
4788
4789         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
4790         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
4791         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
4792         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
4793         Subdirectories moved to ports repository.
4794         * configure.in (base_machine): Remove alpha case.
4795
4796 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
4797
4798         * sysdeps/mach/strerror_l.c: New file.
4799
4800 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
4801
4802         [BZ #6411]
4803         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
4804         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
4805         magic numbers.
4806         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
4807         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
4808         (relax_fenv_state): Same as above.
4809         (FPSCR_29): Reserve bit in ISA 2.05.
4810         (FPSCR_NI): Provide define for compat.
4811         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
4812         magic numbers.
4813         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
4814         magic numbers.
4815         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
4816         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
4817         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
4818         access to hwcap to account for hwcap size increase to uint64_t.
4819         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
4820         Likewise.
4821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4822         (*setcontext): Likewise.
4823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
4824         New file.
4825         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
4826         New file.
4827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4828         (*setcontext): dynamically select mtfsf insn based on
4829         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
4830         increase to uint64_t.
4831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4832         (*swapcontext): dynamically select mtfsf insn based on
4833         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
4834         increase to uint64_t.
4835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
4836         New file.
4837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
4838         New file.
4839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4840         (*setcontext): dynamically select mtfsf insn based on
4841         PPC_FEATURE_HAS_DFP.
4842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4843         (*swapcontext): dynamically select mtfsf insn based on
4844         PPC_FEATURE_HAS_DFP.
4845
4846 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
4847
4848         * version.h: Bump for 2.9 release.
4849         * include/features.h (__GLIBC_MINOR__): Bump to 9.
4850
4851         [BZ #7029]
4852         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
4853         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
4854         all the rounding.
4855
4856 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
4857
4858         [BZ #7009]
4859         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
4860         unknown request types for now.
4861
4862 2008-11-11  Roland McGrath  <roland@redhat.com>
4863
4864         * sysdeps/x86_64/configure: New file.
4865
4866         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
4867         * configure: Regenerated.
4868
4869 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4870
4871         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
4872         correct instruction to remove the stack frame.
4873
4874 2008-11-03  Michael Matz  <matz@suse.de>
4875
4876         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
4877         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
4878
4879 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
4880
4881         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
4882         Remove.
4883
4884         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
4885         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
4886         of the thread variable instead of void *.
4887         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
4888         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
4889         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4890         __libc_tsd_define arguments.
4891         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
4892         __libc_tsd_address arguments.  Remove union hack.
4893         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
4894         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
4895         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
4896         Adjust __libc_tsd_{set,get} arguments.
4897         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
4898         __libc_tsd_define arguments.
4899         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
4900         arguments.
4901         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
4902         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
4903         (LOCALE): Adjust __libc_tsd_define arguments.
4904         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
4905         arguments.
4906         (LOCALE): Adjust __libc_tsd_define arguments.
4907         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
4908         arguments.
4909         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
4910         arguments.
4911
4912 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
4913
4914         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
4915         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
4916
4917 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
4918
4919         [BZ #6966]
4920         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
4921
4922 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
4923             Ulrich Drepper  <drepper@redhat.com>
4924
4925         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
4926         definition for GCC 3.1 and later.
4927
4928 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
4929
4930         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
4931         refetch dtv, as it might have changed.
4932         * elf/Makefile: Add rules to build and run tst-tls18.
4933         * elf/tst-tls18.c: New test.
4934         * elf/tst-tlsmod18a.c: New file.
4935
4936 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
4937
4938         [BZ #6875]
4939         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
4940
4941 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4942
4943         [BZ #6867]
4944         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
4945
4946         [BZ #6919]
4947         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
4948         Fix length of copy operation.
4949
4950 2008-10-02  Pierre Habouzit <madcoder@debian.org>
4951
4952         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
4953         and fix its calling convention.
4954
4955 2008-10-07  Andreas Schwab  <schwab@suse.de>
4956
4957         [BZ #6942]
4958         * resolv/res_send.c (send_vc): Fix last change.
4959         (send_dg): Align here as well.
4960
4961 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
4962
4963         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
4964         return value in case rlimit is RLIM_INFINITY.
4965
4966         [BZ #6947]
4967         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
4968         for UL_SETFSIZE.
4969         * resource/Makefile (tests): Add bug-ulimit1.
4970         * resource/bug-ulimit1.c: New file.
4971
4972         [BZ #6974]
4973         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
4974         without dot.  Properly terminate the string with a null byte.
4975         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
4976
4977         [BZ #6980]
4978         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
4979         negative sizees.
4980         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
4981         negative __size.
4982
4983         [BZ #6995]
4984         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
4985
4986 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
4987
4988         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
4989         abort if there is no initgroups_dyn function.
4990
4991         * resolv/res_send.c (send_dg): On timeout, only return nonzero
4992         result if any of the queries really provided an answer.
4993
4994 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
4995
4996         * po/lt.po: Update from translation team.
4997
4998 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
4999
5000         * po/id.po: Update from translation team.
5001
5002 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
5003
5004         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5005         Fix tests for existence of second reply.
5006
5007 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
5008
5009         * po/id.po: New file.
5010         Contributed by the Indonesian translation team.
5011
5012 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
5013
5014         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5015         initialization.
5016
5017 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
5018
5019         * elf/Makefile: Add rules to build and run tst-tls17.
5020         * elf/tst-tls17.c: New test.
5021         * elf/tst-tlsmod17a.c: New file.
5022         * elf/tst-tlsmod17b.c: Likewise.
5023
5024 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
5025
5026         * stdlib/divmod_1.c: Use correct type for dummy variable.
5027         * stdlib/mod_1.c: Likewise.
5028
5029 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
5030
5031         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5032
5033 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
5034
5035         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5036         __nonnull order for C++.
5037         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5038         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5039
5040 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
5041
5042         * stdlib/longlong.h: Update from GCC.
5043
5044 2008-10-09  Jakub Jelinek <jakub@redhat.com>
5045             David S. Miller  <davem@davemloft.net>
5046
5047         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5048         make sure any registers used with 64-bit 'branch-on-register'
5049         instructions have their top 32-bits clear.
5050         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5051         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5052
5053 2008-09-18  Andreas Schwab  <schwab@suse.de>
5054
5055         [BZ #6942]
5056         * resolv/res_send.c (send_vc): Fix use of unaligned address.
5057         Properly handle partial reads.
5058
5059 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
5060
5061         * elf/elf.h (STO_MIPS_PLT): New.
5062         (R_MIPS_COPY): New.
5063         (R_MIPS_JUMP_SLOT): New.
5064         (R_MIPS_NUM): Redefine to 128.
5065         (DT_MIPS_PLTGOT): New.
5066         (DT_MIPS_RWPLT): New.
5067         (DT_MIPS_NUM): Redefine to 0x35.
5068
5069 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
5070
5071         * timezone/africa: Update from tzdata2008f.
5072         * timezone/asia: Likewise.
5073         * timezone/australasia: Likewise.
5074         * timezone/europe: Likewise.
5075         * timezone/leapseconds: Likewise.
5076         * timezone/northamerica: Likewise.
5077         * timezone/southamerica: Likewise.
5078         * timezone/zone.tab: Likewise.
5079
5080 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
5081
5082         * nscd/connections.c: Disable use of paccept for now.
5083
5084 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
5085
5086         * socket/Versions: Remove paccept export for GLIBC_2.9.
5087         * socket/Makefile (routines): Remove paccept.
5088         * socket/sys/socket.h: Remove paccept declaration.
5089
5090         * po/sv.po: Update from translation team.
5091
5092 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
5093
5094         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5095         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5096
5097 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
5098
5099         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5100         Patch by Olivier Fourdan <ofourdan@redhat.com>.
5101
5102 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
5103
5104         * sunrpc/rpc/svc.h: Declare svcfd_create.
5105         Patch by Michael Solberg <msolberg@redhat.com>.
5106
5107 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
5108             Ulrich Drepper  <drepper@redhat.com>
5109
5110         * malloc/malloc.c (public_vALLOc): Try other arenas in case
5111         _int_valloc fails.
5112         (public_pVALLOc): Likewise.
5113
5114 2008-09-02  Andreas Jaeger  <aj@suse.de>
5115
5116         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5117         commit.
5118
5119 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
5120
5121         [BZ #6860]
5122         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5123
5124 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
5125
5126         * Makefile (check-data): Check data directory in add-ons.
5127         * elf/Makefile (check-data): Likewise.
5128
5129 2008-08-18  Roland McGrath  <roland@redhat.com>
5130
5131         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5132         * configure: Regenerated.
5133         * config.make.in (cflags-cpu): New substituted variable.
5134         (with-cpu): Variable removed.
5135         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5136
5137 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
5138
5139         [BZ #6845]
5140         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5141         __signbitl definition and __LONG_DOUBLE_128__ guard from:
5142         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5143         redundant.  Functions which call floating point assembler operations
5144         should go into a sysdeps powerpc/fpu directory.
5145
5146 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
5147
5148         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5149         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5150
5151 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
5152
5153         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5154
5155         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5156         change related to AT_EXECFN.  We cannot use that string.
5157         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5158         _dl_execfn member.
5159         * elf/dl-support.c: Remove _dl_execfn variable.
5160         (_dl_aux_init): Remove handling of AT_EXECFN.
5161         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5162         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5163
5164 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
5165
5166         [BZ #6544]
5167         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
5168         byte gets added to writes and seeks from the end use the length of
5169         the buffer and not the currently terminating NUL byte.
5170
5171         [BZ #6634]
5172         * login/utmp_file.c (getutent_r_file): Take additional parameter.
5173         Set to true if locking failed.
5174         (getutid_r_file): Adjust caller.
5175         (pututline_file): Likewise.  Return NULL in this case.
5176         Patch mostly by halesh.s@gmail.com.
5177
5178 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
5179
5180         [BZ #6589]
5181         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5182         Define.
5183         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5184
5185 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
5186
5187         [BZ #6839]
5188         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5189         macro since it is now available in elf/dynamic-link.h.
5190
5191 2008-08-12  Roland McGrath  <roland@frob.com>
5192
5193         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5194         in case used outside of libc.
5195         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5196
5197 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
5198
5199         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5200         directly instead of going through dn_comp.
5201
5202 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
5203
5204         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5205         Fix asm constraints.
5206
5207 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5208
5209         [BZ #6790]
5210         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5211         (IPV6_PMTUDISC_PROBE): Likewise.
5212
5213 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
5214
5215         [BZ #6791]
5216         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5217
5218 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
5219             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5220
5221         [BZ #6817]
5222         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5223         Added the members 'vsx' and 'arch_2_06'.
5224         (_dl_powerpc_platforms): Add the member 'power7'.
5225         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5226         to reflect the changes required by VSX and ISA 2.06.
5227         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5228         'power7'.
5229         Defined PPC_PLATFORM_POWER7.
5230         (_dl_string_platform): Add support for POWER7.
5231         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5232         capability and ISA 2.06.
5233
5234 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5235
5236         [BZ #6824]
5237         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5238         macro to detect use of 128 bit long double.
5239         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5240
5241 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5242
5243         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5244
5245         [BZ #5794]
5246         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5247         parameters.
5248         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5249         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5250
5251 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5252
5253         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5254         guaranteed to be large enough to read inotify event.  Ignore
5255         EAGAIN error.  Better error message.  Add branch predicition.
5256         (main_loop_epoll): Likewise.
5257
5258 2008-08-02  Roland McGrath  <roland@frob.com>
5259
5260         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5261         Add memory clobbers.
5262
5263 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5264
5265         * manual/arith.texi: Avoid @strong{Note:}.
5266         * manual/creature.texi: Likewise.
5267         * manual/filesys.texi: Likewise.
5268         * manual/math.texi: Likewise.
5269         * manual/memory.texi: Likewise.
5270         * manual/resource.texi: Likewise.
5271         * manual/syslog.texi: Likewise.
5272         * manual/time.texi: Likewise.
5273
5274         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5275         to prevent warning.
5276
5277 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5278
5279         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5280         new epoll_create1 interface.
5281         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5282         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5283         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5284
5285         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5286         (NS_GET32): Likewise.
5287
5288         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5289         syscalls, too.
5290
5291         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5292         use the AT_EXECFN value if it is no absolute path.
5293         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5294         __ASSUME_AT_EXECFN.
5295
5296         * Versions.def: Add GLIBC_2.9 to libresolv.
5297         * include/resolv.h: Remove hidden proto declarations for __ns_*
5298         functions.  Add them for __dn_count_labels and __p_secstodate.
5299         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5300         Define ns_msg_getflags macro here.
5301         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5302         and __p_secstodate.
5303         * resolv/Versions: Export functions from <arpa/nameser.h> from
5304         libresolv in version GLIBC_2.9.
5305         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
5306         hidden definitions.
5307         * resolv/ns_netint.c: Likewise.
5308         * resolv/ns_parse.c: Likewise.
5309         * resolv/ns_print.c: Likewise.
5310         * resolv/ns_samedomain.c: Likewise.
5311         * resolv/ns_ttl.c: Likewise.
5312         * resolv/arpa/nameser_compat.h: Likewise.
5313         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
5314         function calls.
5315         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5316         instead of ns_get16.
5317         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5318         __ns_get32 instead of ns_get16 and ns_get32 respectively.
5319         (gaih_getanswer_slice): Likewise.
5320         * resolv/Makefile (libresolv-routines): Add ns_date.
5321         * resolv/ns_date.c: New file.
5322
5323         * elf/Makefile (check-localplt.out): Also check libresolv and
5324         libcrypt.
5325
5326 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
5327
5328         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5329         __ASSUME_O_CLOEXEC.
5330
5331 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
5332
5333         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5334         buffer passed to NSS functions.
5335
5336         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5337
5338         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5339         Define.
5340
5341         * misc/syslog.c (openlog_internal): Fix compile problem.
5342
5343 2008-07-28  Roland McGrath  <roland@redhat.com>
5344
5345         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5346
5347 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5348
5349         * io/ftw.c (add_object): Remove inline to avoid warning.
5350
5351         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5352
5353         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5354         Use it instead of locally defined resplen2 variable.
5355         (res_nsend): Adjust for __libc_res_nsend interface change.
5356         (send_vc): Initialize *resplen2 if necessary.  Read length of
5357         package into an appropriately aligned variable.  Store converted length
5358         in new variable and use it appropriately.
5359         Add branch prediction help.
5360         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5361         and pass it on to __libc_res_nsend.  Adjust all callers.
5362         (__libc_res_nsearch): Likewise.
5363         (__libc_res_nqeurydomain): Likewise.
5364         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5365         change.
5366         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5367         Define resplen2 variable and pass it to __libc_res_nsearch and then
5368         to gaih_getanswer.
5369         (getanswer_r): In case of incorrect DNS data don't overread buffer.
5370         Add branch prediction.
5371         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
5372         (gaih_getanswer): Don't decode second slice if first one failed due
5373         to a too small buffer.  Don't let not found status of second
5374         decoder shadow results of the first.
5375         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5376         and __libc_res_nquery interface changes
5377         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5378         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5379         __libc_res_nsearch, and __libc_res_nsend.
5380         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5381         change.
5382         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5383         __libc_res_nsearch interface changes.
5384
5385 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5386
5387         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5388
5389         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5390         file descriptors with close-on-exec set.
5391         (exec_comm_child): Fix the case where the write end of the pipe is
5392         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5393
5394         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5395         * io/pipe2.c: Likewise.
5396         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5397         instead of __ASSUME_PACCEPT.
5398         * include/unistd.h: Declare __have_pipe2.
5399         * libio/iopopen.c: Implement "e" flag.
5400         * libio/Makefile (tests): Add tst-popen1.
5401         * libio/tst-popen1.c: New file.
5402
5403         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5404         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5405
5406 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5407
5408         [BZ #6771]
5409         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5410         success call of _IO_SEEKOFF or calls which failed because the
5411         descriptor is for a pipe.
5412
5413         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5414         magic number.
5415
5416         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5417
5418         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5419         F_SETFD use if we know fopen set the flag.
5420
5421         * login/utmp_file.c (setutent_file): Minor optimization in case
5422         O_CLOEXEC is available.
5423
5424 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5425
5426         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5427         * elf/Makefile: Use pie-ccflag variable.
5428         * nscd/Makefile: Likewise.
5429         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5430
5431 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
5432
5433         [BZ #6724]
5434         * Versions.def: Add GLIBC_2.9 version tag for libutil.
5435         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5436         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
5437         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5438         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
5439         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5440         utmp32, utmpx32 and login32.
5441         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5442         versions of struct utmp functions to libc and libutil.
5443         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5444         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5445         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5446         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5447         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5448         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5449         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5450         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5451         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5452         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5453         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5454         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5455         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5456         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5457         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5458         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5459         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5460         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5461         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5462         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5463         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5464         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5465
5466 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5467
5468         * scripts/gen-as-const.awk: Generate more widely usable code by
5469         using 64-bit arithmetic.
5470
5471         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5472         the same treatment as narrow output code in last patch.
5473
5474         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5475
5476         [BZ #6763]
5477         * elf/dl-load.c (local_strdup): Remove inline.
5478         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5479         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5480         part of the object.
5481
5482         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5483
5484 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
5485
5486         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5487         the new syscalls, too.
5488
5489         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5490         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5491
5492         [BZ #6698]
5493         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5494         parameter for end of buffer.  If temporary copy is too large use
5495         malloc.
5496         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5497         interface change.
5498         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
5499         string rewrite when allocating buffer.
5500
5501         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5502         syscalls, too.
5503
5504         * nscd/connections.c (nscd_init): Clean up fcntl call.
5505
5506         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5507         SOCK_NONBLOCK if possible.
5508
5509         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5510         SOCK_CLOEXEC if available.
5511
5512         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5513         __libc_clntudp_bufcreate_internal.
5514         * include/sys/socket.h: Declare __have_sock_cloexec.
5515         * socket/Makefile (aux): Add have_sock_cloexec.
5516         * socket/have_sock_cloexec.c: New file.
5517         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5518         __libc_clntudp_bufcreate.
5519         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5520         which takes an additional parameter.  Create socket with non-blocking
5521         mode and close-on-exec flag set, if wanted.
5522         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5523         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5524         instead of clntudp_create.  The socket has already the close-on-exec
5525         flag set if SOCK_CLOEXEC is defined.
5526
5527 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
5528
5529         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5530         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5531         appropriate.
5532         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5533         non-blocking mode by using socket, paccept, and inotify_init1.
5534
5535         * Versions.def (glibc): Add GLIBC_2.9.
5536         * io/Makefile (routines): Add dup3 and pipe2.
5537         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5538         * io/dup3.c: New file.
5539         * io/pipe2.c: New file.
5540         * posix/unistd.h: Declare dup3 and pipe2.
5541         * socket/Makefile (routines): Add paccept.
5542         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5543         * socket/paccept.c: New file.
5544         * socket/sys/socket.h: Declare paccept.
5545         * sysdeps/unix/syscalls.list: Add entry for dup3.
5546         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5547         epoll_create2 and inotify_init1.
5548         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5549         * sysdeps/unix/sysv/linux/paccept.c: New file.
5550         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5551         possible.
5552         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5553         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5554         inotify_init1, and pipe2 entries.
5555         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5556         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5557         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5558         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5559         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5560         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5561         SOCK_NONBLOCK.
5562         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5563         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5564         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5565         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5566         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5567         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5568         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5569         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5570         EPOLL_NONBLOCK.  Declare epoll_create2.
5571         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5572         EFD_NONBLOCK.
5573         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5574         IN_NONBLOCK.  Declare inotify_init1.
5575         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5576         SFD_NONBLOCK.
5577         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5578         TFD_NONBLOCK.
5579
5580         * elf/elf.h: Define AT_EXECFN.
5581         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5582         LD_ORIGIN_PATH.
5583         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5584         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
5585         if __ASSUME_AT_EXECFN is defined.
5586         (_dl_aux_init): Handle AT_EXECFN.
5587         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5588         for 2.6.27 and up.
5589         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5590         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5591         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5592         _dl_execfn if available and avoid compatibility code if
5593         __ASSUME_AT_EXECFN is defined.
5594
5595         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5596         _dl_discover_osversion only for older kernels.
5597
5598 2008-07-22  Roland McGrath  <roland@frob.com>
5599
5600         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5601
5602 2008-07-21  Roland McGrath  <roland@frob.com>
5603
5604         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5605         returned too much data out of line.
5606
5607 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
5608
5609         * locale/setlocale.c (setname): Remove inline to avoid compiler
5610         warning.
5611
5612         [BZ #6712]
5613         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5614
5615 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
5616
5617         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5618         doesn't manage to write anything, fail.
5619
5620         * malloc/hooks.c (__malloc_check_init): Remove printf.
5621
5622 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5623
5624         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5625
5626 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
5627
5628         * nscd/connections.c (main_loop_poll): Fix handling of read errors
5629         from inotify.
5630         (main_loop_epoll): Likewise.
5631
5632 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
5633
5634         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5635
5636         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
5637         if DEBUG is defined.
5638
5639         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
5640         query.  Adjust buffer size computation for padding.
5641
5642 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
5643
5644         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
5645         * stdio-common/tst-setvbuf1.c: New file.
5646         * stdio-common/tst-setvbuf1.expect: New file.
5647
5648         [BZ #6719]
5649         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
5650         when selecting fully-buffered stream.
5651         Patch by Wang Xin <wxinee@gmail.com>.
5652
5653 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5654
5655         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
5656         (__open_2): New function.
5657         (__open64_2): New alias to __open_2.
5658         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
5659         (__openat_2): New function.
5660         (__openat64_2): New alias to __openat_2.
5661
5662 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
5663
5664         [BZ #6723]
5665         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
5666
5667 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5668
5669         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
5670         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
5671         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
5672         __hurd_dfail.
5673         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5674         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5675         * sysdeps/mach/hurd/send.c (__send): Likewise.
5676         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
5677         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
5678
5679 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5680
5681         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
5682         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
5683         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
5684         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
5685         * hurd/get-host.c (_hurd_get_host_config): Likewise.
5686         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
5687
5688 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
5689
5690         [BZ #6657]
5691         * time/strptime_l.c: Don't clear s.era_cnt after successful match
5692         of %EY.
5693         Patch by Petr Baudis.
5694
5695 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
5696
5697         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
5698         Patch by Peter Jones <pjones@redhat.com>.
5699
5700 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5701
5702         [BZ #6654]
5703         * stdlib/canonicalize.c (__realpath): readlink can write too much
5704         into the buffer on platforms without PATH_MAX.
5705
5706 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
5707
5708         [BZ #6653]
5709         * posix/tst-regex.c (main): Rename to...
5710         (do_test): ... this. Remove cmdline option processing.
5711         (TIMEOUT): Define.
5712         (TEST_FUNCTION): Define.
5713         (CMDLINE_OPTIONS): Define.
5714
5715 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
5716
5717         [BZ #5210]
5718         * configure.in: Add -Werror to -fstack-protector test to catch
5719         unsupported architectures.
5720         Patch by Gilles Esponasse <g.esp@free.fr>.
5721
5722 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
5723
5724         * stdlib/tst-setcontext.c: Set back_in_main before exit if
5725         getcontext returns ENOSYS.
5726
5727 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
5728
5729         * nscd/connections.c (main_loop_poll): Fix test for read error.
5730         (main_loop_epoll): Likewise.
5731
5732 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
5733
5734         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
5735         better place so it is not called when nscd is used.
5736
5737         * nscd/connections.c: Also recognize and handle changes to the
5738         resolver configuration file.
5739
5740 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5741
5742         * time/strftime.c: Pass reference to tzset_called around to handle
5743         recursive calls.
5744
5745         [BZ #6612]
5746         * time/strftime.c (__strftime_internal): Call tzset() only
5747         when printing timezone-dependent values.
5748         Based on a patch by Petr Baudis <pasky@suse.cz>.
5749
5750         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
5751         unconditionally use second gaih_getanswer_slice result.
5752
5753         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
5754         (getaddrinfo): RES must always be non-NULL.
5755
5756 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5757
5758         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
5759         cr[34] registers.
5760         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5761         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5762         Likewise.
5763         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
5764         register.
5765
5766 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
5767
5768         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
5769         fields.
5770         * nscd/connections.c (inotify_fd): New variable.
5771         (nscd_init): Try to open an inotify descriptor.
5772         If successful, watch files for databases using inotify instead of
5773         having prune threads stat the files.
5774         (nscd_run_prune): Recognize clear_cache flag being set and call
5775         prune_cache appropriately.
5776         (main_loop_poll): Add inotify descriptor to wait set and handle the
5777         reported changes.
5778         (main_loop_epoll): Likewise.
5779         * nscd/cache.c (prune_cache): Don't stat files for databases if
5780         inotify is used.
5781         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
5782         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
5783
5784         * nscd/grpcache.c (cache_addgr): Correctly compute size of
5785         fixed-size portion of the record.
5786         * nscd/servicescache.c (cache_addserv): Likewise.
5787         * nscd/pwdcache.c (cache_addpw): Likewise.
5788         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5789
5790 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
5791
5792         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
5793         out we don't use uninitialized memory.
5794
5795         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
5796         the client.
5797
5798 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
5799
5800         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
5801         ignore T_DNAME messages.
5802         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
5803
5804 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
5805
5806         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
5807         Avoid segfault if first GETC returns eof/'\0'/'\n'.
5808
5809 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
5810
5811         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
5812         instead of portstr to nscd_getserv_r.  Patch by
5813         Roman Kagan <rkagan@mail.ru>.
5814
5815 2008-05-26  Jim Meyering  <meyering@redhat.com>
5816
5817         Remove more useless "if" tests before "free".
5818         * include/inline-hashtab.h (htab_delete): Likewise.
5819         * libio/freopen.c (freopen): Likewise.
5820         * libio/freopen64.c (freopen64): Likewise.
5821         * locale/programs/ld-collate.c (collate_read): Likewise.
5822         * misc/fstab.c (libc_freeres_fn): Likewise.
5823         * posix/glob.c (globfree): Likewise.
5824
5825 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5826
5827         * string/Makefile (strop-tests): Add memmem.
5828         * string/test-memmem.c: New file.
5829         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
5830         (test_init): Size buf1 according to BUF1PAGES.
5831
5832 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
5833
5834         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
5835         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
5836         (CFLAGS-scanf17.c): New.
5837         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
5838         * stdio-common/scanf15.c (main): Likewise.
5839         * stdio-common/scanf16.c: New file.
5840         * stdio-common/scanf17.c: New file.
5841
5842 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
5843
5844         * resolv/res_send.c (send_dg): If we already have one of two
5845         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
5846         use the one answer insted of failing.
5847
5848 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
5849
5850         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
5851         being executed on PowerPC as the expected result exceeds IBM
5852         long double 128 __LDBL_MAX__.
5853
5854 2008-05-21  Roland McGrath  <roland@redhat.com>
5855
5856         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
5857
5858         * Makefile (check-data): Use $(abi-name) before other guesses.
5859         Look in $(add-ons) dirs before scripts/data/.
5860         * elf/Makefile (check-data): Likewise.
5861
5862         * scripts/soversions.awk: Grok ABI line.
5863         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
5864         Emit definition for abi-name variable.
5865
5866 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
5867
5868         * string/endian.h: Define new fixed-size hto* and *toh macros only
5869         if [__USE_BSD].
5870
5871         * iconvdata/Depend: Add localedata.
5872
5873 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5874
5875         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
5876
5877 2008-05-08  David S. Miller  <davem@davemloft.net>
5878
5879         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
5880         HIDDEN_JUMPTARGET.
5881         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5882         (__SYSCALL_CLOBBERS): Remove %g* registers.
5883         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5884         (__SYSCALL_CLOBBERS): Likewise.
5885         * scripts/data/localplt-sparc-linux-gnu.data: New file.
5886         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
5887
5888 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
5889
5890         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
5891         (CALL_ERRNO_LOCATION): Define.
5892         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5893         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
5894         (CALL_ERRNO_LOCATION): Define.
5895         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
5896         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
5897         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
5898
5899 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
5900
5901         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
5902         variable.
5903
5904 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
5905
5906         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
5907         (FIRST_FRAME_POINTER): Define.
5908
5909 2008-05-09  David S. Miller  <davem@davemloft.net>
5910
5911         * sysdeps/sparc/sparc64/backtrace.c: New file.
5912
5913 2008-05-14  David S. Miller  <davem@davemloft.net>
5914
5915         * sysdeps/sparc/machine-gmon.h: New file.
5916         * sysdeps/sparc/sparc-mcount.S: Likewise.
5917         * sysdeps/sparc/Makefile: Add sparc-mcount target to
5918         sysdep_routines in gmon directory.
5919
5920 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
5921
5922         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
5923
5924 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
5925
5926         * resolv/res_query.c (__libc_res_nquery): In case one of two
5927         answer was too short don't try to read that answer's header.
5928
5929         * resolv/res_send.c (send_dg): In case of timeout and there are
5930         two queries and one has been answered, return value indicating
5931         success.
5932
5933 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
5934
5935         * nscd/cache.c (cache_add): Take additional parameter specifying
5936         whether this is in response of a cache refill.  Check alignment
5937         of package data.  Revamp waking of pruning thread.
5938         (prune_cache): Small optimization.
5939         * nscd/nscd.h: Adjust cache_add prototypes.
5940         * nscd/aicache.c: Adjust cache_add calls.
5941         * nscd/grpcache.c: Likewise.
5942         * nscd/hstcache.c: Likewise.
5943         * nscd/initgrcache.c: Likewise.
5944         * nscd/pwdcache.c: Likewise.
5945         * nscd/servicescache.c: Likewise.
5946         * nscd/connections.c (restart): Really disable cache use before
5947         exec attempt.  If it fails, reenable cache.
5948         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
5949         time to max to be able to notice concurrent cache additions.  Unlock
5950         prune_lock while performing gc.  Afterwards compute wakeup time with
5951         current wakeup_time value in mind.
5952
5953 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
5954
5955         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
5956
5957         * nscd/mem.c (gc): Correctly determine highest used array element
5958         in mark.
5959
5960         * nscd/mem.c (markrange): Add assert to check entries are all
5961         aligned.  Small cleanup in bitmap use.
5962
5963         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
5964         blockoff of type nscd_ssize_t.
5965         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
5966         (mempoll_alloc): Record block offset and not address.
5967
5968         * nscd/mem.c (gc): Fix test for stack overuse.
5969
5970         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
5971         more asserts.
5972
5973         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
5974         entry is available, believe it.
5975
5976         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
5977         no answers return NSS_STATUS_NOTFOUND.
5978         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
5979         buffer does not have any content.
5980
5981 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
5982
5983         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
5984
5985         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
5986         lookup, don't assign canon unconditionally.
5987
5988 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
5989
5990         * string/Makefile (distribute): Add str-two-way.h.
5991
5992 2008-03-29  Eric Blake  <ebb9@byu.net>
5993
5994         Rewrite string searches to O(n) rather than O(n^2).
5995         * string/str-two-way.h: New file.  For linear fixed-allocation
5996         string searching.
5997         * string/memmem.c: New implementation.
5998         * string/strstr.c: New implementation.
5999         * string/strcasestr.c: New implementation.
6000
6001 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
6002
6003         * posix/regcomp.c (optimize_utf8): Add a note on why we test
6004         opr.ctx_type.
6005         (calc_first): Initialize constraint field.
6006         (duplicate_node_closure): Use it instead of special casing ANCHORS.
6007         Use search_duplicated_node to avoid loops.  Fix grammar.
6008         (duplicate_node): Merge constraint field for all node types.
6009         (calc_eclosure_iter): Look at constraint field for all node types.
6010         * posix/regex_internal.c (create_cd_newstate): Don't look at
6011         create_cd_newstate.
6012
6013 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6014
6015         [BZ #6428]
6016         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6017
6018         [BZ #6442]
6019         * string/endian.h: Add macros for fixed-size endian conversion.
6020         * bits/byteswap.h: Allow inclusion from <endian.h>.
6021         * sysdeps/i386/bits/byteswap.h: Likewise.
6022         * sysdeps/ia64/bits/byteswap.h: Likewise.
6023         * sysdeps/s390/bits/byteswap.h: Likewise.
6024         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6025         * string/Makefile (tests): Add tst-endian.
6026         * string/tst-endian.c: New file.
6027
6028         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6029         Patch by Reuben Thomas.
6030
6031 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
6032
6033         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6034
6035 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6036
6037         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6038
6039         [BZ #6461]
6040         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6041         Add missing braces.
6042         (BODY for __gconv_transform_internal_ascii): Likewise.
6043
6044         [BZ #6472]
6045         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6046         to be treated like link-local addresses.
6047         (match_prefix): Don't treat IPv4 loopback address special when
6048         converting to v4 mapped addressed.
6049
6050         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6051         if necessary.
6052         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6053         * posix/tst-rfc3484-2.c: Likewise.
6054         * posix/tst-rfc3484-3.c: Likewise.
6055
6056         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6057         and SCTP.
6058
6059         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6060
6061         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6062
6063         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6064
6065 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
6066
6067         * po/lt.po: New file.  From Lituanian translation team.
6068
6069 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
6070
6071         Introduce TLS descriptors for i386 and x86_64.
6072         * include/inline-hashtab.h: New file, copied from 2005's
6073         libiberty, with fix for memory leak imported afterwards by
6074         Glauber de Oliveira Costa.
6075         * elf/tlsdeschtab.h: New file.
6076         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6077         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
6078         (CHECK_STATIC_TLS): Move to...
6079         * elf/dynamic-link.h: ... this file.
6080         (TRY_STATIC_TLS): New macro.
6081         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6082         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6083         R_386_TLS_DESC): Define.
6084         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6085         binutils.
6086         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6087         R_X86_64_TLSDESC): Define.
6088         (R_386_NUM, R_X86_64_NUM): Adjust.
6089         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6090         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6091         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6092         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6093         release tlsdesc_table.
6094         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6095         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6096         (elf_machine_rel): Handle R_386_TLS_DESC.
6097         (elf_machine_rela): Likewise.
6098         (elf_machine_lazy_rel): Likewise.
6099         (elf_machine_lazy_rela): Likewise.
6100         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6101         * sysdeps/i386/dl-tlsdesc.S: New file.
6102         * sysdeps/i386/dl-tlsdesc.h: New file.
6103         * sysdeps/i386/tlsdesc.c: New file.
6104         * sysdeps/i386/tlsdesc.sym: New file.
6105         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6106         tlsdesc_table.
6107         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6108         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6109         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6110         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6111         release tlsdesc_table.
6112         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6113         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6114         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6115         (elf_machine_rel): Handle R_X86_64_TLSDESC.
6116         (elf_machine_rela): Likewise.
6117         (elf_machine_lazy_rel): Likewise.
6118         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6119         (__tls_get_addr): Do not declare for non-shared compiles.
6120         * sysdeps/x86_64/dl-tlsdesc.S: New file.
6121         * sysdeps/x86_64/dl-tlsdesc.h: New file.
6122         * sysdeps/x86_64/tlsdesc.c: New file.
6123         * sysdeps/x86_64/tlsdesc.sym: New file.
6124         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6125         tlsdesc_table for both 32- and 64-bit structs.
6126
6127 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6128
6129         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6130         its own function.  This reduces the frame setup costs and more.
6131
6132 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
6133
6134         [BZ #3406]
6135         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6136         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6137
6138 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6139
6140         * io/openat.c (__openat_2): Also pass fd to __openat.
6141         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6142         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6143
6144         * string/tester.c (test_memcmp): Add a few more tests.
6145         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6146
6147 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6148
6149         * nscd/cache.c (cache_add): Before returning with failure and this
6150         is the first use of the record, mark it as unusable.
6151         * nscd/aicache.c: Don't touch the dataset after cache_add returns
6152         reporting a failure.
6153         * nscd/grpcache.c: Likewise
6154         * nscd/hstcache.c: Likewise.
6155         * nscd/initgrcache.c: Likewise.
6156         * nscd/pwdcache.c: Likewise.
6157         * nscd/servicescache.c: Likewise.
6158
6159 2008-05-10  Roland McGrath  <roland@redhat.com>
6160
6161         [BZ #6505]
6162         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6163
6164 2008-05-08  David S. Miller  <davem@davemloft.net>
6165
6166         * misc/truncate64.c (truncate64): Use __truncate not truncate.
6167
6168         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6169         (__ieee754_y0l): Likewise.
6170         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6171         (__ieee754_y1l): Likewise.
6172         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6173         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6174         frexpl and ldexpl.  math_private.h provides them and the latter
6175         is not even used.
6176         (__log1pl): Use __frexpl.
6177
6178 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6179
6180         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6181         prototypes.
6182         * include/arpa/nameser_compat.h: Define T_UNSPEC.
6183         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6184         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6185         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6186         af==AF_UNSPEC.
6187         (_nss_nis_gethostbyname4_r): New function.
6188         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6189         Change to also handle af==AF_UNSPEC.
6190         (get_tablename): New function.  Use it to avoid duplication.
6191         (_nss_nisplus_gethostbyname4_r): New function.
6192         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6193         available.
6194         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6195         * nss/nss.h: Define struct gaih_addrtuple.
6196         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6197         af==AF_UNSPEC.
6198         (_nss_files_gethostbyname4_r): New function.
6199         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6200         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6201         calls.
6202         * resolv/res_query.c (__libc_res_nquery): Take two additional
6203         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
6204         look up IPv4 and IPv6.
6205         Change all callers.
6206         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6207         for an additional query and answer buffer.  Pass to send_vc and
6208         send_dg.
6209         (send_vc): Send possibly two requests and receive two answers.
6210         (send_dg): Likewise.
6211         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6212         __libc_res_nquery.
6213         (_nss_dns_gethostbyname4_r): New function.
6214         (gaih_getanswer_slice): Likewise.
6215         (gaih_getanswer): Likewise.
6216         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6217         __libc_res_nquery call.
6218         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6219         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6220         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6221         available.
6222
6223 2008-05-05  David S. Miller  <davem@davemloft.net>
6224
6225         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6226         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6227
6228 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6229
6230         Fix termios bit macros.
6231         Move *DLY definitions where they belong, in termios.h.
6232         Add *[0-3] definitions.
6233         Fixes confusion between VT and FF.
6234         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6235         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6236         are already defined to avoid collision with termios.h.
6237         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6238         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6239         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6240         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6241         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6242         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6243         VTDLY, VT0, VT1): New macros.
6244         [__USE_GNU] (OLCUC): Change value of macro.
6245         [__USE_XOPEN] (OFILL): New macro.
6246         [__USE_BSD] (CRTSCTS): Change value.
6247         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6248         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6249         (B7200, B14400, B28800, B76800): New macros.
6250
6251 2008-05-01  David S. Miller  <davem@davemloft.net>
6252
6253         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6254         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6255         (gen-as-const-headers): Add it.
6256         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6257         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6258         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6259         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6260
6261         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6262         six system call parameters.
6263         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6264
6265 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6266
6267         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6268         RUSAGE_LWP.
6269         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6270         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6271
6272 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6273
6274         * stdlib/tst-setcontext.c: Include unistd.h.
6275
6276 2008-04-25  David S. Miller  <davem@davemloft.net>
6277
6278         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6279         Pass "union semun" properly in to sys_ipc, it must be passed
6280         by value, not by reference.
6281
6282 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6283
6284         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6285         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6286         * nscd/connections.c (mem_in_flight): Likewise.
6287
6288         * nscd/nscd.h (dbs): Make hidden.
6289
6290         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6291         Avoid returning -1, return 0 instead.
6292
6293 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6294
6295         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6296
6297 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6298
6299         [BZ #5209]
6300         * sysdeps/unix/sysv/linux/times.c: New file.
6301
6302         [BZ #5381]
6303         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6304         mem_in_flight_list variables.  Add new parameter to mempool_alloc
6305         prototype.
6306         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
6307         appropriate mem_in_flight element.
6308         (gc): Take allocations which have not yet been committed to the
6309         database into account.
6310         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6311         Reset mem_in_flight before returning.
6312         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6313         cue it up in mem_in_flight_list.
6314         * nscd/aicache.c: Adjust mempool_alloc call.
6315         * nscd/grpcache.c: Likewise.
6316         * nscd/hstcache.c: Likewise.
6317         * nscd/initgrcache.c: Likewise.
6318         * nscd/pwdcache.c: Likewise.
6319         * nscd/servicescache.c: Likewise.
6320         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6321         of -fpie.
6322
6323         * nscd/connections.c (handle_request): Provide better error message
6324         in case SELinux forbids the service.
6325
6326         * version.h (VERSION): Bump to 2.8.90.
6327
6328 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
6329
6330         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6331
6332 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6333
6334         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6335         Also use for 32-bit.
6336         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6337         __nextafter instead of nextafter to avoid local PLT.
6338         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6339         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6340
6341         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6342
6343         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6344         __fe_nomask_env.
6345         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6346         <fenv_libc.h> instead of <fenv.h>.
6347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6349
6350         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6351
6352         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6353         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6354         function from fegetexcept and make old name weak alias.
6355         * include/fenv.h: Declare __fegetexcept.
6356         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6357         fegetexcept.
6358         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6359         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6360         to fetestexcept.
6361         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6362         instead of frexpl to avoid local PLT.
6363         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6364         ilogbl to avoid local PLT.
6365         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6366         instead of ldexpl to avoid local PLT.
6367         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6368         __roundl not roundl to avoid local PLT.
6369         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6370         local PLTs.  Use __sincosl instead of separate sinl and cosl
6371         calls.
6372         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6373
6374         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6375         version for ppc64 to 2.4.21 since without it makecontext will fail.
6376
6377         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6378         to the ABI in use.
6379         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6380         .__tls_get_addr.
6381         [__powerpc64__] (TLS_GD): Likewise.
6382
6383 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6384
6385         [BZ #4997]
6386         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6387         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6388         mantissa.
6389         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6390         Likewise.  Also account for when x is an odd number between 2^52
6391         and 2^53-1.
6392         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6393         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6394         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6395         detect aforementioned erroneous conditions.
6396
6397 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6398
6399         * configure.in: Check for -fno-section-anchors in addition to
6400         -fno-toplevel-reorder.
6401
6402 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6403
6404         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6405
6406         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6407         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6408         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6409         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6410         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6411         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6412
6413 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6414
6415         [BZ #5443]
6416         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6417         * time/alt_digit.c: Likewise.
6418         * wcsmbs/wcsmbsload.c: Likewise.
6419
6420 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6421
6422         * version.h (VERSION): Bump to 2.8.
6423
6424         * timzeone/asia: Update from tzdata2008b.
6425         * timezone/backward: Likewise.
6426         * timezone/europe: Likewise.
6427         * timezone/northamerica: Likewise.
6428         * timezone/southamerica: Likewise.
6429         * timezone/iso3166.tab: Likewise.
6430         * timezone/leapseconds: Likewise.
6431         * timezone/zone.tab: Likewise.
6432         * timezone/private.h: Update from tzcode2008a.
6433         * timezone/zdump.c: Likewise.
6434         * timezone/zic.c: Likewise.
6435
6436 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
6437
6438         [BZ #5741]
6439         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6440         Define additonal Data Cache Block instruction macros.
6441         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6442         Replace dcbst with dcbf and sync with sync/isync.
6443
6444 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
6445
6446         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6447         Always set ELF_RTYPE_CLASS_PLT.
6448         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6449
6450 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
6451
6452         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6453         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6454         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6455         For ISA 2.01 and later replace mftb with mfspr 268.
6456
6457 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
6458
6459         [BZ #5768]
6460         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6461         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6462
6463 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
6464
6465         [BZ #5768]
6466         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6467         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6468         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6469         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6470
6471 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
6472
6473         * stdlib/tst-makecontext.c (othervar): New variable.
6474         (cf): Test sign extending the argument to long.
6475
6476 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
6477
6478         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6479         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6480         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6481         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6482         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6483         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6484         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6485
6486 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
6487
6488         * elf/Makefile (tests): Substitute tests-vis-yes here.
6489         (tests-vis-yes): Delete.
6490         (modules-name, modules-vis-yes): Similarly.
6491
6492 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
6493
6494         [BZ #4407]
6495         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6496         Preserve sign in signgamp when x is zero.
6497
6498 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
6499
6500         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6501         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6502         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6503         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6504         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6505         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6506
6507 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6508
6509         [BZ #4314]
6510         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6511         buffers.
6512
6513         [BZ #5209]
6514         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6515         a reserved error value.
6516
6517         * stdlib/tst-makecontext.c: Change parameter to cf to negative
6518         value to check for correct sign extension.
6519
6520         [BZ #5436]
6521         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6522         Copy 64-bit parameter values even though this is not required in
6523         the standard.
6524
6525         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6526         PC save.
6527
6528 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
6529
6530         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6531         PC save.
6532
6533 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
6534
6535         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6536
6537 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6538
6539         [BZ #5998]
6540         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6541         in line-buffered stream failed.
6542         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6543
6544 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
6545
6546         [BZ #6024]
6547         * scripts/abi-versions.awk: If the version specified by
6548         --enable-oldest-abi is older than the first version for this
6549         architecture, use the default version.
6550
6551         * locale/programs/ld-collate.c (collate_read): Ignore script lines
6552         as well when ignoring the whole category.
6553
6554 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6555
6556         [BZ #6042]
6557         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6558         ETHERTYPE_* definitions.
6559         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6560
6561 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6562
6563         * stdlib/mbtowc.c (__no_r_state): Remove.
6564         (mbtowc): New static state variable.  Use it instead of
6565         __no_r_state.
6566         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6567         (__wctomb_state): New hidden variable.
6568         (wctomb): Use __wctomb_state instead of __no_r_state.
6569         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6570         (__wctomb_state): New extern decl.
6571         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6572
6573 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6574
6575         [BZ #5475]
6576         * resolv/res_init.c: Handle scope IDs in resolv.conf.
6577
6578 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6579
6580         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6581
6582 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
6583
6584         * po/nl.po: Update from translation team.
6585
6586 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
6587
6588         [BZ #6007]
6589         * string/strfry.c: Handle empty strings again.
6590
6591 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6592
6593         [BZ #5443]
6594         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6595         before looking for translation.
6596         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6597         * locale/freelocale.c: Likewise.
6598         * locale/newlocale.c: Likewise.
6599         * locale/setlocale.c: Likewise.
6600         Based partially on a patch by ryo@np.css.fujitsu.com.
6601
6602 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
6603
6604         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6605         acquiring wrlock.  Do conv_tab allocation while holding lock.
6606         * intl/Makefile: Add rules to build and run tst-gettext6.
6607         * intl/tst-gettext6.c: New test.
6608         * intl/tst-gettext6.sh: New file.
6609
6610 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6611
6612         * po/nl.po: Update from translation team.
6613
6614         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6615         provided through st_blksize, try the default size before giving up.
6616
6617 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
6618
6619         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6620
6621         [BZ #5939]
6622         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6623
6624         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6625         error message.  POSIX today does not require the messages to be in
6626         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
6627
6628         [BZ #5979]
6629         * sunrpc/auth_unix.c: Unify printed strings.
6630         * sunrpc/clnt_tcp.c: Likewise.
6631         * sunrpc/clnt_udp.c: Likewise.
6632         * sunrpc/clnt_unix.c: Likewise.
6633         * sunrpc/svc_tcp.c: Likewise.
6634         * sunrpc/svc_udp.c: Likewise.
6635         * sunrpc/svc_unix.c: Likewise.
6636         * sunrpc/xdr.c: Likewise.
6637         * sunrpc/xdr_array.c: Likewise.
6638         * sunrpc/xdr_rec.c: Likewise.
6639         * sunrpc/xdr_ref.c: Likewise.
6640         * locale/programs/ld-time.c (time_finish): Unify messages.
6641         * locale/programs/locfile.c (handle_copy): Fix typo.
6642         * nscd/nscd.c (options): Fix typo.
6643
6644         [BZ #5995]
6645         * stdlib/strtod_l.c: Use correct sign for result in one more
6646         underflow case.
6647         Patch by Eric Blake <ebb9@byu.net>.
6648
6649 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
6650
6651         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
6652         and creat system calls.
6653         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
6654         call.
6655         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
6656         system calls.
6657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
6658         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6659         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6660
6661 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
6662
6663         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
6664         <linux/limits.h> has defined it.
6665         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
6666         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
6667         headers.
6668         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
6669         it instead of ARG_MAX.
6670
6671 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
6672
6673         * posix/gai.conf: Fix comment for scope nullbits.
6674         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
6675         default to 128 bits for v4 mapped addresses.
6676
6677 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6678
6679         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
6680         ptrace call to get the ieee_instruction_pointer from the kernel.
6681         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
6682         ptrace call to set the ieee_instructtion_pointer.
6683         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
6684         Add comment that ieee_instruction_pointer is always 0.
6685
6686 2008-03-09  Andreas Jaeger  <aj@suse.de>
6687
6688         [BZ #5857]
6689         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
6690         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
6691         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
6692
6693         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
6694         (rint_test): Likewise.
6695
6696 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
6697
6698         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
6699         call.
6700         (__nisfind_server): Similar for open readColdStartFile call.
6701         Patch partially by Jim Meyering.
6702         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
6703         around internal_setent call.
6704
6705         * po/vi.po: New Vietnamese translation.
6706
6707         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
6708         ADJ_OFFSET_SS_READ.
6709
6710         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
6711         remove CLONE_STOPPED.
6712
6713 2008-02-10  Jim Meyering  <meyering@redhat.com>
6714
6715         Remove useless "if" before "free":
6716         * elf/ldconfig.c (parse_conf_include): Likewise.
6717         * gmon/gmon.c (weak_alias): Likewise.
6718         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
6719         * inet/rcmd.c (__validuser2_sa): Likewise.
6720         * intl/bindtextdom.c (set_binding_values): Likewise.
6721         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
6722         * libio/genops.c (save_for_backup): Likewise.
6723         * libio/wgenops.c (save_for_wbackup): Likewise.
6724         * locale/programs/ld-collate.c (collate_read): Likewise.
6725         * locale/programs/linereader.c (get_string): Likewise.
6726         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
6727         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
6728         * resolv/res_debug.c (do_section): Likewise.
6729         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
6730         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
6731         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
6732         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6733         * time/tzset.c (tzset_internal): Likewise.
6734
6735 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
6736
6737         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
6738         of ASSEMBLER.
6739
6740 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
6741
6742         [BZ #5903]
6743         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
6744         not stream for output file.  Open output file here.
6745         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
6746         and output file name.
6747         (process_fd): Likewise.
6748         (process_file): Likewise.
6749         (main): Adjust callers of changed functions.
6750         * iconv/iconv_prog.h: Adjust prototype.
6751
6752 2008-03-09  Andreas Jaeger  <aj@suse.de>
6753
6754         [BZ #5753]
6755         * sysdeps/ia64/ieee754.h: Use protected namespace
6756         __BIG_ENDIAN/__LITTLE_ENDIAN.
6757         * sysdeps/ieee754/ieee754.h: Likewise.
6758         Patch by Aurelien Jarno <aurelien@aurel32.net>.
6759
6760 2008-03-08  Roland McGrath  <roland@frob.com>
6761
6762         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
6763         ignore a signal that came from a machine exception, treat it as a
6764         fatal core-dump signal instead.
6765         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6766
6767         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6768         Clear DF bit in thread state's eflags.
6769         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6770
6771 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
6772
6773         [BZ #5774]
6774         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
6775         of NAN(...) sequence.
6776         * stdlib/Makefile (tests): Add tst-strtod6.
6777         * stdlib/tst-strtod6.c: New file.
6778
6779         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
6780
6781         [BZ #5762]
6782         * posix/getopt.c (_getopt_internal_r): Clarify error message by
6783         putting offending option character in quotes.  Clean up error
6784         messages.
6785         * po/be.po: Adjust msgstr in translation file.
6786         * po/bg.po: Likewise.
6787         * po/ca.po: Likewise.
6788         * po/cs.po: Likewise.
6789         * po/da.po: Likewise.
6790         * po/de.po: Likewise.
6791         * po/es.po: Likewise.
6792         * po/fr.po: Likewise.
6793         * po/hr.po: Likewise.
6794         * po/ko.po: Likewise.
6795         * po/nl.po: Likewise.
6796         * po/rw.po: Likewise.
6797         * po/sk.po: Likewise.
6798         * po/sv.po: Likewise.
6799         * po/tr.po: Likewise.
6800         * po/zh_CN.po: Likewise.
6801         * po/zh_TW.po: Likewise.
6802
6803         [BZ #5760]
6804         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
6805         Patch by Roland Bless <roland@bless.de>.
6806
6807         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
6808         .o file.
6809         * elf/Makefile (routines): Add dl-sysdep.
6810         (elide-routines.os): Likewise.
6811
6812 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
6813
6814         [BZ #5786]
6815         * elf/dl-sysdep.c: Undefine ROUND after use.
6816         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
6817         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
6818         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
6819         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
6820         to ...
6821         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
6822         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
6823         if necessary.
6824         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
6825
6826         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
6827         _dl_tls_get_addr_soft element.
6828         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
6829         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
6830         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
6831         GLRO.
6832         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6833         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
6834         of internal_function.
6835
6836         * stdlib/Makefile (aux): Add tens_in_limb.
6837         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
6838         * stdlib/tens_in_limb.c: ...here.  New file.
6839
6840         [BZ #5778]
6841         * sysdeps/unix/sysv/linux/pathconf.h: Declare
6842         __statfs_chown_restricted.
6843         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
6844         for _PC_CHOWN_RESTRICTED.
6845         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
6846         Implement __statfs_chown_restricted.
6847         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
6848         _POSIX_CHOWN_RESTRICTED value to zero.
6849         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
6850         defined to zero.
6851
6852         * sysdeps/x86_64/rtld-memset.c: New file.
6853
6854 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
6855
6856         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
6857
6858         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
6859         Barcelona machine.  Make default fall through branch of
6860         __x86_64_preferred_memory_instruction check as the integer code path.
6861
6862 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6863
6864         * sysdeps/x86_64/cacheinfo.c
6865         (__x86_64_preferred_memory_instruction): New variable.
6866         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6867
6868         * sysdeps/x86_64/memset.S: Rewrite.
6869
6870 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
6871
6872         * include/stdio.h (__asprintf_chk, __dprintf_chk,
6873         __obstack_printf_chk): New prototypes.
6874         (__vasprintf_chk, __vdprintf_chk,
6875         __obstack_vprintf_chk): Likewise.
6876         Add libc_hidden_proto.
6877         * libio/obprintf.c
6878         (_IO_obstack_jumps): No longer static, add attribute_hidden.
6879         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
6880         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6881         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
6882         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
6883         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
6884         __obstack_vprintf_chk): New prototypes.
6885         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
6886         obstack_vprintf): New inlines.
6887         * debug/dprintf_chk.c: New file.
6888         * debug/vdprintf_chk.c: New file.
6889         * debug/asprintf_chk.c: New file.
6890         * debug/vasprintf_chk.c: New file.
6891         * debug/obprintf_chk.c: New file.
6892         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
6893         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
6894         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
6895         @@GLIBC_2.8.
6896         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
6897         vdprintf_chk and obprintf_chk, set CFLAGS for them.
6898         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
6899         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
6900         libc_hidden_proto.
6901         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
6902         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
6903         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
6904         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
6905         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
6906         @@GLIBC_2.8.
6907         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
6908         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
6909         obstack_vprintf_chk.
6910         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
6911         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
6912         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
6913         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
6914         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
6915         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
6916
6917 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
6918
6919         [BZ #5779]
6920         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
6921         Patch by Roy Marples <roy@marples.name>.
6922
6923         [BZ #5736]
6924         * malloc/malloc.c: Fix typo in comment.
6925
6926         [BZ #5627]
6927         * locale/iso-639.def: Add Shuswap.
6928
6929 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
6930
6931         [BZ #5790]
6932         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
6933         overwrite *h_errnop/*errnop values from getanswer_r in case of
6934         failure.
6935
6936 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
6937
6938         [BZ #5818]
6939         * nscd/connections.c (dbs): Add initializers for .suggested_module.
6940         (verify_persistent_db): Remove one unnecessary test and add a new one
6941         for bad configuration.
6942         (nscd_init): Improve error reported when persistent database cannot
6943         be reused.
6944         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
6945         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
6946         .suggested_module and .max_db_size and case config file says the
6947         values are zero.
6948         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
6949
6950         [BZ #5854]
6951         * nis/ypclnt.c (yp_order): Fix handling of return value of
6952         do_ypcall_tr call.
6953         Patch by Jeff Moyer <jmoyer@redhat.com>.
6954
6955         * po/fr.po: Update from translation team.
6956
6957 2008-02-22  Andreas Jaeger  <aj@suse.de>,
6958             Carlos O'Donell <carlos@systemhalted.org>
6959
6960         [BZ #5012]
6961         * FAQ.in: Describe why glibc needs to be compiled with
6962         optimization.
6963
6964 2008-02-19  Roland McGrath  <roland@redhat.com>
6965
6966         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
6967
6968 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
6969
6970         [BZ #5737]
6971         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
6972         __USE_MISC is defined.
6973
6974 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
6975
6976         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
6977         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
6978         sys/timerfd.h.
6979         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
6980         timerfd_gettime, timerfd_settime.
6981         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
6982         timerfd_gettime, timerfd_settime for GLIBC_2.8.
6983
6984 2008-02-08  Roland McGrath  <roland@redhat.com>
6985
6986         * elf/elf.h (NT_PPC_SPE): New macro.
6987
6988 2008-02-06  Roland McGrath  <roland@redhat.com>
6989
6990         * Makerules ($(common-objpfx)sysd-rules):
6991         Depend on $(sysdep-makeconfigs).
6992
6993 2008-01-31  Roland McGrath  <roland@redhat.com>
6994
6995         [BZ #5442]
6996         * configure.in: Use -print-file-name if it yields a directory,
6997         for each of include and include-fixed.
6998         * configure: Regenerated.
6999
7000         * Makeconfig (sysd-rules-targets): New variable.
7001         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7002         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7003
7004 2008-01-30  Roland McGrath  <roland@redhat.com>
7005
7006         * manual/libc.texinfo: Update back-cover text.
7007
7008         * elf/elf.h (NT_386_TLS): New macro.
7009
7010 2008-01-29  Roland McGrath  <roland@redhat.com>
7011
7012         * Makeconfig (sysd-rules-patterns): New variable.
7013         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7014         (check-inhibit-asm): New canned sequence, replaces ...
7015         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7016         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7017         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7018         (CFLAGS-rtld): Variable removed.
7019
7020 2008-01-24  Roland McGrath  <roland@redhat.com>
7021
7022         * configure.in: Let configure fragments set base_os.
7023         * configure: Regenerated.
7024
7025 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
7026
7027         * po/ko.po: Update from translation team.
7028
7029 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
7030
7031         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7032
7033 2008-01-12  Andreas Jaeger  <aj@suse.de>
7034
7035         [BZ #5040]
7036         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7037         Add EPOLLRDHUP.
7038
7039 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7040
7041         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7042         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7043         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7044
7045 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
7046
7047         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7048         * elf/dl-close.c (_dl_close): Check for it.
7049         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7050         (_dl_allocate_static_tls): Likewise.
7051         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7052         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7053         to it.
7054         * elf/tst-tls16.c: New file.
7055         * elf/tst-tlsmod16a.c: New file.
7056         * elf/tst-tlsmod16b.c: New file.
7057         * elf/Makefile: Add rules to build and run tst-tls16.
7058
7059 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
7060
7061         [BZ #5628]
7062         * bits/shm.h: Fix comment describing shmid_ds.
7063         * sysdeps/gnu/bits/shm.h: Likewise.
7064         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7065         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7066         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7067         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7068         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7069         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7070         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7071         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7072         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7073
7074         [BZ #5607]
7075         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7076         prototypes.
7077         * conform/data/limits.h-data: Adjust limits changed in v6 and add
7078         additional suffixes.
7079         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7080         Add optional functions mq_timedreceive and mq_timedsend.
7081         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7082         * conform/data/pthread.h-data: Fix prototype of
7083         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
7084         * conform/data/semaphore.h-data: Allow time.h definitions.
7085         * conform/data/signal.h-data: Likewise.
7086         * conform/data/stdio.h-data: getw and putw are not required in v6.
7087         * conform/data/stdlib.h-data: Change setstate prototype.
7088         * conform/data/string.h-data: Fix strerror_r prototype.
7089         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7090         * conform/data/unistd.h-data: pthread_atfork not required in v6.
7091         Fix readlink prototype.
7092         * conform/data/netinet/in.h-data: Add const to in6addr_any and
7093         in6addr_loopback.
7094         * inet/netinet/in.h: Cleanup namespace.
7095         * posix/regex.h: Likewise.
7096         * resolv/netdb.h: Likewise.
7097         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7098         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7099         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7100         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7101         of names of in in6_addr.
7102         (default_precedence): Likewise.
7103         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7104         NULL definition.
7105
7106 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
7107
7108         * conform/data/fmtmsg.h-data: Add missing allows.
7109         * conform/data/ftw.h-data: Likewise.
7110         * conform/data/inttypes.h-data: Likewise.
7111         * conform/data/math.h-data: Likewise.
7112         * conform/data/signal.h-data: Likewise.
7113         * conform/data/net/if.h-data: Likewise.
7114         * conform/data/netinet/in.h-data: Likewise.
7115         * conform/data/sys/socket.h-data: Likewise.
7116
7117         [BZ #5614]
7118         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7119         (__strtok_r): Simplify.
7120         * string/tester.c (test_strtok_r): Add test case for futile search
7121         with single-character seach string.
7122
7123 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
7124
7125         * po/ko.po: Update from translation team.
7126
7127 2008-01-11  Andreas Jaeger  <aj@suse.de>
7128
7129         [BZ #5600]
7130         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7131         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7132         kernel header.
7133
7134 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
7135
7136         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7137         native interface lookup in all the relevant places.
7138
7139 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
7140             Ulrich Drepper  <drepper@redhat.com>
7141
7142         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7143         field.  Use sockaddr_in6 for source_addr.
7144         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
7145         (match_prefix): Likewise.
7146         (get_label): Likewise.
7147         (get_precedence): Likewise.
7148         (rfc3484_sort): Change to use indirect access to results array.
7149         Adjust to use of sockaddr_in6.  Replace service_order test with
7150         simple index comparison.
7151         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
7152         service_order field.  Adjust qsort_t calls.  Access sorted result
7153         array indirectly through order array.
7154         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7155         * posix/tst-rfc3484-2.c: Likewise.
7156         * posix/tst-rfc3484-3.c: Likewise.
7157
7158 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
7159
7160         [BZ #5541]
7161         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7162         pollfd structures.
7163         Patch by André Cruz.
7164
7165         [BZ #5545]
7166         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7167         (clnt_spcreateerror): Likewise.
7168
7169         [BZ #5553]
7170         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7171         (public_mEMALIGn): Likewise.
7172         Patch mostly by Daniel Jacobowitz.
7173
7174 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
7175
7176         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7177         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7178         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7179         * stdlib/tst-makecontext2.c: New test.
7180
7181 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
7182
7183         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7184         defined.
7185         (REINIT_PARAMS): Likewise.  Undefine before end of file.
7186         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7187         transliteration hooks and REINIT_PARAMS afterwards.
7188         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7189         status.
7190         (REINIT_PARAMS): Define.
7191         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7192         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7193         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7194         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7195         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7196         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7197         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7198         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7199         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7200         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7201         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7202         * iconvdata/tst-iconv7.c: New test.
7203
7204 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
7205
7206         * libio/stdio.h (vscanf): Fix definition for loser compilers.
7207
7208 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7209
7210         [BZ #5112]
7211         * nscd/connections.c (restart): Fix condition.
7212
7213 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7214
7215         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7216         __ctype_toupper_loc): Add __THROW.
7217
7218 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
7219
7220         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7221         recognition of interface family.
7222
7223         * posix/getconf.c: Update copyright year.
7224         * nss/getent.c: Likewise.
7225         * iconv/iconvconfig.c: Likewise.
7226         * iconv/iconv_prog.c: Likewise.
7227         * elf/ldconfig.c: Likewise.
7228         * catgets/gencat.c: Likewise.
7229         * csu/version.c: Likewise.
7230         * elf/ldd.bash.in: Likewise.
7231         * elf/sprof.c (print_version): Likewise.
7232         * locale/programs/locale.c: Likewise.
7233         * locale/programs/localedef.c: Likewise.
7234         * nscd/nscd.c (print_version): Likewise.
7235         * debug/xtrace.sh: Likewise.
7236         * malloc/memusage.sh: Likewise.
7237         * malloc/mtrace.pl: Likewise.
7238         * debug/catchsegv.sh: Likewise.
7239
7240 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7241
7242         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7243         second lookup.
7244
7245 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7246
7247         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7248         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7249
7250 2007-12-17  Roland McGrath  <roland@redhat.com>
7251
7252         * inet/ether_line.c (ether_line): Remove unused variable.
7253
7254 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7255
7256         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7257         and winp.
7258         * login/openpty.c (openpty): Likewise.
7259         * login/pty.h (openpty, forkpty): Likewise.
7260         * manual/terminal.texi (openpty, forkpty): Likewise.
7261
7262 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7263
7264         * malloc/malloc.c (public_cALLOc): For arenas other than
7265         main_arena, count all bytes inside the mprotect_size range of the
7266         heap as uninitialized.
7267
7268 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7269
7270         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7271         executable stacks.
7272
7273         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7274         mTRIm for all of them.
7275         (mTRIm): Additionally iterate over all free blocks and use madvise
7276         to free memory for all those blocks which contain at least one
7277         memory page.
7278         * malloc/tst-trim1.c: New file.
7279         * malloc/Makefile (tests): Add tst-trim1.
7280
7281         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7282
7283 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7284
7285         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7286         First cast argument to long
7287         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7288         Return long.
7289         (__vdso_clock_gettime): Likewise.
7290         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7291         return long.
7292
7293 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7294
7295         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7296         * locale/nl_langinfo_l.c: Real implementation, copied from
7297         nl_langinfo.c.
7298         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7299
7300 2007-12-01  Jim Meyering  <meyering@redhat.com>
7301
7302         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7303         that would inhibit utf8-optimization of a regexp containing line-
7304         or buffer-anchors, e.g., `^', `$'.
7305
7306 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7307
7308         * time/bug-getdate1.c (do_test): Don't use century values which
7309         aren't valid on 32-bit systems.
7310
7311 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
7312
7313         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7314         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7315         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7316         __strcat_g, __strncat_g): Add __asm__.
7317
7318 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7319
7320         [BZ #5477]
7321         * io/fchmodat.c: Fix typo in stub_warning use.
7322         Patch by Petr Salinger.
7323
7324 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
7325
7326         * iconvdata/hp-thai8.c: New file.
7327         * iconvdata/Makefile: Add rules for hp-thai8.c.
7328         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7329         * iconvdata/gconv-modules: Likewise.
7330
7331         [BZ #5464]
7332         * iconvdata/hp-greek8.c: New file.
7333         * iconvdata/Makefile: Add rules for hp-greek8.c.
7334         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7335         * iconvdata/gconv-modules: Likewise.
7336
7337         [BZ #5463]
7338         * iconvdata/hp-turkish8.c: New file.
7339         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7340         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7341         * iconvdata/gconv-modules: Likewise.
7342
7343         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7344         (shrink_heap): ... this new function.
7345         (heap_trim): Call shrink_heap instead of grow_heap.
7346
7347         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7348         case don't call alloc_perturb.
7349
7350 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7351
7352         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7353         possible.
7354         * sysdeps/unix/sysv/linux/kernel-features.h
7355         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7356         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7357
7358 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7359
7360         [BZ #5424]
7361         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7362         * stdio-common/Makefile (tests): Add bug22.
7363         * stdio-common/bug22.c: New file.
7364
7365         [BZ #5451]
7366         * time/getdate.c: Fix filling in default values.
7367         * time/bug-getdate1.c: New file.
7368         * time/Makefile: Add rules to build and run bug-getdate1.
7369
7370         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7371         * iconvdata/ebcdic-es.c: Likewise.
7372         * iconvdata/ebcdic-es-a.c: Likewise.
7373         * iconvdata/ebcdic-uk.c: Likewise.
7374         * iconvdata/iso8859-16.c: Likewise.
7375         * iconvdata/viscii.c: Likewise.
7376         * iconvdata/iso8859-9e.c: Likewise.
7377         * iconvdata/Makefile: Adjust appropriately.
7378
7379         [BZ #5428]
7380         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7381         __need_wint_t.
7382
7383 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7384
7385         [BZ #5427]
7386         * iconvdata/hp-roman9.c: New file.
7387         * iconvdata/Makefile: Add rules for hp-roman9.c.
7388         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7389         * iconvdata/gconv-modules: Likewise.
7390
7391         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7392         * iconvdata/Makefile: Adjust appropriately.
7393
7394         [BZ #5441]
7395         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7396         structure, it's allocated with alloca.
7397         * stdio-common/Makefile (tests): Add bug21.
7398         * stdio-common/bug21.c: New file.
7399
7400 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7401
7402         [BZ #5452]
7403         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7404         keyword for gcc's braced-groups.
7405
7406 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7407
7408         [BZ #5454]
7409         * inet/ether_line.c: Strip hostname of whitespaces.
7410         * inet/Makefile (tests): Add tst-ether_line.
7411         * inet/tst-ether_line.c: New file.
7412
7413 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7414
7415         [BZ #5439]
7416         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7417
7418         [BZ #5435]
7419         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7420
7421         * stdlib/tst-setcontext.c: Catch the case where the links gets
7422         messed up and we do not reach main again.
7423
7424         * po/ca.po: Update from translation team.
7425
7426 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7427
7428         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7429         * posix/regex.h (REG_ENOSYS): Likewise.
7430         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7431
7432 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
7433
7434         * nscd/nscd.h (MAX_STACK_USE): Define.
7435         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7436         (gc): Initialize stack_used based on allocation in prune_cache.
7437         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7438         Clear array before use.
7439
7440         * nscd/aicache.c (addhstaiX): Update statistics counter in case
7441         memory allocation failed.
7442         * nscd/hstcache.c (cache_addhst): Likewise.
7443         * nscd/grpcache.c (cache_addgr): Likewise.
7444         * nscd/servicescache.c (cache_addserv): Likewise.
7445         * nscd/pwdcache.c (cache_addpw): Likewise.
7446         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7447
7448 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
7449
7450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7451         and creat system calls.
7452
7453         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7454
7455 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7456
7457         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7458         Add netiucv/iucv.h.
7459         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7460         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7461         protocol.
7462         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7463         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7464         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7465
7466 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7467
7468         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7469         strncat): Define as macros to avoid compile errors.
7470
7471         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
7472         creat entries.
7473
7474 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
7475
7476         [BZ #5382]
7477         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7478         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7479         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7480         overflow it.
7481         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7482
7483         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7484         Return zero in case the thread library is not NPTL.
7485
7486         [BZ #5375]
7487         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7488         initializing interface list.
7489
7490         [BZ #5378]
7491         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7492         use result of nss_getgrgid_r if nothing was found.  For other
7493         error return with a failure.
7494         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7495
7496         * locale/programs/ld-collate.c (collate_read): Fix loop to match
7497         macro name.
7498
7499 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7500
7501         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7502         (get_scope): For IPv4 scope, use scopes table.
7503         (fini): Free scopes table if necessary.
7504         (free_scopelist): New function.
7505         (scopecmp): New function.
7506         (gaiconf_init): Also handle scopev4 entries.
7507         * posix/tst-rfc3484.c (do_test): Initialize scopes.
7508         * posix/tst-rfc3484-2.c (do_test): Likewise.
7509         * posix/gai.conf: Document scopev4 defaults.
7510         * posix/Makefile (tests): Add tst-rfc3484-3.
7511         * posix/tst-rfc3484-3.c: New file.
7512
7513         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7514         Teredo tunnels.
7515         * posix/gai.conf: Update for current default tables.
7516
7517 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7518
7519         * po/tr.po: Update from translation team.
7520
7521 2007-11-18  Roland McGrath  <roland@frob.com>
7522
7523         * manual/arith.texi (Remainder Functions): Spelling fix.
7524         From Shaun Silk <genix@mysoul.com.au>.
7525
7526         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7527
7528 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
7529
7530         * po/zh_CN.po: Update from translation team.
7531
7532         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7533         Add sys/signalfd.h and sys/eventfd.h.
7534
7535 2007-11-15  Bruno Haible  <bruno@clisp.org>
7536
7537         [BZ #5346]
7538         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7539         union.
7540         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7541         (DCIGETTEXT): Change the allocation of the 'search' variable so that
7542         it needs only fixed stack space. Delay the initialization of
7543         msgid_len until it is needed.
7544
7545 2007-11-15  Andreas Jaeger  <aj@suse.de>
7546
7547         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7548         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7549
7550 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
7551
7552         * po/ko.po: Update from translation team.
7553
7554 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
7555
7556         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7557         significantly.  The device type is also part of the ifinfomsg data.
7558
7559         * po/sv.po: Update from translation team.
7560         * po/nl.po: Likewise.
7561
7562         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7563         to wake up in 24 hours.
7564
7565         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
7566
7567 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
7568
7569         * po/cs.po: Update from translation team.
7570         * po/pl.po: Likewise.
7571
7572         * include/ifaddrs.h: Remove in6ai_temporary.
7573         (struct in6addrinfo): Add index element.
7574         Declare __check_native.
7575         * inet/Makefile (aux): Add check_native.
7576         * sysdeps/unix/sysv/linux/check_native.c: New file.
7577         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7578         IFA_F_TEMPORARY.  Pass back ifa_index.
7579         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7580         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
7581         call __check_native if necessary.
7582         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
7583         to sort addresses.  Pass information about the results.
7584         * posix/tst-rfc3484.c: Adjust for addition of index field and change
7585         of rfc3484_sort interface.
7586         * posix/tst-rfc3484-2.c: Likewise.
7587
7588         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
7589         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7590         for _quicksort.
7591         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7592         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
7593         on as third parameter to compare function and _quicksort.
7594         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7595         to the compare function.
7596         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7597         * Versions.def: Add GLIBC_2.8 for libc.
7598
7599         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7600         * posix/tst-rfc3484-2.c: Likewise.
7601
7602         * include/kernel-features.h: Moved to...
7603         * sysdeps/mach/hurd/kernel-features.h: ...here.
7604
7605 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7606
7607         * sysdeps/i386/i586/memcpy_chk.S: New file.
7608         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7609         * sysdeps/i386/i586/memset_chk.S: Likewise.
7610
7611 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
7612
7613         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7614         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7615         list of interfaces.  Also store prefix length.
7616         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7617         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7618         prefix if source and destination address are in the same subnet.
7619         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
7620         Always look for matching record in in6ai list.
7621         Correct source_addr_len value for IPv6->IPv4 converted records.
7622
7623 2007-11-11  Roland McGrath  <roland@frob.com>
7624
7625         * include/kernel-features.h: New file.
7626
7627 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
7628
7629         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7630         complications for 64-bit platforms.
7631
7632         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7633         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
7634         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7635         open64_2.
7636         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
7637         entries.
7638         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7639         * sysdeps/wordsize-64/alphasort.c: New file.
7640         * sysdeps/wordsize-64/alphasort64.c: New file.
7641         * sysdeps/wordsize-64/fseeko.c: New file.
7642         * sysdeps/wordsize-64/fseeko64.c: New file.
7643         * sysdeps/wordsize-64/ftello.c: New file.
7644         * sysdeps/wordsize-64/ftello64.c: New file.
7645         * sysdeps/wordsize-64/ftw.c: New file.
7646         * sysdeps/wordsize-64/ftw64.c: New file.
7647         * sysdeps/wordsize-64/iofgetpos.c: New file.
7648         * sysdeps/wordsize-64/iofgetpos64.c: New file.
7649         * sysdeps/wordsize-64/iofopen.c: New file.
7650         * sysdeps/wordsize-64/iofopen64.c: New file.
7651         * sysdeps/wordsize-64/iofsetpos.c: New file.
7652         * sysdeps/wordsize-64/iofsetpos64.c: New file.
7653         * sysdeps/wordsize-64/lockf.c: New file.
7654         * sysdeps/wordsize-64/lockf64.c: New file.
7655         * sysdeps/wordsize-64/mkostemp.c: New file.
7656         * sysdeps/wordsize-64/mkostemp64.c: New file.
7657         * sysdeps/wordsize-64/mkstemp.c: New file.
7658         * sysdeps/wordsize-64/mkstemp64.c: New file.
7659         * sysdeps/wordsize-64/scandir.c: New file.
7660         * sysdeps/wordsize-64/scandir64.c: New file.
7661         * sysdeps/wordsize-64/tmpfile.c: New file.
7662         * sysdeps/wordsize-64/tmpfile64.c: New file.
7663         * sysdeps/wordsize-64/versionsort.c: New file.
7664         * sysdeps/wordsize-64/versionsort64.c: New file.
7665         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
7666         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
7667         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
7668         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
7669         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
7670         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
7671         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
7672         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
7673         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
7674         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
7675         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
7676         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
7677
7678         * crypt/sha256-crypt.c: Fix a comment.
7679         * crypt/sha512-crypt.c: Likewise.
7680
7681 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7682
7683         * sysdeps/x86_64/memset.S: Add sfence after movnti.
7684
7685 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
7686
7687         [BZ #5277]
7688         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
7689         because output buffer is too small break, don't loop.
7690         * iconvdata/Makefile (tests): Add bug-iconv6.
7691         * iconvdata/bug-iconv6.c: New file.
7692
7693 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
7694
7695         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
7696         with size_t type.
7697         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
7698         size_t.  Add casts where needed.
7699
7700         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
7701         old headers, don't call avc_has_perm if we don't have the
7702         permission information.
7703
7704 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
7705
7706         * elf/rtld.c (dl_main): Use the page size to find the map start.
7707
7708 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
7709
7710         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
7711         Patch by Szymon Siwek <sls@poczta.wp.pl>.
7712
7713         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
7714         when the lookup call failed.
7715
7716         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
7717         Add prune_cond and wakeup_time.
7718         (CACHE_PRUNE_INTERNAL): Define.
7719         Update declarations of prune_cache and setup_thread.
7720         * nscd/connections.c (dbs): Update initializers.
7721         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
7722         (nscd_init): Default number of threads is now 4.
7723         (invalidate_cache): Take lock before calling prune_cache.
7724         (handle_request): If SELinux forbids the request, say so.
7725         (readylist_cond): Use static initializer.
7726         (nscd_run_prune): New function.  Used only by pruning threads.
7727         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
7728         here.
7729         (fd_ready): Update nscd_run reference.
7730         (start_threads): No need to initialize readylist_cond.
7731         Start pruning threads separately.
7732         * nscd/nscd_setup_thread.c: Change return value type to int and always
7733         return 0.
7734         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
7735         to int and return nonzero value if we can use the TID address hack.
7736         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
7737         the database is later than the new entry's timeout, update the
7738         wakeup time and wake the cleanup thread.
7739         (prune_cache): Return seconds the next entry in the database is still
7740         valid.  Remove locking for pruning here.
7741         * nscd/nscd.conf: Document default number of threads.
7742
7743 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
7744
7745         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
7746         stack is properly aligned for the target function.
7747         Correct unwind info.
7748
7749         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
7750         when using auditing libraries.
7751
7752 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
7753
7754         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
7755         _nss_dns_getnetbyaddr2_r.
7756         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
7757         extra parameter to getanswer_r.
7758         (_nss_dns_getnetbyaddr_r): Now a wrapper around
7759         _nss_dns_getnetbyaddr2_r.
7760
7761         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
7762         gethstbynm3_r.
7763         * nscd/gethstbynm2_r.c: Remove.
7764         * nscd/gethstbynm3_r.c: New file.
7765         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
7766         __gethostbyaddr_r.
7767         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
7768         __gethostbyaddr_r compatibility wrapper.
7769         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
7770         determining timeout of entry.
7771         (lookup): Take new parameter and pass it to __gethostbyname3_r and
7772         __gethostbyaddr2_r.
7773         (addhstbyX): Pass reference to variable for TTL to lookup and
7774         cache_addhst.
7775         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
7776         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
7777         and __nss_next2.  Remove __nss_services_lookup.
7778         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
7779         Add compat wrapper.
7780         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
7781         __nss_next2.
7782         * nss/getXXent_r.c: Likewise.
7783         * nss/getnssent_r.c: Likewise.
7784         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
7785         does not exist in module, try the optional second name.
7786         (__nss_next2): New function.
7787         (__nss_next): Now wrapper around __nss_next2.
7788         * nss/nsswitch.h: Adjust __nss_lookup prototype.
7789         Declare __nss_next2.
7790         Adjust definition of db_lookup_function type.
7791         * nss/service-lookup.c: Define NO_COMPAT.
7792         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
7793         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
7794         * inet/ether_ntoh.c: Likewise.
7795         * sunrpc/netname.c: Likewise.
7796         * sunrpc/publickey.c: Likewise.
7797         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
7798         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
7799         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
7800         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
7801         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
7802
7803         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
7804
7805         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
7806
7807 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
7808
7809         [BZ #5204]
7810         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
7811         * crypt/sha512c-test.c: Likewise.
7812
7813         [BZ #5225]
7814         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
7815         to keep track of end of %[ format string element.
7816         * stdio-common/Makefile (tests): Add bug20.
7817         * stdio-common/bug20.c: New file.
7818
7819         [BZ #5222]
7820         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
7821         path elements in counting mode.
7822
7823 2007-10-27  Andreas Jaeger  <aj@suse.de>
7824
7825         [BZ #5040]
7826         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
7827
7828         [BZ #3112]
7829         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
7830         (__cleanup): Free shared library when exiting.
7831         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
7832         (__cleanup): Free shared library when exiting.
7833
7834 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
7835
7836         [BZ #2549]
7837         * math/libm-test.inc (check_float_internal): Support
7838         denormalized return.
7839
7840 2007-10-23  Andreas Jaeger  <aj@suse.de>
7841
7842         [BZ #5208]
7843         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
7844         __LONG_LONG_PAIR to handle little endian byte order.
7845         Suggested by abhishekrai@google.com
7846
7847 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
7848
7849         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
7850
7851 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
7852
7853         * nscd/cache.c (prune_cache): Move test for modified file outside
7854         of locking.
7855
7856 2007-10-21  Andreas Jaeger  <aj@suse.de>
7857
7858         * manual/texinfo.tex: Update to latest version.
7859
7860         * manual/sysinfo.texi (System Parameters): Fix Formatting.
7861
7862         * manual/arith.texi (Status bit operations): Fix formatting.
7863
7864         * manual/errno.texi (Error Messages): Fix formatting.
7865
7866         * manual/sysinfo.texi (System Parameters): Fix formatting.
7867
7868         * manual/libc.texinfo: Update VERSION and UPDATED.
7869
7870 2007-10-19  Roland McGrath  <roland@redhat.com>
7871
7872         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
7873
7874 2007-10-06  David S. Miller  <davem@davemloft.net>
7875
7876         * configure.in: Add sparcv9v2 and sparc64v2.
7877         * scripts/config.sub: Likewise.
7878         * configure: Regenerate.
7879         * elf/elf.h (HWCAP_SPARC_N2): New.
7880         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
7881         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
7882         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
7883         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
7884         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
7885         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
7886         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
7887
7888 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
7889
7890         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
7891         even if the poll result indicates there is data to read.
7892         Patch by Jeff Moyer <jmoyer@redhat.com>.
7893
7894 2007-10-18  Roland McGrath  <roland@redhat.com>
7895
7896         * elf/elf.h (NT_PPC_VMX): New macro.
7897
7898 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7899
7900         * version.h (VERSION): Set to 2.7.90.
7901
7902 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7903
7904         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
7905         weak_alias.
7906
7907 2007-10-17  Roland McGrath  <roland@frob.com>
7908
7909         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
7910         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
7911
7912 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7913
7914         * version.h (VERSION): Bump to 2.7.
7915         * include/features.h (__GLIBC_MINOR__): Bump to 7.
7916
7917         [BZ #5186]
7918         * time/tzset.c (__tz_convert): Don't force testing for a change of
7919         TZ if not called from localtime.  But then also see whether the
7920         file changed, in case __use_tzfile is set.
7921
7922         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
7923         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7924         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7925         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7926         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7927         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7928         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
7929         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7930
7931 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
7932
7933         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
7934         and admin selects to be able to replace the gai.conf file, lock
7935         data structures around the qsort call.
7936
7937 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7938
7939         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
7940         new memset.
7941         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
7942         too high for the improvements.  Implement bzero unconditionally for
7943         use in libc.
7944
7945 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
7946             Jakub Jelinek  <jakub@redhat.com>
7947
7948         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
7949         even when time_t is 32-bit.
7950         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
7951         timezone data read by __tzfile_default.  Ensure __tzname[0] is
7952         always set after the search.
7953
7954 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7955
7956         * time/tzfile.c (__tzfile_read): Help the compiler recognize
7957         unreachable code on 32-bit machines.
7958
7959 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7960
7961         [BZ #5184]
7962         * time/strftime_l.c: Include stdbool.h.
7963         (my_strftime): New wrapper, old function renamed to...
7964         (__strftime_internal): ... new function.  Add tzset_called
7965         argument, pass it down to recursive calls, don't call tzset ()
7966         if already true, set to true after call to tzset ().
7967
7968 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
7969
7970         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
7971         into account when copying TZ string.
7972
7973 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7974
7975         * time/tzfile.c (__tzfile_compute): For use_last case set i to
7976         num_transition rather than num_transitions - 1.
7977
7978 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
7979
7980         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
7981         PIC indirect jump.
7982
7983         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
7984         a local label rather than HIDDEN_JUMPTARGET.
7985
7986 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
7987
7988         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
7989         (init_cacheinfo): Initialize it.
7990         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
7991         Always define bzero.
7992         Remove non-glibc code.
7993         * sysdeps/x86_64/bzero.S: Make an empty file.
7994
7995 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7996
7997         * sysdeps/x86_64/cacheinfo.c
7998         (__x86_64_preferred_memory_instruction): New.
7999         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8000
8001         * sysdeps/x86_64/memset.S: Rewrite.
8002
8003 2007-10-15  Roland McGrath  <roland@redhat.com>
8004
8005         * po/libc.pot: Regenerated.
8006
8007 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8008
8009         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8010         pointers.
8011
8012         [BZ #3425]
8013         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8014         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8015         address record to T_A/T_AAAA requests.
8016
8017 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8018
8019         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8020
8021         * posix/glob.c: Add some branch prediction throughout.
8022
8023         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8024         read from nscd.
8025
8026         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8027         service_order.
8028         (rfc3484_sort): Make sure that even if qsort doesn't support
8029         stable sorting out sorting here is stable by comparing service_order.
8030         (getaddrinfo): Initialize service_order.
8031         * posix/tst-rfc3484.c (do_test): Adjust for addition of
8032         service_order field to sorting structure.
8033         * posix/tst-rfc3484-2.c (do_test): Likewise.
8034
8035         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8036         * time/tzset.c (tzset_internal): Break TZ string parsing out into
8037         __tzset_parse_tz and updating of daylight, timezone, tzname into
8038         update_vars.
8039         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
8040         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8041         happens in __tz_compute.
8042         * time/tzfile.c (__tzfile_read): Also read TZ string.
8043         (find_transition): Fold into __tzfile_compute.
8044         (__tzfile_compute): For times beyond the last transition try to
8045         use the TZ string.
8046         * timezone/tst-timezone.c: Information in daylight and tzname does
8047         change for Asia/Tokyo timezone with more concrete information.
8048         Remove the test.
8049
8050         * include/stdio.h: Add libc_hidden_proto for ftello.
8051         * libio/ftello.c: Add libc_hidden_def.
8052
8053         [BZ #1140]
8054         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8055         on the specified time and not the last entries in the file.  Move
8056         code to determine tzname[] to...
8057         (find_transition): ...here.  Add ugly guess for times before the
8058         first transition.
8059
8060 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8061
8062         [BZ #3195]
8063         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8064         no entry.
8065         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8066         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8067         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8068         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8069
8070         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8071         read mechanism when there are no group members and avoid no-op
8072         read syscall in this case.
8073
8074         [BZ #3242]
8075         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8076         (__readall): If reading failed due to EAGAIN error wait a bit
8077         and possibly try again.
8078         (__readvall): Likewise.
8079
8080 2007-10-13  Bruno Haible  <bruno@clisp.org>
8081
8082         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8083         when we cannot recode the message.
8084
8085 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8086
8087         [BZ #4359]
8088         * libio/__freading.c (__freading): Don't return true for
8089         write-only streams.  For read/write streams, check whether we
8090         performed a read operation already.
8091         * libio/Makefile (tests): Add tst-ext2.
8092         * libio/tst-ext2.c: New file.
8093
8094 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8095
8096         * locale/programs/repertoire.c (repertoire_read): Always free
8097         memory for repertoire file name [Coverity CID 270].
8098
8099         * elf/cache.c (save_aux_cache): Free memory allocated for
8100         temporary file name [Coverity CID 267].
8101
8102 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8103
8104         * misc/Makefile (headers): Add bits/error.h.
8105
8106 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8107
8108         * posix/fnmatch_loop.c: Take rule index returned as part of
8109         findidx return value into account when accessing weights.
8110         * posix/regcomp.c: Likewise.
8111         * posix/regexec.c: Likewise.
8112
8113         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8114         (skip_to): Fix problems with parameter of elifdef/elifndef.
8115
8116 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
8117
8118         * iconv/gconv_simple.c: Add some branch prediction.
8119
8120 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8121
8122         * locale/programs/ld-collate.c (collate_read): If ignore_content
8123         and nowtok is tok_define, eat any tok_eol tokens.
8124
8125 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
8126
8127         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8128         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8129
8130         * inet/netinet/in.h: Don't include bits/socket.h.
8131         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8132         macro.
8133         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8134
8135 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
8136
8137         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8138         and tok_elifndef.
8139         * locale/programs/locfile-kw.gperf: Likewise.
8140         * locale/programs/ld-collate.c: Implement primitive preprocessor.
8141
8142 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
8143
8144         * stdio-common/printf-parse.h: Include string.h and wchar.h.
8145         (__find_specwc): Change into __extern_always_inline function.
8146         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
8147         (__parse_one_specmb): Remove ps argument.
8148         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8149         Adjust __find_specmb and __parse_one_specmb callers.
8150         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8151         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8152         Removed.
8153         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8154         caller.
8155
8156 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
8157
8158         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8159         with some Pentium Ds.
8160
8161 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
8162
8163         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8164         __read not read.
8165         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8166         __write not write.
8167
8168 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8169
8170         [BZ #181]
8171         * locale/C-time.c: Set week_1stday data to 19971201.
8172         * locale/programs/ld-time.c (time_finish): Default for
8173         first_workday is Monday.
8174
8175         [BZ #2633]
8176         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8177
8178         [BZ #5103]
8179         * posix/glob.c (glob): Recognize patterns starting \/.
8180         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8181         (main): Add test for pattern starting \/.
8182
8183         * misc/error.h: Use __const instead of const.
8184         * misc/bits/error.h: Likewise.
8185
8186 2007-10-07  Andreas Jaeger  <aj@suse.de>
8187
8188         * include/bits/error.h: New file.
8189
8190         * misc/bits/error.h (error_at_line): Fix prototype.
8191
8192 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
8193
8194         [BZ #3924]
8195         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8196         more little bugs in creating the stack frame when pltexit has to
8197         be called.
8198
8199         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8200         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8201
8202         [BZ #4407]
8203         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8204         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8205         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8206         * math/libm-test.inc: Add test for this case.
8207
8208         [BZ #5010]
8209         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8210         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
8211         map service succeeded.
8212         (svc_is_mapped): New function.
8213         (svc_unregister): Use it before trying to unmap service.
8214
8215 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
8216
8217         * timezone/zic.c: Update from tzcode2007h.
8218
8219         [BZ #5063]
8220         * timezone/africa: Update from tzdata2007h.
8221         * timezone/antarctica: Likewise.
8222         * timezone/asia: Likewise.
8223         * timezone/australasia: Likewise.
8224         * timezone/europe: Likewise.
8225         * timezone/leapseconds: Likewise.
8226         * timezone/northamerica: Likewise.
8227         * timezone/southamerica: Likewise.
8228         * timzeone/zone.tab: Likewise.
8229
8230         [BZ #5104]
8231         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8232
8233         [BZ #5113]
8234         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8235         avoid warning with -Wconversion.
8236         (__strndup): Likewise.
8237         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8238
8239         [BZ #5112]
8240         * nscd/connections.c (restart): Don't resync if database is
8241         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8242
8243         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8244         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8245
8246         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8247         evetnfd_read, eventfd_write.
8248         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8249         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8250         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8251         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8252         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8253         eventfd_write for GLIBC_2.7.
8254
8255         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8256         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8257         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8258         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8259
8260 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8261
8262         * stdlib/msort.c: Include stdint.h.
8263         (struct msort_param): New type.
8264         (msort_with_tmp): Use struct msort_param pointer for unchanging
8265         parameters.  Add optimized handling for several common sizes
8266         and indirect sorting mode.
8267         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8268         sorting.
8269         Suggested by Belazougui Djamel .
8270
8271         * stdlib/Makefile (tests): Add tst-qsort2.
8272         * stdlib/tst-qsort2.c: New test.
8273
8274 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8275
8276         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8277         for dup2 in case another thread races with the current one.  Retry
8278         in this case.
8279
8280         * misc/error.h: Remove support for use outside of libc.  We have to
8281         include <features.h> now.  Include <bits/error.h> if possible.
8282         * misc/bits/error.h: New file.
8283
8284 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8285
8286         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8287         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8288         __extern_always_inline functions unconditionally, drop macros.
8289
8290         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8291         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8292         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8293
8294         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8295         add __artificial__ attribute.
8296
8297 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8298
8299         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8300         backward to forward direction.
8301
8302         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8303
8304         [BZ #645]
8305         * locale/programs/ld-collate.c (collate_finish): Compare against last
8306         used section which is known to have rules defined.
8307         (collate_read): After order_start, correctly record order of sections
8308         and queue sections up.
8309
8310 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
8311
8312         [BZ #5071]
8313         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8314         the same number of pages.
8315         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8316
8317         * locale/programs/ld-collate.c (collate_read): After initial copy
8318         statement, continue in state 0.
8319
8320         * include/stdio_ext.h (__fsetlocking): Define as macro.
8321
8322 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
8323
8324         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8325         of section order.
8326
8327         * po/pt_BR.po: Fix typo.
8328
8329 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
8330
8331         * iconvdata/Makefile (modules): Add ISO8859-9E.
8332         (distribute): Add iso8859-9e.c.
8333         (gen-8bit-gap-modules): Add iso8859-9e.
8334         * iconvdata/iso8859-9e.c: New file.
8335         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8336         * iconvdata/TESTS: Likewise.
8337         * iconvdata/tst-tables.sh: Likewise.
8338
8339         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8340
8341         * locale/iso-639.def: Add several new entries.
8342
8343 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8344
8345         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8346         void * pointers instead of struct link_map **.
8347         (_dl_scope_free): Change argument type to void *.
8348         * include/link.h (struct link_map): Change type of l_reldeps
8349         to struct link_map_reldeps, move l_reldepsact into that
8350         struct too.
8351         * elf/dl-deps.c: Include atomic.h.
8352         (_dl_map_object_deps): Only change l->l_initfini when it is
8353         fully populated, use _dl_scope_free for freeing it.  Optimize
8354         removal of libs from reldeps by using l_reserved flag, when
8355         some removal is needed, allocate a new list instead of
8356         reallocating and free the old with _dl_scope_free.  Adjust
8357         for l_reldeps and l_reldepsact changes.
8358         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8359         searching in l_initfini and l_reldeps without holding dl_load_lock.
8360         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8361         l_reldepsact changes.
8362         * elf/dl-close.c (_dl_close_worker): Likewise.
8363         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8364
8365 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
8366
8367         * iconvdata/Makefile (modules): Add KOI8-RU.
8368         (distribute): Add koi8-ru.c.
8369         (gen-8bit-gap-modules): Add koi8-ru.
8370         * iconvdata/koi8-ru.c: New file.
8371         * iconvdata/gconv-modules: Add entries for KOI8-RU.
8372         * iconvdata/TESTS: Likewise.
8373         * iconvdata/tst-tables.sh: Likewise.
8374
8375         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8376
8377 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8378
8379         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8380         with __warning__/__error__ attributes.
8381         (__warnattr): Define.
8382         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8383         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8384         __warnattr.
8385         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8386         of __*_chk if compile time detectable overflow is found.
8387         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8388         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8389         with __warnattr.
8390         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8391         instead of __*_chk if compile time detectable overflow is found.
8392         (__gets_alias): Rename to...
8393         (__gets_warn): ... this.  Add __warnattr.
8394         (gets): Call __gets_warn instead of __gets_alias.
8395         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8396         aliases with __warnattr.
8397         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8398         time detectable overflow is found.
8399         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8400         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8401         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8402         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8403         __getdomainname_chk_warn): New aliases with __warnattr.
8404         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8405         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8406         __*_chk_warn instead of __*_chk if compile time detectable overflow
8407         is found.
8408         (__getgroups_chk): Rename argument to __listlen from listlen.
8409         (__getwd_alias): Rename to...
8410         (__getwd_warn): ... this.  Add __warnattr.
8411         (getwd): Call __getwd_warn instead of __getwd_alias.
8412         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8413         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8414         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8415         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8416         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8417         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8418         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8419         compile time detectable overflow is found.
8420         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8421         to use __*_chk or not.
8422         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8423         in comparisons which function should be called and in __*_chk*
8424         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8425         detectable overflow is found.
8426         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8427         __*_chk argument.
8428         * debug/tst-chk1.c (do_test): Add a few more tests.
8429
8430 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
8431
8432         [BZ #5058]
8433         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8434         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8435         (_nl_unload_domain): Finalize conversions_lock.
8436         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8437         handling table of known conversions.
8438
8439 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8440
8441         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8442         close_not_cancel_no_status instead of close.
8443
8444 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
8445
8446         [BZ #5028]
8447         * posix/regcomp.c (lookup_collation_sequence_value): Check that
8448         nrules != 0 for multibyte chars.
8449
8450 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
8451
8452         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8453         Provide better error message in case the type is unknown.
8454
8455         [BZ #4963]
8456         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8457         * string/stratcliff.c: Make usable to test wide char functions.
8458         * wcsmbs/wcsatcliff.c: New file.
8459         * wcsmbs/Makefiel (tests): Add wcsatcliff.
8460
8461         [BZ #4972]
8462         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8463         (distribute): Add mac-centraleurope.c.
8464         (gen-8bit-gap-modules): Add mac-centraleurope.
8465         * iconvdata/mac-centraleurope.c: New file.
8466         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8467         * iconvdata/TESTS: Likewise.
8468         * iconvdata/tst-tables.sh: Likewise.
8469
8470         [BZ #5043]
8471         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8472
8473 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
8474
8475         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8476         from __x86_64_core_cache_size_half.
8477         (init_cacheinfo): Compute shared cache size for AMD processors with
8478         shared L3 correctly.
8479         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8480         name change.
8481         Patch in large parts by Evandro Menezes.
8482
8483 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
8484
8485         * elf/dl-lookup.c (add_dependency): Handle failing memory
8486         allocation for dependency list.  Remove unnecessary check.
8487
8488         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8489         open/close when determining source addresses.
8490
8491         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8492         sha512-crypt, and sha512.
8493         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8494         (distribute): Add sha256.h and sha512.h.
8495         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8496         and call the appropriate code.
8497         * crypt/sha256-crypt.c: New file.
8498         * crypt/sha256.c: New file.
8499         * crypt/sha256.h: New file.
8500         * crypt/sha256c-test.c: New file.
8501         * crypt/sha256test.c: New file.
8502         * crypt/sha512-crypt.c: New file.
8503         * crypt/sha512.c: New file.
8504         * crypt/sha512.h: New file.
8505         * crypt/sha512c-test.c: New file.
8506         * crypt/sha512test.c: New file.
8507
8508 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
8509
8510         * misc/bits/syslog.h (syslog): Remove extraneous argument from
8511         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8512         __syslog_chk.
8513
8514 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
8515
8516         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8517         %as in fscanf format strings.
8518
8519         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8520         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8521         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8522         Likewise.
8523         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8524         Likewise.
8525
8526         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8527         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8528         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8529         * elf/dl-sym.c (do_sym): Likewise.
8530         * include/link.h (struct link_map): Add l_serial field.
8531         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8532         * elf/dl-lookup.c (add_dependency): Add flags argument.
8533         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8534         flags, use THREAD_GSCOPE_RESET_FLAG before and
8535         THREAD_GSCOPE_SET_FLAG after
8536         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8537         Don't dereference map until it has been found on some list.
8538         If map->l_serial changed, return -1.
8539
8540 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
8541
8542         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8543         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8544         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8545         libc_hidden_proto.
8546         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8547         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8548         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8549         add libc_hidden_proto.
8550         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8551         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8552         conformance requested.
8553         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8554         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8555         conformance requested.
8556         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8557         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8558         conformance requested.
8559         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8560         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8561         ISO C99 or POSIX conformance requested.
8562         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8563         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8564         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8565         and __isoc99_vsscanf@@GLIBC_2.7.
8566         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8567         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8568         (tests): Add scanf14.
8569         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8570         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8571         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8572         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8573         CFLAGS-isoc99_scanf.c): Add $(exceptions).
8574         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8575         from using internal headers.
8576         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8577         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8578         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8579         and __isoc99_vswscanf@@GLIBC_2.7.
8580         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8581         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8582         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8583         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8584         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8585         * stdio-common/isoc99_scanf.c: New file.
8586         * stdio-common/isoc99_vsscanf.c: New file.
8587         * stdio-common/isoc99_vscanf.c: New file.
8588         * stdio-common/isoc99_vfscanf.c: New file.
8589         * stdio-common/isoc99_fscanf.c: New file.
8590         * stdio-common/isoc99_sscanf.c: New file.
8591         * wcsmbs/isoc99_fwscanf.c: New file.
8592         * wcsmbs/isoc99_vswscanf.c: New file.
8593         * wcsmbs/isoc99_swscanf.c: New file.
8594         * wcsmbs/isoc99_wscanf.c: New file.
8595         * wcsmbs/isoc99_vwscanf.c: New file.
8596         * wcsmbs/isoc99_vfwscanf.c: New file.
8597         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8598         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8599         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8600         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8601         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8602         * stdio-common/scanf14.c: New test.
8603         * stdio-common/scanf15.c: New test.
8604         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8605         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8606         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8607         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8608         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8609         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8610         __nldbl___isoc99_scanf@@GLIBC_2.7,
8611         __nldbl___isoc99_fscanf@@GLIBC_2.7,
8612         __nldbl___isoc99_sscanf@@GLIBC_2.7,
8613         __nldbl___isoc99_vscanf@@GLIBC_2.7,
8614         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8615         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8616         __nldbl___isoc99_wscanf@@GLIBC_2.7,
8617         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8618         __nldbl___isoc99_swscanf@@GLIBC_2.7,
8619         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8620         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8621         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8622         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8623         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8624         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8625         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8626         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8627         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8628         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8629         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8630         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8631         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8632         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8633         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8634         functions.
8635         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
8636         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
8637         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
8638         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
8639         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
8640         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
8641         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
8642         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
8643         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
8644         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
8645         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
8646         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
8647
8648         * stdio-common/Makefile (tests): Add scanf13.
8649         (scanf13-ENV): New.
8650         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
8651         m modifier followed by l.
8652         (STRING_ARG): Add width argument.
8653         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
8654         <case L_('C')>: Handle %mlc and %mC.
8655         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
8656         arguments.
8657         * stdio-common/scanf13.c: New test.
8658
8659         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
8660         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
8661
8662 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
8663
8664         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
8665         type and __THROW marker of splice, vmsplice, and tee.
8666         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8667         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8668         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8669         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8670         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8671         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8672         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8673         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
8674         as cancellation points.
8675
8676 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
8677
8678         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
8679         parse more than three parts of the version number.
8680
8681 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
8682
8683         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
8684         modifier.  Patch by Jakub Jelinek.
8685
8686 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
8687
8688         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
8689         call_fallocate in misc subdir.
8690         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
8691         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
8692         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
8693         instead of __fallocate64.
8694         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
8695
8696 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
8697
8698         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
8699         * rt/Makefile (headers): Add bits/mqueue2.h.
8700         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
8701         optimizing with GCC and __va_arg_pack_len is defined.
8702         * rt/bits/mqueue2.h: New file.
8703         * rt/mq_open.c (__mq_open): Renamed from mq_open.
8704         (mq_open): New strong_alias.
8705         (__mq_open_2): New function.
8706         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
8707         (mq_open): New strong_alias.
8708         (__mq_open_2): New function.
8709         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
8710         * Versions.def (librt): Add GLIBC_2.7 version.
8711         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
8712         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
8713
8714         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
8715         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
8716         is defined rather than when not C++.
8717         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
8718         __openat64_alias): New redirects.
8719         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
8720         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
8721         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
8722         (open, open64, openat, openat64): Rewrite as __extern_always_inline
8723         functions instead of function-like macros.
8724
8725 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8726
8727         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
8728         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
8729         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
8730
8731 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
8732
8733         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
8734         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
8735
8736 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
8737
8738         * inet/tst-network.c: Increment ERRORS for failing tests.
8739
8740 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
8741
8742         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
8743         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
8744         implement as __extern_always_inline function.
8745         (vsyslog): Define as __extern_always_inline function unconditionally.
8746         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
8747         When __va_arg_pack is defined, implement as __extern_always_inline
8748         functions.
8749         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8750         __extern_always_inline functions unconditionally.
8751         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
8752         bits/stdio2.h will be included.
8753         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
8754         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
8755         implement as __extern_always_inline functions.
8756         (vswprintf, vwprintf, vfwprintf): Define as
8757         __extern_always_inline functions unconditionally.
8758         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
8759
8760 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
8761
8762         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
8763         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
8764         attribute.
8765         * include/features.h (__USE_EXTERN_INLINES): Define only when
8766         __extern_inline is defined.
8767         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
8768         is defined instead of when not __cplusplus.
8769         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
8770         is defined instead of when not __cplusplus.
8771         * socket/sys/socket.h: Include bits/socket2.h when
8772         __extern_always_inline is defined instead of when not __cplusplus.
8773         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
8774         is defined instead of when not __cplusplus.
8775         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
8776         is defined instead of when not __cplusplus.
8777         * string/string.h: Include bits/string3.h when __extern_always_inline
8778         is defined instead of when not __cplusplus.
8779         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
8780         is defined instead of when not __cplusplus.
8781         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
8782         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
8783         is not defined.
8784         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
8785         defined __extern_always_inline instead of !defined __cplusplus.
8786         * libio/bits/stdio-ldbl.h: Likewise.
8787         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8788         * misc/bits/syslog.h (syslog): Don't define for C++.
8789         (vsyslog): Use __extern_always_inline function for C++ instead of
8790         a macro.
8791         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
8792         whenever that macro is defined.
8793         (vprintf): Don't provide the inline for C++.
8794         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
8795         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
8796         define the macros for C++.
8797         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
8798         __extern_always_inline functions for C++.
8799         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
8800         stat64, lstat64, fstat64, fstatat64): Don't define if not
8801         __USE_EXTERN_INLINES.
8802         * wcsmbs/bits/wchar2.h: Fix #error message.
8803         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
8804         (vswprintf, vwprintf, vfwprintf): Define using
8805         __extern_always_inline functions for C++.
8806         * string/bits/string3.h: Don't #undef macros if __cplusplus.
8807         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
8808         strncpy, strcat, strncat): Define as __extern_always_inline
8809         functions instead of macros for C++.
8810         * math/bits/cmathcalls.h: Guard __extern_inline routines with
8811         defined __extern_inline.
8812         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
8813         to __extern_inline whenever that macro is defined.
8814         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8815         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8816         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
8817         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
8818         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8819         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8820         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8821         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
8822         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
8823         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
8824         prototypes.  Only provide __extern_inline routines if
8825         __USE_EXTERN_INLINES.
8826         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
8827         tests.
8828         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
8829         For now avoid some *printf tests in C++.  Skip all testing
8830         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
8831         is not.
8832         * debug/tst-chk4.cc: New file.
8833         * debug/tst-chk5.cc: New file.
8834         * debug/tst-chk6.cc: New file.
8835         * debug/tst-lfschk4.cc: New file.
8836         * debug/tst-lfschk5.cc: New file.
8837         * debug/tst-lfschk6.cc: New file.
8838         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
8839         prototypes in C++.
8840         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
8841         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
8842         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
8843
8844 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
8845
8846         * po/cs.po: Update from translation team.
8847
8848 2007-09-11  Roland McGrath  <roland@redhat.com>
8849
8850         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
8851         compiling.
8852
8853 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8854
8855         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
8856
8857 2007-09-05  Roland McGrath  <roland@redhat.com>
8858
8859         * manual/signal.texi (Signaling Another Process): Typo fix.
8860         From Karl Berry <karl@freefriends.org>.
8861
8862 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
8863
8864         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
8865         zero if not defined.
8866         (make_request): Recognize optimistic addresses and treat them like
8867         deprecated addresses.
8868         Reported by Neil Horman <nhorman@redhat.com>.
8869
8870 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
8871
8872         * nscd/connections.c (send_ro_fd): Also transfer file size.
8873         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
8874         file size don't call fstat.
8875
8876         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
8877         ahead and map the file.  This should always be correct and we can
8878         catch problems later.
8879
8880 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
8881
8882         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
8883         prototypes.
8884         (__fread_alias, __fread_unlocked_alias): New aliases.
8885         (fread): New extern inline.
8886         (fread_unlocked): Likewise.  Undef macro before definition of
8887         the inline function.
8888         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
8889         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
8890         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
8891         and __fread_unlocked_chk@@GLIBC_2.7.
8892         * debug/fread_chk.c: New file.
8893         * debug/fread_u_chk.c: New file.
8894         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
8895
8896 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
8897
8898         * sysdeps/unix/sysv/linux/syscalls.list
8899         (personality): Change caller to EXTRA.
8900
8901 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
8902
8903         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
8904         to keep gcc quiet.
8905         * iconvdata/iso-2022-cn.c (BODY): Likewise.
8906
8907         * locale/programs/ld-collate.c (collate_output): Avoid warning if
8908         NDEBUG is defined.
8909
8910         * Makerules: Use -p option with mkdir.
8911
8912         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
8913         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
8914         (_xdr_directory_obj): Likewise.
8915         (xdr_entry_obj): Likewise.
8916         (xdr_group_obj): Likewise.
8917         (xdr_link_obj): Likewise.
8918         (xdr_table_obj): Likewise.
8919         (_xdr_nis_result): Likewise.
8920         (_xdr_ns_request): Likewise.
8921         (_xdr_ib_request): Likewise.
8922         (_xdr_nis_taglist): Likewise.
8923         (xdr_cback_data): Likewise.
8924         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
8925         (xdr_ypresp_maplist): Likewise.
8926
8927         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
8928
8929         * posix/regex_internal.h: Prevent some declarations and definitions
8930         to be seen when used in tests.
8931
8932         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
8933         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
8934
8935         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
8936
8937         * config.make.in (datarootdir): Add to shut up configure.
8938
8939         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
8940         associativity for fully-associative caches.
8941
8942         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
8943         requests.  Fill on more associativity values for L2.
8944         Patch mostly by Evandro Menezes.
8945
8946 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
8947
8948         * sysdeps/unix/sysv/linux/x86_64/init-first.c
8949         (_libc_vdso_platform_setup): Avoid using exported variable by using
8950         alias.
8951
8952         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
8953
8954         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
8955         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
8956         defined.
8957
8958 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
8959
8960         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
8961         align stack for call if pltexit is to be used.
8962
8963         [BZ #3924]
8964         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
8965         align for function call in case pltexit has to be called later.
8966
8967         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
8968         implicit atomic operation when storing function pointer.
8969         (_dl_runtime_profile): Likewise.
8970
8971 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
8972
8973         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
8974         NIS_NOTFOUND.
8975
8976 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
8977
8978         [BZ #4566]
8979         * string/strtok.c: Fix typo in comment.
8980
8981         [BZ #4582]
8982         * debug/segfault.c: Fix typos in comments.
8983
8984         [BZ #4588]
8985         * stdio-common/tempnam.c: Fix comment, it is not checked that
8986         TMPDIR points to a writable directory.
8987
8988         [BZ #4726]
8989         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
8990         memory allocated for the name server address.
8991
8992         [BZ #4946]
8993         * nscd/connections.c (handle_request): Using sendfile always
8994         requires that mmap is used for the database.
8995         Patch by Petr Baudis <pasky@suse.cz>.
8996
8997         [BZ #4905]
8998         * nscd/hstcache.c (cache_addhst): When reloading an entry which
8999         suddenly has two or more addresses, ignore it and remove the old
9000         entry.
9001
9002         [BZ #4814]
9003         * resolv/res_hconf.c: Prepare for compiling outside libc.
9004         * nscd/res_hconf.c: New file.
9005         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
9006         the new file.
9007         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9008         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9009
9010         * nscd/hstcache.c (cache_addhst): Minimal optimization.
9011
9012         [BZ #4925]
9013         * debug/pcprofiledump.c: Turn on internationalization by calling
9014         setlocale.  Patch mostly by Benno Schulenberg.
9015
9016         [BZ #4936]
9017         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9018         the state.
9019         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9020         * iconvdata/bug-iconv5.c: New file.
9021
9022 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
9023
9024         [BZ #4896]
9025         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9026         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9027         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9028         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9029         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9030         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9031         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9032         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9033
9034 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9035
9036         [BZ #4937]
9037         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9038         lookup loop.  Suggested by John Reiser.
9039
9040 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
9041
9042         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9043
9044 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
9045
9046         * csu/libc-start.c: Don't handle VDSO_SETUP here.
9047         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9048         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9049         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
9050         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9051         to...
9052         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
9053
9054 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
9055
9056         * po/nl.po: Update from translation team.
9057
9058 2007-08-16  Andreas Jaeger  <aj@suse.de>
9059
9060         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9061         Reported by Peter Festner <peter.festner@ewetel.net>.
9062
9063 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9064
9065         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9066
9067 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
9068
9069         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9070         to check for undefined symbols.
9071
9072         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9073         If the syscall fails, set errno to the actual returned error number
9074         rather than EINVAL.
9075         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9076         arguments are incorrect, set errno to EINVAL, if the syscall
9077         fails, set errno to the actual returned error number.
9078
9079         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9080         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9081
9082         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9083         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
9084         file.
9085         (ASI_PNF, ASI_BLK_P): Don't define.
9086         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9087         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
9088         file.
9089         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9090         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
9091         file.
9092
9093 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
9094
9095         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9096         FE_UNDERFLOW on Niagara CPUs.
9097
9098         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9099         exceptions.
9100
9101 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
9102
9103         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9104         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9105         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9106         flush should be used or not inside of the function.
9107         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9108
9109         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9110         __thread_start): Use HIDDEN_JUMPTARGET.
9111         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9112         __thread_start): Likewise.
9113         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9114
9115         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9116         Add libc_hidden_proto.
9117         (STRTOF): Add libc_hidden_proto.
9118         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9119         (strtold_l, wcstold_l): Use them as second argument for
9120         long_double_symbol.
9121
9122 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9123
9124         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
9125
9126 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9127
9128         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
9129
9130 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9131
9132         * po/bg.po: New file.  From the translation team.
9133
9134 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9135
9136         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9137         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9138         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9139         when each feature was introduced.
9140
9141         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9142         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9143         (CHECK_HASH): New macro.
9144         (PREPARE_VERSION): Use it.
9145
9146         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9147         prototype if not __ASSUME_PSELECT.
9148         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9149         prototype if not __ASSUME_PPOLL.
9150
9151         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9152
9153         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9154         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9155         is defined.
9156
9157 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
9158
9159         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9160         (_libc_vdso_platform_setup): If vDSO is not available point
9161         __vdso_gettimeofday to the vsyscall.
9162         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9163         __vdso_gettimeofday instead of vsyscall.
9164
9165 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9166
9167         * nscd/servicescache.c: Include kernel-features.h.
9168         * nscd/gai.c: Likewise.
9169         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9170         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9171         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9172         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9173         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9174         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9175         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9176         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9177         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9178
9179 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9180
9181         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9182         and _dl_get_origin defines anymore.
9183
9184         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9185         Build fix for systems which might lack POSIX timer support.
9186
9187         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9188         (_libc_vdso_platform_setup): Mangle function pointers before storing
9189         them.
9190         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9191         Demangle vdso pointer before use.
9192         (INTERNAL_VSYSCALL): Likewise.
9193
9194         * elf/cache.c (primes): Mark as const.
9195         Noted by Roland McGrath.
9196
9197 2007-08-01  Andreas Jaeger  <aj@suse.de>
9198             Jakub Jelinek  <jakub@redhat.com>
9199
9200         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9201         (options): Add option.
9202         (parse_opt): Handle option.
9203         (manual_link): Adjust process_file caller.  Call implicit_soname.
9204         (search_dir): Formatting.  Use and populate auxiliary cache.
9205         (main): Load and save auxiliary cache.
9206         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
9207         stat64 from fstat64 to caller.
9208         (implicit_soname): New function.
9209         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9210         leave *soname as NULL.
9211         * elf/cache.c: Include libgen.h.
9212         (print_entry, print_cache, compare, save_cache, add_to_cache):
9213         Formatting and cleanups.
9214         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9215         aux_cache_file): New structures.
9216         (AUX_CACHEMAGIC): Define.
9217         (primes): New array.
9218         (aux_hash_size, aux_hash): New variables.
9219         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9220         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9221         load_aux_cache, save_aux_cache): New functions.
9222         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9223         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9224         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9225         (process_file): Adjust prototype.
9226
9227 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9228
9229         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9230         with __need_size_t.
9231
9232 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9233
9234         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9235         r_found_version structure as second parameter.
9236         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9237         (_dl_vdso_vsym): Change type of second parameter accordingly.
9238         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9239         (_libc_vdso_platform_setup): Adjust.
9240         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9241         (_libc_vdso_platform_setup): Likewise.
9242
9243         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9244         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9245         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9246         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9247         * csu/libc-start.c: Pretty printing.
9248         Use VDSO_SETUP if defined.
9249         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9250         and let generic code call into _libc_vdso_platform_setup.
9251         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9252         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9253         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9254         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9255         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9256         for GLIBC_PRIVATE.
9257         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9258         (sysdep_rountines): Add dl-vdso.
9259
9260         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9261         of routines.
9262
9263         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9264         attribute_hidden to __vdso_gettimeofday prototype.
9265
9266 2007-08-12  Roland McGrath  <roland@redhat.com>
9267
9268         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9269         From: Karl Berry <karl@freefriends.org>.
9270
9271 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9272
9273         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9274         an atime update for the files we read.
9275
9276 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9277
9278         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9279
9280         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9281         instead of mkstemp.
9282
9283         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9284         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9285         * misc/mkostemp.c: New file.
9286         * misc/mkostemp64.c: New file.
9287         * stdlib/stdlib.h: Declare the new functions.
9288         * sysdeps/posix/tempname.c: Add new parameter which is added to
9289         the flags for open.  Remove __GT_BIGFILE handling.
9290         * stdio-common/tempname.c: Likewise.
9291         * include/stdio.h: Adjust __gen_tempname prototype.
9292         Renumber __GT_* constants.
9293         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9294         * misc/mkdtemp.c: Likewise.
9295         * misc/mkstemp.c: Likewise.
9296         * misc/mkstemp64.c: Likewise.
9297         * misc/mktemp.c: Likewise.
9298         * stdio-common/tempnam.c: Likewise.
9299         * stdio-common/tmpfile.c: Likewise.
9300         * stdio-common/tmpfile64.c: Likewise.
9301         * stdio-common/tmpnam.c: Likewise.
9302         * stdio-common/tmpnam_r.c: Likewise.
9303
9304 2007-08-10  Roland McGrath  <roland@frob.com>
9305
9306         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9307         New macros.
9308         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9309         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9310
9311 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9312
9313         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9314         possible.
9315         * nss/nss_files/files-alias.c (internal_setent): Likewise.
9316         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9317         * nss/nss_files/files-have_o_cloexec.c: New file.
9318
9319         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9320         available.
9321
9322 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
9323
9324         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9325         ___new_wcstold_l): New weak aliases.
9326         (strtold_l, wcstold_l): Use them as second argument for
9327         long_double_symbol.
9328
9329 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
9330
9331         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9332         register in test for error.
9333
9334         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9335         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9336
9337         * po/sv.po: Update from translation team.
9338
9339 2007-08-06  Roland McGrath  <roland@redhat.com>
9340
9341         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9342         Remove __strto*_l inlines.
9343         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9344         * stdlib/strtod.c: Add libc_hidden_def.
9345         * stdlib/strtod_l.c: Likewise.
9346         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9347         for __new_strtold and __new_wcstold.
9348         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9349         __STRTOF, STRTOF.
9350         * stdlib/strtol.c: Add libc_hidden_def.
9351         * stdlib/strtol_l.c: Likewise.
9352         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9353         strtoq.
9354
9355         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9356
9357         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9358         * scripts/data/localplt-generic.data: ... here.
9359         * elf/Makefile (check-data): Get generic file if no other.
9360         ($(objpfx)check-localplt.out): Make target unconditional.
9361
9362         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9363         Use ElfW(Nhdr).
9364
9365 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
9366
9367         * po/zh_CN.po: Updated translation from translation team.
9368
9369 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
9370
9371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9372         Don't use CGOTSETUP and CGOTRESTORE macros.
9373
9374 2007-08-04  Roland McGrath  <roland@redhat.com>
9375
9376         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9377
9378 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9379
9380         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9381         __extension__ around the whole statement expression.
9382
9383 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9384
9385         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9386         elements during initialization.
9387
9388         * po/pl.po: Updated translation from translation team.
9389         * po/tr.po: Likewise.
9390         * po/nl.po: Likewise.
9391
9392 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9393
9394         * rt/aio.h: Add __nonnull attributes.
9395
9396 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9397
9398         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9399         * stdlib/Makefile (tests): Add tst-strtod5.
9400         (tst-strtod5-ENV): New.
9401         * stdlib/tst-strtod5.c: New file.
9402
9403         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9404         failed.
9405         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9406         on failure.
9407
9408         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9409         allocated.
9410
9411 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9412
9413         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9414         numbers.
9415
9416 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9417
9418         * io/Makefile (aux): Add have_o_cloexec.
9419         * include/fcntl.h: Declare __have_o_cloexec.
9420         * io/have_o_cloexec.c: New file.
9421         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9422         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9423         fcntl call if not necessary.
9424         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9425         of local variable.
9426
9427         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9428         Avoid memset, add explicit initialization.
9429         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9430         to the end and change into zero-sized array.
9431         Move lock member to fill a hole on 64-bit platforms.
9432
9433         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9434         inline functions.
9435         * include/stdlib.h: Add __strto*_internal prototypes here.
9436         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9437         inline functions.
9438         * include/wchar.h: Add __wcsto*_internal prototypes.
9439         * sysdeps/generic/inttypes.h: No need to protect the declaration
9440         of the __strto*_internal and __wcsto*_internal members here.
9441
9442         * rt/mqueue.h: Change const to __const and add nonnull attributes.
9443
9444 2007-08-02  Roland McGrath  <roland@redhat.com>
9445
9446         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9447         $(inst_bindir)/getconf if possible.
9448
9449         * posix/Makefile ($(objpfx)getconf.speclist): New target.
9450         (generated): Add it.
9451         ($(inst_libexecdir)/getconf): Use it.
9452
9453 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
9454
9455         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9456         /proc is faster and sufficient.  /sys is still needed for
9457         __get_nprocs_conf.
9458
9459 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
9460
9461         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9462         syscall as __fallocate64.
9463         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9464         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9465
9466 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
9467
9468         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9469         value.
9470
9471         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9472         if off_t is different rank from size_t.
9473
9474         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9475         uw_frame_state_for): Avoid type punning warnings.
9476         * sysdeps/generic/unwind-dw2-fde-glibc.c
9477         (_Unwind_IteratePhdrCallback): Likewise.
9478         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9479         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9480         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9481         pointers.
9482
9483 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
9484
9485         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9486         total processors using sysfs.
9487         (__get_nprocs): Use sysfs to determine which processors are online.
9488
9489 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
9490
9491         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9492         syscall arguments count.
9493
9494         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9495
9496 2007-07-30  Roland McGrath  <roland@redhat.com>
9497
9498         * manual/libc.texinfo: Update copyrights, formatting magic, and
9499         @dircategory.  From Karl Berry <karl@freefriends.org>.
9500
9501 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
9502
9503         [BZ #4860]
9504         * io/Makefile (headers): Add bits/fcntl2.h.
9505
9506         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9507         using gcc builtin.
9508         (__CPU_EQUAL_S): Likewise.
9509
9510         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9511         (tests): Add tst-cpuset.
9512         * posix/sched_cpualloc.c: New file.
9513         * posix/sched_cpufree.c: New file.
9514         * posix/tst-cpuset.c: New file.
9515         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9516         GLIBC_2.7.
9517         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9518         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9519         macros.  Define CPU_*_S macros.
9520
9521 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9522
9523         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9524         entry.
9525
9526         [BZ #4858]
9527         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9528         #.0g and value rounded to 1.0.
9529         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9530
9531 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
9532
9533         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9534         for int_frac_digits and frac_digits.
9535
9536         * login/logout.c (logout): Avoid aliasing violation.
9537         * login/logwtmp.c (logwtmp): Likewise.
9538
9539         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9540
9541         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9542         to avoid warning.
9543         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9544         warning.
9545         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9546         warning.
9547         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9548         to avoid warnings.
9549
9550         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9551         void **.
9552         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9553
9554         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9555         char * to avoid warning.
9556         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9557
9558         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9559
9560         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9561         allocate_arrays): Cast second argument to charmap_find_symbol
9562         to char * to avoid warnings.
9563
9564         * locale/programs/repertoire.c (repertoire_new_char): Change
9565         from_nr, to_nr and cnt to unsigned long, adjust printf format
9566         string.
9567
9568         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9569         Cast second argument to new_element to char * to avoid warnings.
9570
9571         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9572
9573         * intl/gettextP.h (struct loaded_domain): Change plural to const
9574         struct expression *.
9575         * intl/plural-eval.c (plural_eval): Change first argument to
9576         const struct expression *.
9577         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9578         argument to const struct expression **.
9579         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9580         prototypes.
9581         * intl/loadmsgcat (_nl_unload_domain): Cast away const
9582         in call to __gettext_free_exp.
9583
9584         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9585         unitialized wstring/wpattern var warnings.
9586
9587         * posix/runtests.c (struct a_test): Make data field const char *.
9588
9589         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9590         vars if not LDBL_MANT_DIG >= 106.
9591
9592         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9593
9594         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9595         __find_specmb to avoid warning.
9596
9597         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9598
9599         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9600         to avoid warnings.
9601
9602         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9603         initializer.
9604
9605         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9606         tv var when it will be actually used.
9607
9608         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9609         to avoid warnings.
9610
9611         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9612         char array resp. pointer.
9613         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9614         char array.
9615         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9616         to const unsigned char **.
9617         (ucs4_to_cns11643): Change second argument to unsigned char *.
9618         * iconvdata/euc-tw.c (BODY): Change endp type to
9619         const unsigned char *.
9620         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9621         to unsigned char *.
9622         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9623         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9624         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9625         types to unsigned char pointers/arrays instead of char.
9626         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9627         to unsigned char *.
9628         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9629         * iconvdata/jis0212.h: Include assert.h.
9630         (ucs4_to_jisx0212): Change second argument to unsigned char *.
9631         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9632         of trying to handle that.
9633         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9634         shut up a warning.
9635         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
9636         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
9637         two dimensional const unsigned char arrays.
9638         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
9639         Initialize endp to inptr to shut up a warning.
9640
9641 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9642
9643         [BZ #4772]
9644         * time/strptime_l.c (__strptime_internal): Silently ignore
9645         strftime modifiers and field width in recursive calls.
9646
9647         * include/time.h (enum ptime_locale_status): Remove.
9648         (__strptime_internal): Remove decided and era_cnt arguments,
9649         add statep argument.
9650         * time/strptime_l.c (__strptime_internal): Remove decided
9651         and era_cnt arguments, add statep argument.  Don't recompute
9652         any fields in recursive calls, only update caller's tm
9653         and state, if recursive call fails, don't change tm nor
9654         any state.
9655         (get_alt_number): Adjust.
9656         (recursive): Adjust caller.
9657         (strptime): Likewise.
9658         * time/strptime.c (strptime): Likewise.
9659
9660 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
9661
9662         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
9663         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
9664         if from and to charsets are the same.
9665         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
9666         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
9667         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
9668
9669 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9670
9671         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
9672         Don't define wint_t when __need_mbstate_t unless it
9673         is necessary.
9674         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
9675         in the typedef if possible.
9676         * wctype/wctype.h (wint_t): Define by including
9677         wchar.h with __need_wint_t instead of including stddef.h
9678         with __need_wint_t and as fallback definining it ourselves.
9679         * iconv/gconv.h (__need_wint_t): Define before including
9680         wchar.h.
9681         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
9682         or _GLIBCPP_USE_WCHAR_T.
9683         (__need_wchar_t): Don't define
9684         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9685         (__need_wint_t): Don't define before including stddef.h,
9686         define before including wchar.h only if _LIBC or
9687         _GLIBCPP_USE_WCHAR_T.
9688         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
9689         * sysdeps/mach/hurd/_G_config.h: Likewise.
9690         * sysdeps/generic/_G_config.h: Likewise.
9691         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
9692         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
9693         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
9694         if _LIBC or _GLIBCPP_USE_WCHAR_T.
9695
9696 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9697
9698         * sysdeps/posix/posix_fallocate64.c: Undefine
9699         __posix_fallocate64_l64 before alias handling.
9700         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
9701         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
9702         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
9703         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
9704
9705         * io/tst-posix_fallocate.c: Include <fcntl.h>.
9706
9707 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
9708
9709         * locale/programs/ld-collate.c (atwc): New variable.
9710         (add_to_tablewc): New toplevel function, moved from collate_output.
9711         (collate_output): Remove add_to_tablewc nested function.
9712
9713         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
9714         (name_insert): New function.
9715         (write_output): Remove hash_table and hash_size vars and name_insert
9716         nested function.
9717
9718 2007-07-24  Roland McGrath  <roland@redhat.com>
9719
9720         * Makerules (install-others-programs-nosubdir): New target.
9721         (install-no-libc.a-nosubdir): Depend on it.
9722
9723         * iconv/Makefile (install-others-programs): Set this instead of
9724         install-others.
9725         * login/Makefile (install-others-programs): Likewise.
9726         * posix/Makefile (install-others-programs): Likewise.
9727
9728         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
9729         dependencies.
9730
9731 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
9732
9733         * io/Makefile (tests): Add tst-posix_fallocate.
9734         * io/tst-posix_fallocate.c: New file.
9735
9736         * sysdeps/unix/sysv/linux/kernel-features.h: Define
9737         __ASSUME_FALLOCATE.
9738
9739 2007-07-22  Roland McGrath  <roland@frob.com>
9740
9741         * hurd/getdport.c: Add missing copyright year update.
9742
9743         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
9744         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
9745
9746 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
9747
9748         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
9749
9750         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
9751         O_CLOEXEC is needed.
9752         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
9753         Avoid additional fcntl to set O_CLOEXEC if not needed.
9754         * nis/nss_compat/compat-initgroups.c: Likewise.
9755         * nis/nss_compat/compat-pwd.c: Likewise.
9756         * nis/nss_compat/compat-spwd.c: Likewise.
9757
9758 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9759
9760         [BZ #3665]
9761         * manual/errno.texi: Change ECANCELED value to 119.
9762
9763         [BZ #4610]
9764         * mach/lock-intern.h: Include <sys/cdefs.h>.
9765
9766         [BZ #4178]
9767         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
9768         reading A.
9769
9770         [BZ #4126]
9771         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
9772         to __sigsuspend.
9773
9774         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
9775
9776 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
9777
9778         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
9779         `__ASSEMBLER__'.
9780         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9781
9782 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
9783
9784         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
9785         descriptor received from nscd.
9786
9787         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
9788
9789         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
9790         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9791         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9792         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9793         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9794         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9795
9796 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
9797
9798         [BZ #4816]
9799         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
9800
9801         [BZ #4813]
9802         * login/forkpty.c (forkpty): Close master and slave fds on
9803         fork failure.  Patch by
9804         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
9805
9806 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
9807
9808         * include/features.h (__USE_ISOC95): New define.
9809         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
9810         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
9811         for -std=iso9899:199409.
9812         * CONFORMANCE: Remove comments about unsupported AMD1.
9813
9814 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
9815
9816         * sysdeps/ia64/sched_cpucount.c: New file.
9817         * sysdeps/powerpc/sched_cpucount.c: New file.
9818
9819         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
9820         __BEGIN_DECLS/__END_DECLS around the prototype.
9821         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
9822         pointer to const cpu_set_t.
9823
9824         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
9825         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
9826         __need_size_t and include stddef.h.
9827         * sysvipc/sys/msg.h: Likewise.
9828         * posix/sched.h: Likewise.
9829         * hurd/hurd/signal.h (__need_size_t): Define.
9830
9831         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
9832         neither does signal.h in pedantic ISO C namespaces.  stdio.h
9833         no longer defines wint_t or wchar_t.
9834
9835         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
9836         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
9837         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
9838         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
9839         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
9840         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
9841         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
9842         * debug/printf_chk.c (__printf_chk): Likewise.
9843         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
9844         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
9845
9846         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
9847         Define.
9848
9849         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
9850         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
9851
9852 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
9853
9854         [BZ #4792]
9855         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
9856         * malloc/malloc.h (realloc): Likewise.
9857
9858         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
9859         if one of proc_file_chain streams has that fileno.
9860         * stdio-common/Makefile (tests): Add tst-popen2.
9861         * stdio-common/tst-popen2.c: New test.
9862
9863 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
9864
9865         * elf/ldconfig.c: Allow GPLv2 or any later version.
9866         * elf/readlib.c: Likewise.
9867         * elf/chroot_canon.c: Likewise.
9868         * elf/cache.c: Likewise.
9869         * nscd/mem.c: Likewise.
9870         * nscd/getpwuid_r.c: Likewise.
9871         * nscd/grpcache.c: Likewise.
9872         * nscd/aicache.c: Likewise.
9873         * nscd/getsrvbynm_r.c: Likewise.
9874         * nscd/nscd.c: Likewise.
9875         * nscd/servicescache.c: Likewise.
9876         * nscd/getsrvbypt_r.c: Likewise.
9877         * nscd/initgrcache.c: Likewise.
9878         * nscd/gethstbyad_r.c: Likewise.
9879         * nscd/gethstbynm2_r.c: Likewise.
9880         * nscd/getgrnam_r.c: Likewise.
9881         * nscd/nscd_setup_thread.c: Likewise.
9882         * nscd/getpwnam_r.c: Likewise.
9883         * nscd/gai.c: Likewise.
9884         * nscd/connections.c: Likewise.
9885         * nscd/dbg_log.c: Likewise.
9886         * nscd/cache.c: Likewise.
9887         * nscd/hstcache.c: Likewise.
9888         * nscd/nscd_conf.c: Likewise.
9889         * nscd/getgrgid_r.c: Likewise.
9890         * nscd/pwdcache.c: Likewise.
9891         * catgets/gencat.c: Likewise.
9892         * locale/programs/linereader.h: Likewise.
9893         * locale/programs/locarchive.c: Likewise.
9894         * locale/programs/ld-paper.c: Likewise.
9895         * locale/programs/locfile-kw.h: Likewise.
9896         * locale/programs/ld-address.c: Likewise.
9897         * locale/programs/xmalloc.c: Likewise.
9898         * locale/programs/ld-time.c: Likewise.
9899         * locale/programs/localedef.c: Likewise.
9900         * locale/programs/simple-hash.c: Likewise.
9901         * locale/programs/xstrdup.c: Likewise.
9902         * locale/programs/ld-numeric.c: Likewise.
9903         * locale/programs/locfile-kw.gperf: Likewise.
9904         * locale/programs/ld-collate.c: Likewise.
9905         * locale/programs/charmap-kw.gperf: Likewise.
9906         * locale/programs/charmap.h: Likewise.
9907         * locale/programs/charmap-kw.h: Likewise.
9908         * locale/programs/config.h: Likewise.
9909         * locale/programs/locfile.c: Likewise.
9910         * locale/programs/ld-ctype.c: Likewise.
9911         * locale/programs/charmap.c: Likewise.
9912         * locale/programs/ld-messages.c: Likewise.
9913         * locale/programs/repertoire.h: Likewise.
9914         * locale/programs/locale.c: Likewise.
9915         * locale/programs/ld-name.c: Likewise.
9916         * locale/programs/linereader.c: Likewise.
9917         * locale/programs/locfile.h: Likewise.
9918         * locale/programs/3level.h: Likewise.
9919         * locale/programs/ld-monetary.c: Likewise.
9920         * locale/programs/ld-measurement.c: Likewise.
9921         * locale/programs/charmap-dir.c: Likewise.
9922         * locale/programs/ld-identification.c: Likewise.
9923         * locale/programs/localedef.h: Likewise.
9924         * locale/programs/charmap-dir.h: Likewise.
9925         * locale/programs/repertoire.c: Likewise.
9926         * locale/programs/simple-hash.h: Likewise.
9927         * locale/programs/ld-telephone.c: Likewise.
9928         * locale/programs/locale-spec.c: Likewise.
9929         * locale/programs/locfile-token.h: Likewise.
9930         * posix/getconf.c: Likewise.
9931         * iconv/dummy-repertoire.c: Likewise.
9932         * iconv/iconv_charmap.c: Likewise.
9933         * iconv/iconvconfig.c: Likewise.
9934         * iconv/iconv_prog.c: Likewise.
9935         * malloc/memusagestat.c: Likewise.
9936         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
9937
9938 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9939
9940         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
9941         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
9942         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
9943         check for the first argument.
9944
9945 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
9946
9947         [BZ #4775]
9948         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
9949         (__tgmath_real_type): Fix if expr is const int or other const
9950         qualified integral type.
9951         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
9952         expressions and handle const qualified arguments.
9953         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
9954         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9955         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
9956         statement expressions.
9957         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
9958         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
9959         (__TGMATH_UNARY_IMAG): Define.
9960         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
9961         * math/Makefile (tests): Add test-tgmath2.
9962         (CFLAGS-test-tgmath2.c): Add.
9963         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
9964         count_cfloat, count_cldouble): New variables.
9965         (NCCALLS): Define.
9966         (main): Check number of complex calls as well.
9967         (F(compile_test)): Add complex tests and tests with const qualified
9968         arguments.
9969         (y, z, ccount): Define.
9970         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
9971         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
9972         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
9973         F(cproj)): New functions.
9974         * math/test-tgmath2.c: New test.
9975
9976 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
9977
9978         [BZ #4776]
9979         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
9980         RPATH etc. as "/" rather than "", don't segfault on empty paths,
9981         instead output ".".
9982         * dlfcn/Makefile (distribute): Add glreflib3.c.
9983         (module-names): Add glreflib3.
9984         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
9985         glreflib1.so.
9986         (LDFLAGS_glreflib3.so): New.
9987         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
9988         glreflib1.so.
9989         * dlfcn/glreflib3.c: New file.
9990
9991         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
9992         returned -1, return NULL.
9993         * intl/explodename.c (_nl_explode_name): Return -1 if
9994         _nl_normalize_codeset failed.
9995
9996 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
9997
9998         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
9999         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
10000         and avoid branch misspredicts for > 31 bytes memset case.
10001         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10002         Remove toc ref to __cache_line_size.
10003
10004         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10005         to get ISA-V2.0 branch hints.
10006         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10007         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10008         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10009         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10010         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10011         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10012         Remove toc ref to __cache_line_size.
10013
10014         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10015         Include math_ldbl_opt.h.
10016
10017 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
10018
10019         [BZ #4773]
10020         * time/strptime_l.c (__strptime_internal): Implement greedy
10021         matching of weekday and month names.
10022
10023 2007-07-09  Roland McGrath  <roland@redhat.com>
10024
10025         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10026         (ELF_NOTE_ABI): Use it.
10027         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10028
10029 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
10030
10031         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10032         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10033
10034 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
10035
10036         [BZ #4745]
10037         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10038         in loop to look for conversion specifier to avoid testing of
10039         wrong errno value.
10040         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10041         * stdio-common/bug18.c: New file.
10042         * stdio-common/bug18a.c: New file.
10043         * stdio-common/bug19.c: New file.
10044         * stdio-common/bug19a.c: New file.
10045
10046 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
10047
10048         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10049         running awk script.
10050
10051 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
10052
10053         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10054         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
10055         Return NULL if mmap failed instead of asserting it does not.
10056         (calloc): Check for integer overflow.
10057
10058         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10059         than LONG_MAX / 10.
10060
10061 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
10062
10063         [BZ #4702]
10064         * nis/nss-default.c: Include errno.h.
10065         (init): Preserve errno.
10066
10067 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
10068
10069         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10070
10071 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
10072
10073         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10074
10075 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10076
10077         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10078
10079 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10080
10081         * sysdeps/s390/dl-procinfo.c: New file.
10082         * sysdeps/s390/dl-procinfo.h: New file.
10083         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10084
10085 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
10086
10087         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10088         in PT_NOTE segments with multiple notes.
10089         * elf/readelflib.c (process_elf_file): Likewise.
10090
10091 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
10092
10093         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10094         ISO C compliant.
10095
10096 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10097
10098         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10099
10100 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
10101
10102         * include/link.h: Don't include rtld-lowlevel.h.
10103         (struct link_map): Remove l_scope_lock.
10104         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10105         (_dl_scope_free_list): New field (variable) in _rtld_global.
10106         (DL_LOOKUP_SCOPE_LOCK): Remove.
10107         (_dl_scope_free): New prototype.
10108         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10109         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10110         (_dl_profile_fixup): Likewise.
10111         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
10112         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10113         THREAD_GSCOPE_RESET_FLAG around it.
10114         * elf/dl-close.c (_dl_close_worker): Don't use
10115         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
10116         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
10117         scopes were queued or if l_scope_mem has been abandoned.
10118         * elf/dl-open.c (_dl_scope_free): New function.
10119         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
10120         * elf/dl-support.c (_dl_scope_free_list): New variable.
10121         * elf/dl-lookup.c (add_dependency): Remove flags argument.
10122         Remove DL_LOOKUP_SCOPE_LOCK handling.
10123         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
10124         handling.
10125         * elf/dl-object.c (_dl_new_object): Don't use
10126         __rtld_mrlock_initialize.
10127
10128 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10129
10130         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10131         to fill in holes
10132         (rtld_global_ro): Likewise.
10133
10134 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10135
10136         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10137         Move PT_LOAD checking to...
10138         (_dl_addr_inside_object): ... here, new function.
10139         * elf/dl-sym.c (do_sym): If not l_contiguous,
10140         call _dl_addr_inside_object.
10141         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10142         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10143         * elf/dl-open.c (dl_open_worker): Likewise.
10144         (_dl_addr_inside_object): New function if IS_IN_rtld.
10145         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10146         holes are present or are PROT_NONE protected.
10147         * include/link.h (struct link_map): Add l_contiguous field.
10148         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10149
10150 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10151             Tomas Janousek  <tjanouse@redhat.com>
10152             Ulrich Drepper  <drepper@redhat.com>
10153
10154         [BZ #4647]
10155         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
10156         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10157         socket.
10158         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
10159         unused member a bitmap.
10160         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10161         servers are configured.
10162
10163 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10164
10165         * elf/rtld.c (dl_main): Don't call init_tls more than once.
10166
10167 2007-06-17  Andreas Schwab  <schwab@suse.de>
10168
10169         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10170
10171 2007-06-16  Andreas Jaeger  <aj@suse.de>
10172
10173         [BZ #4125]
10174         * sysdeps/unix/sysv/linux/sys/ptrace.h
10175         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10176         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10177         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10178         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10179         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10180         Define.
10181         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10182         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10183         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10184         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10185
10186 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
10187
10188         [BZ #4599]
10189         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10190         determining whether there are IPv4/IPv6 addresses, ignore loopback
10191         addresses.
10192
10193 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10194
10195         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10196         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10197         as the return type.  Change type of "r" variable to CMPtype.
10198         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10199         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10200         * soft-fp/gedf2.c (__gedf2): Likewise.
10201         * soft-fp/gesf2.c (__gesf2): Likewise.
10202         * soft-fp/getf2.c (__getf2): Likewise.
10203         * soft-fp/ledf2.c (__ledf2): Likewise.
10204         * soft-fp/lesf2.c (__lesf2): Likewise.
10205         * soft-fp/letf2.c (__letf2): Likewise.
10206         * soft-fp/unorddf2 (__unorddf2): Likewise.
10207         * soft-fp/unordsf2 (__unordsf2): Likewise.
10208         * soft-fp/unordtf2 (__unordtf2): Likewise.
10209
10210 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
10211
10212         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10213         make sure gcc doesn't mess around with this.
10214
10215 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10216
10217         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10218
10219 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
10220
10221         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10222         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10223         at most once per _dl_close_worker.
10224
10225 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10226
10227         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10228         __sched_cpucount as const.
10229         * posix/sched_cpucount.c: Adjust.
10230
10231         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10232         instruction for counting bits.
10233         * sysdeps/x86_64/sched_cpucount.c: New file.
10234
10235 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10236
10237         * configure.in: Avoid variable named BASH.
10238         * config.make.in: Likewise.
10239         Patch in part by Mike Frysinger.
10240
10241 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10242
10243         [BZ #4586]
10244         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10245         pseudo-zeros as zero.
10246         * sysdeps/x86_64/ldbl2mpn.c: New file.
10247         * sysdeps/ia64/ldbl2mpn.c: New file.
10248
10249 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10250
10251         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10252         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10253         Remove unreachable code at the end.
10254
10255 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10256
10257         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10258         ldbl-128ibm in comment.
10259         (fpclassifyl): Correct classification of denormals.
10260         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10261         return value for MIN denormal. Rewrite using long double math too
10262         correctly handle denormals and canonicalize the results.
10263
10264 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10265
10266         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10267         (__mpn_construct_long_double): Fix conversion where result ought
10268         to be smaller than __LDBL_MIN__, or the low double should be
10269         denormal.  Fix decision where to negate low double - honor round
10270         to even rules.
10271         * stdio-common/tst-sprintf2.c: Include string.h.
10272         (COMPARE_LDBL): Define.
10273         (TEST): Also test whether a string hexadecimal float representation
10274         can be parsed back to the number.
10275         (main): Add a couple of further tests.
10276
10277 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10278
10279         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10280         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10281         is non-zero, but smaller than 2 * __DBL_MIN__.
10282         * stdio-common/tst-sprintf2.c: New test.
10283         * stdio-common/Makefile (tests): Add tst-sprintf2.
10284
10285         * math/test-misc.c (main): Don't run last batch of tests with
10286         IBM long double format.
10287
10288 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10289
10290         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10291         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10292         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10293         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10294         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10295         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10296         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10297         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10298         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10299         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10302         New file.
10303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10304         New file.
10305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10306         New file.
10307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10308         New file.
10309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10310         New file.
10311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10313         New file.
10314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10315         New file.
10316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10317         New file.
10318         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10319         New file.
10320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10321         New file.
10322
10323 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10324
10325         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10326         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10327         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10328         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10329         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10330         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10331         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10332         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10333
10334 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
10335
10336         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10337         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10338         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10339         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10340         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10341         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10342         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10343         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10344
10345 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10346
10347         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10348         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10349         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10350         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10351
10352 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10353
10354         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10355         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10356
10357 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10358
10359         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10360         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10361         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10362         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10363
10364 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
10365
10366         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10367         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10368
10369 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10370
10371         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10372         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10373
10374         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10375         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10376         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10377         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10378
10379 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10380
10381         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10382         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10383         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10384         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10385
10386 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10387
10388         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10389         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10390         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10391         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10392         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10393         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10394
10395 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10396
10397         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10398         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10399         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10400         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10401
10402 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10403
10404         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10405         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10406         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10407         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10408         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10409         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10410         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10411         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10412         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10413         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10414         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10415         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10416         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10417         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10418         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10419         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10420
10421 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10422
10423         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10424         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10425
10426 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10427
10428         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10429         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10430
10431 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10432
10433         * sysdeps/powerpc/powerpc32/970/Implies: New file.
10434         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10435         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10436         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10437         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10438         * sysdeps/powerpc/powerpc64/970/Implies: New file.
10439         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10440         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10441         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10442         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10443
10444 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10445
10446         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10447
10448 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
10449
10450         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10451         branch miss-predicts. Ensure that cache line crossing does not impact
10452         dispatch grouping.
10453
10454 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
10455
10456         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10457         "../../powerpc32/power4/memcopy.h".
10458         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10459         "../../powerpc32/power4/wordcopy.c".
10460
10461 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10462
10463         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10464         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10465         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10466         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10467         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10468         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10469
10470 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
10471
10472         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10473
10474 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10475
10476         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10477         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10478         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10479         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10480         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10481         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10482         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10483         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10484
10485 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
10486
10487         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10488
10489 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10490
10491         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10492         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10493         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10494         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10495         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10496         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10497         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10498
10499 2007-05-29  Roland McGrath  <roland@redhat.com>
10500
10501         * po/Makefile (po-sed-cmd): New variable.
10502         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10503
10504 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
10505
10506         * crypt/md5-crypt.c: Fix comment.
10507
10508         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10509         of crashing.  When this is the case or if the reply is malformed,
10510         don't try to close the new file descriptor since it does not
10511         exist.
10512         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10513
10514 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
10515
10516         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10517         if __NR_utimensat is not defined.
10518
10519 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
10520
10521         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10522
10523 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
10524
10525         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10526         (open): Fix comment typos.  Don't call __open_2 if flags
10527         is a compile time constant without O_CREAT.
10528         (__open64_2): Add nonnull attribute.
10529         (open64): Fix comment typos.  Don't call __open64_2 if flags
10530         is a compile time constant without O_CREAT.
10531         (__openat_2): Add nonnull attribute, fix nonnull attribute
10532         on redirect.
10533         (openat): Fix comment typos.  Don't call __openat_2 if flags
10534         is a compile time constant without O_CREAT.
10535         (__openat64_2): Add nonnull attribute, fix nonnull attribute
10536         on redirect.
10537         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
10538         is a compile time constant without O_CREAT.
10539
10540 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
10541
10542         * Makerules (sysd-rules): Define PTW for ptw-* files.
10543         * Versions: Define GLIBC_2.7 for libc.
10544         * include/stdio.h: Declare __fortify_fail.
10545         * debug/fortify_fail.c: New file.
10546         * debug/Makefile (routines): Add fortify_fail.
10547         * debug/chk_fail.c: Use __fortify_fail.
10548         * debug/stack_chk_fail.c: Likewise.
10549         * io/Versions: Export __open_2, __open64_2, __openat_2, and
10550         __openat64_2 for GLIBC_2.7.
10551         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10552         * io/open.c: Define *_2 variant of function which checks for O_CREAT
10553         and fails if necessary.
10554         * io/open64.c: Likewise.
10555         * io/openat.c: Likewise.
10556         * io/openat64.c: Likewise.
10557         * sysdeps/unix/sysv/linux/open64.c: Likewise.
10558         * sysdeps/unix/sysv/linux/openat.c: Likewise.
10559         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10560         * io/bits/fcntl2.h: New file.
10561         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10562         __openat64_2.
10563         * include/bits/fcntl2.h: New file.
10564         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10565         Add open_2.
10566         * sysdeps/unix/sysv/linux/open_2.c: New file.
10567
10568 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
10569
10570         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10571         as second parameter to handle_intel.
10572
10573         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10574         the entry.
10575
10576         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10577         handling to ...
10578         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
10579         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10580         cacheinfo.
10581         * sysdeps/x86_64/memcpy.S: Complete rewrite.
10582         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10583         Patch by Evandro Menezes <evandro.menezes@amd.com>.
10584
10585         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10586
10587 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
10588
10589         [BZ #4525]
10590         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10591         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10592         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10593
10594         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10595
10596         [BZ #4514]
10597         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10598         reinitialize workend at the start of each do_positional format spec
10599         loop, free workstart before do_positional loops.
10600         (printf_unknown): Fix size of work_buffer.
10601         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10602
10603         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10604         (public_sET_STATe): If ms->version < 3, put all chunks into
10605         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10606         chunks.
10607
10608         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10609         * malloc/hooks.c: Likewise.
10610         * malloc/arena.c: Likewise.
10611         * malloc/malloc.c (do_check_malloc_state): Don't assert
10612         n_mmaps is not greater than n_mmaps_max.  This removes the need
10613         for the previous change.
10614
10615         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10616         2007-05-07 commit.
10617
10618 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
10619
10620         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10621         Define for kernel >= 2.6.22.
10622
10623 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
10624
10625         * elf/dl-close.c (_dl_close_worker): When removing object from
10626         global scope, wait for all lookups to finish afterwards.
10627         * elf/dl-open.c (add_to_global): When global scope array must
10628         grow, allocate a new one and free old array only after all
10629         lookups finish.
10630         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10631         (_dl_lookup_symbol_x): Likewise.
10632         * elf/dl-support.c: Define _dl_wait_lookup_done.
10633         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10634         _dl_wait_lookup_done.
10635
10636         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
10637         not overlapping with arena.
10638
10639         * malloc/mcheck.c (reallochook): If size==0, free the block.
10640
10641         * rt/tst-shm.c: Use fstat64 instead of fstat.
10642
10643         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
10644         __NR_sync_file_range is not defined.
10645
10646 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
10647
10648         Dummy files to prevent stub versions from being used.
10649         * sysdeps/x86_64/fpu/k_cosl.c: New file.
10650         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
10651         * sysdeps/x86_64/fpu/k_sinl.c: New file.
10652         * sysdeps/x86_64/fpu/k_tanl.c: New file.
10653
10654         * version.h (VERSION): Set to 2.6.90.
10655
10656 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
10657
10658         * version.h (VERSION): Define to 2.6.
10659         * include/features.h (__GLIBC_MINOR__): Define to 6.
10660
10661         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
10662
10663         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
10664         sizes.
10665
10666 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
10667
10668         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
10669         number of mmaps.  n_mmaps_max is the target.
10670         * malloc/hooks.c: Likewise.
10671         * malloc/arena.c: Likewise.
10672
10673 2007-05-12  Andreas Jaeger  <aj@suse.de>
10674
10675         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
10676         getpid.
10677
10678 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
10679
10680         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
10681         adding new variables.
10682
10683         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
10684         optimize.  Completely extend global scope array before making the
10685         new entries visible.
10686
10687 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
10688
10689         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
10690         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
10691         tst-getcpu.
10692
10693         * include/link.h: Move l_version and l_nversion members around to
10694         fill gaps.
10695
10696         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
10697
10698         * sysdeps/unix/sysv/linux/sched_setaffinity.c
10699         (__sched_setaffinity_new): If syscall was successful and
10700         RESET_VGETCPU_CACHE is defined, use it before returning.
10701         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
10702
10703         * io/sys/stat.h: Make sure struct timespec is defined for
10704         __USE_ATFILE.
10705
10706         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
10707         UTIME_OMIT.
10708         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
10709         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10710         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
10711         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
10712         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10713         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10714         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
10715         * io/sys/stat.h: Declare utimensat, futimens.
10716         * io/utimensat.c: New file.
10717         * io/futimens.c: New file.
10718         * sysdeps/unix/sysv/linux/utimensat.c: New file.
10719         * sysdeps/unix/sysv/linux/futimens.c: New file.
10720         * io/Makefile (routines): Add utimensat, futimens.
10721         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
10722         * sysdeps/unix/sysv/linux/lutimes.c: New file.
10723         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
10724         available.
10725
10726         * include/sys/cdefs.h: Redefine __nonnull so that test for
10727         incorrect parameters in the libc code itself are not omitted.
10728
10729 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
10730
10731         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
10732         exception in addition to inexact when asked to raise only FE_INEXACT.
10733
10734         [BZ #3427]
10735         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
10736         in *envp.
10737
10738 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10739
10740         [BZ #4403]
10741         * string/strfry.c (strfry): Make result more random.
10742
10743 2007-05-07  Richard Henderson  <rth@redhat.com>
10744
10745         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
10746         if __NO_LONG_DOUBLE_MATH.
10747         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
10748         available in the compiler, add .arch directive to the assembly.
10749
10750 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
10751
10752         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
10753         compat_symbol to GLIBC_2_1.
10754         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
10755         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
10756         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
10757         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
10758         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
10759         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
10760         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
10761         libc, not libm.
10762         (__isnanl): New compat_symbol.
10763
10764 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
10765             Jakub Jelinek  <jakub@redhat.com>
10766
10767         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
10768         (new_heap): Initialize mprotect_size.
10769         (grow_heap): When growing, only mprotect from mprotect_size till
10770         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
10771         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
10772
10773 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
10774             Peter Bergner  <bergner@us.ibm.com>
10775
10776         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
10777         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
10778         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
10779         * sysdeps/powerpc/fpu/fe_mask.c: New file.
10780         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
10781         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
10782         Call __fe_mask_env() if all FP exceptions disabled.
10783         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
10784         from old FPSCR to new fenv to propagate DFP rounding modes.
10785         Call __fe_mask_env() if FP exceptions previously enabled.
10786         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
10787         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
10788         transitioning from all exceptions disabled to any exception enabled
10789         or visa versa.
10790         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
10791         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
10792         when transitioning from all exceptions disabled to any exception
10793         enabled or visa versa.
10794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
10795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
10796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
10797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
10798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
10799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
10800
10801 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10802
10803         [BZ #4465]
10804         * posix/unistd.h: Remove __THROW from fdatasync.
10805
10806 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
10807
10808         [BZ #4465]
10809         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
10810
10811 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
10812
10813         * stdio-common/vfprintf.c (process_string_arg): Optimize
10814         ridiculous precision in wide char code printing multi-byte string.
10815         Reported by Jim Meyering <jim@meyering.net>.
10816
10817         [BZ #4131]
10818         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
10819         boundaries to work around systems with overlapping binary loading.
10820         Based on a patch by Suzuki <suzuki@in.ibm.com>.
10821
10822 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
10823
10824         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
10825         __mbsnrtowcs after last change.
10826
10827         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
10828         (get_ident): Likewise.
10829
10830 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10831
10832         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
10833         with setting the sticky bit.
10834         * math/test-misc.c (main): Add more truncation tests.
10835
10836 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
10837
10838         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
10839         double in the function declaration.
10840         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
10841         double in the function declaration.
10842         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10843         float in the function declaration.
10844         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
10845         float in the function declaration.
10846
10847         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
10848         denormal operands.  Do not generate FP_EX_DENORM exception.
10849         (FP_UNPACK_RAW_EP): Ditto.
10850         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
10851         undefined _FP_UNPACK_RAW_E.
10852         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
10853         undefined _FP_UNPACK_RAW_EP.
10854         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
10855         undefined _FP_PACK_RAW_E.
10856         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
10857         undefined _FP_PACK_RAW_EP.
10858
10859         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
10860         _FP_FRAC_COPY_2.
10861         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
10862         _FP_FRAC_COPY_4.
10863
10864 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
10865             Jakub Jelinek  <jakub@redhat.com>
10866
10867         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
10868         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
10869         this case.
10870         * soft-fp/op-common.h (FP_TRUNC): Ditto.
10871
10872 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
10873
10874         * math/test-misc.c (main): Add tests for rounding long double
10875         values close to smallest double denormalized value to double.
10876
10877 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
10878
10879         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
10880         condition for truncating to 0.  Set sticky bit for such
10881         truncation.
10882
10883 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
10884
10885         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
10886         fixed length array for ignore.
10887
10888 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10889
10890         [BZ #4438]
10891         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
10892         stack for large precisions.
10893         * stdio-common/test-vfprintf.c (main): Add test for large
10894         precision.
10895
10896 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
10897
10898         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
10899         for exponent 0.
10900         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
10901
10902         [BZ #4439]
10903         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
10904         account in the size check.
10905         * resolv/tst-inet_ntop.c: New test.
10906         * resolv/Makefile (tests): Add tst-inet_ntop.
10907
10908 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
10909             Jakub Jelinek  <jakub@redhat.com>
10910
10911         [BZ #4349]
10912         * malloc/malloc.c: Keep separate list for first blocks on the bin
10913         lists with a given size.  This helps skipping over list elements
10914         we know won't fit in two places.
10915         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
10916
10917 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
10918
10919         [BZ #4102]
10920         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
10921         label to Teredo tunnel addresses 2001://32.
10922
10923 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
10924
10925         * locale/programs/ld-collate.c (collate_read): Allow order_start
10926         after copy.
10927
10928         * locale/programs/ld-collate.c (collate_read): Fix printing of
10929         error message.
10930
10931         [BZ #3213]
10932         * locale/C-translit.h.in: Add entry for U2044.
10933
10934         [BZ #4342]
10935         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
10936         hexa-decimal floats without exponent.
10937         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
10938
10939 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10940
10941         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
10942         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
10943         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
10944         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
10945         GLIBC_2.6.
10946         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
10947         Add sched_getcpu.
10948
10949 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10950
10951         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
10952         of 0 after the out_fail label.
10953
10954 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
10955
10956         [BZ #4406]
10957         * iconv/gconv_charset.h (strip): Allow ':'.
10958         * iconv/iconv_open.c (iconv_open): Adjust comment.
10959
10960 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
10961
10962         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
10963         version.
10964
10965 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10966
10967         [BZ #4381]
10968         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
10969         alignment of buffer and tmp_buffer.
10970         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
10971         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
10972         alignment of buffer.
10973         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
10974         bigger than INT_MAX.
10975         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
10976         h_errnop arguments.  Fail if buflen is too small.
10977         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
10978
10979 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
10980
10981         [BZ #4405]
10982         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
10983         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
10984
10985 2007-04-22  Roland McGrath  <roland@redhat.com>
10986
10987         * elf/elf.h (NT_PRXFPREG): New macro.
10988
10989 2007-04-19  Andreas Jaeger  <aj@suse.de>
10990
10991         [BZ #3905]
10992         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
10993         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
10994         Added.
10995
10996 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
10997
10998         * include/sys/mman.h: Mark madvise hidden.
10999         * misc/madvise.c: Add libc_hidden_def.
11000
11001 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
11002
11003         * nis/nis_domain_of.c (__nis_domain_of): New function.
11004         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11005         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11006         * nis/nis_call.c (rec_dirsearch): Likewise.
11007         (first_shoot): Likewise.  Remove search_parent_first argument.
11008         (struct nis_server_cache): Rename search_parent_first field
11009         to search_parent.
11010         (nis_server_cache_search, nis_server_cache_add): Rename
11011         search_parent_first argument to search_parent.
11012         (__nisfind_server): Likewise.  If search_parent, call
11013         __nis_domain_of.
11014
11015 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
11016
11017         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11018
11019 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
11020
11021         [BZ #4368]
11022         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11023
11024 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
11025
11026         [BZ #4364]
11027         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11028
11029 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
11030
11031         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11032         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11033         current number of locales in SUPPORTED.
11034         (create_archive): Initialize serial.
11035         (enlarge_archive): Preserve aliases rather than duplicating
11036         their locrecs.
11037
11038 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11039
11040         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11041         after _IO_un_link, not before it.
11042
11043         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11044         special case handling when wcp == wstartp + 1.  Fix a comment typo.
11045         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11046
11047 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
11048
11049         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11050         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11051         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11052         Remove __THROW.
11053         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11054         _IO_file_xsgetn_maybe_mmap): Likewise.
11055         * libio/oldfileops.c (old_do_write): Likewise.
11056         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11057         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11058         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11059         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11060         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11061         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11062         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11063         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11064         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11065         _IO_file_underflow, _IO_file_underflow_mmap,
11066         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11067         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11068         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11069         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11070         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11071         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11072         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11073         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11074         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11075         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11076         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11077         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11078         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11079         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11080         _IO_adjust_column_internal, _IO_default_uflow_internal,
11081         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11082         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11083         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11084         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11085         _IO_file_close_it_internal, _IO_file_underflow_internal,
11086         _IO_file_overflow_internal, _IO_file_attach_internal,
11087         _IO_file_fopen_internal, _IO_file_sync_internal,
11088         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11089         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11090         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11091         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11092         _IO_seekpos_unlocked): Likewise.
11093         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11094         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11095
11096 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
11097
11098         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11099         argument in xmalloc size computation.
11100
11101 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11102
11103         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11104         math_opt_barrier and math_force_eval macros.
11105
11106 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11107
11108         [BZ #3306]
11109         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11110         * sysdeps/i386/fpu/math_private.h: New file.
11111         * sysdeps/x86_64/fpu/math_private.h: New file.
11112         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11113         math_force_eval macros.  Use "+m" constraint on asm rather than
11114         "=m" and "m".
11115         * math/s_nextafter.c (__nextafter): Likewise.
11116         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11117         Likewise.
11118         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11119         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11120         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11121         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11122         math_opt_barrier and math_force_eval macros.
11123         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11124         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11125         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11126         (__nexttoward): Use math_opt_barrier and
11127         math_force_eval macros.  Use "+m" constraint on asm rather than
11128         "=m" and "m".  Only use asm to force double result if
11129         FLT_EVAL_METHOD is 2.
11130         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11131         (__nexttowardf): Use math_opt_barrier and
11132         math_force_eval macros.  Use "+m" constraint on asm rather than
11133         "=m" and "m".  Only use asm to force double result if
11134         FLT_EVAL_METHOD is not 0.
11135         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11136         (__nexttowardf): Use math_opt_barrier and
11137         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11138         x to float using asm.
11139         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11140         (__nldbl_nexttowardf): Use math_opt_barrier and
11141         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11142         x to float using asm.
11143         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11144         (__nexttowardf): Use math_opt_barrier and math_force_eval
11145         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
11146         * math/bug-nextafter.c (zero, inf): New variables.
11147         (main): Add new tests.
11148         * math/bug-nexttoward.c (zero, inf): New variables.
11149         (main): Add new tests.
11150
11151 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11152
11153         [BZ #3427]
11154         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11155         exceptions both in SW and MXCSR.
11156         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11157         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11158         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11159         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11160         in MXCSR if SSE is available.
11161         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11162         and ldsodefs.h.
11163         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11164         Fix comment typo.
11165         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11166         Return 0 rather than 1.
11167         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11168         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
11169         * math/test-fenv.c (feholdexcept_tests): New function.
11170         (main): Call it.
11171
11172 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
11173
11174         [BZ #3427]
11175         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11176         in SW.
11177
11178 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11179
11180         [BZ #4344]
11181         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11182         Reported by David Anderson <davea42@earthlink.net>.
11183
11184 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
11185
11186         * posix/sys/wait.h: Remove unnecessary forward declaration.
11187
11188 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
11189
11190         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11191         with obj->do_servers after first_shoot.
11192
11193 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
11194
11195         * posix/Makefile (routines): Add sched_cpucount.
11196         (tests): Add tst-cpucount.
11197         * posix/sched_cpucount.c: New file.
11198         * posix/tst-cpucount.c: New file.
11199         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11200         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
11201         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11202         * posix/sched.h: Define CPU_COUNT.
11203
11204 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11205
11206         * posix/fnmatch.c (STRUCT): Define.
11207         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11208         * posix/fnmatch_loop.c (struct STRUCT): New type.
11209         (FCT): Add ends argument.  If ends != NULL and normal * is
11210         seen in the pattern, store current pattern and string pointers
11211         and return.  Adjust recursive calls.
11212         (EXT): Adjust FCT callers.
11213         (STRUCT): Undef at the end of the file.
11214         * posix/Makefile (tests): Add tst-fnmatch2.
11215         * posix/tst-fnmatch2.c: New test.
11216
11217 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11218
11219         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11220         and 1 on failure.
11221
11222         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11223         Change last argument to unsigned int.
11224
11225 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11226
11227         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11228
11229 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11230
11231         * config.h.in (HAVE_LIBCAP): Add.
11232         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11233         sys/capabilities.h.
11234         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11235         free_caps.  Cast away const from 4th cap_set_flag argument.
11236
11237 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11238
11239         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11240         GLIBC_2.6.
11241         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11242         Add sync_file_range.
11243         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11244
11245 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11246
11247         * sysdeps/powerpc/bits/atomic.h
11248         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11249         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11250         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11251         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11252         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11253         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11254         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11255         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11256         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11257         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11258         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11259         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11260         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11261         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11262         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11263         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11264         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11265         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11266         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11267         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11268
11269 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11270
11271         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11272         (__cache_line_size): Define the variable here.  Add
11273         attribute_hidden, remove weak_extern.
11274         (__libc_start_main): Set __cache_line_size
11275         unconditionally.
11276         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11277         (__cache_line_size): Define the variable here.  Add
11278         attribute_hidden, remove weak_extern.
11279         (DL_PLATFORM_AUXV): Set __cache_line_size
11280         unconditionally.
11281         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11282         weak_extern, add attribute_hidden.
11283         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11284         defined in ld.so.
11285         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11286         definition.
11287         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11288
11289 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11290
11291         [BZ #4276]
11292         * timezone/africa: Update from tzdata2007d.
11293         * timezone/asia: Likewise.
11294         * timezone/australasia: Likewise.
11295         * timezone/backward: Likewise.
11296         * timezone/europe: Likewise.
11297         * timezone/iso3166.tab: Likewise.
11298         * timezone/leapseconds: Likewise.
11299         * timezone/northamerica: Likewise.
11300         * timezone/southamerica: Likewise.
11301         * timezone/zone.tab: Likewise.
11302
11303         * timezone/private.h: Update from tzcode2007d.
11304         * timezone/zdump.c: Likewise.
11305         * timezone/zic.c: Likewise.
11306
11307 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11308
11309         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11310         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11311         variables.
11312         (nis_server_cache_search, nis_server_cache_add): New functions.
11313         (__nisfind_server): Use them.  Add dbp and flags argument, if
11314         call __nisbind_create.
11315         (__nisbind_create): Add server_used and current_ep arguments,
11316         only call __nis_findfastest if server_used is ~0.
11317         (__do_niscall2, __prepare_niscall): Adjust callers.
11318         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11319         ckey_cache_euid, ckey_cache_lock): New variables.
11320         (get_ckey): New function.
11321         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11322         __pmap_getnisport.  Save __pmap_getnisport result in
11323         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
11324         key.
11325         * nis/nis_lookup.c (nis_lookup): Likewise.
11326         * nis/nis_table.c (nis_list): Likewise.
11327         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11328         prototypes.
11329
11330         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11331         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11332         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11333         _nss_nisplus_getservbyport_r): Likewise.
11334         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11335         _nss_nisplus_getnetbyaddr_r): Likewise.
11336         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11337         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11338         _nss_nisplus_getntohost_r): Likewise.
11339         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11340         _nss_nisplus_getrpcbynumber_r): Likewise.
11341
11342 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11343
11344         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11345         * configure: Rebuilt.
11346
11347         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11348         bit-fields.
11349         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11350
11351 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11352
11353         [BZ #2831]
11354         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11355         bit-fields.
11356
11357 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11358
11359         * nscd/gai.c: Include alloca.h.
11360         (__libc_use_alloca): Define.
11361
11362 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11363
11364         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11365         smaller scopes.
11366         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11367         (DL_DST_REQUIRED): Adjust user.
11368
11369         * include/dlfcn.h (struct link_map): New forward decl.
11370
11371         * inet/getnameinfo.c: Include stddef.h.
11372         (getnameinfo): Use offsetof.
11373
11374         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11375
11376         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11377
11378         * string/strerror_l.c: Include stdlib.h.
11379
11380         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11381         * config.make.in (gnu89-inline-CFLAGS): New variable.
11382         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11383         -std=gnu99.
11384         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11385         * argp/argp.h: Use it.
11386         * bits/mathinline.h: Likewise.
11387         * bits/sigset.h: Likewise.
11388         * bits/string.h: Likewise.
11389         * ctype/ctype.h: Likewise.
11390         * hurd/hurd.h: Likewise.
11391         * hurd/hurd/fd.h: Likewise.
11392         * hurd/hurd/port.h: Likewise.
11393         * hurd/hurd/signal.h: Likewise.
11394         * hurd/hurd/threadvar.h: Likewise.
11395         * hurd/hurd/userlink.h: Likewise.
11396         * io/sys/stat.h: Likewise.
11397         * libio/bits/stdio.h: Likewise.
11398         * libio/bits/stdio2.h: Likewise.
11399         * mach/lock-intern.h: Likewise.
11400         * mach/mach/mig_support.h: Likewise.
11401         * math/bits/cmathcalls.h: Likewise.
11402         * posix/bits/unistd.h: Likewise.
11403         * socket/bits/socket2.h: Likewise.
11404         * stdlib/bits/stdlib.h: Likewise.
11405         * stdlib/stdlib.h: Likewise.
11406         * string/argz.h: Likewise.
11407         * string/bits/string2.h: Likewise.
11408         * string/bits/string3.h: Likewise.
11409         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11410         * sysdeps/generic/inttypes.h: Likewise.
11411         * sysdeps/generic/machine-lock.h: Likewise.
11412         * sysdeps/generic/machine-sp.h: Likewise.
11413         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11414         * sysdeps/i386/i486/bits/string.h: Likewise.
11415         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11416         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11417         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11418         * sysdeps/mach/i386/machine-lock.h: Likewise.
11419         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11420         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11421         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11422         * sysdeps/s390/bits/string.h: Likewise.
11423         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11424         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11425         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11426         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11427         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11428         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11429         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11430         * wcsmbs/bits/wchar2.h: Likewise.
11431         * wcsmbs/wchar.h: Likewise.
11432         * stdlib/gmp.h: Likewise.  Include <features.h> to get
11433         __extern_inline definition.
11434
11435 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
11436
11437         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11438         NULL.
11439
11440         [BZ #3919]
11441         * math/libm-test.inc (log_test): Test -Inf and NaN.
11442         (log10_test, log1p_test, log2_test): Test -Inf.
11443         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11444         FE_INVALID when argument is qNaN.
11445         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11446         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11447         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11448         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11449         andb $1, %ah with testb $1, %ah, don't test for parity, instead
11450         testb $4, %ah and jump if non-zero.
11451         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11452         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11453
11454         [BZ #4101]
11455         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11456         ancestors with the same depths.
11457         Patch by Niels Moeller <nisse@lysator.liu.se>.
11458         (filter_doc): Don't crash if argp is NULL.
11459         * argp/Makefile (tests): Add tst-argp2.
11460         * argp/tst-argp2.c: New test.
11461
11462         [BZ #4130]
11463         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11464         open_not_cancel_2.
11465         (updwtmp_file): Likewise.
11466
11467         [BZ #4181]
11468         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11469         (inet6_opt_append): Don't check extlen is big enough if extbuf
11470         is NULL.
11471         (inet6_opt_finish): Likewise.
11472         * inet/Makefile (tests): Add test-inet6_opt.
11473         * inet/test-inet6_opt.c: New test.
11474
11475         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11476         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11477         NLMSG_ERR.  Instead use a page sized buffer.
11478         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11479         buffer.
11480
11481 2007-03-14  Richard Henderson  <rth@redhat.com>
11482
11483         * sysdeps/alpha/fpu/s_llround.c: New file.
11484         * sysdeps/alpha/fpu/s_llroundf.c: New file.
11485         * sysdeps/alpha/fpu/s_lround.c: New file.
11486         * sysdeps/alpha/fpu/s_lroundf.c: New file.
11487         * sysdeps/alpha/fpu/s_round.c: New file.
11488         * sysdeps/alpha/fpu/s_roundf.c: New file.
11489         * sysdeps/alpha/fpu/s_trunc.c: New file.
11490         * sysdeps/alpha/fpu/s_truncf.c: New file.
11491
11492         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11493         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11494         * sysdeps/alpha/fpu/s_floor.c: Likewise.
11495         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11496         * sysdeps/alpha/fpu/s_rint.c: Likewise.
11497         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11498
11499         * sysdeps/alpha/fpu/s_fmax.S: New file.
11500         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11501         * sysdeps/alpha/fpu/s_fmin.S: New file.
11502         * sysdeps/alpha/fpu/s_fminf.S: New file.
11503         * sysdeps/alpha/fpu/s_isnan.c: New file.
11504         * sysdeps/alpha/fpu/s_isnanf.c: New file.
11505         * sysdeps/alpha/fpu/s_llrint.c: New file.
11506         * sysdeps/alpha/fpu/s_llrintf.c: New file.
11507         * sysdeps/alpha/fpu/s_lrint.c: New file.
11508         * sysdeps/alpha/fpu/s_lrintf.c: New file.
11509         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11510         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11511
11512         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11513         (__fdimf, fdimf, __fdim, fdim): Remove.
11514         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11515         (__isnanf, __isnan, __isnanl): New.
11516
11517 2007-03-13  Richard Henderson  <rth@redhat.com>
11518
11519         * sysdeps/ieee754/ldbl-128/Makefile: New file.
11520
11521 2007-03-13  Richard Henderson  <rth@redhat.com>
11522
11523         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11524         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11525         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11526         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11527         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11528         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11529
11530 2007-03-13  Richard Henderson  <rth@redhat.com>
11531
11532         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11533         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11534         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11535         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11536         Move to dl-auxv.h; initialize instead of extern weak.
11537         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11538         weak symbol.
11539         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11540         Extern instead of initialized.
11541
11542 2007-03-13  Richard Henderson  <rth@redhat.com>
11543
11544         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11545         __sigsuspend_nocancel.
11546
11547 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
11548
11549         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11550         172.16/12 address range.
11551
11552 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
11553
11554         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11555         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11556         message.
11557
11558 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
11559
11560         [BZ #4069]
11561         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11562         earlier.
11563         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11564
11565         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11566         for x qNaN and y either +-inf or non-integer value.
11567         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11568         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11569         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11570
11571 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
11572
11573         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11574         from sysdep_headers.
11575
11576 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
11577
11578         * time/tzfile.c (find_transition): Instead of a linear search try to
11579         guess the transition index, use a linear search if the result is at
11580         most 10 transitions away from the guess or binary search otherwise.
11581
11582 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
11583
11584         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11585         memory reallocation.
11586
11587 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
11588
11589         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11590         and fix some typos.
11591         Optimize use of TOLOWER.
11592
11593         [BZ #3325]
11594         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11595         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11596         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11597
11598         [BZ #3458]
11599         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11600         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11601
11602         [BZ #4076]
11603         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11604         (open_dir_stream): Likewise.
11605         * io/Makefile (tests): Add bug-ftw5.
11606         * io/bug-ftw5.c: New file.
11607
11608         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11609         * nscd/servicescache.c (cache_addserv): Likewise.
11610
11611         * nscd/grpcache.c (cache_addgr): In case a record changed on
11612         refresh, adjust key_copy.
11613
11614         [BZ #4074]
11615         * nscd/pwdcache.c (cache_addpw): In case a record changed on
11616         refresh, adjust key_copy.
11617
11618         [BZ #4070]
11619         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11620         special cases.
11621         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11622
11623 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
11624
11625         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11626         optimization.
11627
11628         * stdio-common/vfscanf.c: Small cleanups throughout.
11629
11630 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
11631
11632         [BZ #3325]
11633         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11634         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11635         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11636         Patch by Jared Casper <jaredcasper@gmail.com>.
11637
11638         * sysdeps/unix/closedir.c: Outside libc don't use locking.
11639         * sysdeps/unix/opendir.c: Likewise.
11640         * sysdeps/unix/readdir.c: Likewise.
11641
11642         [BZ #2211]
11643         * stdio-common/vfscanf.c: Handle localized digits etc for floating
11644         point numbers.
11645         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
11646
11647         * stdio-common/vfscanf.c: Fix problems in width accounting.
11648         * stdio-common/tst-sscanf.c (double_tests): New tests.
11649         (main): Hook them up.
11650
11651         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
11652         More simplifications of floating-point reader.
11653
11654         * stdio-common/Makefile (tests): Add tst-swscanf.
11655         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
11656         testing.
11657         * stdio-common/tst-swscanf.c: New file.
11658
11659 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
11660
11661         [BZ #2633]
11662         * libio/stdio.h: Define struct _IO_FILE in global namespace.
11663         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
11664         Remove using for __jmp_buf_tag.
11665         * locale/locale.h (struct lconv): Also define in std namespace.
11666         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
11667
11668         [BZ #3842]
11669         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
11670         using __libc_enable_secure.
11671
11672         [BZ #3818]
11673         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
11674
11675         [BZ #3745]
11676         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
11677         of names for ellipsises.
11678
11679         [BZ #3348]
11680         * malloc/memusage.sh: Cleanups.
11681         * debug/xtrace.sh: Quoting and trap changes.
11682
11683 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
11684
11685         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
11686
11687         * locale/iso-3166.def: Update entry for Serbia.
11688         * locale/iso-4217.def: Define RSD, remove CSD.
11689
11690         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
11691         and 64-bit operations.
11692
11693         [BZ #4040]
11694         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
11695         16-bit operations.
11696
11697         * nscd/nscd.c (parse_opt): One more conversion to use send instead
11698         of writev.
11699
11700 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
11701
11702         [BZ #3991]
11703         * assert/assert.h (assert): Simplify.
11704         (assert_perror): Likewise.
11705         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
11706
11707         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
11708         reqdata.
11709
11710         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
11711         change: don't pass NULL in place of an integer.
11712
11713 2007-02-02  Bruno Haible  <bruno@clisp.org>
11714
11715         [BZ #3954]
11716         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
11717         Add mapping for U+327E.
11718         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
11719         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11720         mapping of 0xD9 0xE8.
11721         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
11722         mapping of U+327E.
11723         Reported by Jungshik Shin <jungshik@google.com>.
11724
11725         [BZ #3955]
11726         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
11727         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
11728         Reported by Jungshik Shin <jungshik@google.com>.
11729
11730 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
11731
11732         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
11733         byte variants.
11734
11735         [BZ #4040]
11736         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
11737         byte variants.  Patch mostly be tom@tommay.net.
11738
11739 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
11740
11741         [BZ #3996]
11742         * posix/glob.c (attribute_hidden): Define if not defined.
11743         (glob): Unescape dirname, filename or username when needed and not
11744         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
11745         is NULL.  Handle unescaped [ in pattern without closing ].
11746         Don't pass GLOB_CHECK down to recursive glob for directories.
11747         (__glob_pattern_type): New function.
11748         (__glob_pattern_p): Implement using __glob_pattern_type.
11749         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11750         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11751         Remove unreachable code.
11752         * posix/globtest.sh: Add a couple of new tests.
11753
11754 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
11755
11756         * po/ru.po: Update from translation team.
11757
11758 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
11759
11760         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
11761         to the list of i486+ CPUs.
11762         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11763
11764 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
11765
11766         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
11767         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
11768         references.
11769
11770 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
11771
11772         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
11773
11774         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
11775         * resolv/res_mkquery.c: Define __res_nopt.
11776         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
11777         try adding EDNS0 record.
11778         * resolv/res_send.c (send_dg): If request failed with FORMERR and
11779         EDNS0 record was send make sure we don't try it again.
11780         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
11781         * include/resolv.h: Declare __res_nopt.
11782
11783 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
11784
11785         [BZ #3944]
11786         * time/strptime_l.c (__strptime_internal): Set have_mon for
11787         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
11788         have been computed from tm_yday and tm_year.  Don't crash
11789         in day_of_the_week or day_of_the_year if not have_mon
11790         and tm_mon contains bogus value.
11791         * time/Makefile (tests): Add tst-strptime3.
11792         * time/tst-strptime3.c: New test.
11793
11794 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
11795
11796         [BZ #3957]
11797         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
11798         bit for RE_HAT_LISTS_NOT_NEWLINE.
11799         (build_charclass_op): Remove bogus comment.
11800         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
11801         * posix/bug-regex27.c: New test.
11802         * posix/bug-regex28.c: New test.
11803
11804 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
11805
11806         * po/sv.po: Update from translation team.
11807
11808 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
11809
11810         * nscd/nscd_helper.c (open_socket): Minor size optimization.
11811
11812 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
11813
11814         * include/locale.h (__uselocale): Add libc_hidden_proto.
11815         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
11816
11817         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
11818         gettimeofday.
11819
11820 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
11821
11822         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
11823         returning.
11824         (PTR_DEMANGLE): Real definition now that it's not the same as
11825         PRT_MANGLE anymore.
11826         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11827
11828         * string/strerror_l.c: New file.
11829         * string/Makefile (routines): Add strerror_l.
11830         * string/string.h: Declare strerror_l.
11831         * string/Versions: Export strerror_l for GLIBC_2.6.
11832
11833 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
11834
11835         * nscd/nscd_helper.c (open_socket): Now takes request type and key
11836         as parameter.  Construct request record.  Try sending request
11837         before the first poll use, it usually succeeds.  Adjust all
11838         callers.
11839         * nscd/nscd-client.h: Define MAXKEYLEN.
11840         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
11841
11842 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
11843
11844         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
11845         from return value.
11846         * nscd/nscd_helper.c: Include string.h.
11847         (__nscd_cache_search): Remove const qualifier from return value.
11848         On strict alignment architectures check hash entry and data head
11849         alignment.
11850         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
11851         mmapped data during GC cycle contains garbage.  If
11852         __nscd_drop_map_ref fails, decrement mapped->counter when returning
11853         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
11854         dropped to 0.
11855         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
11856         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
11857         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
11858         * nscd/nscd_getai.c (__nscd_getai): Likewise.
11859         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
11860
11861 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
11862
11863         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
11864
11865 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
11866
11867         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
11868         names not numbers in cfi_*.
11869
11870 2007-01-26  Andreas Jaeger  <aj@suse.de>
11871
11872         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
11873         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
11874         Correct values of PER_HPUX and PER_OSF4.
11875
11876 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
11877
11878         * elf/dl-minimal.c: Undefine _itoa first.
11879         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
11880         * malloc/mtrace.c: Revert last change.
11881         * posix/wordexp.c: Likewise.
11882
11883 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
11884
11885         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
11886         and __geode__ to the list of i486+ CPUs.
11887         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
11888
11889 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
11890
11891         * stdio-common/_itoa.c: Include <limits.h>.
11892         * stdio-common/_itowa.c: Likewise.
11893
11894 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
11895
11896         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
11897         platforms.
11898         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
11899         64-bit platforms.
11900         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
11901         possible.
11902         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
11903         if possible.
11904
11905         [BZ #3902]
11906         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
11907         * stdio-common/Makefile (tests): Add bug17.
11908         * stdio-common/bug17.c: New file.
11909
11910 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
11911
11912         * iconvdata/brf.c: New file.
11913         * iconvdata/testdata/BRF: New file.
11914         * iconvdata/testdata/BRF..UTF8: New file.
11915         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
11916         * iconvdata/Makefile: Add rules to build BRF.
11917         * iconvdata/TESTS: Add BRF entry.
11918         * iconvdata/gconv-modules: Likewise.
11919         * iconvdata/tst-tables.sh: Likewise.
11920
11921 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
11922
11923         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
11924         type `long long int', not `long int'.
11925         (wcstoq): Likewise.
11926
11927 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
11928
11929         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
11930         of values on 64-bit platforms which are too large.
11931
11932 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
11933             Joe Kerian  <jkerian@us.us.ibm.com>
11934
11935         [BZ #2749]
11936         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
11937         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
11938         (__copysignl): Use signbit() for comparison.
11939         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
11940         SET_LDOUBLE_WORDS64.
11941
11942         [BZ #2423, #2749]
11943         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
11944         (__ceill): Remove calls to fegetround(), fesetround().
11945         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11946         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11947         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11948
11949 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
11950
11951         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
11952
11953         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
11954
11955 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
11956
11957         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
11958         demangle pointer.
11959         * csu/libc-start.c: Likewise.
11960
11961 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
11962
11963         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
11964         really work anyway.
11965
11966 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
11967
11968         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
11969         users.
11970         (handle_request): Remove unnecessary tests.
11971
11972         * nscd/cache.c (cache_add): Record the failure to add to the cache.
11973
11974 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
11975
11976         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
11977         workbits in semi-raw fraction.
11978
11979         * math/test-misc.c: Add new tests.
11980
11981 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
11982
11983         * math/basic-test.c: Include test-skeleton.c.
11984         (TEST_TRUNC): Define.
11985         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
11986         (main): Rename to ...
11987         (do_test): ...this.  Run new tests.
11988         (TEST_FUNCTION): Define.
11989
11990 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
11991             Joe Kerian  <jkerian@us.us.ibm.com>
11992
11993         [BZ #2749]
11994         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
11995         handling for high words.
11996         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
11997         and overflow for infinity.
11998
11999 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12000
12001         * nscd/connections.c (handle_request): Add a __builtin_expect.
12002
12003         * nscd/connections.c (serv2db): Change type into structure which
12004         also says whether this is a request for data.  Renamed to
12005         servinfo.  All users changed.
12006         (handle_request): Much simpler test whether we should search the cache.
12007
12008         * nscd/connections.c (handle_request): Fix thinko in selinux test
12009         invocation.
12010
12011         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12012         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12013         it before getting dl_load_lock and then relock.
12014         (_dl_lookup_symbol_x): Pass flags to add_dependency.
12015         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12016         case we unlocked the scope.
12017         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12018         _dl_lookup_symbol_x in case we locked the scope.
12019         (_dl_profile_fixup): Likewise.
12020         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12021         set DL_LOOKUP_SCOPE_LOCK.
12022
12023 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
12024
12025         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12026         CFLAGS-getsrvbynpt_r.c.
12027         * nscd/getsrvbynm_r.c: New file.
12028         * nscd/getsrvbypt_r.c: New file.
12029         * nscd/nscd_getserv_r.c: New file.
12030         * nscd/servicescache.c: New file.
12031         * nscd/Makefile (routines): Add nscd_getserv_r.
12032         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12033         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12034         CFLAGS-getsrvbypt_r.c.
12035         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12036         table.  Add entries for services database.
12037         * nscd/connections.c (serv2str): Mark as const.  Add entries for
12038         services database.
12039         (dbs): Add .reset_res and servdb initialization.
12040         (serv2db): Add entries for services database.
12041         (verify_persistent_db): Accept dbnr == servdb.
12042         (invalidate_cache): Rewrite database name recognition to use a table.
12043         Call res_init() if .reset_res is set for database.
12044         (handle_request): Add code to handle services database.
12045         * nscd/gai.c: Don't define __getservbyname_r.
12046         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12047         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12048         (serv_response_header): Define.
12049         (struct datahead): Add serv_response_header member.
12050         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12051         using table.
12052         * nscd/nscd.conf: Add entries for services database.
12053         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12054         Declare serv_iov_disabled.
12055         Declare addservbyname, readdservbyname, addservbyport, and
12056         readdservbyport.
12057         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
12058         (find_db): Fix error message.
12059         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12060         __nscd_getservbyname_r, and __nscd_getservbyport_r.
12061         * nscd/selinux.c (perms): Add entries for services database.
12062         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12063         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12064
12065         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
12066         * nscd/hstcache.c: Likewise.
12067         * nscd/pwdcache.c: Likewise.
12068
12069         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12070         computation of keylen.
12071
12072         * include/string.h: Only redefine strndupa if this is really for
12073         libc code.
12074
12075 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
12076
12077         * nscd/nscd_gethst_r.c: Minor cleanups.
12078
12079         * nscd/connections.c (handle_request): Check selinux permissions
12080         for all non-admin commands.
12081
12082         * sysdeps/i386/i486/bits/atomic.h: Define
12083         atomic_compare_and_exchange_val_acq,
12084         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12085         using __sync_* built-ins for gcc >= 4.1.
12086         * sysdeps/x86_64/bits/atomic.h: Likewise.
12087
12088         [BZ #3840]
12089         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12090         and .oS.d files.
12091
12092 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
12093
12094         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
12095         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
12096         (do_test): Check errno and exit(0) if ENOSYS.
12097
12098 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12099
12100         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12101         thousands separators.
12102         * stdlib/Makefile: Add rules to build and run tst-strtod4.
12103         * stdlib/tst-strtod4.c: New test.
12104
12105         [BZ #3855]
12106         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12107         hexadecimal digit should accept just the initial 0.
12108         * stdlib/tst-strtod2.c (tests): New variable.
12109         (do_test): Run several tests rather than just one.
12110
12111 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12112
12113         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12114         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12115
12116 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
12117
12118         * io/fts.c: Make sure fts_cur is always valid after return from
12119         fts_read.
12120         Patch by Miloslav Trmac <mitr@redhat.com>.
12121
12122 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
12123
12124         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12125         (R_MIPS_NUM): Bump by 1.
12126
12127 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
12128
12129         * posix/execvp.c: Include alloca.h.
12130         (allocate_scripts_argv): Renamed to...
12131         (scripts_argv): ... this.  Don't allocate buffer here nor count
12132         arguments.
12133         (execvp): Use alloca if possible.
12134         * posix/Makefile: Add rules to build and run tst-vfork3 test.
12135         * posix/tst-vfork3.c: New test.
12136
12137 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
12138
12139         * string/Makefile (tst-strxfrm2-ENV): Define.
12140         * stdlib/Makefile (tst-strtod3-ENV): Define.
12141
12142 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
12143
12144         * posix/getconf.c: Update copyright year.
12145         * nss/getent.c: Likewise.
12146         * iconv/iconvconfig.c: Likewise.
12147         * iconv/iconv_prog.c: Likewise.
12148         * elf/ldconfig.c: Likewise.
12149         * catgets/gencat.c: Likewise.
12150         * csu/version.c: Likewise.
12151         * elf/ldd.bash.in: Likewise.
12152         * elf/sprof.c (print_version): Likewise.
12153         * locale/programs/locale.c: Likewise.
12154         * locale/programs/localedef.c: Likewise.
12155         * nscd/nscd.c (print_version): Likewise.
12156         * debug/xtrace.sh: Likewise.
12157         * malloc/memusage.sh: Likewise.
12158         * malloc/mtrace.pl: Likewise.
12159         * debug/catchsegv.sh: Likewise.
12160
12161 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
12162
12163         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12164         attempts.
12165
12166 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
12167
12168         * posix/wordexp.c: Remove some unnecessary tests.
12169
12170 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
12171
12172         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12173         blacklist the group till after we look it up.
12174
12175 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
12176
12177         * include/atomic.h (atomic_forced_read): New macro.
12178
12179 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12180
12181         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12182
12183 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
12184
12185         * nss/getXXbyYY_r.c: Include atomic.h.
12186         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12187         add atomic_write_barrier () in between.
12188
12189         * stdlib/Makefile (tests): Add tst-makecontext.
12190         * stdlib/tst-makecontext.c: New test.
12191
12192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12193         (__makecontext): Don't realign uc_mcontext.uc_regs.
12194
12195 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
12196
12197         * elf/dl-support.c: Include dl-procinfo.h.
12198         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12199         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12200         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12201         Define.
12202         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12203         hardcoded constants.
12204         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12205         PPC_PLATFORM_* macros for array designators.
12206
12207 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
12208
12209         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12210         names to the beginning.
12211         (_dl_powerpc_platforms): Add "power6x".
12212         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12213         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12214         (_DL_PLATFORMS_COUNT): Increase.
12215         (_dl_string_platform): Handle power6x case.
12216         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12217         PPC_FEATURE_POWER6_EXT): Define.
12218         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12219
12220 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
12221
12222         [BZ #3747]
12223         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12224         [-2^31 .. 2^31) range.
12225         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12226         targets.
12227         * stdlib/tst-rand48-2.c: New test.
12228         * stdlib/Makefile (tests): Add tst-rand48-2.
12229
12230 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12231
12232         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12233
12234 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12235
12236         * misc/tst-pselect.c (do_test): Make sure the helper process is
12237         terminating when the test is aborted.
12238
12239 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12240
12241         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12242         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12243         Handle relatime mount option.
12244
12245         [BZ #2337]
12246         * libio/Makefile (tests): Add tst-setvbuf1.
12247         * libio/tst-setvbuf1.c: New file.
12248
12249 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12250
12251         [BZ #2337]
12252         * libio/genops.c (__uflow): Fix a typo.
12253         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12254         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12255         the narrow buffer size.
12256
12257 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12258
12259         [BZ #2337]
12260         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12261         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12262         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12263         in _flags.
12264         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12265         _IO_wstr_finish): Likewise.
12266         * libio/wmemstream.c (open_wmemstream): Likewise.
12267         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12268         even for wide streams.
12269
12270 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12271
12272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12273         kernel-features.h.
12274
12275 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12276
12277         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12278         separators also if no non-zero digits found.
12279         * stdlib/Makefile (tests): Add tst-strtod3.
12280
12281 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12282
12283         [BZ #3632]
12284         * include/features.h: Fix comment about default value for
12285         _POSIX_C_SOURCE.
12286
12287         [BZ #3664]
12288         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12289         empty parsed strings.
12290         * stdlib/Makefile (tests): Add tst-strtod2.
12291         * stdlib/tst-strtod2.c: New file.
12292
12293         [BZ #3673]
12294         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12295         computation.
12296         * stdlib/Makefile (tests): Add tst-atof2.
12297         * stdlib/tst-atof2.c: New file.
12298
12299         [BZ #3674]
12300         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12301         correctly if removing trailing zero of hex-float.
12302         * stdlib/Makefile (tests): Add tst-atof1.
12303         * stdlib/tst-atof1.c: New file.
12304
12305 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
12306
12307         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12308         Start searching for next comma at p rather than rest.
12309         * misc/Makefile (tests): Add tst-mntent2.
12310         * misc/tst-mntent2.c: New test.
12311
12312         * misc/getusershell.c (initshells): Check for integer overflows.
12313         Make strings buffer one bigger as fgets always succeeds when second
12314         argument is 1.  Don't use calloc for shells array.  Disallow
12315         / as shell.
12316
12317 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
12318
12319         * malloc/memusage.c: Handle realloc with new size of zero and
12320         non-NULL pointer correctly.
12321         (me): Really write first record twice.
12322         (struct entry): Make format bi-arch safe.
12323         (dest): Write out more realloc statistics.
12324         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12325
12326 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
12327
12328         * nis/nis_subr.c (nis_getnames): Revert last change.
12329
12330 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12331
12332         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12333         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12334         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12335         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12336         ENOTTY.
12337         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12338         * io/tst-ttyname_r.c: New test.
12339
12340 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12341
12342         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12343
12344 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12345
12346         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12347         jump table entries.
12348
12349 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12350
12351         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12352         `clone' function to ensure proper unwinding stop of gdb.
12353         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12354
12355 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12356
12357         * nscd/nscd.init: Remove obsolete and commented-out -S option
12358         handling.
12359
12360 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12361
12362         [BZ #3514]
12363         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12364
12365         [BZ #3515]
12366         * manual/string.texi (strtok): Remove duplicate paragraph.
12367
12368 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12369
12370         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12371         libgcc not supporting `rflags' unwinding (register # >= 17).
12372
12373 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12374
12375         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12376         succeeded.
12377
12378 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12379             Jakub Jelinek  <jakub@redhat.com>
12380             Jan Kratochvil  <jan.kratochvil@redhat.com>
12381
12382         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12383         unwind information.
12384         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12385         'restore_rt' even in the 'signal' directory.
12386         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12387
12388 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12389
12390         [BZ #3559]
12391         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12392         malloc crashed.  Don't allocate memory unnecessarily in each
12393         loop.
12394
12395 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12396
12397         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12398
12399 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12400
12401         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12402
12403 2006-11-18  Bruno Haible  <bruno@clisp.org>
12404
12405         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12406         __sysconf only after having tried to call getgroups32.
12407
12408 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12409
12410         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12411         addresses for IPv4 queries if they can be mapped.
12412
12413 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12414
12415         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12416         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12417         (signmask): Add .size directive.
12418         (othermask): Add .type directive.
12419
12420 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12421
12422         * po/nl.po: Update from translation team.
12423
12424         * timezone/zdump.c: Redo fix for BZ #3137.
12425
12426 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12427
12428         * nss/nss_files/files-alias.c (get_next_alias): Set line back
12429         to first_unused after parsing :include: file.
12430
12431 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12432
12433         * timezone/africa: Update from tzdata2006o.
12434         * timezone/antarctica: Likewise.
12435         * timezone/asia: Likewise.
12436         * timezone/australasia: Likewise.
12437         * timezone/backward: Likewise.
12438         * timezone/europe: Likewise.
12439         * timezone/iso3166.tab: Likewise.
12440         * timezone/northamerica: Likewise.
12441         * timezone/southamerica: Likewise.
12442         * timezone/zone.tab: Likewise.
12443
12444         * time/tzfile.c (__tzfile_read): Extend to handle new file format
12445         on machines with 64-bit time_t.
12446
12447         * timezone/checktab.awk: Update from tzcode2006o.
12448         * timezone/ialloc.c: Likewise.
12449         * timezone/private.h: Likewise.
12450         * timezone/scheck.c: Likewise.
12451         * timezone/tzfile.h: Likewise.
12452         * timezone/tzselect.ksh: Likewise.
12453         * timezone/zdump.c: Likewise.
12454         * timezone/zic.c: Likewise.
12455
12456         [BZ #3483]
12457         * elf/ldconfig.c (main): Call setlocale and textdomain.
12458         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12459
12460         [BZ #3480]
12461         * manual/argp.texi: Fix typos.
12462         * manual/charset.texi: Likewise.
12463         * manual/errno.texi: Likewise.
12464         * manual/filesys.texi: Likewise.
12465         * manual/lang.texi: Likewise.
12466         * manual/maint.texi: Likewise.
12467         * manual/memory.texi: Likewise.
12468         * manual/message.texi: Likewise.
12469         * manual/resource.texi: Likewise.
12470         * manual/search.texi: Likewise.
12471         * manual/signal.texi: Likewise.
12472         * manual/startup.texi: Likewise.
12473         * manual/stdio.texi: Likewise.
12474         * manual/sysinfo.texi: Likewise.
12475         * manual/syslog.texi: Likewise.
12476         * manual/time.texi: Likewise.
12477         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12478
12479         [BZ #3465]
12480         * sunrpc/clnt_raw.c: Minimal message improvements.
12481         * sunrpc/pm_getmaps.c: Likewise.
12482         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12483         * nis/nis_print_group_entry.c: Likewise.
12484         * locale/programs/repertoire.c: Likewise.
12485         * locale/programs/charmap.c: Likewise.
12486         * malloc/memusage.sh: Likewise.
12487         * elf/dl-deps.c: Likewise.
12488         * locale/programs/ld-collate.c: Likewise.
12489         * libio/vswprintf.c: Likewise.
12490         * malloc/memusagestat.c: Likewise.
12491         * sunrpc/auth_unix.c: Likewise.
12492         * sunrpc/rpc_main.c: Likewise.
12493         * nscd/cache.c: Likewise.
12494         * locale/programs/repertoire.c: Unify output messages.
12495         * locale/programs/charmap.c: Likewise.
12496         * locale/programs/ld-ctype.c: Likewise.
12497         * locale/programs/ld-monetary.c: Likewise.
12498         * locale/programs/ld-numeric.c: Likewise.
12499         * locale/programs/ld-time.c: Likewise.
12500         * elf/ldconfig.c: Likewise.
12501         * nscd/selinux.c: Likewise.
12502         * elf/cache.c: Likewise.
12503         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12504
12505         [BZ #3451]
12506         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12507         change atomic.
12508         (ceil): Likewise.
12509
12510 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12511
12512         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12513         if N is one bigger than return value.
12514         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12515         and l1 last arguments, if buf is defined, verify the return value
12516         equals to strlen (buf) and verify no byte beyond passed length
12517         is modified.
12518
12519 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12520
12521         * po/sv.po: Update from translation team.
12522
12523 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12524
12525         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12526         noinline attribute.
12527
12528 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12529
12530         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12531         noinline attribute.
12532
12533         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12534         Use __new_sys_siglist instead of _sys_siglist_internal as
12535         second macro argument.
12536         (_old_sys_siglist): Use declare_symbol_alias macro instead of
12537         strong_alias.
12538
12539 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12540
12541         [BZ #3493]
12542         * posix/unistd.h (sysconf): Remove const attribute.
12543
12544         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12545         temporary or deprecated addresses.
12546         Patch by Sridhar Samudrala <sri@us.ibm.com>.
12547
12548         * string/Makefile (tests): Add tst-strxfrm2.
12549         * string/tst-strxfrm2.c: New file.
12550
12551 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
12552
12553         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12554         rather than r->r_brk.
12555
12556 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
12557
12558         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12559         optimization even if needed > n.
12560
12561         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12562         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12563         return false, otherwise return true.
12564         (cache_rpath): Return decompose_rpath return value.
12565
12566 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
12567
12568         * include/libc-symbols.h (declare_symbol): Rename to...
12569         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
12570         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12571         .size directive.
12572         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12573         changes.
12574         * sysdeps/gnu/siglist.c: Likewise.
12575
12576 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
12577
12578         * sysdeps/powerpc/fpu/bits/mathinline.h
12579         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12580         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
12581
12582 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
12583
12584         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12585         Update handling of cache descriptor 0x49 for new models.
12586         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12587         Likewise.
12588
12589 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
12590
12591         * malloc/memusage.c (dest): Reset not_me back to false after
12592         printing statistics.
12593
12594 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
12595
12596         * configure.in: Work around ld --help change and avoid -z relro
12597         test completely if the architecture doesn't care about security.
12598
12599 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
12600
12601         * po/sv.po: Update from translation team.
12602
12603 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
12604
12605         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12606         generate compatibility version.
12607
12608 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
12609
12610         * configure.in: Relax -z relro requirement a bit.
12611
12612         * po/sv.po: Update from translation team.
12613
12614 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
12615
12616         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12617         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12618         * elf/dl-close.c (_dl_close_worker): Likewise.
12619         * elf/dl-open.c (_dl_open_worker): Likewise.
12620         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12621
12622 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
12623
12624         * configure.in: Require assembler support for visibility, compiler
12625         support for visibility and aliases, linker support for various -z
12626         options.
12627         * Makeconfig: Remove conditional code which now is unnecessary.
12628         * config.h.in: Likewise.
12629         * config.make.in: Likewise.
12630         * dlfcn/Makefile: Likewise.
12631         * elf/Makefile: Likewise.
12632         * elf/dl-load.c: Likewise.
12633         * elf/rtld.c: Likewise.
12634         * include/libc-symbols.h: Likewise.
12635         * include/stdio.h: Likewise.
12636         * io/Makefile: Likewise.
12637         * io/fstat.c: Likewise.
12638         * io/fstat64.c: Likewise.
12639         * io/fstatat.c: Likewise.
12640         * io/fstatat64.c: Likewise.
12641         * io/lstat.c: Likewise.
12642         * io/lstat64.c: Likewise.
12643         * io/mknod.c: Likewise.
12644         * io/mknodat.c: Likewise.
12645         * io/stat.c: Likewise.
12646         * io/stat64.c: Likewise.
12647         * libio/stdio.c: Likewise.
12648         * nscd/Makefile: Likewise.
12649         * stdlib/Makefile: Likewise.
12650         * stdlib/atexit.c: Likewise.
12651         * sysdeps/generic/ldsodefs.h: Likewise.
12652         * sysdeps/i386/dl-machine.h: Likewise.
12653         * sysdeps/i386/sysdep.h: Likewise.
12654         * sysdeps/i386/i686/memcmp.S: Likewise.
12655         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12656         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12657         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12658
12659         * Makerules: USE_TLS support is now default.
12660         * tls.make.c: Likewise.
12661         * csu/Versions: Likewise.
12662         * csu/libc-start.c: Likewise.
12663         * csu/libc-tls.c: Likewise.
12664         * csu/version.c: Likewise.
12665         * dlfcn/dlinfo.c: Likewise.
12666         * elf/dl-addr.c: Likewise.
12667         * elf/dl-cache.c: Likewise.
12668         * elf/dl-close.c: Likewise.
12669         * elf/dl-iteratephdr.c: Likewise.
12670         * elf/dl-load.c: Likewise.
12671         * elf/dl-lookup.c: Likewise.
12672         * elf/dl-object.c: Likewise.
12673         * elf/dl-open.c: Likewise.
12674         * elf/dl-reloc.c: Likewise.
12675         * elf/dl-support.c: Likewise.
12676         * elf/dl-sym.c: Likewise.
12677         * elf/dl-sysdep.c: Likewise.
12678         * elf/dl-tls.c: Likewise.
12679         * elf/ldconfig.c: Likewise.
12680         * elf/rtld.c: Likewise.
12681         * elf/tst-tls-dlinfo.c: Likewise.
12682         * elf/tst-tls1.c: Likewise.
12683         * elf/tst-tls10.h: Likewise.
12684         * elf/tst-tls14.c: Likewise.
12685         * elf/tst-tls2.c: Likewise.
12686         * elf/tst-tls3.c: Likewise.
12687         * elf/tst-tls4.c: Likewise.
12688         * elf/tst-tls5.c: Likewise.
12689         * elf/tst-tls6.c: Likewise.
12690         * elf/tst-tls7.c: Likewise.
12691         * elf/tst-tls8.c: Likewise.
12692         * elf/tst-tls9.c: Likewise.
12693         * elf/tst-tlsmod1.c: Likewise.
12694         * elf/tst-tlsmod13.c: Likewise.
12695         * elf/tst-tlsmod13a.c: Likewise.
12696         * elf/tst-tlsmod14a.c: Likewise.
12697         * elf/tst-tlsmod2.c: Likewise.
12698         * elf/tst-tlsmod3.c: Likewise.
12699         * elf/tst-tlsmod4.c: Likewise.
12700         * elf/tst-tlsmod5.c: Likewise.
12701         * elf/tst-tlsmod6.c: Likewise.
12702         * include/errno.h: Likewise.
12703         * include/link.h: Likewise.
12704         * include/tls.h: Likewise.
12705         * locale/global-locale.c: Likewise.
12706         * locale/localeinfo.h: Likewise.
12707         * malloc/arena.c: Likewise.
12708         * malloc/hooks.c: Likewise.
12709         * malloc/malloc.c: Likewise.
12710         * resolv/Versions: Likewise.
12711         * sysdeps/alpha/dl-machine.h: Likewise.
12712         * sysdeps/alpha/libc-tls.c: Likewise.
12713         * sysdeps/generic/ldsodefs.h: Likewise.
12714         * sysdeps/generic/tls.h: Likewise.
12715         * sysdeps/i386/dl-machine.h: Likewise.
12716         * sysdeps/ia64/dl-machine.h: Likewise.
12717         * sysdeps/ia64/libc-tls.c: Likewise.
12718         * sysdeps/mach/hurd/fork.c: Likewise.
12719         * sysdeps/mach/hurd/i386/tls.h: Likewise.
12720         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
12721         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12722         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12723         * sysdeps/s390/libc-tls.c: Likewise.
12724         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12725         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12726         * sysdeps/sh/dl-machine.h: Likewise.
12727         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12728         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12729         * sysdeps/x86_64/dl-machine.h: Likewise.
12730
12731         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
12732         split out locking and parameter checking.
12733         (_dl_close): Call _dl_close_worker after locking and checking.
12734         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
12735         _dl_close.
12736         * elf/Makefile: Add rules to build and run tst-thrlock.
12737         * elf/tst-thrlock.c:  New file.
12738
12739         [BZ #3426]
12740         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
12741         reality.
12742
12743         [BZ #3429]
12744         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
12745         we are sure we do not need it anymore for _dl_close.  Also move
12746         the asserts inside the lock region.
12747         Patch mostly by Suzuki <suzuki@in.ibm.com>.
12748
12749 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
12750
12751         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
12752         argument.
12753         (_dl_lookup_symbol_x): Adjust caller.
12754
12755         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
12756         _ns_global_scope.
12757         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
12758
12759         * elf/dl-libc.c: Revert l_scope name changes.
12760         * elf/dl-load.c: Likewise.
12761         * elf/dl-object.c: Likewise.
12762         * elf/rtld.c: Likewise.
12763         * elf/dl-close.c (_dl_close): Likewise.
12764         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
12765         always use __rtld_mrlock_{change,done}.  Always free old scope list
12766         here if not l_scope_mem.
12767         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
12768         change.  Never free scope list here.  Just __rtld_mrlock_lock before
12769         the lookup and __rtld_mrlock_unlock it after the lookup.
12770         * elf/dl-sym.c: Likewise.
12771         * include/link.h (struct r_scoperec): Remove.
12772         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
12773         with l_scope_mem and l_scoperec_lock with l_scope_lock.
12774
12775 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
12776
12777         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
12778
12779 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12780
12781         * configure.in: Disable building profile libraries by default.
12782
12783 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12784
12785         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
12786         as signed longs, check for x_base + pos overflow.
12787         * sunrpc/Makefile (tests): Add tst-xdrmem2.
12788         * sunrpc/tst-xdrmem2.c: New test.
12789
12790 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12791
12792         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
12793         _dl_lookup_symbol_x code.
12794
12795 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12796
12797         * elf/dl-runtime.c: Include sysdep-cancel.h.
12798         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
12799         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
12800         instead of catomic_* macros.
12801         * elf/dl-sym.c: Include sysdep-cancel.h.
12802         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
12803         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12804         * elf/dl-close.c: Include sysdep-cancel.h.
12805         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
12806         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12807         * elf/dl-open.c: Include sysdep-cancel.h.
12808         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
12809         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
12810
12811 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12812
12813         [BZ #3313]
12814         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
12815         fastbin rather than end of fastbin array.
12816
12817 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
12818
12819         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
12820         body macro.
12821         * sysdeps/x86_64/bits/atomic.h
12822         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
12823         (catomic_decrement): Use correct body macro.
12824
12825 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
12826
12827         * include/atomic.h: Add a unique prefix to all local variables
12828         in macros.
12829         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
12830
12831 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
12832
12833         [BZ #3369]
12834         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
12835         and 7.
12836
12837 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
12838
12839         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
12840
12841 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
12842
12843         [BZ #3313]
12844         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
12845         determine highest fast bin to consolidate, always look into all of
12846         them.
12847         (do_check_malloc_state): Only require for empty bins for large
12848         sizes in main arena.
12849
12850         * libio/stdio.h: Add more __wur attributes.
12851
12852         * elf/dl-minimal.c (realloc): Optimize last patch.
12853
12854 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
12855
12856         [BZ #3352]
12857         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
12858         and use memcpy() if it does.
12859
12860 2006-11-12  Andreas Jaeger  <aj@suse.de>
12861
12862         [BZ #2510]
12863         * manual/search.texi (Hash Search Function): Clarify.
12864         (Array Search Function): Clarify.
12865
12866 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
12867
12868         [BZ #2830]
12869         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
12870         shifting.
12871         * math/atest-exp2.c (read_mpn_hex): Likewise.
12872         * math/atest-sincos.c (main): Likewise.
12873
12874 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12875
12876         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
12877         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
12878         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
12879         version GLIBC_2.6.
12880         * Versions.def: Add GLIBC_2.6 for libc.
12881
12882         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
12883
12884         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
12885
12886 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
12887
12888         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
12889
12890         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
12891
12892         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
12893         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
12894
12895 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
12896
12897         * include/atomic.c: Define catomic_* operations.
12898         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
12899         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
12900         * malloc/memusage.c: Likewise.
12901         * gmon/mcount.c: Likewise.
12902         * elf/dl-close.c: Likewise.
12903         * elf/dl-open.c: Likewise.
12904         * elf/dl-profile.c: Likewise.
12905         * elf/dl-sym.c: Likewise.
12906         * elf/dl-runtime.c: Likewise.
12907         * elf/dl-fptr.c: Likewise.
12908         * resolv/res_libc.c: Likewise.
12909
12910 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
12911
12912         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
12913         components which lack them.
12914
12915         * nis/nis_subr.c (nis_getnames): Make sure that we always return
12916         at least one entry consisting of the parameter concatenated with
12917         the domain.
12918
12919 2006-10-10  Roland McGrath  <roland@frob.com>
12920
12921         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
12922         * sysdeps/mach/hurd/futimes.c: Likewise.
12923         * sysdeps/mach/hurd/lutimes.c: Likewise.
12924
12925 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
12926             Jakub Jelinek  <jakub@redhat.com>
12927
12928         Implement reference counting of scope records.
12929         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
12930         from the list in objects which remain.  Always allocate new scope
12931         record.
12932         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
12933         don't resize, allocate a new one.
12934         * elf/dl-runtime.c: Update reference counters before using a scope
12935         array.
12936         * elf/dl-sym.c: Likewise.
12937         * elf/dl-libc.c: Adjust for l_scope name change.
12938         * elf/dl-load.c: Likewise.
12939         * elf/dl-object.c: Likewise.
12940         * elf/rtld.c: Likewise.
12941         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
12942         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
12943         Add l_scoperec_lock.
12944         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
12945         * sysdeps/generic/rtld-lowlevel.h: New file.
12946
12947         * include/atomic.h: Rename atomic_and to atomic_and_val and
12948         atomic_or to atomic_or_val.  Define new macros atomic_and and
12949         atomic_or which do not return values.
12950         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
12951         Various cleanups.
12952         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12953
12954         * po/sv.po: Update from translation team.
12955
12956 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
12957
12958         * Versions.def: Add GLIBC_2.6 to libpthread.
12959
12960         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
12961         (versioned_symbol): Likewise.
12962         (compat_symbol): Likewise.
12963
12964         * po/tr.po: Update from translation team.
12965
12966 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12967
12968         * nis/Banner: Removed.  It's been integral part forever and the
12969         author info is incomplete anyway.
12970         * libio/Banner: Likewise.
12971
12972         * nis/nis_table.c (nis_list): If __follow_path fails in the new
12973         code, make sure the nis_freeresult call doesn't crash and that the
12974         result is reported correctly.
12975
12976 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
12977
12978         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
12979         when callback is NULL.
12980
12981         * nis/Versions (libnss_nisplus): Add
12982         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
12983         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
12984         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
12985         _nss_create_tablename): Rename to...
12986         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
12987         ... these.  No longer static.
12988         (internal_setgrent): Adjust users.
12989         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
12990         Don't use locking around _nss_grp_create_tablename call.
12991         * nis/nss_nisplus/nisplus-initgroups.c: New file.
12992
12993 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
12994
12995         * version.h (VERSION): Bump to 2.5.90 for new development tree.
12996
12997 2006-10-06  Andreas Jaeger  <aj@suse.de>
12998
12999         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13000
13001 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13002
13003         * po/pl.po: Update from translation team.
13004
13005         * nscd/nscd.c (main): Fix typo in message.
13006         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13007
13008 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13009
13010         [BZ #3291]
13011         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13012         errno.h, signal.h, unistd.h and sysdep-cancel.h.
13013         (__sigprocmask): Define.
13014
13015 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
13016
13017         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13018         used.
13019
13020 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13021
13022         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13023         in oldtotal and newtotal calculation.
13024         * nscd/nscd-client.h (struct mapped_database): Add datasize
13025         field.
13026         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13027         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13028         increased.
13029         (__nscd_cache_search): Add checks to make sure we never reference
13030         data beyond the current mapping.
13031
13032 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
13033
13034         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13035         variables const to avoid compiler warnings.
13036
13037         * io/fts.c (fts_close): Remove redundant checks.
13038         (fts_build): Likewise.
13039         (fts_palloc): Likewise.
13040
13041         * manual/message.texi (Advanced gettext functions,
13042         Using gettextized software): Fix typos.
13043
13044 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
13045
13046         * posix/glob.c (glob_in_dir): Add some comments and asserts to
13047         explain why there are no leaks.
13048
13049 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
13050
13051         * libio/wmemstream.c: Include <wchar.h>.
13052         * libio/bug-wmemstream1.c: Likewise.
13053         * libio/tst-wmemstream1.c: Likewise.
13054         * libio/tst-wmemstream2.c: Likewise.
13055
13056         * version.h (RELEASE): Bump to 2.5.
13057         * README: Regenerated.
13058
13059         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13060
13061         [BZ #3273]
13062         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13063         found no group members.
13064         Patch by Petr Baudis.
13065
13066 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
13067
13068         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13069         assert bootstrap_map.l_tls_modid is zero.
13070         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13071         if USE___THREAD.
13072
13073 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
13074
13075         * libio/stdio.h: Move open_wmemstream prototype to ...
13076         * wcsmbs/wchar.h: ... here.
13077
13078 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
13079
13080         [BZ #3252]
13081         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13082         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13083         __{,l}chown to handle the rest.
13084         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13085         fchownat syscall and __ASSUME_32BITUIDS case inline, call
13086         __{,l}chown to handle the rest.
13087         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13088         i386/fchownat.c.
13089         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13090         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13091
13092         [BZ #3253]
13093         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13094         time, rather allocate increasingly bigger arrays of pointers, if
13095         possible with alloca, if too large with malloc.
13096
13097 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
13098
13099         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13100
13101         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13102
13103 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
13104
13105         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13106         home addresses.
13107         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13108         IFA_F_HOMEADDRESS flag for interfaces.
13109         * include/ifaddrs.h (struct in6addrinfo): Define
13110         in6ai_homeaddress.
13111
13112 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
13113
13114         [BZ #3225]
13115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13116         PTR_DEMANGLE3): Define.
13117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13118         PTR_DEMANGLE3): Likewise.
13119         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13120         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13121         Likewise.
13122         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13123
13124 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
13125
13126         * po/libc.pot: Regenerated.
13127         * po/be.po: Updated.
13128         * po/ca.po: Likewise.
13129         * po/cs.po: Likewise.
13130         * po/da.po: Likewise.
13131         * po/de.po: Likewise.
13132         * po/el.po: Likewise.
13133         * po/en_GB.po: Likewise.
13134         * po/es.po: Likewise.
13135         * po/fi.po: Likewise.
13136         * po/fr.po: Likewise.
13137         * po/gl.po: Likewise.
13138         * po/hr.po: Likewise.
13139         * po/hu.po: Likewise.
13140         * po/ja.po: Likewise.
13141         * po/ko.po: Likewise.
13142         * po/nb.po: Likewise.
13143         * po/nl.po: Likewise.
13144         * po/pl.po: Likewise.
13145         * po/pt_BR.po: Likewise.
13146         * po/ru.po: Likewise.
13147         * po/rw.po: Likewise.
13148         * po/sk.po: Likewise.
13149         * po/sv.po: Likewise.
13150         * po/tr.po: Likewise.
13151         * po/zh_CN.po: Likewise.
13152         * po/zh_TW.po: Likewise.
13153
13154         [BZ #3137]
13155         * iconv/iconv_prog.c (main): Fix spelling in error message.
13156         * iconv/iconvconfig.c (main): Likewise.
13157         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13158         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13159         * locale/programs/localedef.c (main): Likewise.
13160         * locale/programs/repertoire.c (repertoire_read): Likewise.
13161         * timezone/zdump.c (main): Likewise.
13162         * nscd/connections.c (handle_request): Fix spelling in log message.
13163         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13164
13165 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
13166
13167         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13168         interfaces.
13169
13170 2006-09-20  Andreas Jaeger  <aj@suse.de>
13171
13172         * math/libm-test.inc (lrint_test_upward): Fix typo.
13173
13174 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
13175
13176         [BZ #2592]
13177         * math/libm-test.inc (lrint_test_tonearest): New function.
13178         (lrint_test_towardzero): New function.
13179         (lrint_test_downward): New function.
13180         (lrint_test_upward): New function.
13181         (main): Run these new tests.
13182         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13183         of values near to 0.
13184         (two52): Use double not long double.
13185         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13186         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13187         (two23): Use float not double.
13188         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13189         (two23): Use float not double.
13190         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13191         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13192         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13193         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13194
13195 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13196
13197         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13198         Cast sp to unsigned long to avoid compiler warning.
13199         Use __makecontext_ret function instead of a trampoline on the stack.
13200         (__makecontext_ret): New function.
13201         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13202
13203 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
13204
13205         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13206         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13207         bits.
13208
13209 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
13210
13211         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13212         sure no reference to the unloaded map's search list remains in the
13213         dependency's scope.
13214
13215 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13216
13217         * elf/Makefile: Add rules to build and run unload7 test.
13218         * elf/unload7.c: New test.
13219         * elf/unload7mod1.c: New file.
13220         * elf/unload7mod2.c: New file.
13221
13222 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13223
13224         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13225         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13226         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13227         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13228         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13229         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13230         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13231         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13232         PTRACE_GETEVENTMSG): Likewise.
13233         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13234         values.
13235
13236 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13237
13238         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13239         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13240         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13241         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13242
13243 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13244
13245         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13246         write '\0' to the fd.
13247         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13248         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13249         Change regs to unsigned long pointer from unsigned int, fix fscr
13250         offset.
13251
13252 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13253
13254         * io/Makefile (CFLAGS-fstatat.c): Set.
13255         (CFLAGS-fstatat64.c): Likewise.
13256         (CFLAGS-mknodat.c): Likewise.
13257
13258         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13259         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13260         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13261         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13262
13263 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13264             Steven Munroe  <sjmunroe@us.ibm.com>
13265
13266         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13267         names to the beginning.  Rename "cell" to "cellbe".
13268         (_dl_powerpc_platforms): New.
13269         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13270         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13271         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13272         (_DL_HWCAP_PLATFORM): Define to new mask.
13273         (_dl_platform_string, _dl_string_platform): New functions.
13274         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13275         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13276
13277 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13278
13279         [BZ #2526]
13280         * README.libm: Fix a thinko in sqrt algorithm description.
13281
13282         [BZ #3143]
13283         * manual/string.texi (argz_delete): Fix prototype.
13284         Patch by <alpt@freaknet.org>.
13285
13286 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13287
13288         [BZ #3138]
13289         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13290         * io/tst-fcntl.c (do_prepare): Likewise.
13291         * posix/tst-exec.c (do_prepare): Likewise.
13292         * posix/tst-preadwrite.c (do_prepare): Likewise.
13293         * posix/tst-spawn.c (do_prepare): Likewise.
13294         * posix/tst-truncate.c (do_prepare): Likewise.
13295         * rt/tst-aio.c (do_prepare): Likewise.
13296         * rt/tst-aio64.c (do_prepare): Likewise.
13297         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13298         size_t.
13299
13300 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13301
13302         [BZ #2821]
13303         * time/mktime.c (guess_time_tm): Fix overflow detection.
13304         * time/Makefile (tests): Add bug-mktime1.
13305         * time/bug-mktime1.c: New file.
13306
13307         [BZ #3189, #3188]
13308         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13309         (mremap): Likewise.
13310
13311 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
13312
13313         [BZ #1006]
13314         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13315         Ensure relocation doesn't clobber any bits outside of the
13316         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13317         R_SPARC_HI22 and R_SPARC_H44.
13318
13319         [BZ #2775]
13320         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13321         (long) (MINSIZE + nb - old_size) is positive.
13322
13323         * malloc/arena.c (grow_heap): When growing bail even if new_size
13324         is negative.
13325
13326         [BZ #3155]
13327         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13328         stack below r1.
13329
13330 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13331
13332         * posix/regex_internal.c (re_string_reconstruct): Handle
13333         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13334         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13335         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13336         re_string_context_at.
13337         * posix/Makefile: Add rules to build and run bug-regex26 test.
13338         * posix/bug-regex26.c: New test.
13339
13340         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13341         rather than col_sym_free.  Move seqp declaration earlier.
13342
13343         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13344
13345 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13346
13347         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13348         decl before first goto out.
13349
13350 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13351
13352         * Makerules (shlib.lds): If have-hash-style, put .hash section
13353         at the end of the RO segment.
13354
13355 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13356
13357         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13358         style hash table format is used.
13359
13360 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13361
13362         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13363         randomization rather than before.
13364         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13365
13366 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
13367
13368         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13369
13370         * malloc/malloc.c (_int_malloc): Use full list insert and not
13371         shortcut which assumes the list is empty for large requests
13372         too.
13373
13374         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13375
13376 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13377
13378         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13379         and offout arguments to the prototype.
13380         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13381         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13382         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13383         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13384         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13385         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13386         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13387         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13388
13389 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13390
13391         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13392
13393         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13394         dlopen parameters.
13395
13396 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13397
13398         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13399         only if herrno is NETDB_INTERNAL.  Handle errors other than
13400         ERANGE outside of the loops, handle TRY_AGAIN.
13401
13402         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13403         if other's ctype category was missing.
13404         * locale/programs/ld-collate.c (collate_read): Return if
13405         copy_locale's collate category is missing.
13406
13407 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13408
13409         [BZ #2684]
13410         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13411         arenas if allocation failed.
13412         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13413
13414 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13415
13416         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13417         waste bins[0..1].
13418         (malloc_state): Reduce bins size by 2.
13419         (_int_malloc): Fix test for large enough buffer for early termination.
13420         When no unsorted block matches perfectly and an exiting block has
13421         to be split, use full list insert and not shortcut which assumes
13422         the list is empty.
13423
13424         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13425         failure.
13426
13427 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13428
13429         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13430         do anything.
13431
13432         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13433         symbol require exact match (these are PLTs).
13434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13435         (_dl_ppc64_addr_sym_match): Likewise.
13436
13437         [BZ #2683]
13438         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13439         If symbol has a value use it.
13440         * elf/tst-dladdr1.c: New file.
13441         * elf/Makefile: Add rules to build and run tst-addr1.
13442
13443 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
13444
13445         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13446         keeps failing and heap growth or new heap creation isn't
13447         successful either.
13448         * malloc/tst-malloc.c (main): Add new tests.
13449
13450 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13451
13452         [BZ #2734]
13453         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13454         as in the x86-64 code to use bswap.
13455
13456 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
13457
13458         [BZ #2680]
13459         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13460         __USE_UNIX98.
13461         * posix/bits/unistd.h: Likewise.
13462
13463 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
13464
13465         [BZ #2751]
13466         * string/strchr.c: Add cast to avoid warning.
13467
13468 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13469
13470         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13471         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
13472         limit is needed to avoid the exploding of the address space
13473         requirement for secondary heaps.
13474         * malloc/arena.c (HEAP_MAX_SIZE): Define using
13475         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13476
13477 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
13478
13479         [BZ #3018]
13480         * Makerules (depfiles): Handle extra-test-objs the same as
13481         extra-objs.
13482         (common-mostlyclean): Likewise.
13483         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13484         instead.
13485         * elf/Makefile (extra-objs): Likewise.
13486         * stdlib/Makefile (extra-objs): Likewise.
13487
13488 2006-08-14  Eric Blake  <ebb9@byu.net>
13489
13490         [BZ #3044]
13491         * misc/error.h: Assume C89 or better.
13492         * misc/error.c: Likewise.
13493
13494 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13495
13496         [BZ #3040]
13497         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13498         __ASSUME_ATFCTS is defined.
13499
13500 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
13501
13502         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13503         to sort in each call.
13504
13505         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13506         is empty simply return and use next service.
13507         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13508
13509         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
13510         tells us when not finding a charmap file is an error.
13511         * locale/programs/charmap.h: Adjust charmap_read prototype.
13512         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13513         cannot find a charmap.
13514         * locale/programs/localedef.c (main): Adjust charmap_read call.
13515
13516 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
13517
13518         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13519         sysdeps/posix/pause.c implementation instead.
13520
13521 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
13522
13523         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13524         to EPERM.
13525
13526 2006-08-13  Andreas Schwab  <schwab@suse.de>
13527
13528         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13529         Don't clobber caller's LRSAVE.
13530         (_dl_prof_resolve): Likewise.
13531
13532 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
13533
13534         [BZ #1996]
13535         * libio/memstream.c (open_memstream): Allocate initial buffer with
13536         calloc.
13537         * libio/wmemstream.c (open_wmemstream): Likewise.
13538         * libio/strops.c: Pretty printing.
13539         (_IO_str_overflow): Clear uninitialized part of the new buffer.
13540         (enlarge_userbuf): New function.
13541         (_IO_str_seekoff): Call it if seek position is larger than current
13542         buffer.
13543         * libio/wstrops.c: Likewise.
13544         * libio/vasprintf.c: Add comment as to why we do not have to use
13545         calloc instead of malloc to allocate initial buffer.
13546         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13547         * libio/bug-memstream1.c: New file.
13548         * libio/bug-wmemstream1.c: New file.
13549
13550 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13551
13552         * libio/wstrops.c: Remove dead macro definitions and comments.
13553         * libio/strops.c: Likewise.
13554
13555         [BZ #2764]
13556         * login/utmpname.c (__utmpname): Remove unnecessary test.
13557
13558 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
13559
13560         [BZ #2832]
13561         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13562         0s from integers.
13563
13564 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13565
13566         [BZ #2987]
13567         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13568         for CPU clocks.
13569         * sysdeps/unix/clock_settime.c: Add support for platform-specific
13570         setting of CPU clocks.
13571
13572 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13573
13574         [BZ #2841]
13575         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13576         since C99 requires the result to promote to 'int' when uint_least8_t
13577         and uint_least16_t promote to 'int'.
13578
13579 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13580
13581         [BZ #3013]
13582         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13583         lenght of one output field, correct bitmask creation.
13584         * locale/programs/ld-time.c: Add alignment.
13585
13586         [BZ #2997]
13587         * misc/error.c: Add space between program name and message if file
13588         name is missing.
13589
13590 2006-08-03  Eric Blake  <ebb9@byu.net>
13591
13592         [BZ #2998]
13593         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13594
13595 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
13596
13597         * malloc/memusagestat.c: Silence warnings.
13598
13599         * malloc/malloc.c: Dynamically size mmap treshold if the program
13600         frees mmaped blocks.
13601         Patch by Valerie Henson and Arjan van de Ven.
13602
13603 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
13604
13605         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13606         __USE_GNU.
13607
13608         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13609         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13610         (DEF): Don't put the var into .gnu.linkonce.r.* section.
13611         Only provide var definitions in strtol_l (or for *ull*
13612         in strtoll_l).
13613
13614         * stdio-common/bug16.c (tests): New array.
13615         (do_tests): Allow the first hexadecimal digit
13616         to be 1, 2, 4 or 8.  Do 3 additional tests.
13617
13618         * sysdeps/s390/fpu/libm-test-ulps: Update.
13619
13620         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13621         fchownat syscall if available.
13622         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13623         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13624         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13625
13626 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13627
13628         * nis/nis_xdr.c: Avoid some function calls.
13629
13630 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
13631             Ulrich Drepper  <drepper@redhat.com>
13632
13633         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13634         short cut if only one name component is stripped away.
13635
13636 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13637
13638         * nis/nis_call.c: Minor cleanups throughout.
13639         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
13640         (first_shoot): Add search_parent_first parameter.  Only if it is set
13641         search parent server first.
13642         If directory for table found through cold start cache is not the same
13643         as referenced in the cache, don't use it.
13644         (__nisfind_server): Take additional parameter.  Pass it on to
13645         first_shoot.
13646         (__prepare_niscall): Adjust __nisfind_server call.
13647         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
13648         * nis/nis_table.c: Adjust __nisfind_server call.
13649         * nis/nis_lookup.c: Likewise.
13650         (nis_lookup): Don't loop endlessly if name is reduced to ".".
13651
13652 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
13653
13654         [BZ #2182]
13655         * math/s_cacosh.c: Return values from positive branch.
13656         * math/s_cacoshf.c: Likewise.
13657         * math/s_cacoshl.c: Likewise.
13658
13659         [BZ #2883]
13660         * sysvipc/sys/msg.h: Change return value to ssize_t.
13661         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
13662         * sysvipc/msgrcv.c: Likewise.
13663         * include/sys/msg.h: Likewise.
13664
13665         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
13666         test introduced in patch for bz #661.
13667         (getgrouplist): Simplify code a bit.  Don't allocate one additional
13668         element for NEWGROUPS.
13669
13670         [BZ #2908]
13671         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
13672         'f', use '1' as leading digit not '\1'.
13673         * stdio-common/Makefile (tests): Add bug16.
13674         * stdio-common/bug16.c: New file.
13675
13676         [BZ #2914]
13677         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
13678         and don't try to open it.  The patch introducing the macro
13679         contained a bug and used the same file name as the new file
13680         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
13681         this out completely.
13682
13683         [BZ #2926]
13684         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
13685         Patch by Jerry James <Jerry.James@usu.edu>.
13686
13687         * rt/Makefile (tests): Add tst-clock2.
13688         * rt/tst-clock2.c: New file.
13689
13690         [BZ #2978]
13691         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
13692         function and its parameters and pass it to new thread.
13693         (__gai_notify): Add support for alternative waiting for completion.
13694         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
13695         waiting for completion.
13696         * resolv/getaddrinfo_a.c: Likewise.
13697         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
13698         waiting for completion is used.
13699         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
13700         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
13701         * resolv/gai_error.c: Likewise.
13702         * resolv/gai_sigqueue.c: Likewise.
13703
13704 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
13705
13706         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
13707         errno to EBADF and return MACH_PORT_NULL.
13708
13709 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
13710
13711         [BZ #2980]
13712         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
13713
13714 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
13715
13716         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
13717         walk them instead of the symbol table.
13718
13719 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
13720
13721         [BZ #2098]
13722         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
13723         status of NSS calls, not the number of returned entries.
13724
13725         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
13726         request_key, keyctl.
13727
13728 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13729
13730         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
13731
13732 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
13733
13734         * elf/tst-auditmod1.c: Fix typo in #error.
13735
13736 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13737
13738         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
13739
13740         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
13741
13742 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
13743
13744         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
13745         that the directory is empty even on non-POSIX filesystems.
13746
13747 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
13748
13749         * elf/dl-open.c (dl_open_worker): Add branch prediction.
13750
13751         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
13752         the backend NSS module.  If backend setgrent call failed, don't have
13753         internal_setgrent fail.  Just remember this until it is needed.
13754         * nis/nss_compat/compat-pwd.c: Likewise.
13755         * nis/nss_compat/compat-spwd.c: Likewise.
13756
13757 2006-07-30  Roland McGrath  <roland@redhat.com>
13758
13759         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
13760         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
13761         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
13762         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
13763
13764         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
13765         (nanosleep_not_cancel): New macro.
13766         (sigsuspend_not_cancel): new macro.
13767         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
13768         (do_sigsuspend): Define as inline.
13769         (__sigsuspend): Always use do_sigsuspend.
13770         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
13771         * include/signal.h: Declare __sigsuspend_nocancel.
13772         * sysdeps/posix/pause.c
13773         [! NO_CANCELLATION] (__pause_nocancel): New function.
13774
13775         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
13776         * include/time.h (__nanosleep_nocancel): Likewise.
13777
13778 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
13779
13780         * locale/programs/localedef.c (add_to_readlist): Rename local
13781         variables to avoid confusion.
13782
13783         * locale/programs/charmap.c (charmap_read): Emit error message if
13784         charmap couldn't be found or read.
13785
13786 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
13787
13788         * sysdeps/unix/sysv/linux/kernel-features.h: Define
13789         __ASSUME_FUTEX_LOCK_PI.
13790         * include/time.h: Declare __nanosleep_nocancel.
13791         * include/unistd.h: Declare __pause_nocancel.
13792
13793         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
13794         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
13795         get the __stack_chk_fail_local definition when it's needed.
13796
13797 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
13798
13799         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
13800         * dlfcn/bug-atexit3.c: New file.
13801         * dlfcn/bug-atexit3-lib.cc: New file.
13802
13803         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
13804         used when the namespace is not the base namespace.
13805
13806 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
13807
13808         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
13809         (__new_exitfn): Bump it in every successful call.
13810         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
13811         more exit handlers, call them right away.
13812         * stdlib/exit.h: Declare __new_exitfn_called.
13813
13814 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
13815
13816         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
13817         calling registered handler.
13818
13819         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
13820         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13821         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13822         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13823         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13824         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13825         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13826         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13827
13828 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
13829
13830         * elf/dl-lookup.c (dl_new_hash): New functions.
13831         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
13832         value here.  Compute new-style hash value.  Pass new hash value
13833         and reference to variable with the old value to do_lookup_x.
13834         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
13835         old-style hash table.
13836         (_dl_debug_bindings): Pass new hash value and reference to variable
13837         with the old value to do_lookup_x.
13838         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
13839         new-style hash value and change old-style hash value parameter to
13840         be a reference.  Reoganize functions to determine whether
13841         new-style hash table is available.  Only fall back on old-style
13842         table.  If old-style hash value is needed, compute it here.
13843         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
13844         entry.
13845         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
13846         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
13847         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
13848         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
13849         * Makeconfig: If linker supports --hash-style option add it to all
13850         linker command lines to build DSOs.
13851         * config.make.in: Define have-hash-style.
13852         * configure.in: Test whether linker supports --hash-style option.
13853
13854         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
13855         * sysdeps/generic/ldsodefs.h: Adjust prototype.
13856
13857 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
13858
13859         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
13860         auditing.
13861
13862         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
13863         RPATH of main map twice.
13864
13865 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
13866
13867         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
13868         look further, return original strings.
13869         (_nl_find_msg): Do not return found translation if the conversion
13870         failed.  Either signal the string is unusable or that something went
13871         wrong and the original should be used.
13872
13873 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
13874
13875         * string/_strerror.c (__strerror_r): Add __builtin_expect.
13876
13877 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
13878
13879         [BZ #2766]
13880         * misc/insremque.c (insque): Handle prev == NULL.
13881         * misc/Makefile (tests): Add tst-insremque.
13882         * misc/tst-insremque.c: New test.
13883
13884 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
13885
13886         [BZ #2792]
13887         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
13888         conflict with DL_DST_REQUIRED.
13889
13890 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
13891
13892         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
13893         match what Solaris does.
13894
13895 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
13896
13897         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
13898         local_setegid instead of seteuid and setegid.
13899         * sysdeps/generic/local-setxid.h: New file.
13900         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
13901
13902         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
13903
13904         * string/Makefile (tests): Add bug-envz1.
13905         * string/bug-envz1.c: New file.
13906
13907 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
13908
13909         * posix/regex_internal.c (re_string_skip_chars): If no character has
13910         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
13911         to the byte which couldn't be converted.
13912         (re_string_reconstruct): Don't clear valid_raw_len before calling
13913         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
13914         tip_context using re_string_context_at.
13915         * posix/Makefile: Add rules to build and run bug-regex25 test.
13916         * posix/bug-regex25.c: New test.
13917
13918 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
13919
13920         [BZ #2703]
13921         * string/envz.c (envz_strip): Correct erroneously reversed src
13922         and dest parameters to memmove() invocation.
13923
13924 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
13925
13926         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
13927         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
13928         to make sure the database has been already invalidated.
13929         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
13930         after the cache has been invalidated.  Use pthread_mutex_lock rather
13931         than pthread_mutex_trylock if fd != -1.
13932         * nscd/connections.c (invalidate_cache): Add fd argument, write
13933         response to fd if not calling prune_cache, pass fd to prune_cache.
13934         (handle_request): Adjust invalidate_cache caller.
13935         (nscd_run): Pass -1 as fd to prune_cache.
13936
13937 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
13938
13939         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
13940         the correct place.
13941
13942 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
13943
13944         * nscd/nscd.h (struct database_dyn): Add prunelock field.
13945         * nscd/cache.c (prune_cache): Take prunelock before starting the
13946         work.  Just return in case it is already taken.
13947         * nscd/connections.c (dbs): Initialize .prunelock.
13948
13949 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
13950
13951         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
13952         copying.  No need to allocate new array for group members.  Just
13953         move the pointers and update the size.
13954
13955         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
13956         Avoid memory leak in case realloc fails.  Simplification for
13957         better code generation.
13958
13959         Avoid deprecation warning because of libc_hidden_proto for
13960         inet6_option_alloc.
13961         * inet/inet6_option.c (option_alloc): Renamed from
13962         inet6_option_alloc.  Made static.
13963         (inet6_option_alloc): Now a simple wrapper around option_alloc.
13964         (inet6_option_append): Call option_alloc.
13965         * include/netinet/in.h: Remove libc_hidden_proto for
13966         inet6_option_alloc.
13967
13968         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
13969         for cleanup when cb!=NULL [Coverity CID 233].
13970
13971 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
13972
13973         [BZ #2693]
13974         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
13975         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
13976         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
13977         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
13978         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
13979         and inet6_rth_getaddr.
13980         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
13981         array.
13982         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
13983         Mark inet6_option_* interfaces as deprecated.
13984         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
13985         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
13986         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
13987         inet6_rth_segments, and inet6_rth_getaddr.
13988         * inet/inet6_opt.c: New file.
13989         * inet/inet6_rth.c: New file.
13990
13991         * inet/netinet/icmp6.h: Pretty printing.
13992
13993         [BZ #2683]
13994         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
13995
13996 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
13997
13998         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
13999         doing it all here.  When server does not know the answer do not
14000         fail immediate, try parent first.
14001
14002         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14003         overflow test.
14004
14005 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
14006
14007         * nis/nis_call.c (__prepare_niscall): New function.  Split out
14008         from __do_niscall.
14009         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14010         and exported.
14011         (__follow_path): New function.  Split out from nis_list.
14012         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14013         _xdr_nis_result.
14014         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14015         _xdr_nis_result.
14016         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14017         and __follow_path.
14018         * nis/Versions: Export __prepare_niscall, __create_ib_request,
14019         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14020         from libnsl for version GLIBC_PRIVATE.
14021         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14022         Remove entry parameter from _nss_nisplus_parse_pwent and
14023         _nss_nisplus_parse_grent.
14024         * nis/nss_nisplus/nisplus-parser.c: Likewise.
14025         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14026         again.  Rewrite getpwent handling to not use nis_first_entry and
14027         nis_next_entry.  Roll out own niscall handling.
14028         * nis/nss_nisplus/nisplus-grp.c: Likewise.
14029
14030         * sunrpc/xdr_rec.c: Fix typo in comment.
14031
14032 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
14033
14034         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14035         handling.
14036
14037         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14038         to allocate memory for my_pollfd.  Better initialization of
14039         cb_is_running.  Use TEMP_FAILURE_RETRY.
14040
14041         * malloc/memusage.sh (memusageso): Add quotes.
14042         (memusagestat): Likewise.
14043         * debug/xtrace.sh (pcprofileso): Likewise.
14044         (pcprofiledump): Likewise.
14045         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14046         replacement.
14047         * malloc/Makefile ($(objpfx)memusage): Likewise.
14048
14049         * nis/nis_callback.c (__nis_create_callback): Calls to
14050         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
14051         asprintf call fails.
14052
14053         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14054         no uninitialized memory is passed to sendto.
14055
14056 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14057
14058         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14059         of snprintf+strdup.  Handle OOM.
14060         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14061         cb->serv together.  Remove now obsolete free calls.
14062         (__nis_destroy_callback): Remove now obsolete free call.
14063
14064 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
14065
14066         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14067         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14068         and ULA respectively). Set precedence for IPv4 address to 10 as
14069         defined in RFC3484 for preferring IPv6.
14070         * posix/gai.conf: Update to match the new default tables.
14071
14072 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
14073
14074         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14075         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14076         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14077         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14078
14079         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14080         Removed.
14081         (init_nss_interface): Remove initialization of these variables.
14082
14083 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14084
14085         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14086         nis_free_directory forward to avoid duplication.
14087
14088 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
14089
14090         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14091         rec_dirsearch returning NULL.
14092         (first_shoot): Handle __nis_finddirectory returning NULL.
14093         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14094
14095         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14096         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14097
14098 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
14099
14100         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14101         pid changed.
14102
14103 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
14104
14105         * include/rpc/pmap_prot.h: Mark all functions as hidden.
14106
14107         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14108         * nscd/nscd_getgr_r.c: Likewise.
14109
14110         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14111
14112         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14113         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14114
14115         * stdlib/longlong.h (__clz_tab): Mark as hidden.
14116
14117         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14118
14119         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14120
14121         * include/rpc/auth.h: Mark xdr_des_block_internal and
14122         xdr_opaque_auth_internal as hidden.
14123
14124         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14125         hidden.
14126
14127         * include/rpc/xdr.h: Mark all _internal functions as hidden.
14128
14129         * misc/getusershell.c (okshells): Don't use static initializers,
14130         do it dynamically.
14131
14132         * stdlib/fmtmsg.c (keywords): Change type of len element to
14133         uint32_t to not waste space on 64bit machines.
14134
14135         * locale/setlocale.c: Change _nl_category_names into a string.
14136         Add new _nl_category_name_idxs.  Change all users.
14137         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14138         Declare _nl_category_name_idxs.
14139         * locale/findlocale.c: Adjust for _nl_category_names change.
14140         * locale/loadlocale.c: Likewise.
14141         * locale/newlocale.c: Likewise.
14142         * intl/dcigettext.c: Likewise.
14143
14144         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14145         (add_alias2): ...here.  New function.
14146         (__gconv_read_conf): Simplify builtin alias handling.
14147         (builtin_aliases): Convert to string to avoid relocations.
14148         * iconv/gconv_builtin.h: Add comment about correct formatting.
14149
14150 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
14151
14152         * resolv/res_debug.c (loc_ntoa): Make error const.
14153
14154 2006-05-14  Andreas Schwab  <schwab@suse.de>
14155
14156         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14157
14158 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
14159
14160         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14161         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14162         sizeof (cpu_set_t).
14163
14164 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
14165
14166         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14167
14168         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14169
14170         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14171         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14172
14173         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14174         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14175
14176         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14177         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14178         xdr_cback_data.
14179
14180         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14181         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14182         xdr_ypupdate_args.
14183
14184         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14185         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14186
14187         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14188         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14189
14190         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14191         * include/rpcsvc/nis_callback.h: New file.
14192
14193         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14194         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14195
14196         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14197         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14198
14199         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14200         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14201
14202         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14203         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14204
14205         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14206         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14207         xdr_ypdelete_args.
14208
14209         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
14210         __BEGIN_DECLS and __END_DECLS, the header is not installed.
14211
14212         * nis/nis_error.c: Remove table of strings.  Use position
14213         independent mechanism.
14214         * nis/nis_error.h: New file.
14215
14216 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
14217
14218         * locale/programs/ld-time.c (time_finish): If wide era name or
14219         format aren't provided, set both wname and wformat to L"".
14220
14221 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14222
14223         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14224         results if the call was succesful.
14225
14226         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14227
14228         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14229         as hidden.
14230
14231 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14232
14233         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14234
14235 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14236
14237         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14238         caller makes sure this is not the case.
14239         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14240
14241 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14242
14243         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14244         calls.
14245
14246         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14247         [Coverity CID 229, 230]
14248
14249         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14250         DGETTEXT calls.
14251         (hol_help): Likewise.  [Coverity CID 226, 227]
14252
14253         * string/argz-replace.c (__argz_replace): Unconditionally call
14254         free on SRC.  [Coverity CID 225]
14255
14256         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14257         the return value of __nis_default_owner and __nis_default_group,
14258         it has been especially allocated.  [Coverity CID 224]
14259
14260         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14261         searchgroup and searchowner.  Significantly simplified.
14262         (__nis_default_owner): Remove duplication.  Do not locally copy the
14263         string before duplicating it.
14264         (__nis_default_group): Likewise.
14265
14266         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14267         we must clear the variable before calling __nisfind_server.
14268
14269         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14270         nis_getnames.  [Coverity CID 223]
14271
14272         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14273         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14274
14275         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14276         allocate memory for the input to add_bytes.  [Coverity CID 221]
14277
14278         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14279         was allocated here.  [Coverity CID 219, 220]
14280
14281         * posix/getconf.c (print_all): Free confstr data after printing.
14282         [Coverity CID 218]
14283
14284         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14285         list allocation fails.  [Coverity CID 215]
14286
14287         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14288         [Coverity CID 213]
14289
14290         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14291         string is NULL.  [Coverity CID 212]
14292         * argp/Makefile: Add rules to build and run bug-argp1.
14293         * argp/bug-argp1.c: New file.
14294
14295         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14296         end of string.
14297         * stdlib/canonicalize.c (__realpath): Likewise.
14298
14299         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14300         pointer.  [Coverity CID 206]
14301
14302         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14303         in statically linked code.
14304         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14305         statically built code, be prepared to have no link map.
14306         [Coverity CID 205]
14307
14308         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14309         dgettext calls. [Coverity CID 204]
14310
14311         * argp/argp-help.c (struct uparams): Remove valid member.  Change
14312         the one user.
14313         (uparam_names): Reduce size.  Avoid relative relocations.
14314         Moved to read-only segment.
14315         (fill_in_uparams): Update for new layout.
14316
14317         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14318         assumed to always be != NULL. [Coverity CID 202]
14319
14320         * argp/argp-help.c (hol_entry_help): Remove some dead code
14321         [Coverity CID 200].
14322
14323         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14324         away a few more unconditional yperr2nss calls.
14325         (_nss_nis_getservbyname_r): Likewise.
14326
14327 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
14328
14329         * sysdeps/generic/ldsodefs.h: Remove support for non-core
14330         architectures.
14331
14332         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14333         that unused memory passed to sendto is nevertheless initialized.
14334
14335         [BZ #2499]
14336         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14337         possibly unaligned memory accesses.
14338
14339         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14340         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14341         and __putlong respectively.  Correct buffer overflow check for
14342         NS_NOTIFY_OP.
14343
14344         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14345
14346         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14347         (send_dg): Rewrite error handling to be more compact and avoid
14348         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14349
14350         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14351
14352         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14353         instead of ns_get16.
14354         (res_queriesmatch): Likewise.  Minor optimization.
14355
14356         [BZ #2499]
14357         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14358         __libc_res_nsend might reallocate the buffer for the answer.  In
14359         this case we have to reload the HP pointer.
14360
14361 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14362
14363         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14364         some branch prediction hints.
14365
14366         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14367         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14368         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14369         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14370         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14371         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14372         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14373         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14374
14375 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14376
14377         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14378         by a GOT relocation to make Scrt1.o position independent.
14379         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14380
14381         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14382         six system call parameters.
14383         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14384
14385 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14386
14387         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14388         malloc&bzero.
14389
14390         * sunrpc/svc_udp.c (BZERO): Remove definition.
14391         (CALLOC): Define.
14392         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14393
14394         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14395         (des_SPtrans): Use uint32_t type.
14396         (des_skb): Likewise.
14397
14398         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14399
14400 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14401
14402         [BZ #2509]
14403         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14404         on 32-bit arches.
14405
14406 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14407
14408         * locale/programs/ld-address.c (address_finish): Fix one more
14409         place where the iso639 array might be accessed beyond the limits.
14410
14411 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14412
14413         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14414         filling it for the first time.
14415
14416         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14417         Adjust all callers.
14418         Free res object content before returning.
14419
14420         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14421
14422         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14423         client->cl_auth.
14424
14425         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14426         cleanup for initial thread, just the free call on TVP.
14427
14428         * nscd/gai.c (__getline): Define.
14429
14430
14431 See ChangeLog.16 for earlier changes.