Future safety in checking ELF header.
[platform/upstream/glibc.git] / ChangeLog
1 2010-03-18  Ulrich Drepper  <drepper@redhat.com>
2
3         * elf/dl-load.c (open_verify): Extend expected to the full size of the
4         e_ident array.  When loading, check that the fields in e_ident we don't
5         know are zero to allow future extensions.
6
7 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
8
9         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Update %xmm3
10         when exit from loop.
11
12 2010-03-16  Andreas Schwab  <schwab@redhat.com>
13
14         * resolv/res_send.c (__libc_res_nsend): Fix printing of server
15         address in debug statement.
16         (send_dg): Pass correct buffer pointer to DprintQ.
17
18 2010-03-17  Ulrich Drepper  <drepper@redhat.com>
19
20         * libc-abis: Add a few more entries.
21
22 2010-03-16  Ulrich Drepper  <drepper@redhat.com>
23
24         * elf/dl-load.c (VALID_ELF_ABIVERSION): Add additional osabi parameter.
25         Not used here.
26         (open_verify): Modify for extended VALID_ELF_ABIVERSION macro
27         interface.
28         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Add
29         additional osabi parameter.  Only acceept nonzero ABI versions if osabi
30         is Linux.
31         Fix includes.
32         (expected2): Don't explicitly initialize EI_ABIVERSION byte.
33
34         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Update
35         definition to follow generic code.
36
37 2010-03-15  Ulrich Drepper  <drepper@redhat.com>
38
39         * posix/getconf.c: Update copyright year.
40         * nss/getent.c: Likewise.
41         * iconv/iconvconfig.c: Likewise.
42         * iconv/iconv_prog.c: Likewise.
43         * elf/ldconfig.c: Likewise.
44         * catgets/gencat.c: Likewise.
45         * csu/version.c: Likewise.
46         * elf/ldd.bash.in: Likewise.
47         * elf/sprof.c (print_version): Likewise.
48         * locale/programs/locale.c: Likewise.
49         * locale/programs/localedef.c: Likewise.
50         * nscd/nscd.c (print_version): Likewise.
51         * debug/xtrace.sh: Likewise.
52         * malloc/memusage.sh: Likewise.
53         * malloc/mtrace.pl: Likewise.
54         * debug/catchsegv.sh: Likewise.
55
56         * Makerules: Add rule for libc-abis.h.
57         * csu/version.c: Use LIBC_ABIS_STRING string if available.
58         * elf/dl-load.c (VALID_ELF_ABIVERSION): Check using LIBC_ABI_MAX.
59         (open_verify): Only check EI_ABIVERSION bytes using VALID_ELF_HEADER.
60         Add extra call to VALID_ELF_ABIVERSION.
61
62 2010-03-12  Ulrich Drepper  <drepper@redhat.com>
63
64         * sysdeps/unix/sysv/linux/sys/mount.h (UMOUNT_NOFOLLOW): Define.
65
66 2010-03-12  Andreas Schwab  <schwab@redhat.com>
67
68         * elf/dl-dst.h: Include "trusted-dirs.h".
69         (DL_DST_REQUIRED): Take $LIB into account.
70
71 2010-03-11  Roland McGrath  <roland@redhat.com>
72
73         * elf/elf.h (R_X86_64_GOT64, R_X86_64_GOTPCREL64): New macros.
74         (R_X86_64_GOTPC64, R_X86_64_GOTPLT64, R_X86_64_PLTOFF64): New macros.
75
76 2010-03-10  Luis Machado  <luisgpm@br.ibm.com>
77
78         * sysdeps/powerpc/powerpc64/power7/memcpy.S: New file.
79         * sysdeps/powerpc/powerpc32/power7/memcpy.S: New file.
80
81 2010-03-09  David S. Miller  <davem@davemloft.net>
82
83         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handling
84         of R_SPARC_TLS_LE_* needs to use 32-bit loads and stores, not
85         64-bit ones.
86
87         * sysdeps/sparc/sparc32/memcpy.S: Fix build.
88
89         * sysdeps/sparc/sparc32/strlen.S: Optimize.
90         * sysdeps/sparc/sparc64/strlen.S: Likewise.
91         * sysdeps/sparc/sparc32/sparcv9/strlen.S (ASI_PNF, ASI_BLK_P,
92         XCC): Delete definitions, not needed.
93
94 2010-03-07  Ulrich Drepper  <drepper@redhat.com>
95
96         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
97         Little follow-up patch from last change.
98
99 2010-03-06  Ulrich Drepper  <drepper@redhat.com>
100
101         * sysdeps/unix/sysv/linux/internal_statvfs.c: Handle ext4 and logfs.
102         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add entry for logfs.
103
104 2010-02-18  Yann Droneaud  <yann@droneaud.fr>
105
106         * resolv/res_send.c: Fixed DEBUG statements.
107         Moved tmpbuf declaration to block beginning and
108         updated pointer names used in multiple DprintQ() calls
109
110 2010-02-18  H.J. Lu  <hongjiu.lu@intel.com>
111
112         * config.make.in (config-asflags-i686): Define.
113         * configure.in: Substitute libc_cv_as_i686.
114         * sysdeps/i386/configure.in: Check if assembler supports -mtune=i686.
115         * sysdeps/i386/i686/Makefile (CFLAGS-.oX): Add -Wa,-mtune=i686
116         if assembler supports -mtune=i686.
117         (ASFLAGS-.oX): Likewise.
118
119 2010-03-04  Ulrich Drepper  <drepper@redhat.com>
120
121         * elf/elf.h (R_X86_64_SIZE32): Define.
122         (R_X86_64_SIZE64): Define.
123
124 2010-03-02  Richard Guenther  <rguenther@suse.de>
125
126         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): R_X86_64_PC32
127         is sign-extending.
128
129 2010-03-03  Ulrich Drepper  <drepper@redhat.com>
130
131         * sysdeps/unix/sysv/linux/bits/in.h: Add a few more definitions from
132         the kernel headers.
133
134 2010-03-04  David S. Miller  <davem@davemloft.net>
135
136         * sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
137
138         * sysdeps/sparc/sparc32/sparcv8/udiv_qrnnd.S: Delete.
139         * sysdeps/sparc/sparc32/udiv_qrnnd.S: Delete.
140
141 2010-03-03  David S. Miller  <davem@davemloft.net>
142
143         * math/math_private.h (INSERT_WORDS64): Fix argument order.
144
145 2010-03-03  Aurelien Jarno  <aurelien@aurel32.net>
146
147         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
148
149 2010-03-03  David S. Miller  <davem@davemloft.net>
150
151         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
152         pass '1' for 't' argument to sparc_fixup_plt.
153         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
154         Likewise.
155         * sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
156         (sparc_fixup_plt): Document 't' argument.  Enable branch
157         optimization and use v9 branches when possible.  Explain why we
158         cannot unconditionally patch the branch into the first PLT
159         instruction.
160         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
161         argument.  Use v9 branches when possible.  Explain why we can in
162         fact unconditionally use a branch in the first PLT instruction
163         here.
164
165 2010-02-28  Roland McGrath  <roland@redhat.com>
166
167         * elf/elf.h (NT_X86_XSTATE): New macro.
168
169 2010-02-25  David S. Miller  <davem@davemloft.net>
170
171         * sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
172         * sysdeps/sparc/sparc64/align-cpy.S: New.
173         * sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
174         __align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
175         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
176         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
177         Remove.
178         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
179         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
180         Remove.
181         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
182         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
183         Remove.
184
185         * sysdeps/sparc/sparc32/bcopy.c: Delete.
186         * sysdeps/sparc/sparc32/memmove.c: Delete.
187         * sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
188         * sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
189         * sysdeps/sparc/sparc64/bcopy.c: Delete.
190         * sysdeps/sparc/sparc64/memmove.c: Delete.
191         * sysdeps/sparc/sparc64/memcopy.h: New.
192         * sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
193         * sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
194         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
195         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
196         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
197
198         * sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
199         * sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
200         gen-as-const-headers.
201         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
202         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
203         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
204         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
205         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
206         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
207         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
208         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
209         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
210         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
211         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
212         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
213         * sysdeps/sparc/sparc64/multiarch/Makefile: New file.
214         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
215         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
216         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
217         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
218         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
219         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
220         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
221         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
222         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
223         * sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
224         * sysdeps/sparc/sparc64/multiarch/memset.S: New file.
225
226 2010-02-20  H.J. Lu  <hongjiu.lu@intel.com>
227
228         [BZ #11332]
229         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Use cfi_remember_state
230         and cfi_restore_state only if USE_AS_STRNCMP is defined.
231
232 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
233
234         * sysdeps/x86_64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
235
236 2010-02-24  H.J. Lu  <hongjiu.lu@intel.com>
237
238         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
239         (bk_write_less32bytes_2): Renamed to ...
240         (bk_write_less48bytes): This.
241         Use unsigned conditional jumps.
242         Correct unwind info.
243         Use add/sub instead of lea if possible.
244         (shl_0_gobble_cache_loop_tail): Removed.
245         (large_page): Properly adjust ECX.
246
247         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Use unsigned
248         conditional jumps.
249         Correct unwind info.
250
251         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Remove redundant
252         punpcklbw.
253         Use unsigned conditional jumps.
254         (128bytesormore_nt): Renamed to ...
255         (128bytesormore_endof_L1): This.
256         Use add instead of lea if possible.
257         Correct unwind info.
258         * sysdeps/i386/i686/multiarch/memset-sse2.S: Remove redundant
259         punpcklbw.
260         Use unsigned conditional jumps.
261         Use add instead of lea if possible.
262         Correct unwind info.
263
264 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
265
266         [BZ #11319]
267         * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
268         undoing the stream because _IO_FINISH doesn't report failures.
269
270         [BZ #5553]
271         * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
272         (public_pVALLOc): Likewise.
273         Patch by Petr Baudis.
274
275 2010-02-22  Jim Meyering  <meyering@redhat.com>
276
277         * manual/math.texi (BSD Random): Fix a typo: s/are/is/
278
279         * manual/charset.texi: Adjust grammar.
280
281         * manual/errno.texi (Error Messages): Fix doubled-words and typos.
282         * manual/charset.texi (Selecting the Conversion): Likewise.
283         * manual/getopt.texi (Getopt Long Options): Likewise.
284         * manual/memory.texi (Resizing the Data Segment): Likewise.
285         * manual/message.texi (GUI program problems): Likewise.
286         * manual/resource.texi (CPU Affinity): Likewise.
287         * manual/stdio.texi (Streams and Threads): Likewise.
288         * manual/time.texi (High Accuracy Clock): Likewise.
289
290 2009-02-20  David S. Miller  <davem@davemloft.net>
291
292         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
293         Adjust rela->r_offset by l->l_addr when rewriting PLT.
294
295         * sysdeps/sparc/sparc64/memchr.S: Use unsigned branch on greater to
296         test end of buffer.
297
298         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c
299         (__makecontext): Adjust arg counter properly when copying arg
300         stack slots.
301
302 2009-02-20  Joseph Myers  <joseph@codesourcery.com>
303
304         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
305         Adjust rela->r_offset by l->l_addr when rewriting PLT.
306
307 2010-02-19  Carl Fredrik Hammar  <hammy.lite@gmail.com>
308
309         * hurd/hurdioctl.c (tiocsctty): Call `do_tiocsctty' instead of
310         non-existent `tiocsctty_port'.
311
312 2010-02-16  H.J. Lu  <hongjiu.lu@intel.com>
313
314         * sysdeps/i386/i686/multiarch/memcmp.S (memcmp): Use CPUID_OFFSET
315         instead of FEATURE_OFFSET.
316         * sysdeps/i386/i686/multiarch/strcmp.S (strcmp): Likewise.
317
318         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Add alignnments.
319         Fix one unwind info problem.
320
321         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S (less1bytes): Add CFI_POP.
322
323         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Simplify unwind info.
324
325 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
326             Ulrich Drepper  <drepper@redhat.com>
327
328         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Fix typo in unwind info.
329         Clean up a bit.
330
331 2010-02-17  Carl Fredrik Hammar  <hammy.lite@gmail.com>
332
333         * hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in...
334         (tiocsctty_port): ...this new function.
335
336         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
337         `ioctl_handler_t'.
338
339 2010-02-15  Ulrich Drepper  <drepper@redhat.com>
340
341         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
342         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
343         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
344         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
345
346         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Don't fall through to
347         undefined code.
348
349 2010-02-12  H.J. Lu  <hongjiu.lu@intel.com>
350
351         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
352         strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
353         memcmp-c, memcmp-ssse3, and memcmp-sse4.
354         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
355         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
356         * sysdeps/i386/i686/multiarch/memcmp.S: New file.
357         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
358         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
359         * sysdeps/i386/i686/multiarch/strcmp.S: New file.
360         * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
361         * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
362         * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
363         * sysdeps/i386/i686/multiarch/strncmp.S: New file.
364
365 2010-02-12  Luis Machado  <luisgpm@br.ibm.com>
366
367         * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
368         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
369         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
370         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
371         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
372         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
373         * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
374         is not supported.
375         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
376         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
377         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
378         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
379         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
380         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
381         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
382         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
383         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
384         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
385         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
386         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
387         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
388         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
389         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
390         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
391         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
393         Likewise.
394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
395         Likewise.
396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
397         Likewise.
398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
399         Likewise.
400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
401
402 2010-02-12  Alan Modra  <amodra@gmail.com>
403
404         * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
405         Define and use for __powerpc64__ too.
406         [__powerpc__] (TLS_LD): Add r3 to clobbers.
407         [__powerpc__] (TLS_GD): Set asm output.  Make __result r3 reg.
408         [__powerpc64__] (TLS_GD): Make __result r3 reg.
409         [__powerpc64__] (TLS_IE): Relax output constraint.
410
411 2010-02-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
412
413         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
414         instructions cu21 and cu24.  Add well-formedness checking
415         parameter and adjust the software implementation.
416         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
417
418 2010-02-10  Ulrich Drepper  <drepper@redhat.com>
419
420         [BZ #11271]
421         * io/ftw.c (ftw_startup): Close descriptor for initial directory
422         after changing back to it.
423
424 2010-02-05  David S. Miller  <davem@davemloft.net>
425
426         * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
427         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
428         ifunc relocs.
429         (elf_machine_lazy_rel): Likewise.
430         (sparc_fixup_plt): Pull out to...
431         * sysdeps/sparc/sparc32/dl-plt.h: ...here.
432         * sysdeps/sparc/sparc32/dl-irel.h: New file.
433         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
434         ifunc relocs.
435         (elf_machine_lazy_rel): Likewise.
436         (sparc64_fixup_plt): Pull out to...
437         * sysdeps/sparc/sparc64/dl-plt.h: ...here.
438         * sysdeps/sparc/sparc64/dl-irel.h: New file.
439
440 2010-02-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
441
442         * elf/elf.h: Define m68k TLS relocations.
443
444 2010-02-10  Luis Machado  <luisgpm@br.ibm.com>
445
446         * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
447         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
448         * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
449         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
451         64-bit power7 fpu path.
452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
453         32-bit power7 fpu math.
454
455 2010-02-09  Ulrich Drepper  <drepper@redhat.com>
456
457         * sysdeps/i386/rshift.S: More compact unwind information.
458
459         * sysdeps/i386/lshift.S: Fix unwind information.
460
461 2010-02-08  Luis Machado  <luisgpm@br.ibm.com>
462
463         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
464         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
465         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
466         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
467         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
468         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
469         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
470         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
471         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
472         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
473         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
474         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
475
476 2010-02-08  Andreas Schwab  <schwab@redhat.com>
477
478         * include/fenv.h: Add hidden proto for fegetenv.
479         * math/fegetenv.c: Add hidden alias.
480         * sysdeps/i386/fpu/fegetenv.c: Likewise.
481         * sysdeps/ia64/fpu/fegetenv.c: Likewise.
482         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
483         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
484         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
485         * sysdeps/x86_64/fpu/fegetenv.c: Likewise
486         * sysdeps/s390/fpu/fegetenv.c: Likewise.  Remove unused headers.
487
488 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
489
490         [BZ #11230]
491         * sysdeps/ia64/memchr.S: Don't read beyond the last byte
492         during recovery.
493
494 2010-01-26  Andreas Schwab  <schwab@redhat.com>
495
496         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
497         interface.
498         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
499         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
500         utmpx interface.
501
502         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
503         entry for 2.12.
504
505 2010-02-03  Ulrich Drepper  <drepper@redhat.com>
506
507         [BZ #11235]
508         * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
509         S_IMMUTABLE.  Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
510         MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
511         MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
512         MS_ACTIVE, and MS_NOUSER.
513         (MS_RMT_MASK): Update according to current kernels.
514
515         [BZ #11242]
516         * misc/getusershell.c (initshells): Allocate one more byte in input
517         buffer so that fgets doesn't loop undefinitely.
518
519 2010-02-02  Ulrich Drepper  <drepper@redhat.com>
520
521         * stdlib/setenv.c (__add_to_environ): Don't use alloca if
522         __libc_use_alloca tells us not to.  Fix memory leak in an error
523         situation.  Based partially on patch by Jim Meyering.
524
525 2010-01-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
526
527         * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
528         get_phys_pages, get_avphys_pages): Add weak aliases.
529
530 2010-01-25  Andreas Schwab  <schwab@redhat.com>
531
532         * iconv/iconv_prog.c (write_output): Fix check for open failure.
533
534 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
535
536         [BZ #11200]
537         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
538         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
539
540 2010-01-22  Jim Meyering  <jim@meyering.net>
541
542         [BZ #11193]
543         * posix/regexec.c (extend_buffers): Avoid overflow in realloc
544         buffer length computation.
545
546         [BZ #11192]
547         * posix/regexec.c (re_copy_regs): Don't leak when allocation
548         of the start buffer succeeds but allocation of the "end" one fails.
549
550         [BZ #11191]
551         * posix/regexec.c (re_search_2_stub): Check for overflow
552         when adding the sizes of the two strings.
553
554         [BZ #11190]
555         * posix/regexec.c (re_search_internal): Avoid overflow
556         in computing re_malloc buffer size.
557
558         [BZ #11189]
559         * posix/regexec.c (prune_impossible_nodes): Avoid overflow
560         in computing re_malloc buffer size.
561
562         [BZ #11188]
563         * posix/regexec.c (build_trtable): Avoid arithmetic overflow
564         in size calculation.
565
566         [BZ #11187]
567         * posix/regexec.c (re_search_2_stub): Use simpler method than
568         boolean for freeing internal storage.
569
570 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
571
572         * posix/regex_internal.c (re_string_skip_chars): Simplify test for
573         failed mbrtowc call.
574
575 2010-01-22  Jim Meyering  <jim@meyering.net>
576
577         [BZ #11186]
578         * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
579         fits in wchar_t.  Problem reported by Eric Blake.
580
581         [BZ #11185]
582         * posix/regex_internal.c (re_string_reconstruct): Remove declaration
583         and stores into set-but-not-used local, "q".
584
585         [BZ #11184]
586         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
587         detection test.  Patch by Paul Eggert.
588
589         [BZ #11183]
590         * posix/regex_internal.c (re_string_realloc_buffers):
591         Detect and handle internal overflow.  Patch by Paul Eggert
592
593 2010-01-20  Andreas Schwab  <schwab@redhat.com>
594
595         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
596         (CHECK_SP): Fix check for alternate stack.
597         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
598         (CHECK_SP): Likewise.
599
600 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
601
602         * sysdeps/i386/i686/multiarch/memmove.S: Also check
603         bit_Fast_Rep_String when SHARED isn't defined.
604
605 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
606
607         [BZ #11194]
608         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
609
610 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
611
612         * sysdeps/mach/hurd/bits/libc-lock.h
613         (__rtld_lock_recursive_t): New type.
614         (__rtld_lock_initialize): New macro.
615
616 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
617
618         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
619         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
622
623 2010-01-18  Andreas Schwab  <schwab@redhat.com>
624
625         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
626         definitions of O_DSYNC and O_RSYNC.
627
628         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
629         casting d_tag.
630
631         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
632         dynamic entry types.
633
634 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
635
636         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
637         constant.
638         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
639         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
640         overflow.
641         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
642
643         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
644         math_opt_barrier and math_force_eval macros.
645
646 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
647
648         * posix/regcomp.c: Fix a few more cases of ignored return values.
649         * posix/regex_internal.c: Likewise.
650         * posix/regexec.c: Likewise.
651
652         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
653         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
654         if _XOPEN_SOURCE is not defined as well.
655
656 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
657
658         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
659         high gprs kernel facility.
660         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
661         Added high gprs check for DSOs.
662         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
663         new elf header flag.
664
665 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
666
667         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
668         dl_main.
669         * elf/dl-open.c (_dl_sysdep_start): Likewise..
670         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
671         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
672         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
673         started.
674
675 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
676
677         [BZ #11027]
678         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
679         to RFC 2474.
680         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
681
682         [BZ #11141]
683         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
684         addresses.
685
686         [BZ #11127]
687         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
688         re_node_set_insert failure; return REG_ESPACE.
689         Patch by Paul Eggert.
690
691         * bits/confname.h: Make pre-C99-safe.
692
693 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
694
695         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
696         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
697         files are found by GCC.
698
699 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
700
701         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
702         brk, and sbrk.
703
704         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
705         index, and rindex.
706
707         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
708
709         * Versions.def: Add GLIBC_2.12 for libpthread.
710
711         [BZ #11126]
712         * malloc/malloc.c (malloc_info): Initialize malloc if not already
713         done.  Handle empty bin lists.
714
715         * posix/unistd.h: Change getpagesize and getdtablesize declaration
716         visibility some more.
717
718         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
719
720         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
721
722         [BZ #11120]
723         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
724         needed outside libc.
725
726 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
727
728         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
729
730 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
731
732         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
733
734 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
735
736         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
737
738 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
739
740         * conform/data/complex.h-data: Test for POSIX2008.
741
742         * conform/data/ctype.h-data: Fix POSIX testing.
743
744         * conform/data/dirent.h-data: ino_t only needed for XSI.
745
746         * grp/grp.h: Declare getgrent and endgrent for XPG7.
747
748         * conform/data/inttypes.h-data: Use same types as the headers.
749
750         * resolv/netdb.h: Don't define old resolver macros for XPG7.
751
752         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
753
754         * conform/conformtest.pl: Implement tag for allow-header.
755         Fix newline handling in allow-header implementation.
756
757         * conform/data/time.h-data: Use allow-header instead of duplicating
758         information.
759
760         * conform/data/time.h-data: Allow sigevent tag.
761
762         * posix/sched.h: Define time_t and pid_t for XPG7.
763
764 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
765
766         * sysdeps/i386/i686/bcopy.S: New file.
767
768         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
769
770         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
771         and END_CHK.
772         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
773         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
774         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
775
776         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
777
778         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
779         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
780         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
781         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
782         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
783         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
784         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
785         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
786         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
787         * sysdeps/i386/i686/multiarch/bzero.S: New file.
788         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
789         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
790         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
791         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
792         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
793         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
794         * sysdeps/i386/i686/multiarch/memmove.S: New file.
795         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
796         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
797         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
798         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
799         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
800         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
801         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
802         * sysdeps/i386/i686/multiarch/memset.S: New file.
803         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
804
805         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
806         (END_CHK): Likewise.
807
808         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
809         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
810         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
811
812         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
813         for 0x0e and 0x80.
814         (__x86_64_data_cache_size): New.
815         (init_cacheinfo): Set __x86_64_data_cache_size.
816
817         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
818         on bit_Fast_Rep_String for Intel Core i7.
819
820         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
821         (index_Fast_Rep_String): Likewise.
822         (FEATURE_INDEX_1): Likewise.
823         (FEATURE_INDEX_MAX): Likewise.
824         (cpu_features): Add feature.
825
826 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
827
828         * conform/data/sys/select.h-data: Fix up for XPG7.
829
830 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
831
832         * posix/sys/wait.h: Don't define W* macros etc. if
833         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
834
835 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
836
837         * io/sys/stat.h: Declare fchmod for XPG7.
838         * conform/data/sys/stat.h-data: Fix up for XPG7.
839
840         * termios/termios.h: Define pid_t for XPG7.
841
842         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
843         * conform/data/tgmath.h-data: Likewise.
844
845         * conform/data/time.h-data: Fix POSIX tests.
846
847         * conform/data/wchar.h-data: Fix up XPG7 tests.
848
849         * include/features.h: Fix __USE_ISOC95 handling.
850
851         * conform/data/wordexp.h-data: Fix typo in last change.
852
853         * conform/data/unistd.h-data: Fix up older POSIX tests.
854
855         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
856         * posix/unistd.h: Likewise.
857
858         * posix/unistd.h: Include environments.h also for XPG6 and up.
859         Define intptr_t for XPG6 and up.
860         Fix up for XPG7.
861         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
862
863         * conform/data/sys/types.h-data: Fix up for XPG7.
864
865         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
866         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
867         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
868         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
869         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
870         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
871         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
872         * sysdeps/unix/sysv/bits/stat.h: Likewise.
873         * sysdeps/mach/hurd/bits/stat.h: Likewise.
874
875         * bits/confname.h: Fix typo in last change.
876
877         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
878
879 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
880
881         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
882         and SA_RESETHAND now available in Base.
883         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
884         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
885         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
886         * conform/data/signal.h-data: Update for XPG7.
887
888         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
889
890         * string/strings.h: Don't declare obsolete functions for XPG7.
891         Declare ffs only for XSI.
892         * conform/data/strings.h-data: Update for XPG7.
893
894 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
895
896         [BZ #11125]
897         * libio/stdio.h: Define va_list, off_t, and ssize_t.
898
899         * posix/glob.h: Define size_t.
900
901         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
902
903         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
904
905 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
906
907         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
908         be self-contained.
909
910         * conform/data/stdio.h-data: Expect off_t and ssize_t.
911
912 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
913
914         * libio/stdio.h: Define va_list also for XPG7.
915
916         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
917         * conform/data/ctype.h-data: Likewise.
918         * conform/data/dirent.h-data: Likewise.
919         * conform/data/errno.h-data: Likewise.
920         * conform/data/fcntl.h-data: Likewise.
921         * conform/data/fmtmsg.h-data: Likewise.
922         * conform/data/fnmatch.h-data: Likewise.
923         * conform/data/ftw.h-data: Likewise.
924         * conform/data/glob.h-data: Likewise.
925         * conform/data/grp.h-data: Likewise.
926         * conform/data/iconv.h-data: Likewise.
927         * conform/data/langinfo.h-data: Likewise.
928         * conform/data/libgen.h-data: Likewise.
929         * conform/data/limits.h-data: Likewise.
930         * conform/data/locale.h-data: Likewise.
931         * conform/data/math.h-data: Likewise.
932         * conform/data/monetary.h-data: Likewise.
933         * conform/data/mqueue.h-data: Likewise.
934         * conform/data/ndbm.h-data: Likewise.
935         * conform/data/netdb.h-data: Likewise.
936         * conform/data/pthread.h-data: Likewise.
937         * conform/data/pwd.h-data: Likewise.
938         * conform/data/regex.h-data: Likewise.
939         * conform/data/sched.h-data: Likewise.
940         * conform/data/search.h-data: Likewise.
941         * conform/data/semaphore.h-data: Likewise.
942         * conform/data/setjmp.h-data: Likewise.
943         * conform/data/signal.h-data: Likewise.
944         * conform/data/spawn.h-data: Likewise.
945         * conform/data/stdio.h-data: Likewise.
946         * conform/data/stdlib.h-data: Likewise.
947         * conform/data/string.h-data: Likewise.
948         * conform/data/strings.h-data: Likewise.
949         * conform/data/sys/ipc.h-data: Likewise.
950         * conform/data/sys/msg.h-data: Likewise.
951         * conform/data/sys/resource.h-data: Likewise.
952         * conform/data/sys/sem.h-data: Likewise.
953         * conform/data/sys/shm.h-data: Likewise.
954         * conform/data/sys/socket.h-data: Likewise.
955         * conform/data/sys/stat.h-data: Likewise.
956         * conform/data/sys/time.h-data: Likewise.
957         * conform/data/sys/types.h-data: Likewise.
958         * conform/data/sys/uio.h-data: Likewise.
959         * conform/data/sys/wait.h-data: Likewise.
960         * conform/data/syslog.h-data: Likewise.
961         * conform/data/tar.h-data: Likewise.
962         * conform/data/termios.h-data: Likewise.
963         * conform/data/time.h-data: Likewise.
964         * conform/data/ulimit.h-data: Likewise.
965         * conform/data/unistd.h-data: Likewise.
966         * conform/data/utmpx.h-data: Likewise.
967         * conform/data/wchar.h-data: Likewise.
968         * conform/data/wctype.h-data: Likewise.
969         * conform/data/wordexp.h-data: Likewise.
970
971         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
972         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
973         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
974         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
975         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
976         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
977         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
978         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
979         * sysdeps/unix/sysv/bits/stat.h: Likewise.
980         * sysdeps/mach/hurd/bits/stat.h: Likewise.
981
982         * stdlib/stdlib.h: Define wait-related bits for XPG7.
983         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
984         Declare mkstemp and getsubopt for XPG7.
985         Declare posix_openpt for XPG6 XSI.
986
987         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
988         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
989
990         * string/string.h: Declare strdup for XPG7.
991
992 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
993
994         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
995         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
996
997         * dirent/dirent.h: Really fix feature selection.
998
999         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
1000         Fix all users.
1001         * locale/C-address.c: Fix all users.
1002         * locale/C-collate.c: Likewise.
1003         * locale/C-ctype.c: Likewise.
1004         * locale/C-identification.c: Likewise.
1005         * locale/C-measurement.c: Likewise.
1006         * locale/C-messages.c: Likewise.
1007         * locale/C-monetary.c: Likewise.
1008         * locale/C-name.c: Likewise.
1009         * locale/C-numeric.c: Likewise.
1010         * locale/C-paper.c: Likewise.
1011         * locale/C-telephone.c: Likewise.
1012         * locale/C-time.c: Likewise.
1013         * locale/findlocale.c: Likewise.
1014         * locale/global-locale.c: Likewise.
1015         * locale/loadarchive.c: Likewise.
1016         * locale/loadlocale.c: Likewise.
1017         * locale/nl_langinfo_l.c: Likewise.
1018         * locale/setlocale.c: Likewise.
1019         * locale/xlocale.c: Likewise.
1020         * locale/xlocale.h: Likewise.
1021         * stdio-common/vfscanf.c: Likewise.
1022         * stdlib/strfmon_l.c: Likewise.
1023         * stdlib/strtod_l.c: Likewise.
1024         * stdlib/strtol_l.c: Likewise.
1025         * string/strcoll_l.c: Likewise.
1026         * string/strxfrm_l.c: Likewise.
1027         * time/alt_digit.c: Likewise.
1028         * time/asctime.c: Likewise.
1029         * time/era.c: Likewise.
1030         * time/lc-time-cleanup.c: Likewise.
1031         * time/strftime_l.c: Likewise.
1032         * time/strptime_l.c: Likewise.
1033         * wcsmbs/wcsmbsload.c: Likewise.
1034         * wcsmbs/wcsmbsload.h: Likewise.
1035
1036         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
1037         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
1038         for XPG7.
1039         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1040         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1041         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1042         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1043         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1044         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1045
1046 2010-01-07  Roland McGrath  <roland@redhat.com>
1047
1048         * elf/elf.h (PN_XNUM): New macro.
1049
1050         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
1051         literal 2.
1052
1053 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
1054
1055         * dirent/dirent.h: Fix typo in feature selection macro use.
1056
1057 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
1058
1059         [BZ #11115]
1060         * stdlib/tst-makecontext3.c: New file.
1061         * stdlib/Makefile (tests): Add new test.
1062
1063         * stdlib/tst-setcontext.c (check_called): Fix a typo.
1064
1065 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
1066
1067         * configure.in: Enable multi-arch by default if the assembler
1068         supports gnu_indirect_function symbol type and the architecture
1069         supports it.
1070
1071 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
1072
1073         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
1074         is defined.
1075
1076 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1077
1078         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
1079         MACH_PORT_NULL when id != cttyid.
1080
1081 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1082
1083         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
1084         __mach_port_deallocate on rootdevid.
1085
1086 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1087
1088         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
1089         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
1090         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1091         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
1092
1093 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
1094
1095         [BZ #10992]
1096         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
1097         Patch by Eric Blake <ebb9@byu.net>.
1098
1099 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
1100
1101         [BZ #11093]
1102         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
1103         POLLWRBAND also for POSIX 2008.
1104         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
1105         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
1106
1107         * include/link.h (struct link_map): Move l_used into its own word.
1108         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
1109         still zero.
1110         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
1111         never really used.
1112
1113 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
1114
1115         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
1116         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1117         check processor feature.
1118         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1119         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1120         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
1121         (index_SSE2): Likewise.
1122
1123 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
1124
1125         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
1126         if __ASSEMBLER__ is defined.
1127         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
1128         (bit_SSE4_2): Likewise.
1129         (index_SSSE3): Likewise.
1130         (index_SSE4_2): Likewise.
1131         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
1132         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1133         check processor feature.
1134         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1135         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1136         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1137         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1138         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1139         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1140         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1141
1142 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1143
1144         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
1145
1146 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
1147
1148         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
1149
1150 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
1151
1152         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
1153         O_DSYNC to match 2.6.33+ kernels.
1154         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1155         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1156         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1157         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1158         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1159         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1160
1161 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
1162
1163         [BZ #11000]
1164         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
1165         *herrnop before returning.
1166         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
1167         Likewise.
1168         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
1169         TRYAGAIN errors separately.
1170         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
1171         *name4_r after functions.
1172
1173 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
1174
1175         [BZ #11046]
1176         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
1177         version check.
1178
1179 2009-11-05  Bruno Haible  <bruno@clisp.org>
1180
1181         [BZ #11056]
1182         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
1183         argv argument as non-NULL.
1184         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
1185
1186 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
1187
1188         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
1189         recvmmsg.
1190         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
1191         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
1192
1193 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1194
1195         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
1196         registers.
1197         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
1198         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
1199         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
1200
1201 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
1202
1203         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
1204         SCHED_RESET_ON_FORK.
1205
1206 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
1207
1208         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
1209         only used on truly ancient kernel if configuration requires a more
1210         recent kernel.
1211
1212 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
1213
1214         [BZ #3662]
1215         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
1216         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
1217
1218         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
1219         pass it on to __ptsname_internal.
1220         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
1221         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
1222         All the code from __ptsname_r but take additional parameter.  Use that
1223         instead of pointer to local stat64 variable.
1224         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
1225         variable.
1226         * include/stdlib.h: Declare __ptsname_internal.
1227
1228         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
1229         before the exec.
1230         * sysdeps/unix/sysv/linux/grantpt.c: New file.
1231         * login/programs/pt_chown.c (main): Don't print message on errors
1232         when doing real work.
1233
1234         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
1235         once.
1236
1237         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
1238         irel relocations split out from...
1239         (__libc_csu_init): ...here.
1240         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
1241
1242 2009-11-23  Andreas Schwab  <schwab@redhat.com>
1243
1244         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
1245         for timestamps also if __USE_XOPEN2K8.
1246         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1247         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1248         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1249         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1250
1251 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
1252
1253         * nscd/connections.c (restart): Try harder to re-exec.
1254
1255         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
1256
1257         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
1258         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
1259         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
1260         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
1261         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
1262         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
1263
1264         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
1265         Define.
1266         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
1267
1268 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
1269
1270         [BZ #10162]
1271         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
1272         than software pipeline.  Properly recover from shorter read.
1273
1274 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
1275
1276         [BZ #10958]
1277         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
1278         initialized before using it.
1279         (_IO_putwc_unlocked): Likewise.
1280
1281         [BZ #10918]
1282         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
1283         in cast to not throw away const-ness of parameters.
1284         (__CPU_EQUAL_S): Likewise.
1285         (__CPU_OP_S): Likewise.
1286
1287         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
1288         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
1289         this gratuitous change and we have to keep compatibility.
1290         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1291         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1292         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1293         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1294         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1295         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1296
1297 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1298
1299         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
1300         of parameters of sync_file_range.
1301         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1302         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1303         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1304         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1305         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1306         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1307
1308 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
1309
1310         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1311         Implement using sync_file_range2 syscall if __NR_sync_file_range2
1312         is defined.
1313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
1314         file.
1315
1316 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
1317
1318         * posix/bug-regex30.c: New file.
1319         * posix/Makefile: Add rules to build and run bug-regex30.
1320         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
1321         character lead bytes when there is a range in a COMPLEX_BRACKET.
1322         Reported by Oleg Bylatov.
1323
1324 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1325
1326         [BZ #10969]
1327         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
1328         * locale/tst-duplocale.c: New file.
1329         * locale/Makefile (tests): Add tst-duplocale.
1330
1331         [BZ #10968]
1332         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
1333         Patch by Bruno Haible <bruno@clisp.org>.
1334         * locale/tst-locname.c: New file.
1335         * locale/Makefile (tests): Add tst-locname.
1336
1337         [BZ #10972]
1338         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
1339         constants from recent kernels.
1340         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1341         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1342         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1343         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1344         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1345         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1346
1347 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1348
1349         [BZ #10162]
1350         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1351         software pipeline.
1352
1353 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
1354
1355         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1356         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1357         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1358
1359 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
1360
1361         * posix/bug-regex29.c: Include stdio.h.
1362
1363 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
1364
1365         [BZ #10939]
1366         * Versions.def: Define GLIBC_2.12 for libc.
1367         * manual/errno.texi: Add ERFKILL entry.
1368         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1369         for 2.12.
1370         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1371         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1372
1373         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1374         F_GETOWN_EX definitions according to corrected kernel definitions.
1375         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1376         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1377         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1378         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1379         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1380         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1381
1382 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
1383
1384         * version.h: Bump for 2.12 development.
1385
1386 2009-11-10  Andreas Schwab  <schwab@redhat.com>
1387
1388         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1389         out of buffer space.
1390         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1391         map_v4v6_hostent running out of space.
1392
1393 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
1394
1395         * string/bits/string3.h (memset): If the second parameter is constant
1396         and zero there is likely no transposition.
1397         Patch by Caolan McNamara <caolanm@redhat.com.
1398
1399 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
1400
1401         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1402         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1403
1404 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
1405
1406         * malloc/memusagestat.c (main): Fix spelling in an error message.
1407
1408 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1409
1410         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1411         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1412
1413 2009-11-03  Andreas Schwab  <schwab@redhat.com>
1414
1415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1416         readahead.
1417
1418 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
1419
1420         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1421         relocate opd entry when resolving prelink conflicts.
1422
1423 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
1424
1425         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1426         when -D_FILE_OFFSET_BITS=64.
1427
1428         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1429         of last two arguments when -D_FILE_OFFSET_BITS=64.
1430         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1431         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1432         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1433         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1434         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1435         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1436
1437 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1438
1439         [BZ #4457]
1440         * sysdeps/generic/libgcc_s.h: New file.
1441         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1442
1443 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
1444
1445         * malloc/hooks.c (free_check): Restore locking and call _int_free
1446         appropriately.
1447
1448 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1449
1450         * version.h (VERSION): Bump for 2.11 release.
1451         * include/features.h (__GLIBC_MINOR__): Bump to 11.
1452
1453         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1454
1455         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1456
1457         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1458         to avoid warning.
1459         * stdlib/tst-strtoll.c (tests): Likewise.
1460
1461         [BZ #9986]
1462         * time/strftime_l.c (__strftime_internal): Allow %OC.
1463
1464         * misc/mkostemps.c: New file.
1465         * misc/mkostemps64.c: New file.
1466
1467 2009-10-30  Andreas Schwab  <schwab@redhat.com>
1468
1469         * locale/programs/locale-spec.c: Include <error.h> and
1470         <libintl.h>.
1471
1472         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1473
1474 2009-10-28  Roland McGrath  <roland@redhat.com>
1475
1476         * Makefile (dist-prepare): New target.
1477         (tag-for-dist): Target removed.
1478         (glibc-%.tar): Pattern rule removed.
1479         (%.tar): New pattern rule, does simple use of git archive.
1480         (dist-version): Remove variable definition.
1481         (dist): Just depend on that.  Add .tar.xz dependency.
1482         If dist-version variable not set on command line, depend on
1483         dist-prepare, re-invoke with dist-version set via git describe.
1484
1485         * Makerules (%.xz): New pattern rule.
1486
1487 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
1488
1489         * elf/ifuncdep2.c: Include ifunc-sel.h.
1490         (global): Delete.
1491         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1492         * elf/ifuncmain1.c (global): Delete.
1493         * elf/ifuncmain1vis.c: Likewise.
1494         * elf/ifuncmain2.c: Likewise.
1495         * elf/ifuncmain5.c: Likewise.
1496         * elf/ifuncmod3.c: Likewise.
1497         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1498         (foo_ifunc): Use ifunc_one.
1499         * elf/ifuncmain7.c: Likewise.
1500         * elf/ifuncmod1.c: Include ifunc-sel.h.
1501         (global): Define protected var.
1502         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1503         * elf/ifuncmod5.c: Likewise.
1504         * sysdeps/generic/elf/ifunc-sel.h: New file.
1505         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1506
1507 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
1508
1509         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1510         (R_PPC_REL16*): Correct comments.
1511         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1512         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1513          R_PPC64_REL16_HA): Define.
1514         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1515         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1516         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1517         Delete unused "reloc" param.
1518         (__process_machine_rela): Handle R_PPC_IRELATIVE.
1519         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1520         Delete "reloc" param.
1521         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1522         R_PPC_IRELATIVE.
1523         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1524         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1525         relocations.
1526
1527 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1528
1529         [BZ #10315]
1530         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1531         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1532         UDP_ENCAP_L2TPINUDP.
1533
1534         [BZ #10349]
1535         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1536         parameter, specifying length of prefix.
1537         * stdio-common/tempname.c: Likewise.
1538         * include/stdio.h: Adjust prototypes.
1539         * libio/oldtmpfile.c: Adjust caller.
1540         * misc/mkdtemp.c: Likewise.
1541         * misc/mkostemp.c: Likewise.
1542         * misc/mkostemp64.c: Likewise.
1543         * misc/mkstemp.c:  Likewise.
1544         * misc/mkstemp64.c: Likewise.
1545         * misc/mktemp.c: Likewise.
1546         * stdio-common/tempnam.c: Likewise.
1547         * stdio-common/tmpfile.c: Likewise.
1548         * stdio-common/tmpnam.c: Likewise.
1549         * stdio-common/tmpnam_r.c: Likewise.
1550         * misc/mkstemps.c: New file.
1551         * misc/mkstemps64.c: New file.
1552         * stdlib/stdlib.h: Add prototypes.
1553         * misc/Makefile (routines): Add mkstemps and mkstemps64.
1554         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1555
1556 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1557
1558         * locale/iso-639.def: Add sml entry.
1559
1560         [BZ #10391]
1561         * resolv/res_send.c (send_dg): Initialize resplen.
1562
1563         [BZ #10446]
1564         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1565         definition to the kernel's.
1566         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1567
1568 2009-08-18  Anders Johansson  <ajohansson@novell.com>
1569
1570         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1571         offsets and record sizes in assert()s and response sending.
1572         * nscd/grpcache.c: Likewise.
1573         * nscd/hstcache.c: Likewise.
1574         * nscd/initgrcache.c: Likewise.
1575         * nscd/pwdcache.c: Likewise.
1576
1577 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1578
1579         [BZ #10540]
1580         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1581         /etc/hosts does not exist set errnop and herrnop appropriately.
1582         Patch by Steve Langasek <vorlon@debian.org>.
1583
1584         [BZ #10553]
1585         * malloc/malloc.c (malloc_info): Fix typos in format strings.
1586         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1587
1588         [BZ #10564]
1589         * login/utmp_file.c (TIMEOUT): Increase to 10.
1590
1591         [BZ #10609]
1592         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1593         for file names in case the syscall is not available.
1594         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1595         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1596         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1597         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1598         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1599         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1600         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1601         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1602         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1603         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1604         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1605         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1606         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1607         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1608         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1609         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1610         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1611
1612         [BZ #10643]
1613         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1614         creation filed, remove the request from the 'requests' list and signal
1615         the caller that the request is finished.
1616
1617         [BZ #10692]
1618         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1619         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1620
1621         [BZ #10713]
1622         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1623         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1624
1625         [BZ #10780]
1626         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1627         overflows the int return type.
1628
1629         [BZ #10717]
1630         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1631         have to compute maxsize_total, we have to update the variables, and
1632         the also_total handling must happen after the repair.
1633
1634         [BZ #10742]
1635         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1636         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1637
1638 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1639
1640         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1641         errno is always set when returning unsuccessfully.
1642
1643 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1644
1645         * malloc/memusage.c (update_data): Fix index wraparound handling
1646         so that buffer_cnt is actually reset.
1647
1648 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1649
1650         [BZ #10784]
1651         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1652         of the directory we look at into the static buffer if there is one
1653         at the start of the loop.
1654
1655         [BZ #10789]
1656         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1657         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1658
1659         [BZ #10840]
1660         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1661         __ASSUME_F_GETOWN_EX.
1662         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1663         if possible.
1664         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1665
1666         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1667         and f_owner_ex.
1668         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1669         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1670         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1671         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1672         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1673         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1674
1675         [BZ #10847]
1676         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1677         getutmpx symbol.
1678
1679         [BZ #10823]
1680         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1681         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
1682
1683 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
1684
1685         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1686
1687 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1688
1689         [BZ #10817]
1690         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1691         Reported by Ray Chason.
1692
1693 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1694
1695         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1696         strend-sse4.
1697         * sysdeps/x86_64/multiarch/strchr.S: New file.
1698         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1699         * sysdeps/x86_64/multiarch/strrchr.S: New file.
1700
1701 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1702
1703         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1704
1705 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1706
1707         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1708         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1709         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1710         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1711         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1712         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1713         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1714         __ieee751_expl to handle overflow.
1715
1716 2009-10-14  David S. Miller  <davem@davemloft.net>
1717
1718         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1719         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1720
1721 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1722
1723         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1724         !USE_MULTIARCH.
1725
1726 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1727
1728         [BZ #10730]
1729         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1730         Patch in part by Steve Ward <planet36@gmail.com>.
1731
1732         [BZ #10731]
1733         * stdlib/rand_r.c: Fix typo.
1734
1735         * po/cs.po: Update from translation team.
1736
1737 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1738
1739         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1740         returning if RTLD_NOLOAD.
1741
1742 2009-10-06  Roland McGrath  <roland@redhat.com>
1743
1744         * sysdeps/x86_64/multiarch/strstr-c.c
1745         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1746
1747         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1748         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1749
1750         * sysdeps/x86_64/multiarch/init-arch.h
1751         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1752         (HAS_CPU_FEATURE): New macro.
1753         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1754         * sysdeps/x86_64/multiarch/init-arch.c
1755         (__get_cpu_features): #undef it before definition.
1756
1757 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1758
1759         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1760         first_weekday to 1 and first_workday to 2.
1761
1762 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1763
1764         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1765         F_GETOWN_EX.
1766         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1767         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1768         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1769         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1770         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1771         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1772
1773 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1774
1775         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1776         * stdio-common/vfprintf.c: Likewise.
1777
1778 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1779
1780         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1781         (mkdirat): Call __directory_name_split_at instead of
1782         __directory_name_split.
1783
1784 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1785
1786         * locale/programs/locale-spec.c (locale_special): If nothing matches
1787         fail with an appropriate message.
1788
1789 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1790
1791         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1792         and XX.
1793
1794 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1795
1796         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1797         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1798
1799 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1800
1801         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1802
1803 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1804
1805         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1806         character size elements in step data.
1807
1808 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1809
1810         * po/hu.po: Update from translation team.
1811         * po/vi.po: Likewise.
1812
1813 2009-09-19  Roland McGrath  <roland@redhat.com>
1814
1815         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1816
1817 2009-09-15  Roland McGrath  <roland@redhat.com>
1818
1819         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1820         * nptl/sysdeps/pthread/configure: Regenerated.
1821         * nptl/sysdeps/x86_64/configure: Regenerated.
1822         * sysdeps/unix/sysv/linux/configure: Regenerated.
1823         * sysdeps/x86_64/elf/configure: Regenerated.
1824
1825         * Makefile (autoconf-it): Set execute bit only on top-level configure.
1826
1827         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1828         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1829         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1830         * configure: Regenerated.
1831
1832 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
1833
1834         * posix/getconf.c (main): Handle -- on command line.
1835
1836 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
1837
1838         * configure.in: Support binutils 2.100 and 3.0.
1839
1840 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
1841
1842         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1843         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1844         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1845         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1846
1847 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
1848
1849         * locale/programs/ld-collate.c (struct locale_collate_t): Add
1850         unnamed_section_defined field.
1851         (collate_read): Test and set unnamed_section_defined.
1852
1853         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1854         _POSIX2_LINE_MAX.
1855
1856 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1857
1858         * configure.in: Support binutils 2.20.
1859
1860 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
1861
1862         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1863         __strstr_ia32): Add attribute_hidden.
1864
1865 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1866
1867         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1868         parsing of group entry.
1869
1870 2009-09-02  Andreas Schwab  <schwab@redhat.com>
1871
1872         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1873         external buffer.  Always discard readahead in internal buffer.
1874         * libio/Makefile (tests): Add bug-wsetpos.
1875         * libio/bug-wsetpos.c: New file.
1876
1877 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1878
1879         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1880         Add attribute_hidden.
1881         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1882         __strcasestr_sse2): Likewise.
1883         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1884         (__fma_fma): Make static.
1885         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1886         (__fmaf_fma): Make static.
1887
1888 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1889
1890         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1891         reformulate in-buffer optimisation check to match code in
1892         _IO_new_file_seekoff.
1893
1894 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1895
1896         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1897         to srwi in 32-bit memcpy for power6.
1898
1899 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1900
1901         * include/stdio.h: Declare hidden proto for fflush.
1902         * libio/iofflush.c: Add hidden weak alias for fflush.
1903
1904 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1905
1906         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1907         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1908
1909 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1910
1911         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1912
1913 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1914
1915         [BZ #10560]
1916         * malloc/malloc.c: Add local assert definition to avoid problems with
1917         memory allocation in the real one.
1918
1919 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1920
1921         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1922         Removed.
1923         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1924         turn off SSSE3 on Atom.
1925
1926 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1927
1928         * stdlib/tst-strtol.c (tests): More tests.
1929         * stdlib/tst-strtoll.c (tests): Likewise.
1930
1931 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1932
1933         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1934
1935         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1936
1937 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1938
1939         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1940         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1941
1942         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1943
1944         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1945
1946         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1947
1948 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
1949
1950         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1951
1952 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1953
1954         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1955         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
1956
1957         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
1958
1959         * sysdeps/x86_64/fpu/s_signbit.S: New file.
1960         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
1961
1962         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
1963         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
1964
1965         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
1966         leftover YMM_SIZE definition.
1967
1968 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1969
1970         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
1971         union.
1972         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
1973         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
1974         Redefine.
1975         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
1976
1977         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
1978         and SET_FLOAT_WORD definitions.
1979
1980 2009-08-24  Roland McGrath  <roland@redhat.com>
1981
1982         * sysdeps/unix/syscall-template.S: New file.
1983         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
1984         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
1985         (compile-syscall): Pass mkdep and -g options as normal.
1986         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
1987         (common-generated): Don't add them here.
1988
1989 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
1990
1991         * math/s_fdim.c: In case of overflows set errno.
1992         * math/s_fdimf.c: Likewise.
1993         * math/s_fdiml.c: Likewise.
1994
1995         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
1996         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
1997         are using the inline optimizations.
1998
1999         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
2000         (__signbitf): Likewise.
2001
2002 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
2003
2004         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
2005         terminated.
2006         * posix/Makefile (tests): Add bug-regex29.
2007         * posix/bug-regex29.c: New file.
2008
2009         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
2010         older POSIX versions are selected.
2011
2012         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
2013         as well.
2014         * stdio-common/printf_fphex.c: Likewise.
2015         * stdio-common/tstdiomisc.c: Add more tests.
2016
2017         * locale/locale.h: Include xlocale.h and the thread-local locale
2018         declarations for XPG7, not XPG6.
2019
2020 2009-08-21  Andreas Schwab  <schwab@redhat.com>
2021
2022         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
2023         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
2024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
2025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
2026         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
2027         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2028
2029 2009-08-20  Roland McGrath  <roland@redhat.com>
2030
2031         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
2032         Use l_addr instead of l_map_start (dli_fbase).
2033         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
2034         address when there is no proximate symbol.
2035         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
2036         Likewise.
2037
2038 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
2039
2040         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
2041
2042 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
2043
2044         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
2045         Also handle SIGINT.  In that case only do the cleanup and then
2046         re-raise the signal.
2047         (main): Install handler for SIGINT.
2048
2049 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2050
2051         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
2052         clobber list.
2053
2054 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2055
2056         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
2057         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
2058         tst-auditmod7b.c.
2059         (tests): Add tst-audit6 tst-audit7.
2060         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
2061         tst-auditmod7a tst-auditmod7b.
2062         ($(objpfx)tst-audit6): New.
2063         ($(objpfx)tst-audit6.out): Likewise.
2064         ($(objpfx)tst-audit7): Likewise.
2065         ($(objpfx)tst-audit7.out): Likewise.
2066         (tst-audit6-ENV): Likewise.
2067         (tst-audit7-ENV): Likewise.
2068         (CFLAGS-tst-auditmod6b.c): Likewise.
2069         (CFLAGS-tst-auditmod6c.c): Likewise.
2070         (CFLAGS-tst-auditmod7b.c): Likewise.
2071         * elf/tst-audit6.c: New file.
2072         * elf/tst-audit7.c: New file.
2073         * elf/tst-auditmod6a.c: New file.
2074         * elf/tst-auditmod6b.c: New file.
2075         * elf/tst-auditmod6c.c: New file.
2076         * elf/tst-auditmod7a.c: New file.
2077         * elf/tst-auditmod7b.c: New file.
2078         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2079         saving and restoring SSE/AVX registers to ...
2080         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2081
2082 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2083
2084         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
2085         only if SHARED is defined.
2086         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
2087
2088 2009-08-03  Jim Meyering  <meyering@redhat.com>
2089
2090         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
2091
2092 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
2093
2094         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
2095         section as the other functions for this architecture.
2096         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2097
2098 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
2099
2100         * sysdeps/x86_64/strcmp.S: Add support to compile with
2101         USE_SSSE3.  In this case palignr is used.
2102         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
2103         available but SSSE3 is, pick __str{,n}cmp_ssse3.
2104         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
2105         Add strcmp-ssse3 and strncmp-ssse3.
2106         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
2107         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
2108
2109         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
2110         warning through fake initialization.
2111
2112 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2113
2114         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
2115
2116 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2117
2118         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
2119         unique symbols.
2120
2121 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
2122
2123         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
2124         EBX from EAX = 1.  Handle EAX = 11.
2125
2126 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2127
2128         * Makefile (TAGS): Use separate sed -e expressions to avoid \
2129         inside ''.
2130
2131 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
2132
2133         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
2134         hidden IFUNC functions.
2135         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2136
2137         * sysdeps/i386/i686/multiarch/strlen.S: New file.
2138
2139         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
2140         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
2141         strcasestr-c.
2142         (CFLAGS-strcspn-c.c): Define.
2143         (CFLAGS-strpbrk-c.c): Define.
2144         (CFLAGS-strspn-c.c): Define.
2145         (CFLAGS-strstr.c): Define.
2146         (CFLAGS-strcasestr.c): Define.
2147         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
2148         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
2149         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
2150         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
2151         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
2152         * sysdeps/i386/i686/multiarch/strspn.S: New file.
2153         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
2154         * sysdeps/i386/i686/multiarch/strstr.c: New file.
2155         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
2156         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
2157         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
2158         -16L instead of 0xfffffffffffffff0L.
2159         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
2160
2161 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
2162
2163         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
2164
2165 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
2166
2167         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
2168         another rewrite.  Much smaller and faster.
2169         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2170
2171         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
2172         ss_flags from the correct location.
2173
2174 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2175
2176         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
2177         * sysdeps/i386/i686/cacheinfo.c: New file.
2178         * sysdeps/i386/i686/multiarch/Makefile: New file.
2179         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
2180         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
2181         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
2182         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
2183         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
2184         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
2185         (__cpuid_count): New. Provide the default.
2186         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
2187         (__x86_64_preferred_memory_instruction): Define only if
2188         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
2189         (intel_check_word): Use __cpuid.
2190         (handle_intel): Likewise.
2191         (handle_amd): Likewise.
2192         (__cache_sysconf): Likewise.
2193         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2194         (__cache_sysconf): Likewise.
2195         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2196         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
2197         (get_common_indeces): Use __cpuid.
2198         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
2199         if ENABLE_SSSE3_ON_ATOM is not defined.
2200         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
2201         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
2202         popcnt instead of popcntq.
2203
2204 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
2205
2206         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
2207
2208 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
2209
2210         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
2211         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
2212         which always causes a compile error.
2213
2214         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
2215
2216         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
2217         comes from...
2218         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
2219         which always causes a compile error.
2220
2221         * debug/Makefile (tests): Add tst-longjmp_chk2.
2222         * debug/tst-longjmp_chk2.c: New file.
2223
2224         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
2225         Remove incorrect use of BP_SYM.
2226         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
2227         here now since it is more complex than just a simple check.
2228
2229         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
2230         we make no more progress.
2231
2232 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2233
2234         * math/s_fma.c: Don't define alias if __fma is a macro.
2235         * math/s_fmaf.c: Likewise.
2236         * sysdeps/x86_64/multiarch/s_fma.c: New file.
2237         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
2238         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
2239
2240         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
2241         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
2242         New macro HAS_FMA.
2243         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
2244         function.
2245         * include/libc-symbols.h (libm_ifunc): Define.
2246         * sysdeps/x86_64/multiarch/Versions: New file.
2247
2248         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
2249
2250 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2251
2252         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
2253
2254 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2255
2256         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
2257         call that registers used in calling conventions need to be preserved.
2258         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
2259         to preserve register content if necessary.
2260         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
2261         (_dl_x86_64_restore_sse): New function.
2262         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
2263         is allowed to modify xmm/ymm registers.
2264
2265         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
2266         application's perspective.
2267         * stdio-common/scanf17.c: Likewise.
2268
2269 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
2270
2271         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
2272         size to memsz.
2273         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
2274         here.
2275         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
2276         two steps to catch bugs.
2277
2278 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
2279
2280         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
2281         determines which files are used in runtime lookups and only checks
2282         those for SSE use.
2283         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
2284         testing.
2285         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
2286         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
2287         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
2288         take a while.
2289
2290         * elf/dl-open.c: Move _dl_scope_free to...
2291         * elf/dl-scope.c: ...here.  New file.
2292         * elf/Makefile (dl-routines): Add scope.
2293
2294         * resolv/resolv.h (RES_USE_DNSSEC): Define.
2295         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
2296         RES_USE_DNSSEC.
2297         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
2298         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
2299         all the places we handled RES_USE_EDNS0 only before.
2300         Patch by Adam Tkac <atkac@redhat.com>.
2301
2302 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
2303
2304         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
2305         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
2306         Update size when reallocating.
2307
2308 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2309
2310         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
2311         functions used in ld.so modify xmm/ymm registers.
2312         * sysdeps/x86_64/Makefile:  Hook new test up.
2313         * sysdeps/x86_64/rtld-memchr.c: New file.
2314         * sysdeps/x86_64/rtld-memcmp.c: New file.
2315         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
2316         * sysdeps/x86_64/rtld-strchr.S: New file.
2317         * sysdeps/x86_64/rtld-strlen.S: New file.
2318         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
2319         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
2320
2321 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2322
2323         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2324         strncmp-c.
2325         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
2326         (exit): Likewise.
2327         (Byte1): Likewise.
2328         (Byte2): Likewise.
2329         (Byte3): Likewise.
2330         (Byte4): Likewise.
2331         (Byte5): Likewise.
2332         (Byte6): Likewise.
2333         (next_8_bytes): Likewise.
2334         (Byte0): Remove commented out codes.
2335         (unaligned_table): Align jump table at 8 bytes.
2336         Add _sse4_2 to all labels.  Always include "../strcmp.S".
2337         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
2338         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
2339         * sysdeps/x86_64/strncmp.S: New file.
2340
2341 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2342
2343         [BZ #10422]
2344         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
2345         kernels, dropped when eventfd2 support was added.
2346         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
2347         kernels, dropped when signalfd4 support was added.
2348         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2349         added, name them.
2350
2351         [BZ #10452]
2352         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2353         replies up.
2354
2355         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2356
2357 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
2358
2359         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2360         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
2361
2362         [BZ #10448]
2363         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2364         callback we must touch the status to avoid using stale value.
2365
2366         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2367         compiled in.
2368
2369 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
2370
2371         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2372         /lib/modules/* headers anymore.  We have sane headers in the standard
2373         place now.
2374
2375 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2376
2377         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2378         "etf3enh" and "highgprs" added.
2379         (_dl_s390_platforms): "z10" added.
2380         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2381         Increased for the new entries.
2382         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2383         HWCAP_S390_HIGH_GPRS added.
2384
2385         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2386         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2387         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2388         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2389         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2390
2391 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
2392
2393         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2394         avoid additional cpuid instructions.  Most of the information is
2395         stored somewhere.
2396
2397         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2398         cache descriptors.
2399         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2400
2401         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2402         SSSE3 bit for Atoms.
2403         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2404         here anymore.
2405
2406         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2407         structure before copying it to avoid warning.
2408         * posix/tst-rfc3484-2.c (do_test): Likewise.
2409         * posix/tst-rfc3484-3.c (do_test): Likewise.
2410
2411         [BZ #10416]
2412         * include/unistd.h: Make header file suitable for C++ test cases.
2413         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2414
2415         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2416         stack alignment in the exit code.
2417
2418         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2419         potentially be zero.
2420
2421         * elf/tst-unique1.c: Extend test to check for unloading DSO with
2422         unique symbol definition.
2423         Patch by Jakub Jelinek.
2424         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2425         make sure the object with the definition cannot be unloaded.  Adjust
2426         a few types.
2427         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2428         the unique symbol hash table should not be const.
2429
2430 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
2431
2432         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
2433         unnecesary variables.  Comment fixes.
2434
2435 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2436
2437         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2438         Use NONASCII_CASE information provided by the locale to determine
2439         whether optimized string load function can be used.  Minor cleanups.
2440
2441 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2442
2443         * string/strcasestr.c (STRCASESTR): New macro.
2444         (__strcasestr): Renamed to ..
2445         (STRCASESTR): ...this.
2446         * string/strstr.c (STRSTR): New macro.
2447         (strstr): Renamed to ..
2448         (STRSTR): ...this.
2449         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2450         strstr-c strcasestr-c
2451         (CFLAGS-strstr.c): New.
2452         (CFLAGS-strcasestr.c): Likewise.
2453         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2454         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2455         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2456         * sysdeps/x86_64/multiarch/strstr.c: New file.
2457
2458 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2459
2460         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2461         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2462         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2463         _NL_CTYPE_NONASCII_CASE.
2464         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2465         field.
2466         (ctype_finish): Check whether there are any 8-bit characters outside
2467         the range ASCII has or whether the mapping isn't the same as for
2468         ASCII (±0x20).  Set nonascii_case appropriately.
2469         (ctype_output): Add output handler for nonascii_case.
2470
2471 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
2472
2473         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2474         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2475
2476 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2477
2478         [BZ #10360]
2479         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2480         0xffff in the EDNS0 record.
2481
2482 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2483
2484         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2485         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2486         is written before the list head update.
2487         Patch by Andreas Schwab <aschwab@redhat.com>.
2488
2489 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2490             Jakub Jelinek  <jakub@redhat.com>
2491
2492         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2493         corruption thread-safe.
2494
2495 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
2496
2497         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2498         overrides atomic_compare_and_exchange_val_rel, define to
2499         atomic_compare_and_exchange_val_rel by default, otherwise default
2500         to catomic_compare_and_exchange_val_acq.
2501         (catomic_compare_and_exchange_bool_rel): If arch overrides
2502         atomic_compare_and_exchange_bool_rel, define to
2503         atomic_compare_and_exchange_bool_rel by default.
2504         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2505         Use catomic_compare_and_exchange_val_rel instead of
2506         catomic_compare_and_exchange_val_acq.
2507
2508 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2509
2510         * sysdeps/generic/ldsodefs.h: Add prototype for
2511         _dl_higher_prime_number.
2512         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2513
2514         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2515         restoring of ymm registers a bit.
2516
2517 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
2518
2519         * sysdeps/x86_64/memcmp.S: New file.
2520
2521 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
2522
2523         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2524         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
2525         pointers in writable memory.
2526
2527 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2528
2529         * config.h.in: Add HAVE_AVX_SUPPORT entry.
2530         * config.make.in: Add config-cflags-avx entry.
2531         * configure.in: Substitute libc_cv_cc_avx.
2532         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2533         * elf/tst-audit4.c: New file.
2534         * elf/tst-audit5.c: New file.
2535         * elf/tst-auditmod4a.c: New file.
2536         * elf/tst-auditmod4b.c: New file.
2537         * elf/tst-auditmod5a.c: New file.
2538         * elf/tst-auditmod5b.c: New file.
2539         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2540         link-defines.sym.
2541         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2542         (La_x86_64_vector): Likewise.
2543         (La_x86_64_regs): Append lr_vector.
2544         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2545         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2546         saving and restoring SSE registers to ...
2547         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2548         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2549         <link-defines.h>.
2550         (_dl_runtime_profile): Use LR_SIZE to allocate space for
2551         La_x86_64_regs.  Allocate extra space and jump to memory at
2552         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2553         (save_and_restore_vector_sse): New.
2554         (save_and_restore_vector_avx): Likewise.
2555         (check_avx): Likewise.
2556         (save_and_restore_vector): Likewise.
2557         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2558         HAVE_AVX_SUPPORT.
2559         * sysdeps/x86_64/link-defines.sym: New file.
2560
2561 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
2562
2563         * elf/do-lookup.h: Removed after folding content into...
2564         * elf/dl-lookup.c: ...here.
2565
2566         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2567
2568 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
2569
2570         * configure.in: Check for gnu_unique_symbol symbol type.
2571         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2572         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2573         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
2574         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2575         change.
2576         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2577         unique symbol table.
2578         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2579         for first namespace.
2580         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2581         unique symbol hash table.
2582         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2583         * elf/tst-unique1.c: New file.
2584         * elf/tst-unique1mod1.c: New file.
2585         * elf/tst-unique1mod2.c: New file.
2586         * elf/tst-unique2.c: New file.
2587         * elf/tst-unique2mod1.c: New file.
2588         * elf/tst-unique2mod2.c: New file.
2589
2590 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2591
2592         * elf/elf.h (STB_GNU_UNIQUE): Define.
2593
2594         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2595         from...
2596         * include/inline-hashtab.h: ...here.
2597         (htab_expand): Adjust for renamed function.  Correct memory handling.
2598
2599 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2600
2601         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2602
2603 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2604
2605         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2606         (PPC_FEATURE_HAS_VSX): Likewise.
2607
2608 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2609
2610         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2611         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2612
2613         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2614         aligned to 16 byte boundaries.
2615         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2616         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2617         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2618
2619 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2620
2621         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2622         * config.make.in (config-cflags-sse4): New variable.
2623         * configure.in: Substitute libc_cv_cc_sse4.
2624         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2625         HAVE_SSE4_SUPPORT.
2626         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2627         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2628         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2629         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2630         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2631         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2632         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2633         * sysdeps/x86_64/multiarch/strspn.S: New file.
2634
2635 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2636
2637         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2638         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2639         (tests): Add tst-audit3 for x86_64.
2640         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2641         ($(objpfx)tst-audit3): Define.
2642         ($(objpfx)tst-audit3.out): Define.
2643         (tst-audit3-ENV): Define.
2644         * elf/tst-audit3.c: New file.
2645         * elf/tst-auditmod3a.c: New file.
2646         * elf/tst-auditmod3b.c: New file.
2647         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2648         and restore xmm6.
2649
2650         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2651         (__stpncpy): Renamed to ...
2652         (STPNCPY): This.
2653         (stpncpy): Create alias only if STPNCPY is not defined.
2654         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2655         defined.
2656         (strncpy): Renamed to ...
2657         (STRNCPY): This.
2658         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2659          stpncpy-c strncpy-c for string.
2660         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2661         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2662         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2663         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2664         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2665         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2666
2667 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
2668
2669         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2670         adding to fast bin list.
2671
2672 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
2673
2674         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2675         inet_makeaddr.  This worked only with class-based networks.
2676         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2677         Likewise.
2678
2679         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2680         recognize all types.
2681         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2682         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
2683         be in host byte order.
2684
2685 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2686
2687         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2688         (MODEL_OFFSET): Define.
2689         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2690         family and model.
2691         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2692         out common code into new function get_common_indeces. Determine
2693         extended family and model for Intel processors.
2694
2695 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
2696
2697         * resolv/resolv.h: Define RES_SNGLKUPREOP.
2698         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2699         option.
2700         * resolv/res_send.c (reopen): New function.  Broken out of...
2701         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2702         fallback mechanism.  If single-request fails switch to
2703         single-request-reopen mode which opens a new socket for the second
2704         request.
2705
2706 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2707
2708         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2709         (CHECK_SP): Use it.
2710
2711 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2712
2713         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2714         for saved registers.
2715         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2716         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2717         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2718
2719 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2720
2721         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2722
2723 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2724
2725         * po/id.po: Update from translation team.
2726
2727         * po/bg.po: Update from translation team.
2728
2729 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2730
2731         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
2732         defined.
2733         (strncmp): Renamed to STRNCMP.
2734         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2735         strncmp-c for string.
2736         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2737         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2738         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2739         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2740
2741 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2742
2743         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2744         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2745         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2746         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2747         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2748         ifuncmain7static.c.
2749         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2750         ifuncmain7static, and ifuncmain7picstatic.
2751         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2752         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2753         $(objpfx)ifuncmain7pie.out.
2754         (modules-names): Add ifuncmod5 ifuncmod6
2755         (ifuncmod5.so-no-z-defs): Define.
2756         (ifuncmod6.so-no-z-defs): Define.
2757         (CFLAGS-ifuncmain5pic.c): Define.
2758         (CFLAGS-ifuncmain5picstatic.c): Define.
2759         (CFLAGS-ifuncmain5staticpic.c): Define.
2760         (CFLAGS-ifuncdep5pic.c): Define.
2761         (CFLAGS-ifuncmain7pic.c): Define.
2762         (CFLAGS-ifuncmain7picstatic.c): Define.
2763         (CFLAGS-ifuncmain1staticpie.c): Define.
2764         (CFLAGS-ifuncmain5pie.c): Define.
2765         (CFLAGS-ifuncmain6pie.c): Define.
2766         (CFLAGS-ifuncmain7pie.c): Define.
2767         ($(objpfx)ifuncmain1staticpie.out): Define.
2768         ($(objpfx)ifuncmain1staticpie): Define.
2769         ($(objpfx)ifuncmain5pie.out): Define.
2770         ($(objpfx)ifuncmain5pie): Define.
2771         ($(objpfx)ifuncmain6pie.out): Define.
2772         ($(objpfx)ifuncmain6pie): Define.
2773         ($(objpfx)ifuncmain5): Define.
2774         ($(objpfx)ifuncmain5pic): Define.
2775         ($(objpfx)ifuncmain5static): Define.
2776         ($(objpfx)ifuncmain5staticpic): Define.
2777         ($(objpfx)ifuncmain5picstatic): Define.
2778         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2779         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2780         ifuncmain6pie.out.
2781         * elf/b/elf/ifuncmain1staticpie.c: New file.
2782         * elf/ifuncdep5.c: New file.
2783         * elf/ifuncdep5pic.c: New file.
2784         * elf/ifuncmain5.c: New file.
2785         * elf/ifuncmain5pic.c: New file.
2786         * elf/ifuncmain5picstatic.c: New file.
2787         * elf/ifuncmain5pie.c: New file.
2788         * elf/ifuncmain5static.c: New file.
2789         * elf/ifuncmain5staticpic.c: New file.
2790         * elf/ifuncmain6pie.c: New file.
2791         * elf/ifuncmain7.c: New file.
2792         * elf/ifuncmain7pic.c: New file.
2793         * elf/ifuncmain7picstatic.c: New file.
2794         * elf/ifuncmain7pie.c: New file.
2795         * elf/ifuncmain7static.c: New file.
2796         * elf/ifuncmod5.c: New file.
2797         * elf/ifuncmod6.c: New file.
2798
2799 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2800
2801         [BZ #10085]
2802         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2803         (nss_endgrent): New variable.
2804         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2805         fields. Change type of files to bool and adjust all users.
2806         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2807         (internal_endgrent): Call nss_endgrent if necessary.
2808         (add_group): New function.  Broken out of...
2809         (check_and_add_group): ...here.
2810         (getgrent_next_nss): Remove test that any callback is available.
2811         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2812         callback.  If there is no blacklist we can trust the results returned
2813         by the initgroups_dyn callback.  In case there is a callback and we
2814         find a group entry for the group ID but it doesn't contain the
2815         correct member, switch to the slow mode and use getgrent_r.
2816         (internal_getgrent_r): When we see a +: entry, determine whether
2817         there is any callback and which we can use the initgroups_dyn
2818         callback.
2819
2820 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
2821
2822         * malloc/malloc.c (_int_malloc): Add some consistency checks.
2823         (_int_free): Likewise.
2824
2825         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2826         AF_IEEE802154.
2827         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2828         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2829         and ARPHRD_IEEE802154_PHY.
2830
2831         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2832         relative to generic Linux version.
2833
2834 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2835
2836         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2837         ($(objpfx)ifuncmain1vispie): Likewise.
2838
2839 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2840
2841         * login/Makefile: Build pt_chown as PIE.
2842
2843 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
2844
2845         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2846         a format string.
2847         * elf/sln.c (usage): Likewise.
2848         * malloc/memusage.sh (do_help): Likewise.
2849         * nss/getent.c (more_help): Likewise.
2850         * posix/getconf.c (main): Likewise.
2851         * sunrpc/rpcinfo.c (usage): Likewise.
2852         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2853
2854 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2855
2856         * login/programs/pt_chown.c: Use libcap to drop privileges other than
2857         those needed.
2858         * login/Makefile: If necessary link pt_chown with -lcap.
2859         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2860         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2861
2862 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2863
2864         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2865         comparisons.
2866         * string/test-memchr.c (do_random_tests): Test very large lengths
2867         as well.
2868
2869 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2870
2871         * Makeconfig (+link-pie): Define.
2872         (+prectorS): Define.
2873         (+postctorS): Define.
2874         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2875         * nscd/Makefile ($(objpfx)nscd): Likewise.
2876
2877 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2878
2879         [BZ #10107]
2880         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2881         with cmplwi.
2882         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2883
2884 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2885
2886         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2887         into ...
2888         * sysdeps/unix/grantpt.c: ...here.
2889
2890 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2891
2892         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2893         chmod if it is necessary.
2894
2895         [BZ #10166]
2896         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2897         when the slave device is in devpts or devfs.
2898
2899         [BZ #10183]
2900         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2901
2902         [BZ #10195]
2903         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2904         of nd_opt_home_agent_info_preference to uint16_t.
2905         Patch by Arnaud Ebalard <arno@natisbad.org>.
2906
2907         [BZ #10207]
2908         * nss/getent.c: Add support for printing gshadow data.
2909
2910         [BZ #10203]
2911         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2912         not just the currently used one and those which follow.
2913         Patch by Joe Landers <jlanders@vmware.com>.
2914
2915         [BZ #10196]
2916         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2917         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2918         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2919
2920         [BZ #10217]
2921         * stdlib/abort.c: Define variable __abort_msg.
2922         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2923         * include/stdlib.h: Declare __abort_msg.
2924         * assert/assert-perr.c: Don't free buffer for message immediately.
2925         Store atomically in __abort_msg and free old buffer if necessary.
2926         * assert/assert.c: Likewise.
2927         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2928         store pointer in __abort_msg, and possibly free old string.
2929         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2930
2931         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2932
2933         [BZ #10211]
2934         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2935         handle leap seconds if they are available.
2936         Patch by Akinori Hattori <hattya@gentoo.org>.
2937
2938         * timezone/tzselect.ksh: Update from tzcode2009i.
2939         * timezone/zdump.c: Likewise.
2940         * timezone/zic.c: Likewise.
2941
2942         * timezone/africa: Update from tzdata2009i.
2943         * timezone/antarctica: Likewise.
2944         * timezone/asia: Likewise.
2945         * timezone/australasia: Likewise.
2946         * timezone/backward: Likewise.
2947         * timezone/etcetera: Likewise.
2948         * timezone/europe: Likewise.
2949         * timezone/factory: Likewise.
2950         * timezone/iso3166.tab: Likewise.
2951         * timezone/leapseconds: Likewise.
2952         * timezone/northamerica: Likewise.
2953         * timezone/pacificnew: Likewise.
2954         * timezone/solar87: Likewise.
2955         * timezone/solar88: Likewise.
2956         * timezone/solar89: Likewise.
2957         * timezone/southamerica: Likewise.
2958         * timezone/systemv: Likewise.
2959         * timezone/yearistype: Likewise.
2960         * timezone/zone.tab: Likewise.
2961
2962 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
2963
2964         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
2965         STT_GNU_IFUNC symbol or in 8 into type_class.
2966
2967         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
2968         instead of Elf64_Addr.
2969
2970 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
2971
2972         * po/sv.po: Update from translation team.
2973
2974         [BZ #10229]
2975         * misc/sys/select.h (__NFDBITS): Expression should have type int.
2976         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
2977         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
2978         the C version.
2979
2980 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
2981
2982         * Versions.def: Add GLIBC_2.11 for libpthread.
2983
2984 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
2985
2986         * resolv/res_send.c (send_dg): Remember we switched to
2987         single-request mode.
2988
2989 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
2990
2991         * dlfcn/dlfcn.h: Remove comma at end of enum.
2992         Patch by J.H.M. Dassen <rdassen@redhat.com>.
2993
2994         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
2995         parsing mode string.
2996
2997 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
2998
2999         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
3000
3001         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
3002
3003         * sysdeps/x86_64/multiarch/strlen.S: New file.
3004         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
3005         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
3006         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
3007         content.
3008
3009         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
3010         is defined.
3011
3012 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
3013
3014         * sysdeps/x86_64/strlen.S: Minor optimizations.
3015
3016 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3017
3018         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
3019         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
3020         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
3021         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
3022         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
3023         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
3024         ifuncmain3.c, ifuncmod3.c,.
3025         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
3026         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
3027         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
3028         ifuncmain4picstatic.
3029         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
3030         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
3031         ifuncmain3, ifuncmain4.
3032         (tests): Depend on $(objpfx)ifuncmain1pie.out and
3033         $(objpfx)ifuncmain1vispie.out.
3034         (modules-names): Add ifuncmod1 ifuncmod3.
3035         (generated): Add ifuncmain1pie ifuncmain1pie.out
3036         ifuncmain1vispie ifuncmain1vispie.out.
3037         Define rules to build and run the tests.
3038         * elf/ifuncdep1.c: New file.
3039         * elf/ifuncdep1pic.c: New file.
3040         * elf/ifuncdep2.c: New file.
3041         * elf/ifuncdep2pic.c: New file.
3042         * elf/ifuncmain1.c: New file.
3043         * elf/ifuncmain1pic.c: New file.
3044         * elf/ifuncmain1picstatic.c: New file.
3045         * elf/ifuncmain1pie.c: New file.
3046         * elf/ifuncmain1static.c: New file.
3047         * elf/ifuncmain1staticpic.c: New file.
3048         * elf/ifuncmain1vis.c: New file..
3049         * elf/ifuncmain1vispic.c: New file..
3050         * elf/ifuncmain1vispie.c: New file.
3051         * elf/ifuncmain2.c: New file.
3052         * elf/ifuncmain2pic.c: New file.
3053         * elf/ifuncmain2picstatic.c: New file.
3054         * elf/ifuncmain2static.c: New file.
3055         * elf/ifuncmain3.c: New file.
3056         * elf/ifuncmain4.c: New file.
3057         * elf/ifuncmain4picstatic.c: New file.
3058         * elf/ifuncmain4static.c: New file.
3059         * elf/ifuncmod1.c: New file.
3060         * elf/ifuncmod3.c: New file.
3061
3062 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
3063
3064         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
3065
3066 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
3067
3068         [BZ #10221]
3069         * posix/Makefile (routines): Add execvpe.
3070         * posix/Versions: Export execvpe for GLIBC_2.11.
3071         * posix/execvp.c: Now only a wrapper.  Move code to...
3072         * posix/execvpe.c: ...here.  New file.
3073         * posix/unistd.h: Declare execvpe.
3074
3075 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
3076
3077         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
3078         for STT_GNU_IFUNC handling for efficiency.
3079         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3080
3081         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
3082         _exit.
3083         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
3084
3085 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3086
3087         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
3088         for !SHARED.
3089
3090 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
3091
3092         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
3093         is not defined.
3094         (__rela_iplt_start): New declaration.
3095         (__rela_iplt_end): Likewise.
3096         (__rel_iplt_start): Likewise.
3097         (__rel_iplt_end): Likewise.
3098         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
3099         * elf/elf.h (R_386_IRELATIVE): New macro.
3100         (R_X86_64_IRELATIVE): New macro.
3101         (R_386_NUM): Updated.
3102         (R_X86_64_NUM): Likewise.
3103         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
3104         (libc_ifunc_hidden_def): New macro.
3105         * sysdeps/generic/dl-irel.h: New file.
3106         * sysdeps/i386/dl-irel.h: New file.
3107         * sysdeps/x86_64/dl-irel.h: New file.
3108         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
3109         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
3110         Handle R_386_IRELATIVE.
3111         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
3112         (elf_machine_lazy_rela): Likewise.
3113         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3114         R_X86_64_IRELATIVE.
3115         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
3116
3117 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3118
3119         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
3120         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
3121         are no differences.  If an architecture has bits in CPUID index 1
3122         meaning different things the values for the COMMON_CPUID_INDEX_1
3123         index must not be set.
3124         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
3125         (HAS_POPCOUNT): ...this.  New macro.
3126         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
3127         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
3128         to set the value for Intel and AMD architectures.
3129         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
3130         INTEL_CPUID_INDEX_1.
3131         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
3132         change.
3133
3134 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3135
3136         * configure.in: Move AC_CANONICAL_HOST before first use of $host
3137         and $build.
3138
3139 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
3140
3141         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
3142         (__expm1l): Set errno to ERANGE on overflow.
3143         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
3144         (__tanl): Set errno to EDOM for Â±Inf.
3145         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
3146         (__cosl): Set errno to EDOM for Â±Inf.
3147         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
3148         (__sinl): Set errno to EDOM for Â±Inf.
3149
3150         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
3151         defined, use it.
3152         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
3153         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
3154         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
3155
3156 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
3157
3158         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
3159         code accessing it.
3160         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
3161
3162 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
3163
3164         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
3165         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3166         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3167         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
3168
3169         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
3170         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
3171         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
3172         defined.
3173         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
3174         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3175
3176 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
3177
3178         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
3179         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
3180         is, either do nothing at all if __ASSUME_ACCEPT4, or
3181         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
3182         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
3183         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
3184         define.
3185         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
3186         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
3187         internal_accept4 in socket directory.
3188
3189 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3190
3191         * sysdeps/ia64/configure.in: New file.
3192
3193 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3194
3195         [BZ #10162]
3196         * sysdeps/ia64/memchr.S: Use speculative load.
3197
3198         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
3199         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
3200         use it.
3201
3202         * sysdeps/i386/__longjmp.S: Add .text.
3203         * sysdeps/x86_64/__longjmp.S: Likewise.
3204
3205 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
3206
3207         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
3208         __ASSUME_ACCEPT4 for IA-64.
3209
3210 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
3211
3212         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
3213
3214         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
3215         (SOCKOP_accept4): Define.
3216
3217 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
3218
3219         Sun approved the change of the license.
3220         * sunrpc/auth_des.c: Replace license text.
3221         * sunrpc/auth_none.c: Likewise.
3222         * sunrpc/auth_unix.c: Likewise.
3223         * sunrpc/authdes_prot.c: Likewise.
3224         * sunrpc/authuxprot.c: Likewise.
3225         * sunrpc/bindrsvprt.c: Likewise.
3226         * sunrpc/clnt_gen.c: Likewise.
3227         * sunrpc/clnt_perr.c: Likewise.
3228         * sunrpc/clnt_raw.c: Likewise.
3229         * sunrpc/clnt_simp.c: Likewise.
3230         * sunrpc/clnt_tcp.c: Likewise.
3231         * sunrpc/clnt_udp.c: Likewise.
3232         * sunrpc/clnt_unix.c: Likewise.
3233         * sunrpc/des_crypt.c: Likewise.
3234         * sunrpc/des_soft.c: Likewise.
3235         * sunrpc/get_myaddr.c: Likewise.
3236         * sunrpc/getrpcport.c: Likewise.
3237         * sunrpc/key_call.c: Likewise.
3238         * sunrpc/key_prot.c: Likewise.
3239         * sunrpc/openchild.c: Likewise.
3240         * sunrpc/pm_getmaps.c: Likewise.
3241         * sunrpc/pm_getport.c: Likewise.
3242         * sunrpc/pmap_clnt.c: Likewise.
3243         * sunrpc/pmap_prot.c: Likewise.
3244         * sunrpc/pmap_prot2.c: Likewise.
3245         * sunrpc/pmap_rmt.c: Likewise.
3246         * sunrpc/rpc/auth.h: Likewise.
3247         * sunrpc/rpc/auth_unix.h: Likewise.
3248         * sunrpc/rpc/clnt.h: Likewise.
3249         * sunrpc/rpc/des_crypt.h: Likewise.
3250         * sunrpc/rpc/key_prot.h: Likewise.
3251         * sunrpc/rpc/netdb.h: Likewise.
3252         * sunrpc/rpc/pmap_clnt.h: Likewise.
3253         * sunrpc/rpc/pmap_prot.h: Likewise.
3254         * sunrpc/rpc/pmap_rmt.h: Likewise.
3255         * sunrpc/rpc/rpc.h: Likewise.
3256         * sunrpc/rpc/rpc_des.h: Likewise.
3257         * sunrpc/rpc/rpc_msg.h: Likewise.
3258         * sunrpc/rpc/svc.h: Likewise.
3259         * sunrpc/rpc/svc_auth.h: Likewise.
3260         * sunrpc/rpc/types.h: Likewise.
3261         * sunrpc/rpc/xdr.h: Likewise.
3262         * sunrpc/rpc_clntout.c: Likewise.
3263         * sunrpc/rpc_cmsg.c: Likewise.
3264         * sunrpc/rpc_common.c: Likewise.
3265         * sunrpc/rpc_cout.c: Likewise.
3266         * sunrpc/rpc_dtable.c: Likewise.
3267         * sunrpc/rpc_hout.c: Likewise.
3268         * sunrpc/rpc_main.c: Likewise.
3269         * sunrpc/rpc_parse.c: Likewise.
3270         * sunrpc/rpc_parse.h: Likewise.
3271         * sunrpc/rpc_prot.c: Likewise.
3272         * sunrpc/rpc_sample.c: Likewise.
3273         * sunrpc/rpc_scan.c: Likewise.
3274         * sunrpc/rpc_scan.h: Likewise.
3275         * sunrpc/rpc_svcout.c: Likewise.
3276         * sunrpc/rpc_tblout.c: Likewise.
3277         * sunrpc/rpc_util.c: Likewise.
3278         * sunrpc/rpc_util.h: Likewise.
3279         * sunrpc/rpcinfo.c: Likewise.
3280         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3281         * sunrpc/rpcsvc/key_prot.x: Likewise.
3282         * sunrpc/rpcsvc/klm_prot.x: Likewise.
3283         * sunrpc/rpcsvc/mount.x: Likewise.
3284         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3285         * sunrpc/rpcsvc/rex.x: Likewise.
3286         * sunrpc/rpcsvc/rstat.x: Likewise.
3287         * sunrpc/rpcsvc/rusers.x: Likewise.
3288         * sunrpc/rpcsvc/sm_inter.x: Likewise.
3289         * sunrpc/rpcsvc/spray.x: Likewise.
3290         * sunrpc/rpcsvc/yppasswd.x: Likewise.
3291         * sunrpc/rtime.c: Likewise.
3292         * sunrpc/svc.c: Likewise.
3293         * sunrpc/svc_auth.c: Likewise.
3294         * sunrpc/svc_authux.c: Likewise.
3295         * sunrpc/svc_raw.c: Likewise.
3296         * sunrpc/svc_run.c: Likewise.
3297         * sunrpc/svc_simple.c: Likewise.
3298         * sunrpc/svc_tcp.c: Likewise.
3299         * sunrpc/svc_udp.c: Likewise.
3300         * sunrpc/svc_unix.c: Likewise.
3301         * sunrpc/svcauth_des.c: Likewise.
3302         * sunrpc/xcrypt.c: Likewise.
3303         * sunrpc/xdr.c: Likewise.
3304         * sunrpc/xdr_array.c: Likewise.
3305         * sunrpc/xdr_float.c: Likewise.
3306         * sunrpc/xdr_mem.c: Likewise.
3307         * sunrpc/xdr_rec.c: Likewise.
3308         * sunrpc/xdr_ref.c: Likewise.
3309         * sunrpc/xdr_sizeof.c: Likewise.
3310         * sunrpc/xdr_stdio.c: Likewise.
3311
3312         * po/da.po: Update from translation team.
3313
3314 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3315
3316         * sysdeps/sh/____longjmp_chk.S: New file.
3317         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
3318         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3319
3320 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
3321             Ulrich Drepper  <drepper@redhat.com>
3322
3323         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
3324         (__nscd_cache_search): Assume each entry in the
3325         hash chain needs one hashentry and half of datahead.  Use
3326         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
3327
3328 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
3329
3330         * posix/sys/wait.h: Fix typos.  Pretty printing.
3331         * stdlib/stdlib.h: Likewise.  Correct comments.
3332
3333         [BZ #10159]
3334         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
3335
3336         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
3337         patch.
3338
3339 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3340
3341         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
3342         Use it if we absolutely cannot reach any more correct list elements
3343         because that many do not fit into the currently mapped database.
3344
3345 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
3346
3347         * nscd/nscd_helper.c: Include stddef.h.
3348         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
3349         in a couple of places.  Return NULL if trail is not less than
3350         datasize, don't consider dataheads with length smaller than
3351         offsetof (struct datahead, data) + datalen.
3352         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3353         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3354         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3355         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3356         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3357         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3358         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3359
3360         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3361         Rename ...
3362         (fallocate64): ... to this.
3363         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3364         Rename ...
3365         (fallocate64): ... to this.
3366         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3367         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3368         fallocate64@@GLIBC_2.10.
3369         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3370         fallocate64@@GLIBC_2.11.
3371         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3373         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3374         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3375
3376         * nscd/selinux.c (nscd_avc_destroy): Removed.
3377         * nscd/selinux.h (nscd_avc_destroy): Likewise.
3378         * nscd/nscd.c (termination_handler): Don't call
3379         nscd_avc_destroy.
3380
3381 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
3382
3383         * include/atomic.h: Formatting.
3384         (catomic_compare_and_exchange_val_acq): Don't define if already
3385         defined by bits/atomic.h.
3386
3387 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3388
3389         * math/libm-test.inc (expm1_test): Add test for range error.
3390
3391         * Versions.def: Add GLIBC_2.11 for libc.
3392         * debug/Makefile (routines): Add longjmp_chk.
3393         Add rules to build and run tst-longjmp_chk.
3394         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3395         * debug/longjmp_chk.c: New file.
3396         * debug/tst-longjmp_chk.c: New file.
3397         * include/bits/setjmp2.: New file.
3398         * include/stdio.h: Mark __fortify_fail as internal_function.
3399         * setjmp/Makefile (headers): Add bits/setjmp2.h.
3400         * setjmp/bits/setjmp2.h: New file.
3401         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3402         of the aliases.
3403         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3404         defined.
3405         * sysdeps/i386/____longjmp_chk.S: New file.
3406         * sysdeps/x86_64/____longjmp_chk.S: New file.
3407         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3408         * sysdeps/x86_64/__longjmp.S: Likewise.
3409
3410         * version.h: Bump for 2.11 development.
3411
3412         * elf/check-execstack.c: New file.
3413         * elf/Makefile: Add rules to build and run check-execstack.
3414
3415 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
3416
3417         * version.h (VERSION): Bump to 2.10.1.
3418
3419         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3420         compatibility functions.
3421         * nss/getXXent_r.c: Likewise.
3422         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3423         * gshadow/getsgnam_r.c: Likewise.
3424         * gshadow/Version: Remove duplicate entries.
3425
3426         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3427         for recent processor.
3428         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3429         Likewise.
3430
3431 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
3432
3433         * version.h (VERSION): Bump for 2.10 release.
3434         * include/features.h (__GLIBC_MINOR__): Bump to 10.
3435
3436         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
3437         same place we add ASFLAGS-config.
3438
3439 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
3440
3441         [BZ #10128]
3442         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3443         or FORMERR and the other NOERROR, don't raise an error.
3444
3445 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
3446
3447         [BZ #10118]
3448         * Makeconfig (+asflags): New variable based upon ASFLAG or
3449         asflags-cpu.
3450         (ASFLAGS): Add override to set ASFLAGS to +asflags.
3451         * config.make.in (asflags-cpu): Add variable based upon
3452         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3453         the assembler.
3454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3455         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3456         recognizes power6 instruction set due to passing -mcpu=power6 from
3457         --with-cpu=power6 when compiling .S files.
3458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3459         Likewise.
3460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3461         Likewise.
3462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3463         Likewise.
3464
3465 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
3466
3467         * string/stratcliff.c (do_test): Test for zero length
3468         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3469         at the end of the page.
3470
3471 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
3472
3473         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3474
3475         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3476         count is zero.
3477
3478         * po/da.po: Update from translation team.
3479
3480 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
3481
3482         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3483         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3484
3485 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
3486
3487         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3488         and READ_IMPLIES_EXEC.
3489
3490 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
3491
3492         * po/da.po: Update from translation team.
3493
3494 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
3495
3496         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3497         comment change.
3498
3499 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
3500
3501         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3502         to MAP_ANON in PROT_NONE mmap64 call.
3503         (open_archive): Likewise.
3504         (file_data_available_p): Use mmap64 instead of mremap.
3505         (enlarge_archive): Likewise.  Update head if ah->addr changed.
3506         Attempt to reserve address space after mmap64 region.
3507
3508 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
3509
3510         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3511         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3512         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3513
3514         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3515         atanh should set ERANGE.
3516
3517         [BZ #10087]
3518         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3519         result of lookup to make call to implement STT_GNU_IFUNC.
3520         (_dl_profile_fixup): Likewise.
3521         Patch by H.J. Lu <hjl.tools@gmail.com>.
3522
3523         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3524         warning.
3525
3526         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3527         from definition.
3528
3529         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3530         label if it is not used.
3531
3532         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3533         of gmon_hist_hdr and gmon_hdr structures and use them.
3534         * elf/sprof.c: Likewise.
3535
3536         * elf/dl-load.c (open_verify): Add temporary variable to avoid
3537         warning.
3538
3539         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3540
3541         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3542         to avoid cast.
3543
3544         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3545         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3546         to avoid warnings.
3547         (iruserok_af): Use ss_family instead of casts.
3548
3549         * gmon/gmon.c (write_hist): Define real-type variant of
3550         gmon_hist_hdr structure and use it.
3551         (write_gmon): Likewise for gmon_hdr.
3552
3553         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3554         function if we are not going to define it.
3555         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3556
3557         * inet/inet6_option.c (option_alloc): Add temporary variable to
3558         avoid warning.
3559
3560         * libio/strfile.h (struct _IO_streambuf): Use correct type and
3561         name of VTable element.
3562         * libio/iovsprintf.c: Avoid casts to avoid warnings.
3563         * libio/iovsscanf.c: Likewise.
3564         * libio/vasprintf.c: Likewise.
3565         * libio/vsnprintf.c: Likewise.
3566         * stdio-common/isoc99_vsscanf.c: Likewise.
3567         * stdlib/strfmon_l.c: Likewise.
3568         * debug/vasprintf_chk.c: Likewise.
3569         * debug/vsnprintf_chk.c: Likewise.
3570         * debug/vsprintf_chk.c: Likewise.
3571
3572         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3573         function pointers.
3574
3575 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
3576
3577         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3578
3579 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
3580
3581         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3582
3583         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
3584         * sysdeps/i386/fpu/s_tanf.S: Likewise.
3585         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3586         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3587         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3588         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3589         * math/libm-test.inc: Add tests for errno after tan calls with
3590         Â±Inf.
3591
3592         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3593         errno value vor pow(+-0,neg).
3594         * math/libm-test.inc (pow_test): Add tests for errno value for
3595         pole errors.
3596
3597         * math/w_fmod.c: Also handle x=±Inf as error.
3598         * math/w_fmodf.c: Likewise.
3599         * math/w_fmodl.c: Likewise.
3600         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3601         x=±Inf or y=0.
3602
3603         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3604         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3605         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3606         * sysdeps/i386/fpu/s_sin.S: Likewise.
3607         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3608         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3609         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3610         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3611         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3612         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3613         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3614         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3615         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3616         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3617         Â±Inf.
3618
3619         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3620         ERANGE for underflows.
3621         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3622
3623         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3624         the 2001 revision.
3625
3626         * libio/tst-widetext.input: Remove surrogates.
3627
3628         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3629
3630         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3631         for lgamma should set errno to ERANGE, not EDOM.
3632         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3633
3634 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3635
3636         [BZ #10093]
3637         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3638         UTF-16 surrogates.
3639
3640         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3641         space when temporarily mapping the whole content of the old file.
3642
3643         [BZ #10100]
3644         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3645         not zero.
3646
3647 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3648
3649         * iconvdata/sjis.c (BODY): Don't advance inptr before
3650         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3651         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3652         two byte chars.
3653
3654 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3655
3656         * locale/locarchive.h (struct locarhandle): Rename len field to
3657         mmaped and add new reserved field.
3658         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3659         (create_archive): Reserve address space and then map file into it.
3660         (open_archive): Likewise.
3661         (file_data_available_p): New function.
3662         (compare_from_file): New function.
3663         (close_archive): Adjust to member name changes.
3664         (add_locale): Before comparing locale data, check it is mapped.
3665         Otherwise fall back to reading from the file.
3666
3667 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3668
3669         * stdio-common/psiginfo.c: Include <errno.h>.
3670
3671 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3672
3673         [BZ #9920]
3674         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3675         to get consistency between 32 and 64 bit architectures.
3676
3677         [BZ #10052]
3678         * sysdeps/unix/make-syscalls.sh: Add rule to create target
3679         directory for dummy syscall rules.
3680         Patch by Chris Steinbroner <hesh@pobox.com>.
3681
3682 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
3683
3684         [BZ #10092]
3685         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3686         MNT_EXPIRE.
3687
3688 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3689
3690         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
3691         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3692
3693 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
3694
3695         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
3696         data from vector to temporary buffer and call PWRITEV after it
3697         instead of vice versa.
3698         * sysdeps/posix/preadv.c: Fix up comment.
3699         * misc/preadv.c: Likewise.
3700         * misc/preadv64.c: Likewise.
3701         * misc/pwritev.c: Likewise.
3702         * misc/pwritev64.c: Likewise.
3703         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3704
3705 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3706
3707         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3708
3709         * shadow/Makefile (tests): Add tst-shadow.
3710         * shadow/tst-shadow.c: New file.
3711
3712         [BZ #9955]
3713         * gshadow/Makefile: New file.
3714         * gshadow/Versions: New file.
3715         * gshadow/fgetsgent.c: New file.
3716         * gshadow/fgetsgent_r.c: New file.
3717         * gshadow/getsgent.c: New file.
3718         * gshadow/getsgent_r.c: New file.
3719         * gshadow/getsgnam.c: New file.
3720         * gshadow/getsgnam_r.c: New file.
3721         * gshadow/gshadow.h: New file.
3722         * gshadow/putsgent.c: New file.
3723         * gshadow/sgetsgent.c: New file.
3724         * gshadow/sgetsgent_r.c: New file.
3725         * gshadow/tst-gshadow.c: New file.
3726         * include/gshadow.h: New file.
3727         * Makeconfig (all-subdirs): Add gshadow.
3728         * Makefile (installed-headers): Add gshadow/gshadow.h.
3729         * nss/Makefile (databases): Add sgrp.
3730         * nss/Versions: Add gshadow functions as private exports.
3731         * nss/nsswitch.conf: Add gshadow entry.
3732         * nss/sgrp-lookup.c: New file.
3733         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
3734         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3735         * nss/nss_files/files-sgrp.c: New file.
3736         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3737         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3738
3739 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3740
3741         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3742         * stdio-common/reg-modifier.c: Likewise.
3743
3744 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3745
3746         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3747         is no FPU.
3748
3749 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3750
3751         [BZ #10086]
3752         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3753         headers up to 2.6.30.
3754
3755         * po/ca.po: Update from translation team.
3756
3757 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3758
3759         [BZ #10069]
3760         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3761         an object that uses static TLS if the TLS modid is higher than the
3762         reserve we always allocate.  At least for multi-threaded code.
3763
3764 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3765
3766         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3767         Numerically stable check for valid width.
3768
3769         * locale/programs/locarchive.c (open_archive): Map the entire file
3770         and not just the administrative data.
3771         (add_locale): When we find a hash sum match compare the content
3772         to be sure.
3773
3774         * malloc/malloc.c (malloc_info): Output address space information.
3775
3776 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3777
3778         * malloc/malloc.c (malloc_info): Also output system memory information.
3779
3780         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3781         architectures have preadv/pwritev in 2.6.30.
3782
3783         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3784         * sysdeps/posix/readv.c: Likewise.
3785         Reported by Markus Armbruster <armbru@redhat.com>.
3786
3787         * malloc/hooks.c (top_check): Force hook value into register.
3788
3789 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3790
3791         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3792         calls to _dl_relocate_object.
3793
3794 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3795
3796         [BZ #9957]
3797         * malloc/malloc.c (force_reg): Define.
3798         (sYSMALLOc): Load hook variable into variable
3799         before test and force into register.
3800         (sYSTRIm): Likewise.
3801         (public_mALLOc): Force hook value into register.
3802         (public_fREe): Likewise.
3803         (public_rEALLOc): Likewise.
3804         (public_mEMALIGn): Likewise.
3805         (public_vALLOc): Likewise.
3806         (public_pVALLOc): Likewise.
3807         (public_cALLOc): Likewise.
3808         (__posix_memalign): Likewise.
3809         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3810         before test and force into register.
3811         * malloc/hooks.c (top_check): Likewise.
3812         (public_sET_STATe): Pretty printing.
3813
3814         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3815         in case we only receive one reply in single-request mode.
3816
3817 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
3818
3819         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3820         are dlopened in statically linked program even for __LM_ID_CALLER.
3821
3822 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3823
3824         * resolv/res_send.c (send_dg): Don't switch into single-request
3825         mode if we already are in it.
3826
3827 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
3828
3829         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3830         are always at least 4 bytes in the returned line.
3831
3832 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
3833
3834         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3835         __libc_use_alloca (8192), if the stack is too small use 512 bytes
3836         instead of 8K.  Stop searching in /proc/stat after hitting first
3837         line not starting with cpu.
3838         (next_line): Truncate too long
3839         lines at buffer size * 3/4 instead of pretending there were line
3840         breaks inside of large lines.
3841
3842 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3843
3844         * sysdeps/x86_64/mp_clz_tab.c: New file.
3845
3846 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
3847             Ulrich Drepper  <drepper@redhat.com>
3848
3849         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3850         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3851         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3852
3853 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
3854
3855         * sysdeps/sh/libc-tls.c: New file.
3856
3857         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3858
3859 2009-04-14  Roland McGrath  <roland@redhat.com>
3860
3861         * elf/elf.h: Add various missing ARM constants, to match binutils.
3862
3863 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3864
3865         Optimizations from GMP.
3866         * sysdeps/x86_64/add_n.S: New file.
3867         * sysdeps/x86_64/addmul_1.S: New file.
3868         * sysdeps/x86_64/lshift.S: New file.
3869         * sysdeps/x86_64/mul_1.S: New file.
3870         * sysdeps/x86_64/rshift.S: New file.
3871         * sysdeps/x86_64/sub_n.S: New file.
3872         * sysdeps/x86_64/submul_1.S: New file.
3873
3874 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3875
3876         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3877         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3878         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3879         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3880
3881 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3882
3883         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3884         preadv/pwritev.
3885
3886 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3887
3888         * sysdeps/x86-64/strrchr.S: New file.
3889
3890 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3891
3892         * stdio-common/printf.h (struct printf_info): Add user element.
3893         New types printf_arginfo_size_function, printf_va_arg_function.
3894         Declare register_printf_specifier, register_printf_modifier,
3895         register_printf_type.
3896         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3897         (union printf_arg): Add pa_user element.
3898         Adjust __printf_arginfo_table type.
3899         Add __printf_va_arg_table, __printf_modifier_table,
3900         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3901         declarations.
3902         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3903         If registered arginfo call failed try normal specifier.
3904         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3905         function.
3906         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3907         * stdio-common/Versions: Export register_printf_modifier,
3908         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3909         * stdio-common/reg-modifier.c: New file.
3910         * stdio-common/reg-type.c: New file.
3911         * stdio-common/reg-printf.c (__register_printf_specifier): New
3912         function.  Mostly the old __register_printf_function function but
3913         uses locking and type of third parameter changed.
3914         (__register_printf_function): Implement using
3915         __register_printf_specifier.
3916         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3917         calls to arginfo functions.  Allocate enough memory for user-defined
3918         types.  Call new va_arg functions to get user-defined types.
3919         Try installed handlers even for existing format specifiers first.
3920
3921 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3922
3923         * sysdeps/x86_64/rawmemchr.S: New file.
3924
3925         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3926         Simplified code and possible copy problem fixed.
3927
3928         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3929         function if it is not defined.  Add some necessary casts.
3930         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3931
3932         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3933         have preadv/pwritev in 2.6.30.
3934
3935 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3936
3937         * malloc/malloc.c (malloc_info): New function.
3938         * malloc/malloc.h: Declare it.
3939         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3940
3941         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3942         to avoid PLT slot.
3943
3944         * malloc/malloc.c (_int_realloc): Add parameter with old block
3945         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3946         Adjust all callers.
3947         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3948
3949 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
3950
3951         * sysdeps/x86_64/strchrnul.S: New file.
3952
3953         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3954         depending libcrypt on -lfreebl3.
3955
3956         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
3957         preadv/pwritev in 2.6.30.
3958
3959         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
3960         instead of __strcasecmp.
3961
3962         * string/stratcliff.c (do_test): Add memchr tests..
3963         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
3964         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
3965         first read quad word.
3966
3967 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
3968
3969         * string/strverscmp.c (__strverscmp): Fix last cleanups.
3970         * string/tst-svc.input: Add new test case.
3971         * string/tst-svc.expect: Adjust.
3972         * string/Makefile: Don't ignore tst-svc error.
3973
3974         * sysdeps/x86_64/memchr.S: New file.
3975
3976         * resolv/resolv.h (RES_SNGLKUP): Define.
3977         * resolv/res_init.c (res_setoptions): Recognize single-request option.
3978         * resolv/res_send.c (send_dg): If we sent two requests at once and
3979         only get one reply before timeout switch to mode where we send the
3980         second request only after the first answer has been received.
3981
3982 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
3983
3984         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
3985         * sysdeps/x86_64/strchr.S: Likewise.
3986
3987 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
3988
3989         * configure.in: We need to test for the compiler earlier.
3990
3991         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
3992         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
3993         GLIBC_2.10.
3994         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
3995         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
3996         and pwritev.
3997         * misc/preadv.c: New file.
3998         * misc/preadv64.c: New file.
3999         * misc/pwritev.c: New file.
4000         * misc/pwritev64.c: New file.
4001         * sysdeps/posx/preadv.c: New file.
4002         * sysdeps/posx/preadv64.c: New file.
4003         * sysdeps/posx/pwritev.c: New file.
4004         * sysdeps/posx/pwritev64.c: New file.
4005         * sysdeps/unix/sysv/linux/preadv.c: New file.
4006         * sysdeps/unix/sysv/linux/preadv64.c: New file.
4007         * sysdeps/unix/sysv/linux/pwritev.c: New file.
4008         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
4009         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
4010         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
4011
4012         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
4013         compatibility code.
4014         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
4015
4016         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4017         __ASSUME_COMPLETE_READV_WRITEV.
4018         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
4019         with modern kernels.
4020         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4021
4022         * sysdeps/posix/readv.c: Since read is a cancellation point we have
4023         to free a possible malloced buffer in case of cancellation.
4024         * sysdeps/posix/writev.c: Likewise for write.
4025
4026 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
4027
4028         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
4029
4030         * configure.in: Recognize --enable-nss-crypt.
4031         * config.make.in: Add nss-crypt entry.
4032         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
4033         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
4034         and include path for NSS directory to compiler for md5-crypt,
4035         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
4036         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
4037         function implementation, use NSS.  Introduce wrappers around the
4038         hash function calls.  Little code size optimization.
4039         * crypt/sha256-crypt.c: Likewise.
4040         * crypt/sha512-crypt.c: Likewise.
4041         * scripts/check-local-headers.sh: Ignore nss3 directory.
4042
4043         * configure.in: Rename pic_default to libc_cv_pic_default.
4044         * config.make.in: Likewise.
4045
4046 2009-04-01  Roland McGrath  <roland@redhat.com>
4047
4048         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
4049         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
4050         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
4051         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
4052         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
4053         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
4054         (R_SPARC_NUM): Update.
4055         From Dave Miller <davem@davemloft.net>.
4056
4057 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
4058
4059         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
4060
4061 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
4062
4063         * elf/dl-open.c: Keep track of used name spaces and only iterate over
4064         those which are used.
4065         * elf/dl-addr.c: Likewise.
4066         * elf/dl-caller.c: Likewise.
4067         * elf/dl-fini.c: Likewise.
4068         * elf/dl-iteratephdr.c: Likewise.
4069         * elf/dl-libc.c: Likewise.
4070         * elf/dl-load.c: Likewise.
4071         * elf/dl-support.c: Likewise.
4072         * elf/dl-sym.c: Likewise.
4073         * elf/rtld.c: Likewise.
4074         * sysdeps/generic/ldsodefs.h: Likewise.
4075
4076         * elf/dl-load.c: Remove support for systems without MAP_ANON.
4077         * elf/dl-minimal.c: Likewise.
4078         * elf/dl-misc.c: Likewise.
4079         * elf/rtld.c: Likewise.
4080         * sysdeps/generic/ldsodefs.h: Likewise.
4081
4082 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
4083
4084         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
4085         Avoid reuse of complex expression.
4086
4087         * po/fr.po: Update from translation team.
4088
4089 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4090
4091         * include/dirent.h: Yet more changes to match sort function type
4092         change.
4093         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
4094         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4095         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
4096
4097 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
4098
4099         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
4100
4101 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4102
4103         * nscd/connections.c (restart): Try to preserve the process name
4104         by reading the /proc/self/exe symlink and using the return name.
4105         Patch by Jeff Bastian <jbastian@redhat.com>.
4106
4107 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
4108
4109         [BZ #9733]
4110         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
4111         if we are not loading a new audit library.
4112         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
4113         Only use profiling trampoline for auditing if we are not relocating
4114         an audit library.
4115         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
4116         * elf/rtld.c: Likewise.
4117         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
4118
4119         * elf/rtld.c (dl_main): Extend help message for --audit option.
4120
4121         [BZ #9759]
4122         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
4123         alphasort64, versionsort, and versionsort64 to POSIX 2008.
4124         * dirent/alphasort.c: Adjust implementation to type change.
4125         * dirent/alphasort64.c: Likewise.
4126         * dirent/scandir.c: Likewise.
4127         * dirent/versionsort.c: Likewise.
4128         * dirent/versionsort64.c: Likewise.
4129         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
4130         declaration.
4131         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
4132         declaration.
4133
4134         [BZ #9880]
4135         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
4136         correctly.  Set segleft member in output as required.
4137         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4138         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
4139
4140         [BZ #9881]
4141         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
4142         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4143         * inet/Makefile (tests): Add tst-inet6_rth.
4144         * inet/tst-inet6_rth.c: New file.
4145
4146         [BZ #5807]
4147         * string/strlen.c (strlen): Fix omission in the expression to test
4148         for NUL bytes.
4149
4150 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4151
4152         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
4153
4154         * elf/dl-runtime.c (reloc_offset): Define.
4155         (reloc_index): Define.
4156         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
4157         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
4158         computing index from reloc_offset.
4159         (_dl_call_pltexit): Likewise.
4160         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
4161         the relocation index to _dl_fixup.
4162         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
4163         _dl_call_pltexit.
4164         * sysdeps/x86_64/dl-runtime.c: New file.
4165
4166         [BZ #9893]
4167         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
4168         alignment of La_x86_64_regs.  Store xmm parameters.
4169         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
4170
4171         [BZ #9913]
4172         * string/strverscmp.c (__strverscmp): Fix case of different digits
4173         in fractional part of string.
4174         Patch by Jingyu Liu <jyliu@fortinet.com>.
4175         * string/Makefile (tests): Add tst-svc2.
4176         * string/tst-svc2.c: New file.
4177
4178         * string/strverscmp.c (__strverscmp): Optimize size of tables.
4179
4180         * locale/iso-639.def: Add Min Nan.
4181
4182 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4183
4184         [BZ #9948]
4185         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
4186
4187 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4188
4189         * elf/dl-sysdep.c (auxvars): Compress data structure.
4190
4191         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
4192         STT_GNU_IFUNC handling.
4193         (elf_machine_rela): Likewise.
4194
4195 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
4196
4197         * config.h.in (USE_MULTIARCH): Define.
4198         * configure.in: Handle --enable-multi-arch.
4199         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
4200         (_dl_fixup_profile): Likewise.
4201         * elf/do-lookup.c (dl_lookup_x): Likewise.
4202         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
4203         * elf/elf.h (STT_GNU_IFUNC): Define.
4204         * include/libc-symbols.h (libc_ifunc): Define.
4205         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
4206         framework in init-arch.h to get CPUID values.
4207         * sysdeps/x86_64/multiarch/Makefile: New file.
4208         * sysdeps/x86_64/multiarch/init-arch.c: New file.
4209         * sysdeps/x86_64/multiarch/init-arch.h: New file.
4210         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
4211
4212         * config.make.in (experimental-malloc): Define.
4213         * configure.in: Handle --enable-experimental-malloc.
4214         * malloc/Makefile: Handle experimental-malloc flag.
4215         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
4216         * malloc/arena.c: Likewise.
4217         * malloc/hooks.c: Likewise.
4218         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
4219
4220 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
4221
4222         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
4223         prediction.  A few size optimizations.
4224
4225 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4226
4227         * time/tzset.c: Optimize a bit for size.
4228
4229 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4230
4231         * include/stdio.h (fmemopen): Add libc_hidden_proto.
4232         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
4233
4234         * elf/sprof.c: Avoid warning about multi-line comment.
4235
4236 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4237
4238         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
4239         DST name.
4240         * time/tst-posixtz.c: Add tests for quoted timezone names.
4241
4242 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4243
4244         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
4245         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
4246         200809L instead of 200112L.
4247         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
4248         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
4249
4250         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
4251         instead of __quick_exit_funcs to __run_exit_handlers.
4252         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
4253         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
4254         (__cxa_at_quick_exit): Remove attribute_hidden.
4255         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
4256         to __run_exit_handlers.
4257         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
4258         attribute_hidden.
4259
4260 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4261
4262         * po/id.po: Update from translation team.
4263
4264 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
4265
4266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
4267         .machine push; .machine "power6" and .machine pop around mtfsf
4268         insns outside of _ARCH_PWR6 define.
4269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4271         Likewise.
4272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4273         Likewise.
4274         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
4275         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
4276         relax_fenv_state): Likewise.
4277
4278 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
4279
4280         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
4281         cxa_at_quick_exit.
4282         (static-only-routines): Add at_quick_exit.
4283         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
4284         GLIBC_2.10.
4285         * stdlib/quick_exit.c: New file.
4286         * stdlib/at_quick_exit.c: New file.
4287         * stdlib/cxa_at_quick_exit.c: New file.
4288         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
4289         it appropriately.
4290         (__internal_atexit): New function.
4291         (__new_exitfn): Now takes parameter to point to the list to use.
4292         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
4293         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
4294         (exit): ...here.  Just call __run_exit_handlers appropriately.
4295         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
4296         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
4297         * stdlib/on_exit.c: Adjust call to __new_exitfn.
4298         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
4299
4300         * po/id.po: Update from translation team.
4301
4302 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
4303
4304         * po/ru.po: Update from translation team.
4305
4306 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
4307
4308         * po/nl.po: Update from translation team.
4309
4310 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
4311
4312         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
4313         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4314         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4315         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4316         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4317         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4318         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4319
4320         * po/pl.po: Update from translation team.
4321
4322 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4323
4324         [BZ #7083]
4325         * sysdeps/unix/sysv/linux/fallocate.c: New file.
4326         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
4327         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
4328         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
4329         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
4330         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
4331         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
4332         for GLIBC_2.10.
4333         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4334         Add fallocate and fallocate64.
4335
4336         * io/fcntl.h: Pretty printing.
4337
4338 2009-03-02  Richard Guenther  <rguenther@suse.de>
4339
4340         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
4341         attribute also for non-C99 inline semantics variant.
4342
4343 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4344
4345         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
4346         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
4347         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4348         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4350         Likewise.
4351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4352         Likewise.
4353
4354 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4355
4356         * po/cs.po: Update from translation team.
4357
4358 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
4359
4360         * po/bg.po: Update from translation team.
4361         * po/sv.po: Likewise.
4362         * po/fi.po: Likewise.
4363         * po/vi.po: Likewise.
4364
4365 2009-02-27  Roland McGrath  <roland@redhat.com>
4366
4367         * Makeconfig (%.v.i): Depend on Makeconfig.
4368         Exclude % lines from initial #-comment removal.
4369
4370 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
4371
4372         * po/ko.po: Update from translation team.
4373
4374 2009-02-26  Roland McGrath  <roland@redhat.com>
4375
4376         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4377         avoids unused warning.
4378
4379 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
4380             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4381
4382         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4383         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
4384         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4385         and asm/user.h.  Include asm/ptrace.h.
4386         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4387         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4388         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4389         Undefine.
4390         (start_thread): Don't undefine.
4391         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4392         Define.
4393
4394 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
4395
4396         * wctype/wctype.h: The *_l functions are in POSIX 2008.
4397         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4398         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4399         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4400         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4401         200112L to 200809L.
4402         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4403         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4404         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4405         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4406         _SC_THREAD_ROBUST_PRIO_PROTECT.
4407         * posix/unistd.h: fexecve is in POSIX 2008.
4408         * time/time.h: strftime_l is in POSIX 2008.
4409         * io/sys/stat.h: futimens is in POSIX 2008.
4410         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4411         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4412         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4413         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4414         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4415         open_memstream, and vdprintf are in POSIX 2008.
4416
4417 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
4418
4419         * include/features.h: Define macros for XPG7/POSIX 2008.
4420         * ctype/ctype.h: The *_l functions are in POSIX 2008.
4421         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4422         POSIX 2008.
4423         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4424         * locale/xlocale.h: Define locale_t type.
4425         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4426         in POSIX 2008.  Don't define locale_t here.
4427         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4428         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4429         UTIME_OMIT only with __USE_ATFILE.
4430         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4431         * stdio-common/psiginfo.c: New file.
4432         * stdio-common/psiginfo-data.h: New file.
4433         * stdio-common/psiginfo-define.h: New file.
4434         * stdio-common/Makefile (routines): Add psiginfo.
4435         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4436         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4437         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4438         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4439         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4440         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4441         * io/sys/stat.h: Move mknodat definition into same conditional as
4442         mknod.
4443         * time/sys/time.h: futimesat is not among the functions accepted
4444         into the POSIX standard.
4445
4446         * include/features.h: If no feature selection given and we select
4447         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4448         * posix/Versions: Export __posix_getopt.
4449         * posix/getopt.c (_getopt_initialize): Take additional parameter.
4450         Use it to alternatively initialize __posixly_correct.
4451         (_getopt_internal_r): Take addition parameter.  Pass on to
4452         _getopt_initialize.
4453         (_getopt_internal): Take addition parameter.  Pass on to
4454         _getopt_internal_r.
4455         (getopt): Pass additional zero to _getopt_internal.
4456         (__posix_getopt): New function.
4457         * posix/getopt.h: Add redirection for getopt.
4458         * posix/getopt1.c (getopt_long): Pass additional zero to
4459         _getopt_internal.
4460         (getopt_long_only): Likewise.
4461         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4462         (_getopt_long_only_r): Likewise.
4463         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4464         _getopt_internal_r.
4465
4466 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4467
4468         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4469         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4470         * sysdeps/posix/sysconf.c (__sysconf): Handle
4471         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4472         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4473
4474 2009-02-24  Roland McGrath  <roland@redhat.com>
4475
4476         [BZ #9895]
4477         * README.template: Reworded not to use substituted version number.
4478         Renamed to ...
4479         * README: ... here (no longer generated).
4480         * Makefile (README): Target removed.
4481
4482 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4483
4484         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4485         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4486         instead.
4487
4488         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4489
4490         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4491
4492 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
4493
4494         * po/bg.po: Update from translation team.
4495
4496 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
4497
4498         * stdlib/monetary.h: Uglify function parameter names.
4499         * sunrpc/rpc/pmap_clnt.h: Likewise.
4500         * sunrpc/rpc/svc.h: Likewise.
4501         * sunrpc/rpc/xdr.h: Likewise.
4502         * sunrpc/rpc/clnt.h: Likewise.
4503         * resolv/netdb.h: Likewise.
4504         * resolv/arpa/nameser.h: Likewise.
4505         * resolv/resolv.h: Likewise.
4506         * argp/argp.h: Likewise.
4507         * locale/langinfo.h: Likewise.
4508         * io/sys/stat.h: Likewise.
4509         * posix/spawn.h: Likewise.
4510         * nis/rpcsvc/nislib.h: Likewise.
4511         * malloc/obstack.h: Likewise.
4512         * sysdeps/ia64/bits/link.h: Likewise.
4513         * sysdeps/i386/bits/link.h: Likewise.
4514         * sysdeps/s390/bits/link.h: Likewise.
4515         * sysdeps/powerpc/bits/link.h: Likewise.
4516         * sysdeps/x86_64/bits/link.h: Likewise.
4517         * sysdeps/sparc/bits/link.h: Likewise.
4518         * sysdeps/sh/bits/link.h: Likewise.
4519         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4520         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4521         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4522         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4523
4524 2008-12-01  Fredrik Unger  <fred@tree.se>
4525
4526         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4527         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4528         _FP_UNPACK_RAW_2, fix up first argument.
4529
4530 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
4531
4532         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4533         (GET_NPROCS_PARSER): Change parameters and use next_line.
4534         (__get_nprocs): Rewrite to not use stdio routines.
4535         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4536         Change parameters and use next_line.
4537
4538 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
4539
4540         [BZ #5381]
4541         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4542         Change mempool_alloc prototype.
4543         * nscd/mem.c (gc): Don't handle mem_in_flight.
4544         (mempool_alloc): Third parameter now only indicates whether this is the
4545         first call (to allocate data) or not.  If it is, get db rdlock.
4546         Release it on error.  Don't handle mem_in_flight.
4547         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4548         Adjust third parameter of mempool_alloc calls.
4549         Nothing to do here in case mempool_alloc fails.
4550         Avoid local variable shadowing parameter.  No need to get db rdlock
4551         before calling cache_add.
4552         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
4553         no mem_in_flight array anymore.
4554         * nscd/connections.c: Remove definition and handling of mem_in_flight.
4555         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4556         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
4557         in case mempool_alloc fails. No need to get db rdlock before calling
4558         cache_add.
4559         * nscd/hstcache.c (cache_addhst): Likewise.
4560         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4561         * nscd/servicescache.c (cache_addserv): Likewise.
4562         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
4563
4564 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
4565
4566         * po/lt.po: Update from translation team.
4567
4568 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
4569
4570         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4571         defined, allow additional data to be added using the optional
4572         MORE_ELF_HEADER_DATA macro.
4573         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4574         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4575
4576 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
4577
4578         * include/atomic.h: Define catomic_and if not already defined.
4579         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4580         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4581
4582 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
4583
4584         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4585         Change all callers.
4586         (_int_realloc): Likewise.  Third argument is now padded size
4587         All _int_* functions are now static.
4588
4589         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4590         * malloc/arena.c: Likewise.
4591         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4592         functions.
4593
4594         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4595         easily.
4596
4597         * malloc/malloc.c: Add branch prediction for use of the hooks.
4598
4599         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4600
4601 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4602
4603         [BZ #7095]
4604         * bits/confname.h: Add SUSv7 macros for getconf environments.
4605         * bits/environments.h: Likewise.
4606         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4607         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4608         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4609         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4610         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4611         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4612         * posix/getconf.c: Likewise.
4613         * posix/sysconf.c: Likewise.
4614         * sysdeps/posix/sysconf.c: Likewise.
4615         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4616         environments.
4617
4618 2009-01-16  Petr Baudis  <pasky@suse.cz>
4619
4620         [BZ #9753]
4621         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4622         even if we currently have zero nscount.
4623
4624 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4625
4626         [BZ #9781]
4627         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4628         the input line is too long.
4629
4630         * po/Makefile (libc.pot): Add f_print as function taking c-format
4631         parameter.
4632
4633         * debug/xtrace.sh: Unify translatable messages.
4634         * elf/ldd.bash.in: Likewise.
4635         * elf/sprof.c: Likewise.
4636         * locale/programs/locale.c: Likewise.
4637         * malloc/memusage.sh: Likewise.
4638         * nss/getent.c: Likewise.
4639
4640 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4641
4642         * debug/pcprofiledump.c (print_version,
4643         argp_program_version_hook): New function.
4644         * elf/ldconfig.c (more_help): New function.
4645         (argp): Use it.
4646         * elf/sln.c (usage): New function.
4647         (main): Support --help and --version.
4648         * malloc/memusagestat.c (print_version): New function.
4649         (argp_program_version_hook): New variable.
4650         * nscd/nscd.c (more_help): New function.
4651         (argp): Use it.
4652         * posix/getconf.c (main): Send --version output to stdout.
4653         Support --help.
4654         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4655         arguments.  All callers changed.
4656         (print_version): New function.
4657         (parseargs): Support --help and --version.
4658         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4659         changed.
4660         (print_version): New function.
4661         (main): Use getopt_long.  Support --help and --version.
4662         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4663         --version.
4664
4665 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4666
4667         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4668         (update_data): Fix handling of wrapping back
4669         to the beginning of the buffer.
4670
4671         [BZ #9823]
4672         * stdio-common/psignal.c (psignal): Fix test for empty string.
4673
4674 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
4675
4676         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4677         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
4678         move _null_auth to .rodata.
4679
4680         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4681         value of 24.
4682
4683         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4684
4685         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4686         today than when the original code was written.  Use larger
4687         buffers.  This also makes it unnecessary to have stat information,
4688         if this causes extra efforts.
4689         (__opendir): In case O_DIRECTORY works, don't call fstat just for
4690         __alloc_dir.
4691
4692 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
4693
4694         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4695         is set.
4696         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4697         * sysdeps/sh/sh4/__longjmp.S: Likewise.
4698         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4699         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4700         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4701         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4702
4703 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4704
4705         * po/ru.po: Update from translation team.
4706
4707 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4708
4709         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4710         Add _tid slot to maintain consistency with kernel.
4711
4712 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4713
4714         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4715         incomplete characters at end of input buffer.
4716         * libio/Makefile (tests): Add tst-fgetwc.
4717         * libio/tst-fgetwc.c: New file.
4718         * libio/tst-fgetwc.input: New file.
4719
4720 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4721
4722         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4723
4724 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4725
4726         [BZ #9793]
4727         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4728         *OUTBUFSTART unless the whole output fit into the buffer.
4729         * iconv/Makefile (tests): Add tst-iconv4.
4730         * iconv/tst-iconv4.c: New file.
4731
4732 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
4733
4734         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4735         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4736
4737 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4738
4739         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4740         newer linker scripts.
4741
4742 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4743
4744         [BZ #7040]
4745         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4746         inotify_rm_watch should have type int.
4747
4748 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4749
4750         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4751         Make aligned_restore_vmx a local symbol.
4752         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4753         Likewise.
4754
4755 2009-01-30  Andreas Jaeger  <aj@suse.de>
4756
4757         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4758         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4759         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4760         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4761         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4762         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4763         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4764
4765 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4766
4767         [BZ #9726]
4768         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4769         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4770
4771 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4772
4773         [BZ #9726]
4774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4775         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4776         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4777         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4778
4779 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4780
4781         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4782         memcpy instead of memcmp.
4783         (_dl_setup_pointer_guard): Likewise.
4784
4785 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4786
4787         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4788         manipulated brk, use malloc_printerr.
4789         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4790         requests.
4791
4792 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4793
4794         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4795         rindex): For C++ add inlines so that they can be recognized as
4796         builtins.
4797         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4798
4799 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4800             Jakub Jelinek  <jakub@redhat.com>
4801
4802         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4803         * wcsmbs/wchar.h: Likewise.
4804
4805 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4806
4807         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4808         (stackinfo_sub_sp): Define.
4809
4810 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4811
4812         [BZ #9750]
4813         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4814         * include/alloca.h (alloca_account): Define.
4815         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4816         (stackinfo_sub_sp): Define.
4817
4818         * nscd/connections.c (nscd_init): If database file access fails
4819         check whether this is due to permission problems and bail in that
4820         case.
4821
4822         [BZ #9741]
4823         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4824         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4825
4826 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4827
4828         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4829         Add "t" to clobber list.
4830         (INTERNAL_SYSCALL_NCS): Likewise.
4831
4832 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4833
4834         * nss/getent.c (print_networks): Don't print comma between aliases.
4835
4836 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
4837
4838         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4839
4840         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4841         the hash table.
4842         * misc/Makefile (tests): Add bug-hsearch1.
4843         * misc/bug-hsearch1.c: New file.
4844
4845 2009-01-22  Roland McGrath  <roland@redhat.com>
4846
4847         * Makeconfig (%.v.i): Strip trailing # comments,
4848         not only whole-line comments.
4849
4850 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
4851
4852         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4853         one parameter.  If non-NULL use it to initialize return value.
4854         (_dl_setup_pointer_guard): New function.
4855         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4856         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4857         * elf/rtld.c (security_init): Pass _dl_random to
4858         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
4859         pointer_chk_guard.
4860         * elf/dl-sysdep.c (_dl_random): New variable.
4861         (_dl_sysdep_start): Handle AT_RANDOM.
4862         (_dl_show_auxv): Likewise.
4863         * elf/dl-support.c (_dl_random): New variable.
4864         (_dl_aux_init): Handle AT_RANDOM.
4865         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4866         to _dl_setup_stack_chk_guard.
4867
4868         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4869
4870 2009-01-10  Roland McGrath  <roland@redhat.com>
4871
4872         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4873
4874 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4875
4876         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4877
4878         [BZ #9706]
4879         * nss/nss_files/files-parse.c (strtou32): New function.
4880         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4881         across 32-bit and 64-bit platforms.
4882         (INT_FIELD_MAYBE_NULL): Likewise.
4883
4884 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4885
4886         [BZ #9720]
4887         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4888         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4889         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4890         Likewise.
4891
4892 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4893
4894         [BZ #697]
4895         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4896         being NULL also if there are no backreferences.
4897         * posix/rxspencer/tests: Add testcases.
4898
4899 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4900
4901         [BZ #9697]
4902         * posix/bug-regex17.c: Add testcases.
4903         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4904         handling.
4905
4906 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4907
4908         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4909         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4910         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4911         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4912         for elf subdir.
4913         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4914         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4915         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4916         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4917         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4918         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4919
4920 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4921
4922         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4923         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4924         re_string_skip_chars, re_string_reconstruct): Likewise.
4925         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4926
4927 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4928
4929         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4930         adjust the buffer alignment.
4931
4932 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4933
4934         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4935         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4936         net/route.h.
4937
4938         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4939         flavor to description only when flavor is not NULL.
4940
4941         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4942         mutex after SIGIO/SIGURG lookup loop.
4943
4944 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4945
4946         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4947
4948 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
4949
4950         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4951         handling.
4952
4953 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
4954
4955         * sysdeps/unix/sysv/linux/kernel-features.h
4956         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
4957
4958         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
4959         if no output is written.
4960
4961         * version.h: Bump to 2.10 development.
4962
4963         * posix/getconf.c: Update copyright year.
4964         * nss/getent.c: Likewise.
4965         * iconv/iconvconfig.c: Likewise.
4966         * iconv/iconv_prog.c: Likewise.
4967         * elf/ldconfig.c: Likewise.
4968         * catgets/gencat.c: Likewise.
4969         * csu/version.c: Likewise.
4970         * elf/ldd.bash.in: Likewise.
4971         * elf/sprof.c (print_version): Likewise.
4972         * locale/programs/locale.c: Likewise.
4973         * locale/programs/localedef.c: Likewise.
4974         * nscd/nscd.c (print_version): Likewise.
4975         * debug/xtrace.sh: Likewise.
4976         * malloc/memusage.sh: Likewise.
4977         * malloc/mtrace.pl: Likewise.
4978         * debug/catchsegv.sh: Likewise.
4979
4980 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
4981
4982         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
4983         script.
4984
4985 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
4986
4987         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
4988         gethostbyname4_r function call succeeded, just leave the loop.
4989
4990         [BZ #9694]
4991         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
4992         very end.
4993         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
4994         * wctype/Makefile (tests): Add bug-wctypeh.
4995         * wctype/bug-wctypeh.c: New file.
4996
4997         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
4998         LOCALDOMAIN is defined.
4999         * nscd/nscd_getai.c (__nscd_getai): Likewise.
5000
5001         * sysdeps/x86_64/bits/select.h: New file.
5002
5003         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
5004
5005 2008-12-21  Bruno Haible  <bruno@clisp.org>
5006
5007         [BZ #9677]
5008         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
5009         if no output is written.
5010
5011 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
5012
5013         * login/utmp_file.c (pututline_file): Replace call to dup2 with
5014         libc internal symbol __dup2 to avoid access through the PLT.
5015
5016 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
5017
5018         [BZ #6545]
5019         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
5020         available only for __USE_GNU.
5021
5022         * inet/Makefile (tests): Add tst-getni2.
5023         * inet/tst-getni2.c: New file.
5024
5025         [BZ #7080]
5026         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
5027         NULL when NI_NAMEREQD is set.
5028         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
5029         * inet/Makefile (tests): Add tst-getni1.
5030         * inet/tst-getni1.c: New file.
5031
5032 2008-12-03  Petr Baudis  <pasky@suse.cz>
5033
5034         [BZ #7067]
5035         * nscd/connections.c (invalidate_cache): Use prune_run_lock
5036         instead of prune_lock.
5037         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
5038         * nscd/nscd.h (database_dyn): Add prune_run_cache.
5039
5040 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
5041
5042         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
5043         use.
5044
5045         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
5046         handling.
5047
5048         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
5049         after reading name server list.
5050
5051         [BZ #7058]
5052         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
5053         handling for host name aliases.
5054
5055 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
5056
5057         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
5058         instead of doing things manually.
5059
5060 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
5061
5062         * posix/regex_internal.h (build_wcs_upper_buffer):
5063         Return type is reg_error_t.
5064
5065 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
5066
5067         * posix/globtest.sh: Use mktemp to create temporary file and
5068         directory.
5069
5070         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
5071         sets correctly.
5072         (__CPU_CLR_S): Likewise.
5073         (__CPU_ISSET_S): Likewise.
5074
5075 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
5076             Ulrich Drepper  <drepper@redhat.com>
5077
5078         * scripts/firstversion.awk: Use custom comparison function to compare
5079         version numbers.
5080         * scripts/versions.awk: Use sort invocation which can handle
5081         multi-digit sub-version numbers.
5082
5083 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
5084
5085         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
5086         * locale/iso-639.def: Add Chhattisgarhi entry.
5087
5088 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
5089
5090         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
5091         ESRCH return value.
5092         (_nss_dns_gethostbyname4_r): Likewise.
5093         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
5094         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
5095         gethostbyname4_r, we don't have a separate IPv6 status, so copy
5096         the no_data variable.
5097
5098         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
5099         information at the correct index.
5100
5101         * socket/sys/socket.h: Declare accept4.
5102         * socket/accept4.c: New file.
5103         * sysdeps/unix/sysv/linux/accept4.c: New file.
5104         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
5105         * socket/Makefile (routines): Add accept4.
5106         * socket/Versions: Export accept4 with version GLIBC_2.10.
5107         * socket/paccept.c: Removed.
5108         * sysdeps/unix/sysv/linux/paccept.c: Removed.
5109         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
5110         * Versions.def: Define GLIBC_2.10 for libc.
5111         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
5112
5113         * nscd/connections.c: Use accept4.
5114
5115         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
5116
5117 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
5118
5119         * resolv/res_send.c (send_dg): Create sockets with non-blocking
5120         flag already set.
5121
5122         * stdlib/setenv.c (unsetenv): Don't search environment if it does
5123         not exist.
5124         * stdlib/Makefile (tests): Add tst-unsetenv1.
5125         * stdlib/tst-unsetenv1.c: New file.
5126
5127 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
5128
5129         * login/utmp_file.c (file_writable): New variable.
5130         (setutent_file): Don't try to open file for writing.
5131         (pututline_file): Before writing, make descriptor writable if
5132         necessary.
5133
5134 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
5135
5136         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
5137         to IPv4 or IPv6 if an interface has been found.
5138
5139 2008-11-26  Roland McGrath  <roland@redhat.com>
5140
5141         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
5142         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
5143
5144         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
5145         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
5146         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
5147
5148         * elf/elf.h (NT_386_IOPERM): New macro.
5149         (NT_PPC_VSX): New macro.
5150
5151 2008-11-25  Roland McGrath  <roland@redhat.com>
5152
5153         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
5154         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
5155         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
5156         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
5157         Subdirectories moved to ports repository.
5158         * configure.in (base_machine): Remove alpha case.
5159
5160 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
5161
5162         * sysdeps/mach/strerror_l.c: New file.
5163
5164 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
5165
5166         [BZ #6411]
5167         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
5168         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
5169         magic numbers.
5170         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
5171         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
5172         (relax_fenv_state): Same as above.
5173         (FPSCR_29): Reserve bit in ISA 2.05.
5174         (FPSCR_NI): Provide define for compat.
5175         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
5176         magic numbers.
5177         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
5178         magic numbers.
5179         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
5180         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
5181         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
5182         access to hwcap to account for hwcap size increase to uint64_t.
5183         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
5184         Likewise.
5185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
5186         (*setcontext): Likewise.
5187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
5188         New file.
5189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
5190         New file.
5191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5192         (*setcontext): dynamically select mtfsf insn based on
5193         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5194         increase to uint64_t.
5195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5196         (*swapcontext): dynamically select mtfsf insn based on
5197         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
5198         increase to uint64_t.
5199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
5200         New file.
5201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
5202         New file.
5203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5204         (*setcontext): dynamically select mtfsf insn based on
5205         PPC_FEATURE_HAS_DFP.
5206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5207         (*swapcontext): dynamically select mtfsf insn based on
5208         PPC_FEATURE_HAS_DFP.
5209
5210 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
5211
5212         * version.h: Bump for 2.9 release.
5213         * include/features.h (__GLIBC_MINOR__): Bump to 9.
5214
5215         [BZ #7029]
5216         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
5217         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
5218         all the rounding.
5219
5220 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
5221
5222         [BZ #7009]
5223         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
5224         unknown request types for now.
5225
5226 2008-11-11  Roland McGrath  <roland@redhat.com>
5227
5228         * sysdeps/x86_64/configure: New file.
5229
5230         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
5231         * configure: Regenerated.
5232
5233 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5234
5235         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
5236         correct instruction to remove the stack frame.
5237
5238 2008-11-03  Michael Matz  <matz@suse.de>
5239
5240         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
5241         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
5242
5243 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
5244
5245         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
5246         Remove.
5247
5248         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
5249         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
5250         of the thread variable instead of void *.
5251         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
5252         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
5253         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5254         __libc_tsd_define arguments.
5255         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
5256         __libc_tsd_address arguments.  Remove union hack.
5257         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
5258         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
5259         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
5260         Adjust __libc_tsd_{set,get} arguments.
5261         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5262         __libc_tsd_define arguments.
5263         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
5264         arguments.
5265         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
5266         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
5267         (LOCALE): Adjust __libc_tsd_define arguments.
5268         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
5269         arguments.
5270         (LOCALE): Adjust __libc_tsd_define arguments.
5271         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
5272         arguments.
5273         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
5274         arguments.
5275
5276 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
5277
5278         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
5279         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5280
5281 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
5282
5283         [BZ #6966]
5284         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
5285
5286 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
5287             Ulrich Drepper  <drepper@redhat.com>
5288
5289         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
5290         definition for GCC 3.1 and later.
5291
5292 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
5293
5294         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
5295         refetch dtv, as it might have changed.
5296         * elf/Makefile: Add rules to build and run tst-tls18.
5297         * elf/tst-tls18.c: New test.
5298         * elf/tst-tlsmod18a.c: New file.
5299
5300 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
5301
5302         [BZ #6875]
5303         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
5304
5305 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5306
5307         [BZ #6867]
5308         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
5309
5310         [BZ #6919]
5311         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
5312         Fix length of copy operation.
5313
5314 2008-10-02  Pierre Habouzit <madcoder@debian.org>
5315
5316         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
5317         and fix its calling convention.
5318
5319 2008-10-07  Andreas Schwab  <schwab@suse.de>
5320
5321         [BZ #6942]
5322         * resolv/res_send.c (send_vc): Fix last change.
5323         (send_dg): Align here as well.
5324
5325 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5326
5327         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
5328         return value in case rlimit is RLIM_INFINITY.
5329
5330         [BZ #6947]
5331         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
5332         for UL_SETFSIZE.
5333         * resource/Makefile (tests): Add bug-ulimit1.
5334         * resource/bug-ulimit1.c: New file.
5335
5336         [BZ #6974]
5337         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
5338         without dot.  Properly terminate the string with a null byte.
5339         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
5340
5341         [BZ #6980]
5342         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5343         negative sizees.
5344         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
5345         negative __size.
5346
5347         [BZ #6995]
5348         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5349
5350 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
5351
5352         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5353         abort if there is no initgroups_dyn function.
5354
5355         * resolv/res_send.c (send_dg): On timeout, only return nonzero
5356         result if any of the queries really provided an answer.
5357
5358 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
5359
5360         * po/lt.po: Update from translation team.
5361
5362 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
5363
5364         * po/id.po: Update from translation team.
5365
5366 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
5367
5368         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5369         Fix tests for existence of second reply.
5370
5371 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
5372
5373         * po/id.po: New file.
5374         Contributed by the Indonesian translation team.
5375
5376 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
5377
5378         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5379         initialization.
5380
5381 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
5382
5383         * elf/Makefile: Add rules to build and run tst-tls17.
5384         * elf/tst-tls17.c: New test.
5385         * elf/tst-tlsmod17a.c: New file.
5386         * elf/tst-tlsmod17b.c: Likewise.
5387
5388 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
5389
5390         * stdlib/divmod_1.c: Use correct type for dummy variable.
5391         * stdlib/mod_1.c: Likewise.
5392
5393 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
5394
5395         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5396
5397 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
5398
5399         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5400         __nonnull order for C++.
5401         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5402         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5403
5404 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
5405
5406         * stdlib/longlong.h: Update from GCC.
5407
5408 2008-10-09  Jakub Jelinek <jakub@redhat.com>
5409             David S. Miller  <davem@davemloft.net>
5410
5411         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5412         make sure any registers used with 64-bit 'branch-on-register'
5413         instructions have their top 32-bits clear.
5414         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5415         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5416
5417 2008-09-18  Andreas Schwab  <schwab@suse.de>
5418
5419         [BZ #6942]
5420         * resolv/res_send.c (send_vc): Fix use of unaligned address.
5421         Properly handle partial reads.
5422
5423 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
5424
5425         * elf/elf.h (STO_MIPS_PLT): New.
5426         (R_MIPS_COPY): New.
5427         (R_MIPS_JUMP_SLOT): New.
5428         (R_MIPS_NUM): Redefine to 128.
5429         (DT_MIPS_PLTGOT): New.
5430         (DT_MIPS_RWPLT): New.
5431         (DT_MIPS_NUM): Redefine to 0x35.
5432
5433 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
5434
5435         * timezone/africa: Update from tzdata2008f.
5436         * timezone/asia: Likewise.
5437         * timezone/australasia: Likewise.
5438         * timezone/europe: Likewise.
5439         * timezone/leapseconds: Likewise.
5440         * timezone/northamerica: Likewise.
5441         * timezone/southamerica: Likewise.
5442         * timezone/zone.tab: Likewise.
5443
5444 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
5445
5446         * nscd/connections.c: Disable use of paccept for now.
5447
5448 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
5449
5450         * socket/Versions: Remove paccept export for GLIBC_2.9.
5451         * socket/Makefile (routines): Remove paccept.
5452         * socket/sys/socket.h: Remove paccept declaration.
5453
5454         * po/sv.po: Update from translation team.
5455
5456 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
5457
5458         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5459         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5460
5461 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
5462
5463         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5464         Patch by Olivier Fourdan <ofourdan@redhat.com>.
5465
5466 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
5467
5468         * sunrpc/rpc/svc.h: Declare svcfd_create.
5469         Patch by Michael Solberg <msolberg@redhat.com>.
5470
5471 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
5472             Ulrich Drepper  <drepper@redhat.com>
5473
5474         * malloc/malloc.c (public_vALLOc): Try other arenas in case
5475         _int_valloc fails.
5476         (public_pVALLOc): Likewise.
5477
5478 2008-09-02  Andreas Jaeger  <aj@suse.de>
5479
5480         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5481         commit.
5482
5483 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
5484
5485         [BZ #6860]
5486         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5487
5488 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
5489
5490         * Makefile (check-data): Check data directory in add-ons.
5491         * elf/Makefile (check-data): Likewise.
5492
5493 2008-08-18  Roland McGrath  <roland@redhat.com>
5494
5495         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5496         * configure: Regenerated.
5497         * config.make.in (cflags-cpu): New substituted variable.
5498         (with-cpu): Variable removed.
5499         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5500
5501 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
5502
5503         [BZ #6845]
5504         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5505         __signbitl definition and __LONG_DOUBLE_128__ guard from:
5506         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5507         redundant.  Functions which call floating point assembler operations
5508         should go into a sysdeps powerpc/fpu directory.
5509
5510 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
5511
5512         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5513         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5514
5515 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
5516
5517         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5518
5519         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5520         change related to AT_EXECFN.  We cannot use that string.
5521         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5522         _dl_execfn member.
5523         * elf/dl-support.c: Remove _dl_execfn variable.
5524         (_dl_aux_init): Remove handling of AT_EXECFN.
5525         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5526         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5527
5528 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
5529
5530         [BZ #6544]
5531         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
5532         byte gets added to writes and seeks from the end use the length of
5533         the buffer and not the currently terminating NUL byte.
5534
5535         [BZ #6634]
5536         * login/utmp_file.c (getutent_r_file): Take additional parameter.
5537         Set to true if locking failed.
5538         (getutid_r_file): Adjust caller.
5539         (pututline_file): Likewise.  Return NULL in this case.
5540         Patch mostly by halesh.s@gmail.com.
5541
5542 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
5543
5544         [BZ #6589]
5545         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5546         Define.
5547         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5548
5549 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
5550
5551         [BZ #6839]
5552         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5553         macro since it is now available in elf/dynamic-link.h.
5554
5555 2008-08-12  Roland McGrath  <roland@frob.com>
5556
5557         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5558         in case used outside of libc.
5559         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5560
5561 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
5562
5563         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5564         directly instead of going through dn_comp.
5565
5566 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
5567
5568         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5569         Fix asm constraints.
5570
5571 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5572
5573         [BZ #6790]
5574         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5575         (IPV6_PMTUDISC_PROBE): Likewise.
5576
5577 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
5578
5579         [BZ #6791]
5580         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5581
5582 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
5583             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5584
5585         [BZ #6817]
5586         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5587         Added the members 'vsx' and 'arch_2_06'.
5588         (_dl_powerpc_platforms): Add the member 'power7'.
5589         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5590         to reflect the changes required by VSX and ISA 2.06.
5591         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5592         'power7'.
5593         Defined PPC_PLATFORM_POWER7.
5594         (_dl_string_platform): Add support for POWER7.
5595         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5596         capability and ISA 2.06.
5597
5598 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5599
5600         [BZ #6824]
5601         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5602         macro to detect use of 128 bit long double.
5603         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5604
5605 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5606
5607         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5608
5609         [BZ #5794]
5610         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5611         parameters.
5612         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5613         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5614
5615 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5616
5617         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5618         guaranteed to be large enough to read inotify event.  Ignore
5619         EAGAIN error.  Better error message.  Add branch predicition.
5620         (main_loop_epoll): Likewise.
5621
5622 2008-08-02  Roland McGrath  <roland@frob.com>
5623
5624         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5625         Add memory clobbers.
5626
5627 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5628
5629         * manual/arith.texi: Avoid @strong{Note:}.
5630         * manual/creature.texi: Likewise.
5631         * manual/filesys.texi: Likewise.
5632         * manual/math.texi: Likewise.
5633         * manual/memory.texi: Likewise.
5634         * manual/resource.texi: Likewise.
5635         * manual/syslog.texi: Likewise.
5636         * manual/time.texi: Likewise.
5637
5638         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5639         to prevent warning.
5640
5641 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5642
5643         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5644         new epoll_create1 interface.
5645         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5646         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5647         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5648
5649         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5650         (NS_GET32): Likewise.
5651
5652         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5653         syscalls, too.
5654
5655         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5656         use the AT_EXECFN value if it is no absolute path.
5657         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5658         __ASSUME_AT_EXECFN.
5659
5660         * Versions.def: Add GLIBC_2.9 to libresolv.
5661         * include/resolv.h: Remove hidden proto declarations for __ns_*
5662         functions.  Add them for __dn_count_labels and __p_secstodate.
5663         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5664         Define ns_msg_getflags macro here.
5665         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5666         and __p_secstodate.
5667         * resolv/Versions: Export functions from <arpa/nameser.h> from
5668         libresolv in version GLIBC_2.9.
5669         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
5670         hidden definitions.
5671         * resolv/ns_netint.c: Likewise.
5672         * resolv/ns_parse.c: Likewise.
5673         * resolv/ns_print.c: Likewise.
5674         * resolv/ns_samedomain.c: Likewise.
5675         * resolv/ns_ttl.c: Likewise.
5676         * resolv/arpa/nameser_compat.h: Likewise.
5677         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
5678         function calls.
5679         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5680         instead of ns_get16.
5681         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5682         __ns_get32 instead of ns_get16 and ns_get32 respectively.
5683         (gaih_getanswer_slice): Likewise.
5684         * resolv/Makefile (libresolv-routines): Add ns_date.
5685         * resolv/ns_date.c: New file.
5686
5687         * elf/Makefile (check-localplt.out): Also check libresolv and
5688         libcrypt.
5689
5690 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
5691
5692         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5693         __ASSUME_O_CLOEXEC.
5694
5695 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
5696
5697         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5698         buffer passed to NSS functions.
5699
5700         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5701
5702         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5703         Define.
5704
5705         * misc/syslog.c (openlog_internal): Fix compile problem.
5706
5707 2008-07-28  Roland McGrath  <roland@redhat.com>
5708
5709         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5710
5711 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5712
5713         * io/ftw.c (add_object): Remove inline to avoid warning.
5714
5715         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5716
5717         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5718         Use it instead of locally defined resplen2 variable.
5719         (res_nsend): Adjust for __libc_res_nsend interface change.
5720         (send_vc): Initialize *resplen2 if necessary.  Read length of
5721         package into an appropriately aligned variable.  Store converted length
5722         in new variable and use it appropriately.
5723         Add branch prediction help.
5724         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5725         and pass it on to __libc_res_nsend.  Adjust all callers.
5726         (__libc_res_nsearch): Likewise.
5727         (__libc_res_nqeurydomain): Likewise.
5728         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5729         change.
5730         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5731         Define resplen2 variable and pass it to __libc_res_nsearch and then
5732         to gaih_getanswer.
5733         (getanswer_r): In case of incorrect DNS data don't overread buffer.
5734         Add branch prediction.
5735         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
5736         (gaih_getanswer): Don't decode second slice if first one failed due
5737         to a too small buffer.  Don't let not found status of second
5738         decoder shadow results of the first.
5739         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5740         and __libc_res_nquery interface changes
5741         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5742         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5743         __libc_res_nsearch, and __libc_res_nsend.
5744         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5745         change.
5746         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5747         __libc_res_nsearch interface changes.
5748
5749 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5750
5751         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5752
5753         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5754         file descriptors with close-on-exec set.
5755         (exec_comm_child): Fix the case where the write end of the pipe is
5756         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5757
5758         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5759         * io/pipe2.c: Likewise.
5760         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5761         instead of __ASSUME_PACCEPT.
5762         * include/unistd.h: Declare __have_pipe2.
5763         * libio/iopopen.c: Implement "e" flag.
5764         * libio/Makefile (tests): Add tst-popen1.
5765         * libio/tst-popen1.c: New file.
5766
5767         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5768         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5769
5770 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5771
5772         [BZ #6771]
5773         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5774         success call of _IO_SEEKOFF or calls which failed because the
5775         descriptor is for a pipe.
5776
5777         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5778         magic number.
5779
5780         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5781
5782         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5783         F_SETFD use if we know fopen set the flag.
5784
5785         * login/utmp_file.c (setutent_file): Minor optimization in case
5786         O_CLOEXEC is available.
5787
5788 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5789
5790         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5791         * elf/Makefile: Use pie-ccflag variable.
5792         * nscd/Makefile: Likewise.
5793         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5794
5795 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
5796
5797         [BZ #6724]
5798         * Versions.def: Add GLIBC_2.9 version tag for libutil.
5799         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5800         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
5801         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5802         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
5803         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5804         utmp32, utmpx32 and login32.
5805         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5806         versions of struct utmp functions to libc and libutil.
5807         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5808         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5809         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5810         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5811         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5812         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5813         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5814         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5815         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5816         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5817         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5818         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5819         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5820         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5821         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5822         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5823         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5824         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5825         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5826         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5827         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5828         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5829
5830 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5831
5832         * scripts/gen-as-const.awk: Generate more widely usable code by
5833         using 64-bit arithmetic.
5834
5835         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5836         the same treatment as narrow output code in last patch.
5837
5838         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5839
5840         [BZ #6763]
5841         * elf/dl-load.c (local_strdup): Remove inline.
5842         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5843         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5844         part of the object.
5845
5846         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5847
5848 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
5849
5850         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5851         the new syscalls, too.
5852
5853         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5854         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5855
5856         [BZ #6698]
5857         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5858         parameter for end of buffer.  If temporary copy is too large use
5859         malloc.
5860         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5861         interface change.
5862         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
5863         string rewrite when allocating buffer.
5864
5865         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5866         syscalls, too.
5867
5868         * nscd/connections.c (nscd_init): Clean up fcntl call.
5869
5870         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5871         SOCK_NONBLOCK if possible.
5872
5873         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5874         SOCK_CLOEXEC if available.
5875
5876         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5877         __libc_clntudp_bufcreate_internal.
5878         * include/sys/socket.h: Declare __have_sock_cloexec.
5879         * socket/Makefile (aux): Add have_sock_cloexec.
5880         * socket/have_sock_cloexec.c: New file.
5881         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5882         __libc_clntudp_bufcreate.
5883         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5884         which takes an additional parameter.  Create socket with non-blocking
5885         mode and close-on-exec flag set, if wanted.
5886         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5887         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5888         instead of clntudp_create.  The socket has already the close-on-exec
5889         flag set if SOCK_CLOEXEC is defined.
5890
5891 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
5892
5893         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5894         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5895         appropriate.
5896         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5897         non-blocking mode by using socket, paccept, and inotify_init1.
5898
5899         * Versions.def (glibc): Add GLIBC_2.9.
5900         * io/Makefile (routines): Add dup3 and pipe2.
5901         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5902         * io/dup3.c: New file.
5903         * io/pipe2.c: New file.
5904         * posix/unistd.h: Declare dup3 and pipe2.
5905         * socket/Makefile (routines): Add paccept.
5906         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5907         * socket/paccept.c: New file.
5908         * socket/sys/socket.h: Declare paccept.
5909         * sysdeps/unix/syscalls.list: Add entry for dup3.
5910         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5911         epoll_create2 and inotify_init1.
5912         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5913         * sysdeps/unix/sysv/linux/paccept.c: New file.
5914         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5915         possible.
5916         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5917         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5918         inotify_init1, and pipe2 entries.
5919         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5920         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5921         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5922         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5923         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5924         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5925         SOCK_NONBLOCK.
5926         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5927         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5928         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5929         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5930         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5931         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5932         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5933         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5934         EPOLL_NONBLOCK.  Declare epoll_create2.
5935         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5936         EFD_NONBLOCK.
5937         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5938         IN_NONBLOCK.  Declare inotify_init1.
5939         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5940         SFD_NONBLOCK.
5941         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5942         TFD_NONBLOCK.
5943
5944         * elf/elf.h: Define AT_EXECFN.
5945         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5946         LD_ORIGIN_PATH.
5947         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5948         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
5949         if __ASSUME_AT_EXECFN is defined.
5950         (_dl_aux_init): Handle AT_EXECFN.
5951         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5952         for 2.6.27 and up.
5953         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5954         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5955         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
5956         _dl_execfn if available and avoid compatibility code if
5957         __ASSUME_AT_EXECFN is defined.
5958
5959         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
5960         _dl_discover_osversion only for older kernels.
5961
5962 2008-07-22  Roland McGrath  <roland@frob.com>
5963
5964         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
5965
5966 2008-07-21  Roland McGrath  <roland@frob.com>
5967
5968         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
5969         returned too much data out of line.
5970
5971 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
5972
5973         * locale/setlocale.c (setname): Remove inline to avoid compiler
5974         warning.
5975
5976         [BZ #6712]
5977         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
5978
5979 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
5980
5981         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
5982         doesn't manage to write anything, fail.
5983
5984         * malloc/hooks.c (__malloc_check_init): Remove printf.
5985
5986 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5987
5988         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
5989
5990 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
5991
5992         * nscd/connections.c (main_loop_poll): Fix handling of read errors
5993         from inotify.
5994         (main_loop_epoll): Likewise.
5995
5996 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
5997
5998         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
5999
6000         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
6001         if DEBUG is defined.
6002
6003         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
6004         query.  Adjust buffer size computation for padding.
6005
6006 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
6007
6008         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
6009         * stdio-common/tst-setvbuf1.c: New file.
6010         * stdio-common/tst-setvbuf1.expect: New file.
6011
6012         [BZ #6719]
6013         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
6014         when selecting fully-buffered stream.
6015         Patch by Wang Xin <wxinee@gmail.com>.
6016
6017 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6018
6019         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
6020         (__open_2): New function.
6021         (__open64_2): New alias to __open_2.
6022         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
6023         (__openat_2): New function.
6024         (__openat64_2): New alias to __openat_2.
6025
6026 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
6027
6028         [BZ #6723]
6029         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
6030
6031 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6032
6033         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
6034         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
6035         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
6036         __hurd_dfail.
6037         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6038         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6039         * sysdeps/mach/hurd/send.c (__send): Likewise.
6040         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
6041         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
6042
6043 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6044
6045         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
6046         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6047         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6048         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
6049         * hurd/get-host.c (_hurd_get_host_config): Likewise.
6050         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
6051
6052 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
6053
6054         [BZ #6657]
6055         * time/strptime_l.c: Don't clear s.era_cnt after successful match
6056         of %EY.
6057         Patch by Petr Baudis.
6058
6059 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
6060
6061         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
6062         Patch by Peter Jones <pjones@redhat.com>.
6063
6064 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6065
6066         [BZ #6654]
6067         * stdlib/canonicalize.c (__realpath): readlink can write too much
6068         into the buffer on platforms without PATH_MAX.
6069
6070 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
6071
6072         [BZ #6653]
6073         * posix/tst-regex.c (main): Rename to...
6074         (do_test): ... this. Remove cmdline option processing.
6075         (TIMEOUT): Define.
6076         (TEST_FUNCTION): Define.
6077         (CMDLINE_OPTIONS): Define.
6078
6079 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6080
6081         [BZ #5210]
6082         * configure.in: Add -Werror to -fstack-protector test to catch
6083         unsupported architectures.
6084         Patch by Gilles Esponasse <g.esp@free.fr>.
6085
6086 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
6087
6088         * stdlib/tst-setcontext.c: Set back_in_main before exit if
6089         getcontext returns ENOSYS.
6090
6091 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
6092
6093         * nscd/connections.c (main_loop_poll): Fix test for read error.
6094         (main_loop_epoll): Likewise.
6095
6096 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
6097
6098         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
6099         better place so it is not called when nscd is used.
6100
6101         * nscd/connections.c: Also recognize and handle changes to the
6102         resolver configuration file.
6103
6104 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6105
6106         * time/strftime.c: Pass reference to tzset_called around to handle
6107         recursive calls.
6108
6109         [BZ #6612]
6110         * time/strftime.c (__strftime_internal): Call tzset() only
6111         when printing timezone-dependent values.
6112         Based on a patch by Petr Baudis <pasky@suse.cz>.
6113
6114         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
6115         unconditionally use second gaih_getanswer_slice result.
6116
6117         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
6118         (getaddrinfo): RES must always be non-NULL.
6119
6120 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
6121
6122         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
6123         cr[34] registers.
6124         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6125         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6126         Likewise.
6127         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
6128         register.
6129
6130 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6131
6132         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
6133         fields.
6134         * nscd/connections.c (inotify_fd): New variable.
6135         (nscd_init): Try to open an inotify descriptor.
6136         If successful, watch files for databases using inotify instead of
6137         having prune threads stat the files.
6138         (nscd_run_prune): Recognize clear_cache flag being set and call
6139         prune_cache appropriately.
6140         (main_loop_poll): Add inotify descriptor to wait set and handle the
6141         reported changes.
6142         (main_loop_epoll): Likewise.
6143         * nscd/cache.c (prune_cache): Don't stat files for databases if
6144         inotify is used.
6145         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
6146         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
6147
6148         * nscd/grpcache.c (cache_addgr): Correctly compute size of
6149         fixed-size portion of the record.
6150         * nscd/servicescache.c (cache_addserv): Likewise.
6151         * nscd/pwdcache.c (cache_addpw): Likewise.
6152         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6153
6154 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
6155
6156         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
6157         out we don't use uninitialized memory.
6158
6159         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
6160         the client.
6161
6162 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
6163
6164         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
6165         ignore T_DNAME messages.
6166         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
6167
6168 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
6169
6170         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
6171         Avoid segfault if first GETC returns eof/'\0'/'\n'.
6172
6173 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
6174
6175         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
6176         instead of portstr to nscd_getserv_r.  Patch by
6177         Roman Kagan <rkagan@mail.ru>.
6178
6179 2008-05-26  Jim Meyering  <meyering@redhat.com>
6180
6181         Remove more useless "if" tests before "free".
6182         * include/inline-hashtab.h (htab_delete): Likewise.
6183         * libio/freopen.c (freopen): Likewise.
6184         * libio/freopen64.c (freopen64): Likewise.
6185         * locale/programs/ld-collate.c (collate_read): Likewise.
6186         * misc/fstab.c (libc_freeres_fn): Likewise.
6187         * posix/glob.c (globfree): Likewise.
6188
6189 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6190
6191         * string/Makefile (strop-tests): Add memmem.
6192         * string/test-memmem.c: New file.
6193         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
6194         (test_init): Size buf1 according to BUF1PAGES.
6195
6196 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
6197
6198         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
6199         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
6200         (CFLAGS-scanf17.c): New.
6201         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
6202         * stdio-common/scanf15.c (main): Likewise.
6203         * stdio-common/scanf16.c: New file.
6204         * stdio-common/scanf17.c: New file.
6205
6206 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6207
6208         * resolv/res_send.c (send_dg): If we already have one of two
6209         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
6210         use the one answer insted of failing.
6211
6212 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
6213
6214         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
6215         being executed on PowerPC as the expected result exceeds IBM
6216         long double 128 __LDBL_MAX__.
6217
6218 2008-05-21  Roland McGrath  <roland@redhat.com>
6219
6220         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
6221
6222         * Makefile (check-data): Use $(abi-name) before other guesses.
6223         Look in $(add-ons) dirs before scripts/data/.
6224         * elf/Makefile (check-data): Likewise.
6225
6226         * scripts/soversions.awk: Grok ABI line.
6227         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
6228         Emit definition for abi-name variable.
6229
6230 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
6231
6232         * string/endian.h: Define new fixed-size hto* and *toh macros only
6233         if [__USE_BSD].
6234
6235         * iconvdata/Depend: Add localedata.
6236
6237 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6238
6239         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
6240
6241 2008-05-08  David S. Miller  <davem@davemloft.net>
6242
6243         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
6244         HIDDEN_JUMPTARGET.
6245         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6246         (__SYSCALL_CLOBBERS): Remove %g* registers.
6247         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6248         (__SYSCALL_CLOBBERS): Likewise.
6249         * scripts/data/localplt-sparc-linux-gnu.data: New file.
6250         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
6251
6252 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
6253
6254         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6255         (CALL_ERRNO_LOCATION): Define.
6256         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6257         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6258         (CALL_ERRNO_LOCATION): Define.
6259         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6260         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
6261         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
6262
6263 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
6264
6265         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
6266         variable.
6267
6268 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
6269
6270         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6271         (FIRST_FRAME_POINTER): Define.
6272
6273 2008-05-09  David S. Miller  <davem@davemloft.net>
6274
6275         * sysdeps/sparc/sparc64/backtrace.c: New file.
6276
6277 2008-05-14  David S. Miller  <davem@davemloft.net>
6278
6279         * sysdeps/sparc/machine-gmon.h: New file.
6280         * sysdeps/sparc/sparc-mcount.S: Likewise.
6281         * sysdeps/sparc/Makefile: Add sparc-mcount target to
6282         sysdep_routines in gmon directory.
6283
6284 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
6285
6286         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
6287
6288 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
6289
6290         * resolv/res_query.c (__libc_res_nquery): In case one of two
6291         answer was too short don't try to read that answer's header.
6292
6293         * resolv/res_send.c (send_dg): In case of timeout and there are
6294         two queries and one has been answered, return value indicating
6295         success.
6296
6297 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
6298
6299         * nscd/cache.c (cache_add): Take additional parameter specifying
6300         whether this is in response of a cache refill.  Check alignment
6301         of package data.  Revamp waking of pruning thread.
6302         (prune_cache): Small optimization.
6303         * nscd/nscd.h: Adjust cache_add prototypes.
6304         * nscd/aicache.c: Adjust cache_add calls.
6305         * nscd/grpcache.c: Likewise.
6306         * nscd/hstcache.c: Likewise.
6307         * nscd/initgrcache.c: Likewise.
6308         * nscd/pwdcache.c: Likewise.
6309         * nscd/servicescache.c: Likewise.
6310         * nscd/connections.c (restart): Really disable cache use before
6311         exec attempt.  If it fails, reenable cache.
6312         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
6313         time to max to be able to notice concurrent cache additions.  Unlock
6314         prune_lock while performing gc.  Afterwards compute wakeup time with
6315         current wakeup_time value in mind.
6316
6317 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
6318
6319         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
6320
6321         * nscd/mem.c (gc): Correctly determine highest used array element
6322         in mark.
6323
6324         * nscd/mem.c (markrange): Add assert to check entries are all
6325         aligned.  Small cleanup in bitmap use.
6326
6327         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
6328         blockoff of type nscd_ssize_t.
6329         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
6330         (mempoll_alloc): Record block offset and not address.
6331
6332         * nscd/mem.c (gc): Fix test for stack overuse.
6333
6334         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
6335         more asserts.
6336
6337         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
6338         entry is available, believe it.
6339
6340         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
6341         no answers return NSS_STATUS_NOTFOUND.
6342         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
6343         buffer does not have any content.
6344
6345 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
6346
6347         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6348
6349         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6350         lookup, don't assign canon unconditionally.
6351
6352 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6353
6354         * string/Makefile (distribute): Add str-two-way.h.
6355
6356 2008-03-29  Eric Blake  <ebb9@byu.net>
6357
6358         Rewrite string searches to O(n) rather than O(n^2).
6359         * string/str-two-way.h: New file.  For linear fixed-allocation
6360         string searching.
6361         * string/memmem.c: New implementation.
6362         * string/strstr.c: New implementation.
6363         * string/strcasestr.c: New implementation.
6364
6365 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
6366
6367         * posix/regcomp.c (optimize_utf8): Add a note on why we test
6368         opr.ctx_type.
6369         (calc_first): Initialize constraint field.
6370         (duplicate_node_closure): Use it instead of special casing ANCHORS.
6371         Use search_duplicated_node to avoid loops.  Fix grammar.
6372         (duplicate_node): Merge constraint field for all node types.
6373         (calc_eclosure_iter): Look at constraint field for all node types.
6374         * posix/regex_internal.c (create_cd_newstate): Don't look at
6375         create_cd_newstate.
6376
6377 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6378
6379         [BZ #6428]
6380         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6381
6382         [BZ #6442]
6383         * string/endian.h: Add macros for fixed-size endian conversion.
6384         * bits/byteswap.h: Allow inclusion from <endian.h>.
6385         * sysdeps/i386/bits/byteswap.h: Likewise.
6386         * sysdeps/ia64/bits/byteswap.h: Likewise.
6387         * sysdeps/s390/bits/byteswap.h: Likewise.
6388         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6389         * string/Makefile (tests): Add tst-endian.
6390         * string/tst-endian.c: New file.
6391
6392         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6393         Patch by Reuben Thomas.
6394
6395 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
6396
6397         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6398
6399 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6400
6401         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6402
6403         [BZ #6461]
6404         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6405         Add missing braces.
6406         (BODY for __gconv_transform_internal_ascii): Likewise.
6407
6408         [BZ #6472]
6409         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6410         to be treated like link-local addresses.
6411         (match_prefix): Don't treat IPv4 loopback address special when
6412         converting to v4 mapped addressed.
6413
6414         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6415         if necessary.
6416         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6417         * posix/tst-rfc3484-2.c: Likewise.
6418         * posix/tst-rfc3484-3.c: Likewise.
6419
6420         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6421         and SCTP.
6422
6423         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6424
6425         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6426
6427         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6428
6429 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
6430
6431         * po/lt.po: New file.  From Lituanian translation team.
6432
6433 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
6434
6435         Introduce TLS descriptors for i386 and x86_64.
6436         * include/inline-hashtab.h: New file, copied from 2005's
6437         libiberty, with fix for memory leak imported afterwards by
6438         Glauber de Oliveira Costa.
6439         * elf/tlsdeschtab.h: New file.
6440         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6441         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
6442         (CHECK_STATIC_TLS): Move to...
6443         * elf/dynamic-link.h: ... this file.
6444         (TRY_STATIC_TLS): New macro.
6445         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6446         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6447         R_386_TLS_DESC): Define.
6448         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6449         binutils.
6450         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6451         R_X86_64_TLSDESC): Define.
6452         (R_386_NUM, R_X86_64_NUM): Adjust.
6453         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6454         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6455         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6456         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6457         release tlsdesc_table.
6458         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6459         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6460         (elf_machine_rel): Handle R_386_TLS_DESC.
6461         (elf_machine_rela): Likewise.
6462         (elf_machine_lazy_rel): Likewise.
6463         (elf_machine_lazy_rela): Likewise.
6464         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6465         * sysdeps/i386/dl-tlsdesc.S: New file.
6466         * sysdeps/i386/dl-tlsdesc.h: New file.
6467         * sysdeps/i386/tlsdesc.c: New file.
6468         * sysdeps/i386/tlsdesc.sym: New file.
6469         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6470         tlsdesc_table.
6471         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6472         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6473         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6474         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6475         release tlsdesc_table.
6476         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6477         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6478         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6479         (elf_machine_rel): Handle R_X86_64_TLSDESC.
6480         (elf_machine_rela): Likewise.
6481         (elf_machine_lazy_rel): Likewise.
6482         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6483         (__tls_get_addr): Do not declare for non-shared compiles.
6484         * sysdeps/x86_64/dl-tlsdesc.S: New file.
6485         * sysdeps/x86_64/dl-tlsdesc.h: New file.
6486         * sysdeps/x86_64/tlsdesc.c: New file.
6487         * sysdeps/x86_64/tlsdesc.sym: New file.
6488         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6489         tlsdesc_table for both 32- and 64-bit structs.
6490
6491 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6492
6493         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6494         its own function.  This reduces the frame setup costs and more.
6495
6496 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
6497
6498         [BZ #3406]
6499         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6500         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6501
6502 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6503
6504         * io/openat.c (__openat_2): Also pass fd to __openat.
6505         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6506         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6507
6508         * string/tester.c (test_memcmp): Add a few more tests.
6509         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6510
6511 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6512
6513         * nscd/cache.c (cache_add): Before returning with failure and this
6514         is the first use of the record, mark it as unusable.
6515         * nscd/aicache.c: Don't touch the dataset after cache_add returns
6516         reporting a failure.
6517         * nscd/grpcache.c: Likewise
6518         * nscd/hstcache.c: Likewise.
6519         * nscd/initgrcache.c: Likewise.
6520         * nscd/pwdcache.c: Likewise.
6521         * nscd/servicescache.c: Likewise.
6522
6523 2008-05-10  Roland McGrath  <roland@redhat.com>
6524
6525         [BZ #6505]
6526         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6527
6528 2008-05-08  David S. Miller  <davem@davemloft.net>
6529
6530         * misc/truncate64.c (truncate64): Use __truncate not truncate.
6531
6532         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6533         (__ieee754_y0l): Likewise.
6534         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6535         (__ieee754_y1l): Likewise.
6536         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6537         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6538         frexpl and ldexpl.  math_private.h provides them and the latter
6539         is not even used.
6540         (__log1pl): Use __frexpl.
6541
6542 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6543
6544         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6545         prototypes.
6546         * include/arpa/nameser_compat.h: Define T_UNSPEC.
6547         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6548         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6549         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6550         af==AF_UNSPEC.
6551         (_nss_nis_gethostbyname4_r): New function.
6552         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6553         Change to also handle af==AF_UNSPEC.
6554         (get_tablename): New function.  Use it to avoid duplication.
6555         (_nss_nisplus_gethostbyname4_r): New function.
6556         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6557         available.
6558         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6559         * nss/nss.h: Define struct gaih_addrtuple.
6560         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6561         af==AF_UNSPEC.
6562         (_nss_files_gethostbyname4_r): New function.
6563         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6564         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6565         calls.
6566         * resolv/res_query.c (__libc_res_nquery): Take two additional
6567         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
6568         look up IPv4 and IPv6.
6569         Change all callers.
6570         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6571         for an additional query and answer buffer.  Pass to send_vc and
6572         send_dg.
6573         (send_vc): Send possibly two requests and receive two answers.
6574         (send_dg): Likewise.
6575         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6576         __libc_res_nquery.
6577         (_nss_dns_gethostbyname4_r): New function.
6578         (gaih_getanswer_slice): Likewise.
6579         (gaih_getanswer): Likewise.
6580         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6581         __libc_res_nquery call.
6582         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6583         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6584         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6585         available.
6586
6587 2008-05-05  David S. Miller  <davem@davemloft.net>
6588
6589         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6590         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6591
6592 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6593
6594         Fix termios bit macros.
6595         Move *DLY definitions where they belong, in termios.h.
6596         Add *[0-3] definitions.
6597         Fixes confusion between VT and FF.
6598         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6599         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6600         are already defined to avoid collision with termios.h.
6601         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6602         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6603         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6604         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6605         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6606         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6607         VTDLY, VT0, VT1): New macros.
6608         [__USE_GNU] (OLCUC): Change value of macro.
6609         [__USE_XOPEN] (OFILL): New macro.
6610         [__USE_BSD] (CRTSCTS): Change value.
6611         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6612         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6613         (B7200, B14400, B28800, B76800): New macros.
6614
6615 2008-05-01  David S. Miller  <davem@davemloft.net>
6616
6617         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6618         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6619         (gen-as-const-headers): Add it.
6620         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6621         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6622         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6623         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6624
6625         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6626         six system call parameters.
6627         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6628
6629 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6630
6631         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6632         RUSAGE_LWP.
6633         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6634         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6635
6636 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6637
6638         * stdlib/tst-setcontext.c: Include unistd.h.
6639
6640 2008-04-25  David S. Miller  <davem@davemloft.net>
6641
6642         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6643         Pass "union semun" properly in to sys_ipc, it must be passed
6644         by value, not by reference.
6645
6646 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6647
6648         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6649         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6650         * nscd/connections.c (mem_in_flight): Likewise.
6651
6652         * nscd/nscd.h (dbs): Make hidden.
6653
6654         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6655         Avoid returning -1, return 0 instead.
6656
6657 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6658
6659         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6660
6661 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6662
6663         [BZ #5209]
6664         * sysdeps/unix/sysv/linux/times.c: New file.
6665
6666         [BZ #5381]
6667         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6668         mem_in_flight_list variables.  Add new parameter to mempool_alloc
6669         prototype.
6670         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
6671         appropriate mem_in_flight element.
6672         (gc): Take allocations which have not yet been committed to the
6673         database into account.
6674         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6675         Reset mem_in_flight before returning.
6676         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6677         cue it up in mem_in_flight_list.
6678         * nscd/aicache.c: Adjust mempool_alloc call.
6679         * nscd/grpcache.c: Likewise.
6680         * nscd/hstcache.c: Likewise.
6681         * nscd/initgrcache.c: Likewise.
6682         * nscd/pwdcache.c: Likewise.
6683         * nscd/servicescache.c: Likewise.
6684         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6685         of -fpie.
6686
6687         * nscd/connections.c (handle_request): Provide better error message
6688         in case SELinux forbids the service.
6689
6690         * version.h (VERSION): Bump to 2.8.90.
6691
6692 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
6693
6694         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6695
6696 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6697
6698         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6699         Also use for 32-bit.
6700         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6701         __nextafter instead of nextafter to avoid local PLT.
6702         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6703         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6704
6705         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6706
6707         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6708         __fe_nomask_env.
6709         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6710         <fenv_libc.h> instead of <fenv.h>.
6711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6713
6714         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6715
6716         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6717         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6718         function from fegetexcept and make old name weak alias.
6719         * include/fenv.h: Declare __fegetexcept.
6720         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6721         fegetexcept.
6722         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6723         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6724         to fetestexcept.
6725         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6726         instead of frexpl to avoid local PLT.
6727         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6728         ilogbl to avoid local PLT.
6729         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6730         instead of ldexpl to avoid local PLT.
6731         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6732         __roundl not roundl to avoid local PLT.
6733         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6734         local PLTs.  Use __sincosl instead of separate sinl and cosl
6735         calls.
6736         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6737
6738         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6739         version for ppc64 to 2.4.21 since without it makecontext will fail.
6740
6741         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6742         to the ABI in use.
6743         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6744         .__tls_get_addr.
6745         [__powerpc64__] (TLS_GD): Likewise.
6746
6747 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6748
6749         [BZ #4997]
6750         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6751         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6752         mantissa.
6753         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6754         Likewise.  Also account for when x is an odd number between 2^52
6755         and 2^53-1.
6756         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6757         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6758         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6759         detect aforementioned erroneous conditions.
6760
6761 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6762
6763         * configure.in: Check for -fno-section-anchors in addition to
6764         -fno-toplevel-reorder.
6765
6766 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6767
6768         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6769
6770         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6771         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6772         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6773         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6774         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6775         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6776
6777 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6778
6779         [BZ #5443]
6780         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6781         * time/alt_digit.c: Likewise.
6782         * wcsmbs/wcsmbsload.c: Likewise.
6783
6784 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6785
6786         * version.h (VERSION): Bump to 2.8.
6787
6788         * timzeone/asia: Update from tzdata2008b.
6789         * timezone/backward: Likewise.
6790         * timezone/europe: Likewise.
6791         * timezone/northamerica: Likewise.
6792         * timezone/southamerica: Likewise.
6793         * timezone/iso3166.tab: Likewise.
6794         * timezone/leapseconds: Likewise.
6795         * timezone/zone.tab: Likewise.
6796         * timezone/private.h: Update from tzcode2008a.
6797         * timezone/zdump.c: Likewise.
6798         * timezone/zic.c: Likewise.
6799
6800 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
6801
6802         [BZ #5741]
6803         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6804         Define additonal Data Cache Block instruction macros.
6805         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6806         Replace dcbst with dcbf and sync with sync/isync.
6807
6808 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
6809
6810         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6811         Always set ELF_RTYPE_CLASS_PLT.
6812         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6813
6814 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
6815
6816         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6817         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6818         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6819         For ISA 2.01 and later replace mftb with mfspr 268.
6820
6821 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
6822
6823         [BZ #5768]
6824         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6825         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6826
6827 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
6828
6829         [BZ #5768]
6830         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6831         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6832         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6833         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6834
6835 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
6836
6837         * stdlib/tst-makecontext.c (othervar): New variable.
6838         (cf): Test sign extending the argument to long.
6839
6840 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
6841
6842         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6843         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6844         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6845         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6846         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6847         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6848         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6849
6850 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
6851
6852         * elf/Makefile (tests): Substitute tests-vis-yes here.
6853         (tests-vis-yes): Delete.
6854         (modules-name, modules-vis-yes): Similarly.
6855
6856 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
6857
6858         [BZ #4407]
6859         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6860         Preserve sign in signgamp when x is zero.
6861
6862 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
6863
6864         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6865         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6866         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6867         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6868         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6869         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6870
6871 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6872
6873         [BZ #4314]
6874         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6875         buffers.
6876
6877         [BZ #5209]
6878         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6879         a reserved error value.
6880
6881         * stdlib/tst-makecontext.c: Change parameter to cf to negative
6882         value to check for correct sign extension.
6883
6884         [BZ #5436]
6885         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6886         Copy 64-bit parameter values even though this is not required in
6887         the standard.
6888
6889         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6890         PC save.
6891
6892 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
6893
6894         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6895         PC save.
6896
6897 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
6898
6899         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6900
6901 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6902
6903         [BZ #5998]
6904         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6905         in line-buffered stream failed.
6906         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6907
6908 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
6909
6910         [BZ #6024]
6911         * scripts/abi-versions.awk: If the version specified by
6912         --enable-oldest-abi is older than the first version for this
6913         architecture, use the default version.
6914
6915         * locale/programs/ld-collate.c (collate_read): Ignore script lines
6916         as well when ignoring the whole category.
6917
6918 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6919
6920         [BZ #6042]
6921         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6922         ETHERTYPE_* definitions.
6923         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6924
6925 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6926
6927         * stdlib/mbtowc.c (__no_r_state): Remove.
6928         (mbtowc): New static state variable.  Use it instead of
6929         __no_r_state.
6930         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6931         (__wctomb_state): New hidden variable.
6932         (wctomb): Use __wctomb_state instead of __no_r_state.
6933         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6934         (__wctomb_state): New extern decl.
6935         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6936
6937 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6938
6939         [BZ #5475]
6940         * resolv/res_init.c: Handle scope IDs in resolv.conf.
6941
6942 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6943
6944         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6945
6946 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
6947
6948         * po/nl.po: Update from translation team.
6949
6950 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
6951
6952         [BZ #6007]
6953         * string/strfry.c: Handle empty strings again.
6954
6955 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6956
6957         [BZ #5443]
6958         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
6959         before looking for translation.
6960         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
6961         * locale/freelocale.c: Likewise.
6962         * locale/newlocale.c: Likewise.
6963         * locale/setlocale.c: Likewise.
6964         Based partially on a patch by ryo@np.css.fujitsu.com.
6965
6966 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
6967
6968         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
6969         acquiring wrlock.  Do conv_tab allocation while holding lock.
6970         * intl/Makefile: Add rules to build and run tst-gettext6.
6971         * intl/tst-gettext6.c: New test.
6972         * intl/tst-gettext6.sh: New file.
6973
6974 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
6975
6976         * po/nl.po: Update from translation team.
6977
6978         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
6979         provided through st_blksize, try the default size before giving up.
6980
6981 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
6982
6983         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
6984
6985         [BZ #5939]
6986         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
6987
6988         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
6989         error message.  POSIX today does not require the messages to be in
6990         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
6991
6992         [BZ #5979]
6993         * sunrpc/auth_unix.c: Unify printed strings.
6994         * sunrpc/clnt_tcp.c: Likewise.
6995         * sunrpc/clnt_udp.c: Likewise.
6996         * sunrpc/clnt_unix.c: Likewise.
6997         * sunrpc/svc_tcp.c: Likewise.
6998         * sunrpc/svc_udp.c: Likewise.
6999         * sunrpc/svc_unix.c: Likewise.
7000         * sunrpc/xdr.c: Likewise.
7001         * sunrpc/xdr_array.c: Likewise.
7002         * sunrpc/xdr_rec.c: Likewise.
7003         * sunrpc/xdr_ref.c: Likewise.
7004         * locale/programs/ld-time.c (time_finish): Unify messages.
7005         * locale/programs/locfile.c (handle_copy): Fix typo.
7006         * nscd/nscd.c (options): Fix typo.
7007
7008         [BZ #5995]
7009         * stdlib/strtod_l.c: Use correct sign for result in one more
7010         underflow case.
7011         Patch by Eric Blake <ebb9@byu.net>.
7012
7013 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
7014
7015         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
7016         and creat system calls.
7017         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
7018         call.
7019         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
7020         system calls.
7021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
7022         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7023         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7024
7025 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
7026
7027         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
7028         <linux/limits.h> has defined it.
7029         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
7030         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
7031         headers.
7032         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
7033         it instead of ARG_MAX.
7034
7035 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
7036
7037         * posix/gai.conf: Fix comment for scope nullbits.
7038         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
7039         default to 128 bits for v4 mapped addresses.
7040
7041 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7042
7043         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
7044         ptrace call to get the ieee_instruction_pointer from the kernel.
7045         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
7046         ptrace call to set the ieee_instructtion_pointer.
7047         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
7048         Add comment that ieee_instruction_pointer is always 0.
7049
7050 2008-03-09  Andreas Jaeger  <aj@suse.de>
7051
7052         [BZ #5857]
7053         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
7054         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
7055         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
7056
7057         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
7058         (rint_test): Likewise.
7059
7060 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
7061
7062         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
7063         call.
7064         (__nisfind_server): Similar for open readColdStartFile call.
7065         Patch partially by Jim Meyering.
7066         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
7067         around internal_setent call.
7068
7069         * po/vi.po: New Vietnamese translation.
7070
7071         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
7072         ADJ_OFFSET_SS_READ.
7073
7074         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
7075         remove CLONE_STOPPED.
7076
7077 2008-02-10  Jim Meyering  <meyering@redhat.com>
7078
7079         Remove useless "if" before "free":
7080         * elf/ldconfig.c (parse_conf_include): Likewise.
7081         * gmon/gmon.c (weak_alias): Likewise.
7082         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
7083         * inet/rcmd.c (__validuser2_sa): Likewise.
7084         * intl/bindtextdom.c (set_binding_values): Likewise.
7085         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
7086         * libio/genops.c (save_for_backup): Likewise.
7087         * libio/wgenops.c (save_for_wbackup): Likewise.
7088         * locale/programs/ld-collate.c (collate_read): Likewise.
7089         * locale/programs/linereader.c (get_string): Likewise.
7090         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
7091         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
7092         * resolv/res_debug.c (do_section): Likewise.
7093         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
7094         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
7095         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
7096         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7097         * time/tzset.c (tzset_internal): Likewise.
7098
7099 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
7100
7101         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
7102         of ASSEMBLER.
7103
7104 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
7105
7106         [BZ #5903]
7107         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
7108         not stream for output file.  Open output file here.
7109         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
7110         and output file name.
7111         (process_fd): Likewise.
7112         (process_file): Likewise.
7113         (main): Adjust callers of changed functions.
7114         * iconv/iconv_prog.h: Adjust prototype.
7115
7116 2008-03-09  Andreas Jaeger  <aj@suse.de>
7117
7118         [BZ #5753]
7119         * sysdeps/ia64/ieee754.h: Use protected namespace
7120         __BIG_ENDIAN/__LITTLE_ENDIAN.
7121         * sysdeps/ieee754/ieee754.h: Likewise.
7122         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7123
7124 2008-03-08  Roland McGrath  <roland@frob.com>
7125
7126         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
7127         ignore a signal that came from a machine exception, treat it as a
7128         fatal core-dump signal instead.
7129         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7130
7131         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7132         Clear DF bit in thread state's eflags.
7133         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7134
7135 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
7136
7137         [BZ #5774]
7138         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
7139         of NAN(...) sequence.
7140         * stdlib/Makefile (tests): Add tst-strtod6.
7141         * stdlib/tst-strtod6.c: New file.
7142
7143         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
7144
7145         [BZ #5762]
7146         * posix/getopt.c (_getopt_internal_r): Clarify error message by
7147         putting offending option character in quotes.  Clean up error
7148         messages.
7149         * po/be.po: Adjust msgstr in translation file.
7150         * po/bg.po: Likewise.
7151         * po/ca.po: Likewise.
7152         * po/cs.po: Likewise.
7153         * po/da.po: Likewise.
7154         * po/de.po: Likewise.
7155         * po/es.po: Likewise.
7156         * po/fr.po: Likewise.
7157         * po/hr.po: Likewise.
7158         * po/ko.po: Likewise.
7159         * po/nl.po: Likewise.
7160         * po/rw.po: Likewise.
7161         * po/sk.po: Likewise.
7162         * po/sv.po: Likewise.
7163         * po/tr.po: Likewise.
7164         * po/zh_CN.po: Likewise.
7165         * po/zh_TW.po: Likewise.
7166
7167         [BZ #5760]
7168         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
7169         Patch by Roland Bless <roland@bless.de>.
7170
7171         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
7172         .o file.
7173         * elf/Makefile (routines): Add dl-sysdep.
7174         (elide-routines.os): Likewise.
7175
7176 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
7177
7178         [BZ #5786]
7179         * elf/dl-sysdep.c: Undefine ROUND after use.
7180         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
7181         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
7182         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
7183         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
7184         to ...
7185         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
7186         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
7187         if necessary.
7188         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
7189
7190         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
7191         _dl_tls_get_addr_soft element.
7192         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
7193         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
7194         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
7195         GLRO.
7196         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7197         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
7198         of internal_function.
7199
7200         * stdlib/Makefile (aux): Add tens_in_limb.
7201         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
7202         * stdlib/tens_in_limb.c: ...here.  New file.
7203
7204         [BZ #5778]
7205         * sysdeps/unix/sysv/linux/pathconf.h: Declare
7206         __statfs_chown_restricted.
7207         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
7208         for _PC_CHOWN_RESTRICTED.
7209         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7210         Implement __statfs_chown_restricted.
7211         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
7212         _POSIX_CHOWN_RESTRICTED value to zero.
7213         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
7214         defined to zero.
7215
7216         * sysdeps/x86_64/rtld-memset.c: New file.
7217
7218 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
7219
7220         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
7221
7222         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
7223         Barcelona machine.  Make default fall through branch of
7224         __x86_64_preferred_memory_instruction check as the integer code path.
7225
7226 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7227
7228         * sysdeps/x86_64/cacheinfo.c
7229         (__x86_64_preferred_memory_instruction): New variable.
7230         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7231
7232         * sysdeps/x86_64/memset.S: Rewrite.
7233
7234 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
7235
7236         * include/stdio.h (__asprintf_chk, __dprintf_chk,
7237         __obstack_printf_chk): New prototypes.
7238         (__vasprintf_chk, __vdprintf_chk,
7239         __obstack_vprintf_chk): Likewise.
7240         Add libc_hidden_proto.
7241         * libio/obprintf.c
7242         (_IO_obstack_jumps): No longer static, add attribute_hidden.
7243         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
7244         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7245         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
7246         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
7247         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7248         __obstack_vprintf_chk): New prototypes.
7249         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
7250         obstack_vprintf): New inlines.
7251         * debug/dprintf_chk.c: New file.
7252         * debug/vdprintf_chk.c: New file.
7253         * debug/asprintf_chk.c: New file.
7254         * debug/vasprintf_chk.c: New file.
7255         * debug/obprintf_chk.c: New file.
7256         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
7257         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
7258         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
7259         @@GLIBC_2.8.
7260         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
7261         vdprintf_chk and obprintf_chk, set CFLAGS for them.
7262         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
7263         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
7264         libc_hidden_proto.
7265         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
7266         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
7267         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
7268         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
7269         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
7270         @@GLIBC_2.8.
7271         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
7272         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
7273         obstack_vprintf_chk.
7274         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
7275         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
7276         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
7277         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
7278         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
7279         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
7280
7281 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
7282
7283         [BZ #5779]
7284         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
7285         Patch by Roy Marples <roy@marples.name>.
7286
7287         [BZ #5736]
7288         * malloc/malloc.c: Fix typo in comment.
7289
7290         [BZ #5627]
7291         * locale/iso-639.def: Add Shuswap.
7292
7293 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
7294
7295         [BZ #5790]
7296         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
7297         overwrite *h_errnop/*errnop values from getanswer_r in case of
7298         failure.
7299
7300 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
7301
7302         [BZ #5818]
7303         * nscd/connections.c (dbs): Add initializers for .suggested_module.
7304         (verify_persistent_db): Remove one unnecessary test and add a new one
7305         for bad configuration.
7306         (nscd_init): Improve error reported when persistent database cannot
7307         be reused.
7308         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
7309         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
7310         .suggested_module and .max_db_size and case config file says the
7311         values are zero.
7312         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
7313
7314         [BZ #5854]
7315         * nis/ypclnt.c (yp_order): Fix handling of return value of
7316         do_ypcall_tr call.
7317         Patch by Jeff Moyer <jmoyer@redhat.com>.
7318
7319         * po/fr.po: Update from translation team.
7320
7321 2008-02-22  Andreas Jaeger  <aj@suse.de>,
7322             Carlos O'Donell <carlos@systemhalted.org>
7323
7324         [BZ #5012]
7325         * FAQ.in: Describe why glibc needs to be compiled with
7326         optimization.
7327
7328 2008-02-19  Roland McGrath  <roland@redhat.com>
7329
7330         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
7331
7332 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
7333
7334         [BZ #5737]
7335         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
7336         __USE_MISC is defined.
7337
7338 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
7339
7340         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
7341         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
7342         sys/timerfd.h.
7343         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
7344         timerfd_gettime, timerfd_settime.
7345         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
7346         timerfd_gettime, timerfd_settime for GLIBC_2.8.
7347
7348 2008-02-08  Roland McGrath  <roland@redhat.com>
7349
7350         * elf/elf.h (NT_PPC_SPE): New macro.
7351
7352 2008-02-06  Roland McGrath  <roland@redhat.com>
7353
7354         * Makerules ($(common-objpfx)sysd-rules):
7355         Depend on $(sysdep-makeconfigs).
7356
7357 2008-01-31  Roland McGrath  <roland@redhat.com>
7358
7359         [BZ #5442]
7360         * configure.in: Use -print-file-name if it yields a directory,
7361         for each of include and include-fixed.
7362         * configure: Regenerated.
7363
7364         * Makeconfig (sysd-rules-targets): New variable.
7365         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7366         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7367
7368 2008-01-30  Roland McGrath  <roland@redhat.com>
7369
7370         * manual/libc.texinfo: Update back-cover text.
7371
7372         * elf/elf.h (NT_386_TLS): New macro.
7373
7374 2008-01-29  Roland McGrath  <roland@redhat.com>
7375
7376         * Makeconfig (sysd-rules-patterns): New variable.
7377         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7378         (check-inhibit-asm): New canned sequence, replaces ...
7379         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7380         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7381         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7382         (CFLAGS-rtld): Variable removed.
7383
7384 2008-01-24  Roland McGrath  <roland@redhat.com>
7385
7386         * configure.in: Let configure fragments set base_os.
7387         * configure: Regenerated.
7388
7389 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
7390
7391         * po/ko.po: Update from translation team.
7392
7393 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
7394
7395         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7396
7397 2008-01-12  Andreas Jaeger  <aj@suse.de>
7398
7399         [BZ #5040]
7400         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7401         Add EPOLLRDHUP.
7402
7403 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7404
7405         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7406         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7407         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7408
7409 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
7410
7411         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7412         * elf/dl-close.c (_dl_close): Check for it.
7413         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7414         (_dl_allocate_static_tls): Likewise.
7415         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7416         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7417         to it.
7418         * elf/tst-tls16.c: New file.
7419         * elf/tst-tlsmod16a.c: New file.
7420         * elf/tst-tlsmod16b.c: New file.
7421         * elf/Makefile: Add rules to build and run tst-tls16.
7422
7423 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
7424
7425         [BZ #5628]
7426         * bits/shm.h: Fix comment describing shmid_ds.
7427         * sysdeps/gnu/bits/shm.h: Likewise.
7428         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7429         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7430         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7431         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7432         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7433         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7434         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7435         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7436         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7437
7438         [BZ #5607]
7439         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7440         prototypes.
7441         * conform/data/limits.h-data: Adjust limits changed in v6 and add
7442         additional suffixes.
7443         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7444         Add optional functions mq_timedreceive and mq_timedsend.
7445         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7446         * conform/data/pthread.h-data: Fix prototype of
7447         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
7448         * conform/data/semaphore.h-data: Allow time.h definitions.
7449         * conform/data/signal.h-data: Likewise.
7450         * conform/data/stdio.h-data: getw and putw are not required in v6.
7451         * conform/data/stdlib.h-data: Change setstate prototype.
7452         * conform/data/string.h-data: Fix strerror_r prototype.
7453         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7454         * conform/data/unistd.h-data: pthread_atfork not required in v6.
7455         Fix readlink prototype.
7456         * conform/data/netinet/in.h-data: Add const to in6addr_any and
7457         in6addr_loopback.
7458         * inet/netinet/in.h: Cleanup namespace.
7459         * posix/regex.h: Likewise.
7460         * resolv/netdb.h: Likewise.
7461         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7462         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7463         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7464         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7465         of names of in in6_addr.
7466         (default_precedence): Likewise.
7467         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7468         NULL definition.
7469
7470 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
7471
7472         * conform/data/fmtmsg.h-data: Add missing allows.
7473         * conform/data/ftw.h-data: Likewise.
7474         * conform/data/inttypes.h-data: Likewise.
7475         * conform/data/math.h-data: Likewise.
7476         * conform/data/signal.h-data: Likewise.
7477         * conform/data/net/if.h-data: Likewise.
7478         * conform/data/netinet/in.h-data: Likewise.
7479         * conform/data/sys/socket.h-data: Likewise.
7480
7481         [BZ #5614]
7482         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7483         (__strtok_r): Simplify.
7484         * string/tester.c (test_strtok_r): Add test case for futile search
7485         with single-character seach string.
7486
7487 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
7488
7489         * po/ko.po: Update from translation team.
7490
7491 2008-01-11  Andreas Jaeger  <aj@suse.de>
7492
7493         [BZ #5600]
7494         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7495         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7496         kernel header.
7497
7498 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
7499
7500         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7501         native interface lookup in all the relevant places.
7502
7503 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
7504             Ulrich Drepper  <drepper@redhat.com>
7505
7506         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7507         field.  Use sockaddr_in6 for source_addr.
7508         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
7509         (match_prefix): Likewise.
7510         (get_label): Likewise.
7511         (get_precedence): Likewise.
7512         (rfc3484_sort): Change to use indirect access to results array.
7513         Adjust to use of sockaddr_in6.  Replace service_order test with
7514         simple index comparison.
7515         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
7516         service_order field.  Adjust qsort_t calls.  Access sorted result
7517         array indirectly through order array.
7518         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7519         * posix/tst-rfc3484-2.c: Likewise.
7520         * posix/tst-rfc3484-3.c: Likewise.
7521
7522 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
7523
7524         [BZ #5541]
7525         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7526         pollfd structures.
7527         Patch by André Cruz.
7528
7529         [BZ #5545]
7530         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7531         (clnt_spcreateerror): Likewise.
7532
7533         [BZ #5553]
7534         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7535         (public_mEMALIGn): Likewise.
7536         Patch mostly by Daniel Jacobowitz.
7537
7538 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
7539
7540         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7541         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7542         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7543         * stdlib/tst-makecontext2.c: New test.
7544
7545 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
7546
7547         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7548         defined.
7549         (REINIT_PARAMS): Likewise.  Undefine before end of file.
7550         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7551         transliteration hooks and REINIT_PARAMS afterwards.
7552         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7553         status.
7554         (REINIT_PARAMS): Define.
7555         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7556         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7557         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7558         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7559         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7560         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7561         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7562         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7563         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7564         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7565         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7566         * iconvdata/tst-iconv7.c: New test.
7567
7568 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
7569
7570         * libio/stdio.h (vscanf): Fix definition for loser compilers.
7571
7572 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7573
7574         [BZ #5112]
7575         * nscd/connections.c (restart): Fix condition.
7576
7577 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7578
7579         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7580         __ctype_toupper_loc): Add __THROW.
7581
7582 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
7583
7584         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7585         recognition of interface family.
7586
7587         * posix/getconf.c: Update copyright year.
7588         * nss/getent.c: Likewise.
7589         * iconv/iconvconfig.c: Likewise.
7590         * iconv/iconv_prog.c: Likewise.
7591         * elf/ldconfig.c: Likewise.
7592         * catgets/gencat.c: Likewise.
7593         * csu/version.c: Likewise.
7594         * elf/ldd.bash.in: Likewise.
7595         * elf/sprof.c (print_version): Likewise.
7596         * locale/programs/locale.c: Likewise.
7597         * locale/programs/localedef.c: Likewise.
7598         * nscd/nscd.c (print_version): Likewise.
7599         * debug/xtrace.sh: Likewise.
7600         * malloc/memusage.sh: Likewise.
7601         * malloc/mtrace.pl: Likewise.
7602         * debug/catchsegv.sh: Likewise.
7603
7604 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7605
7606         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7607         second lookup.
7608
7609 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7610
7611         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7612         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7613
7614 2007-12-17  Roland McGrath  <roland@redhat.com>
7615
7616         * inet/ether_line.c (ether_line): Remove unused variable.
7617
7618 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7619
7620         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7621         and winp.
7622         * login/openpty.c (openpty): Likewise.
7623         * login/pty.h (openpty, forkpty): Likewise.
7624         * manual/terminal.texi (openpty, forkpty): Likewise.
7625
7626 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7627
7628         * malloc/malloc.c (public_cALLOc): For arenas other than
7629         main_arena, count all bytes inside the mprotect_size range of the
7630         heap as uninitialized.
7631
7632 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7633
7634         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7635         executable stacks.
7636
7637         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7638         mTRIm for all of them.
7639         (mTRIm): Additionally iterate over all free blocks and use madvise
7640         to free memory for all those blocks which contain at least one
7641         memory page.
7642         * malloc/tst-trim1.c: New file.
7643         * malloc/Makefile (tests): Add tst-trim1.
7644
7645         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7646
7647 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7648
7649         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7650         First cast argument to long
7651         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7652         Return long.
7653         (__vdso_clock_gettime): Likewise.
7654         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7655         return long.
7656
7657 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7658
7659         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7660         * locale/nl_langinfo_l.c: Real implementation, copied from
7661         nl_langinfo.c.
7662         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7663
7664 2007-12-01  Jim Meyering  <meyering@redhat.com>
7665
7666         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7667         that would inhibit utf8-optimization of a regexp containing line-
7668         or buffer-anchors, e.g., `^', `$'.
7669
7670 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7671
7672         * time/bug-getdate1.c (do_test): Don't use century values which
7673         aren't valid on 32-bit systems.
7674
7675 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
7676
7677         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7678         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7679         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7680         __strcat_g, __strncat_g): Add __asm__.
7681
7682 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7683
7684         [BZ #5477]
7685         * io/fchmodat.c: Fix typo in stub_warning use.
7686         Patch by Petr Salinger.
7687
7688 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
7689
7690         * iconvdata/hp-thai8.c: New file.
7691         * iconvdata/Makefile: Add rules for hp-thai8.c.
7692         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7693         * iconvdata/gconv-modules: Likewise.
7694
7695         [BZ #5464]
7696         * iconvdata/hp-greek8.c: New file.
7697         * iconvdata/Makefile: Add rules for hp-greek8.c.
7698         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7699         * iconvdata/gconv-modules: Likewise.
7700
7701         [BZ #5463]
7702         * iconvdata/hp-turkish8.c: New file.
7703         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7704         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7705         * iconvdata/gconv-modules: Likewise.
7706
7707         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7708         (shrink_heap): ... this new function.
7709         (heap_trim): Call shrink_heap instead of grow_heap.
7710
7711         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7712         case don't call alloc_perturb.
7713
7714 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7715
7716         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7717         possible.
7718         * sysdeps/unix/sysv/linux/kernel-features.h
7719         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7720         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7721
7722 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7723
7724         [BZ #5424]
7725         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7726         * stdio-common/Makefile (tests): Add bug22.
7727         * stdio-common/bug22.c: New file.
7728
7729         [BZ #5451]
7730         * time/getdate.c: Fix filling in default values.
7731         * time/bug-getdate1.c: New file.
7732         * time/Makefile: Add rules to build and run bug-getdate1.
7733
7734         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7735         * iconvdata/ebcdic-es.c: Likewise.
7736         * iconvdata/ebcdic-es-a.c: Likewise.
7737         * iconvdata/ebcdic-uk.c: Likewise.
7738         * iconvdata/iso8859-16.c: Likewise.
7739         * iconvdata/viscii.c: Likewise.
7740         * iconvdata/iso8859-9e.c: Likewise.
7741         * iconvdata/Makefile: Adjust appropriately.
7742
7743         [BZ #5428]
7744         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7745         __need_wint_t.
7746
7747 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7748
7749         [BZ #5427]
7750         * iconvdata/hp-roman9.c: New file.
7751         * iconvdata/Makefile: Add rules for hp-roman9.c.
7752         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7753         * iconvdata/gconv-modules: Likewise.
7754
7755         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7756         * iconvdata/Makefile: Adjust appropriately.
7757
7758         [BZ #5441]
7759         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7760         structure, it's allocated with alloca.
7761         * stdio-common/Makefile (tests): Add bug21.
7762         * stdio-common/bug21.c: New file.
7763
7764 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7765
7766         [BZ #5452]
7767         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7768         keyword for gcc's braced-groups.
7769
7770 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7771
7772         [BZ #5454]
7773         * inet/ether_line.c: Strip hostname of whitespaces.
7774         * inet/Makefile (tests): Add tst-ether_line.
7775         * inet/tst-ether_line.c: New file.
7776
7777 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7778
7779         [BZ #5439]
7780         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7781
7782         [BZ #5435]
7783         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7784
7785         * stdlib/tst-setcontext.c: Catch the case where the links gets
7786         messed up and we do not reach main again.
7787
7788         * po/ca.po: Update from translation team.
7789
7790 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7791
7792         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7793         * posix/regex.h (REG_ENOSYS): Likewise.
7794         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7795
7796 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
7797
7798         * nscd/nscd.h (MAX_STACK_USE): Define.
7799         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7800         (gc): Initialize stack_used based on allocation in prune_cache.
7801         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7802         Clear array before use.
7803
7804         * nscd/aicache.c (addhstaiX): Update statistics counter in case
7805         memory allocation failed.
7806         * nscd/hstcache.c (cache_addhst): Likewise.
7807         * nscd/grpcache.c (cache_addgr): Likewise.
7808         * nscd/servicescache.c (cache_addserv): Likewise.
7809         * nscd/pwdcache.c (cache_addpw): Likewise.
7810         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7811
7812 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
7813
7814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7815         and creat system calls.
7816
7817         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7818
7819 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7820
7821         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7822         Add netiucv/iucv.h.
7823         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7824         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7825         protocol.
7826         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7827         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7828         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7829
7830 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7831
7832         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7833         strncat): Define as macros to avoid compile errors.
7834
7835         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
7836         creat entries.
7837
7838 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
7839
7840         [BZ #5382]
7841         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7842         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7843         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7844         overflow it.
7845         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7846
7847         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7848         Return zero in case the thread library is not NPTL.
7849
7850         [BZ #5375]
7851         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7852         initializing interface list.
7853
7854         [BZ #5378]
7855         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7856         use result of nss_getgrgid_r if nothing was found.  For other
7857         error return with a failure.
7858         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7859
7860         * locale/programs/ld-collate.c (collate_read): Fix loop to match
7861         macro name.
7862
7863 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7864
7865         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7866         (get_scope): For IPv4 scope, use scopes table.
7867         (fini): Free scopes table if necessary.
7868         (free_scopelist): New function.
7869         (scopecmp): New function.
7870         (gaiconf_init): Also handle scopev4 entries.
7871         * posix/tst-rfc3484.c (do_test): Initialize scopes.
7872         * posix/tst-rfc3484-2.c (do_test): Likewise.
7873         * posix/gai.conf: Document scopev4 defaults.
7874         * posix/Makefile (tests): Add tst-rfc3484-3.
7875         * posix/tst-rfc3484-3.c: New file.
7876
7877         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7878         Teredo tunnels.
7879         * posix/gai.conf: Update for current default tables.
7880
7881 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7882
7883         * po/tr.po: Update from translation team.
7884
7885 2007-11-18  Roland McGrath  <roland@frob.com>
7886
7887         * manual/arith.texi (Remainder Functions): Spelling fix.
7888         From Shaun Silk <genix@mysoul.com.au>.
7889
7890         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7891
7892 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
7893
7894         * po/zh_CN.po: Update from translation team.
7895
7896         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7897         Add sys/signalfd.h and sys/eventfd.h.
7898
7899 2007-11-15  Bruno Haible  <bruno@clisp.org>
7900
7901         [BZ #5346]
7902         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7903         union.
7904         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7905         (DCIGETTEXT): Change the allocation of the 'search' variable so that
7906         it needs only fixed stack space. Delay the initialization of
7907         msgid_len until it is needed.
7908
7909 2007-11-15  Andreas Jaeger  <aj@suse.de>
7910
7911         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7912         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7913
7914 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
7915
7916         * po/ko.po: Update from translation team.
7917
7918 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
7919
7920         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7921         significantly.  The device type is also part of the ifinfomsg data.
7922
7923         * po/sv.po: Update from translation team.
7924         * po/nl.po: Likewise.
7925
7926         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7927         to wake up in 24 hours.
7928
7929         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
7930
7931 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
7932
7933         * po/cs.po: Update from translation team.
7934         * po/pl.po: Likewise.
7935
7936         * include/ifaddrs.h: Remove in6ai_temporary.
7937         (struct in6addrinfo): Add index element.
7938         Declare __check_native.
7939         * inet/Makefile (aux): Add check_native.
7940         * sysdeps/unix/sysv/linux/check_native.c: New file.
7941         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7942         IFA_F_TEMPORARY.  Pass back ifa_index.
7943         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7944         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
7945         call __check_native if necessary.
7946         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
7947         to sort addresses.  Pass information about the results.
7948         * posix/tst-rfc3484.c: Adjust for addition of index field and change
7949         of rfc3484_sort interface.
7950         * posix/tst-rfc3484-2.c: Likewise.
7951
7952         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
7953         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7954         for _quicksort.
7955         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
7956         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
7957         on as third parameter to compare function and _quicksort.
7958         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
7959         to the compare function.
7960         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
7961         * Versions.def: Add GLIBC_2.8 for libc.
7962
7963         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
7964         * posix/tst-rfc3484-2.c: Likewise.
7965
7966         * include/kernel-features.h: Moved to...
7967         * sysdeps/mach/hurd/kernel-features.h: ...here.
7968
7969 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7970
7971         * sysdeps/i386/i586/memcpy_chk.S: New file.
7972         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
7973         * sysdeps/i386/i586/memset_chk.S: Likewise.
7974
7975 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
7976
7977         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
7978         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
7979         list of interfaces.  Also store prefix length.
7980         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
7981         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
7982         prefix if source and destination address are in the same subnet.
7983         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
7984         Always look for matching record in in6ai list.
7985         Correct source_addr_len value for IPv6->IPv4 converted records.
7986
7987 2007-11-11  Roland McGrath  <roland@frob.com>
7988
7989         * include/kernel-features.h: New file.
7990
7991 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
7992
7993         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
7994         complications for 64-bit platforms.
7995
7996         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
7997         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
7998         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
7999         open64_2.
8000         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
8001         entries.
8002         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8003         * sysdeps/wordsize-64/alphasort.c: New file.
8004         * sysdeps/wordsize-64/alphasort64.c: New file.
8005         * sysdeps/wordsize-64/fseeko.c: New file.
8006         * sysdeps/wordsize-64/fseeko64.c: New file.
8007         * sysdeps/wordsize-64/ftello.c: New file.
8008         * sysdeps/wordsize-64/ftello64.c: New file.
8009         * sysdeps/wordsize-64/ftw.c: New file.
8010         * sysdeps/wordsize-64/ftw64.c: New file.
8011         * sysdeps/wordsize-64/iofgetpos.c: New file.
8012         * sysdeps/wordsize-64/iofgetpos64.c: New file.
8013         * sysdeps/wordsize-64/iofopen.c: New file.
8014         * sysdeps/wordsize-64/iofopen64.c: New file.
8015         * sysdeps/wordsize-64/iofsetpos.c: New file.
8016         * sysdeps/wordsize-64/iofsetpos64.c: New file.
8017         * sysdeps/wordsize-64/lockf.c: New file.
8018         * sysdeps/wordsize-64/lockf64.c: New file.
8019         * sysdeps/wordsize-64/mkostemp.c: New file.
8020         * sysdeps/wordsize-64/mkostemp64.c: New file.
8021         * sysdeps/wordsize-64/mkstemp.c: New file.
8022         * sysdeps/wordsize-64/mkstemp64.c: New file.
8023         * sysdeps/wordsize-64/scandir.c: New file.
8024         * sysdeps/wordsize-64/scandir64.c: New file.
8025         * sysdeps/wordsize-64/tmpfile.c: New file.
8026         * sysdeps/wordsize-64/tmpfile64.c: New file.
8027         * sysdeps/wordsize-64/versionsort.c: New file.
8028         * sysdeps/wordsize-64/versionsort64.c: New file.
8029         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
8030         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
8031         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
8032         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
8033         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
8034         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
8035         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
8036         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
8037         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
8038         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
8039         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
8040         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
8041
8042         * crypt/sha256-crypt.c: Fix a comment.
8043         * crypt/sha512-crypt.c: Likewise.
8044
8045 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
8046
8047         * sysdeps/x86_64/memset.S: Add sfence after movnti.
8048
8049 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
8050
8051         [BZ #5277]
8052         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
8053         because output buffer is too small break, don't loop.
8054         * iconvdata/Makefile (tests): Add bug-iconv6.
8055         * iconvdata/bug-iconv6.c: New file.
8056
8057 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
8058
8059         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
8060         with size_t type.
8061         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
8062         size_t.  Add casts where needed.
8063
8064         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
8065         old headers, don't call avc_has_perm if we don't have the
8066         permission information.
8067
8068 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
8069
8070         * elf/rtld.c (dl_main): Use the page size to find the map start.
8071
8072 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
8073
8074         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
8075         Patch by Szymon Siwek <sls@poczta.wp.pl>.
8076
8077         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
8078         when the lookup call failed.
8079
8080         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
8081         Add prune_cond and wakeup_time.
8082         (CACHE_PRUNE_INTERNAL): Define.
8083         Update declarations of prune_cache and setup_thread.
8084         * nscd/connections.c (dbs): Update initializers.
8085         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
8086         (nscd_init): Default number of threads is now 4.
8087         (invalidate_cache): Take lock before calling prune_cache.
8088         (handle_request): If SELinux forbids the request, say so.
8089         (readylist_cond): Use static initializer.
8090         (nscd_run_prune): New function.  Used only by pruning threads.
8091         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
8092         here.
8093         (fd_ready): Update nscd_run reference.
8094         (start_threads): No need to initialize readylist_cond.
8095         Start pruning threads separately.
8096         * nscd/nscd_setup_thread.c: Change return value type to int and always
8097         return 0.
8098         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
8099         to int and return nonzero value if we can use the TID address hack.
8100         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
8101         the database is later than the new entry's timeout, update the
8102         wakeup time and wake the cleanup thread.
8103         (prune_cache): Return seconds the next entry in the database is still
8104         valid.  Remove locking for pruning here.
8105         * nscd/nscd.conf: Document default number of threads.
8106
8107 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
8108
8109         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
8110         stack is properly aligned for the target function.
8111         Correct unwind info.
8112
8113         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
8114         when using auditing libraries.
8115
8116 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
8117
8118         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
8119         _nss_dns_getnetbyaddr2_r.
8120         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
8121         extra parameter to getanswer_r.
8122         (_nss_dns_getnetbyaddr_r): Now a wrapper around
8123         _nss_dns_getnetbyaddr2_r.
8124
8125         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
8126         gethstbynm3_r.
8127         * nscd/gethstbynm2_r.c: Remove.
8128         * nscd/gethstbynm3_r.c: New file.
8129         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
8130         __gethostbyaddr_r.
8131         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
8132         __gethostbyaddr_r compatibility wrapper.
8133         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
8134         determining timeout of entry.
8135         (lookup): Take new parameter and pass it to __gethostbyname3_r and
8136         __gethostbyaddr2_r.
8137         (addhstbyX): Pass reference to variable for TTL to lookup and
8138         cache_addhst.
8139         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
8140         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
8141         and __nss_next2.  Remove __nss_services_lookup.
8142         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
8143         Add compat wrapper.
8144         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
8145         __nss_next2.
8146         * nss/getXXent_r.c: Likewise.
8147         * nss/getnssent_r.c: Likewise.
8148         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
8149         does not exist in module, try the optional second name.
8150         (__nss_next2): New function.
8151         (__nss_next): Now wrapper around __nss_next2.
8152         * nss/nsswitch.h: Adjust __nss_lookup prototype.
8153         Declare __nss_next2.
8154         Adjust definition of db_lookup_function type.
8155         * nss/service-lookup.c: Define NO_COMPAT.
8156         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
8157         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
8158         * inet/ether_ntoh.c: Likewise.
8159         * sunrpc/netname.c: Likewise.
8160         * sunrpc/publickey.c: Likewise.
8161         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
8162         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
8163         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
8164         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
8165         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
8166
8167         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
8168
8169         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
8170
8171 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
8172
8173         [BZ #5204]
8174         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
8175         * crypt/sha512c-test.c: Likewise.
8176
8177         [BZ #5225]
8178         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
8179         to keep track of end of %[ format string element.
8180         * stdio-common/Makefile (tests): Add bug20.
8181         * stdio-common/bug20.c: New file.
8182
8183         [BZ #5222]
8184         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
8185         path elements in counting mode.
8186
8187 2007-10-27  Andreas Jaeger  <aj@suse.de>
8188
8189         [BZ #5040]
8190         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
8191
8192         [BZ #3112]
8193         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
8194         (__cleanup): Free shared library when exiting.
8195         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
8196         (__cleanup): Free shared library when exiting.
8197
8198 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
8199
8200         [BZ #2549]
8201         * math/libm-test.inc (check_float_internal): Support
8202         denormalized return.
8203
8204 2007-10-23  Andreas Jaeger  <aj@suse.de>
8205
8206         [BZ #5208]
8207         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
8208         __LONG_LONG_PAIR to handle little endian byte order.
8209         Suggested by abhishekrai@google.com
8210
8211 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
8212
8213         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
8214
8215 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
8216
8217         * nscd/cache.c (prune_cache): Move test for modified file outside
8218         of locking.
8219
8220 2007-10-21  Andreas Jaeger  <aj@suse.de>
8221
8222         * manual/texinfo.tex: Update to latest version.
8223
8224         * manual/sysinfo.texi (System Parameters): Fix Formatting.
8225
8226         * manual/arith.texi (Status bit operations): Fix formatting.
8227
8228         * manual/errno.texi (Error Messages): Fix formatting.
8229
8230         * manual/sysinfo.texi (System Parameters): Fix formatting.
8231
8232         * manual/libc.texinfo: Update VERSION and UPDATED.
8233
8234 2007-10-19  Roland McGrath  <roland@redhat.com>
8235
8236         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
8237
8238 2007-10-06  David S. Miller  <davem@davemloft.net>
8239
8240         * configure.in: Add sparcv9v2 and sparc64v2.
8241         * scripts/config.sub: Likewise.
8242         * configure: Regenerate.
8243         * elf/elf.h (HWCAP_SPARC_N2): New.
8244         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
8245         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
8246         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
8247         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
8248         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
8249         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
8250         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
8251
8252 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
8253
8254         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
8255         even if the poll result indicates there is data to read.
8256         Patch by Jeff Moyer <jmoyer@redhat.com>.
8257
8258 2007-10-18  Roland McGrath  <roland@redhat.com>
8259
8260         * elf/elf.h (NT_PPC_VMX): New macro.
8261
8262 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8263
8264         * version.h (VERSION): Set to 2.7.90.
8265
8266 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8267
8268         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
8269         weak_alias.
8270
8271 2007-10-17  Roland McGrath  <roland@frob.com>
8272
8273         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
8274         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
8275
8276 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8277
8278         * version.h (VERSION): Bump to 2.7.
8279         * include/features.h (__GLIBC_MINOR__): Bump to 7.
8280
8281         [BZ #5186]
8282         * time/tzset.c (__tz_convert): Don't force testing for a change of
8283         TZ if not called from localtime.  But then also see whether the
8284         file changed, in case __use_tzfile is set.
8285
8286         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
8287         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8288         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8289         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8290         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8291         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8292         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
8293         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8294
8295 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8296
8297         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
8298         and admin selects to be able to replace the gai.conf file, lock
8299         data structures around the qsort call.
8300
8301 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8302
8303         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
8304         new memset.
8305         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
8306         too high for the improvements.  Implement bzero unconditionally for
8307         use in libc.
8308
8309 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8310             Jakub Jelinek  <jakub@redhat.com>
8311
8312         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
8313         even when time_t is 32-bit.
8314         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
8315         timezone data read by __tzfile_default.  Ensure __tzname[0] is
8316         always set after the search.
8317
8318 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8319
8320         * time/tzfile.c (__tzfile_read): Help the compiler recognize
8321         unreachable code on 32-bit machines.
8322
8323 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8324
8325         [BZ #5184]
8326         * time/strftime_l.c: Include stdbool.h.
8327         (my_strftime): New wrapper, old function renamed to...
8328         (__strftime_internal): ... new function.  Add tzset_called
8329         argument, pass it down to recursive calls, don't call tzset ()
8330         if already true, set to true after call to tzset ().
8331
8332 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8333
8334         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
8335         into account when copying TZ string.
8336
8337 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8338
8339         * time/tzfile.c (__tzfile_compute): For use_last case set i to
8340         num_transition rather than num_transitions - 1.
8341
8342 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8343
8344         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
8345         PIC indirect jump.
8346
8347         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8348         a local label rather than HIDDEN_JUMPTARGET.
8349
8350 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8351
8352         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8353         (init_cacheinfo): Initialize it.
8354         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8355         Always define bzero.
8356         Remove non-glibc code.
8357         * sysdeps/x86_64/bzero.S: Make an empty file.
8358
8359 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
8360
8361         * sysdeps/x86_64/cacheinfo.c
8362         (__x86_64_preferred_memory_instruction): New.
8363         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8364
8365         * sysdeps/x86_64/memset.S: Rewrite.
8366
8367 2007-10-15  Roland McGrath  <roland@redhat.com>
8368
8369         * po/libc.pot: Regenerated.
8370
8371 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8372
8373         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8374         pointers.
8375
8376         [BZ #3425]
8377         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8378         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8379         address record to T_A/T_AAAA requests.
8380
8381 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8382
8383         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8384
8385         * posix/glob.c: Add some branch prediction throughout.
8386
8387         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8388         read from nscd.
8389
8390         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8391         service_order.
8392         (rfc3484_sort): Make sure that even if qsort doesn't support
8393         stable sorting out sorting here is stable by comparing service_order.
8394         (getaddrinfo): Initialize service_order.
8395         * posix/tst-rfc3484.c (do_test): Adjust for addition of
8396         service_order field to sorting structure.
8397         * posix/tst-rfc3484-2.c (do_test): Likewise.
8398
8399         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8400         * time/tzset.c (tzset_internal): Break TZ string parsing out into
8401         __tzset_parse_tz and updating of daylight, timezone, tzname into
8402         update_vars.
8403         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
8404         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8405         happens in __tz_compute.
8406         * time/tzfile.c (__tzfile_read): Also read TZ string.
8407         (find_transition): Fold into __tzfile_compute.
8408         (__tzfile_compute): For times beyond the last transition try to
8409         use the TZ string.
8410         * timezone/tst-timezone.c: Information in daylight and tzname does
8411         change for Asia/Tokyo timezone with more concrete information.
8412         Remove the test.
8413
8414         * include/stdio.h: Add libc_hidden_proto for ftello.
8415         * libio/ftello.c: Add libc_hidden_def.
8416
8417         [BZ #1140]
8418         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8419         on the specified time and not the last entries in the file.  Move
8420         code to determine tzname[] to...
8421         (find_transition): ...here.  Add ugly guess for times before the
8422         first transition.
8423
8424 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8425
8426         [BZ #3195]
8427         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8428         no entry.
8429         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8430         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8431         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8432         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8433
8434         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8435         read mechanism when there are no group members and avoid no-op
8436         read syscall in this case.
8437
8438         [BZ #3242]
8439         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8440         (__readall): If reading failed due to EAGAIN error wait a bit
8441         and possibly try again.
8442         (__readvall): Likewise.
8443
8444 2007-10-13  Bruno Haible  <bruno@clisp.org>
8445
8446         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8447         when we cannot recode the message.
8448
8449 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8450
8451         [BZ #4359]
8452         * libio/__freading.c (__freading): Don't return true for
8453         write-only streams.  For read/write streams, check whether we
8454         performed a read operation already.
8455         * libio/Makefile (tests): Add tst-ext2.
8456         * libio/tst-ext2.c: New file.
8457
8458 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8459
8460         * locale/programs/repertoire.c (repertoire_read): Always free
8461         memory for repertoire file name [Coverity CID 270].
8462
8463         * elf/cache.c (save_aux_cache): Free memory allocated for
8464         temporary file name [Coverity CID 267].
8465
8466 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8467
8468         * misc/Makefile (headers): Add bits/error.h.
8469
8470 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8471
8472         * posix/fnmatch_loop.c: Take rule index returned as part of
8473         findidx return value into account when accessing weights.
8474         * posix/regcomp.c: Likewise.
8475         * posix/regexec.c: Likewise.
8476
8477         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8478         (skip_to): Fix problems with parameter of elifdef/elifndef.
8479
8480 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
8481
8482         * iconv/gconv_simple.c: Add some branch prediction.
8483
8484 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8485
8486         * locale/programs/ld-collate.c (collate_read): If ignore_content
8487         and nowtok is tok_define, eat any tok_eol tokens.
8488
8489 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
8490
8491         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8492         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8493
8494         * inet/netinet/in.h: Don't include bits/socket.h.
8495         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8496         macro.
8497         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8498
8499 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
8500
8501         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8502         and tok_elifndef.
8503         * locale/programs/locfile-kw.gperf: Likewise.
8504         * locale/programs/ld-collate.c: Implement primitive preprocessor.
8505
8506 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
8507
8508         * stdio-common/printf-parse.h: Include string.h and wchar.h.
8509         (__find_specwc): Change into __extern_always_inline function.
8510         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
8511         (__parse_one_specmb): Remove ps argument.
8512         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8513         Adjust __find_specmb and __parse_one_specmb callers.
8514         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8515         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8516         Removed.
8517         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8518         caller.
8519
8520 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
8521
8522         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8523         with some Pentium Ds.
8524
8525 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
8526
8527         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8528         __read not read.
8529         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8530         __write not write.
8531
8532 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8533
8534         [BZ #181]
8535         * locale/C-time.c: Set week_1stday data to 19971201.
8536         * locale/programs/ld-time.c (time_finish): Default for
8537         first_workday is Monday.
8538
8539         [BZ #2633]
8540         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8541
8542         [BZ #5103]
8543         * posix/glob.c (glob): Recognize patterns starting \/.
8544         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8545         (main): Add test for pattern starting \/.
8546
8547         * misc/error.h: Use __const instead of const.
8548         * misc/bits/error.h: Likewise.
8549
8550 2007-10-07  Andreas Jaeger  <aj@suse.de>
8551
8552         * include/bits/error.h: New file.
8553
8554         * misc/bits/error.h (error_at_line): Fix prototype.
8555
8556 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
8557
8558         [BZ #3924]
8559         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8560         more little bugs in creating the stack frame when pltexit has to
8561         be called.
8562
8563         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8564         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8565
8566         [BZ #4407]
8567         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8568         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8569         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8570         * math/libm-test.inc: Add test for this case.
8571
8572         [BZ #5010]
8573         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8574         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
8575         map service succeeded.
8576         (svc_is_mapped): New function.
8577         (svc_unregister): Use it before trying to unmap service.
8578
8579 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
8580
8581         * timezone/zic.c: Update from tzcode2007h.
8582
8583         [BZ #5063]
8584         * timezone/africa: Update from tzdata2007h.
8585         * timezone/antarctica: Likewise.
8586         * timezone/asia: Likewise.
8587         * timezone/australasia: Likewise.
8588         * timezone/europe: Likewise.
8589         * timezone/leapseconds: Likewise.
8590         * timezone/northamerica: Likewise.
8591         * timezone/southamerica: Likewise.
8592         * timzeone/zone.tab: Likewise.
8593
8594         [BZ #5104]
8595         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8596
8597         [BZ #5113]
8598         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8599         avoid warning with -Wconversion.
8600         (__strndup): Likewise.
8601         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8602
8603         [BZ #5112]
8604         * nscd/connections.c (restart): Don't resync if database is
8605         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8606
8607         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8608         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8609
8610         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8611         evetnfd_read, eventfd_write.
8612         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8613         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8614         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8615         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8616         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8617         eventfd_write for GLIBC_2.7.
8618
8619         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8620         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8621         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8622         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8623
8624 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8625
8626         * stdlib/msort.c: Include stdint.h.
8627         (struct msort_param): New type.
8628         (msort_with_tmp): Use struct msort_param pointer for unchanging
8629         parameters.  Add optimized handling for several common sizes
8630         and indirect sorting mode.
8631         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8632         sorting.
8633         Suggested by Belazougui Djamel .
8634
8635         * stdlib/Makefile (tests): Add tst-qsort2.
8636         * stdlib/tst-qsort2.c: New test.
8637
8638 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8639
8640         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8641         for dup2 in case another thread races with the current one.  Retry
8642         in this case.
8643
8644         * misc/error.h: Remove support for use outside of libc.  We have to
8645         include <features.h> now.  Include <bits/error.h> if possible.
8646         * misc/bits/error.h: New file.
8647
8648 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8649
8650         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8651         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8652         __extern_always_inline functions unconditionally, drop macros.
8653
8654         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8655         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8656         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8657
8658         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8659         add __artificial__ attribute.
8660
8661 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8662
8663         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8664         backward to forward direction.
8665
8666         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8667
8668         [BZ #645]
8669         * locale/programs/ld-collate.c (collate_finish): Compare against last
8670         used section which is known to have rules defined.
8671         (collate_read): After order_start, correctly record order of sections
8672         and queue sections up.
8673
8674 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
8675
8676         [BZ #5071]
8677         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8678         the same number of pages.
8679         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8680
8681         * locale/programs/ld-collate.c (collate_read): After initial copy
8682         statement, continue in state 0.
8683
8684         * include/stdio_ext.h (__fsetlocking): Define as macro.
8685
8686 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
8687
8688         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8689         of section order.
8690
8691         * po/pt_BR.po: Fix typo.
8692
8693 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
8694
8695         * iconvdata/Makefile (modules): Add ISO8859-9E.
8696         (distribute): Add iso8859-9e.c.
8697         (gen-8bit-gap-modules): Add iso8859-9e.
8698         * iconvdata/iso8859-9e.c: New file.
8699         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8700         * iconvdata/TESTS: Likewise.
8701         * iconvdata/tst-tables.sh: Likewise.
8702
8703         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8704
8705         * locale/iso-639.def: Add several new entries.
8706
8707 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8708
8709         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8710         void * pointers instead of struct link_map **.
8711         (_dl_scope_free): Change argument type to void *.
8712         * include/link.h (struct link_map): Change type of l_reldeps
8713         to struct link_map_reldeps, move l_reldepsact into that
8714         struct too.
8715         * elf/dl-deps.c: Include atomic.h.
8716         (_dl_map_object_deps): Only change l->l_initfini when it is
8717         fully populated, use _dl_scope_free for freeing it.  Optimize
8718         removal of libs from reldeps by using l_reserved flag, when
8719         some removal is needed, allocate a new list instead of
8720         reallocating and free the old with _dl_scope_free.  Adjust
8721         for l_reldeps and l_reldepsact changes.
8722         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8723         searching in l_initfini and l_reldeps without holding dl_load_lock.
8724         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8725         l_reldepsact changes.
8726         * elf/dl-close.c (_dl_close_worker): Likewise.
8727         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8728
8729 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
8730
8731         * iconvdata/Makefile (modules): Add KOI8-RU.
8732         (distribute): Add koi8-ru.c.
8733         (gen-8bit-gap-modules): Add koi8-ru.
8734         * iconvdata/koi8-ru.c: New file.
8735         * iconvdata/gconv-modules: Add entries for KOI8-RU.
8736         * iconvdata/TESTS: Likewise.
8737         * iconvdata/tst-tables.sh: Likewise.
8738
8739         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8740
8741 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8742
8743         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8744         with __warning__/__error__ attributes.
8745         (__warnattr): Define.
8746         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8747         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8748         __warnattr.
8749         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8750         of __*_chk if compile time detectable overflow is found.
8751         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8752         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8753         with __warnattr.
8754         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8755         instead of __*_chk if compile time detectable overflow is found.
8756         (__gets_alias): Rename to...
8757         (__gets_warn): ... this.  Add __warnattr.
8758         (gets): Call __gets_warn instead of __gets_alias.
8759         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8760         aliases with __warnattr.
8761         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8762         time detectable overflow is found.
8763         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8764         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8765         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8766         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8767         __getdomainname_chk_warn): New aliases with __warnattr.
8768         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8769         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8770         __*_chk_warn instead of __*_chk if compile time detectable overflow
8771         is found.
8772         (__getgroups_chk): Rename argument to __listlen from listlen.
8773         (__getwd_alias): Rename to...
8774         (__getwd_warn): ... this.  Add __warnattr.
8775         (getwd): Call __getwd_warn instead of __getwd_alias.
8776         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8777         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8778         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8779         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8780         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8781         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8782         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8783         compile time detectable overflow is found.
8784         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8785         to use __*_chk or not.
8786         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8787         in comparisons which function should be called and in __*_chk*
8788         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8789         detectable overflow is found.
8790         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8791         __*_chk argument.
8792         * debug/tst-chk1.c (do_test): Add a few more tests.
8793
8794 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
8795
8796         [BZ #5058]
8797         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8798         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8799         (_nl_unload_domain): Finalize conversions_lock.
8800         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8801         handling table of known conversions.
8802
8803 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8804
8805         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8806         close_not_cancel_no_status instead of close.
8807
8808 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
8809
8810         [BZ #5028]
8811         * posix/regcomp.c (lookup_collation_sequence_value): Check that
8812         nrules != 0 for multibyte chars.
8813
8814 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
8815
8816         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8817         Provide better error message in case the type is unknown.
8818
8819         [BZ #4963]
8820         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8821         * string/stratcliff.c: Make usable to test wide char functions.
8822         * wcsmbs/wcsatcliff.c: New file.
8823         * wcsmbs/Makefiel (tests): Add wcsatcliff.
8824
8825         [BZ #4972]
8826         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8827         (distribute): Add mac-centraleurope.c.
8828         (gen-8bit-gap-modules): Add mac-centraleurope.
8829         * iconvdata/mac-centraleurope.c: New file.
8830         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8831         * iconvdata/TESTS: Likewise.
8832         * iconvdata/tst-tables.sh: Likewise.
8833
8834         [BZ #5043]
8835         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8836
8837 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
8838
8839         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8840         from __x86_64_core_cache_size_half.
8841         (init_cacheinfo): Compute shared cache size for AMD processors with
8842         shared L3 correctly.
8843         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8844         name change.
8845         Patch in large parts by Evandro Menezes.
8846
8847 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
8848
8849         * elf/dl-lookup.c (add_dependency): Handle failing memory
8850         allocation for dependency list.  Remove unnecessary check.
8851
8852         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8853         open/close when determining source addresses.
8854
8855         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8856         sha512-crypt, and sha512.
8857         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8858         (distribute): Add sha256.h and sha512.h.
8859         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8860         and call the appropriate code.
8861         * crypt/sha256-crypt.c: New file.
8862         * crypt/sha256.c: New file.
8863         * crypt/sha256.h: New file.
8864         * crypt/sha256c-test.c: New file.
8865         * crypt/sha256test.c: New file.
8866         * crypt/sha512-crypt.c: New file.
8867         * crypt/sha512.c: New file.
8868         * crypt/sha512.h: New file.
8869         * crypt/sha512c-test.c: New file.
8870         * crypt/sha512test.c: New file.
8871
8872 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
8873
8874         * misc/bits/syslog.h (syslog): Remove extraneous argument from
8875         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8876         __syslog_chk.
8877
8878 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
8879
8880         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8881         %as in fscanf format strings.
8882
8883         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8884         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8885         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8886         Likewise.
8887         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8888         Likewise.
8889
8890         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8891         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8892         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8893         * elf/dl-sym.c (do_sym): Likewise.
8894         * include/link.h (struct link_map): Add l_serial field.
8895         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8896         * elf/dl-lookup.c (add_dependency): Add flags argument.
8897         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8898         flags, use THREAD_GSCOPE_RESET_FLAG before and
8899         THREAD_GSCOPE_SET_FLAG after
8900         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8901         Don't dereference map until it has been found on some list.
8902         If map->l_serial changed, return -1.
8903
8904 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
8905
8906         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8907         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8908         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8909         libc_hidden_proto.
8910         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8911         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8912         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8913         add libc_hidden_proto.
8914         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8915         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8916         conformance requested.
8917         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8918         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8919         conformance requested.
8920         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8921         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8922         conformance requested.
8923         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8924         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8925         ISO C99 or POSIX conformance requested.
8926         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8927         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8928         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8929         and __isoc99_vsscanf@@GLIBC_2.7.
8930         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8931         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8932         (tests): Add scanf14.
8933         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8934         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8935         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8936         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8937         CFLAGS-isoc99_scanf.c): Add $(exceptions).
8938         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8939         from using internal headers.
8940         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8941         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8942         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8943         and __isoc99_vswscanf@@GLIBC_2.7.
8944         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8945         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8946         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8947         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8948         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8949         * stdio-common/isoc99_scanf.c: New file.
8950         * stdio-common/isoc99_vsscanf.c: New file.
8951         * stdio-common/isoc99_vscanf.c: New file.
8952         * stdio-common/isoc99_vfscanf.c: New file.
8953         * stdio-common/isoc99_fscanf.c: New file.
8954         * stdio-common/isoc99_sscanf.c: New file.
8955         * wcsmbs/isoc99_fwscanf.c: New file.
8956         * wcsmbs/isoc99_vswscanf.c: New file.
8957         * wcsmbs/isoc99_swscanf.c: New file.
8958         * wcsmbs/isoc99_wscanf.c: New file.
8959         * wcsmbs/isoc99_vwscanf.c: New file.
8960         * wcsmbs/isoc99_vfwscanf.c: New file.
8961         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
8962         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
8963         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
8964         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
8965         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
8966         * stdio-common/scanf14.c: New test.
8967         * stdio-common/scanf15.c: New test.
8968         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8969         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
8970         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
8971         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
8972         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
8973         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
8974         __nldbl___isoc99_scanf@@GLIBC_2.7,
8975         __nldbl___isoc99_fscanf@@GLIBC_2.7,
8976         __nldbl___isoc99_sscanf@@GLIBC_2.7,
8977         __nldbl___isoc99_vscanf@@GLIBC_2.7,
8978         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
8979         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
8980         __nldbl___isoc99_wscanf@@GLIBC_2.7,
8981         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
8982         __nldbl___isoc99_swscanf@@GLIBC_2.7,
8983         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
8984         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
8985         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
8986         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
8987         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
8988         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
8989         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
8990         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
8991         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8992         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
8993         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
8994         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
8995         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
8996         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
8997         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
8998         functions.
8999         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
9000         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
9001         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
9002         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
9003         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
9004         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
9005         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
9006         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
9007         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
9008         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
9009         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
9010         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
9011
9012         * stdio-common/Makefile (tests): Add scanf13.
9013         (scanf13-ENV): New.
9014         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
9015         m modifier followed by l.
9016         (STRING_ARG): Add width argument.
9017         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
9018         <case L_('C')>: Handle %mlc and %mC.
9019         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
9020         arguments.
9021         * stdio-common/scanf13.c: New test.
9022
9023         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
9024         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
9025
9026 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
9027
9028         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
9029         type and __THROW marker of splice, vmsplice, and tee.
9030         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9031         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9032         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9033         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9034         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9035         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9036         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9037         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
9038         as cancellation points.
9039
9040 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
9041
9042         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
9043         parse more than three parts of the version number.
9044
9045 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
9046
9047         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
9048         modifier.  Patch by Jakub Jelinek.
9049
9050 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
9051
9052         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
9053         call_fallocate in misc subdir.
9054         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
9055         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
9056         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
9057         instead of __fallocate64.
9058         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
9059
9060 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
9061
9062         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
9063         * rt/Makefile (headers): Add bits/mqueue2.h.
9064         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
9065         optimizing with GCC and __va_arg_pack_len is defined.
9066         * rt/bits/mqueue2.h: New file.
9067         * rt/mq_open.c (__mq_open): Renamed from mq_open.
9068         (mq_open): New strong_alias.
9069         (__mq_open_2): New function.
9070         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
9071         (mq_open): New strong_alias.
9072         (__mq_open_2): New function.
9073         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
9074         * Versions.def (librt): Add GLIBC_2.7 version.
9075         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
9076         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
9077
9078         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
9079         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
9080         is defined rather than when not C++.
9081         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
9082         __openat64_alias): New redirects.
9083         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
9084         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
9085         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
9086         (open, open64, openat, openat64): Rewrite as __extern_always_inline
9087         functions instead of function-like macros.
9088
9089 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9090
9091         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
9092         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
9093         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
9094
9095 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
9096
9097         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
9098         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
9099
9100 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
9101
9102         * inet/tst-network.c: Increment ERRORS for failing tests.
9103
9104 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
9105
9106         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
9107         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
9108         implement as __extern_always_inline function.
9109         (vsyslog): Define as __extern_always_inline function unconditionally.
9110         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
9111         When __va_arg_pack is defined, implement as __extern_always_inline
9112         functions.
9113         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9114         __extern_always_inline functions unconditionally.
9115         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
9116         bits/stdio2.h will be included.
9117         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
9118         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
9119         implement as __extern_always_inline functions.
9120         (vswprintf, vwprintf, vfwprintf): Define as
9121         __extern_always_inline functions unconditionally.
9122         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
9123
9124 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
9125
9126         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
9127         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
9128         attribute.
9129         * include/features.h (__USE_EXTERN_INLINES): Define only when
9130         __extern_inline is defined.
9131         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
9132         is defined instead of when not __cplusplus.
9133         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
9134         is defined instead of when not __cplusplus.
9135         * socket/sys/socket.h: Include bits/socket2.h when
9136         __extern_always_inline is defined instead of when not __cplusplus.
9137         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
9138         is defined instead of when not __cplusplus.
9139         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
9140         is defined instead of when not __cplusplus.
9141         * string/string.h: Include bits/string3.h when __extern_always_inline
9142         is defined instead of when not __cplusplus.
9143         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
9144         is defined instead of when not __cplusplus.
9145         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
9146         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
9147         is not defined.
9148         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
9149         defined __extern_always_inline instead of !defined __cplusplus.
9150         * libio/bits/stdio-ldbl.h: Likewise.
9151         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9152         * misc/bits/syslog.h (syslog): Don't define for C++.
9153         (vsyslog): Use __extern_always_inline function for C++ instead of
9154         a macro.
9155         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
9156         whenever that macro is defined.
9157         (vprintf): Don't provide the inline for C++.
9158         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
9159         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
9160         define the macros for C++.
9161         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9162         __extern_always_inline functions for C++.
9163         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
9164         stat64, lstat64, fstat64, fstatat64): Don't define if not
9165         __USE_EXTERN_INLINES.
9166         * wcsmbs/bits/wchar2.h: Fix #error message.
9167         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
9168         (vswprintf, vwprintf, vfwprintf): Define using
9169         __extern_always_inline functions for C++.
9170         * string/bits/string3.h: Don't #undef macros if __cplusplus.
9171         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
9172         strncpy, strcat, strncat): Define as __extern_always_inline
9173         functions instead of macros for C++.
9174         * math/bits/cmathcalls.h: Guard __extern_inline routines with
9175         defined __extern_inline.
9176         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
9177         to __extern_inline whenever that macro is defined.
9178         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9179         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9180         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
9181         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
9182         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9183         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9184         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9185         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9186         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
9187         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
9188         prototypes.  Only provide __extern_inline routines if
9189         __USE_EXTERN_INLINES.
9190         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
9191         tests.
9192         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
9193         For now avoid some *printf tests in C++.  Skip all testing
9194         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
9195         is not.
9196         * debug/tst-chk4.cc: New file.
9197         * debug/tst-chk5.cc: New file.
9198         * debug/tst-chk6.cc: New file.
9199         * debug/tst-lfschk4.cc: New file.
9200         * debug/tst-lfschk5.cc: New file.
9201         * debug/tst-lfschk6.cc: New file.
9202         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
9203         prototypes in C++.
9204         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
9205         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
9206         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
9207
9208 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
9209
9210         * po/cs.po: Update from translation team.
9211
9212 2007-09-11  Roland McGrath  <roland@redhat.com>
9213
9214         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
9215         compiling.
9216
9217 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9218
9219         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
9220
9221 2007-09-05  Roland McGrath  <roland@redhat.com>
9222
9223         * manual/signal.texi (Signaling Another Process): Typo fix.
9224         From Karl Berry <karl@freefriends.org>.
9225
9226 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
9227
9228         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
9229         zero if not defined.
9230         (make_request): Recognize optimistic addresses and treat them like
9231         deprecated addresses.
9232         Reported by Neil Horman <nhorman@redhat.com>.
9233
9234 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
9235
9236         * nscd/connections.c (send_ro_fd): Also transfer file size.
9237         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
9238         file size don't call fstat.
9239
9240         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
9241         ahead and map the file.  This should always be correct and we can
9242         catch problems later.
9243
9244 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
9245
9246         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
9247         prototypes.
9248         (__fread_alias, __fread_unlocked_alias): New aliases.
9249         (fread): New extern inline.
9250         (fread_unlocked): Likewise.  Undef macro before definition of
9251         the inline function.
9252         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
9253         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
9254         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
9255         and __fread_unlocked_chk@@GLIBC_2.7.
9256         * debug/fread_chk.c: New file.
9257         * debug/fread_u_chk.c: New file.
9258         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
9259
9260 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
9261
9262         * sysdeps/unix/sysv/linux/syscalls.list
9263         (personality): Change caller to EXTRA.
9264
9265 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
9266
9267         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
9268         to keep gcc quiet.
9269         * iconvdata/iso-2022-cn.c (BODY): Likewise.
9270
9271         * locale/programs/ld-collate.c (collate_output): Avoid warning if
9272         NDEBUG is defined.
9273
9274         * Makerules: Use -p option with mkdir.
9275
9276         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
9277         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
9278         (_xdr_directory_obj): Likewise.
9279         (xdr_entry_obj): Likewise.
9280         (xdr_group_obj): Likewise.
9281         (xdr_link_obj): Likewise.
9282         (xdr_table_obj): Likewise.
9283         (_xdr_nis_result): Likewise.
9284         (_xdr_ns_request): Likewise.
9285         (_xdr_ib_request): Likewise.
9286         (_xdr_nis_taglist): Likewise.
9287         (xdr_cback_data): Likewise.
9288         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
9289         (xdr_ypresp_maplist): Likewise.
9290
9291         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
9292
9293         * posix/regex_internal.h: Prevent some declarations and definitions
9294         to be seen when used in tests.
9295
9296         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
9297         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
9298
9299         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
9300
9301         * config.make.in (datarootdir): Add to shut up configure.
9302
9303         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
9304         associativity for fully-associative caches.
9305
9306         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
9307         requests.  Fill on more associativity values for L2.
9308         Patch mostly by Evandro Menezes.
9309
9310 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
9311
9312         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9313         (_libc_vdso_platform_setup): Avoid using exported variable by using
9314         alias.
9315
9316         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
9317
9318         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
9319         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
9320         defined.
9321
9322 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
9323
9324         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
9325         align stack for call if pltexit is to be used.
9326
9327         [BZ #3924]
9328         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
9329         align for function call in case pltexit has to be called later.
9330
9331         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
9332         implicit atomic operation when storing function pointer.
9333         (_dl_runtime_profile): Likewise.
9334
9335 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9336
9337         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
9338         NIS_NOTFOUND.
9339
9340 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9341
9342         [BZ #4566]
9343         * string/strtok.c: Fix typo in comment.
9344
9345         [BZ #4582]
9346         * debug/segfault.c: Fix typos in comments.
9347
9348         [BZ #4588]
9349         * stdio-common/tempnam.c: Fix comment, it is not checked that
9350         TMPDIR points to a writable directory.
9351
9352         [BZ #4726]
9353         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9354         memory allocated for the name server address.
9355
9356         [BZ #4946]
9357         * nscd/connections.c (handle_request): Using sendfile always
9358         requires that mmap is used for the database.
9359         Patch by Petr Baudis <pasky@suse.cz>.
9360
9361         [BZ #4905]
9362         * nscd/hstcache.c (cache_addhst): When reloading an entry which
9363         suddenly has two or more addresses, ignore it and remove the old
9364         entry.
9365
9366         [BZ #4814]
9367         * resolv/res_hconf.c: Prepare for compiling outside libc.
9368         * nscd/res_hconf.c: New file.
9369         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
9370         the new file.
9371         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9372         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9373
9374         * nscd/hstcache.c (cache_addhst): Minimal optimization.
9375
9376         [BZ #4925]
9377         * debug/pcprofiledump.c: Turn on internationalization by calling
9378         setlocale.  Patch mostly by Benno Schulenberg.
9379
9380         [BZ #4936]
9381         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9382         the state.
9383         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9384         * iconvdata/bug-iconv5.c: New file.
9385
9386 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
9387
9388         [BZ #4896]
9389         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9390         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9391         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9392         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9393         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9394         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9395         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9396         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9397
9398 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9399
9400         [BZ #4937]
9401         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9402         lookup loop.  Suggested by John Reiser.
9403
9404 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
9405
9406         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9407
9408 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
9409
9410         * csu/libc-start.c: Don't handle VDSO_SETUP here.
9411         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9412         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9413         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
9414         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9415         to...
9416         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
9417
9418 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
9419
9420         * po/nl.po: Update from translation team.
9421
9422 2007-08-16  Andreas Jaeger  <aj@suse.de>
9423
9424         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9425         Reported by Peter Festner <peter.festner@ewetel.net>.
9426
9427 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9428
9429         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9430
9431 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
9432
9433         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9434         to check for undefined symbols.
9435
9436         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9437         If the syscall fails, set errno to the actual returned error number
9438         rather than EINVAL.
9439         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9440         arguments are incorrect, set errno to EINVAL, if the syscall
9441         fails, set errno to the actual returned error number.
9442
9443         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9444         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9445
9446         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9447         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
9448         file.
9449         (ASI_PNF, ASI_BLK_P): Don't define.
9450         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9451         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
9452         file.
9453         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9454         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
9455         file.
9456
9457 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
9458
9459         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9460         FE_UNDERFLOW on Niagara CPUs.
9461
9462         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9463         exceptions.
9464
9465 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
9466
9467         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9468         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9469         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9470         flush should be used or not inside of the function.
9471         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9472
9473         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9474         __thread_start): Use HIDDEN_JUMPTARGET.
9475         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9476         __thread_start): Likewise.
9477         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9478
9479         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9480         Add libc_hidden_proto.
9481         (STRTOF): Add libc_hidden_proto.
9482         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9483         (strtold_l, wcstold_l): Use them as second argument for
9484         long_double_symbol.
9485
9486 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9487
9488         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
9489
9490 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9491
9492         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
9493
9494 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9495
9496         * po/bg.po: New file.  From the translation team.
9497
9498 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9499
9500         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9501         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9502         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9503         when each feature was introduced.
9504
9505         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9506         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9507         (CHECK_HASH): New macro.
9508         (PREPARE_VERSION): Use it.
9509
9510         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9511         prototype if not __ASSUME_PSELECT.
9512         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9513         prototype if not __ASSUME_PPOLL.
9514
9515         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9516
9517         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9518         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9519         is defined.
9520
9521 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
9522
9523         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9524         (_libc_vdso_platform_setup): If vDSO is not available point
9525         __vdso_gettimeofday to the vsyscall.
9526         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9527         __vdso_gettimeofday instead of vsyscall.
9528
9529 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9530
9531         * nscd/servicescache.c: Include kernel-features.h.
9532         * nscd/gai.c: Likewise.
9533         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9534         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9535         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9536         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9537         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9538         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9539         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9540         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9541         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9542
9543 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9544
9545         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9546         and _dl_get_origin defines anymore.
9547
9548         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9549         Build fix for systems which might lack POSIX timer support.
9550
9551         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9552         (_libc_vdso_platform_setup): Mangle function pointers before storing
9553         them.
9554         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9555         Demangle vdso pointer before use.
9556         (INTERNAL_VSYSCALL): Likewise.
9557
9558         * elf/cache.c (primes): Mark as const.
9559         Noted by Roland McGrath.
9560
9561 2007-08-01  Andreas Jaeger  <aj@suse.de>
9562             Jakub Jelinek  <jakub@redhat.com>
9563
9564         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9565         (options): Add option.
9566         (parse_opt): Handle option.
9567         (manual_link): Adjust process_file caller.  Call implicit_soname.
9568         (search_dir): Formatting.  Use and populate auxiliary cache.
9569         (main): Load and save auxiliary cache.
9570         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
9571         stat64 from fstat64 to caller.
9572         (implicit_soname): New function.
9573         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9574         leave *soname as NULL.
9575         * elf/cache.c: Include libgen.h.
9576         (print_entry, print_cache, compare, save_cache, add_to_cache):
9577         Formatting and cleanups.
9578         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9579         aux_cache_file): New structures.
9580         (AUX_CACHEMAGIC): Define.
9581         (primes): New array.
9582         (aux_hash_size, aux_hash): New variables.
9583         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9584         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9585         load_aux_cache, save_aux_cache): New functions.
9586         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9587         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9588         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9589         (process_file): Adjust prototype.
9590
9591 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9592
9593         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9594         with __need_size_t.
9595
9596 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9597
9598         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9599         r_found_version structure as second parameter.
9600         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9601         (_dl_vdso_vsym): Change type of second parameter accordingly.
9602         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9603         (_libc_vdso_platform_setup): Adjust.
9604         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9605         (_libc_vdso_platform_setup): Likewise.
9606
9607         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9608         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9609         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9610         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9611         * csu/libc-start.c: Pretty printing.
9612         Use VDSO_SETUP if defined.
9613         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9614         and let generic code call into _libc_vdso_platform_setup.
9615         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9616         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9617         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9618         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9619         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9620         for GLIBC_PRIVATE.
9621         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9622         (sysdep_rountines): Add dl-vdso.
9623
9624         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9625         of routines.
9626
9627         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9628         attribute_hidden to __vdso_gettimeofday prototype.
9629
9630 2007-08-12  Roland McGrath  <roland@redhat.com>
9631
9632         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9633         From: Karl Berry <karl@freefriends.org>.
9634
9635 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9636
9637         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9638         an atime update for the files we read.
9639
9640 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9641
9642         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9643
9644         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9645         instead of mkstemp.
9646
9647         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9648         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9649         * misc/mkostemp.c: New file.
9650         * misc/mkostemp64.c: New file.
9651         * stdlib/stdlib.h: Declare the new functions.
9652         * sysdeps/posix/tempname.c: Add new parameter which is added to
9653         the flags for open.  Remove __GT_BIGFILE handling.
9654         * stdio-common/tempname.c: Likewise.
9655         * include/stdio.h: Adjust __gen_tempname prototype.
9656         Renumber __GT_* constants.
9657         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9658         * misc/mkdtemp.c: Likewise.
9659         * misc/mkstemp.c: Likewise.
9660         * misc/mkstemp64.c: Likewise.
9661         * misc/mktemp.c: Likewise.
9662         * stdio-common/tempnam.c: Likewise.
9663         * stdio-common/tmpfile.c: Likewise.
9664         * stdio-common/tmpfile64.c: Likewise.
9665         * stdio-common/tmpnam.c: Likewise.
9666         * stdio-common/tmpnam_r.c: Likewise.
9667
9668 2007-08-10  Roland McGrath  <roland@frob.com>
9669
9670         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9671         New macros.
9672         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9673         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9674
9675 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9676
9677         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9678         possible.
9679         * nss/nss_files/files-alias.c (internal_setent): Likewise.
9680         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9681         * nss/nss_files/files-have_o_cloexec.c: New file.
9682
9683         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9684         available.
9685
9686 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
9687
9688         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9689         ___new_wcstold_l): New weak aliases.
9690         (strtold_l, wcstold_l): Use them as second argument for
9691         long_double_symbol.
9692
9693 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
9694
9695         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9696         register in test for error.
9697
9698         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9699         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9700
9701         * po/sv.po: Update from translation team.
9702
9703 2007-08-06  Roland McGrath  <roland@redhat.com>
9704
9705         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9706         Remove __strto*_l inlines.
9707         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9708         * stdlib/strtod.c: Add libc_hidden_def.
9709         * stdlib/strtod_l.c: Likewise.
9710         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9711         for __new_strtold and __new_wcstold.
9712         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9713         __STRTOF, STRTOF.
9714         * stdlib/strtol.c: Add libc_hidden_def.
9715         * stdlib/strtol_l.c: Likewise.
9716         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9717         strtoq.
9718
9719         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9720
9721         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9722         * scripts/data/localplt-generic.data: ... here.
9723         * elf/Makefile (check-data): Get generic file if no other.
9724         ($(objpfx)check-localplt.out): Make target unconditional.
9725
9726         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9727         Use ElfW(Nhdr).
9728
9729 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
9730
9731         * po/zh_CN.po: Updated translation from translation team.
9732
9733 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
9734
9735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9736         Don't use CGOTSETUP and CGOTRESTORE macros.
9737
9738 2007-08-04  Roland McGrath  <roland@redhat.com>
9739
9740         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9741
9742 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9743
9744         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9745         __extension__ around the whole statement expression.
9746
9747 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9748
9749         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9750         elements during initialization.
9751
9752         * po/pl.po: Updated translation from translation team.
9753         * po/tr.po: Likewise.
9754         * po/nl.po: Likewise.
9755
9756 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9757
9758         * rt/aio.h: Add __nonnull attributes.
9759
9760 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9761
9762         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9763         * stdlib/Makefile (tests): Add tst-strtod5.
9764         (tst-strtod5-ENV): New.
9765         * stdlib/tst-strtod5.c: New file.
9766
9767         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9768         failed.
9769         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9770         on failure.
9771
9772         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9773         allocated.
9774
9775 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9776
9777         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9778         numbers.
9779
9780 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9781
9782         * io/Makefile (aux): Add have_o_cloexec.
9783         * include/fcntl.h: Declare __have_o_cloexec.
9784         * io/have_o_cloexec.c: New file.
9785         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9786         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9787         fcntl call if not necessary.
9788         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9789         of local variable.
9790
9791         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9792         Avoid memset, add explicit initialization.
9793         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9794         to the end and change into zero-sized array.
9795         Move lock member to fill a hole on 64-bit platforms.
9796
9797         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9798         inline functions.
9799         * include/stdlib.h: Add __strto*_internal prototypes here.
9800         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9801         inline functions.
9802         * include/wchar.h: Add __wcsto*_internal prototypes.
9803         * sysdeps/generic/inttypes.h: No need to protect the declaration
9804         of the __strto*_internal and __wcsto*_internal members here.
9805
9806         * rt/mqueue.h: Change const to __const and add nonnull attributes.
9807
9808 2007-08-02  Roland McGrath  <roland@redhat.com>
9809
9810         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9811         $(inst_bindir)/getconf if possible.
9812
9813         * posix/Makefile ($(objpfx)getconf.speclist): New target.
9814         (generated): Add it.
9815         ($(inst_libexecdir)/getconf): Use it.
9816
9817 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
9818
9819         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9820         /proc is faster and sufficient.  /sys is still needed for
9821         __get_nprocs_conf.
9822
9823 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
9824
9825         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9826         syscall as __fallocate64.
9827         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9828         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9829
9830 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
9831
9832         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9833         value.
9834
9835         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9836         if off_t is different rank from size_t.
9837
9838         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9839         uw_frame_state_for): Avoid type punning warnings.
9840         * sysdeps/generic/unwind-dw2-fde-glibc.c
9841         (_Unwind_IteratePhdrCallback): Likewise.
9842         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9843         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9844         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9845         pointers.
9846
9847 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
9848
9849         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9850         total processors using sysfs.
9851         (__get_nprocs): Use sysfs to determine which processors are online.
9852
9853 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
9854
9855         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9856         syscall arguments count.
9857
9858         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9859
9860 2007-07-30  Roland McGrath  <roland@redhat.com>
9861
9862         * manual/libc.texinfo: Update copyrights, formatting magic, and
9863         @dircategory.  From Karl Berry <karl@freefriends.org>.
9864
9865 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
9866
9867         [BZ #4860]
9868         * io/Makefile (headers): Add bits/fcntl2.h.
9869
9870         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9871         using gcc builtin.
9872         (__CPU_EQUAL_S): Likewise.
9873
9874         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9875         (tests): Add tst-cpuset.
9876         * posix/sched_cpualloc.c: New file.
9877         * posix/sched_cpufree.c: New file.
9878         * posix/tst-cpuset.c: New file.
9879         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9880         GLIBC_2.7.
9881         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9882         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9883         macros.  Define CPU_*_S macros.
9884
9885 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9886
9887         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9888         entry.
9889
9890         [BZ #4858]
9891         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9892         #.0g and value rounded to 1.0.
9893         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9894
9895 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
9896
9897         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9898         for int_frac_digits and frac_digits.
9899
9900         * login/logout.c (logout): Avoid aliasing violation.
9901         * login/logwtmp.c (logwtmp): Likewise.
9902
9903         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9904
9905         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9906         to avoid warning.
9907         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9908         warning.
9909         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9910         warning.
9911         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9912         to avoid warnings.
9913
9914         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9915         void **.
9916         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9917
9918         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9919         char * to avoid warning.
9920         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9921
9922         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9923
9924         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9925         allocate_arrays): Cast second argument to charmap_find_symbol
9926         to char * to avoid warnings.
9927
9928         * locale/programs/repertoire.c (repertoire_new_char): Change
9929         from_nr, to_nr and cnt to unsigned long, adjust printf format
9930         string.
9931
9932         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9933         Cast second argument to new_element to char * to avoid warnings.
9934
9935         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9936
9937         * intl/gettextP.h (struct loaded_domain): Change plural to const
9938         struct expression *.
9939         * intl/plural-eval.c (plural_eval): Change first argument to
9940         const struct expression *.
9941         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9942         argument to const struct expression **.
9943         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9944         prototypes.
9945         * intl/loadmsgcat (_nl_unload_domain): Cast away const
9946         in call to __gettext_free_exp.
9947
9948         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9949         unitialized wstring/wpattern var warnings.
9950
9951         * posix/runtests.c (struct a_test): Make data field const char *.
9952
9953         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9954         vars if not LDBL_MANT_DIG >= 106.
9955
9956         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
9957
9958         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
9959         __find_specmb to avoid warning.
9960
9961         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
9962
9963         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
9964         to avoid warnings.
9965
9966         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
9967         initializer.
9968
9969         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
9970         tv var when it will be actually used.
9971
9972         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
9973         to avoid warnings.
9974
9975         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
9976         char array resp. pointer.
9977         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
9978         char array.
9979         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
9980         to const unsigned char **.
9981         (ucs4_to_cns11643): Change second argument to unsigned char *.
9982         * iconvdata/euc-tw.c (BODY): Change endp type to
9983         const unsigned char *.
9984         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
9985         to unsigned char *.
9986         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
9987         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
9988         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
9989         types to unsigned char pointers/arrays instead of char.
9990         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
9991         to unsigned char *.
9992         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
9993         * iconvdata/jis0212.h: Include assert.h.
9994         (ucs4_to_jisx0212): Change second argument to unsigned char *.
9995         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
9996         of trying to handle that.
9997         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
9998         shut up a warning.
9999         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
10000         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
10001         two dimensional const unsigned char arrays.
10002         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
10003         Initialize endp to inptr to shut up a warning.
10004
10005 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10006
10007         [BZ #4772]
10008         * time/strptime_l.c (__strptime_internal): Silently ignore
10009         strftime modifiers and field width in recursive calls.
10010
10011         * include/time.h (enum ptime_locale_status): Remove.
10012         (__strptime_internal): Remove decided and era_cnt arguments,
10013         add statep argument.
10014         * time/strptime_l.c (__strptime_internal): Remove decided
10015         and era_cnt arguments, add statep argument.  Don't recompute
10016         any fields in recursive calls, only update caller's tm
10017         and state, if recursive call fails, don't change tm nor
10018         any state.
10019         (get_alt_number): Adjust.
10020         (recursive): Adjust caller.
10021         (strptime): Likewise.
10022         * time/strptime.c (strptime): Likewise.
10023
10024 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
10025
10026         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
10027         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
10028         if from and to charsets are the same.
10029         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
10030         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
10031         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
10032
10033 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10034
10035         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
10036         Don't define wint_t when __need_mbstate_t unless it
10037         is necessary.
10038         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
10039         in the typedef if possible.
10040         * wctype/wctype.h (wint_t): Define by including
10041         wchar.h with __need_wint_t instead of including stddef.h
10042         with __need_wint_t and as fallback definining it ourselves.
10043         * iconv/gconv.h (__need_wint_t): Define before including
10044         wchar.h.
10045         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
10046         or _GLIBCPP_USE_WCHAR_T.
10047         (__need_wchar_t): Don't define
10048         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10049         (__need_wint_t): Don't define before including stddef.h,
10050         define before including wchar.h only if _LIBC or
10051         _GLIBCPP_USE_WCHAR_T.
10052         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10053         * sysdeps/mach/hurd/_G_config.h: Likewise.
10054         * sysdeps/generic/_G_config.h: Likewise.
10055         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
10056         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
10057         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
10058         if _LIBC or _GLIBCPP_USE_WCHAR_T.
10059
10060 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
10061
10062         * sysdeps/posix/posix_fallocate64.c: Undefine
10063         __posix_fallocate64_l64 before alias handling.
10064         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
10065         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
10066         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
10067         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
10068
10069         * io/tst-posix_fallocate.c: Include <fcntl.h>.
10070
10071 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
10072
10073         * locale/programs/ld-collate.c (atwc): New variable.
10074         (add_to_tablewc): New toplevel function, moved from collate_output.
10075         (collate_output): Remove add_to_tablewc nested function.
10076
10077         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
10078         (name_insert): New function.
10079         (write_output): Remove hash_table and hash_size vars and name_insert
10080         nested function.
10081
10082 2007-07-24  Roland McGrath  <roland@redhat.com>
10083
10084         * Makerules (install-others-programs-nosubdir): New target.
10085         (install-no-libc.a-nosubdir): Depend on it.
10086
10087         * iconv/Makefile (install-others-programs): Set this instead of
10088         install-others.
10089         * login/Makefile (install-others-programs): Likewise.
10090         * posix/Makefile (install-others-programs): Likewise.
10091
10092         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
10093         dependencies.
10094
10095 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
10096
10097         * io/Makefile (tests): Add tst-posix_fallocate.
10098         * io/tst-posix_fallocate.c: New file.
10099
10100         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10101         __ASSUME_FALLOCATE.
10102
10103 2007-07-22  Roland McGrath  <roland@frob.com>
10104
10105         * hurd/getdport.c: Add missing copyright year update.
10106
10107         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
10108         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
10109
10110 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
10111
10112         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
10113
10114         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
10115         O_CLOEXEC is needed.
10116         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
10117         Avoid additional fcntl to set O_CLOEXEC if not needed.
10118         * nis/nss_compat/compat-initgroups.c: Likewise.
10119         * nis/nss_compat/compat-pwd.c: Likewise.
10120         * nis/nss_compat/compat-spwd.c: Likewise.
10121
10122 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10123
10124         [BZ #3665]
10125         * manual/errno.texi: Change ECANCELED value to 119.
10126
10127         [BZ #4610]
10128         * mach/lock-intern.h: Include <sys/cdefs.h>.
10129
10130         [BZ #4178]
10131         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
10132         reading A.
10133
10134         [BZ #4126]
10135         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
10136         to __sigsuspend.
10137
10138         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
10139
10140 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
10141
10142         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
10143         `__ASSEMBLER__'.
10144         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10145
10146 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
10147
10148         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
10149         descriptor received from nscd.
10150
10151         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
10152
10153         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
10154         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10155         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10156         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10157         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10158         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10159
10160 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10161
10162         [BZ #4816]
10163         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
10164
10165         [BZ #4813]
10166         * login/forkpty.c (forkpty): Close master and slave fds on
10167         fork failure.  Patch by
10168         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
10169
10170 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
10171
10172         * include/features.h (__USE_ISOC95): New define.
10173         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
10174         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
10175         for -std=iso9899:199409.
10176         * CONFORMANCE: Remove comments about unsupported AMD1.
10177
10178 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10179
10180         * sysdeps/ia64/sched_cpucount.c: New file.
10181         * sysdeps/powerpc/sched_cpucount.c: New file.
10182
10183         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
10184         __BEGIN_DECLS/__END_DECLS around the prototype.
10185         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
10186         pointer to const cpu_set_t.
10187
10188         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
10189         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
10190         __need_size_t and include stddef.h.
10191         * sysvipc/sys/msg.h: Likewise.
10192         * posix/sched.h: Likewise.
10193         * hurd/hurd/signal.h (__need_size_t): Define.
10194
10195         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
10196         neither does signal.h in pedantic ISO C namespaces.  stdio.h
10197         no longer defines wint_t or wchar_t.
10198
10199         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
10200         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
10201         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
10202         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
10203         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
10204         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
10205         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
10206         * debug/printf_chk.c (__printf_chk): Likewise.
10207         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
10208         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
10209
10210         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
10211         Define.
10212
10213         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
10214         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
10215
10216 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
10217
10218         [BZ #4792]
10219         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
10220         * malloc/malloc.h (realloc): Likewise.
10221
10222         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
10223         if one of proc_file_chain streams has that fileno.
10224         * stdio-common/Makefile (tests): Add tst-popen2.
10225         * stdio-common/tst-popen2.c: New test.
10226
10227 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
10228
10229         * elf/ldconfig.c: Allow GPLv2 or any later version.
10230         * elf/readlib.c: Likewise.
10231         * elf/chroot_canon.c: Likewise.
10232         * elf/cache.c: Likewise.
10233         * nscd/mem.c: Likewise.
10234         * nscd/getpwuid_r.c: Likewise.
10235         * nscd/grpcache.c: Likewise.
10236         * nscd/aicache.c: Likewise.
10237         * nscd/getsrvbynm_r.c: Likewise.
10238         * nscd/nscd.c: Likewise.
10239         * nscd/servicescache.c: Likewise.
10240         * nscd/getsrvbypt_r.c: Likewise.
10241         * nscd/initgrcache.c: Likewise.
10242         * nscd/gethstbyad_r.c: Likewise.
10243         * nscd/gethstbynm2_r.c: Likewise.
10244         * nscd/getgrnam_r.c: Likewise.
10245         * nscd/nscd_setup_thread.c: Likewise.
10246         * nscd/getpwnam_r.c: Likewise.
10247         * nscd/gai.c: Likewise.
10248         * nscd/connections.c: Likewise.
10249         * nscd/dbg_log.c: Likewise.
10250         * nscd/cache.c: Likewise.
10251         * nscd/hstcache.c: Likewise.
10252         * nscd/nscd_conf.c: Likewise.
10253         * nscd/getgrgid_r.c: Likewise.
10254         * nscd/pwdcache.c: Likewise.
10255         * catgets/gencat.c: Likewise.
10256         * locale/programs/linereader.h: Likewise.
10257         * locale/programs/locarchive.c: Likewise.
10258         * locale/programs/ld-paper.c: Likewise.
10259         * locale/programs/locfile-kw.h: Likewise.
10260         * locale/programs/ld-address.c: Likewise.
10261         * locale/programs/xmalloc.c: Likewise.
10262         * locale/programs/ld-time.c: Likewise.
10263         * locale/programs/localedef.c: Likewise.
10264         * locale/programs/simple-hash.c: Likewise.
10265         * locale/programs/xstrdup.c: Likewise.
10266         * locale/programs/ld-numeric.c: Likewise.
10267         * locale/programs/locfile-kw.gperf: Likewise.
10268         * locale/programs/ld-collate.c: Likewise.
10269         * locale/programs/charmap-kw.gperf: Likewise.
10270         * locale/programs/charmap.h: Likewise.
10271         * locale/programs/charmap-kw.h: Likewise.
10272         * locale/programs/config.h: Likewise.
10273         * locale/programs/locfile.c: Likewise.
10274         * locale/programs/ld-ctype.c: Likewise.
10275         * locale/programs/charmap.c: Likewise.
10276         * locale/programs/ld-messages.c: Likewise.
10277         * locale/programs/repertoire.h: Likewise.
10278         * locale/programs/locale.c: Likewise.
10279         * locale/programs/ld-name.c: Likewise.
10280         * locale/programs/linereader.c: Likewise.
10281         * locale/programs/locfile.h: Likewise.
10282         * locale/programs/3level.h: Likewise.
10283         * locale/programs/ld-monetary.c: Likewise.
10284         * locale/programs/ld-measurement.c: Likewise.
10285         * locale/programs/charmap-dir.c: Likewise.
10286         * locale/programs/ld-identification.c: Likewise.
10287         * locale/programs/localedef.h: Likewise.
10288         * locale/programs/charmap-dir.h: Likewise.
10289         * locale/programs/repertoire.c: Likewise.
10290         * locale/programs/simple-hash.h: Likewise.
10291         * locale/programs/ld-telephone.c: Likewise.
10292         * locale/programs/locale-spec.c: Likewise.
10293         * locale/programs/locfile-token.h: Likewise.
10294         * posix/getconf.c: Likewise.
10295         * iconv/dummy-repertoire.c: Likewise.
10296         * iconv/iconv_charmap.c: Likewise.
10297         * iconv/iconvconfig.c: Likewise.
10298         * iconv/iconv_prog.c: Likewise.
10299         * malloc/memusagestat.c: Likewise.
10300         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
10301
10302 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10303
10304         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
10305         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
10306         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
10307         check for the first argument.
10308
10309 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
10310
10311         [BZ #4775]
10312         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
10313         (__tgmath_real_type): Fix if expr is const int or other const
10314         qualified integral type.
10315         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
10316         expressions and handle const qualified arguments.
10317         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
10318         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10319         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
10320         statement expressions.
10321         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
10322         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
10323         (__TGMATH_UNARY_IMAG): Define.
10324         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
10325         * math/Makefile (tests): Add test-tgmath2.
10326         (CFLAGS-test-tgmath2.c): Add.
10327         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
10328         count_cfloat, count_cldouble): New variables.
10329         (NCCALLS): Define.
10330         (main): Check number of complex calls as well.
10331         (F(compile_test)): Add complex tests and tests with const qualified
10332         arguments.
10333         (y, z, ccount): Define.
10334         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
10335         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
10336         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
10337         F(cproj)): New functions.
10338         * math/test-tgmath2.c: New test.
10339
10340 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
10341
10342         [BZ #4776]
10343         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
10344         RPATH etc. as "/" rather than "", don't segfault on empty paths,
10345         instead output ".".
10346         * dlfcn/Makefile (distribute): Add glreflib3.c.
10347         (module-names): Add glreflib3.
10348         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10349         glreflib1.so.
10350         (LDFLAGS_glreflib3.so): New.
10351         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10352         glreflib1.so.
10353         * dlfcn/glreflib3.c: New file.
10354
10355         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10356         returned -1, return NULL.
10357         * intl/explodename.c (_nl_explode_name): Return -1 if
10358         _nl_normalize_codeset failed.
10359
10360 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
10361
10362         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10363         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
10364         and avoid branch misspredicts for > 31 bytes memset case.
10365         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10366         Remove toc ref to __cache_line_size.
10367
10368         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10369         to get ISA-V2.0 branch hints.
10370         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10371         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10372         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10373         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10374         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10375         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10376         Remove toc ref to __cache_line_size.
10377
10378         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10379         Include math_ldbl_opt.h.
10380
10381 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
10382
10383         [BZ #4773]
10384         * time/strptime_l.c (__strptime_internal): Implement greedy
10385         matching of weekday and month names.
10386
10387 2007-07-09  Roland McGrath  <roland@redhat.com>
10388
10389         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10390         (ELF_NOTE_ABI): Use it.
10391         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10392
10393 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
10394
10395         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10396         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10397
10398 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
10399
10400         [BZ #4745]
10401         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10402         in loop to look for conversion specifier to avoid testing of
10403         wrong errno value.
10404         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10405         * stdio-common/bug18.c: New file.
10406         * stdio-common/bug18a.c: New file.
10407         * stdio-common/bug19.c: New file.
10408         * stdio-common/bug19a.c: New file.
10409
10410 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
10411
10412         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10413         running awk script.
10414
10415 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
10416
10417         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10418         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
10419         Return NULL if mmap failed instead of asserting it does not.
10420         (calloc): Check for integer overflow.
10421
10422         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10423         than LONG_MAX / 10.
10424
10425 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
10426
10427         [BZ #4702]
10428         * nis/nss-default.c: Include errno.h.
10429         (init): Preserve errno.
10430
10431 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
10432
10433         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10434
10435 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
10436
10437         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10438
10439 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10440
10441         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10442
10443 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10444
10445         * sysdeps/s390/dl-procinfo.c: New file.
10446         * sysdeps/s390/dl-procinfo.h: New file.
10447         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10448
10449 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
10450
10451         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10452         in PT_NOTE segments with multiple notes.
10453         * elf/readelflib.c (process_elf_file): Likewise.
10454
10455 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
10456
10457         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10458         ISO C compliant.
10459
10460 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10461
10462         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10463
10464 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
10465
10466         * include/link.h: Don't include rtld-lowlevel.h.
10467         (struct link_map): Remove l_scope_lock.
10468         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10469         (_dl_scope_free_list): New field (variable) in _rtld_global.
10470         (DL_LOOKUP_SCOPE_LOCK): Remove.
10471         (_dl_scope_free): New prototype.
10472         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10473         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10474         (_dl_profile_fixup): Likewise.
10475         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
10476         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10477         THREAD_GSCOPE_RESET_FLAG around it.
10478         * elf/dl-close.c (_dl_close_worker): Don't use
10479         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
10480         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
10481         scopes were queued or if l_scope_mem has been abandoned.
10482         * elf/dl-open.c (_dl_scope_free): New function.
10483         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
10484         * elf/dl-support.c (_dl_scope_free_list): New variable.
10485         * elf/dl-lookup.c (add_dependency): Remove flags argument.
10486         Remove DL_LOOKUP_SCOPE_LOCK handling.
10487         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
10488         handling.
10489         * elf/dl-object.c (_dl_new_object): Don't use
10490         __rtld_mrlock_initialize.
10491
10492 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10493
10494         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10495         to fill in holes
10496         (rtld_global_ro): Likewise.
10497
10498 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10499
10500         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10501         Move PT_LOAD checking to...
10502         (_dl_addr_inside_object): ... here, new function.
10503         * elf/dl-sym.c (do_sym): If not l_contiguous,
10504         call _dl_addr_inside_object.
10505         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10506         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10507         * elf/dl-open.c (dl_open_worker): Likewise.
10508         (_dl_addr_inside_object): New function if IS_IN_rtld.
10509         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10510         holes are present or are PROT_NONE protected.
10511         * include/link.h (struct link_map): Add l_contiguous field.
10512         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10513
10514 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10515             Tomas Janousek  <tjanouse@redhat.com>
10516             Ulrich Drepper  <drepper@redhat.com>
10517
10518         [BZ #4647]
10519         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
10520         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10521         socket.
10522         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
10523         unused member a bitmap.
10524         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10525         servers are configured.
10526
10527 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10528
10529         * elf/rtld.c (dl_main): Don't call init_tls more than once.
10530
10531 2007-06-17  Andreas Schwab  <schwab@suse.de>
10532
10533         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10534
10535 2007-06-16  Andreas Jaeger  <aj@suse.de>
10536
10537         [BZ #4125]
10538         * sysdeps/unix/sysv/linux/sys/ptrace.h
10539         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10540         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10541         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10542         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10543         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10544         Define.
10545         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10546         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10547         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10548         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10549
10550 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
10551
10552         [BZ #4599]
10553         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10554         determining whether there are IPv4/IPv6 addresses, ignore loopback
10555         addresses.
10556
10557 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10558
10559         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10560         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10561         as the return type.  Change type of "r" variable to CMPtype.
10562         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10563         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10564         * soft-fp/gedf2.c (__gedf2): Likewise.
10565         * soft-fp/gesf2.c (__gesf2): Likewise.
10566         * soft-fp/getf2.c (__getf2): Likewise.
10567         * soft-fp/ledf2.c (__ledf2): Likewise.
10568         * soft-fp/lesf2.c (__lesf2): Likewise.
10569         * soft-fp/letf2.c (__letf2): Likewise.
10570         * soft-fp/unorddf2 (__unorddf2): Likewise.
10571         * soft-fp/unordsf2 (__unordsf2): Likewise.
10572         * soft-fp/unordtf2 (__unordtf2): Likewise.
10573
10574 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
10575
10576         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10577         make sure gcc doesn't mess around with this.
10578
10579 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10580
10581         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10582
10583 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
10584
10585         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10586         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10587         at most once per _dl_close_worker.
10588
10589 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10590
10591         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10592         __sched_cpucount as const.
10593         * posix/sched_cpucount.c: Adjust.
10594
10595         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10596         instruction for counting bits.
10597         * sysdeps/x86_64/sched_cpucount.c: New file.
10598
10599 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10600
10601         * configure.in: Avoid variable named BASH.
10602         * config.make.in: Likewise.
10603         Patch in part by Mike Frysinger.
10604
10605 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10606
10607         [BZ #4586]
10608         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10609         pseudo-zeros as zero.
10610         * sysdeps/x86_64/ldbl2mpn.c: New file.
10611         * sysdeps/ia64/ldbl2mpn.c: New file.
10612
10613 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10614
10615         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10616         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10617         Remove unreachable code at the end.
10618
10619 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10620
10621         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10622         ldbl-128ibm in comment.
10623         (fpclassifyl): Correct classification of denormals.
10624         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10625         return value for MIN denormal. Rewrite using long double math too
10626         correctly handle denormals and canonicalize the results.
10627
10628 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10629
10630         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10631         (__mpn_construct_long_double): Fix conversion where result ought
10632         to be smaller than __LDBL_MIN__, or the low double should be
10633         denormal.  Fix decision where to negate low double - honor round
10634         to even rules.
10635         * stdio-common/tst-sprintf2.c: Include string.h.
10636         (COMPARE_LDBL): Define.
10637         (TEST): Also test whether a string hexadecimal float representation
10638         can be parsed back to the number.
10639         (main): Add a couple of further tests.
10640
10641 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10642
10643         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10644         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10645         is non-zero, but smaller than 2 * __DBL_MIN__.
10646         * stdio-common/tst-sprintf2.c: New test.
10647         * stdio-common/Makefile (tests): Add tst-sprintf2.
10648
10649         * math/test-misc.c (main): Don't run last batch of tests with
10650         IBM long double format.
10651
10652 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10653
10654         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10655         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10656         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10657         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10658         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10659         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10660         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10661         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10662         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10663         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10666         New file.
10667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10668         New file.
10669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10670         New file.
10671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10672         New file.
10673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10674         New file.
10675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10677         New file.
10678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10679         New file.
10680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10681         New file.
10682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10683         New file.
10684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10685         New file.
10686
10687 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10688
10689         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10690         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10691         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10692         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10693         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10694         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10695         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10696         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10697
10698 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
10699
10700         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10701         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10702         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10703         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10704         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10705         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10706         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10707         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10708
10709 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10710
10711         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10712         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10713         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10714         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10715
10716 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10717
10718         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10719         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10720
10721 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10722
10723         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10724         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10725         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10726         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10727
10728 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
10729
10730         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10731         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10732
10733 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10734
10735         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10736         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10737
10738         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10739         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10740         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10741         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10742
10743 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10744
10745         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10746         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10747         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10748         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10749
10750 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10751
10752         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10753         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10754         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10755         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10756         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10757         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10758
10759 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10760
10761         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10762         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10763         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10764         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10765
10766 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10767
10768         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10769         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10770         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10771         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10772         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10773         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10774         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10775         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10776         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10777         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10778         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10779         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10780         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10781         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10782         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10783         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10784
10785 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10786
10787         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10788         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10789
10790 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10791
10792         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10793         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10794
10795 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10796
10797         * sysdeps/powerpc/powerpc32/970/Implies: New file.
10798         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10799         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10800         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10801         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10802         * sysdeps/powerpc/powerpc64/970/Implies: New file.
10803         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10804         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10805         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10806         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10807
10808 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10809
10810         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10811
10812 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
10813
10814         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10815         branch miss-predicts. Ensure that cache line crossing does not impact
10816         dispatch grouping.
10817
10818 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
10819
10820         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10821         "../../powerpc32/power4/memcopy.h".
10822         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10823         "../../powerpc32/power4/wordcopy.c".
10824
10825 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10826
10827         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10828         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10829         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10830         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10831         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10832         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10833
10834 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
10835
10836         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10837
10838 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10839
10840         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10841         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10842         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10843         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10844         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10845         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10846         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10847         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10848
10849 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
10850
10851         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10852
10853 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10854
10855         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10856         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10857         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10858         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10859         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10860         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10861         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10862
10863 2007-05-29  Roland McGrath  <roland@redhat.com>
10864
10865         * po/Makefile (po-sed-cmd): New variable.
10866         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10867
10868 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
10869
10870         * crypt/md5-crypt.c: Fix comment.
10871
10872         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10873         of crashing.  When this is the case or if the reply is malformed,
10874         don't try to close the new file descriptor since it does not
10875         exist.
10876         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10877
10878 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
10879
10880         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10881         if __NR_utimensat is not defined.
10882
10883 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
10884
10885         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10886
10887 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
10888
10889         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10890         (open): Fix comment typos.  Don't call __open_2 if flags
10891         is a compile time constant without O_CREAT.
10892         (__open64_2): Add nonnull attribute.
10893         (open64): Fix comment typos.  Don't call __open64_2 if flags
10894         is a compile time constant without O_CREAT.
10895         (__openat_2): Add nonnull attribute, fix nonnull attribute
10896         on redirect.
10897         (openat): Fix comment typos.  Don't call __openat_2 if flags
10898         is a compile time constant without O_CREAT.
10899         (__openat64_2): Add nonnull attribute, fix nonnull attribute
10900         on redirect.
10901         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
10902         is a compile time constant without O_CREAT.
10903
10904 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
10905
10906         * Makerules (sysd-rules): Define PTW for ptw-* files.
10907         * Versions: Define GLIBC_2.7 for libc.
10908         * include/stdio.h: Declare __fortify_fail.
10909         * debug/fortify_fail.c: New file.
10910         * debug/Makefile (routines): Add fortify_fail.
10911         * debug/chk_fail.c: Use __fortify_fail.
10912         * debug/stack_chk_fail.c: Likewise.
10913         * io/Versions: Export __open_2, __open64_2, __openat_2, and
10914         __openat64_2 for GLIBC_2.7.
10915         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10916         * io/open.c: Define *_2 variant of function which checks for O_CREAT
10917         and fails if necessary.
10918         * io/open64.c: Likewise.
10919         * io/openat.c: Likewise.
10920         * io/openat64.c: Likewise.
10921         * sysdeps/unix/sysv/linux/open64.c: Likewise.
10922         * sysdeps/unix/sysv/linux/openat.c: Likewise.
10923         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10924         * io/bits/fcntl2.h: New file.
10925         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10926         __openat64_2.
10927         * include/bits/fcntl2.h: New file.
10928         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10929         Add open_2.
10930         * sysdeps/unix/sysv/linux/open_2.c: New file.
10931
10932 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
10933
10934         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10935         as second parameter to handle_intel.
10936
10937         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10938         the entry.
10939
10940         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10941         handling to ...
10942         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
10943         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10944         cacheinfo.
10945         * sysdeps/x86_64/memcpy.S: Complete rewrite.
10946         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10947         Patch by Evandro Menezes <evandro.menezes@amd.com>.
10948
10949         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10950
10951 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
10952
10953         [BZ #4525]
10954         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10955         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
10956         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
10957
10958         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
10959
10960         [BZ #4514]
10961         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
10962         reinitialize workend at the start of each do_positional format spec
10963         loop, free workstart before do_positional loops.
10964         (printf_unknown): Fix size of work_buffer.
10965         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
10966
10967         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
10968         (public_sET_STATe): If ms->version < 3, put all chunks into
10969         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
10970         chunks.
10971
10972         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
10973         * malloc/hooks.c: Likewise.
10974         * malloc/arena.c: Likewise.
10975         * malloc/malloc.c (do_check_malloc_state): Don't assert
10976         n_mmaps is not greater than n_mmaps_max.  This removes the need
10977         for the previous change.
10978
10979         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
10980         2007-05-07 commit.
10981
10982 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
10983
10984         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
10985         Define for kernel >= 2.6.22.
10986
10987 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
10988
10989         * elf/dl-close.c (_dl_close_worker): When removing object from
10990         global scope, wait for all lookups to finish afterwards.
10991         * elf/dl-open.c (add_to_global): When global scope array must
10992         grow, allocate a new one and free old array only after all
10993         lookups finish.
10994         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
10995         (_dl_lookup_symbol_x): Likewise.
10996         * elf/dl-support.c: Define _dl_wait_lookup_done.
10997         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
10998         _dl_wait_lookup_done.
10999
11000         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
11001         not overlapping with arena.
11002
11003         * malloc/mcheck.c (reallochook): If size==0, free the block.
11004
11005         * rt/tst-shm.c: Use fstat64 instead of fstat.
11006
11007         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
11008         __NR_sync_file_range is not defined.
11009
11010 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
11011
11012         Dummy files to prevent stub versions from being used.
11013         * sysdeps/x86_64/fpu/k_cosl.c: New file.
11014         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
11015         * sysdeps/x86_64/fpu/k_sinl.c: New file.
11016         * sysdeps/x86_64/fpu/k_tanl.c: New file.
11017
11018         * version.h (VERSION): Set to 2.6.90.
11019
11020 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
11021
11022         * version.h (VERSION): Define to 2.6.
11023         * include/features.h (__GLIBC_MINOR__): Define to 6.
11024
11025         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
11026
11027         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
11028         sizes.
11029
11030 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
11031
11032         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
11033         number of mmaps.  n_mmaps_max is the target.
11034         * malloc/hooks.c: Likewise.
11035         * malloc/arena.c: Likewise.
11036
11037 2007-05-12  Andreas Jaeger  <aj@suse.de>
11038
11039         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
11040         getpid.
11041
11042 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
11043
11044         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
11045         adding new variables.
11046
11047         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
11048         optimize.  Completely extend global scope array before making the
11049         new entries visible.
11050
11051 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
11052
11053         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
11054         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
11055         tst-getcpu.
11056
11057         * include/link.h: Move l_version and l_nversion members around to
11058         fill gaps.
11059
11060         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
11061
11062         * sysdeps/unix/sysv/linux/sched_setaffinity.c
11063         (__sched_setaffinity_new): If syscall was successful and
11064         RESET_VGETCPU_CACHE is defined, use it before returning.
11065         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
11066
11067         * io/sys/stat.h: Make sure struct timespec is defined for
11068         __USE_ATFILE.
11069
11070         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
11071         UTIME_OMIT.
11072         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
11073         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11074         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
11075         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
11076         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11077         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11078         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
11079         * io/sys/stat.h: Declare utimensat, futimens.
11080         * io/utimensat.c: New file.
11081         * io/futimens.c: New file.
11082         * sysdeps/unix/sysv/linux/utimensat.c: New file.
11083         * sysdeps/unix/sysv/linux/futimens.c: New file.
11084         * io/Makefile (routines): Add utimensat, futimens.
11085         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
11086         * sysdeps/unix/sysv/linux/lutimes.c: New file.
11087         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
11088         available.
11089
11090         * include/sys/cdefs.h: Redefine __nonnull so that test for
11091         incorrect parameters in the libc code itself are not omitted.
11092
11093 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
11094
11095         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
11096         exception in addition to inexact when asked to raise only FE_INEXACT.
11097
11098         [BZ #3427]
11099         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
11100         in *envp.
11101
11102 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11103
11104         [BZ #4403]
11105         * string/strfry.c (strfry): Make result more random.
11106
11107 2007-05-07  Richard Henderson  <rth@redhat.com>
11108
11109         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
11110         if __NO_LONG_DOUBLE_MATH.
11111         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
11112         available in the compiler, add .arch directive to the assembly.
11113
11114 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
11115
11116         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
11117         compat_symbol to GLIBC_2_1.
11118         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
11119         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
11120         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
11121         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
11122         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
11123         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
11124         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
11125         libc, not libm.
11126         (__isnanl): New compat_symbol.
11127
11128 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11129             Jakub Jelinek  <jakub@redhat.com>
11130
11131         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
11132         (new_heap): Initialize mprotect_size.
11133         (grow_heap): When growing, only mprotect from mprotect_size till
11134         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
11135         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
11136
11137 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
11138             Peter Bergner  <bergner@us.ibm.com>
11139
11140         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
11141         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
11142         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
11143         * sysdeps/powerpc/fpu/fe_mask.c: New file.
11144         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
11145         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
11146         Call __fe_mask_env() if all FP exceptions disabled.
11147         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
11148         from old FPSCR to new fenv to propagate DFP rounding modes.
11149         Call __fe_mask_env() if FP exceptions previously enabled.
11150         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
11151         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
11152         transitioning from all exceptions disabled to any exception enabled
11153         or visa versa.
11154         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
11155         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
11156         when transitioning from all exceptions disabled to any exception
11157         enabled or visa versa.
11158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
11159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
11160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
11161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
11162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
11163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
11164
11165 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11166
11167         [BZ #4465]
11168         * posix/unistd.h: Remove __THROW from fdatasync.
11169
11170 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
11171
11172         [BZ #4465]
11173         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
11174
11175 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11176
11177         * stdio-common/vfprintf.c (process_string_arg): Optimize
11178         ridiculous precision in wide char code printing multi-byte string.
11179         Reported by Jim Meyering <jim@meyering.net>.
11180
11181         [BZ #4131]
11182         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
11183         boundaries to work around systems with overlapping binary loading.
11184         Based on a patch by Suzuki <suzuki@in.ibm.com>.
11185
11186 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
11187
11188         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
11189         __mbsnrtowcs after last change.
11190
11191         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
11192         (get_ident): Likewise.
11193
11194 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11195
11196         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
11197         with setting the sticky bit.
11198         * math/test-misc.c (main): Add more truncation tests.
11199
11200 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
11201
11202         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
11203         double in the function declaration.
11204         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
11205         double in the function declaration.
11206         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11207         float in the function declaration.
11208         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11209         float in the function declaration.
11210
11211         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
11212         denormal operands.  Do not generate FP_EX_DENORM exception.
11213         (FP_UNPACK_RAW_EP): Ditto.
11214         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
11215         undefined _FP_UNPACK_RAW_E.
11216         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
11217         undefined _FP_UNPACK_RAW_EP.
11218         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
11219         undefined _FP_PACK_RAW_E.
11220         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
11221         undefined _FP_PACK_RAW_EP.
11222
11223         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
11224         _FP_FRAC_COPY_2.
11225         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
11226         _FP_FRAC_COPY_4.
11227
11228 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
11229             Jakub Jelinek  <jakub@redhat.com>
11230
11231         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
11232         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
11233         this case.
11234         * soft-fp/op-common.h (FP_TRUNC): Ditto.
11235
11236 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11237
11238         * math/test-misc.c (main): Add tests for rounding long double
11239         values close to smallest double denormalized value to double.
11240
11241 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
11242
11243         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
11244         condition for truncating to 0.  Set sticky bit for such
11245         truncation.
11246
11247 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
11248
11249         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
11250         fixed length array for ignore.
11251
11252 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11253
11254         [BZ #4438]
11255         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
11256         stack for large precisions.
11257         * stdio-common/test-vfprintf.c (main): Add test for large
11258         precision.
11259
11260 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
11261
11262         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
11263         for exponent 0.
11264         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
11265
11266         [BZ #4439]
11267         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
11268         account in the size check.
11269         * resolv/tst-inet_ntop.c: New test.
11270         * resolv/Makefile (tests): Add tst-inet_ntop.
11271
11272 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11273             Jakub Jelinek  <jakub@redhat.com>
11274
11275         [BZ #4349]
11276         * malloc/malloc.c: Keep separate list for first blocks on the bin
11277         lists with a given size.  This helps skipping over list elements
11278         we know won't fit in two places.
11279         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
11280
11281 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
11282
11283         [BZ #4102]
11284         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
11285         label to Teredo tunnel addresses 2001://32.
11286
11287 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
11288
11289         * locale/programs/ld-collate.c (collate_read): Allow order_start
11290         after copy.
11291
11292         * locale/programs/ld-collate.c (collate_read): Fix printing of
11293         error message.
11294
11295         [BZ #3213]
11296         * locale/C-translit.h.in: Add entry for U2044.
11297
11298         [BZ #4342]
11299         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
11300         hexa-decimal floats without exponent.
11301         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
11302
11303 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11304
11305         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
11306         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
11307         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
11308         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
11309         GLIBC_2.6.
11310         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
11311         Add sched_getcpu.
11312
11313 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11314
11315         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
11316         of 0 after the out_fail label.
11317
11318 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11319
11320         [BZ #4406]
11321         * iconv/gconv_charset.h (strip): Allow ':'.
11322         * iconv/iconv_open.c (iconv_open): Adjust comment.
11323
11324 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11325
11326         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
11327         version.
11328
11329 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11330
11331         [BZ #4381]
11332         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
11333         alignment of buffer and tmp_buffer.
11334         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
11335         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
11336         alignment of buffer.
11337         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
11338         bigger than INT_MAX.
11339         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
11340         h_errnop arguments.  Fail if buflen is too small.
11341         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
11342
11343 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11344
11345         [BZ #4405]
11346         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
11347         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
11348
11349 2007-04-22  Roland McGrath  <roland@redhat.com>
11350
11351         * elf/elf.h (NT_PRXFPREG): New macro.
11352
11353 2007-04-19  Andreas Jaeger  <aj@suse.de>
11354
11355         [BZ #3905]
11356         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11357         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11358         Added.
11359
11360 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
11361
11362         * include/sys/mman.h: Mark madvise hidden.
11363         * misc/madvise.c: Add libc_hidden_def.
11364
11365 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
11366
11367         * nis/nis_domain_of.c (__nis_domain_of): New function.
11368         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11369         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11370         * nis/nis_call.c (rec_dirsearch): Likewise.
11371         (first_shoot): Likewise.  Remove search_parent_first argument.
11372         (struct nis_server_cache): Rename search_parent_first field
11373         to search_parent.
11374         (nis_server_cache_search, nis_server_cache_add): Rename
11375         search_parent_first argument to search_parent.
11376         (__nisfind_server): Likewise.  If search_parent, call
11377         __nis_domain_of.
11378
11379 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
11380
11381         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11382
11383 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
11384
11385         [BZ #4368]
11386         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11387
11388 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
11389
11390         [BZ #4364]
11391         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11392
11393 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
11394
11395         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11396         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11397         current number of locales in SUPPORTED.
11398         (create_archive): Initialize serial.
11399         (enlarge_archive): Preserve aliases rather than duplicating
11400         their locrecs.
11401
11402 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11403
11404         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11405         after _IO_un_link, not before it.
11406
11407         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11408         special case handling when wcp == wstartp + 1.  Fix a comment typo.
11409         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11410
11411 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
11412
11413         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11414         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11415         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11416         Remove __THROW.
11417         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11418         _IO_file_xsgetn_maybe_mmap): Likewise.
11419         * libio/oldfileops.c (old_do_write): Likewise.
11420         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11421         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11422         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11423         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11424         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11425         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11426         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11427         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11428         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11429         _IO_file_underflow, _IO_file_underflow_mmap,
11430         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11431         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11432         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11433         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11434         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11435         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11436         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11437         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11438         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11439         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11440         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11441         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11442         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11443         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11444         _IO_adjust_column_internal, _IO_default_uflow_internal,
11445         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11446         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11447         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11448         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11449         _IO_file_close_it_internal, _IO_file_underflow_internal,
11450         _IO_file_overflow_internal, _IO_file_attach_internal,
11451         _IO_file_fopen_internal, _IO_file_sync_internal,
11452         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11453         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11454         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11455         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11456         _IO_seekpos_unlocked): Likewise.
11457         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11458         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11459
11460 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
11461
11462         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11463         argument in xmalloc size computation.
11464
11465 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11466
11467         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11468         math_opt_barrier and math_force_eval macros.
11469
11470 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11471
11472         [BZ #3306]
11473         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11474         * sysdeps/i386/fpu/math_private.h: New file.
11475         * sysdeps/x86_64/fpu/math_private.h: New file.
11476         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11477         math_force_eval macros.  Use "+m" constraint on asm rather than
11478         "=m" and "m".
11479         * math/s_nextafter.c (__nextafter): Likewise.
11480         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11481         Likewise.
11482         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11483         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11484         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11485         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11486         math_opt_barrier and math_force_eval macros.
11487         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11488         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11489         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11490         (__nexttoward): Use math_opt_barrier and
11491         math_force_eval macros.  Use "+m" constraint on asm rather than
11492         "=m" and "m".  Only use asm to force double result if
11493         FLT_EVAL_METHOD is 2.
11494         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11495         (__nexttowardf): Use math_opt_barrier and
11496         math_force_eval macros.  Use "+m" constraint on asm rather than
11497         "=m" and "m".  Only use asm to force double result if
11498         FLT_EVAL_METHOD is not 0.
11499         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11500         (__nexttowardf): Use math_opt_barrier and
11501         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11502         x to float using asm.
11503         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11504         (__nldbl_nexttowardf): Use math_opt_barrier and
11505         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11506         x to float using asm.
11507         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11508         (__nexttowardf): Use math_opt_barrier and math_force_eval
11509         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
11510         * math/bug-nextafter.c (zero, inf): New variables.
11511         (main): Add new tests.
11512         * math/bug-nexttoward.c (zero, inf): New variables.
11513         (main): Add new tests.
11514
11515 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11516
11517         [BZ #3427]
11518         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11519         exceptions both in SW and MXCSR.
11520         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11521         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11522         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11523         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11524         in MXCSR if SSE is available.
11525         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11526         and ldsodefs.h.
11527         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11528         Fix comment typo.
11529         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11530         Return 0 rather than 1.
11531         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11532         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
11533         * math/test-fenv.c (feholdexcept_tests): New function.
11534         (main): Call it.
11535
11536 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
11537
11538         [BZ #3427]
11539         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11540         in SW.
11541
11542 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11543
11544         [BZ #4344]
11545         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11546         Reported by David Anderson <davea42@earthlink.net>.
11547
11548 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
11549
11550         * posix/sys/wait.h: Remove unnecessary forward declaration.
11551
11552 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
11553
11554         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11555         with obj->do_servers after first_shoot.
11556
11557 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
11558
11559         * posix/Makefile (routines): Add sched_cpucount.
11560         (tests): Add tst-cpucount.
11561         * posix/sched_cpucount.c: New file.
11562         * posix/tst-cpucount.c: New file.
11563         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11564         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
11565         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11566         * posix/sched.h: Define CPU_COUNT.
11567
11568 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11569
11570         * posix/fnmatch.c (STRUCT): Define.
11571         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11572         * posix/fnmatch_loop.c (struct STRUCT): New type.
11573         (FCT): Add ends argument.  If ends != NULL and normal * is
11574         seen in the pattern, store current pattern and string pointers
11575         and return.  Adjust recursive calls.
11576         (EXT): Adjust FCT callers.
11577         (STRUCT): Undef at the end of the file.
11578         * posix/Makefile (tests): Add tst-fnmatch2.
11579         * posix/tst-fnmatch2.c: New test.
11580
11581 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11582
11583         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11584         and 1 on failure.
11585
11586         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11587         Change last argument to unsigned int.
11588
11589 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11590
11591         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11592
11593 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11594
11595         * config.h.in (HAVE_LIBCAP): Add.
11596         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11597         sys/capabilities.h.
11598         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11599         free_caps.  Cast away const from 4th cap_set_flag argument.
11600
11601 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11602
11603         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11604         GLIBC_2.6.
11605         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11606         Add sync_file_range.
11607         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11608
11609 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11610
11611         * sysdeps/powerpc/bits/atomic.h
11612         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11613         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11614         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11615         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11616         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11617         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11618         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11619         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11620         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11621         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11622         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11623         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11624         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11625         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11626         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11627         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11628         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11629         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11630         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11631         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11632
11633 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11634
11635         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11636         (__cache_line_size): Define the variable here.  Add
11637         attribute_hidden, remove weak_extern.
11638         (__libc_start_main): Set __cache_line_size
11639         unconditionally.
11640         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11641         (__cache_line_size): Define the variable here.  Add
11642         attribute_hidden, remove weak_extern.
11643         (DL_PLATFORM_AUXV): Set __cache_line_size
11644         unconditionally.
11645         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11646         weak_extern, add attribute_hidden.
11647         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11648         defined in ld.so.
11649         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11650         definition.
11651         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11652
11653 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11654
11655         [BZ #4276]
11656         * timezone/africa: Update from tzdata2007d.
11657         * timezone/asia: Likewise.
11658         * timezone/australasia: Likewise.
11659         * timezone/backward: Likewise.
11660         * timezone/europe: Likewise.
11661         * timezone/iso3166.tab: Likewise.
11662         * timezone/leapseconds: Likewise.
11663         * timezone/northamerica: Likewise.
11664         * timezone/southamerica: Likewise.
11665         * timezone/zone.tab: Likewise.
11666
11667         * timezone/private.h: Update from tzcode2007d.
11668         * timezone/zdump.c: Likewise.
11669         * timezone/zic.c: Likewise.
11670
11671 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11672
11673         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11674         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11675         variables.
11676         (nis_server_cache_search, nis_server_cache_add): New functions.
11677         (__nisfind_server): Use them.  Add dbp and flags argument, if
11678         call __nisbind_create.
11679         (__nisbind_create): Add server_used and current_ep arguments,
11680         only call __nis_findfastest if server_used is ~0.
11681         (__do_niscall2, __prepare_niscall): Adjust callers.
11682         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11683         ckey_cache_euid, ckey_cache_lock): New variables.
11684         (get_ckey): New function.
11685         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11686         __pmap_getnisport.  Save __pmap_getnisport result in
11687         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
11688         key.
11689         * nis/nis_lookup.c (nis_lookup): Likewise.
11690         * nis/nis_table.c (nis_list): Likewise.
11691         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11692         prototypes.
11693
11694         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11695         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11696         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11697         _nss_nisplus_getservbyport_r): Likewise.
11698         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11699         _nss_nisplus_getnetbyaddr_r): Likewise.
11700         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11701         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11702         _nss_nisplus_getntohost_r): Likewise.
11703         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11704         _nss_nisplus_getrpcbynumber_r): Likewise.
11705
11706 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11707
11708         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11709         * configure: Rebuilt.
11710
11711         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11712         bit-fields.
11713         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11714
11715 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11716
11717         [BZ #2831]
11718         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11719         bit-fields.
11720
11721 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11722
11723         * nscd/gai.c: Include alloca.h.
11724         (__libc_use_alloca): Define.
11725
11726 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11727
11728         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11729         smaller scopes.
11730         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11731         (DL_DST_REQUIRED): Adjust user.
11732
11733         * include/dlfcn.h (struct link_map): New forward decl.
11734
11735         * inet/getnameinfo.c: Include stddef.h.
11736         (getnameinfo): Use offsetof.
11737
11738         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11739
11740         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11741
11742         * string/strerror_l.c: Include stdlib.h.
11743
11744         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11745         * config.make.in (gnu89-inline-CFLAGS): New variable.
11746         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11747         -std=gnu99.
11748         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11749         * argp/argp.h: Use it.
11750         * bits/mathinline.h: Likewise.
11751         * bits/sigset.h: Likewise.
11752         * bits/string.h: Likewise.
11753         * ctype/ctype.h: Likewise.
11754         * hurd/hurd.h: Likewise.
11755         * hurd/hurd/fd.h: Likewise.
11756         * hurd/hurd/port.h: Likewise.
11757         * hurd/hurd/signal.h: Likewise.
11758         * hurd/hurd/threadvar.h: Likewise.
11759         * hurd/hurd/userlink.h: Likewise.
11760         * io/sys/stat.h: Likewise.
11761         * libio/bits/stdio.h: Likewise.
11762         * libio/bits/stdio2.h: Likewise.
11763         * mach/lock-intern.h: Likewise.
11764         * mach/mach/mig_support.h: Likewise.
11765         * math/bits/cmathcalls.h: Likewise.
11766         * posix/bits/unistd.h: Likewise.
11767         * socket/bits/socket2.h: Likewise.
11768         * stdlib/bits/stdlib.h: Likewise.
11769         * stdlib/stdlib.h: Likewise.
11770         * string/argz.h: Likewise.
11771         * string/bits/string2.h: Likewise.
11772         * string/bits/string3.h: Likewise.
11773         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11774         * sysdeps/generic/inttypes.h: Likewise.
11775         * sysdeps/generic/machine-lock.h: Likewise.
11776         * sysdeps/generic/machine-sp.h: Likewise.
11777         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11778         * sysdeps/i386/i486/bits/string.h: Likewise.
11779         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11780         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11781         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11782         * sysdeps/mach/i386/machine-lock.h: Likewise.
11783         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11784         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11785         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11786         * sysdeps/s390/bits/string.h: Likewise.
11787         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11788         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11789         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11790         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11791         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11792         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11793         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11794         * wcsmbs/bits/wchar2.h: Likewise.
11795         * wcsmbs/wchar.h: Likewise.
11796         * stdlib/gmp.h: Likewise.  Include <features.h> to get
11797         __extern_inline definition.
11798
11799 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
11800
11801         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11802         NULL.
11803
11804         [BZ #3919]
11805         * math/libm-test.inc (log_test): Test -Inf and NaN.
11806         (log10_test, log1p_test, log2_test): Test -Inf.
11807         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11808         FE_INVALID when argument is qNaN.
11809         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11810         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11811         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11812         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11813         andb $1, %ah with testb $1, %ah, don't test for parity, instead
11814         testb $4, %ah and jump if non-zero.
11815         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11816         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11817
11818         [BZ #4101]
11819         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11820         ancestors with the same depths.
11821         Patch by Niels Moeller <nisse@lysator.liu.se>.
11822         (filter_doc): Don't crash if argp is NULL.
11823         * argp/Makefile (tests): Add tst-argp2.
11824         * argp/tst-argp2.c: New test.
11825
11826         [BZ #4130]
11827         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11828         open_not_cancel_2.
11829         (updwtmp_file): Likewise.
11830
11831         [BZ #4181]
11832         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11833         (inet6_opt_append): Don't check extlen is big enough if extbuf
11834         is NULL.
11835         (inet6_opt_finish): Likewise.
11836         * inet/Makefile (tests): Add test-inet6_opt.
11837         * inet/test-inet6_opt.c: New test.
11838
11839         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11840         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11841         NLMSG_ERR.  Instead use a page sized buffer.
11842         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11843         buffer.
11844
11845 2007-03-14  Richard Henderson  <rth@redhat.com>
11846
11847         * sysdeps/alpha/fpu/s_llround.c: New file.
11848         * sysdeps/alpha/fpu/s_llroundf.c: New file.
11849         * sysdeps/alpha/fpu/s_lround.c: New file.
11850         * sysdeps/alpha/fpu/s_lroundf.c: New file.
11851         * sysdeps/alpha/fpu/s_round.c: New file.
11852         * sysdeps/alpha/fpu/s_roundf.c: New file.
11853         * sysdeps/alpha/fpu/s_trunc.c: New file.
11854         * sysdeps/alpha/fpu/s_truncf.c: New file.
11855
11856         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11857         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11858         * sysdeps/alpha/fpu/s_floor.c: Likewise.
11859         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11860         * sysdeps/alpha/fpu/s_rint.c: Likewise.
11861         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11862
11863         * sysdeps/alpha/fpu/s_fmax.S: New file.
11864         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11865         * sysdeps/alpha/fpu/s_fmin.S: New file.
11866         * sysdeps/alpha/fpu/s_fminf.S: New file.
11867         * sysdeps/alpha/fpu/s_isnan.c: New file.
11868         * sysdeps/alpha/fpu/s_isnanf.c: New file.
11869         * sysdeps/alpha/fpu/s_llrint.c: New file.
11870         * sysdeps/alpha/fpu/s_llrintf.c: New file.
11871         * sysdeps/alpha/fpu/s_lrint.c: New file.
11872         * sysdeps/alpha/fpu/s_lrintf.c: New file.
11873         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11874         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11875
11876         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11877         (__fdimf, fdimf, __fdim, fdim): Remove.
11878         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11879         (__isnanf, __isnan, __isnanl): New.
11880
11881 2007-03-13  Richard Henderson  <rth@redhat.com>
11882
11883         * sysdeps/ieee754/ldbl-128/Makefile: New file.
11884
11885 2007-03-13  Richard Henderson  <rth@redhat.com>
11886
11887         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11888         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11889         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11890         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11891         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11892         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11893
11894 2007-03-13  Richard Henderson  <rth@redhat.com>
11895
11896         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11897         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11898         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11899         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11900         Move to dl-auxv.h; initialize instead of extern weak.
11901         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11902         weak symbol.
11903         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11904         Extern instead of initialized.
11905
11906 2007-03-13  Richard Henderson  <rth@redhat.com>
11907
11908         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11909         __sigsuspend_nocancel.
11910
11911 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
11912
11913         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11914         172.16/12 address range.
11915
11916 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
11917
11918         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11919         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11920         message.
11921
11922 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
11923
11924         [BZ #4069]
11925         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11926         earlier.
11927         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11928
11929         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11930         for x qNaN and y either +-inf or non-integer value.
11931         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11932         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11933         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11934
11935 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
11936
11937         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11938         from sysdep_headers.
11939
11940 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
11941
11942         * time/tzfile.c (find_transition): Instead of a linear search try to
11943         guess the transition index, use a linear search if the result is at
11944         most 10 transitions away from the guess or binary search otherwise.
11945
11946 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
11947
11948         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11949         memory reallocation.
11950
11951 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
11952
11953         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11954         and fix some typos.
11955         Optimize use of TOLOWER.
11956
11957         [BZ #3325]
11958         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
11959         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11960         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11961
11962         [BZ #3458]
11963         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
11964         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
11965
11966         [BZ #4076]
11967         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
11968         (open_dir_stream): Likewise.
11969         * io/Makefile (tests): Add bug-ftw5.
11970         * io/bug-ftw5.c: New file.
11971
11972         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
11973         * nscd/servicescache.c (cache_addserv): Likewise.
11974
11975         * nscd/grpcache.c (cache_addgr): In case a record changed on
11976         refresh, adjust key_copy.
11977
11978         [BZ #4074]
11979         * nscd/pwdcache.c (cache_addpw): In case a record changed on
11980         refresh, adjust key_copy.
11981
11982         [BZ #4070]
11983         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
11984         special cases.
11985         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
11986
11987 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
11988
11989         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
11990         optimization.
11991
11992         * stdio-common/vfscanf.c: Small cleanups throughout.
11993
11994 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
11995
11996         [BZ #3325]
11997         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
11998         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11999         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12000         Patch by Jared Casper <jaredcasper@gmail.com>.
12001
12002         * sysdeps/unix/closedir.c: Outside libc don't use locking.
12003         * sysdeps/unix/opendir.c: Likewise.
12004         * sysdeps/unix/readdir.c: Likewise.
12005
12006         [BZ #2211]
12007         * stdio-common/vfscanf.c: Handle localized digits etc for floating
12008         point numbers.
12009         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
12010
12011         * stdio-common/vfscanf.c: Fix problems in width accounting.
12012         * stdio-common/tst-sscanf.c (double_tests): New tests.
12013         (main): Hook them up.
12014
12015         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
12016         More simplifications of floating-point reader.
12017
12018         * stdio-common/Makefile (tests): Add tst-swscanf.
12019         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
12020         testing.
12021         * stdio-common/tst-swscanf.c: New file.
12022
12023 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
12024
12025         [BZ #2633]
12026         * libio/stdio.h: Define struct _IO_FILE in global namespace.
12027         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
12028         Remove using for __jmp_buf_tag.
12029         * locale/locale.h (struct lconv): Also define in std namespace.
12030         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
12031
12032         [BZ #3842]
12033         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
12034         using __libc_enable_secure.
12035
12036         [BZ #3818]
12037         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
12038
12039         [BZ #3745]
12040         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
12041         of names for ellipsises.
12042
12043         [BZ #3348]
12044         * malloc/memusage.sh: Cleanups.
12045         * debug/xtrace.sh: Quoting and trap changes.
12046
12047 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
12048
12049         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
12050
12051         * locale/iso-3166.def: Update entry for Serbia.
12052         * locale/iso-4217.def: Define RSD, remove CSD.
12053
12054         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
12055         and 64-bit operations.
12056
12057         [BZ #4040]
12058         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
12059         16-bit operations.
12060
12061         * nscd/nscd.c (parse_opt): One more conversion to use send instead
12062         of writev.
12063
12064 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
12065
12066         [BZ #3991]
12067         * assert/assert.h (assert): Simplify.
12068         (assert_perror): Likewise.
12069         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
12070
12071         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
12072         reqdata.
12073
12074         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
12075         change: don't pass NULL in place of an integer.
12076
12077 2007-02-02  Bruno Haible  <bruno@clisp.org>
12078
12079         [BZ #3954]
12080         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
12081         Add mapping for U+327E.
12082         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
12083         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12084         mapping of 0xD9 0xE8.
12085         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
12086         mapping of U+327E.
12087         Reported by Jungshik Shin <jungshik@google.com>.
12088
12089         [BZ #3955]
12090         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12091         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
12092         Reported by Jungshik Shin <jungshik@google.com>.
12093
12094 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
12095
12096         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
12097         byte variants.
12098
12099         [BZ #4040]
12100         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
12101         byte variants.  Patch mostly be tom@tommay.net.
12102
12103 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
12104
12105         [BZ #3996]
12106         * posix/glob.c (attribute_hidden): Define if not defined.
12107         (glob): Unescape dirname, filename or username when needed and not
12108         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
12109         is NULL.  Handle unescaped [ in pattern without closing ].
12110         Don't pass GLOB_CHECK down to recursive glob for directories.
12111         (__glob_pattern_type): New function.
12112         (__glob_pattern_p): Implement using __glob_pattern_type.
12113         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
12114         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
12115         Remove unreachable code.
12116         * posix/globtest.sh: Add a couple of new tests.
12117
12118 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
12119
12120         * po/ru.po: Update from translation team.
12121
12122 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
12123
12124         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
12125         to the list of i486+ CPUs.
12126         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12127
12128 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
12129
12130         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
12131         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
12132         references.
12133
12134 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
12135
12136         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
12137
12138         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
12139         * resolv/res_mkquery.c: Define __res_nopt.
12140         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
12141         try adding EDNS0 record.
12142         * resolv/res_send.c (send_dg): If request failed with FORMERR and
12143         EDNS0 record was send make sure we don't try it again.
12144         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
12145         * include/resolv.h: Declare __res_nopt.
12146
12147 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
12148
12149         [BZ #3944]
12150         * time/strptime_l.c (__strptime_internal): Set have_mon for
12151         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
12152         have been computed from tm_yday and tm_year.  Don't crash
12153         in day_of_the_week or day_of_the_year if not have_mon
12154         and tm_mon contains bogus value.
12155         * time/Makefile (tests): Add tst-strptime3.
12156         * time/tst-strptime3.c: New test.
12157
12158 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
12159
12160         [BZ #3957]
12161         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12162         bit for RE_HAT_LISTS_NOT_NEWLINE.
12163         (build_charclass_op): Remove bogus comment.
12164         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
12165         * posix/bug-regex27.c: New test.
12166         * posix/bug-regex28.c: New test.
12167
12168 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
12169
12170         * po/sv.po: Update from translation team.
12171
12172 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
12173
12174         * nscd/nscd_helper.c (open_socket): Minor size optimization.
12175
12176 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
12177
12178         * include/locale.h (__uselocale): Add libc_hidden_proto.
12179         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
12180
12181         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
12182         gettimeofday.
12183
12184 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
12185
12186         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
12187         returning.
12188         (PTR_DEMANGLE): Real definition now that it's not the same as
12189         PRT_MANGLE anymore.
12190         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12191
12192         * string/strerror_l.c: New file.
12193         * string/Makefile (routines): Add strerror_l.
12194         * string/string.h: Declare strerror_l.
12195         * string/Versions: Export strerror_l for GLIBC_2.6.
12196
12197 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
12198
12199         * nscd/nscd_helper.c (open_socket): Now takes request type and key
12200         as parameter.  Construct request record.  Try sending request
12201         before the first poll use, it usually succeeds.  Adjust all
12202         callers.
12203         * nscd/nscd-client.h: Define MAXKEYLEN.
12204         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
12205
12206 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
12207
12208         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
12209         from return value.
12210         * nscd/nscd_helper.c: Include string.h.
12211         (__nscd_cache_search): Remove const qualifier from return value.
12212         On strict alignment architectures check hash entry and data head
12213         alignment.
12214         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
12215         mmapped data during GC cycle contains garbage.  If
12216         __nscd_drop_map_ref fails, decrement mapped->counter when returning
12217         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
12218         dropped to 0.
12219         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12220         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
12221         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12222         * nscd/nscd_getai.c (__nscd_getai): Likewise.
12223         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12224
12225 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
12226
12227         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
12228
12229 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
12230
12231         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
12232         names not numbers in cfi_*.
12233
12234 2007-01-26  Andreas Jaeger  <aj@suse.de>
12235
12236         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
12237         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
12238         Correct values of PER_HPUX and PER_OSF4.
12239
12240 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
12241
12242         * elf/dl-minimal.c: Undefine _itoa first.
12243         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
12244         * malloc/mtrace.c: Revert last change.
12245         * posix/wordexp.c: Likewise.
12246
12247 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
12248
12249         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
12250         and __geode__ to the list of i486+ CPUs.
12251         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12252
12253 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
12254
12255         * stdio-common/_itoa.c: Include <limits.h>.
12256         * stdio-common/_itowa.c: Likewise.
12257
12258 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
12259
12260         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
12261         platforms.
12262         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
12263         64-bit platforms.
12264         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
12265         possible.
12266         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
12267         if possible.
12268
12269         [BZ #3902]
12270         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
12271         * stdio-common/Makefile (tests): Add bug17.
12272         * stdio-common/bug17.c: New file.
12273
12274 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
12275
12276         * iconvdata/brf.c: New file.
12277         * iconvdata/testdata/BRF: New file.
12278         * iconvdata/testdata/BRF..UTF8: New file.
12279         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
12280         * iconvdata/Makefile: Add rules to build BRF.
12281         * iconvdata/TESTS: Add BRF entry.
12282         * iconvdata/gconv-modules: Likewise.
12283         * iconvdata/tst-tables.sh: Likewise.
12284
12285 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
12286
12287         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
12288         type `long long int', not `long int'.
12289         (wcstoq): Likewise.
12290
12291 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
12292
12293         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
12294         of values on 64-bit platforms which are too large.
12295
12296 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
12297             Joe Kerian  <jkerian@us.us.ibm.com>
12298
12299         [BZ #2749]
12300         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
12301         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
12302         (__copysignl): Use signbit() for comparison.
12303         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12304         SET_LDOUBLE_WORDS64.
12305
12306         [BZ #2423, #2749]
12307         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
12308         (__ceill): Remove calls to fegetround(), fesetround().
12309         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12310         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12311         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12312
12313 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
12314
12315         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
12316
12317         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
12318
12319 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
12320
12321         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
12322         demangle pointer.
12323         * csu/libc-start.c: Likewise.
12324
12325 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
12326
12327         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
12328         really work anyway.
12329
12330 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12331
12332         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
12333         users.
12334         (handle_request): Remove unnecessary tests.
12335
12336         * nscd/cache.c (cache_add): Record the failure to add to the cache.
12337
12338 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
12339
12340         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
12341         workbits in semi-raw fraction.
12342
12343         * math/test-misc.c: Add new tests.
12344
12345 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
12346
12347         * math/basic-test.c: Include test-skeleton.c.
12348         (TEST_TRUNC): Define.
12349         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12350         (main): Rename to ...
12351         (do_test): ...this.  Run new tests.
12352         (TEST_FUNCTION): Define.
12353
12354 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
12355             Joe Kerian  <jkerian@us.us.ibm.com>
12356
12357         [BZ #2749]
12358         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12359         handling for high words.
12360         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12361         and overflow for infinity.
12362
12363 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12364
12365         * nscd/connections.c (handle_request): Add a __builtin_expect.
12366
12367         * nscd/connections.c (serv2db): Change type into structure which
12368         also says whether this is a request for data.  Renamed to
12369         servinfo.  All users changed.
12370         (handle_request): Much simpler test whether we should search the cache.
12371
12372         * nscd/connections.c (handle_request): Fix thinko in selinux test
12373         invocation.
12374
12375         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12376         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12377         it before getting dl_load_lock and then relock.
12378         (_dl_lookup_symbol_x): Pass flags to add_dependency.
12379         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12380         case we unlocked the scope.
12381         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12382         _dl_lookup_symbol_x in case we locked the scope.
12383         (_dl_profile_fixup): Likewise.
12384         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12385         set DL_LOOKUP_SCOPE_LOCK.
12386
12387 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
12388
12389         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12390         CFLAGS-getsrvbynpt_r.c.
12391         * nscd/getsrvbynm_r.c: New file.
12392         * nscd/getsrvbypt_r.c: New file.
12393         * nscd/nscd_getserv_r.c: New file.
12394         * nscd/servicescache.c: New file.
12395         * nscd/Makefile (routines): Add nscd_getserv_r.
12396         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12397         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12398         CFLAGS-getsrvbypt_r.c.
12399         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12400         table.  Add entries for services database.
12401         * nscd/connections.c (serv2str): Mark as const.  Add entries for
12402         services database.
12403         (dbs): Add .reset_res and servdb initialization.
12404         (serv2db): Add entries for services database.
12405         (verify_persistent_db): Accept dbnr == servdb.
12406         (invalidate_cache): Rewrite database name recognition to use a table.
12407         Call res_init() if .reset_res is set for database.
12408         (handle_request): Add code to handle services database.
12409         * nscd/gai.c: Don't define __getservbyname_r.
12410         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12411         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12412         (serv_response_header): Define.
12413         (struct datahead): Add serv_response_header member.
12414         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12415         using table.
12416         * nscd/nscd.conf: Add entries for services database.
12417         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12418         Declare serv_iov_disabled.
12419         Declare addservbyname, readdservbyname, addservbyport, and
12420         readdservbyport.
12421         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
12422         (find_db): Fix error message.
12423         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12424         __nscd_getservbyname_r, and __nscd_getservbyport_r.
12425         * nscd/selinux.c (perms): Add entries for services database.
12426         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12427         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12428
12429         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
12430         * nscd/hstcache.c: Likewise.
12431         * nscd/pwdcache.c: Likewise.
12432
12433         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12434         computation of keylen.
12435
12436         * include/string.h: Only redefine strndupa if this is really for
12437         libc code.
12438
12439 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
12440
12441         * nscd/nscd_gethst_r.c: Minor cleanups.
12442
12443         * nscd/connections.c (handle_request): Check selinux permissions
12444         for all non-admin commands.
12445
12446         * sysdeps/i386/i486/bits/atomic.h: Define
12447         atomic_compare_and_exchange_val_acq,
12448         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12449         using __sync_* built-ins for gcc >= 4.1.
12450         * sysdeps/x86_64/bits/atomic.h: Likewise.
12451
12452         [BZ #3840]
12453         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12454         and .oS.d files.
12455
12456 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
12457
12458         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
12459         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
12460         (do_test): Check errno and exit(0) if ENOSYS.
12461
12462 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12463
12464         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12465         thousands separators.
12466         * stdlib/Makefile: Add rules to build and run tst-strtod4.
12467         * stdlib/tst-strtod4.c: New test.
12468
12469         [BZ #3855]
12470         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12471         hexadecimal digit should accept just the initial 0.
12472         * stdlib/tst-strtod2.c (tests): New variable.
12473         (do_test): Run several tests rather than just one.
12474
12475 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12476
12477         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12478         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12479
12480 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
12481
12482         * io/fts.c: Make sure fts_cur is always valid after return from
12483         fts_read.
12484         Patch by Miloslav Trmac <mitr@redhat.com>.
12485
12486 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
12487
12488         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12489         (R_MIPS_NUM): Bump by 1.
12490
12491 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
12492
12493         * posix/execvp.c: Include alloca.h.
12494         (allocate_scripts_argv): Renamed to...
12495         (scripts_argv): ... this.  Don't allocate buffer here nor count
12496         arguments.
12497         (execvp): Use alloca if possible.
12498         * posix/Makefile: Add rules to build and run tst-vfork3 test.
12499         * posix/tst-vfork3.c: New test.
12500
12501 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
12502
12503         * string/Makefile (tst-strxfrm2-ENV): Define.
12504         * stdlib/Makefile (tst-strtod3-ENV): Define.
12505
12506 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
12507
12508         * posix/getconf.c: Update copyright year.
12509         * nss/getent.c: Likewise.
12510         * iconv/iconvconfig.c: Likewise.
12511         * iconv/iconv_prog.c: Likewise.
12512         * elf/ldconfig.c: Likewise.
12513         * catgets/gencat.c: Likewise.
12514         * csu/version.c: Likewise.
12515         * elf/ldd.bash.in: Likewise.
12516         * elf/sprof.c (print_version): Likewise.
12517         * locale/programs/locale.c: Likewise.
12518         * locale/programs/localedef.c: Likewise.
12519         * nscd/nscd.c (print_version): Likewise.
12520         * debug/xtrace.sh: Likewise.
12521         * malloc/memusage.sh: Likewise.
12522         * malloc/mtrace.pl: Likewise.
12523         * debug/catchsegv.sh: Likewise.
12524
12525 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
12526
12527         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12528         attempts.
12529
12530 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
12531
12532         * posix/wordexp.c: Remove some unnecessary tests.
12533
12534 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
12535
12536         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12537         blacklist the group till after we look it up.
12538
12539 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
12540
12541         * include/atomic.h (atomic_forced_read): New macro.
12542
12543 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12544
12545         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12546
12547 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
12548
12549         * nss/getXXbyYY_r.c: Include atomic.h.
12550         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12551         add atomic_write_barrier () in between.
12552
12553         * stdlib/Makefile (tests): Add tst-makecontext.
12554         * stdlib/tst-makecontext.c: New test.
12555
12556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12557         (__makecontext): Don't realign uc_mcontext.uc_regs.
12558
12559 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
12560
12561         * elf/dl-support.c: Include dl-procinfo.h.
12562         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12563         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12564         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12565         Define.
12566         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12567         hardcoded constants.
12568         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12569         PPC_PLATFORM_* macros for array designators.
12570
12571 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
12572
12573         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12574         names to the beginning.
12575         (_dl_powerpc_platforms): Add "power6x".
12576         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12577         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12578         (_DL_PLATFORMS_COUNT): Increase.
12579         (_dl_string_platform): Handle power6x case.
12580         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12581         PPC_FEATURE_POWER6_EXT): Define.
12582         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12583
12584 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
12585
12586         [BZ #3747]
12587         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12588         [-2^31 .. 2^31) range.
12589         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12590         targets.
12591         * stdlib/tst-rand48-2.c: New test.
12592         * stdlib/Makefile (tests): Add tst-rand48-2.
12593
12594 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12595
12596         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12597
12598 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12599
12600         * misc/tst-pselect.c (do_test): Make sure the helper process is
12601         terminating when the test is aborted.
12602
12603 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12604
12605         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12606         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12607         Handle relatime mount option.
12608
12609         [BZ #2337]
12610         * libio/Makefile (tests): Add tst-setvbuf1.
12611         * libio/tst-setvbuf1.c: New file.
12612
12613 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12614
12615         [BZ #2337]
12616         * libio/genops.c (__uflow): Fix a typo.
12617         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12618         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12619         the narrow buffer size.
12620
12621 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12622
12623         [BZ #2337]
12624         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12625         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12626         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12627         in _flags.
12628         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12629         _IO_wstr_finish): Likewise.
12630         * libio/wmemstream.c (open_wmemstream): Likewise.
12631         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12632         even for wide streams.
12633
12634 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12635
12636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12637         kernel-features.h.
12638
12639 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12640
12641         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12642         separators also if no non-zero digits found.
12643         * stdlib/Makefile (tests): Add tst-strtod3.
12644
12645 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12646
12647         [BZ #3632]
12648         * include/features.h: Fix comment about default value for
12649         _POSIX_C_SOURCE.
12650
12651         [BZ #3664]
12652         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12653         empty parsed strings.
12654         * stdlib/Makefile (tests): Add tst-strtod2.
12655         * stdlib/tst-strtod2.c: New file.
12656
12657         [BZ #3673]
12658         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12659         computation.
12660         * stdlib/Makefile (tests): Add tst-atof2.
12661         * stdlib/tst-atof2.c: New file.
12662
12663         [BZ #3674]
12664         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12665         correctly if removing trailing zero of hex-float.
12666         * stdlib/Makefile (tests): Add tst-atof1.
12667         * stdlib/tst-atof1.c: New file.
12668
12669 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
12670
12671         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12672         Start searching for next comma at p rather than rest.
12673         * misc/Makefile (tests): Add tst-mntent2.
12674         * misc/tst-mntent2.c: New test.
12675
12676         * misc/getusershell.c (initshells): Check for integer overflows.
12677         Make strings buffer one bigger as fgets always succeeds when second
12678         argument is 1.  Don't use calloc for shells array.  Disallow
12679         / as shell.
12680
12681 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
12682
12683         * malloc/memusage.c: Handle realloc with new size of zero and
12684         non-NULL pointer correctly.
12685         (me): Really write first record twice.
12686         (struct entry): Make format bi-arch safe.
12687         (dest): Write out more realloc statistics.
12688         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12689
12690 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
12691
12692         * nis/nis_subr.c (nis_getnames): Revert last change.
12693
12694 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12695
12696         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12697         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12698         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12699         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12700         ENOTTY.
12701         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12702         * io/tst-ttyname_r.c: New test.
12703
12704 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12705
12706         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12707
12708 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12709
12710         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12711         jump table entries.
12712
12713 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12714
12715         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12716         `clone' function to ensure proper unwinding stop of gdb.
12717         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12718
12719 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12720
12721         * nscd/nscd.init: Remove obsolete and commented-out -S option
12722         handling.
12723
12724 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12725
12726         [BZ #3514]
12727         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12728
12729         [BZ #3515]
12730         * manual/string.texi (strtok): Remove duplicate paragraph.
12731
12732 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12733
12734         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12735         libgcc not supporting `rflags' unwinding (register # >= 17).
12736
12737 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12738
12739         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12740         succeeded.
12741
12742 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12743             Jakub Jelinek  <jakub@redhat.com>
12744             Jan Kratochvil  <jan.kratochvil@redhat.com>
12745
12746         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12747         unwind information.
12748         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12749         'restore_rt' even in the 'signal' directory.
12750         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12751
12752 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12753
12754         [BZ #3559]
12755         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12756         malloc crashed.  Don't allocate memory unnecessarily in each
12757         loop.
12758
12759 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12760
12761         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12762
12763 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12764
12765         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12766
12767 2006-11-18  Bruno Haible  <bruno@clisp.org>
12768
12769         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12770         __sysconf only after having tried to call getgroups32.
12771
12772 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12773
12774         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12775         addresses for IPv4 queries if they can be mapped.
12776
12777 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12778
12779         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12780         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12781         (signmask): Add .size directive.
12782         (othermask): Add .type directive.
12783
12784 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12785
12786         * po/nl.po: Update from translation team.
12787
12788         * timezone/zdump.c: Redo fix for BZ #3137.
12789
12790 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12791
12792         * nss/nss_files/files-alias.c (get_next_alias): Set line back
12793         to first_unused after parsing :include: file.
12794
12795 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12796
12797         * timezone/africa: Update from tzdata2006o.
12798         * timezone/antarctica: Likewise.
12799         * timezone/asia: Likewise.
12800         * timezone/australasia: Likewise.
12801         * timezone/backward: Likewise.
12802         * timezone/europe: Likewise.
12803         * timezone/iso3166.tab: Likewise.
12804         * timezone/northamerica: Likewise.
12805         * timezone/southamerica: Likewise.
12806         * timezone/zone.tab: Likewise.
12807
12808         * time/tzfile.c (__tzfile_read): Extend to handle new file format
12809         on machines with 64-bit time_t.
12810
12811         * timezone/checktab.awk: Update from tzcode2006o.
12812         * timezone/ialloc.c: Likewise.
12813         * timezone/private.h: Likewise.
12814         * timezone/scheck.c: Likewise.
12815         * timezone/tzfile.h: Likewise.
12816         * timezone/tzselect.ksh: Likewise.
12817         * timezone/zdump.c: Likewise.
12818         * timezone/zic.c: Likewise.
12819
12820         [BZ #3483]
12821         * elf/ldconfig.c (main): Call setlocale and textdomain.
12822         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12823
12824         [BZ #3480]
12825         * manual/argp.texi: Fix typos.
12826         * manual/charset.texi: Likewise.
12827         * manual/errno.texi: Likewise.
12828         * manual/filesys.texi: Likewise.
12829         * manual/lang.texi: Likewise.
12830         * manual/maint.texi: Likewise.
12831         * manual/memory.texi: Likewise.
12832         * manual/message.texi: Likewise.
12833         * manual/resource.texi: Likewise.
12834         * manual/search.texi: Likewise.
12835         * manual/signal.texi: Likewise.
12836         * manual/startup.texi: Likewise.
12837         * manual/stdio.texi: Likewise.
12838         * manual/sysinfo.texi: Likewise.
12839         * manual/syslog.texi: Likewise.
12840         * manual/time.texi: Likewise.
12841         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12842
12843         [BZ #3465]
12844         * sunrpc/clnt_raw.c: Minimal message improvements.
12845         * sunrpc/pm_getmaps.c: Likewise.
12846         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12847         * nis/nis_print_group_entry.c: Likewise.
12848         * locale/programs/repertoire.c: Likewise.
12849         * locale/programs/charmap.c: Likewise.
12850         * malloc/memusage.sh: Likewise.
12851         * elf/dl-deps.c: Likewise.
12852         * locale/programs/ld-collate.c: Likewise.
12853         * libio/vswprintf.c: Likewise.
12854         * malloc/memusagestat.c: Likewise.
12855         * sunrpc/auth_unix.c: Likewise.
12856         * sunrpc/rpc_main.c: Likewise.
12857         * nscd/cache.c: Likewise.
12858         * locale/programs/repertoire.c: Unify output messages.
12859         * locale/programs/charmap.c: Likewise.
12860         * locale/programs/ld-ctype.c: Likewise.
12861         * locale/programs/ld-monetary.c: Likewise.
12862         * locale/programs/ld-numeric.c: Likewise.
12863         * locale/programs/ld-time.c: Likewise.
12864         * elf/ldconfig.c: Likewise.
12865         * nscd/selinux.c: Likewise.
12866         * elf/cache.c: Likewise.
12867         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12868
12869         [BZ #3451]
12870         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12871         change atomic.
12872         (ceil): Likewise.
12873
12874 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12875
12876         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12877         if N is one bigger than return value.
12878         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12879         and l1 last arguments, if buf is defined, verify the return value
12880         equals to strlen (buf) and verify no byte beyond passed length
12881         is modified.
12882
12883 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12884
12885         * po/sv.po: Update from translation team.
12886
12887 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12888
12889         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12890         noinline attribute.
12891
12892 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12893
12894         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12895         noinline attribute.
12896
12897         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12898         Use __new_sys_siglist instead of _sys_siglist_internal as
12899         second macro argument.
12900         (_old_sys_siglist): Use declare_symbol_alias macro instead of
12901         strong_alias.
12902
12903 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12904
12905         [BZ #3493]
12906         * posix/unistd.h (sysconf): Remove const attribute.
12907
12908         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12909         temporary or deprecated addresses.
12910         Patch by Sridhar Samudrala <sri@us.ibm.com>.
12911
12912         * string/Makefile (tests): Add tst-strxfrm2.
12913         * string/tst-strxfrm2.c: New file.
12914
12915 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
12916
12917         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12918         rather than r->r_brk.
12919
12920 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
12921
12922         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12923         optimization even if needed > n.
12924
12925         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12926         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12927         return false, otherwise return true.
12928         (cache_rpath): Return decompose_rpath return value.
12929
12930 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
12931
12932         * include/libc-symbols.h (declare_symbol): Rename to...
12933         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
12934         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12935         .size directive.
12936         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12937         changes.
12938         * sysdeps/gnu/siglist.c: Likewise.
12939
12940 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
12941
12942         * sysdeps/powerpc/fpu/bits/mathinline.h
12943         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12944         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
12945
12946 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
12947
12948         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12949         Update handling of cache descriptor 0x49 for new models.
12950         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12951         Likewise.
12952
12953 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
12954
12955         * malloc/memusage.c (dest): Reset not_me back to false after
12956         printing statistics.
12957
12958 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
12959
12960         * configure.in: Work around ld --help change and avoid -z relro
12961         test completely if the architecture doesn't care about security.
12962
12963 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
12964
12965         * po/sv.po: Update from translation team.
12966
12967 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
12968
12969         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
12970         generate compatibility version.
12971
12972 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
12973
12974         * configure.in: Relax -z relro requirement a bit.
12975
12976         * po/sv.po: Update from translation team.
12977
12978 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
12979
12980         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
12981         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
12982         * elf/dl-close.c (_dl_close_worker): Likewise.
12983         * elf/dl-open.c (_dl_open_worker): Likewise.
12984         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
12985
12986 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
12987
12988         * configure.in: Require assembler support for visibility, compiler
12989         support for visibility and aliases, linker support for various -z
12990         options.
12991         * Makeconfig: Remove conditional code which now is unnecessary.
12992         * config.h.in: Likewise.
12993         * config.make.in: Likewise.
12994         * dlfcn/Makefile: Likewise.
12995         * elf/Makefile: Likewise.
12996         * elf/dl-load.c: Likewise.
12997         * elf/rtld.c: Likewise.
12998         * include/libc-symbols.h: Likewise.
12999         * include/stdio.h: Likewise.
13000         * io/Makefile: Likewise.
13001         * io/fstat.c: Likewise.
13002         * io/fstat64.c: Likewise.
13003         * io/fstatat.c: Likewise.
13004         * io/fstatat64.c: Likewise.
13005         * io/lstat.c: Likewise.
13006         * io/lstat64.c: Likewise.
13007         * io/mknod.c: Likewise.
13008         * io/mknodat.c: Likewise.
13009         * io/stat.c: Likewise.
13010         * io/stat64.c: Likewise.
13011         * libio/stdio.c: Likewise.
13012         * nscd/Makefile: Likewise.
13013         * stdlib/Makefile: Likewise.
13014         * stdlib/atexit.c: Likewise.
13015         * sysdeps/generic/ldsodefs.h: Likewise.
13016         * sysdeps/i386/dl-machine.h: Likewise.
13017         * sysdeps/i386/sysdep.h: Likewise.
13018         * sysdeps/i386/i686/memcmp.S: Likewise.
13019         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13020         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13021         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13022
13023         * Makerules: USE_TLS support is now default.
13024         * tls.make.c: Likewise.
13025         * csu/Versions: Likewise.
13026         * csu/libc-start.c: Likewise.
13027         * csu/libc-tls.c: Likewise.
13028         * csu/version.c: Likewise.
13029         * dlfcn/dlinfo.c: Likewise.
13030         * elf/dl-addr.c: Likewise.
13031         * elf/dl-cache.c: Likewise.
13032         * elf/dl-close.c: Likewise.
13033         * elf/dl-iteratephdr.c: Likewise.
13034         * elf/dl-load.c: Likewise.
13035         * elf/dl-lookup.c: Likewise.
13036         * elf/dl-object.c: Likewise.
13037         * elf/dl-open.c: Likewise.
13038         * elf/dl-reloc.c: Likewise.
13039         * elf/dl-support.c: Likewise.
13040         * elf/dl-sym.c: Likewise.
13041         * elf/dl-sysdep.c: Likewise.
13042         * elf/dl-tls.c: Likewise.
13043         * elf/ldconfig.c: Likewise.
13044         * elf/rtld.c: Likewise.
13045         * elf/tst-tls-dlinfo.c: Likewise.
13046         * elf/tst-tls1.c: Likewise.
13047         * elf/tst-tls10.h: Likewise.
13048         * elf/tst-tls14.c: Likewise.
13049         * elf/tst-tls2.c: Likewise.
13050         * elf/tst-tls3.c: Likewise.
13051         * elf/tst-tls4.c: Likewise.
13052         * elf/tst-tls5.c: Likewise.
13053         * elf/tst-tls6.c: Likewise.
13054         * elf/tst-tls7.c: Likewise.
13055         * elf/tst-tls8.c: Likewise.
13056         * elf/tst-tls9.c: Likewise.
13057         * elf/tst-tlsmod1.c: Likewise.
13058         * elf/tst-tlsmod13.c: Likewise.
13059         * elf/tst-tlsmod13a.c: Likewise.
13060         * elf/tst-tlsmod14a.c: Likewise.
13061         * elf/tst-tlsmod2.c: Likewise.
13062         * elf/tst-tlsmod3.c: Likewise.
13063         * elf/tst-tlsmod4.c: Likewise.
13064         * elf/tst-tlsmod5.c: Likewise.
13065         * elf/tst-tlsmod6.c: Likewise.
13066         * include/errno.h: Likewise.
13067         * include/link.h: Likewise.
13068         * include/tls.h: Likewise.
13069         * locale/global-locale.c: Likewise.
13070         * locale/localeinfo.h: Likewise.
13071         * malloc/arena.c: Likewise.
13072         * malloc/hooks.c: Likewise.
13073         * malloc/malloc.c: Likewise.
13074         * resolv/Versions: Likewise.
13075         * sysdeps/alpha/dl-machine.h: Likewise.
13076         * sysdeps/alpha/libc-tls.c: Likewise.
13077         * sysdeps/generic/ldsodefs.h: Likewise.
13078         * sysdeps/generic/tls.h: Likewise.
13079         * sysdeps/i386/dl-machine.h: Likewise.
13080         * sysdeps/ia64/dl-machine.h: Likewise.
13081         * sysdeps/ia64/libc-tls.c: Likewise.
13082         * sysdeps/mach/hurd/fork.c: Likewise.
13083         * sysdeps/mach/hurd/i386/tls.h: Likewise.
13084         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
13085         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13086         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13087         * sysdeps/s390/libc-tls.c: Likewise.
13088         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13089         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13090         * sysdeps/sh/dl-machine.h: Likewise.
13091         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13092         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13093         * sysdeps/x86_64/dl-machine.h: Likewise.
13094
13095         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
13096         split out locking and parameter checking.
13097         (_dl_close): Call _dl_close_worker after locking and checking.
13098         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
13099         _dl_close.
13100         * elf/Makefile: Add rules to build and run tst-thrlock.
13101         * elf/tst-thrlock.c:  New file.
13102
13103         [BZ #3426]
13104         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
13105         reality.
13106
13107         [BZ #3429]
13108         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
13109         we are sure we do not need it anymore for _dl_close.  Also move
13110         the asserts inside the lock region.
13111         Patch mostly by Suzuki <suzuki@in.ibm.com>.
13112
13113 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
13114
13115         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
13116         argument.
13117         (_dl_lookup_symbol_x): Adjust caller.
13118
13119         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
13120         _ns_global_scope.
13121         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
13122
13123         * elf/dl-libc.c: Revert l_scope name changes.
13124         * elf/dl-load.c: Likewise.
13125         * elf/dl-object.c: Likewise.
13126         * elf/rtld.c: Likewise.
13127         * elf/dl-close.c (_dl_close): Likewise.
13128         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
13129         always use __rtld_mrlock_{change,done}.  Always free old scope list
13130         here if not l_scope_mem.
13131         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
13132         change.  Never free scope list here.  Just __rtld_mrlock_lock before
13133         the lookup and __rtld_mrlock_unlock it after the lookup.
13134         * elf/dl-sym.c: Likewise.
13135         * include/link.h (struct r_scoperec): Remove.
13136         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
13137         with l_scope_mem and l_scoperec_lock with l_scope_lock.
13138
13139 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
13140
13141         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
13142
13143 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13144
13145         * configure.in: Disable building profile libraries by default.
13146
13147 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13148
13149         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
13150         as signed longs, check for x_base + pos overflow.
13151         * sunrpc/Makefile (tests): Add tst-xdrmem2.
13152         * sunrpc/tst-xdrmem2.c: New test.
13153
13154 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13155
13156         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
13157         _dl_lookup_symbol_x code.
13158
13159 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13160
13161         * elf/dl-runtime.c: Include sysdep-cancel.h.
13162         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
13163         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
13164         instead of catomic_* macros.
13165         * elf/dl-sym.c: Include sysdep-cancel.h.
13166         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
13167         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13168         * elf/dl-close.c: Include sysdep-cancel.h.
13169         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
13170         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13171         * elf/dl-open.c: Include sysdep-cancel.h.
13172         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
13173         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13174
13175 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13176
13177         [BZ #3313]
13178         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
13179         fastbin rather than end of fastbin array.
13180
13181 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13182
13183         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
13184         body macro.
13185         * sysdeps/x86_64/bits/atomic.h
13186         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
13187         (catomic_decrement): Use correct body macro.
13188
13189 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13190
13191         * include/atomic.h: Add a unique prefix to all local variables
13192         in macros.
13193         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
13194
13195 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
13196
13197         [BZ #3369]
13198         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
13199         and 7.
13200
13201 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
13202
13203         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
13204
13205 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
13206
13207         [BZ #3313]
13208         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
13209         determine highest fast bin to consolidate, always look into all of
13210         them.
13211         (do_check_malloc_state): Only require for empty bins for large
13212         sizes in main arena.
13213
13214         * libio/stdio.h: Add more __wur attributes.
13215
13216         * elf/dl-minimal.c (realloc): Optimize last patch.
13217
13218 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
13219
13220         [BZ #3352]
13221         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
13222         and use memcpy() if it does.
13223
13224 2006-11-12  Andreas Jaeger  <aj@suse.de>
13225
13226         [BZ #2510]
13227         * manual/search.texi (Hash Search Function): Clarify.
13228         (Array Search Function): Clarify.
13229
13230 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
13231
13232         [BZ #2830]
13233         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
13234         shifting.
13235         * math/atest-exp2.c (read_mpn_hex): Likewise.
13236         * math/atest-sincos.c (main): Likewise.
13237
13238 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13239
13240         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
13241         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
13242         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
13243         version GLIBC_2.6.
13244         * Versions.def: Add GLIBC_2.6 for libc.
13245
13246         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
13247
13248         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
13249
13250 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
13251
13252         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
13253
13254         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
13255
13256         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
13257         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
13258
13259 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13260
13261         * include/atomic.c: Define catomic_* operations.
13262         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
13263         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
13264         * malloc/memusage.c: Likewise.
13265         * gmon/mcount.c: Likewise.
13266         * elf/dl-close.c: Likewise.
13267         * elf/dl-open.c: Likewise.
13268         * elf/dl-profile.c: Likewise.
13269         * elf/dl-sym.c: Likewise.
13270         * elf/dl-runtime.c: Likewise.
13271         * elf/dl-fptr.c: Likewise.
13272         * resolv/res_libc.c: Likewise.
13273
13274 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
13275
13276         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
13277         components which lack them.
13278
13279         * nis/nis_subr.c (nis_getnames): Make sure that we always return
13280         at least one entry consisting of the parameter concatenated with
13281         the domain.
13282
13283 2006-10-10  Roland McGrath  <roland@frob.com>
13284
13285         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
13286         * sysdeps/mach/hurd/futimes.c: Likewise.
13287         * sysdeps/mach/hurd/lutimes.c: Likewise.
13288
13289 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
13290             Jakub Jelinek  <jakub@redhat.com>
13291
13292         Implement reference counting of scope records.
13293         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
13294         from the list in objects which remain.  Always allocate new scope
13295         record.
13296         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
13297         don't resize, allocate a new one.
13298         * elf/dl-runtime.c: Update reference counters before using a scope
13299         array.
13300         * elf/dl-sym.c: Likewise.
13301         * elf/dl-libc.c: Adjust for l_scope name change.
13302         * elf/dl-load.c: Likewise.
13303         * elf/dl-object.c: Likewise.
13304         * elf/rtld.c: Likewise.
13305         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
13306         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
13307         Add l_scoperec_lock.
13308         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
13309         * sysdeps/generic/rtld-lowlevel.h: New file.
13310
13311         * include/atomic.h: Rename atomic_and to atomic_and_val and
13312         atomic_or to atomic_or_val.  Define new macros atomic_and and
13313         atomic_or which do not return values.
13314         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
13315         Various cleanups.
13316         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13317
13318         * po/sv.po: Update from translation team.
13319
13320 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
13321
13322         * Versions.def: Add GLIBC_2.6 to libpthread.
13323
13324         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
13325         (versioned_symbol): Likewise.
13326         (compat_symbol): Likewise.
13327
13328         * po/tr.po: Update from translation team.
13329
13330 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13331
13332         * nis/Banner: Removed.  It's been integral part forever and the
13333         author info is incomplete anyway.
13334         * libio/Banner: Likewise.
13335
13336         * nis/nis_table.c (nis_list): If __follow_path fails in the new
13337         code, make sure the nis_freeresult call doesn't crash and that the
13338         result is reported correctly.
13339
13340 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
13341
13342         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
13343         when callback is NULL.
13344
13345         * nis/Versions (libnss_nisplus): Add
13346         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
13347         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13348         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13349         _nss_create_tablename): Rename to...
13350         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13351         ... these.  No longer static.
13352         (internal_setgrent): Adjust users.
13353         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13354         Don't use locking around _nss_grp_create_tablename call.
13355         * nis/nss_nisplus/nisplus-initgroups.c: New file.
13356
13357 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13358
13359         * version.h (VERSION): Bump to 2.5.90 for new development tree.
13360
13361 2006-10-06  Andreas Jaeger  <aj@suse.de>
13362
13363         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13364
13365 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13366
13367         * po/pl.po: Update from translation team.
13368
13369         * nscd/nscd.c (main): Fix typo in message.
13370         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13371
13372 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13373
13374         [BZ #3291]
13375         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13376         errno.h, signal.h, unistd.h and sysdep-cancel.h.
13377         (__sigprocmask): Define.
13378
13379 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
13380
13381         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13382         used.
13383
13384 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13385
13386         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13387         in oldtotal and newtotal calculation.
13388         * nscd/nscd-client.h (struct mapped_database): Add datasize
13389         field.
13390         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13391         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13392         increased.
13393         (__nscd_cache_search): Add checks to make sure we never reference
13394         data beyond the current mapping.
13395
13396 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
13397
13398         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13399         variables const to avoid compiler warnings.
13400
13401         * io/fts.c (fts_close): Remove redundant checks.
13402         (fts_build): Likewise.
13403         (fts_palloc): Likewise.
13404
13405         * manual/message.texi (Advanced gettext functions,
13406         Using gettextized software): Fix typos.
13407
13408 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
13409
13410         * posix/glob.c (glob_in_dir): Add some comments and asserts to
13411         explain why there are no leaks.
13412
13413 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
13414
13415         * libio/wmemstream.c: Include <wchar.h>.
13416         * libio/bug-wmemstream1.c: Likewise.
13417         * libio/tst-wmemstream1.c: Likewise.
13418         * libio/tst-wmemstream2.c: Likewise.
13419
13420         * version.h (RELEASE): Bump to 2.5.
13421         * README: Regenerated.
13422
13423         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13424
13425         [BZ #3273]
13426         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13427         found no group members.
13428         Patch by Petr Baudis.
13429
13430 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
13431
13432         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13433         assert bootstrap_map.l_tls_modid is zero.
13434         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13435         if USE___THREAD.
13436
13437 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
13438
13439         * libio/stdio.h: Move open_wmemstream prototype to ...
13440         * wcsmbs/wchar.h: ... here.
13441
13442 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
13443
13444         [BZ #3252]
13445         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13446         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13447         __{,l}chown to handle the rest.
13448         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13449         fchownat syscall and __ASSUME_32BITUIDS case inline, call
13450         __{,l}chown to handle the rest.
13451         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13452         i386/fchownat.c.
13453         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13454         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13455
13456         [BZ #3253]
13457         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13458         time, rather allocate increasingly bigger arrays of pointers, if
13459         possible with alloca, if too large with malloc.
13460
13461 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
13462
13463         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13464
13465         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13466
13467 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
13468
13469         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13470         home addresses.
13471         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13472         IFA_F_HOMEADDRESS flag for interfaces.
13473         * include/ifaddrs.h (struct in6addrinfo): Define
13474         in6ai_homeaddress.
13475
13476 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
13477
13478         [BZ #3225]
13479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13480         PTR_DEMANGLE3): Define.
13481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13482         PTR_DEMANGLE3): Likewise.
13483         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13484         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13485         Likewise.
13486         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13487
13488 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
13489
13490         * po/libc.pot: Regenerated.
13491         * po/be.po: Updated.
13492         * po/ca.po: Likewise.
13493         * po/cs.po: Likewise.
13494         * po/da.po: Likewise.
13495         * po/de.po: Likewise.
13496         * po/el.po: Likewise.
13497         * po/en_GB.po: Likewise.
13498         * po/es.po: Likewise.
13499         * po/fi.po: Likewise.
13500         * po/fr.po: Likewise.
13501         * po/gl.po: Likewise.
13502         * po/hr.po: Likewise.
13503         * po/hu.po: Likewise.
13504         * po/ja.po: Likewise.
13505         * po/ko.po: Likewise.
13506         * po/nb.po: Likewise.
13507         * po/nl.po: Likewise.
13508         * po/pl.po: Likewise.
13509         * po/pt_BR.po: Likewise.
13510         * po/ru.po: Likewise.
13511         * po/rw.po: Likewise.
13512         * po/sk.po: Likewise.
13513         * po/sv.po: Likewise.
13514         * po/tr.po: Likewise.
13515         * po/zh_CN.po: Likewise.
13516         * po/zh_TW.po: Likewise.
13517
13518         [BZ #3137]
13519         * iconv/iconv_prog.c (main): Fix spelling in error message.
13520         * iconv/iconvconfig.c (main): Likewise.
13521         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13522         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13523         * locale/programs/localedef.c (main): Likewise.
13524         * locale/programs/repertoire.c (repertoire_read): Likewise.
13525         * timezone/zdump.c (main): Likewise.
13526         * nscd/connections.c (handle_request): Fix spelling in log message.
13527         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13528
13529 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
13530
13531         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13532         interfaces.
13533
13534 2006-09-20  Andreas Jaeger  <aj@suse.de>
13535
13536         * math/libm-test.inc (lrint_test_upward): Fix typo.
13537
13538 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
13539
13540         [BZ #2592]
13541         * math/libm-test.inc (lrint_test_tonearest): New function.
13542         (lrint_test_towardzero): New function.
13543         (lrint_test_downward): New function.
13544         (lrint_test_upward): New function.
13545         (main): Run these new tests.
13546         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13547         of values near to 0.
13548         (two52): Use double not long double.
13549         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13550         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13551         (two23): Use float not double.
13552         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13553         (two23): Use float not double.
13554         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13555         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13556         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13557         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13558
13559 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13560
13561         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13562         Cast sp to unsigned long to avoid compiler warning.
13563         Use __makecontext_ret function instead of a trampoline on the stack.
13564         (__makecontext_ret): New function.
13565         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13566
13567 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
13568
13569         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13570         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13571         bits.
13572
13573 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
13574
13575         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13576         sure no reference to the unloaded map's search list remains in the
13577         dependency's scope.
13578
13579 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13580
13581         * elf/Makefile: Add rules to build and run unload7 test.
13582         * elf/unload7.c: New test.
13583         * elf/unload7mod1.c: New file.
13584         * elf/unload7mod2.c: New file.
13585
13586 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13587
13588         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13589         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13590         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13591         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13592         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13593         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13594         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13595         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13596         PTRACE_GETEVENTMSG): Likewise.
13597         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13598         values.
13599
13600 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13601
13602         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13603         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13604         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13605         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13606
13607 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13608
13609         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13610         write '\0' to the fd.
13611         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13612         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13613         Change regs to unsigned long pointer from unsigned int, fix fscr
13614         offset.
13615
13616 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13617
13618         * io/Makefile (CFLAGS-fstatat.c): Set.
13619         (CFLAGS-fstatat64.c): Likewise.
13620         (CFLAGS-mknodat.c): Likewise.
13621
13622         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13623         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13624         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13625         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13626
13627 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13628             Steven Munroe  <sjmunroe@us.ibm.com>
13629
13630         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13631         names to the beginning.  Rename "cell" to "cellbe".
13632         (_dl_powerpc_platforms): New.
13633         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13634         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13635         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13636         (_DL_HWCAP_PLATFORM): Define to new mask.
13637         (_dl_platform_string, _dl_string_platform): New functions.
13638         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13639         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13640
13641 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13642
13643         [BZ #2526]
13644         * README.libm: Fix a thinko in sqrt algorithm description.
13645
13646         [BZ #3143]
13647         * manual/string.texi (argz_delete): Fix prototype.
13648         Patch by <alpt@freaknet.org>.
13649
13650 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13651
13652         [BZ #3138]
13653         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13654         * io/tst-fcntl.c (do_prepare): Likewise.
13655         * posix/tst-exec.c (do_prepare): Likewise.
13656         * posix/tst-preadwrite.c (do_prepare): Likewise.
13657         * posix/tst-spawn.c (do_prepare): Likewise.
13658         * posix/tst-truncate.c (do_prepare): Likewise.
13659         * rt/tst-aio.c (do_prepare): Likewise.
13660         * rt/tst-aio64.c (do_prepare): Likewise.
13661         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13662         size_t.
13663
13664 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13665
13666         [BZ #2821]
13667         * time/mktime.c (guess_time_tm): Fix overflow detection.
13668         * time/Makefile (tests): Add bug-mktime1.
13669         * time/bug-mktime1.c: New file.
13670
13671         [BZ #3189, #3188]
13672         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13673         (mremap): Likewise.
13674
13675 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
13676
13677         [BZ #1006]
13678         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13679         Ensure relocation doesn't clobber any bits outside of the
13680         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13681         R_SPARC_HI22 and R_SPARC_H44.
13682
13683         [BZ #2775]
13684         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13685         (long) (MINSIZE + nb - old_size) is positive.
13686
13687         * malloc/arena.c (grow_heap): When growing bail even if new_size
13688         is negative.
13689
13690         [BZ #3155]
13691         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13692         stack below r1.
13693
13694 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13695
13696         * posix/regex_internal.c (re_string_reconstruct): Handle
13697         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13698         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13699         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13700         re_string_context_at.
13701         * posix/Makefile: Add rules to build and run bug-regex26 test.
13702         * posix/bug-regex26.c: New test.
13703
13704         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13705         rather than col_sym_free.  Move seqp declaration earlier.
13706
13707         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13708
13709 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13710
13711         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13712         decl before first goto out.
13713
13714 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13715
13716         * Makerules (shlib.lds): If have-hash-style, put .hash section
13717         at the end of the RO segment.
13718
13719 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13720
13721         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13722         style hash table format is used.
13723
13724 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13725
13726         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13727         randomization rather than before.
13728         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13729
13730 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
13731
13732         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13733
13734         * malloc/malloc.c (_int_malloc): Use full list insert and not
13735         shortcut which assumes the list is empty for large requests
13736         too.
13737
13738         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13739
13740 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13741
13742         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13743         and offout arguments to the prototype.
13744         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13745         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13746         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13747         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13748         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13749         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13750         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13751         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13752
13753 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13754
13755         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13756
13757         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13758         dlopen parameters.
13759
13760 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13761
13762         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13763         only if herrno is NETDB_INTERNAL.  Handle errors other than
13764         ERANGE outside of the loops, handle TRY_AGAIN.
13765
13766         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13767         if other's ctype category was missing.
13768         * locale/programs/ld-collate.c (collate_read): Return if
13769         copy_locale's collate category is missing.
13770
13771 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13772
13773         [BZ #2684]
13774         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13775         arenas if allocation failed.
13776         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13777
13778 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13779
13780         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13781         waste bins[0..1].
13782         (malloc_state): Reduce bins size by 2.
13783         (_int_malloc): Fix test for large enough buffer for early termination.
13784         When no unsorted block matches perfectly and an exiting block has
13785         to be split, use full list insert and not shortcut which assumes
13786         the list is empty.
13787
13788         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13789         failure.
13790
13791 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13792
13793         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13794         do anything.
13795
13796         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13797         symbol require exact match (these are PLTs).
13798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13799         (_dl_ppc64_addr_sym_match): Likewise.
13800
13801         [BZ #2683]
13802         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13803         If symbol has a value use it.
13804         * elf/tst-dladdr1.c: New file.
13805         * elf/Makefile: Add rules to build and run tst-addr1.
13806
13807 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
13808
13809         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13810         keeps failing and heap growth or new heap creation isn't
13811         successful either.
13812         * malloc/tst-malloc.c (main): Add new tests.
13813
13814 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13815
13816         [BZ #2734]
13817         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13818         as in the x86-64 code to use bswap.
13819
13820 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
13821
13822         [BZ #2680]
13823         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13824         __USE_UNIX98.
13825         * posix/bits/unistd.h: Likewise.
13826
13827 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
13828
13829         [BZ #2751]
13830         * string/strchr.c: Add cast to avoid warning.
13831
13832 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13833
13834         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13835         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
13836         limit is needed to avoid the exploding of the address space
13837         requirement for secondary heaps.
13838         * malloc/arena.c (HEAP_MAX_SIZE): Define using
13839         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13840
13841 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
13842
13843         [BZ #3018]
13844         * Makerules (depfiles): Handle extra-test-objs the same as
13845         extra-objs.
13846         (common-mostlyclean): Likewise.
13847         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13848         instead.
13849         * elf/Makefile (extra-objs): Likewise.
13850         * stdlib/Makefile (extra-objs): Likewise.
13851
13852 2006-08-14  Eric Blake  <ebb9@byu.net>
13853
13854         [BZ #3044]
13855         * misc/error.h: Assume C89 or better.
13856         * misc/error.c: Likewise.
13857
13858 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13859
13860         [BZ #3040]
13861         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13862         __ASSUME_ATFCTS is defined.
13863
13864 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
13865
13866         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13867         to sort in each call.
13868
13869         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13870         is empty simply return and use next service.
13871         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13872
13873         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
13874         tells us when not finding a charmap file is an error.
13875         * locale/programs/charmap.h: Adjust charmap_read prototype.
13876         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13877         cannot find a charmap.
13878         * locale/programs/localedef.c (main): Adjust charmap_read call.
13879
13880 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
13881
13882         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13883         sysdeps/posix/pause.c implementation instead.
13884
13885 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
13886
13887         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13888         to EPERM.
13889
13890 2006-08-13  Andreas Schwab  <schwab@suse.de>
13891
13892         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13893         Don't clobber caller's LRSAVE.
13894         (_dl_prof_resolve): Likewise.
13895
13896 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
13897
13898         [BZ #1996]
13899         * libio/memstream.c (open_memstream): Allocate initial buffer with
13900         calloc.
13901         * libio/wmemstream.c (open_wmemstream): Likewise.
13902         * libio/strops.c: Pretty printing.
13903         (_IO_str_overflow): Clear uninitialized part of the new buffer.
13904         (enlarge_userbuf): New function.
13905         (_IO_str_seekoff): Call it if seek position is larger than current
13906         buffer.
13907         * libio/wstrops.c: Likewise.
13908         * libio/vasprintf.c: Add comment as to why we do not have to use
13909         calloc instead of malloc to allocate initial buffer.
13910         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13911         * libio/bug-memstream1.c: New file.
13912         * libio/bug-wmemstream1.c: New file.
13913
13914 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13915
13916         * libio/wstrops.c: Remove dead macro definitions and comments.
13917         * libio/strops.c: Likewise.
13918
13919         [BZ #2764]
13920         * login/utmpname.c (__utmpname): Remove unnecessary test.
13921
13922 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
13923
13924         [BZ #2832]
13925         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13926         0s from integers.
13927
13928 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13929
13930         [BZ #2987]
13931         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13932         for CPU clocks.
13933         * sysdeps/unix/clock_settime.c: Add support for platform-specific
13934         setting of CPU clocks.
13935
13936 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13937
13938         [BZ #2841]
13939         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13940         since C99 requires the result to promote to 'int' when uint_least8_t
13941         and uint_least16_t promote to 'int'.
13942
13943 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13944
13945         [BZ #3013]
13946         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13947         lenght of one output field, correct bitmask creation.
13948         * locale/programs/ld-time.c: Add alignment.
13949
13950         [BZ #2997]
13951         * misc/error.c: Add space between program name and message if file
13952         name is missing.
13953
13954 2006-08-03  Eric Blake  <ebb9@byu.net>
13955
13956         [BZ #2998]
13957         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
13958
13959 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
13960
13961         * malloc/memusagestat.c: Silence warnings.
13962
13963         * malloc/malloc.c: Dynamically size mmap treshold if the program
13964         frees mmaped blocks.
13965         Patch by Valerie Henson and Arjan van de Ven.
13966
13967 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
13968
13969         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
13970         __USE_GNU.
13971
13972         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
13973         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
13974         (DEF): Don't put the var into .gnu.linkonce.r.* section.
13975         Only provide var definitions in strtol_l (or for *ull*
13976         in strtoll_l).
13977
13978         * stdio-common/bug16.c (tests): New array.
13979         (do_tests): Allow the first hexadecimal digit
13980         to be 1, 2, 4 or 8.  Do 3 additional tests.
13981
13982         * sysdeps/s390/fpu/libm-test-ulps: Update.
13983
13984         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
13985         fchownat syscall if available.
13986         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
13987         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
13988         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
13989
13990 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
13991
13992         * nis/nis_xdr.c: Avoid some function calls.
13993
13994 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
13995             Ulrich Drepper  <drepper@redhat.com>
13996
13997         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
13998         short cut if only one name component is stripped away.
13999
14000 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
14001
14002         * nis/nis_call.c: Minor cleanups throughout.
14003         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
14004         (first_shoot): Add search_parent_first parameter.  Only if it is set
14005         search parent server first.
14006         If directory for table found through cold start cache is not the same
14007         as referenced in the cache, don't use it.
14008         (__nisfind_server): Take additional parameter.  Pass it on to
14009         first_shoot.
14010         (__prepare_niscall): Adjust __nisfind_server call.
14011         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
14012         * nis/nis_table.c: Adjust __nisfind_server call.
14013         * nis/nis_lookup.c: Likewise.
14014         (nis_lookup): Don't loop endlessly if name is reduced to ".".
14015
14016 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
14017
14018         [BZ #2182]
14019         * math/s_cacosh.c: Return values from positive branch.
14020         * math/s_cacoshf.c: Likewise.
14021         * math/s_cacoshl.c: Likewise.
14022
14023         [BZ #2883]
14024         * sysvipc/sys/msg.h: Change return value to ssize_t.
14025         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
14026         * sysvipc/msgrcv.c: Likewise.
14027         * include/sys/msg.h: Likewise.
14028
14029         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
14030         test introduced in patch for bz #661.
14031         (getgrouplist): Simplify code a bit.  Don't allocate one additional
14032         element for NEWGROUPS.
14033
14034         [BZ #2908]
14035         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
14036         'f', use '1' as leading digit not '\1'.
14037         * stdio-common/Makefile (tests): Add bug16.
14038         * stdio-common/bug16.c: New file.
14039
14040         [BZ #2914]
14041         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
14042         and don't try to open it.  The patch introducing the macro
14043         contained a bug and used the same file name as the new file
14044         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
14045         this out completely.
14046
14047         [BZ #2926]
14048         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
14049         Patch by Jerry James <Jerry.James@usu.edu>.
14050
14051         * rt/Makefile (tests): Add tst-clock2.
14052         * rt/tst-clock2.c: New file.
14053
14054         [BZ #2978]
14055         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
14056         function and its parameters and pass it to new thread.
14057         (__gai_notify): Add support for alternative waiting for completion.
14058         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
14059         waiting for completion.
14060         * resolv/getaddrinfo_a.c: Likewise.
14061         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
14062         waiting for completion is used.
14063         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
14064         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
14065         * resolv/gai_error.c: Likewise.
14066         * resolv/gai_sigqueue.c: Likewise.
14067
14068 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
14069
14070         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
14071         errno to EBADF and return MACH_PORT_NULL.
14072
14073 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
14074
14075         [BZ #2980]
14076         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
14077
14078 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
14079
14080         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
14081         walk them instead of the symbol table.
14082
14083 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
14084
14085         [BZ #2098]
14086         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
14087         status of NSS calls, not the number of returned entries.
14088
14089         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
14090         request_key, keyctl.
14091
14092 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14093
14094         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
14095
14096 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
14097
14098         * elf/tst-auditmod1.c: Fix typo in #error.
14099
14100 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14101
14102         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
14103
14104         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
14105
14106 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
14107
14108         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
14109         that the directory is empty even on non-POSIX filesystems.
14110
14111 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14112
14113         * elf/dl-open.c (dl_open_worker): Add branch prediction.
14114
14115         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
14116         the backend NSS module.  If backend setgrent call failed, don't have
14117         internal_setgrent fail.  Just remember this until it is needed.
14118         * nis/nss_compat/compat-pwd.c: Likewise.
14119         * nis/nss_compat/compat-spwd.c: Likewise.
14120
14121 2006-07-30  Roland McGrath  <roland@redhat.com>
14122
14123         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
14124         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
14125         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
14126         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
14127
14128         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
14129         (nanosleep_not_cancel): New macro.
14130         (sigsuspend_not_cancel): new macro.
14131         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
14132         (do_sigsuspend): Define as inline.
14133         (__sigsuspend): Always use do_sigsuspend.
14134         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
14135         * include/signal.h: Declare __sigsuspend_nocancel.
14136         * sysdeps/posix/pause.c
14137         [! NO_CANCELLATION] (__pause_nocancel): New function.
14138
14139         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
14140         * include/time.h (__nanosleep_nocancel): Likewise.
14141
14142 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
14143
14144         * locale/programs/localedef.c (add_to_readlist): Rename local
14145         variables to avoid confusion.
14146
14147         * locale/programs/charmap.c (charmap_read): Emit error message if
14148         charmap couldn't be found or read.
14149
14150 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
14151
14152         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14153         __ASSUME_FUTEX_LOCK_PI.
14154         * include/time.h: Declare __nanosleep_nocancel.
14155         * include/unistd.h: Declare __pause_nocancel.
14156
14157         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
14158         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
14159         get the __stack_chk_fail_local definition when it's needed.
14160
14161 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
14162
14163         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
14164         * dlfcn/bug-atexit3.c: New file.
14165         * dlfcn/bug-atexit3-lib.cc: New file.
14166
14167         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
14168         used when the namespace is not the base namespace.
14169
14170 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
14171
14172         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
14173         (__new_exitfn): Bump it in every successful call.
14174         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
14175         more exit handlers, call them right away.
14176         * stdlib/exit.h: Declare __new_exitfn_called.
14177
14178 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
14179
14180         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
14181         calling registered handler.
14182
14183         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
14184         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14185         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14186         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14187         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14188         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14189         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14190         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14191
14192 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
14193
14194         * elf/dl-lookup.c (dl_new_hash): New functions.
14195         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
14196         value here.  Compute new-style hash value.  Pass new hash value
14197         and reference to variable with the old value to do_lookup_x.
14198         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
14199         old-style hash table.
14200         (_dl_debug_bindings): Pass new hash value and reference to variable
14201         with the old value to do_lookup_x.
14202         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
14203         new-style hash value and change old-style hash value parameter to
14204         be a reference.  Reoganize functions to determine whether
14205         new-style hash table is available.  Only fall back on old-style
14206         table.  If old-style hash value is needed, compute it here.
14207         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
14208         entry.
14209         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
14210         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
14211         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
14212         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
14213         * Makeconfig: If linker supports --hash-style option add it to all
14214         linker command lines to build DSOs.
14215         * config.make.in: Define have-hash-style.
14216         * configure.in: Test whether linker supports --hash-style option.
14217
14218         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
14219         * sysdeps/generic/ldsodefs.h: Adjust prototype.
14220
14221 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
14222
14223         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
14224         auditing.
14225
14226         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
14227         RPATH of main map twice.
14228
14229 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
14230
14231         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
14232         look further, return original strings.
14233         (_nl_find_msg): Do not return found translation if the conversion
14234         failed.  Either signal the string is unusable or that something went
14235         wrong and the original should be used.
14236
14237 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
14238
14239         * string/_strerror.c (__strerror_r): Add __builtin_expect.
14240
14241 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
14242
14243         [BZ #2766]
14244         * misc/insremque.c (insque): Handle prev == NULL.
14245         * misc/Makefile (tests): Add tst-insremque.
14246         * misc/tst-insremque.c: New test.
14247
14248 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
14249
14250         [BZ #2792]
14251         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
14252         conflict with DL_DST_REQUIRED.
14253
14254 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
14255
14256         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
14257         match what Solaris does.
14258
14259 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
14260
14261         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
14262         local_setegid instead of seteuid and setegid.
14263         * sysdeps/generic/local-setxid.h: New file.
14264         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
14265
14266         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
14267
14268         * string/Makefile (tests): Add bug-envz1.
14269         * string/bug-envz1.c: New file.
14270
14271 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
14272
14273         * posix/regex_internal.c (re_string_skip_chars): If no character has
14274         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
14275         to the byte which couldn't be converted.
14276         (re_string_reconstruct): Don't clear valid_raw_len before calling
14277         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
14278         tip_context using re_string_context_at.
14279         * posix/Makefile: Add rules to build and run bug-regex25 test.
14280         * posix/bug-regex25.c: New test.
14281
14282 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
14283
14284         [BZ #2703]
14285         * string/envz.c (envz_strip): Correct erroneously reversed src
14286         and dest parameters to memmove() invocation.
14287
14288 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
14289
14290         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
14291         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
14292         to make sure the database has been already invalidated.
14293         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
14294         after the cache has been invalidated.  Use pthread_mutex_lock rather
14295         than pthread_mutex_trylock if fd != -1.
14296         * nscd/connections.c (invalidate_cache): Add fd argument, write
14297         response to fd if not calling prune_cache, pass fd to prune_cache.
14298         (handle_request): Adjust invalidate_cache caller.
14299         (nscd_run): Pass -1 as fd to prune_cache.
14300
14301 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
14302
14303         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
14304         the correct place.
14305
14306 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
14307
14308         * nscd/nscd.h (struct database_dyn): Add prunelock field.
14309         * nscd/cache.c (prune_cache): Take prunelock before starting the
14310         work.  Just return in case it is already taken.
14311         * nscd/connections.c (dbs): Initialize .prunelock.
14312
14313 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
14314
14315         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
14316         copying.  No need to allocate new array for group members.  Just
14317         move the pointers and update the size.
14318
14319         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
14320         Avoid memory leak in case realloc fails.  Simplification for
14321         better code generation.
14322
14323         Avoid deprecation warning because of libc_hidden_proto for
14324         inet6_option_alloc.
14325         * inet/inet6_option.c (option_alloc): Renamed from
14326         inet6_option_alloc.  Made static.
14327         (inet6_option_alloc): Now a simple wrapper around option_alloc.
14328         (inet6_option_append): Call option_alloc.
14329         * include/netinet/in.h: Remove libc_hidden_proto for
14330         inet6_option_alloc.
14331
14332         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
14333         for cleanup when cb!=NULL [Coverity CID 233].
14334
14335 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
14336
14337         [BZ #2693]
14338         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
14339         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
14340         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
14341         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
14342         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
14343         and inet6_rth_getaddr.
14344         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
14345         array.
14346         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
14347         Mark inet6_option_* interfaces as deprecated.
14348         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14349         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14350         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14351         inet6_rth_segments, and inet6_rth_getaddr.
14352         * inet/inet6_opt.c: New file.
14353         * inet/inet6_rth.c: New file.
14354
14355         * inet/netinet/icmp6.h: Pretty printing.
14356
14357         [BZ #2683]
14358         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14359
14360 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
14361
14362         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14363         doing it all here.  When server does not know the answer do not
14364         fail immediate, try parent first.
14365
14366         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14367         overflow test.
14368
14369 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
14370
14371         * nis/nis_call.c (__prepare_niscall): New function.  Split out
14372         from __do_niscall.
14373         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14374         and exported.
14375         (__follow_path): New function.  Split out from nis_list.
14376         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14377         _xdr_nis_result.
14378         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14379         _xdr_nis_result.
14380         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14381         and __follow_path.
14382         * nis/Versions: Export __prepare_niscall, __create_ib_request,
14383         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14384         from libnsl for version GLIBC_PRIVATE.
14385         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14386         Remove entry parameter from _nss_nisplus_parse_pwent and
14387         _nss_nisplus_parse_grent.
14388         * nis/nss_nisplus/nisplus-parser.c: Likewise.
14389         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14390         again.  Rewrite getpwent handling to not use nis_first_entry and
14391         nis_next_entry.  Roll out own niscall handling.
14392         * nis/nss_nisplus/nisplus-grp.c: Likewise.
14393
14394         * sunrpc/xdr_rec.c: Fix typo in comment.
14395
14396 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
14397
14398         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14399         handling.
14400
14401         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14402         to allocate memory for my_pollfd.  Better initialization of
14403         cb_is_running.  Use TEMP_FAILURE_RETRY.
14404
14405         * malloc/memusage.sh (memusageso): Add quotes.
14406         (memusagestat): Likewise.
14407         * debug/xtrace.sh (pcprofileso): Likewise.
14408         (pcprofiledump): Likewise.
14409         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14410         replacement.
14411         * malloc/Makefile ($(objpfx)memusage): Likewise.
14412
14413         * nis/nis_callback.c (__nis_create_callback): Calls to
14414         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
14415         asprintf call fails.
14416
14417         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14418         no uninitialized memory is passed to sendto.
14419
14420 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14421
14422         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14423         of snprintf+strdup.  Handle OOM.
14424         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14425         cb->serv together.  Remove now obsolete free calls.
14426         (__nis_destroy_callback): Remove now obsolete free call.
14427
14428 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
14429
14430         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14431         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14432         and ULA respectively). Set precedence for IPv4 address to 10 as
14433         defined in RFC3484 for preferring IPv6.
14434         * posix/gai.conf: Update to match the new default tables.
14435
14436 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
14437
14438         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14439         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14440         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14441         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14442
14443         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14444         Removed.
14445         (init_nss_interface): Remove initialization of these variables.
14446
14447 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14448
14449         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14450         nis_free_directory forward to avoid duplication.
14451
14452 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
14453
14454         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14455         rec_dirsearch returning NULL.
14456         (first_shoot): Handle __nis_finddirectory returning NULL.
14457         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14458
14459         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14460         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14461
14462 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
14463
14464         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14465         pid changed.
14466
14467 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
14468
14469         * include/rpc/pmap_prot.h: Mark all functions as hidden.
14470
14471         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14472         * nscd/nscd_getgr_r.c: Likewise.
14473
14474         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14475
14476         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14477         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14478
14479         * stdlib/longlong.h (__clz_tab): Mark as hidden.
14480
14481         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14482
14483         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14484
14485         * include/rpc/auth.h: Mark xdr_des_block_internal and
14486         xdr_opaque_auth_internal as hidden.
14487
14488         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14489         hidden.
14490
14491         * include/rpc/xdr.h: Mark all _internal functions as hidden.
14492
14493         * misc/getusershell.c (okshells): Don't use static initializers,
14494         do it dynamically.
14495
14496         * stdlib/fmtmsg.c (keywords): Change type of len element to
14497         uint32_t to not waste space on 64bit machines.
14498
14499         * locale/setlocale.c: Change _nl_category_names into a string.
14500         Add new _nl_category_name_idxs.  Change all users.
14501         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14502         Declare _nl_category_name_idxs.
14503         * locale/findlocale.c: Adjust for _nl_category_names change.
14504         * locale/loadlocale.c: Likewise.
14505         * locale/newlocale.c: Likewise.
14506         * intl/dcigettext.c: Likewise.
14507
14508         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14509         (add_alias2): ...here.  New function.
14510         (__gconv_read_conf): Simplify builtin alias handling.
14511         (builtin_aliases): Convert to string to avoid relocations.
14512         * iconv/gconv_builtin.h: Add comment about correct formatting.
14513
14514 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
14515
14516         * resolv/res_debug.c (loc_ntoa): Make error const.
14517
14518 2006-05-14  Andreas Schwab  <schwab@suse.de>
14519
14520         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14521
14522 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
14523
14524         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14525         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14526         sizeof (cpu_set_t).
14527
14528 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
14529
14530         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14531
14532         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14533
14534         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14535         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14536
14537         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14538         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14539
14540         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14541         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14542         xdr_cback_data.
14543
14544         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14545         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14546         xdr_ypupdate_args.
14547
14548         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14549         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14550
14551         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14552         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14553
14554         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14555         * include/rpcsvc/nis_callback.h: New file.
14556
14557         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14558         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14559
14560         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14561         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14562
14563         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14564         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14565
14566         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14567         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14568
14569         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14570         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14571         xdr_ypdelete_args.
14572
14573         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
14574         __BEGIN_DECLS and __END_DECLS, the header is not installed.
14575
14576         * nis/nis_error.c: Remove table of strings.  Use position
14577         independent mechanism.
14578         * nis/nis_error.h: New file.
14579
14580 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
14581
14582         * locale/programs/ld-time.c (time_finish): If wide era name or
14583         format aren't provided, set both wname and wformat to L"".
14584
14585 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14586
14587         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14588         results if the call was succesful.
14589
14590         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14591
14592         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14593         as hidden.
14594
14595 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14596
14597         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14598
14599 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14600
14601         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14602         caller makes sure this is not the case.
14603         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14604
14605 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14606
14607         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14608         calls.
14609
14610         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14611         [Coverity CID 229, 230]
14612
14613         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14614         DGETTEXT calls.
14615         (hol_help): Likewise.  [Coverity CID 226, 227]
14616
14617         * string/argz-replace.c (__argz_replace): Unconditionally call
14618         free on SRC.  [Coverity CID 225]
14619
14620         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14621         the return value of __nis_default_owner and __nis_default_group,
14622         it has been especially allocated.  [Coverity CID 224]
14623
14624         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14625         searchgroup and searchowner.  Significantly simplified.
14626         (__nis_default_owner): Remove duplication.  Do not locally copy the
14627         string before duplicating it.
14628         (__nis_default_group): Likewise.
14629
14630         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14631         we must clear the variable before calling __nisfind_server.
14632
14633         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14634         nis_getnames.  [Coverity CID 223]
14635
14636         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14637         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14638
14639         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14640         allocate memory for the input to add_bytes.  [Coverity CID 221]
14641
14642         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14643         was allocated here.  [Coverity CID 219, 220]
14644
14645         * posix/getconf.c (print_all): Free confstr data after printing.
14646         [Coverity CID 218]
14647
14648         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14649         list allocation fails.  [Coverity CID 215]
14650
14651         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14652         [Coverity CID 213]
14653
14654         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14655         string is NULL.  [Coverity CID 212]
14656         * argp/Makefile: Add rules to build and run bug-argp1.
14657         * argp/bug-argp1.c: New file.
14658
14659         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14660         end of string.
14661         * stdlib/canonicalize.c (__realpath): Likewise.
14662
14663         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14664         pointer.  [Coverity CID 206]
14665
14666         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14667         in statically linked code.
14668         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14669         statically built code, be prepared to have no link map.
14670         [Coverity CID 205]
14671
14672         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14673         dgettext calls. [Coverity CID 204]
14674
14675         * argp/argp-help.c (struct uparams): Remove valid member.  Change
14676         the one user.
14677         (uparam_names): Reduce size.  Avoid relative relocations.
14678         Moved to read-only segment.
14679         (fill_in_uparams): Update for new layout.
14680
14681         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14682         assumed to always be != NULL. [Coverity CID 202]
14683
14684         * argp/argp-help.c (hol_entry_help): Remove some dead code
14685         [Coverity CID 200].
14686
14687         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14688         away a few more unconditional yperr2nss calls.
14689         (_nss_nis_getservbyname_r): Likewise.
14690
14691 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
14692
14693         * sysdeps/generic/ldsodefs.h: Remove support for non-core
14694         architectures.
14695
14696         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14697         that unused memory passed to sendto is nevertheless initialized.
14698
14699         [BZ #2499]
14700         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14701         possibly unaligned memory accesses.
14702
14703         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14704         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14705         and __putlong respectively.  Correct buffer overflow check for
14706         NS_NOTIFY_OP.
14707
14708         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14709
14710         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14711         (send_dg): Rewrite error handling to be more compact and avoid
14712         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14713
14714         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14715
14716         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14717         instead of ns_get16.
14718         (res_queriesmatch): Likewise.  Minor optimization.
14719
14720         [BZ #2499]
14721         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14722         __libc_res_nsend might reallocate the buffer for the answer.  In
14723         this case we have to reload the HP pointer.
14724
14725 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14726
14727         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14728         some branch prediction hints.
14729
14730         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14731         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14732         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14733         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14734         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14735         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14736         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14737         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14738
14739 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14740
14741         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14742         by a GOT relocation to make Scrt1.o position independent.
14743         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14744
14745         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14746         six system call parameters.
14747         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14748
14749 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14750
14751         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14752         malloc&bzero.
14753
14754         * sunrpc/svc_udp.c (BZERO): Remove definition.
14755         (CALLOC): Define.
14756         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14757
14758         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14759         (des_SPtrans): Use uint32_t type.
14760         (des_skb): Likewise.
14761
14762         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14763
14764 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14765
14766         [BZ #2509]
14767         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14768         on 32-bit arches.
14769
14770 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14771
14772         * locale/programs/ld-address.c (address_finish): Fix one more
14773         place where the iso639 array might be accessed beyond the limits.
14774
14775 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14776
14777         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14778         filling it for the first time.
14779
14780         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14781         Adjust all callers.
14782         Free res object content before returning.
14783
14784         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14785
14786         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14787         client->cl_auth.
14788
14789         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14790         cleanup for initial thread, just the free call on TVP.
14791
14792         * nscd/gai.c (__getline): Define.
14793
14794
14795 See ChangeLog.16 for earlier changes.