Test case for last x86 memcmp problem
[platform/upstream/glibc.git] / ChangeLog
1 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * string/test-memcmp.c (check_result): New function.
4         (do_one_test): Use it.
5         (check1): New function.
6         (test_main): Use it.
7
8 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
9
10         * posix/tst-gnuglob.c: Add tests with empty patterns.  For this
11         rewrite the tests to add support for failing glob calls.
12         Some other minor cleanups.
13         * posix/bug-glob3.c: New file.
14         * posix/Makefile (tests): Add bug-glob3.
15
16 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
17             Andreas Schwab  <andreas@redhat.com>
18
19         * posix/glob.c (glob): Clean up gl_pathc and gl_pathv earlier.
20         If pattern is "" bail out early
21
22 2010-03-23  Jakub Jelinek  <jakub@redhat.com>
23
24         * elf/dl-lookup.c (do_lookup_x): If tab->entries is NULL,
25         but tab->size != 0, just unlock and goto success, without
26         allocating anything or entering anything into the hash table.
27         (_dl_debug_bindings): Temporarily set tab->entries to NULL
28         around do_lookup_x in undef_map->l_local_scope[0].  If
29         undef_map->l_symbolic_in_local_scope, lookup also in
30         symbolic_searchlist of following libraries in l_local_scope
31         that have DT_SYMBOLIC set.
32         * elf/dl-deps.c (_dl_map_object_deps): Compute
33         l_symbolic_in_local_scope.
34         * include/link.h (struct link_map): Add l_symbolic_in_local_scope
35         bitfield.
36
37 2010-03-24  Ulrich Drepper  <drepper@redhat.com>
38
39         [BZ #11410]
40         * wctype/wctype.h: Use <wchar.h> to get the wint_t definition.
41
42         * wcsmbs/wchar.h: Correct preprocessor directive indentation.  Move
43         C++ prototype handling to a better place.
44
45 2010-03-18  Ulrich Drepper  <drepper@redhat.com>
46
47         * elf/dl-load.c (open_verify): Extend expected to the full size of the
48         e_ident array.  When loading, check that the fields in e_ident we don't
49         know are zero to allow future extensions.
50
51 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
52
53         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Update %xmm3
54         when exit from loop.
55
56 2010-03-16  Andreas Schwab  <schwab@redhat.com>
57
58         * resolv/res_send.c (__libc_res_nsend): Fix printing of server
59         address in debug statement.
60         (send_dg): Pass correct buffer pointer to DprintQ.
61
62 2010-03-17  Ulrich Drepper  <drepper@redhat.com>
63
64         * libc-abis: Add a few more entries.
65
66 2010-03-16  Ulrich Drepper  <drepper@redhat.com>
67
68         * elf/dl-load.c (VALID_ELF_ABIVERSION): Add additional osabi parameter.
69         Not used here.
70         (open_verify): Modify for extended VALID_ELF_ABIVERSION macro
71         interface.
72         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Add
73         additional osabi parameter.  Only acceept nonzero ABI versions if osabi
74         is Linux.
75         Fix includes.
76         (expected2): Don't explicitly initialize EI_ABIVERSION byte.
77
78         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_ABIVERSION): Update
79         definition to follow generic code.
80
81 2010-03-15  Ulrich Drepper  <drepper@redhat.com>
82
83         * posix/getconf.c: Update copyright year.
84         * nss/getent.c: Likewise.
85         * iconv/iconvconfig.c: Likewise.
86         * iconv/iconv_prog.c: Likewise.
87         * elf/ldconfig.c: Likewise.
88         * catgets/gencat.c: Likewise.
89         * csu/version.c: Likewise.
90         * elf/ldd.bash.in: Likewise.
91         * elf/sprof.c (print_version): Likewise.
92         * locale/programs/locale.c: Likewise.
93         * locale/programs/localedef.c: Likewise.
94         * nscd/nscd.c (print_version): Likewise.
95         * debug/xtrace.sh: Likewise.
96         * malloc/memusage.sh: Likewise.
97         * malloc/mtrace.pl: Likewise.
98         * debug/catchsegv.sh: Likewise.
99
100         * Makerules: Add rule for libc-abis.h.
101         * csu/version.c: Use LIBC_ABIS_STRING string if available.
102         * elf/dl-load.c (VALID_ELF_ABIVERSION): Check using LIBC_ABI_MAX.
103         (open_verify): Only check EI_ABIVERSION bytes using VALID_ELF_HEADER.
104         Add extra call to VALID_ELF_ABIVERSION.
105
106 2010-03-12  Ulrich Drepper  <drepper@redhat.com>
107
108         * sysdeps/unix/sysv/linux/sys/mount.h (UMOUNT_NOFOLLOW): Define.
109
110 2010-03-12  Andreas Schwab  <schwab@redhat.com>
111
112         * elf/dl-dst.h: Include "trusted-dirs.h".
113         (DL_DST_REQUIRED): Take $LIB into account.
114
115 2010-03-11  Roland McGrath  <roland@redhat.com>
116
117         * elf/elf.h (R_X86_64_GOT64, R_X86_64_GOTPCREL64): New macros.
118         (R_X86_64_GOTPC64, R_X86_64_GOTPLT64, R_X86_64_PLTOFF64): New macros.
119
120 2010-03-10  Luis Machado  <luisgpm@br.ibm.com>
121
122         * sysdeps/powerpc/powerpc64/power7/memcpy.S: New file.
123         * sysdeps/powerpc/powerpc32/power7/memcpy.S: New file.
124
125 2010-03-09  David S. Miller  <davem@davemloft.net>
126
127         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handling
128         of R_SPARC_TLS_LE_* needs to use 32-bit loads and stores, not
129         64-bit ones.
130
131         * sysdeps/sparc/sparc32/memcpy.S: Fix build.
132
133         * sysdeps/sparc/sparc32/strlen.S: Optimize.
134         * sysdeps/sparc/sparc64/strlen.S: Likewise.
135         * sysdeps/sparc/sparc32/sparcv9/strlen.S (ASI_PNF, ASI_BLK_P,
136         XCC): Delete definitions, not needed.
137
138 2010-03-07  Ulrich Drepper  <drepper@redhat.com>
139
140         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
141         Little follow-up patch from last change.
142
143 2010-03-06  Ulrich Drepper  <drepper@redhat.com>
144
145         * sysdeps/unix/sysv/linux/internal_statvfs.c: Handle ext4 and logfs.
146         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Add entry for logfs.
147
148 2010-02-18  Yann Droneaud  <yann@droneaud.fr>
149
150         * resolv/res_send.c: Fixed DEBUG statements.
151         Moved tmpbuf declaration to block beginning and
152         updated pointer names used in multiple DprintQ() calls
153
154 2010-02-18  H.J. Lu  <hongjiu.lu@intel.com>
155
156         * config.make.in (config-asflags-i686): Define.
157         * configure.in: Substitute libc_cv_as_i686.
158         * sysdeps/i386/configure.in: Check if assembler supports -mtune=i686.
159         * sysdeps/i386/i686/Makefile (CFLAGS-.oX): Add -Wa,-mtune=i686
160         if assembler supports -mtune=i686.
161         (ASFLAGS-.oX): Likewise.
162
163 2010-03-04  Ulrich Drepper  <drepper@redhat.com>
164
165         * elf/elf.h (R_X86_64_SIZE32): Define.
166         (R_X86_64_SIZE64): Define.
167
168 2010-03-02  Richard Guenther  <rguenther@suse.de>
169
170         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): R_X86_64_PC32
171         is sign-extending.
172
173 2010-03-03  Ulrich Drepper  <drepper@redhat.com>
174
175         * sysdeps/unix/sysv/linux/bits/in.h: Add a few more definitions from
176         the kernel headers.
177
178 2010-03-04  David S. Miller  <davem@davemloft.net>
179
180         * sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
181
182         * sysdeps/sparc/sparc32/sparcv8/udiv_qrnnd.S: Delete.
183         * sysdeps/sparc/sparc32/udiv_qrnnd.S: Delete.
184
185 2010-03-03  David S. Miller  <davem@davemloft.net>
186
187         * math/math_private.h (INSERT_WORDS64): Fix argument order.
188
189 2010-03-03  Aurelien Jarno  <aurelien@aurel32.net>
190
191         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
192
193 2010-03-03  David S. Miller  <davem@davemloft.net>
194
195         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
196         pass '1' for 't' argument to sparc_fixup_plt.
197         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
198         Likewise.
199         * sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
200         (sparc_fixup_plt): Document 't' argument.  Enable branch
201         optimization and use v9 branches when possible.  Explain why we
202         cannot unconditionally patch the branch into the first PLT
203         instruction.
204         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
205         argument.  Use v9 branches when possible.  Explain why we can in
206         fact unconditionally use a branch in the first PLT instruction
207         here.
208
209 2010-02-28  Roland McGrath  <roland@redhat.com>
210
211         * elf/elf.h (NT_X86_XSTATE): New macro.
212
213 2010-02-25  David S. Miller  <davem@davemloft.net>
214
215         * sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
216         * sysdeps/sparc/sparc64/align-cpy.S: New.
217         * sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
218         __align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
219         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
220         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
221         Remove.
222         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
223         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
224         Remove.
225         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
226         __align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
227         Remove.
228
229         * sysdeps/sparc/sparc32/bcopy.c: Delete.
230         * sysdeps/sparc/sparc32/memmove.c: Delete.
231         * sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
232         * sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
233         * sysdeps/sparc/sparc64/bcopy.c: Delete.
234         * sysdeps/sparc/sparc64/memmove.c: Delete.
235         * sysdeps/sparc/sparc64/memcopy.h: New.
236         * sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
237         * sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
238         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
239         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
240         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
241
242         * sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
243         * sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
244         gen-as-const-headers.
245         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
246         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
247         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
248         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
249         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
250         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
251         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
252         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
253         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
254         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
255         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
256         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
257         * sysdeps/sparc/sparc64/multiarch/Makefile: New file.
258         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
259         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
260         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
261         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
262         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
263         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
264         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
265         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
266         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
267         * sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
268         * sysdeps/sparc/sparc64/multiarch/memset.S: New file.
269
270 2010-02-20  H.J. Lu  <hongjiu.lu@intel.com>
271
272         [BZ #11332]
273         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Use cfi_remember_state
274         and cfi_restore_state only if USE_AS_STRNCMP is defined.
275
276 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
277
278         * sysdeps/x86_64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
279
280 2010-02-24  H.J. Lu  <hongjiu.lu@intel.com>
281
282         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
283         (bk_write_less32bytes_2): Renamed to ...
284         (bk_write_less48bytes): This.
285         Use unsigned conditional jumps.
286         Correct unwind info.
287         Use add/sub instead of lea if possible.
288         (shl_0_gobble_cache_loop_tail): Removed.
289         (large_page): Properly adjust ECX.
290
291         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Use unsigned
292         conditional jumps.
293         Correct unwind info.
294
295         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Remove redundant
296         punpcklbw.
297         Use unsigned conditional jumps.
298         (128bytesormore_nt): Renamed to ...
299         (128bytesormore_endof_L1): This.
300         Use add instead of lea if possible.
301         Correct unwind info.
302         * sysdeps/i386/i686/multiarch/memset-sse2.S: Remove redundant
303         punpcklbw.
304         Use unsigned conditional jumps.
305         Use add instead of lea if possible.
306         Correct unwind info.
307
308 2010-02-24  Ulrich Drepper  <drepper@redhat.com>
309
310         [BZ #11319]
311         * libio/iovdprintf.c (_IO_vdprintf): Explicitly flush stream before
312         undoing the stream because _IO_FINISH doesn't report failures.
313
314         [BZ #5553]
315         * malloc/malloc.c (public_vALLOc): Set ar_ptr when trying main_arena.
316         (public_pVALLOc): Likewise.
317         Patch by Petr Baudis.
318
319 2010-02-22  Jim Meyering  <meyering@redhat.com>
320
321         * manual/math.texi (BSD Random): Fix a typo: s/are/is/
322
323         * manual/charset.texi: Adjust grammar.
324
325         * manual/errno.texi (Error Messages): Fix doubled-words and typos.
326         * manual/charset.texi (Selecting the Conversion): Likewise.
327         * manual/getopt.texi (Getopt Long Options): Likewise.
328         * manual/memory.texi (Resizing the Data Segment): Likewise.
329         * manual/message.texi (GUI program problems): Likewise.
330         * manual/resource.texi (CPU Affinity): Likewise.
331         * manual/stdio.texi (Streams and Threads): Likewise.
332         * manual/time.texi (High Accuracy Clock): Likewise.
333
334 2009-02-20  David S. Miller  <davem@davemloft.net>
335
336         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
337         Adjust rela->r_offset by l->l_addr when rewriting PLT.
338
339         * sysdeps/sparc/sparc64/memchr.S: Use unsigned branch on greater to
340         test end of buffer.
341
342         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c
343         (__makecontext): Adjust arg counter properly when copying arg
344         stack slots.
345
346 2009-02-20  Joseph Myers  <joseph@codesourcery.com>
347
348         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
349         Adjust rela->r_offset by l->l_addr when rewriting PLT.
350
351 2010-02-19  Carl Fredrik Hammar  <hammy.lite@gmail.com>
352
353         * hurd/hurdioctl.c (tiocsctty): Call `do_tiocsctty' instead of
354         non-existent `tiocsctty_port'.
355
356 2010-02-16  H.J. Lu  <hongjiu.lu@intel.com>
357
358         * sysdeps/i386/i686/multiarch/memcmp.S (memcmp): Use CPUID_OFFSET
359         instead of FEATURE_OFFSET.
360         * sysdeps/i386/i686/multiarch/strcmp.S (strcmp): Likewise.
361
362         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Add alignnments.
363         Fix one unwind info problem.
364
365         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S (less1bytes): Add CFI_POP.
366
367         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Simplify unwind info.
368
369 2010-02-17  H.J. Lu  <hongjiu.lu@intel.com>
370             Ulrich Drepper  <drepper@redhat.com>
371
372         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Fix typo in unwind info.
373         Clean up a bit.
374
375 2010-02-17  Carl Fredrik Hammar  <hammy.lite@gmail.com>
376
377         * hurd/hurdioctl.c (tiocsctty): Only get FD ports, do work in...
378         (tiocsctty_port): ...this new function.
379
380         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS_1): Cast to
381         `ioctl_handler_t'.
382
383 2010-02-15  Ulrich Drepper  <drepper@redhat.com>
384
385         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Fix unwind info.
386         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
387         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
388         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
389
390         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Don't fall through to
391         undefined code.
392
393 2010-02-12  H.J. Lu  <hongjiu.lu@intel.com>
394
395         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
396         strcmp-ssse3, strcmp-sse4, strncmp-c, strncmp-ssse3, strncmp-sse4,
397         memcmp-c, memcmp-ssse3, and memcmp-sse4.
398         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: New file.
399         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: New file.
400         * sysdeps/i386/i686/multiarch/memcmp.S: New file.
401         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: New file.
402         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: New file.
403         * sysdeps/i386/i686/multiarch/strcmp.S: New file.
404         * sysdeps/i386/i686/multiarch/strncmp-c.c: New file.
405         * sysdeps/i386/i686/multiarch/strncmp-sse4.S: New file.
406         * sysdeps/i386/i686/multiarch/strncmp-ssse3.S: New file.
407         * sysdeps/i386/i686/multiarch/strncmp.S: New file.
408
409 2010-02-12  Luis Machado  <luisgpm@br.ibm.com>
410
411         * sysdeps/powerpc/powerpc32/dl-machine.h: Removed old PPC_REL16 check.
412         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
413         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
414         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
415         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
416         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
417         * sysdeps/powerpc/powerpc32/configure.in: Fail if R_PPC_REL16
418         is not supported.
419         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
420         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
421         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
422         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
423         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
424         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Likewise.
425         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
426         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
427         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
428         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
429         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
430         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
431         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
432         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
433         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
434         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
435         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S:
437         Likewise.
438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
439         Likewise.
440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
441         Likewise.
442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
443         Likewise.
444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
445
446 2010-02-12  Alan Modra  <amodra@gmail.com>
447
448         * elf/tls-macros.h [__powerpc__] (__TLS_CALL_CLOBBERS): Remove r3.
449         Define and use for __powerpc64__ too.
450         [__powerpc__] (TLS_LD): Add r3 to clobbers.
451         [__powerpc__] (TLS_GD): Set asm output.  Make __result r3 reg.
452         [__powerpc64__] (TLS_GD): Make __result r3 reg.
453         [__powerpc64__] (TLS_IE): Relax output constraint.
454
455 2010-02-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
456
457         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Disable hardware
458         instructions cu21 and cu24.  Add well-formedness checking
459         parameter and adjust the software implementation.
460         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
461
462 2010-02-10  Ulrich Drepper  <drepper@redhat.com>
463
464         [BZ #11271]
465         * io/ftw.c (ftw_startup): Close descriptor for initial directory
466         after changing back to it.
467
468 2010-02-05  David S. Miller  <davem@davemloft.net>
469
470         * elf/elf.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define.
471         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle new
472         ifunc relocs.
473         (elf_machine_lazy_rel): Likewise.
474         (sparc_fixup_plt): Pull out to...
475         * sysdeps/sparc/sparc32/dl-plt.h: ...here.
476         * sysdeps/sparc/sparc32/dl-irel.h: New file.
477         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle new
478         ifunc relocs.
479         (elf_machine_lazy_rel): Likewise.
480         (sparc64_fixup_plt): Pull out to...
481         * sysdeps/sparc/sparc64/dl-plt.h: ...here.
482         * sysdeps/sparc/sparc64/dl-irel.h: New file.
483
484 2010-02-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
485
486         * elf/elf.h: Define m68k TLS relocations.
487
488 2010-02-10  Luis Machado  <luisgpm@br.ibm.com>
489
490         * sysdeps/powerpc/powerpc64/power7/Implies: Removed.
491         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Removed.
492         * sysdeps/powerpc/powerpc32/power7/Implies: Removed.
493         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: Removed.
494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Add
495         64-bit power7 fpu path.
496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Add
497         32-bit power7 fpu math.
498
499 2010-02-09  Ulrich Drepper  <drepper@redhat.com>
500
501         * sysdeps/i386/rshift.S: More compact unwind information.
502
503         * sysdeps/i386/lshift.S: Fix unwind information.
504
505 2010-02-08  Luis Machado  <luisgpm@br.ibm.com>
506
507         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: New file.
508         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: New file.
509         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: New file.
510         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: New file.
511         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: New file.
512         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: New file.
513         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: New file.
514         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: New file.
515         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: New file.
516         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: New file.
517         * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: New file.
518         * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: New file.
519
520 2010-02-08  Andreas Schwab  <schwab@redhat.com>
521
522         * include/fenv.h: Add hidden proto for fegetenv.
523         * math/fegetenv.c: Add hidden alias.
524         * sysdeps/i386/fpu/fegetenv.c: Likewise.
525         * sysdeps/ia64/fpu/fegetenv.c: Likewise.
526         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
527         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
528         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
529         * sysdeps/x86_64/fpu/fegetenv.c: Likewise
530         * sysdeps/s390/fpu/fegetenv.c: Likewise.  Remove unused headers.
531
532 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
533
534         [BZ #11230]
535         * sysdeps/ia64/memchr.S: Don't read beyond the last byte
536         during recovery.
537
538 2010-01-26  Andreas Schwab  <schwab@redhat.com>
539
540         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: Use internal
541         interface.
542         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: Likewise.
543         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Declare internal
544         utmpx interface.
545
546         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
547         entry for 2.12.
548
549 2010-02-03  Ulrich Drepper  <drepper@redhat.com>
550
551         [BZ #11235]
552         * sysdeps/unix/sysv/linux/sys/mount.h: Remove S_WRITE, S_APPEND,
553         S_IMMUTABLE.  Add MS_DIRSYNC, MS_MOVE, MS_SILENT, MS_REC,
554         MS_POSIXACL, MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED,
555         MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME,
556         MS_ACTIVE, and MS_NOUSER.
557         (MS_RMT_MASK): Update according to current kernels.
558
559         [BZ #11242]
560         * misc/getusershell.c (initshells): Allocate one more byte in input
561         buffer so that fgets doesn't loop undefinitely.
562
563 2010-02-02  Ulrich Drepper  <drepper@redhat.com>
564
565         * stdlib/setenv.c (__add_to_environ): Don't use alloca if
566         __libc_use_alloca tells us not to.  Fix memory leak in an error
567         situation.  Based partially on patch by Jim Meyering.
568
569 2010-01-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
570
571         * sysdeps/mach/getsysstats.c (get_nprocs_conf, get_nprocs,
572         get_phys_pages, get_avphys_pages): Add weak aliases.
573
574 2010-01-25  Andreas Schwab  <schwab@redhat.com>
575
576         * iconv/iconv_prog.c (write_output): Fix check for open failure.
577
578 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
579
580         [BZ #11200]
581         * locale/loadlocale.c (_nl_load_locale): Fix recognition of genuine
582         mmap resource problem.  Patch by Joe Landers <jlanders@vmware.com>.
583
584 2010-01-22  Jim Meyering  <jim@meyering.net>
585
586         [BZ #11193]
587         * posix/regexec.c (extend_buffers): Avoid overflow in realloc
588         buffer length computation.
589
590         [BZ #11192]
591         * posix/regexec.c (re_copy_regs): Don't leak when allocation
592         of the start buffer succeeds but allocation of the "end" one fails.
593
594         [BZ #11191]
595         * posix/regexec.c (re_search_2_stub): Check for overflow
596         when adding the sizes of the two strings.
597
598         [BZ #11190]
599         * posix/regexec.c (re_search_internal): Avoid overflow
600         in computing re_malloc buffer size.
601
602         [BZ #11189]
603         * posix/regexec.c (prune_impossible_nodes): Avoid overflow
604         in computing re_malloc buffer size.
605
606         [BZ #11188]
607         * posix/regexec.c (build_trtable): Avoid arithmetic overflow
608         in size calculation.
609
610         [BZ #11187]
611         * posix/regexec.c (re_search_2_stub): Use simpler method than
612         boolean for freeing internal storage.
613
614 2010-01-22  Ulrich Drepper  <drepper@redhat.com>
615
616         * posix/regex_internal.c (re_string_skip_chars): Simplify test for
617         failed mbrtowc call.
618
619 2010-01-22  Jim Meyering  <jim@meyering.net>
620
621         [BZ #11186]
622         * posix/regex_internal.c (re_string_skip_chars): Don't assume WEOF
623         fits in wchar_t.  Problem reported by Eric Blake.
624
625         [BZ #11185]
626         * posix/regex_internal.c (re_string_reconstruct): Remove declaration
627         and stores into set-but-not-used local, "q".
628
629         [BZ #11184]
630         * posix/regex_internal.c (re_dfa_add_node): Extend the overflow
631         detection test.  Patch by Paul Eggert.
632
633         [BZ #11183]
634         * posix/regex_internal.c (re_string_realloc_buffers):
635         Detect and handle internal overflow.  Patch by Paul Eggert
636
637 2010-01-20  Andreas Schwab  <schwab@redhat.com>
638
639         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c
640         (CHECK_SP): Fix check for alternate stack.
641         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c
642         (CHECK_SP): Likewise.
643
644 2010-01-19  H.J. Lu  <hongjiu.lu@intel.com>
645
646         * sysdeps/i386/i686/multiarch/memmove.S: Also check
647         bit_Fast_Rep_String when SHARED isn't defined.
648
649 2010-01-19  Ulrich Drepper  <drepper@redhat.com>
650
651         [BZ #11194]
652         * misc/bits/syslog.h (syslog, vsyslog): Remove unnecessary return.
653
654 2010-01-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
655
656         * sysdeps/mach/hurd/bits/libc-lock.h
657         (__rtld_lock_recursive_t): New type.
658         (__rtld_lock_initialize): New macro.
659
660 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
661
662         * sysdeps/powerpc/powerpc32/cell/memcpy.S: New file.
663         * sysdeps/powerpc/powerpc64/cell/memcpy.S: New file.
664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/fpu/Implies: New file.
665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: New file.
666
667 2010-01-18  Andreas Schwab  <schwab@redhat.com>
668
669         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Remove duplicate
670         definitions of O_DSYNC and O_RSYNC.
671
672         * elf/dynamic-link.h (elf_get_dynamic_info): Use correct type when
673         casting d_tag.
674
675         * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
676         dynamic entry types.
677
678 2010-01-16  Jakub Jelinek  <jakub@redhat.com>
679
680         * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
681         constant.
682         * sysdeps/ieee754/ldbl-128/s_floorl.c (huge): Likewise.
683         * sysdeps/ieee754/ldbl-128/s_expm1l.c (big): Decrease to avoid
684         overflow.
685         * sysdeps/ieee754/ldbl-128/s_log1pl.c (big): Remove unused variable.
686
687         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf): Use
688         math_opt_barrier and math_force_eval macros.
689
690 2010-01-15  Ulrich Drepper  <drepper@redhat.com>
691
692         * posix/regcomp.c: Fix a few more cases of ignored return values.
693         * posix/regex_internal.c: Likewise.
694         * posix/regexec.c: Likewise.
695
696         * include/features.h: _XOPEN_SOURCE_EXTENDED is not defined to be
697         used without _XOPEN_SOURCE.  Don't base any decisions on this macro
698         if _XOPEN_SOURCE is not defined as well.
699
700 2010-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
701
702         * sysdeps/s390/s390-32/elf/start.S (_start): Added check for the
703         high gprs kernel facility.
704         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_matches_host):
705         Added high gprs check for DSOs.
706         * elf/elf.h (EF_S390_HIGH_GPRS): Added macro definition for the
707         new elf header flag.
708
709 2010-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
710
711         * elf/dl-sysdep.c (_dl_sysdep_start): Added the auxv parameter to
712         dl_main.
713         * elf/dl-open.c (_dl_sysdep_start): Likewise..
714         * sysdeps/generic/ldsodefs.h (_dl_sysdep_start): Likewise.
715         * elf/rtld.c (dl_main): Added new parameter auxv.  Adjust the
716         AT_PHDR, AT_PHNUM and AT_ENTRY fields if the ld.so is directly
717         started.
718
719 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
720
721         [BZ #11027]
722         * sysdeps/generic/netinet/ip.h: Define IPTOS_CLASS_* macros according
723         to RFC 2474.
724         Patch by Philip Prindeville <philipp@redfish-solutions.com>.
725
726         [BZ #11141]
727         * resolv/res_send.c (reopen): Don't use IPv6 sockets for IPv4
728         addresses.
729
730         [BZ #11127]
731         * posix/regcomp.c (alc_eclosure_iter): Do not ignore
732         re_node_set_insert failure; return REG_ESPACE.
733         Patch by Paul Eggert.
734
735         * bits/confname.h: Make pre-C99-safe.
736
737 2010-01-14  Ryan S. Arnold  <rsa@us.ibm.com>
738
739         * Makeconfig (+prector, +postctor, +prectorS, +postctorS): Add
740         $(sysdep-LDFLAGS) to pre and post ctors so that the proper .o
741         files are found by GCC.
742
743 2010-01-14  Ulrich Drepper  <drepper@redhat.com>
744
745         * posix/unistd.h: Relax conditions for ualarm, usleep, getwd, vfork,
746         brk, and sbrk.
747
748         * string/strings.h: Relax condition for bcmp, bcopy, bzero, ffs,
749         index, and rindex.
750
751         * stdlib/stdlib.h: Relax conditions for *cvt functions and valloc.
752
753         * Versions.def: Add GLIBC_2.12 for libpthread.
754
755         [BZ #11126]
756         * malloc/malloc.c (malloc_info): Initialize malloc if not already
757         done.  Handle empty bin lists.
758
759         * posix/unistd.h: Change getpagesize and getdtablesize declaration
760         visibility some more.
761
762         * resolv/netdb.h: Relax condition to elide obsolete resolver constants.
763
764         * posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
765
766         [BZ #11120]
767         * sysdeps/x86_64/strcmp.S: Prevent silent errors should strncmp be
768         needed outside libc.
769
770 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
771
772         * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
773
774 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
775
776         * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
777
778 2010-01-13  Ulrich Drepper  <drepper@redhat.com>
779
780         * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol.
781
782 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
783
784         * conform/data/complex.h-data: Test for POSIX2008.
785
786         * conform/data/ctype.h-data: Fix POSIX testing.
787
788         * conform/data/dirent.h-data: ino_t only needed for XSI.
789
790         * grp/grp.h: Declare getgrent and endgrent for XPG7.
791
792         * conform/data/inttypes.h-data: Use same types as the headers.
793
794         * resolv/netdb.h: Don't define old resolver macros for XPG7.
795
796         * conform/data/sys/uio.h-data: Don't exclude POSIX2008.
797
798         * conform/conformtest.pl: Implement tag for allow-header.
799         Fix newline handling in allow-header implementation.
800
801         * conform/data/time.h-data: Use allow-header instead of duplicating
802         information.
803
804         * conform/data/time.h-data: Allow sigevent tag.
805
806         * posix/sched.h: Define time_t and pid_t for XPG7.
807
808 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
809
810         * sysdeps/i386/i686/bcopy.S: New file.
811
812         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Define.
813
814         * sysdeps/i386/i686/memcpy.S (__memcpy_chk): Use ENTRY_CHK
815         and END_CHK.
816         * sysdeps/i386/i686/memmove.S (__memmove_chk): Likewise.
817         * sysdeps/i386/i686/mempcpy.S (__mempcpy_chk): Likewise.
818         * sysdeps/i386/i686/memset.S (__memset_chk): Likewise.
819
820         * sysdeps/i386/i686/memmove.S: Support USE_AS_BCOPY.
821
822         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
823         bzero-sse2 memset-sse2 memcpy-ssse3 mempcpy-ssse3 memmove-ssse3
824         memcpy-ssse3-rep mempcpy-ssse3-rep memmove-ssse3-rep
825         bcopy-ssse3 bcopy-ssse3-rep memset-sse2-rep bzero-sse2-rep
826         * sysdeps/i386/i686/multiarch/bcopy-ssse3-rep.S: New file.
827         * sysdeps/i386/i686/multiarch/bcopy-ssse3.S: New file.
828         * sysdeps/i386/i686/multiarch/bcopy.S: New file.
829         * sysdeps/i386/i686/multiarch/bzero-sse2-rep.S: New file.
830         * sysdeps/i386/i686/multiarch/bzero-sse2.S: New file.
831         * sysdeps/i386/i686/multiarch/bzero.S: New file.
832         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: New file.
833         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: New file.
834         * sysdeps/i386/i686/multiarch/memcpy.S: New file.
835         * sysdeps/i386/i686/multiarch/memcpy_chk.S: New file.
836         * sysdeps/i386/i686/multiarch/memmove-ssse3-rep.S: New file.
837         * sysdeps/i386/i686/multiarch/memmove-ssse3.S: New file.
838         * sysdeps/i386/i686/multiarch/memmove.S: New file.
839         * sysdeps/i386/i686/multiarch/memmove_chk.S: New file.
840         * sysdeps/i386/i686/multiarch/mempcpy-ssse3-rep.S: New file.
841         * sysdeps/i386/i686/multiarch/mempcpy-ssse3.S: New file.
842         * sysdeps/i386/i686/multiarch/mempcpy.S: New file.
843         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: New file.
844         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: New file.
845         * sysdeps/i386/i686/multiarch/memset-sse2.S: New file.
846         * sysdeps/i386/i686/multiarch/memset.S: New file.
847         * sysdeps/i386/i686/multiarch/memset_chk.S: New file.
848
849         * sysdeps/i386/sysdep.h (ENTRY_CHK): New.
850         (END_CHK): Likewise.
851
852         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Add
853         FEATURE_OFFSET, FEATURE_SIZE and FEATURE_INDEX_1.
854         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
855
856         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add entries
857         for 0x0e and 0x80.
858         (__x86_64_data_cache_size): New.
859         (init_cacheinfo): Set __x86_64_data_cache_size.
860
861         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Turn
862         on bit_Fast_Rep_String for Intel Core i7.
863
864         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Rep_String): New.
865         (index_Fast_Rep_String): Likewise.
866         (FEATURE_INDEX_1): Likewise.
867         (FEATURE_INDEX_MAX): Likewise.
868         (cpu_features): Add feature.
869
870 2010-01-12  Ulrich Drepper  <drepper@redhat.com>
871
872         * conform/data/sys/select.h-data: Fix up for XPG7.
873
874 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
875
876         * posix/sys/wait.h: Don't define W* macros etc. if
877         stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.
878
879 2010-01-11  Ulrich Drepper  <drepper@redhat.com>
880
881         * io/sys/stat.h: Declare fchmod for XPG7.
882         * conform/data/sys/stat.h-data: Fix up for XPG7.
883
884         * termios/termios.h: Define pid_t for XPG7.
885
886         * conform/data/math.h-data: Fix up for XPG6 and XPG7.
887         * conform/data/tgmath.h-data: Likewise.
888
889         * conform/data/time.h-data: Fix POSIX tests.
890
891         * conform/data/wchar.h-data: Fix up XPG7 tests.
892
893         * include/features.h: Fix __USE_ISOC95 handling.
894
895         * conform/data/wordexp.h-data: Fix typo in last change.
896
897         * conform/data/unistd.h-data: Fix up older POSIX tests.
898
899         * stdlib/stdlib.h: Fix handling symbols removed in XPG7.
900         * posix/unistd.h: Likewise.
901
902         * posix/unistd.h: Include environments.h also for XPG6 and up.
903         Define intptr_t for XPG6 and up.
904         Fix up for XPG7.
905         * conform/data/unistd.h-data: Fix up for XPG6 and XPG7.
906
907         * conform/data/sys/types.h-data: Fix up for XPG7.
908
909         * sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
910         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
911         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
912         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
913         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
914         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
915         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
916         * sysdeps/unix/sysv/bits/stat.h: Likewise.
917         * sysdeps/mach/hurd/bits/stat.h: Likewise.
918
919         * bits/confname.h: Fix typo in last change.
920
921         * conform/data/unistd.h-data: lockf-constants Not needed for POSIX.
922
923 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
924
925         * sysdeps/unix/sysv/linux/bits/sigaction.h: SA_RESTART, SA_NODEFER,
926         and SA_RESETHAND now available in Base.
927         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
928         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
929         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
930         * conform/data/signal.h-data: Update for XPG7.
931
932         * posix/sys/types.h: Define id_t, clock_t, blksize_t for XPG7.
933
934         * string/strings.h: Don't declare obsolete functions for XPG7.
935         Declare ffs only for XSI.
936         * conform/data/strings.h-data: Update for XPG7.
937
938 2010-01-10  Jakub Jelinek  <jakub@redhat.com>
939
940         [BZ #11125]
941         * libio/stdio.h: Define va_list, off_t, and ssize_t.
942
943         * posix/glob.h: Define size_t.
944
945         * posix/sys/wait.h: Define idtype_t and declare waitid for XPG7.
946
947         * signal/signal.h: Define size_t, mcontext_t, and ucontext_t for XPG7.
948
949 2010-01-10  Ulrich Drepper  <drepper@redhat.com>
950
951         * conform/conformtest.pl: For XPG7 testing the headers are supposed to
952         be self-contained.
953
954         * conform/data/stdio.h-data: Expect off_t and ssize_t.
955
956 2010-01-09  Ulrich Drepper  <drepper@redhat.com>
957
958         * libio/stdio.h: Define va_list also for XPG7.
959
960         * conform/conformtest.pl: Update for XPG7 and some bug fixes.
961         * conform/data/ctype.h-data: Likewise.
962         * conform/data/dirent.h-data: Likewise.
963         * conform/data/errno.h-data: Likewise.
964         * conform/data/fcntl.h-data: Likewise.
965         * conform/data/fmtmsg.h-data: Likewise.
966         * conform/data/fnmatch.h-data: Likewise.
967         * conform/data/ftw.h-data: Likewise.
968         * conform/data/glob.h-data: Likewise.
969         * conform/data/grp.h-data: Likewise.
970         * conform/data/iconv.h-data: Likewise.
971         * conform/data/langinfo.h-data: Likewise.
972         * conform/data/libgen.h-data: Likewise.
973         * conform/data/limits.h-data: Likewise.
974         * conform/data/locale.h-data: Likewise.
975         * conform/data/math.h-data: Likewise.
976         * conform/data/monetary.h-data: Likewise.
977         * conform/data/mqueue.h-data: Likewise.
978         * conform/data/ndbm.h-data: Likewise.
979         * conform/data/netdb.h-data: Likewise.
980         * conform/data/pthread.h-data: Likewise.
981         * conform/data/pwd.h-data: Likewise.
982         * conform/data/regex.h-data: Likewise.
983         * conform/data/sched.h-data: Likewise.
984         * conform/data/search.h-data: Likewise.
985         * conform/data/semaphore.h-data: Likewise.
986         * conform/data/setjmp.h-data: Likewise.
987         * conform/data/signal.h-data: Likewise.
988         * conform/data/spawn.h-data: Likewise.
989         * conform/data/stdio.h-data: Likewise.
990         * conform/data/stdlib.h-data: Likewise.
991         * conform/data/string.h-data: Likewise.
992         * conform/data/strings.h-data: Likewise.
993         * conform/data/sys/ipc.h-data: Likewise.
994         * conform/data/sys/msg.h-data: Likewise.
995         * conform/data/sys/resource.h-data: Likewise.
996         * conform/data/sys/sem.h-data: Likewise.
997         * conform/data/sys/shm.h-data: Likewise.
998         * conform/data/sys/socket.h-data: Likewise.
999         * conform/data/sys/stat.h-data: Likewise.
1000         * conform/data/sys/time.h-data: Likewise.
1001         * conform/data/sys/types.h-data: Likewise.
1002         * conform/data/sys/uio.h-data: Likewise.
1003         * conform/data/sys/wait.h-data: Likewise.
1004         * conform/data/syslog.h-data: Likewise.
1005         * conform/data/tar.h-data: Likewise.
1006         * conform/data/termios.h-data: Likewise.
1007         * conform/data/time.h-data: Likewise.
1008         * conform/data/ulimit.h-data: Likewise.
1009         * conform/data/unistd.h-data: Likewise.
1010         * conform/data/utmpx.h-data: Likewise.
1011         * conform/data/wchar.h-data: Likewise.
1012         * conform/data/wctype.h-data: Likewise.
1013         * conform/data/wordexp.h-data: Likewise.
1014
1015         * io/fcntl.h: Define mode_t macros instead of including sys/stat.h.
1016         * sysdeps/unix/bsd/bits/stat.h: Enable using from fcntl.h.
1017         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1018         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1019         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1020         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1021         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1022         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1023         * sysdeps/unix/sysv/bits/stat.h: Likewise.
1024         * sysdeps/mach/hurd/bits/stat.h: Likewise.
1025
1026         * stdlib/stdlib.h: Define wait-related bits for XPG7.
1027         Don't declare valloc, mktemp, ecvt, fcvt, gcvt for XPG6 and  up.
1028         Declare mkstemp and getsubopt for XPG7.
1029         Declare posix_openpt for XPG6 XSI.
1030
1031         * include/features.h: Define __USE_XOPEN2KXSI for _XOPEN_SOURCE >= 600
1032         and __USE_XOPEN2K8XSI for _XOPEN_SOURCE >= 700.
1033
1034         * string/string.h: Declare strdup for XPG7.
1035
1036 2010-01-08  Ulrich Drepper  <drepper@redhat.com>
1037
1038         * bits/confname.h: Define _CS_V6_ENV and _CS_V7_ENV.
1039         * posix/confstr.c: Implement _CS_V6_ENV and _CS_V7_ENV.
1040
1041         * dirent/dirent.h: Really fix feature selection.
1042
1043         * locale/localeinfo.h: Rename struct locale_data to __locale_data.
1044         Fix all users.
1045         * locale/C-address.c: Fix all users.
1046         * locale/C-collate.c: Likewise.
1047         * locale/C-ctype.c: Likewise.
1048         * locale/C-identification.c: Likewise.
1049         * locale/C-measurement.c: Likewise.
1050         * locale/C-messages.c: Likewise.
1051         * locale/C-monetary.c: Likewise.
1052         * locale/C-name.c: Likewise.
1053         * locale/C-numeric.c: Likewise.
1054         * locale/C-paper.c: Likewise.
1055         * locale/C-telephone.c: Likewise.
1056         * locale/C-time.c: Likewise.
1057         * locale/findlocale.c: Likewise.
1058         * locale/global-locale.c: Likewise.
1059         * locale/loadarchive.c: Likewise.
1060         * locale/loadlocale.c: Likewise.
1061         * locale/nl_langinfo_l.c: Likewise.
1062         * locale/setlocale.c: Likewise.
1063         * locale/xlocale.c: Likewise.
1064         * locale/xlocale.h: Likewise.
1065         * stdio-common/vfscanf.c: Likewise.
1066         * stdlib/strfmon_l.c: Likewise.
1067         * stdlib/strtod_l.c: Likewise.
1068         * stdlib/strtol_l.c: Likewise.
1069         * string/strcoll_l.c: Likewise.
1070         * string/strxfrm_l.c: Likewise.
1071         * time/alt_digit.c: Likewise.
1072         * time/asctime.c: Likewise.
1073         * time/era.c: Likewise.
1074         * time/lc-time-cleanup.c: Likewise.
1075         * time/strftime_l.c: Likewise.
1076         * time/strptime_l.c: Likewise.
1077         * wcsmbs/wcsmbsload.c: Likewise.
1078         * wcsmbs/wcsmbsload.h: Likewise.
1079
1080         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define O_DIRECTORY,
1081         O_NOFOLLOW, O_CLOEXEC, F_DUPFD_CLOEXEC, F_SETOWN, and F_GETOWN
1082         for XPG7.
1083         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1084         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1085         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1086         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1087         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1088         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1089
1090 2010-01-07  Roland McGrath  <roland@redhat.com>
1091
1092         * elf/elf.h (PN_XNUM): New macro.
1093
1094         * elf/dl-sysdep.c (_dl_important_hwcaps): Use NT_GNU_HWCAP instead of
1095         literal 2.
1096
1097 2010-01-06  Ulrich Drepper  <drepper@redhat.com>
1098
1099         * dirent/dirent.h: Fix typo in feature selection macro use.
1100
1101 2009-12-15  Maciej W. Rozycki  <macro@codesourcery.com>
1102
1103         [BZ #11115]
1104         * stdlib/tst-makecontext3.c: New file.
1105         * stdlib/Makefile (tests): Add new test.
1106
1107         * stdlib/tst-setcontext.c (check_called): Fix a typo.
1108
1109 2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>
1110
1111         * configure.in: Enable multi-arch by default if the assembler
1112         supports gnu_indirect_function symbol type and the architecture
1113         supports it.
1114
1115 2009-12-23  Ulrich Drepper  <drepper@redhat.com>
1116
1117         * include/stdlib.h: Exclude some includes and prototypes if _ISOMAC
1118         is defined.
1119
1120 2009-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1121
1122         * hurd/hurdioctl.c (_hurd_locked_install_cttyid): Set newctty to
1123         MACH_PORT_NULL when id != cttyid.
1124
1125 2009-12-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1126
1127         * sysdeps/mach/hurd/getcwd.c (cleanup): Do not call
1128         __mach_port_deallocate on rootdevid.
1129
1130 2009-12-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1131
1132         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Handle
1133         R_390_PC32DBL. Remove unneeded R_390_PLT16DBL.
1134         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1135         unneeded R_390_PLT16DBL and R_390_PLT32DBL.
1136
1137 2009-12-21  Ulrich Drepper  <drepper@redhat.com>
1138
1139         [BZ #10992]
1140         * sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
1141         Patch by Eric Blake <ebb9@byu.net>.
1142
1143 2009-12-15  Ulrich Drepper  <drepper@redhat.com>
1144
1145         [BZ #11093]
1146         * bits/poll.h: Define POLLRDNORM, POLLRDBAND, POLLWRNORM, and
1147         POLLWRBAND also for POSIX 2008.
1148         * sysdeps/unix/sysv/linux/bits/poll.h: Likewise.
1149         * sysdeps/unix/sysv/linux/sparc/bits/poll.h: Likewise.
1150
1151         * include/link.h (struct link_map): Move l_used into its own word.
1152         * elf/dl-lookup.c (_dl_lookup_symbol_x): Only update l_used when it is
1153         still zero.
1154         * elf/dl-object.c (_dl_new_object): Set dl_used if we know it is
1155         never really used.
1156
1157 2009-12-13  H.J. Lu  <hongjiu.lu@intel.com>
1158
1159         * sysdeps/i386/i686/multiarch/strcspn.S Include <init-arch.h>
1160         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1161         check processor feature.
1162         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1163         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1164         * sysdeps/x86_64/multiarch/init-arch.h (bit_SSE2): New definition.
1165         (index_SSE2): Likewise.
1166
1167 2009-12-09  H.J. Lu  <hongjiu.lu@intel.com>
1168
1169         * sysdeps/x86_64/multiarch/init-arch.h: Include <ifunc-defines.h>
1170         if __ASSEMBLER__ is defined.
1171         (bit_SSSE3): New.  Defined for __ASSEMBLER__.
1172         (bit_SSE4_2): Likewise.
1173         (index_SSSE3): Likewise.
1174         (index_SSE4_2): Likewise.
1175         * sysdeps/x86_64/multiarch/rawmemchr.S: Include <init-arch.h>
1176         instead of <ifunc-defines.h>.  Use bit_XXX and index_XXX to
1177         check processor feature.
1178         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1179         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1180         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1181         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1182         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1183         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1184         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1185
1186 2009-12-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1187
1188         * sysdeps/sh/elf/initfini.c: Update according to generic/initfini.c.
1189
1190 2009-12-01  Mike Frysinger  <vapier@gentoo.org>
1191
1192         * sysdeps/sh/sh4/fpu/fpu_control.h (__set_fpscr): New prototype.
1193
1194 2009-12-11  Ulrich Drepper  <drepper@redhat.com>
1195
1196         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Redefine O_SYNC and
1197         O_DSYNC to match 2.6.33+ kernels.
1198         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1199         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1200         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1201         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1202         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1203         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1204
1205 2009-12-10  Ulrich Drepper  <drepper@redhat.com>
1206
1207         [BZ #11000]
1208         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Always set
1209         *herrnop before returning.
1210         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r):
1211         Likewise.
1212         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): Handle
1213         TRYAGAIN errors separately.
1214         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix error handling of
1215         *name4_r after functions.
1216
1217 2009-12-09  Ulrich Drepper  <drepper@redhat.com>
1218
1219         [BZ #11046]
1220         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
1221         version check.
1222
1223 2009-11-05  Bruno Haible  <bruno@clisp.org>
1224
1225         [BZ #11056]
1226         * posix/unistd.h (execve, fexecve, execv, execvp, execvpe): Mark the
1227         argv argument as non-NULL.
1228         (execle, execl, execlp): Mark the first ARG argument as non-NULL.
1229
1230 -2009-12-08  Ulrich Drepper  <drepper@redhat.com>
1231
1232         * sysdeps/unix/sysv/linux/bits/socket.h: Define mmsghdr and declare
1233         recvmmsg.
1234         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for recvmmsg.
1235         * sysdeps/unix/sysv/linux/Versions: Add recvmmsg for GLIBC_2.12.
1236
1237 2009-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1238
1239         * sysdeps/s390/s390-64/dl-trampoline.S: Add CFI for the call saved
1240         registers.
1241         * sysdeps/s390/s390-32/dl-trampoline.S: Likewise.
1242         * sysdeps/s390/s390-32/s390-mcount.S: Add CFI.
1243         * sysdeps/s390/s390-64/s390x-mcount.S: Add CFI.
1244
1245 2009-11-30  Ulrich Drepper  <drepper@redhat.com>
1246
1247         * sysdeps/unix/sysv/linux/bits/sched.h: Define SCHED_IDLE and
1248         SCHED_RESET_ON_FORK.
1249
1250 2009-11-26  Ulrich Drepper  <drepper@redhat.com>
1251
1252         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Avoid code
1253         only used on truly ancient kernel if configuration requires a more
1254         recent kernel.
1255
1256 2009-11-24  Ulrich Drepper  <drepper@redhat.com>
1257
1258         [BZ #3662]
1259         * stdlib/random_r.c: Fix comments for __initstate_r and __setstate_r.
1260         Patch by Christopher Neufeld <glibcbugs0000@cneufeld.ca>.
1261
1262         * sysdeps/unix/grantpt.c (pts_name): Take additional parameter,
1263         pass it on to __ptsname_internal.
1264         (grantpt): Pass stat64 pointer to pts_name.  Remove stat call here.
1265         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): New function.
1266         All the code from __ptsname_r but take additional parameter.  Use that
1267         instead of pointer to local stat64 variable.
1268         (__ptsname_r): Call __ptsname_internal with pointer to local stat64
1269         variable.
1270         * include/stdlib.h: Declare __ptsname_internal.
1271
1272         * sysdeps/unix/grantpt.c (grantpt): Use CLOSE_ALL_FDS is available
1273         before the exec.
1274         * sysdeps/unix/sysv/linux/grantpt.c: New file.
1275         * login/programs/pt_chown.c (main): Don't print message on errors
1276         when doing real work.
1277
1278         * sysdeps/unix/grantpt.c (grantpt): Only get tty group information
1279         once.
1280
1281         * csu/elf-init.c (__libc_csu_irel): New function.  Code to perform
1282         irel relocations split out from...
1283         (__libc_csu_init): ...here.
1284         * csu/libc-start.c [!SHARED]: Call __libc_csu_irel early.
1285
1286 2009-11-23  Andreas Schwab  <schwab@redhat.com>
1287
1288         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Use struct timespec
1289         for timestamps also if __USE_XOPEN2K8.
1290         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1291         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1292         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1293         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
1294
1295 2009-11-22  Ulrich Drepper  <drepper@redhat.com>
1296
1297         * nscd/connections.c (restart): Try harder to re-exec.
1298
1299         * sunrpc/create_xid.c (_create_xid): Reinitialize state after fork.
1300
1301         * sysdeps/unix/sysv/linux/ntp_gettimex.c:  New file.
1302         * sysdeps/unix/sysv/linux/Makefile: Add rules to build ntp_gettimex.
1303         * sysdeps/unix/sysv/linux/Versions: Export ntp_gettimex for GLIBC_2.12.
1304         * sysdeps/unix/sysv/linux/sys/timex.h (ntptimeval): Add tai member and
1305         some placeholders.  Redirect ntp_gettime to ntp_gettimex.
1306         * sysdeps/unix/sysv/linux/ntp_gettime.c: Adjust for header change.
1307
1308         * sysdeps/unix/sysv/linux/sys/timex.h (MOD_TAI, MOD_MICRO, MOD_NANO):
1309         Define.
1310         (STA_RONLY): Add STA_NANO, STA_MODE, and STA_CLK.
1311
1312 2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
1313
1314         [BZ #10162]
1315         * sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
1316         than software pipeline.  Properly recover from shorter read.
1317
1318 2009-11-19  Ulrich Drepper  <drepper@redhat.com>
1319
1320         [BZ #10958]
1321         * libio/libio.h (_IO_getwc_unlocked): Check for _wide_data being
1322         initialized before using it.
1323         (_IO_putwc_unlocked): Likewise.
1324
1325         [BZ #10918]
1326         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ISSET_S): Use __const
1327         in cast to not throw away const-ness of parameters.
1328         (__CPU_EQUAL_S): Likewise.
1329         (__CPU_OP_S): Likewise.
1330
1331         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
1332         F_OWNER_PGRP and mark F_OWNER_GID obsolete.  The kernel people made
1333         this gratuitous change and we have to keep compatibility.
1334         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1335         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1336         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1337         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1338         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1339         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1340
1341 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1342
1343         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
1344         of parameters of sync_file_range.
1345         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1346         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1347         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1348         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1349         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1350         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1351
1352 2009-11-16  Jakub Jelinek  <jakub@redhat.com>
1353
1354         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1355         Implement using sync_file_range2 syscall if __NR_sync_file_range2
1356         is defined.
1357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c: New
1358         file.
1359
1360 2009-11-17  Paolo Bonzini  <bonzini@gnu.org>
1361
1362         * posix/bug-regex30.c: New file.
1363         * posix/Makefile: Add rules to build and run bug-regex30.
1364         * posix/regcomp.c (re_compile_fastmap_iter): Add all multibyte
1365         character lead bytes when there is a range in a COMPLEX_BRACKET.
1366         Reported by Oleg Bylatov.
1367
1368 2009-11-17  Ulrich Drepper  <drepper@redhat.com>
1369
1370         [BZ #10969]
1371         * locale/duplocale.c (__duplocale): Handle LC_GLOBAL_LOCALE special.
1372         * locale/tst-duplocale.c: New file.
1373         * locale/Makefile (tests): Add tst-duplocale.
1374
1375         [BZ #10968]
1376         * locale/langinfo.h (_NL_LOCALE_NAME): Correct definition.
1377         Patch by Bruno Haible <bruno@clisp.org>.
1378         * locale/tst-locname.c: New file.
1379         * locale/Makefile (tests): Add tst-locname.
1380
1381         [BZ #10972]
1382         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Add new MADV_*
1383         constants from recent kernels.
1384         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1385         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
1386         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1387         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1388         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1389         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
1390
1391 2009-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1392
1393         [BZ #10162]
1394         * sysdeps/ia64/memchr.S: Use a simple loop on data shorter than
1395         software pipeline.
1396
1397 2009-11-09  Mike Frysinger  <vapier@gentoo.org>
1398
1399         * sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
1400         (fallocate): Return ENOSYS if __NR_fallocate is not defined.
1401         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
1402
1403 2009-11-06  Mike Frysinger  <vapier@gentoo.org>
1404
1405         * posix/bug-regex29.c: Include stdio.h.
1406
1407 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
1408
1409         [BZ #10939]
1410         * Versions.def: Define GLIBC_2.12 for libc.
1411         * manual/errno.texi: Add ERFKILL entry.
1412         * sysdeps/unix/sysv/linux/Versions: Add new errlist compat entries
1413         for 2.12.
1414         * sysdeps/unix/sysv/linux/bits/errno.h: Define ERFKILL is not done.
1415         * sysdeps/unix/sysv/linux/sparc/bits/errno.h: Likewise.
1416
1417         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Update F_SETOWN_EX and
1418         F_GETOWN_EX definitions according to corrected kernel definitions.
1419         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1420         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1421         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1422         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1423         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1424         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1425
1426 2009-11-12  Ulrich Drepper  <drepper@redhat.com>
1427
1428         * version.h: Bump for 2.12 development.
1429
1430 2009-11-10  Andreas Schwab  <schwab@redhat.com>
1431
1432         * resolv/mapv4v6hostent.h (map_v4v6_hostent): Return non-zero if
1433         out of buffer space.
1434         * resolv/nss_dns/dns-host.c (getanswer_r): Check for
1435         map_v4v6_hostent running out of space.
1436
1437 2009-11-10  Ulrich Drepper  <drepper@redhat.com>
1438
1439         * string/bits/string3.h (memset): If the second parameter is constant
1440         and zero there is likely no transposition.
1441         Patch by Caolan McNamara <caolanm@redhat.com.
1442
1443 2009-11-04  Philippe De Muyter  <phdm@macqel.be>
1444
1445         * sysdeps/powerpc/fpu/e_sqrt.c: Fix spelling of (Newton-)Raphson.
1446         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1447
1448 2009-10-30  Holger Hans Peter Freyther  <zecke@selfish.org>
1449
1450         * malloc/memusagestat.c (main): Fix spelling in an error message.
1451
1452 2009-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1453
1454         * elf/dl-sym.c (do_sym): Properly handle STT_GNU_IFUNC symbols.
1455         * elf/ifuncmain3.c (main): Test dlopen STT_GNU_IFUNC symbol.
1456
1457 2009-11-03  Andreas Schwab  <schwab@redhat.com>
1458
1459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
1460         readahead.
1461
1462 2009-11-03  Jakub Jelinek  <jakub@redhat.com>
1463
1464         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Don't
1465         relocate opd entry when resolving prelink conflicts.
1466
1467 2009-11-04  Jakub Jelinek  <jakub@redhat.com>
1468
1469         * misc/sys/uio.h (preadv, pwritev): Fix type of last argument
1470         when -D_FILE_OFFSET_BITS=64.
1471
1472         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (fallocate): Fix types
1473         of last two arguments when -D_FILE_OFFSET_BITS=64.
1474         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (fallocate): Likewise.
1475         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (fallocate): Likewise.
1476         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (fallocate): Likewise.
1477         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (fallocate): Likewise.
1478         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (fallocate): Likewise.
1479         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (fallocate): Likewise.
1480
1481 2009-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1482
1483         [BZ #4457]
1484         * sysdeps/generic/libgcc_s.h: New file.
1485         * sysdeps/generic/framestate.c: Include it and use LIBGCC_S_SO.
1486
1487 2009-11-01  Ulrich Drepper  <drepper@redhat.com>
1488
1489         * malloc/hooks.c (free_check): Restore locking and call _int_free
1490         appropriately.
1491
1492 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1493
1494         * version.h (VERSION): Bump for 2.11 release.
1495         * include/features.h (__GLIBC_MINOR__): Bump to 11.
1496
1497         * elf/tst-execstack.c (do_test): Add cast to avoid warning.
1498
1499         * stdio-common/scanf13.c (main): Remove unused variable wbuf.
1500
1501         * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
1502         to avoid warning.
1503         * stdlib/tst-strtoll.c (tests): Likewise.
1504
1505         [BZ #9986]
1506         * time/strftime_l.c (__strftime_internal): Allow %OC.
1507
1508         * misc/mkostemps.c: New file.
1509         * misc/mkostemps64.c: New file.
1510
1511 2009-10-30  Andreas Schwab  <schwab@redhat.com>
1512
1513         * locale/programs/locale-spec.c: Include <error.h> and
1514         <libintl.h>.
1515
1516         * sysdeps/unix/sysv/linux/readlinkat.c: Fix last change.
1517
1518 2009-10-28  Roland McGrath  <roland@redhat.com>
1519
1520         * Makefile (dist-prepare): New target.
1521         (tag-for-dist): Target removed.
1522         (glibc-%.tar): Pattern rule removed.
1523         (%.tar): New pattern rule, does simple use of git archive.
1524         (dist-version): Remove variable definition.
1525         (dist): Just depend on that.  Add .tar.xz dependency.
1526         If dist-version variable not set on command line, depend on
1527         dist-prepare, re-invoke with dist-version set via git describe.
1528
1529         * Makerules (%.xz): New pattern rule.
1530
1531 2009-10-28  Alan Modra  <amodra@bigpond.net.au>
1532
1533         * elf/ifuncdep2.c: Include ifunc-sel.h.
1534         (global): Delete.
1535         (foo1_ifunc, foo2_ifunc, foo3_ifunc): Use ifunc_sel.
1536         * elf/ifuncmain1.c (global): Delete.
1537         * elf/ifuncmain1vis.c: Likewise.
1538         * elf/ifuncmain2.c: Likewise.
1539         * elf/ifuncmain5.c: Likewise.
1540         * elf/ifuncmod3.c: Likewise.
1541         * elf/ifuncmain6pie.c: Include ifunc-sel.h.
1542         (foo_ifunc): Use ifunc_one.
1543         * elf/ifuncmain7.c: Likewise.
1544         * elf/ifuncmod1.c: Include ifunc-sel.h.
1545         (global): Define protected var.
1546         (foo_ifunc, foo_hidden_ifunc, foo_protected_ifunc): Use ifunc_sel.
1547         * elf/ifuncmod5.c: Likewise.
1548         * sysdeps/generic/elf/ifunc-sel.h: New file.
1549         * sysdeps/powerpc/elf/ifunc-sel.h: New file.
1550
1551 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
1552
1553         * elf/elf.h (R_PPC_NUM, R_PPC64_NUM): Delete unused and incorrect.
1554         (R_PPC_REL16*): Correct comments.
1555         (R_PPC_IRELATIVE, R_PPC64_IRELATIVE, R_PPC64_JMP_IREL): Define.
1556         (R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI,
1557          R_PPC64_REL16_HA): Define.
1558         * sysdeps/powerpc/powerpc32/dl-irel.h: New file.
1559         * sysdeps/powerpc/powerpc64/dl-irel.h: New file.
1560         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_fixup_plt):
1561         Delete unused "reloc" param.
1562         (__process_machine_rela): Handle R_PPC_IRELATIVE.
1563         * sysdeps/powerpc/powerpc32/dl-machine.h (__elf_machine_fixup_plt):
1564         Delete "reloc" param.
1565         (elf_machine_rela): Handle STT_GNU_IFUNC functions and
1566         R_PPC_IRELATIVE.
1567         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): New function.
1568         (elf_machine_rela): Handle STT_GNU_IFUNC functions and new ifunc
1569         relocations.
1570
1571 d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
1572
1573         [BZ #10315]
1574         * sysdeps/gnu/netinet/udp.h: Define UDP_CORK, UDP_ENCAP,
1575         UDP_ENCAP_ESPINUDP_NON_IKE, UDP_ENCAP_ESPINUDP, and
1576         UDP_ENCAP_L2TPINUDP.
1577
1578         [BZ #10349]
1579         * sysdeps/posix/tempname.c (__gen_tempname): Take new second
1580         parameter, specifying length of prefix.
1581         * stdio-common/tempname.c: Likewise.
1582         * include/stdio.h: Adjust prototypes.
1583         * libio/oldtmpfile.c: Adjust caller.
1584         * misc/mkdtemp.c: Likewise.
1585         * misc/mkostemp.c: Likewise.
1586         * misc/mkostemp64.c: Likewise.
1587         * misc/mkstemp.c:  Likewise.
1588         * misc/mkstemp64.c: Likewise.
1589         * misc/mktemp.c: Likewise.
1590         * stdio-common/tempnam.c: Likewise.
1591         * stdio-common/tmpfile.c: Likewise.
1592         * stdio-common/tmpnam.c: Likewise.
1593         * stdio-common/tmpnam_r.c: Likewise.
1594         * misc/mkstemps.c: New file.
1595         * misc/mkstemps64.c: New file.
1596         * stdlib/stdlib.h: Add prototypes.
1597         * misc/Makefile (routines): Add mkstemps and mkstemps64.
1598         * misc/Versions: Export mkstemps and mkstemps64 for GLIBC_2.11.
1599
1600 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1601
1602         * locale/iso-639.def: Add sml entry.
1603
1604         [BZ #10391]
1605         * resolv/res_send.c (send_dg): Initialize resplen.
1606
1607         [BZ #10446]
1608         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Match sigevent
1609         definition to the kernel's.
1610         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1611
1612 2009-08-18  Anders Johansson  <ajohansson@novell.com>
1613
1614         * nscd/aicache.c: Fix mixing up dataset and dataset->resp
1615         offsets and record sizes in assert()s and response sending.
1616         * nscd/grpcache.c: Likewise.
1617         * nscd/hstcache.c: Likewise.
1618         * nscd/initgrcache.c: Likewise.
1619         * nscd/pwdcache.c: Likewise.
1620
1621 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1622
1623         [BZ #10540]
1624         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r): If
1625         /etc/hosts does not exist set errnop and herrnop appropriately.
1626         Patch by Steve Langasek <vorlon@debian.org>.
1627
1628         [BZ #10553]
1629         * malloc/malloc.c (malloc_info): Fix typos in format strings.
1630         Patch by John Sullivan <jsrhbz@kanargh.force9.co.uk>.
1631
1632         [BZ #10564]
1633         * login/utmp_file.c (TIMEOUT): Increase to 10.
1634
1635         [BZ #10609]
1636         * sysdeps/unix/sysv/linux/faccessat.c: Fix handling of empty parameters
1637         for file names in case the syscall is not available.
1638         * sysdeps/unix/sysv/linux/fchmodat.c: Likewise.
1639         * sysdeps/unix/sysv/linux/fchownat.c: Likewise.
1640         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1641         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1642         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
1643         * sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
1644         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
1645         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
1646         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
1647         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1648         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Likewise.
1649         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
1650         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
1651         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
1652         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
1653         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
1654         * sysdeps/unix/sysv/linux/xmknodat.c: Likewise.
1655
1656         [BZ #10643]
1657         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): If thread
1658         creation filed, remove the request from the 'requests' list and signal
1659         the caller that the request is finished.
1660
1661         [BZ #10692]
1662         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r): Don't free buffer
1663         in error if batch_read.  Patch by Joe Landers <jlanders@vmware.com>.
1664
1665         [BZ #10713]
1666         * nis/nss_nis/nis-grp.c (internal_nis_endgrent): Start freeing blocks
1667         from intern.start.  Patch by Joe Landers <jlanders@vmware.com>.
1668
1669         [BZ #10780]
1670         * libio/ioputs.c (_IO_puts): Make sure to not return a number which
1671         overflows the int return type.
1672
1673         [BZ #10717]
1674         * malloc/memusagestat.c (main): Fix repairing of trace files.  We also
1675         have to compute maxsize_total, we have to update the variables, and
1676         the also_total handling must happen after the repair.
1677
1678         [BZ #10742]
1679         * nscd/dbg_log.c (dbg_log): Print timestamp before the message text.
1680         Based on patch by Jeffrey Bastian <jbastian@redhat.com>.
1681
1682 2009-10-27  Andreas Schwab  <schwab@redhat.com>
1683
1684         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Make sure
1685         errno is always set when returning unsuccessfully.
1686
1687 2009-10-29  Andreas Schwab  <schwab@redhat.com>
1688
1689         * malloc/memusage.c (update_data): Fix index wraparound handling
1690         so that buffer_cnt is actually reset.
1691
1692 2009-10-29  Ulrich Drepper  <drepper@redhat.com>
1693
1694         [BZ #10784]
1695         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Always copy name
1696         of the directory we look at into the static buffer if there is one
1697         at the start of the loop.
1698
1699         [BZ #10789]
1700         * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
1701         macros.  Patch by Philip Prindeville <philipp@redfish-solutions.com>.
1702
1703         [BZ #10840]
1704         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1705         __ASSUME_F_GETOWN_EX.
1706         * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
1707         if possible.
1708         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1709
1710         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
1711         and f_owner_ex.
1712         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1713         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1714         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1715         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1716         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1717         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1718
1719         [BZ #10847]
1720         * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
1721         getutmpx symbol.
1722
1723         [BZ #10823]
1724         * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
1725         addresses.  Patch by Petar Bogdanovic <petar@smokva.net>.
1726
1727 2009-10-24  Joseph Myers  <joseph@codesourcery.com>
1728
1729         * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
1730
1731 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
1732
1733         [BZ #10817]
1734         * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
1735         Reported by Ray Chason.
1736
1737 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
1738
1739         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1740         strend-sse4.
1741         * sysdeps/x86_64/multiarch/strchr.S: New file.
1742         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
1743         * sysdeps/x86_64/multiarch/strrchr.S: New file.
1744
1745 2009-10-21  Andreas Schwab  <schwab@redhat.com>
1746
1747         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
1748
1749 2009-10-19  Andreas Schwab  <schwab@redhat.com>
1750
1751         * include/math.h: Add hidden protos for __exp/__expf/__expl.
1752         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
1753         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
1754         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
1755         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
1756         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
1757         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
1758         __ieee751_expl to handle overflow.
1759
1760 2009-10-14  David S. Miller  <davem@davemloft.net>
1761
1762         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
1763         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
1764
1765 2009-10-13  Andreas Schwab  <schwab@redhat.com>
1766
1767         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
1768         !USE_MULTIARCH.
1769
1770 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
1771
1772         [BZ #10730]
1773         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
1774         Patch in part by Steve Ward <planet36@gmail.com>.
1775
1776         [BZ #10731]
1777         * stdlib/rand_r.c: Fix typo.
1778
1779         * po/cs.po: Update from translation team.
1780
1781 2009-10-06  Andreas Schwab  <schwab@redhat.com>
1782
1783         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
1784         returning if RTLD_NOLOAD.
1785
1786 2009-10-06  Roland McGrath  <roland@redhat.com>
1787
1788         * sysdeps/x86_64/multiarch/strstr-c.c
1789         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
1790
1791         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
1792         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
1793
1794         * sysdeps/x86_64/multiarch/init-arch.h
1795         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
1796         (HAS_CPU_FEATURE): New macro.
1797         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
1798         * sysdeps/x86_64/multiarch/init-arch.c
1799         (__get_cpu_features): #undef it before definition.
1800
1801 2009-10-05  Andreas Schwab  <schwab@redhat.com>
1802
1803         * locale/C-time.c: Revert week-1stday back to 19971130 and set
1804         first_weekday to 1 and first_workday to 2.
1805
1806 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
1807
1808         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
1809         F_GETOWN_EX.
1810         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1811         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1812         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1813         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1814         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1815         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1816
1817 2009-09-28  Andreas Schwab  <schwab@redhat.com>
1818
1819         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
1820         * stdio-common/vfprintf.c: Likewise.
1821
1822 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1823
1824         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
1825         (mkdirat): Call __directory_name_split_at instead of
1826         __directory_name_split.
1827
1828 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
1829
1830         * locale/programs/locale-spec.c (locale_special): If nothing matches
1831         fail with an appropriate message.
1832
1833 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1834
1835         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
1836         and XX.
1837
1838 2009-09-25  Andreas Schwab  <schwab@redhat.com>
1839
1840         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
1841         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
1842
1843 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1844
1845         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
1846
1847 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1848
1849         * iconvdata/iso646.c (gconv_init): Correctly initialize the
1850         character size elements in step data.
1851
1852 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
1853
1854         * po/hu.po: Update from translation team.
1855         * po/vi.po: Likewise.
1856
1857 2009-09-19  Roland McGrath  <roland@redhat.com>
1858
1859         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
1860
1861 2009-09-15  Roland McGrath  <roland@redhat.com>
1862
1863         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
1864         * nptl/sysdeps/pthread/configure: Regenerated.
1865         * nptl/sysdeps/x86_64/configure: Regenerated.
1866         * sysdeps/unix/sysv/linux/configure: Regenerated.
1867         * sysdeps/x86_64/elf/configure: Regenerated.
1868
1869         * Makefile (autoconf-it): Set execute bit only on top-level configure.
1870
1871         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
1872         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
1873         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
1874         * configure: Regenerated.
1875
1876 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
1877
1878         * posix/getconf.c (main): Handle -- on command line.
1879
1880 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
1881
1882         * configure.in: Support binutils 2.100 and 3.0.
1883
1884 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
1885
1886         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
1887         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
1888         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
1889         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
1890
1891 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
1892
1893         * locale/programs/ld-collate.c (struct locale_collate_t): Add
1894         unnamed_section_defined field.
1895         (collate_read): Test and set unnamed_section_defined.
1896
1897         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
1898         _POSIX2_LINE_MAX.
1899
1900 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
1901
1902         * configure.in: Support binutils 2.20.
1903
1904 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
1905
1906         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
1907         __strstr_ia32): Add attribute_hidden.
1908
1909 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1910
1911         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
1912         parsing of group entry.
1913
1914 2009-09-02  Andreas Schwab  <schwab@redhat.com>
1915
1916         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
1917         external buffer.  Always discard readahead in internal buffer.
1918         * libio/Makefile (tests): Add bug-wsetpos.
1919         * libio/bug-wsetpos.c: New file.
1920
1921 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
1922
1923         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
1924         Add attribute_hidden.
1925         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
1926         __strcasestr_sse2): Likewise.
1927         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
1928         (__fma_fma): Make static.
1929         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
1930         (__fmaf_fma): Make static.
1931
1932 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1933
1934         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
1935         reformulate in-buffer optimisation check to match code in
1936         _IO_new_file_seekoff.
1937
1938 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
1939
1940         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
1941         to srwi in 32-bit memcpy for power6.
1942
1943 2009-09-01  Andreas Schwab  <schwab@redhat.com>
1944
1945         * include/stdio.h: Declare hidden proto for fflush.
1946         * libio/iofflush.c: Add hidden weak alias for fflush.
1947
1948 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
1949
1950         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
1951         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
1952
1953 2009-08-31  Andreas Schwab  <schwab@redhat.com>
1954
1955         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
1956
1957 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
1958
1959         [BZ #10560]
1960         * malloc/malloc.c: Add local assert definition to avoid problems with
1961         memory allocation in the real one.
1962
1963 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1964
1965         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
1966         Removed.
1967         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
1968         turn off SSSE3 on Atom.
1969
1970 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
1971
1972         * stdlib/tst-strtol.c (tests): More tests.
1973         * stdlib/tst-strtoll.c (tests): Likewise.
1974
1975 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
1976
1977         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
1978
1979         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
1980
1981 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1982
1983         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
1984         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
1985
1986         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
1987
1988         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
1989
1990         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
1991
1992 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
1993
1994         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
1995
1996 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
1997
1998         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
1999         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
2000
2001         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
2002
2003         * sysdeps/x86_64/fpu/s_signbit.S: New file.
2004         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
2005
2006         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
2007         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
2008
2009         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
2010         leftover YMM_SIZE definition.
2011
2012 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
2013
2014         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
2015         union.
2016         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
2017         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
2018         Redefine.
2019         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
2020
2021         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
2022         and SET_FLOAT_WORD definitions.
2023
2024 2009-08-24  Roland McGrath  <roland@redhat.com>
2025
2026         * sysdeps/unix/syscall-template.S: New file.
2027         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
2028         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
2029         (compile-syscall): Pass mkdep and -g options as normal.
2030         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
2031         (common-generated): Don't add them here.
2032
2033 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
2034
2035         * math/s_fdim.c: In case of overflows set errno.
2036         * math/s_fdimf.c: Likewise.
2037         * math/s_fdiml.c: Likewise.
2038
2039         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
2040         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
2041         are using the inline optimizations.
2042
2043         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
2044         (__signbitf): Likewise.
2045
2046 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
2047
2048         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
2049         terminated.
2050         * posix/Makefile (tests): Add bug-regex29.
2051         * posix/bug-regex29.c: New file.
2052
2053         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
2054         older POSIX versions are selected.
2055
2056         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
2057         as well.
2058         * stdio-common/printf_fphex.c: Likewise.
2059         * stdio-common/tstdiomisc.c: Add more tests.
2060
2061         * locale/locale.h: Include xlocale.h and the thread-local locale
2062         declarations for XPG7, not XPG6.
2063
2064 2009-08-21  Andreas Schwab  <schwab@redhat.com>
2065
2066         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
2067         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
2068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
2069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
2070         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
2071         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
2072
2073 2009-08-20  Roland McGrath  <roland@redhat.com>
2074
2075         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
2076         Use l_addr instead of l_map_start (dli_fbase).
2077         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
2078         address when there is no proximate symbol.
2079         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
2080         Likewise.
2081
2082 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
2083
2084         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
2085
2086 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
2087
2088         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
2089         Also handle SIGINT.  In that case only do the cleanup and then
2090         re-raise the signal.
2091         (main): Install handler for SIGINT.
2092
2093 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2094
2095         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
2096         clobber list.
2097
2098 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2099
2100         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
2101         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
2102         tst-auditmod7b.c.
2103         (tests): Add tst-audit6 tst-audit7.
2104         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
2105         tst-auditmod7a tst-auditmod7b.
2106         ($(objpfx)tst-audit6): New.
2107         ($(objpfx)tst-audit6.out): Likewise.
2108         ($(objpfx)tst-audit7): Likewise.
2109         ($(objpfx)tst-audit7.out): Likewise.
2110         (tst-audit6-ENV): Likewise.
2111         (tst-audit7-ENV): Likewise.
2112         (CFLAGS-tst-auditmod6b.c): Likewise.
2113         (CFLAGS-tst-auditmod6c.c): Likewise.
2114         (CFLAGS-tst-auditmod7b.c): Likewise.
2115         * elf/tst-audit6.c: New file.
2116         * elf/tst-audit7.c: New file.
2117         * elf/tst-auditmod6a.c: New file.
2118         * elf/tst-auditmod6b.c: New file.
2119         * elf/tst-auditmod6c.c: New file.
2120         * elf/tst-auditmod7a.c: New file.
2121         * elf/tst-auditmod7b.c: New file.
2122         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2123         saving and restoring SSE/AVX registers to ...
2124         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2125
2126 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2127
2128         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
2129         only if SHARED is defined.
2130         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
2131
2132 2009-08-03  Jim Meyering  <meyering@redhat.com>
2133
2134         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
2135
2136 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
2137
2138         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
2139         section as the other functions for this architecture.
2140         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2141
2142 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
2143
2144         * sysdeps/x86_64/strcmp.S: Add support to compile with
2145         USE_SSSE3.  In this case palignr is used.
2146         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
2147         available but SSSE3 is, pick __str{,n}cmp_ssse3.
2148         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
2149         Add strcmp-ssse3 and strncmp-ssse3.
2150         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
2151         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
2152
2153         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
2154         warning through fake initialization.
2155
2156 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2157
2158         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
2159
2160 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2161
2162         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
2163         unique symbols.
2164
2165 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
2166
2167         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
2168         EBX from EAX = 1.  Handle EAX = 11.
2169
2170 2009-08-07  Andreas Schwab  <schwab@redhat.com>
2171
2172         * Makefile (TAGS): Use separate sed -e expressions to avoid \
2173         inside ''.
2174
2175 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
2176
2177         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
2178         hidden IFUNC functions.
2179         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2180
2181         * sysdeps/i386/i686/multiarch/strlen.S: New file.
2182
2183         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
2184         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
2185         strcasestr-c.
2186         (CFLAGS-strcspn-c.c): Define.
2187         (CFLAGS-strpbrk-c.c): Define.
2188         (CFLAGS-strspn-c.c): Define.
2189         (CFLAGS-strstr.c): Define.
2190         (CFLAGS-strcasestr.c): Define.
2191         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
2192         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
2193         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
2194         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
2195         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
2196         * sysdeps/i386/i686/multiarch/strspn.S: New file.
2197         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
2198         * sysdeps/i386/i686/multiarch/strstr.c: New file.
2199         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
2200         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
2201         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
2202         -16L instead of 0xfffffffffffffff0L.
2203         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
2204
2205 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
2206
2207         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
2208
2209 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
2210
2211         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
2212         another rewrite.  Much smaller and faster.
2213         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
2214
2215         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
2216         ss_flags from the correct location.
2217
2218 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2219
2220         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
2221         * sysdeps/i386/i686/cacheinfo.c: New file.
2222         * sysdeps/i386/i686/multiarch/Makefile: New file.
2223         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
2224         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
2225         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
2226         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
2227         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
2228         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
2229         (__cpuid_count): New. Provide the default.
2230         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
2231         (__x86_64_preferred_memory_instruction): Define only if
2232         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
2233         (intel_check_word): Use __cpuid.
2234         (handle_intel): Likewise.
2235         (handle_amd): Likewise.
2236         (__cache_sysconf): Likewise.
2237         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2238         (__cache_sysconf): Likewise.
2239         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
2240         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
2241         (get_common_indeces): Use __cpuid.
2242         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
2243         if ENABLE_SSSE3_ON_ATOM is not defined.
2244         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
2245         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
2246         popcnt instead of popcntq.
2247
2248 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
2249
2250         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
2251
2252 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
2253
2254         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
2255         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
2256         which always causes a compile error.
2257
2258         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
2259
2260         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
2261         comes from...
2262         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
2263         which always causes a compile error.
2264
2265         * debug/Makefile (tests): Add tst-longjmp_chk2.
2266         * debug/tst-longjmp_chk2.c: New file.
2267
2268         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
2269         Remove incorrect use of BP_SYM.
2270         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
2271         here now since it is more complex than just a simple check.
2272
2273         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
2274         we make no more progress.
2275
2276 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2277
2278         * math/s_fma.c: Don't define alias if __fma is a macro.
2279         * math/s_fmaf.c: Likewise.
2280         * sysdeps/x86_64/multiarch/s_fma.c: New file.
2281         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
2282         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
2283
2284         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
2285         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
2286         New macro HAS_FMA.
2287         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
2288         function.
2289         * include/libc-symbols.h (libm_ifunc): Define.
2290         * sysdeps/x86_64/multiarch/Versions: New file.
2291
2292         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
2293
2294 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2295
2296         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
2297
2298 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
2299
2300         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
2301         call that registers used in calling conventions need to be preserved.
2302         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
2303         to preserve register content if necessary.
2304         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
2305         (_dl_x86_64_restore_sse): New function.
2306         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
2307         is allowed to modify xmm/ymm registers.
2308
2309         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
2310         application's perspective.
2311         * stdio-common/scanf17.c: Likewise.
2312
2313 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
2314
2315         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
2316         size to memsz.
2317         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
2318         here.
2319         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
2320         two steps to catch bugs.
2321
2322 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
2323
2324         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
2325         determines which files are used in runtime lookups and only checks
2326         those for SSE use.
2327         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
2328         testing.
2329         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
2330         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
2331         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
2332         take a while.
2333
2334         * elf/dl-open.c: Move _dl_scope_free to...
2335         * elf/dl-scope.c: ...here.  New file.
2336         * elf/Makefile (dl-routines): Add scope.
2337
2338         * resolv/resolv.h (RES_USE_DNSSEC): Define.
2339         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
2340         RES_USE_DNSSEC.
2341         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
2342         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
2343         all the places we handled RES_USE_EDNS0 only before.
2344         Patch by Adam Tkac <atkac@redhat.com>.
2345
2346 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
2347
2348         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
2349         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
2350         Update size when reallocating.
2351
2352 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2353
2354         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
2355         functions used in ld.so modify xmm/ymm registers.
2356         * sysdeps/x86_64/Makefile:  Hook new test up.
2357         * sysdeps/x86_64/rtld-memchr.c: New file.
2358         * sysdeps/x86_64/rtld-memcmp.c: New file.
2359         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
2360         * sysdeps/x86_64/rtld-strchr.S: New file.
2361         * sysdeps/x86_64/rtld-strlen.S: New file.
2362         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
2363         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
2364
2365 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2366
2367         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
2368         strncmp-c.
2369         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
2370         (exit): Likewise.
2371         (Byte1): Likewise.
2372         (Byte2): Likewise.
2373         (Byte3): Likewise.
2374         (Byte4): Likewise.
2375         (Byte5): Likewise.
2376         (Byte6): Likewise.
2377         (next_8_bytes): Likewise.
2378         (Byte0): Remove commented out codes.
2379         (unaligned_table): Align jump table at 8 bytes.
2380         Add _sse4_2 to all labels.  Always include "../strcmp.S".
2381         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
2382         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
2383         * sysdeps/x86_64/strncmp.S: New file.
2384
2385 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
2386
2387         [BZ #10422]
2388         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
2389         kernels, dropped when eventfd2 support was added.
2390         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
2391         kernels, dropped when signalfd4 support was added.
2392         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
2393         added, name them.
2394
2395         [BZ #10452]
2396         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
2397         replies up.
2398
2399         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
2400
2401 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
2402
2403         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
2404         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
2405
2406         [BZ #10448]
2407         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
2408         callback we must touch the status to avoid using stale value.
2409
2410         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
2411         compiled in.
2412
2413 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
2414
2415         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
2416         /lib/modules/* headers anymore.  We have sane headers in the standard
2417         place now.
2418
2419 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2420
2421         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
2422         "etf3enh" and "highgprs" added.
2423         (_dl_s390_platforms): "z10" added.
2424         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
2425         Increased for the new entries.
2426         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
2427         HWCAP_S390_HIGH_GPRS added.
2428
2429         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
2430         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
2431         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
2432         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
2433         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
2434
2435 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
2436
2437         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
2438         avoid additional cpuid instructions.  Most of the information is
2439         stored somewhere.
2440
2441         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
2442         cache descriptors.
2443         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
2444
2445         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
2446         SSSE3 bit for Atoms.
2447         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
2448         here anymore.
2449
2450         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
2451         structure before copying it to avoid warning.
2452         * posix/tst-rfc3484-2.c (do_test): Likewise.
2453         * posix/tst-rfc3484-3.c (do_test): Likewise.
2454
2455         [BZ #10416]
2456         * include/unistd.h: Make header file suitable for C++ test cases.
2457         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
2458
2459         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
2460         stack alignment in the exit code.
2461
2462         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
2463         potentially be zero.
2464
2465         * elf/tst-unique1.c: Extend test to check for unloading DSO with
2466         unique symbol definition.
2467         Patch by Jakub Jelinek.
2468         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
2469         make sure the object with the definition cannot be unloaded.  Adjust
2470         a few types.
2471         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
2472         the unique symbol hash table should not be const.
2473
2474 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
2475
2476         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
2477         unnecesary variables.  Comment fixes.
2478
2479 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2480
2481         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
2482         Use NONASCII_CASE information provided by the locale to determine
2483         whether optimized string load function can be used.  Minor cleanups.
2484
2485 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2486
2487         * string/strcasestr.c (STRCASESTR): New macro.
2488         (__strcasestr): Renamed to ..
2489         (STRCASESTR): ...this.
2490         * string/strstr.c (STRSTR): New macro.
2491         (strstr): Renamed to ..
2492         (STRSTR): ...this.
2493         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2494         strstr-c strcasestr-c
2495         (CFLAGS-strstr.c): New.
2496         (CFLAGS-strcasestr.c): Likewise.
2497         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
2498         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
2499         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
2500         * sysdeps/x86_64/multiarch/strstr.c: New file.
2501
2502 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
2503
2504         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
2505         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
2506         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
2507         _NL_CTYPE_NONASCII_CASE.
2508         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
2509         field.
2510         (ctype_finish): Check whether there are any 8-bit characters outside
2511         the range ASCII has or whether the mapping isn't the same as for
2512         ASCII (±0x20).  Set nonascii_case appropriately.
2513         (ctype_output): Add output handler for nonascii_case.
2514
2515 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
2516
2517         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
2518         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
2519
2520 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2521
2522         [BZ #10360]
2523         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
2524         0xffff in the EDNS0 record.
2525
2526 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2527
2528         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
2529         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
2530         is written before the list head update.
2531         Patch by Andreas Schwab <aschwab@redhat.com>.
2532
2533 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2534             Jakub Jelinek  <jakub@redhat.com>
2535
2536         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
2537         corruption thread-safe.
2538
2539 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
2540
2541         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
2542         overrides atomic_compare_and_exchange_val_rel, define to
2543         atomic_compare_and_exchange_val_rel by default, otherwise default
2544         to catomic_compare_and_exchange_val_acq.
2545         (catomic_compare_and_exchange_bool_rel): If arch overrides
2546         atomic_compare_and_exchange_bool_rel, define to
2547         atomic_compare_and_exchange_bool_rel by default.
2548         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
2549         Use catomic_compare_and_exchange_val_rel instead of
2550         catomic_compare_and_exchange_val_acq.
2551
2552 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
2553
2554         * sysdeps/generic/ldsodefs.h: Add prototype for
2555         _dl_higher_prime_number.
2556         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
2557
2558         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
2559         restoring of ymm registers a bit.
2560
2561 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
2562
2563         * sysdeps/x86_64/memcmp.S: New file.
2564
2565 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
2566
2567         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
2568         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
2569         pointers in writable memory.
2570
2571 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2572
2573         * config.h.in: Add HAVE_AVX_SUPPORT entry.
2574         * config.make.in: Add config-cflags-avx entry.
2575         * configure.in: Substitute libc_cv_cc_avx.
2576         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
2577         * elf/tst-audit4.c: New file.
2578         * elf/tst-audit5.c: New file.
2579         * elf/tst-auditmod4a.c: New file.
2580         * elf/tst-auditmod4b.c: New file.
2581         * elf/tst-auditmod5a.c: New file.
2582         * elf/tst-auditmod5b.c: New file.
2583         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
2584         link-defines.sym.
2585         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
2586         (La_x86_64_vector): Likewise.
2587         (La_x86_64_regs): Append lr_vector.
2588         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
2589         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
2590         saving and restoring SSE registers to ...
2591         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
2592         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
2593         <link-defines.h>.
2594         (_dl_runtime_profile): Use LR_SIZE to allocate space for
2595         La_x86_64_regs.  Allocate extra space and jump to memory at
2596         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
2597         (save_and_restore_vector_sse): New.
2598         (save_and_restore_vector_avx): Likewise.
2599         (check_avx): Likewise.
2600         (save_and_restore_vector): Likewise.
2601         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
2602         HAVE_AVX_SUPPORT.
2603         * sysdeps/x86_64/link-defines.sym: New file.
2604
2605 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
2606
2607         * elf/do-lookup.h: Removed after folding content into...
2608         * elf/dl-lookup.c: ...here.
2609
2610         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
2611
2612 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
2613
2614         * configure.in: Check for gnu_unique_symbol symbol type.
2615         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
2616         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
2617         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
2618         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
2619         change.
2620         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
2621         unique symbol table.
2622         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
2623         for first namespace.
2624         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
2625         unique symbol hash table.
2626         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
2627         * elf/tst-unique1.c: New file.
2628         * elf/tst-unique1mod1.c: New file.
2629         * elf/tst-unique1mod2.c: New file.
2630         * elf/tst-unique2.c: New file.
2631         * elf/tst-unique2mod1.c: New file.
2632         * elf/tst-unique2mod2.c: New file.
2633
2634 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
2635
2636         * elf/elf.h (STB_GNU_UNIQUE): Define.
2637
2638         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
2639         from...
2640         * include/inline-hashtab.h: ...here.
2641         (htab_expand): Adjust for renamed function.  Correct memory handling.
2642
2643 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
2644
2645         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
2646
2647 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
2648
2649         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
2650         (PPC_FEATURE_HAS_VSX): Likewise.
2651
2652 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
2653
2654         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
2655         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
2656
2657         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
2658         aligned to 16 byte boundaries.
2659         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2660         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2661         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2662
2663 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2664
2665         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
2666         * config.make.in (config-cflags-sse4): New variable.
2667         * configure.in: Substitute libc_cv_cc_sse4.
2668         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
2669         HAVE_SSE4_SUPPORT.
2670         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2671         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
2672         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
2673         * sysdeps/x86_64/multiarch/strcspn.S: New file.
2674         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
2675         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
2676         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
2677         * sysdeps/x86_64/multiarch/strspn.S: New file.
2678
2679 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2680
2681         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
2682         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
2683         (tests): Add tst-audit3 for x86_64.
2684         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
2685         ($(objpfx)tst-audit3): Define.
2686         ($(objpfx)tst-audit3.out): Define.
2687         (tst-audit3-ENV): Define.
2688         * elf/tst-audit3.c: New file.
2689         * elf/tst-auditmod3a.c: New file.
2690         * elf/tst-auditmod3b.c: New file.
2691         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
2692         and restore xmm6.
2693
2694         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
2695         (__stpncpy): Renamed to ...
2696         (STPNCPY): This.
2697         (stpncpy): Create alias only if STPNCPY is not defined.
2698         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
2699         defined.
2700         (strncpy): Renamed to ...
2701         (STRNCPY): This.
2702         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2703          stpncpy-c strncpy-c for string.
2704         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
2705         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
2706         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
2707         * sysdeps/x86_64/multiarch/strcpy.S: New file.
2708         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
2709         * sysdeps/x86_64/multiarch/strncpy.S: New file.
2710
2711 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
2712
2713         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
2714         adding to fast bin list.
2715
2716 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
2717
2718         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
2719         inet_makeaddr.  This worked only with class-based networks.
2720         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
2721         Likewise.
2722
2723         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
2724         recognize all types.
2725         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
2726         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
2727         be in host byte order.
2728
2729 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
2730
2731         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
2732         (MODEL_OFFSET): Define.
2733         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
2734         family and model.
2735         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
2736         out common code into new function get_common_indeces. Determine
2737         extended family and model for Intel processors.
2738
2739 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
2740
2741         * resolv/resolv.h: Define RES_SNGLKUPREOP.
2742         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
2743         option.
2744         * resolv/res_send.c (reopen): New function.  Broken out of...
2745         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
2746         fallback mechanism.  If single-request fails switch to
2747         single-request-reopen mode which opens a new socket for the second
2748         request.
2749
2750 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
2751
2752         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
2753         (CHECK_SP): Use it.
2754
2755 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
2756
2757         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
2758         for saved registers.
2759         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2760         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2761         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2762
2763 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
2764
2765         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
2766
2767 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
2768
2769         * po/id.po: Update from translation team.
2770
2771         * po/bg.po: Update from translation team.
2772
2773 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2774
2775         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
2776         defined.
2777         (strncmp): Renamed to STRNCMP.
2778         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2779         strncmp-c for string.
2780         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
2781         * sysdeps/x86_64/multiarch/strcmp.S: New file.
2782         * sysdeps/x86_64/multiarch/strncmp.S: New file.
2783         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
2784
2785 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2786
2787         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
2788         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
2789         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
2790         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
2791         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
2792         ifuncmain7static.c.
2793         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
2794         ifuncmain7static, and ifuncmain7picstatic.
2795         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
2796         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
2797         $(objpfx)ifuncmain7pie.out.
2798         (modules-names): Add ifuncmod5 ifuncmod6
2799         (ifuncmod5.so-no-z-defs): Define.
2800         (ifuncmod6.so-no-z-defs): Define.
2801         (CFLAGS-ifuncmain5pic.c): Define.
2802         (CFLAGS-ifuncmain5picstatic.c): Define.
2803         (CFLAGS-ifuncmain5staticpic.c): Define.
2804         (CFLAGS-ifuncdep5pic.c): Define.
2805         (CFLAGS-ifuncmain7pic.c): Define.
2806         (CFLAGS-ifuncmain7picstatic.c): Define.
2807         (CFLAGS-ifuncmain1staticpie.c): Define.
2808         (CFLAGS-ifuncmain5pie.c): Define.
2809         (CFLAGS-ifuncmain6pie.c): Define.
2810         (CFLAGS-ifuncmain7pie.c): Define.
2811         ($(objpfx)ifuncmain1staticpie.out): Define.
2812         ($(objpfx)ifuncmain1staticpie): Define.
2813         ($(objpfx)ifuncmain5pie.out): Define.
2814         ($(objpfx)ifuncmain5pie): Define.
2815         ($(objpfx)ifuncmain6pie.out): Define.
2816         ($(objpfx)ifuncmain6pie): Define.
2817         ($(objpfx)ifuncmain5): Define.
2818         ($(objpfx)ifuncmain5pic): Define.
2819         ($(objpfx)ifuncmain5static): Define.
2820         ($(objpfx)ifuncmain5staticpic): Define.
2821         ($(objpfx)ifuncmain5picstatic): Define.
2822         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
2823         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
2824         ifuncmain6pie.out.
2825         * elf/b/elf/ifuncmain1staticpie.c: New file.
2826         * elf/ifuncdep5.c: New file.
2827         * elf/ifuncdep5pic.c: New file.
2828         * elf/ifuncmain5.c: New file.
2829         * elf/ifuncmain5pic.c: New file.
2830         * elf/ifuncmain5picstatic.c: New file.
2831         * elf/ifuncmain5pie.c: New file.
2832         * elf/ifuncmain5static.c: New file.
2833         * elf/ifuncmain5staticpic.c: New file.
2834         * elf/ifuncmain6pie.c: New file.
2835         * elf/ifuncmain7.c: New file.
2836         * elf/ifuncmain7pic.c: New file.
2837         * elf/ifuncmain7picstatic.c: New file.
2838         * elf/ifuncmain7pie.c: New file.
2839         * elf/ifuncmain7static.c: New file.
2840         * elf/ifuncmod5.c: New file.
2841         * elf/ifuncmod6.c: New file.
2842
2843 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
2844
2845         [BZ #10085]
2846         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
2847         (nss_endgrent): New variable.
2848         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
2849         fields. Change type of files to bool and adjust all users.
2850         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
2851         (internal_endgrent): Call nss_endgrent if necessary.
2852         (add_group): New function.  Broken out of...
2853         (check_and_add_group): ...here.
2854         (getgrent_next_nss): Remove test that any callback is available.
2855         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
2856         callback.  If there is no blacklist we can trust the results returned
2857         by the initgroups_dyn callback.  In case there is a callback and we
2858         find a group entry for the group ID but it doesn't contain the
2859         correct member, switch to the slow mode and use getgrent_r.
2860         (internal_getgrent_r): When we see a +: entry, determine whether
2861         there is any callback and which we can use the initgroups_dyn
2862         callback.
2863
2864 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
2865
2866         * malloc/malloc.c (_int_malloc): Add some consistency checks.
2867         (_int_free): Likewise.
2868
2869         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
2870         AF_IEEE802154.
2871         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2872         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
2873         and ARPHRD_IEEE802154_PHY.
2874
2875         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
2876         relative to generic Linux version.
2877
2878 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2879
2880         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
2881         ($(objpfx)ifuncmain1vispie): Likewise.
2882
2883 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2884
2885         * login/Makefile: Build pt_chown as PIE.
2886
2887 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
2888
2889         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
2890         a format string.
2891         * elf/sln.c (usage): Likewise.
2892         * malloc/memusage.sh (do_help): Likewise.
2893         * nss/getent.c (more_help): Likewise.
2894         * posix/getconf.c (main): Likewise.
2895         * sunrpc/rpcinfo.c (usage): Likewise.
2896         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2897
2898 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2899
2900         * login/programs/pt_chown.c: Use libcap to drop privileges other than
2901         those needed.
2902         * login/Makefile: If necessary link pt_chown with -lcap.
2903         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
2904         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
2905
2906 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
2907
2908         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
2909         comparisons.
2910         * string/test-memchr.c (do_random_tests): Test very large lengths
2911         as well.
2912
2913 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2914
2915         * Makeconfig (+link-pie): Define.
2916         (+prectorS): Define.
2917         (+postctorS): Define.
2918         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
2919         * nscd/Makefile ($(objpfx)nscd): Likewise.
2920
2921 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
2922
2923         [BZ #10107]
2924         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
2925         with cmplwi.
2926         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2927
2928 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
2929
2930         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
2931         into ...
2932         * sysdeps/unix/grantpt.c: ...here.
2933
2934 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
2935
2936         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
2937         chmod if it is necessary.
2938
2939         [BZ #10166]
2940         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
2941         when the slave device is in devpts or devfs.
2942
2943         [BZ #10183]
2944         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
2945
2946         [BZ #10195]
2947         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
2948         of nd_opt_home_agent_info_preference to uint16_t.
2949         Patch by Arnaud Ebalard <arno@natisbad.org>.
2950
2951         [BZ #10207]
2952         * nss/getent.c: Add support for printing gshadow data.
2953
2954         [BZ #10203]
2955         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
2956         not just the currently used one and those which follow.
2957         Patch by Joe Landers <jlanders@vmware.com>.
2958
2959         [BZ #10196]
2960         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
2961         * libio/Makefile: Run tst-fgetwc with necessary envvar.
2962         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
2963
2964         [BZ #10217]
2965         * stdlib/abort.c: Define variable __abort_msg.
2966         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
2967         * include/stdlib.h: Declare __abort_msg.
2968         * assert/assert-perr.c: Don't free buffer for message immediately.
2969         Store atomically in __abort_msg and free old buffer if necessary.
2970         * assert/assert.c: Likewise.
2971         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
2972         store pointer in __abort_msg, and possibly free old string.
2973         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2974
2975         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
2976
2977         [BZ #10211]
2978         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
2979         handle leap seconds if they are available.
2980         Patch by Akinori Hattori <hattya@gentoo.org>.
2981
2982         * timezone/tzselect.ksh: Update from tzcode2009i.
2983         * timezone/zdump.c: Likewise.
2984         * timezone/zic.c: Likewise.
2985
2986         * timezone/africa: Update from tzdata2009i.
2987         * timezone/antarctica: Likewise.
2988         * timezone/asia: Likewise.
2989         * timezone/australasia: Likewise.
2990         * timezone/backward: Likewise.
2991         * timezone/etcetera: Likewise.
2992         * timezone/europe: Likewise.
2993         * timezone/factory: Likewise.
2994         * timezone/iso3166.tab: Likewise.
2995         * timezone/leapseconds: Likewise.
2996         * timezone/northamerica: Likewise.
2997         * timezone/pacificnew: Likewise.
2998         * timezone/solar87: Likewise.
2999         * timezone/solar88: Likewise.
3000         * timezone/solar89: Likewise.
3001         * timezone/southamerica: Likewise.
3002         * timezone/systemv: Likewise.
3003         * timezone/yearistype: Likewise.
3004         * timezone/zone.tab: Likewise.
3005
3006 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
3007
3008         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
3009         STT_GNU_IFUNC symbol or in 8 into type_class.
3010
3011         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
3012         instead of Elf64_Addr.
3013
3014 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
3015
3016         * po/sv.po: Update from translation team.
3017
3018         [BZ #10229]
3019         * misc/sys/select.h (__NFDBITS): Expression should have type int.
3020         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
3021         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
3022         the C version.
3023
3024 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
3025
3026         * Versions.def: Add GLIBC_2.11 for libpthread.
3027
3028 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
3029
3030         * resolv/res_send.c (send_dg): Remember we switched to
3031         single-request mode.
3032
3033 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
3034
3035         * dlfcn/dlfcn.h: Remove comma at end of enum.
3036         Patch by J.H.M. Dassen <rdassen@redhat.com>.
3037
3038         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
3039         parsing mode string.
3040
3041 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
3042
3043         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
3044
3045         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
3046
3047         * sysdeps/x86_64/multiarch/strlen.S: New file.
3048         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
3049         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
3050         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
3051         content.
3052
3053         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
3054         is defined.
3055
3056 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
3057
3058         * sysdeps/x86_64/strlen.S: Minor optimizations.
3059
3060 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3061
3062         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
3063         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
3064         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
3065         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
3066         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
3067         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
3068         ifuncmain3.c, ifuncmod3.c,.
3069         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
3070         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
3071         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
3072         ifuncmain4picstatic.
3073         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
3074         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
3075         ifuncmain3, ifuncmain4.
3076         (tests): Depend on $(objpfx)ifuncmain1pie.out and
3077         $(objpfx)ifuncmain1vispie.out.
3078         (modules-names): Add ifuncmod1 ifuncmod3.
3079         (generated): Add ifuncmain1pie ifuncmain1pie.out
3080         ifuncmain1vispie ifuncmain1vispie.out.
3081         Define rules to build and run the tests.
3082         * elf/ifuncdep1.c: New file.
3083         * elf/ifuncdep1pic.c: New file.
3084         * elf/ifuncdep2.c: New file.
3085         * elf/ifuncdep2pic.c: New file.
3086         * elf/ifuncmain1.c: New file.
3087         * elf/ifuncmain1pic.c: New file.
3088         * elf/ifuncmain1picstatic.c: New file.
3089         * elf/ifuncmain1pie.c: New file.
3090         * elf/ifuncmain1static.c: New file.
3091         * elf/ifuncmain1staticpic.c: New file.
3092         * elf/ifuncmain1vis.c: New file..
3093         * elf/ifuncmain1vispic.c: New file..
3094         * elf/ifuncmain1vispie.c: New file.
3095         * elf/ifuncmain2.c: New file.
3096         * elf/ifuncmain2pic.c: New file.
3097         * elf/ifuncmain2picstatic.c: New file.
3098         * elf/ifuncmain2static.c: New file.
3099         * elf/ifuncmain3.c: New file.
3100         * elf/ifuncmain4.c: New file.
3101         * elf/ifuncmain4picstatic.c: New file.
3102         * elf/ifuncmain4static.c: New file.
3103         * elf/ifuncmod1.c: New file.
3104         * elf/ifuncmod3.c: New file.
3105
3106 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
3107
3108         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
3109
3110 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
3111
3112         [BZ #10221]
3113         * posix/Makefile (routines): Add execvpe.
3114         * posix/Versions: Export execvpe for GLIBC_2.11.
3115         * posix/execvp.c: Now only a wrapper.  Move code to...
3116         * posix/execvpe.c: ...here.  New file.
3117         * posix/unistd.h: Declare execvpe.
3118
3119 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
3120
3121         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
3122         for STT_GNU_IFUNC handling for efficiency.
3123         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3124
3125         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
3126         _exit.
3127         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
3128
3129 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3130
3131         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
3132         for !SHARED.
3133
3134 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
3135
3136         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
3137         is not defined.
3138         (__rela_iplt_start): New declaration.
3139         (__rela_iplt_end): Likewise.
3140         (__rel_iplt_start): Likewise.
3141         (__rel_iplt_end): Likewise.
3142         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
3143         * elf/elf.h (R_386_IRELATIVE): New macro.
3144         (R_X86_64_IRELATIVE): New macro.
3145         (R_386_NUM): Updated.
3146         (R_X86_64_NUM): Likewise.
3147         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
3148         (libc_ifunc_hidden_def): New macro.
3149         * sysdeps/generic/dl-irel.h: New file.
3150         * sysdeps/i386/dl-irel.h: New file.
3151         * sysdeps/x86_64/dl-irel.h: New file.
3152         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
3153         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
3154         Handle R_386_IRELATIVE.
3155         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
3156         (elf_machine_lazy_rela): Likewise.
3157         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
3158         R_X86_64_IRELATIVE.
3159         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
3160
3161 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
3162
3163         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
3164         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
3165         are no differences.  If an architecture has bits in CPUID index 1
3166         meaning different things the values for the COMMON_CPUID_INDEX_1
3167         index must not be set.
3168         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
3169         (HAS_POPCOUNT): ...this.  New macro.
3170         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
3171         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
3172         to set the value for Intel and AMD architectures.
3173         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
3174         INTEL_CPUID_INDEX_1.
3175         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
3176         change.
3177
3178 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3179
3180         * configure.in: Move AC_CANONICAL_HOST before first use of $host
3181         and $build.
3182
3183 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
3184
3185         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
3186         (__expm1l): Set errno to ERANGE on overflow.
3187         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
3188         (__tanl): Set errno to EDOM for Â±Inf.
3189         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
3190         (__cosl): Set errno to EDOM for Â±Inf.
3191         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
3192         (__sinl): Set errno to EDOM for Â±Inf.
3193
3194         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
3195         defined, use it.
3196         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
3197         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
3198         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
3199
3200 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
3201
3202         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
3203         code accessing it.
3204         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
3205
3206 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
3207
3208         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
3209         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
3210         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
3211         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
3212
3213         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
3214         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
3215         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
3216         defined.
3217         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
3218         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3219
3220 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
3221
3222         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
3223         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
3224         is, either do nothing at all if __ASSUME_ACCEPT4, or
3225         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
3226         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
3227         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
3228         define.
3229         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
3230         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
3231         internal_accept4 in socket directory.
3232
3233 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3234
3235         * sysdeps/ia64/configure.in: New file.
3236
3237 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3238
3239         [BZ #10162]
3240         * sysdeps/ia64/memchr.S: Use speculative load.
3241
3242         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
3243         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
3244         use it.
3245
3246         * sysdeps/i386/__longjmp.S: Add .text.
3247         * sysdeps/x86_64/__longjmp.S: Likewise.
3248
3249 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
3250
3251         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
3252         __ASSUME_ACCEPT4 for IA-64.
3253
3254 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
3255
3256         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
3257
3258         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
3259         (SOCKOP_accept4): Define.
3260
3261 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
3262
3263         Sun approved the change of the license.
3264         * sunrpc/auth_des.c: Replace license text.
3265         * sunrpc/auth_none.c: Likewise.
3266         * sunrpc/auth_unix.c: Likewise.
3267         * sunrpc/authdes_prot.c: Likewise.
3268         * sunrpc/authuxprot.c: Likewise.
3269         * sunrpc/bindrsvprt.c: Likewise.
3270         * sunrpc/clnt_gen.c: Likewise.
3271         * sunrpc/clnt_perr.c: Likewise.
3272         * sunrpc/clnt_raw.c: Likewise.
3273         * sunrpc/clnt_simp.c: Likewise.
3274         * sunrpc/clnt_tcp.c: Likewise.
3275         * sunrpc/clnt_udp.c: Likewise.
3276         * sunrpc/clnt_unix.c: Likewise.
3277         * sunrpc/des_crypt.c: Likewise.
3278         * sunrpc/des_soft.c: Likewise.
3279         * sunrpc/get_myaddr.c: Likewise.
3280         * sunrpc/getrpcport.c: Likewise.
3281         * sunrpc/key_call.c: Likewise.
3282         * sunrpc/key_prot.c: Likewise.
3283         * sunrpc/openchild.c: Likewise.
3284         * sunrpc/pm_getmaps.c: Likewise.
3285         * sunrpc/pm_getport.c: Likewise.
3286         * sunrpc/pmap_clnt.c: Likewise.
3287         * sunrpc/pmap_prot.c: Likewise.
3288         * sunrpc/pmap_prot2.c: Likewise.
3289         * sunrpc/pmap_rmt.c: Likewise.
3290         * sunrpc/rpc/auth.h: Likewise.
3291         * sunrpc/rpc/auth_unix.h: Likewise.
3292         * sunrpc/rpc/clnt.h: Likewise.
3293         * sunrpc/rpc/des_crypt.h: Likewise.
3294         * sunrpc/rpc/key_prot.h: Likewise.
3295         * sunrpc/rpc/netdb.h: Likewise.
3296         * sunrpc/rpc/pmap_clnt.h: Likewise.
3297         * sunrpc/rpc/pmap_prot.h: Likewise.
3298         * sunrpc/rpc/pmap_rmt.h: Likewise.
3299         * sunrpc/rpc/rpc.h: Likewise.
3300         * sunrpc/rpc/rpc_des.h: Likewise.
3301         * sunrpc/rpc/rpc_msg.h: Likewise.
3302         * sunrpc/rpc/svc.h: Likewise.
3303         * sunrpc/rpc/svc_auth.h: Likewise.
3304         * sunrpc/rpc/types.h: Likewise.
3305         * sunrpc/rpc/xdr.h: Likewise.
3306         * sunrpc/rpc_clntout.c: Likewise.
3307         * sunrpc/rpc_cmsg.c: Likewise.
3308         * sunrpc/rpc_common.c: Likewise.
3309         * sunrpc/rpc_cout.c: Likewise.
3310         * sunrpc/rpc_dtable.c: Likewise.
3311         * sunrpc/rpc_hout.c: Likewise.
3312         * sunrpc/rpc_main.c: Likewise.
3313         * sunrpc/rpc_parse.c: Likewise.
3314         * sunrpc/rpc_parse.h: Likewise.
3315         * sunrpc/rpc_prot.c: Likewise.
3316         * sunrpc/rpc_sample.c: Likewise.
3317         * sunrpc/rpc_scan.c: Likewise.
3318         * sunrpc/rpc_scan.h: Likewise.
3319         * sunrpc/rpc_svcout.c: Likewise.
3320         * sunrpc/rpc_tblout.c: Likewise.
3321         * sunrpc/rpc_util.c: Likewise.
3322         * sunrpc/rpc_util.h: Likewise.
3323         * sunrpc/rpcinfo.c: Likewise.
3324         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
3325         * sunrpc/rpcsvc/key_prot.x: Likewise.
3326         * sunrpc/rpcsvc/klm_prot.x: Likewise.
3327         * sunrpc/rpcsvc/mount.x: Likewise.
3328         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
3329         * sunrpc/rpcsvc/rex.x: Likewise.
3330         * sunrpc/rpcsvc/rstat.x: Likewise.
3331         * sunrpc/rpcsvc/rusers.x: Likewise.
3332         * sunrpc/rpcsvc/sm_inter.x: Likewise.
3333         * sunrpc/rpcsvc/spray.x: Likewise.
3334         * sunrpc/rpcsvc/yppasswd.x: Likewise.
3335         * sunrpc/rtime.c: Likewise.
3336         * sunrpc/svc.c: Likewise.
3337         * sunrpc/svc_auth.c: Likewise.
3338         * sunrpc/svc_authux.c: Likewise.
3339         * sunrpc/svc_raw.c: Likewise.
3340         * sunrpc/svc_run.c: Likewise.
3341         * sunrpc/svc_simple.c: Likewise.
3342         * sunrpc/svc_tcp.c: Likewise.
3343         * sunrpc/svc_udp.c: Likewise.
3344         * sunrpc/svc_unix.c: Likewise.
3345         * sunrpc/svcauth_des.c: Likewise.
3346         * sunrpc/xcrypt.c: Likewise.
3347         * sunrpc/xdr.c: Likewise.
3348         * sunrpc/xdr_array.c: Likewise.
3349         * sunrpc/xdr_float.c: Likewise.
3350         * sunrpc/xdr_mem.c: Likewise.
3351         * sunrpc/xdr_rec.c: Likewise.
3352         * sunrpc/xdr_ref.c: Likewise.
3353         * sunrpc/xdr_sizeof.c: Likewise.
3354         * sunrpc/xdr_stdio.c: Likewise.
3355
3356         * po/da.po: Update from translation team.
3357
3358 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3359
3360         * sysdeps/sh/____longjmp_chk.S: New file.
3361         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
3362         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3363
3364 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
3365             Ulrich Drepper  <drepper@redhat.com>
3366
3367         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
3368         (__nscd_cache_search): Assume each entry in the
3369         hash chain needs one hashentry and half of datahead.  Use
3370         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
3371
3372 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
3373
3374         * posix/sys/wait.h: Fix typos.  Pretty printing.
3375         * stdlib/stdlib.h: Likewise.  Correct comments.
3376
3377         [BZ #10159]
3378         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
3379
3380         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
3381         patch.
3382
3383 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3384
3385         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
3386         Use it if we absolutely cannot reach any more correct list elements
3387         because that many do not fit into the currently mapped database.
3388
3389 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
3390
3391         * nscd/nscd_helper.c: Include stddef.h.
3392         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
3393         in a couple of places.  Return NULL if trail is not less than
3394         datasize, don't consider dataheads with length smaller than
3395         offsetof (struct datahead, data) + datalen.
3396         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
3397         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
3398         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3399         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3400         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3401         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3402         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3403
3404         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
3405         Rename ...
3406         (fallocate64): ... to this.
3407         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
3408         Rename ...
3409         (fallocate64): ... to this.
3410         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
3411         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
3412         fallocate64@@GLIBC_2.10.
3413         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
3414         fallocate64@@GLIBC_2.11.
3415         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
3416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
3417         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
3418         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
3419
3420         * nscd/selinux.c (nscd_avc_destroy): Removed.
3421         * nscd/selinux.h (nscd_avc_destroy): Likewise.
3422         * nscd/nscd.c (termination_handler): Don't call
3423         nscd_avc_destroy.
3424
3425 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
3426
3427         * include/atomic.h: Formatting.
3428         (catomic_compare_and_exchange_val_acq): Don't define if already
3429         defined by bits/atomic.h.
3430
3431 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
3432
3433         * math/libm-test.inc (expm1_test): Add test for range error.
3434
3435         * Versions.def: Add GLIBC_2.11 for libc.
3436         * debug/Makefile (routines): Add longjmp_chk.
3437         Add rules to build and run tst-longjmp_chk.
3438         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
3439         * debug/longjmp_chk.c: New file.
3440         * debug/tst-longjmp_chk.c: New file.
3441         * include/bits/setjmp2.: New file.
3442         * include/stdio.h: Mark __fortify_fail as internal_function.
3443         * setjmp/Makefile (headers): Add bits/setjmp2.h.
3444         * setjmp/bits/setjmp2.h: New file.
3445         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
3446         of the aliases.
3447         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
3448         defined.
3449         * sysdeps/i386/____longjmp_chk.S: New file.
3450         * sysdeps/x86_64/____longjmp_chk.S: New file.
3451         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
3452         * sysdeps/x86_64/__longjmp.S: Likewise.
3453
3454         * version.h: Bump for 2.11 development.
3455
3456         * elf/check-execstack.c: New file.
3457         * elf/Makefile: Add rules to build and run check-execstack.
3458
3459 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
3460
3461         * version.h (VERSION): Bump to 2.10.1.
3462
3463         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
3464         compatibility functions.
3465         * nss/getXXent_r.c: Likewise.
3466         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
3467         * gshadow/getsgnam_r.c: Likewise.
3468         * gshadow/Version: Remove duplicate entries.
3469
3470         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
3471         for recent processor.
3472         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
3473         Likewise.
3474
3475 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
3476
3477         * version.h (VERSION): Bump for 2.10 release.
3478         * include/features.h (__GLIBC_MINOR__): Bump to 10.
3479
3480         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
3481         same place we add ASFLAGS-config.
3482
3483 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
3484
3485         [BZ #10128]
3486         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
3487         or FORMERR and the other NOERROR, don't raise an error.
3488
3489 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
3490
3491         [BZ #10118]
3492         * Makeconfig (+asflags): New variable based upon ASFLAG or
3493         asflags-cpu.
3494         (ASFLAGS): Add override to set ASFLAGS to +asflags.
3495         * config.make.in (asflags-cpu): Add variable based upon
3496         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
3497         the assembler.
3498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3499         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
3500         recognizes power6 instruction set due to passing -mcpu=power6 from
3501         --with-cpu=power6 when compiling .S files.
3502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3503         Likewise.
3504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3505         Likewise.
3506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3507         Likewise.
3508
3509 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
3510
3511         * string/stratcliff.c (do_test): Test for zero length
3512         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
3513         at the end of the page.
3514
3515 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
3516
3517         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
3518
3519         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
3520         count is zero.
3521
3522         * po/da.po: Update from translation team.
3523
3524 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
3525
3526         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
3527         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
3528
3529 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
3530
3531         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
3532         and READ_IMPLIES_EXEC.
3533
3534 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
3535
3536         * po/da.po: Update from translation team.
3537
3538 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
3539
3540         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
3541         comment change.
3542
3543 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
3544
3545         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
3546         to MAP_ANON in PROT_NONE mmap64 call.
3547         (open_archive): Likewise.
3548         (file_data_available_p): Use mmap64 instead of mremap.
3549         (enlarge_archive): Likewise.  Update head if ah->addr changed.
3550         Attempt to reserve address space after mmap64 region.
3551
3552 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
3553
3554         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
3555         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
3556         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3557
3558         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
3559         atanh should set ERANGE.
3560
3561         [BZ #10087]
3562         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
3563         result of lookup to make call to implement STT_GNU_IFUNC.
3564         (_dl_profile_fixup): Likewise.
3565         Patch by H.J. Lu <hjl.tools@gmail.com>.
3566
3567         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
3568         warning.
3569
3570         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
3571         from definition.
3572
3573         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
3574         label if it is not used.
3575
3576         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
3577         of gmon_hist_hdr and gmon_hdr structures and use them.
3578         * elf/sprof.c: Likewise.
3579
3580         * elf/dl-load.c (open_verify): Add temporary variable to avoid
3581         warning.
3582
3583         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
3584
3585         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
3586         to avoid cast.
3587
3588         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
3589         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
3590         to avoid warnings.
3591         (iruserok_af): Use ss_family instead of casts.
3592
3593         * gmon/gmon.c (write_hist): Define real-type variant of
3594         gmon_hist_hdr structure and use it.
3595         (write_gmon): Likewise for gmon_hdr.
3596
3597         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
3598         function if we are not going to define it.
3599         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3600
3601         * inet/inet6_option.c (option_alloc): Add temporary variable to
3602         avoid warning.
3603
3604         * libio/strfile.h (struct _IO_streambuf): Use correct type and
3605         name of VTable element.
3606         * libio/iovsprintf.c: Avoid casts to avoid warnings.
3607         * libio/iovsscanf.c: Likewise.
3608         * libio/vasprintf.c: Likewise.
3609         * libio/vsnprintf.c: Likewise.
3610         * stdio-common/isoc99_vsscanf.c: Likewise.
3611         * stdlib/strfmon_l.c: Likewise.
3612         * debug/vasprintf_chk.c: Likewise.
3613         * debug/vsnprintf_chk.c: Likewise.
3614         * debug/vsprintf_chk.c: Likewise.
3615
3616         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
3617         function pointers.
3618
3619 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
3620
3621         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
3622
3623 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
3624
3625         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
3626
3627         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
3628         * sysdeps/i386/fpu/s_tanf.S: Likewise.
3629         * sysdeps/i386/fpu/s_tanl.S: Likewise.
3630         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3631         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
3632         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
3633         * math/libm-test.inc: Add tests for errno after tan calls with
3634         Â±Inf.
3635
3636         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
3637         errno value vor pow(+-0,neg).
3638         * math/libm-test.inc (pow_test): Add tests for errno value for
3639         pole errors.
3640
3641         * math/w_fmod.c: Also handle x=±Inf as error.
3642         * math/w_fmodf.c: Likewise.
3643         * math/w_fmodl.c: Likewise.
3644         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
3645         x=±Inf or y=0.
3646
3647         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
3648         * sysdeps/i386/fpu/s_cosf.S: Likewise.
3649         * sysdeps/i386/fpu/s_cosl.S: Likewise.
3650         * sysdeps/i386/fpu/s_sin.S: Likewise.
3651         * sysdeps/i386/fpu/s_sinf.S: Likewise.
3652         * sysdeps/i386/fpu/s_sinl.S: Likewise.
3653         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3654         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
3655         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
3656         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
3657         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
3658         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
3659         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
3660         * math/libm-test.inc: Add tests for errno after sin/cos calls with
3661         Â±Inf.
3662
3663         * stdlib/strtod_l.c (round_and_return): We have to set errno to
3664         ERANGE for underflows.
3665         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
3666
3667         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
3668         the 2001 revision.
3669
3670         * libio/tst-widetext.input: Remove surrogates.
3671
3672         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
3673
3674         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
3675         for lgamma should set errno to ERANGE, not EDOM.
3676         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
3677
3678 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3679
3680         [BZ #10093]
3681         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
3682         UTF-16 surrogates.
3683
3684         * locale/programs/locarchive.c (enlarge_archive): Conserve address
3685         space when temporarily mapping the whole content of the old file.
3686
3687         [BZ #10100]
3688         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
3689         not zero.
3690
3691 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3692
3693         * iconvdata/sjis.c (BODY): Don't advance inptr before
3694         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
3695         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
3696         two byte chars.
3697
3698 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
3699
3700         * locale/locarchive.h (struct locarhandle): Rename len field to
3701         mmaped and add new reserved field.
3702         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
3703         (create_archive): Reserve address space and then map file into it.
3704         (open_archive): Likewise.
3705         (file_data_available_p): New function.
3706         (compare_from_file): New function.
3707         (close_archive): Adjust to member name changes.
3708         (add_locale): Before comparing locale data, check it is mapped.
3709         Otherwise fall back to reading from the file.
3710
3711 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3712
3713         * stdio-common/psiginfo.c: Include <errno.h>.
3714
3715 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3716
3717         [BZ #9920]
3718         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
3719         to get consistency between 32 and 64 bit architectures.
3720
3721         [BZ #10052]
3722         * sysdeps/unix/make-syscalls.sh: Add rule to create target
3723         directory for dummy syscall rules.
3724         Patch by Chris Steinbroner <hesh@pobox.com>.
3725
3726 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
3727
3728         [BZ #10092]
3729         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
3730         MNT_EXPIRE.
3731
3732 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3733
3734         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
3735         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3736
3737 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
3738
3739         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
3740         data from vector to temporary buffer and call PWRITEV after it
3741         instead of vice versa.
3742         * sysdeps/posix/preadv.c: Fix up comment.
3743         * misc/preadv.c: Likewise.
3744         * misc/preadv64.c: Likewise.
3745         * misc/pwritev.c: Likewise.
3746         * misc/pwritev64.c: Likewise.
3747         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
3748
3749 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
3750
3751         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
3752
3753         * shadow/Makefile (tests): Add tst-shadow.
3754         * shadow/tst-shadow.c: New file.
3755
3756         [BZ #9955]
3757         * gshadow/Makefile: New file.
3758         * gshadow/Versions: New file.
3759         * gshadow/fgetsgent.c: New file.
3760         * gshadow/fgetsgent_r.c: New file.
3761         * gshadow/getsgent.c: New file.
3762         * gshadow/getsgent_r.c: New file.
3763         * gshadow/getsgnam.c: New file.
3764         * gshadow/getsgnam_r.c: New file.
3765         * gshadow/gshadow.h: New file.
3766         * gshadow/putsgent.c: New file.
3767         * gshadow/sgetsgent.c: New file.
3768         * gshadow/sgetsgent_r.c: New file.
3769         * gshadow/tst-gshadow.c: New file.
3770         * include/gshadow.h: New file.
3771         * Makeconfig (all-subdirs): Add gshadow.
3772         * Makefile (installed-headers): Add gshadow/gshadow.h.
3773         * nss/Makefile (databases): Add sgrp.
3774         * nss/Versions: Add gshadow functions as private exports.
3775         * nss/nsswitch.conf: Add gshadow entry.
3776         * nss/sgrp-lookup.c: New file.
3777         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
3778         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
3779         * nss/nss_files/files-sgrp.c: New file.
3780         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
3781         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3782
3783 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
3784
3785         * stdio-common/printf.h: Add missing const to register_printf_modifier.
3786         * stdio-common/reg-modifier.c: Likewise.
3787
3788 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
3789
3790         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
3791         is no FPU.
3792
3793 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
3794
3795         [BZ #10086]
3796         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
3797         headers up to 2.6.30.
3798
3799         * po/ca.po: Update from translation team.
3800
3801 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
3802
3803         [BZ #10069]
3804         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
3805         an object that uses static TLS if the TLS modid is higher than the
3806         reserve we always allocate.  At least for multi-threaded code.
3807
3808 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
3809
3810         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
3811         Numerically stable check for valid width.
3812
3813         * locale/programs/locarchive.c (open_archive): Map the entire file
3814         and not just the administrative data.
3815         (add_locale): When we find a hash sum match compare the content
3816         to be sure.
3817
3818         * malloc/malloc.c (malloc_info): Output address space information.
3819
3820 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
3821
3822         * malloc/malloc.c (malloc_info): Also output system memory information.
3823
3824         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
3825         architectures have preadv/pwritev in 2.6.30.
3826
3827         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
3828         * sysdeps/posix/readv.c: Likewise.
3829         Reported by Markus Armbruster <armbru@redhat.com>.
3830
3831         * malloc/hooks.c (top_check): Force hook value into register.
3832
3833 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3834
3835         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
3836         calls to _dl_relocate_object.
3837
3838 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3839
3840         [BZ #9957]
3841         * malloc/malloc.c (force_reg): Define.
3842         (sYSMALLOc): Load hook variable into variable
3843         before test and force into register.
3844         (sYSTRIm): Likewise.
3845         (public_mALLOc): Force hook value into register.
3846         (public_fREe): Likewise.
3847         (public_rEALLOc): Likewise.
3848         (public_mEMALIGn): Likewise.
3849         (public_vALLOc): Likewise.
3850         (public_pVALLOc): Likewise.
3851         (public_cALLOc): Likewise.
3852         (__posix_memalign): Likewise.
3853         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
3854         before test and force into register.
3855         * malloc/hooks.c (top_check): Likewise.
3856         (public_sET_STATe): Pretty printing.
3857
3858         * resolv/res_send.c (send_dg): Don't just ignore the result we got
3859         in case we only receive one reply in single-request mode.
3860
3861 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
3862
3863         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
3864         are dlopened in statically linked program even for __LM_ID_CALLER.
3865
3866 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
3867
3868         * resolv/res_send.c (send_dg): Don't switch into single-request
3869         mode if we already are in it.
3870
3871 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
3872
3873         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
3874         are always at least 4 bytes in the returned line.
3875
3876 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
3877
3878         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
3879         __libc_use_alloca (8192), if the stack is too small use 512 bytes
3880         instead of 8K.  Stop searching in /proc/stat after hitting first
3881         line not starting with cpu.
3882         (next_line): Truncate too long
3883         lines at buffer size * 3/4 instead of pretending there were line
3884         breaks inside of large lines.
3885
3886 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3887
3888         * sysdeps/x86_64/mp_clz_tab.c: New file.
3889
3890 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
3891             Ulrich Drepper  <drepper@redhat.com>
3892
3893         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
3894         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3895         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3896
3897 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
3898
3899         * sysdeps/sh/libc-tls.c: New file.
3900
3901         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
3902
3903 2009-04-14  Roland McGrath  <roland@redhat.com>
3904
3905         * elf/elf.h: Add various missing ARM constants, to match binutils.
3906
3907 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3908
3909         Optimizations from GMP.
3910         * sysdeps/x86_64/add_n.S: New file.
3911         * sysdeps/x86_64/addmul_1.S: New file.
3912         * sysdeps/x86_64/lshift.S: New file.
3913         * sysdeps/x86_64/mul_1.S: New file.
3914         * sysdeps/x86_64/rshift.S: New file.
3915         * sysdeps/x86_64/sub_n.S: New file.
3916         * sysdeps/x86_64/submul_1.S: New file.
3917
3918 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
3919
3920         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
3921         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3922         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3923         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3924
3925 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
3926
3927         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
3928         preadv/pwritev.
3929
3930 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
3931
3932         * sysdeps/x86-64/strrchr.S: New file.
3933
3934 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
3935
3936         * stdio-common/printf.h (struct printf_info): Add user element.
3937         New types printf_arginfo_size_function, printf_va_arg_function.
3938         Declare register_printf_specifier, register_printf_modifier,
3939         register_printf_type.
3940         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
3941         (union printf_arg): Add pa_user element.
3942         Adjust __printf_arginfo_table type.
3943         Add __printf_va_arg_table, __printf_modifier_table,
3944         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
3945         declarations.
3946         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
3947         If registered arginfo call failed try normal specifier.
3948         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
3949         function.
3950         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
3951         * stdio-common/Versions: Export register_printf_modifier,
3952         register_printf_type, and register_printf_specifier for GLIBC_2.10.
3953         * stdio-common/reg-modifier.c: New file.
3954         * stdio-common/reg-type.c: New file.
3955         * stdio-common/reg-printf.c (__register_printf_specifier): New
3956         function.  Mostly the old __register_printf_function function but
3957         uses locking and type of third parameter changed.
3958         (__register_printf_function): Implement using
3959         __register_printf_specifier.
3960         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
3961         calls to arginfo functions.  Allocate enough memory for user-defined
3962         types.  Call new va_arg functions to get user-defined types.
3963         Try installed handlers even for existing format specifiers first.
3964
3965 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
3966
3967         * sysdeps/x86_64/rawmemchr.S: New file.
3968
3969         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
3970         Simplified code and possible copy problem fixed.
3971
3972         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
3973         function if it is not defined.  Add some necessary casts.
3974         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3975
3976         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
3977         have preadv/pwritev in 2.6.30.
3978
3979 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
3980
3981         * malloc/malloc.c (malloc_info): New function.
3982         * malloc/malloc.h: Declare it.
3983         * malloc/Versions: Export malloc_info for GLIBC_2.10.
3984
3985         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
3986         to avoid PLT slot.
3987
3988         * malloc/malloc.c (_int_realloc): Add parameter with old block
3989         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
3990         Adjust all callers.
3991         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
3992
3993 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
3994
3995         * sysdeps/x86_64/strchrnul.S: New file.
3996
3997         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
3998         depending libcrypt on -lfreebl3.
3999
4000         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
4001         preadv/pwritev in 2.6.30.
4002
4003         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
4004         instead of __strcasecmp.
4005
4006         * string/stratcliff.c (do_test): Add memchr tests..
4007         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
4008         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
4009         first read quad word.
4010
4011 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
4012
4013         * string/strverscmp.c (__strverscmp): Fix last cleanups.
4014         * string/tst-svc.input: Add new test case.
4015         * string/tst-svc.expect: Adjust.
4016         * string/Makefile: Don't ignore tst-svc error.
4017
4018         * sysdeps/x86_64/memchr.S: New file.
4019
4020         * resolv/resolv.h (RES_SNGLKUP): Define.
4021         * resolv/res_init.c (res_setoptions): Recognize single-request option.
4022         * resolv/res_send.c (send_dg): If we sent two requests at once and
4023         only get one reply before timeout switch to mode where we send the
4024         second request only after the first answer has been received.
4025
4026 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
4027
4028         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
4029         * sysdeps/x86_64/strchr.S: Likewise.
4030
4031 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
4032
4033         * configure.in: We need to test for the compiler earlier.
4034
4035         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
4036         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
4037         GLIBC_2.10.
4038         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
4039         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
4040         and pwritev.
4041         * misc/preadv.c: New file.
4042         * misc/preadv64.c: New file.
4043         * misc/pwritev.c: New file.
4044         * misc/pwritev64.c: New file.
4045         * sysdeps/posx/preadv.c: New file.
4046         * sysdeps/posx/preadv64.c: New file.
4047         * sysdeps/posx/pwritev.c: New file.
4048         * sysdeps/posx/pwritev64.c: New file.
4049         * sysdeps/unix/sysv/linux/preadv.c: New file.
4050         * sysdeps/unix/sysv/linux/preadv64.c: New file.
4051         * sysdeps/unix/sysv/linux/pwritev.c: New file.
4052         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
4053         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
4054         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
4055
4056         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
4057         compatibility code.
4058         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
4059
4060         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4061         __ASSUME_COMPLETE_READV_WRITEV.
4062         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
4063         with modern kernels.
4064         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4065
4066         * sysdeps/posix/readv.c: Since read is a cancellation point we have
4067         to free a possible malloced buffer in case of cancellation.
4068         * sysdeps/posix/writev.c: Likewise for write.
4069
4070 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
4071
4072         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
4073
4074         * configure.in: Recognize --enable-nss-crypt.
4075         * config.make.in: Add nss-crypt entry.
4076         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
4077         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
4078         and include path for NSS directory to compiler for md5-crypt,
4079         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
4080         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
4081         function implementation, use NSS.  Introduce wrappers around the
4082         hash function calls.  Little code size optimization.
4083         * crypt/sha256-crypt.c: Likewise.
4084         * crypt/sha512-crypt.c: Likewise.
4085         * scripts/check-local-headers.sh: Ignore nss3 directory.
4086
4087         * configure.in: Rename pic_default to libc_cv_pic_default.
4088         * config.make.in: Likewise.
4089
4090 2009-04-01  Roland McGrath  <roland@redhat.com>
4091
4092         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
4093         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
4094         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
4095         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
4096         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
4097         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
4098         (R_SPARC_NUM): Update.
4099         From Dave Miller <davem@davemloft.net>.
4100
4101 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
4102
4103         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
4104
4105 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
4106
4107         * elf/dl-open.c: Keep track of used name spaces and only iterate over
4108         those which are used.
4109         * elf/dl-addr.c: Likewise.
4110         * elf/dl-caller.c: Likewise.
4111         * elf/dl-fini.c: Likewise.
4112         * elf/dl-iteratephdr.c: Likewise.
4113         * elf/dl-libc.c: Likewise.
4114         * elf/dl-load.c: Likewise.
4115         * elf/dl-support.c: Likewise.
4116         * elf/dl-sym.c: Likewise.
4117         * elf/rtld.c: Likewise.
4118         * sysdeps/generic/ldsodefs.h: Likewise.
4119
4120         * elf/dl-load.c: Remove support for systems without MAP_ANON.
4121         * elf/dl-minimal.c: Likewise.
4122         * elf/dl-misc.c: Likewise.
4123         * elf/rtld.c: Likewise.
4124         * sysdeps/generic/ldsodefs.h: Likewise.
4125
4126 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
4127
4128         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
4129         Avoid reuse of complex expression.
4130
4131         * po/fr.po: Update from translation team.
4132
4133 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4134
4135         * include/dirent.h: Yet more changes to match sort function type
4136         change.
4137         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
4138         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
4139         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
4140
4141 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
4142
4143         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
4144
4145 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
4146
4147         * nscd/connections.c (restart): Try to preserve the process name
4148         by reading the /proc/self/exe symlink and using the return name.
4149         Patch by Jeff Bastian <jbastian@redhat.com>.
4150
4151 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
4152
4153         [BZ #9733]
4154         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
4155         if we are not loading a new audit library.
4156         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
4157         Only use profiling trampoline for auditing if we are not relocating
4158         an audit library.
4159         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
4160         * elf/rtld.c: Likewise.
4161         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
4162
4163         * elf/rtld.c (dl_main): Extend help message for --audit option.
4164
4165         [BZ #9759]
4166         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
4167         alphasort64, versionsort, and versionsort64 to POSIX 2008.
4168         * dirent/alphasort.c: Adjust implementation to type change.
4169         * dirent/alphasort64.c: Likewise.
4170         * dirent/scandir.c: Likewise.
4171         * dirent/versionsort.c: Likewise.
4172         * dirent/versionsort64.c: Likewise.
4173         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
4174         declaration.
4175         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
4176         declaration.
4177
4178         [BZ #9880]
4179         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
4180         correctly.  Set segleft member in output as required.
4181         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4182         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
4183
4184         [BZ #9881]
4185         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
4186         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
4187         * inet/Makefile (tests): Add tst-inet6_rth.
4188         * inet/tst-inet6_rth.c: New file.
4189
4190         [BZ #5807]
4191         * string/strlen.c (strlen): Fix omission in the expression to test
4192         for NUL bytes.
4193
4194 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4195
4196         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
4197
4198         * elf/dl-runtime.c (reloc_offset): Define.
4199         (reloc_index): Define.
4200         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
4201         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
4202         computing index from reloc_offset.
4203         (_dl_call_pltexit): Likewise.
4204         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
4205         the relocation index to _dl_fixup.
4206         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
4207         _dl_call_pltexit.
4208         * sysdeps/x86_64/dl-runtime.c: New file.
4209
4210         [BZ #9893]
4211         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
4212         alignment of La_x86_64_regs.  Store xmm parameters.
4213         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
4214
4215         [BZ #9913]
4216         * string/strverscmp.c (__strverscmp): Fix case of different digits
4217         in fractional part of string.
4218         Patch by Jingyu Liu <jyliu@fortinet.com>.
4219         * string/Makefile (tests): Add tst-svc2.
4220         * string/tst-svc2.c: New file.
4221
4222         * string/strverscmp.c (__strverscmp): Optimize size of tables.
4223
4224         * locale/iso-639.def: Add Min Nan.
4225
4226 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4227
4228         [BZ #9948]
4229         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
4230
4231 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
4232
4233         * elf/dl-sysdep.c (auxvars): Compress data structure.
4234
4235         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
4236         STT_GNU_IFUNC handling.
4237         (elf_machine_rela): Likewise.
4238
4239 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
4240
4241         * config.h.in (USE_MULTIARCH): Define.
4242         * configure.in: Handle --enable-multi-arch.
4243         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
4244         (_dl_fixup_profile): Likewise.
4245         * elf/do-lookup.c (dl_lookup_x): Likewise.
4246         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
4247         * elf/elf.h (STT_GNU_IFUNC): Define.
4248         * include/libc-symbols.h (libc_ifunc): Define.
4249         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
4250         framework in init-arch.h to get CPUID values.
4251         * sysdeps/x86_64/multiarch/Makefile: New file.
4252         * sysdeps/x86_64/multiarch/init-arch.c: New file.
4253         * sysdeps/x86_64/multiarch/init-arch.h: New file.
4254         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
4255
4256         * config.make.in (experimental-malloc): Define.
4257         * configure.in: Handle --enable-experimental-malloc.
4258         * malloc/Makefile: Handle experimental-malloc flag.
4259         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
4260         * malloc/arena.c: Likewise.
4261         * malloc/hooks.c: Likewise.
4262         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
4263
4264 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
4265
4266         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
4267         prediction.  A few size optimizations.
4268
4269 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4270
4271         * time/tzset.c: Optimize a bit for size.
4272
4273 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4274
4275         * include/stdio.h (fmemopen): Add libc_hidden_proto.
4276         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
4277
4278         * elf/sprof.c: Avoid warning about multi-line comment.
4279
4280 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4281
4282         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
4283         DST name.
4284         * time/tst-posixtz.c: Add tests for quoted timezone names.
4285
4286 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
4287
4288         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
4289         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
4290         200809L instead of 200112L.
4291         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
4292         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
4293
4294         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
4295         instead of __quick_exit_funcs to __run_exit_handlers.
4296         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
4297         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
4298         (__cxa_at_quick_exit): Remove attribute_hidden.
4299         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
4300         to __run_exit_handlers.
4301         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
4302         attribute_hidden.
4303
4304 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
4305
4306         * po/id.po: Update from translation team.
4307
4308 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
4309
4310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
4311         .machine push; .machine "power6" and .machine pop around mtfsf
4312         insns outside of _ARCH_PWR6 define.
4313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4315         Likewise.
4316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4317         Likewise.
4318         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
4319         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
4320         relax_fenv_state): Likewise.
4321
4322 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
4323
4324         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
4325         cxa_at_quick_exit.
4326         (static-only-routines): Add at_quick_exit.
4327         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
4328         GLIBC_2.10.
4329         * stdlib/quick_exit.c: New file.
4330         * stdlib/at_quick_exit.c: New file.
4331         * stdlib/cxa_at_quick_exit.c: New file.
4332         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
4333         it appropriately.
4334         (__internal_atexit): New function.
4335         (__new_exitfn): Now takes parameter to point to the list to use.
4336         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
4337         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
4338         (exit): ...here.  Just call __run_exit_handlers appropriately.
4339         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
4340         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
4341         * stdlib/on_exit.c: Adjust call to __new_exitfn.
4342         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
4343
4344         * po/id.po: Update from translation team.
4345
4346 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
4347
4348         * po/ru.po: Update from translation team.
4349
4350 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
4351
4352         * po/nl.po: Update from translation team.
4353
4354 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
4355
4356         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
4357         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4358         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4359         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4360         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4361         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4362         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4363
4364         * po/pl.po: Update from translation team.
4365
4366 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4367
4368         [BZ #7083]
4369         * sysdeps/unix/sysv/linux/fallocate.c: New file.
4370         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
4371         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
4372         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
4373         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
4374         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
4375         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
4376         for GLIBC_2.10.
4377         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4378         Add fallocate and fallocate64.
4379
4380         * io/fcntl.h: Pretty printing.
4381
4382 2009-03-02  Richard Guenther  <rguenther@suse.de>
4383
4384         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
4385         attribute also for non-C99 inline semantics variant.
4386
4387 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4388
4389         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
4390         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
4391         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4392         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
4393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
4394         Likewise.
4395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
4396         Likewise.
4397
4398 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
4399
4400         * po/cs.po: Update from translation team.
4401
4402 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
4403
4404         * po/bg.po: Update from translation team.
4405         * po/sv.po: Likewise.
4406         * po/fi.po: Likewise.
4407         * po/vi.po: Likewise.
4408
4409 2009-02-27  Roland McGrath  <roland@redhat.com>
4410
4411         * Makeconfig (%.v.i): Depend on Makeconfig.
4412         Exclude % lines from initial #-comment removal.
4413
4414 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
4415
4416         * po/ko.po: Update from translation team.
4417
4418 2009-02-26  Roland McGrath  <roland@redhat.com>
4419
4420         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
4421         avoids unused warning.
4422
4423 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
4424             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4425
4426         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
4427         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
4428         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
4429         and asm/user.h.  Include asm/ptrace.h.
4430         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
4431         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
4432         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
4433         Undefine.
4434         (start_thread): Don't undefine.
4435         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
4436         Define.
4437
4438 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
4439
4440         * wctype/wctype.h: The *_l functions are in POSIX 2008.
4441         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
4442         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
4443         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
4444         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
4445         200112L to 200809L.
4446         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
4447         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4448         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
4449         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
4450         _SC_THREAD_ROBUST_PRIO_PROTECT.
4451         * posix/unistd.h: fexecve is in POSIX 2008.
4452         * time/time.h: strftime_l is in POSIX 2008.
4453         * io/sys/stat.h: futimens is in POSIX 2008.
4454         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
4455         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
4456         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
4457         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
4458         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
4459         open_memstream, and vdprintf are in POSIX 2008.
4460
4461 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
4462
4463         * include/features.h: Define macros for XPG7/POSIX 2008.
4464         * ctype/ctype.h: The *_l functions are in POSIX 2008.
4465         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
4466         POSIX 2008.
4467         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
4468         * locale/xlocale.h: Define locale_t type.
4469         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
4470         in POSIX 2008.  Don't define locale_t here.
4471         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
4472         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
4473         UTIME_OMIT only with __USE_ATFILE.
4474         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
4475         * stdio-common/psiginfo.c: New file.
4476         * stdio-common/psiginfo-data.h: New file.
4477         * stdio-common/psiginfo-define.h: New file.
4478         * stdio-common/Makefile (routines): Add psiginfo.
4479         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
4480         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4481         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4482         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4483         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4484         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4485         * io/sys/stat.h: Move mknodat definition into same conditional as
4486         mknod.
4487         * time/sys/time.h: futimesat is not among the functions accepted
4488         into the POSIX standard.
4489
4490         * include/features.h: If no feature selection given and we select
4491         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
4492         * posix/Versions: Export __posix_getopt.
4493         * posix/getopt.c (_getopt_initialize): Take additional parameter.
4494         Use it to alternatively initialize __posixly_correct.
4495         (_getopt_internal_r): Take addition parameter.  Pass on to
4496         _getopt_initialize.
4497         (_getopt_internal): Take addition parameter.  Pass on to
4498         _getopt_internal_r.
4499         (getopt): Pass additional zero to _getopt_internal.
4500         (__posix_getopt): New function.
4501         * posix/getopt.h: Add redirection for getopt.
4502         * posix/getopt1.c (getopt_long): Pass additional zero to
4503         _getopt_internal.
4504         (getopt_long_only): Likewise.
4505         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
4506         (_getopt_long_only_r): Likewise.
4507         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
4508         _getopt_internal_r.
4509
4510 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4511
4512         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
4513         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4514         * sysdeps/posix/sysconf.c (__sysconf): Handle
4515         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
4516         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
4517
4518 2009-02-24  Roland McGrath  <roland@redhat.com>
4519
4520         [BZ #9895]
4521         * README.template: Reworded not to use substituted version number.
4522         Renamed to ...
4523         * README: ... here (no longer generated).
4524         * Makefile (README): Target removed.
4525
4526 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
4527
4528         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
4529         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
4530         instead.
4531
4532         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
4533
4534         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
4535
4536 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
4537
4538         * po/bg.po: Update from translation team.
4539
4540 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
4541
4542         * stdlib/monetary.h: Uglify function parameter names.
4543         * sunrpc/rpc/pmap_clnt.h: Likewise.
4544         * sunrpc/rpc/svc.h: Likewise.
4545         * sunrpc/rpc/xdr.h: Likewise.
4546         * sunrpc/rpc/clnt.h: Likewise.
4547         * resolv/netdb.h: Likewise.
4548         * resolv/arpa/nameser.h: Likewise.
4549         * resolv/resolv.h: Likewise.
4550         * argp/argp.h: Likewise.
4551         * locale/langinfo.h: Likewise.
4552         * io/sys/stat.h: Likewise.
4553         * posix/spawn.h: Likewise.
4554         * nis/rpcsvc/nislib.h: Likewise.
4555         * malloc/obstack.h: Likewise.
4556         * sysdeps/ia64/bits/link.h: Likewise.
4557         * sysdeps/i386/bits/link.h: Likewise.
4558         * sysdeps/s390/bits/link.h: Likewise.
4559         * sysdeps/powerpc/bits/link.h: Likewise.
4560         * sysdeps/x86_64/bits/link.h: Likewise.
4561         * sysdeps/sparc/bits/link.h: Likewise.
4562         * sysdeps/sh/bits/link.h: Likewise.
4563         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
4564         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
4565         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
4566         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
4567
4568 2008-12-01  Fredrik Unger  <fred@tree.se>
4569
4570         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
4571         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
4572         _FP_UNPACK_RAW_2, fix up first argument.
4573
4574 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
4575
4576         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
4577         (GET_NPROCS_PARSER): Change parameters and use next_line.
4578         (__get_nprocs): Rewrite to not use stdio routines.
4579         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
4580         Change parameters and use next_line.
4581
4582 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
4583
4584         [BZ #5381]
4585         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
4586         Change mempool_alloc prototype.
4587         * nscd/mem.c (gc): Don't handle mem_in_flight.
4588         (mempool_alloc): Third parameter now only indicates whether this is the
4589         first call (to allocate data) or not.  If it is, get db rdlock.
4590         Release it on error.  Don't handle mem_in_flight.
4591         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
4592         Adjust third parameter of mempool_alloc calls.
4593         Nothing to do here in case mempool_alloc fails.
4594         Avoid local variable shadowing parameter.  No need to get db rdlock
4595         before calling cache_add.
4596         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
4597         no mem_in_flight array anymore.
4598         * nscd/connections.c: Remove definition and handling of mem_in_flight.
4599         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
4600         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
4601         in case mempool_alloc fails. No need to get db rdlock before calling
4602         cache_add.
4603         * nscd/hstcache.c (cache_addhst): Likewise.
4604         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4605         * nscd/servicescache.c (cache_addserv): Likewise.
4606         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
4607
4608 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
4609
4610         * po/lt.po: Update from translation team.
4611
4612 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
4613
4614         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
4615         defined, allow additional data to be added using the optional
4616         MORE_ELF_HEADER_DATA macro.
4617         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
4618         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
4619
4620 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
4621
4622         * include/atomic.h: Define catomic_and if not already defined.
4623         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
4624         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4625
4626 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
4627
4628         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
4629         Change all callers.
4630         (_int_realloc): Likewise.  Third argument is now padded size
4631         All _int_* functions are now static.
4632
4633         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
4634         * malloc/arena.c: Likewise.
4635         * include/malloc.h: Remove now unnecessary declarations of the _int_*
4636         functions.
4637
4638         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
4639         easily.
4640
4641         * malloc/malloc.c: Add branch prediction for use of the hooks.
4642
4643         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
4644
4645 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4646
4647         [BZ #7095]
4648         * bits/confname.h: Add SUSv7 macros for getconf environments.
4649         * bits/environments.h: Likewise.
4650         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
4651         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
4652         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
4653         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
4654         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
4655         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
4656         * posix/getconf.c: Likewise.
4657         * posix/sysconf.c: Likewise.
4658         * sysdeps/posix/sysconf.c: Likewise.
4659         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
4660         environments.
4661
4662 2009-01-16  Petr Baudis  <pasky@suse.cz>
4663
4664         [BZ #9753]
4665         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
4666         even if we currently have zero nscount.
4667
4668 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4669
4670         [BZ #9781]
4671         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
4672         the input line is too long.
4673
4674         * po/Makefile (libc.pot): Add f_print as function taking c-format
4675         parameter.
4676
4677         * debug/xtrace.sh: Unify translatable messages.
4678         * elf/ldd.bash.in: Likewise.
4679         * elf/sprof.c: Likewise.
4680         * locale/programs/locale.c: Likewise.
4681         * malloc/memusage.sh: Likewise.
4682         * nss/getent.c: Likewise.
4683
4684 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4685
4686         * debug/pcprofiledump.c (print_version,
4687         argp_program_version_hook): New function.
4688         * elf/ldconfig.c (more_help): New function.
4689         (argp): Use it.
4690         * elf/sln.c (usage): New function.
4691         (main): Support --help and --version.
4692         * malloc/memusagestat.c (print_version): New function.
4693         (argp_program_version_hook): New variable.
4694         * nscd/nscd.c (more_help): New function.
4695         (argp): Use it.
4696         * posix/getconf.c (main): Send --version output to stdout.
4697         Support --help.
4698         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
4699         arguments.  All callers changed.
4700         (print_version): New function.
4701         (parseargs): Support --help and --version.
4702         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
4703         changed.
4704         (print_version): New function.
4705         (main): Use getopt_long.  Support --help and --version.
4706         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
4707         --version.
4708
4709 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
4710
4711         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
4712         (update_data): Fix handling of wrapping back
4713         to the beginning of the buffer.
4714
4715         [BZ #9823]
4716         * stdio-common/psignal.c (psignal): Fix test for empty string.
4717
4718 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
4719
4720         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
4721         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
4722         move _null_auth to .rodata.
4723
4724         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
4725         value of 24.
4726
4727         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
4728
4729         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
4730         today than when the original code was written.  Use larger
4731         buffers.  This also makes it unnecessary to have stat information,
4732         if this causes extra efforts.
4733         (__opendir): In case O_DIRECTORY works, don't call fstat just for
4734         __alloc_dir.
4735
4736 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
4737
4738         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
4739         is set.
4740         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
4741         * sysdeps/sh/sh4/__longjmp.S: Likewise.
4742         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
4743         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
4744         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
4745         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
4746
4747 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4748
4749         * po/ru.po: Update from translation team.
4750
4751 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
4752
4753         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
4754         Add _tid slot to maintain consistency with kernel.
4755
4756 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
4757
4758         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
4759         incomplete characters at end of input buffer.
4760         * libio/Makefile (tests): Add tst-fgetwc.
4761         * libio/tst-fgetwc.c: New file.
4762         * libio/tst-fgetwc.input: New file.
4763
4764 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
4765
4766         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
4767
4768 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
4769
4770         [BZ #9793]
4771         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
4772         *OUTBUFSTART unless the whole output fit into the buffer.
4773         * iconv/Makefile (tests): Add tst-iconv4.
4774         * iconv/tst-iconv4.c: New file.
4775
4776 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
4777
4778         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
4779         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4780
4781 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
4782
4783         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
4784         newer linker scripts.
4785
4786 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4787
4788         [BZ #7040]
4789         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
4790         inotify_rm_watch should have type int.
4791
4792 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
4793
4794         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4795         Make aligned_restore_vmx a local symbol.
4796         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
4797         Likewise.
4798
4799 2009-01-30  Andreas Jaeger  <aj@suse.de>
4800
4801         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
4802         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
4803         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
4804         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
4805         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
4806         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
4807         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
4808
4809 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
4810
4811         [BZ #9726]
4812         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
4813         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
4814
4815 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
4816
4817         [BZ #9726]
4818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4819         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
4821         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
4822
4823 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
4824
4825         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
4826         memcpy instead of memcmp.
4827         (_dl_setup_pointer_guard): Likewise.
4828
4829 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
4830
4831         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
4832         manipulated brk, use malloc_printerr.
4833         * misc/sbrk.c (__sbrk): Better error handling for nonsense
4834         requests.
4835
4836 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4837
4838         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
4839         rindex): For C++ add inlines so that they can be recognized as
4840         builtins.
4841         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
4842
4843 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4844             Jakub Jelinek  <jakub@redhat.com>
4845
4846         * string/string.h: Define correct C++ prototypes for gcc 4.4.
4847         * wcsmbs/wchar.h: Likewise.
4848
4849 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
4850
4851         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
4852         (stackinfo_sub_sp): Define.
4853
4854 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4855
4856         [BZ #9750]
4857         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
4858         * include/alloca.h (alloca_account): Define.
4859         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
4860         (stackinfo_sub_sp): Define.
4861
4862         * nscd/connections.c (nscd_init): If database file access fails
4863         check whether this is due to permission problems and bail in that
4864         case.
4865
4866         [BZ #9741]
4867         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
4868         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
4869
4870 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4871
4872         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
4873         Add "t" to clobber list.
4874         (INTERNAL_SYSCALL_NCS): Likewise.
4875
4876 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
4877
4878         * nss/getent.c (print_networks): Don't print comma between aliases.
4879
4880 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
4881
4882         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
4883
4884         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
4885         the hash table.
4886         * misc/Makefile (tests): Add bug-hsearch1.
4887         * misc/bug-hsearch1.c: New file.
4888
4889 2009-01-22  Roland McGrath  <roland@redhat.com>
4890
4891         * Makeconfig (%.v.i): Strip trailing # comments,
4892         not only whole-line comments.
4893
4894 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
4895
4896         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
4897         one parameter.  If non-NULL use it to initialize return value.
4898         (_dl_setup_pointer_guard): New function.
4899         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
4900         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
4901         * elf/rtld.c (security_init): Pass _dl_random to
4902         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
4903         pointer_chk_guard.
4904         * elf/dl-sysdep.c (_dl_random): New variable.
4905         (_dl_sysdep_start): Handle AT_RANDOM.
4906         (_dl_show_auxv): Likewise.
4907         * elf/dl-support.c (_dl_random): New variable.
4908         (_dl_aux_init): Handle AT_RANDOM.
4909         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
4910         to _dl_setup_stack_chk_guard.
4911
4912         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
4913
4914 2009-01-10  Roland McGrath  <roland@redhat.com>
4915
4916         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
4917
4918 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
4919
4920         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
4921
4922         [BZ #9706]
4923         * nss/nss_files/files-parse.c (strtou32): New function.
4924         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
4925         across 32-bit and 64-bit platforms.
4926         (INT_FIELD_MAYBE_NULL): Likewise.
4927
4928 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
4929
4930         [BZ #9720]
4931         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
4932         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
4933         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
4934         Likewise.
4935
4936 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
4937
4938         [BZ #697]
4939         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
4940         being NULL also if there are no backreferences.
4941         * posix/rxspencer/tests: Add testcases.
4942
4943 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
4944
4945         [BZ #9697]
4946         * posix/bug-regex17.c: Add testcases.
4947         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
4948         handling.
4949
4950 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4951
4952         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
4953         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
4954         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
4955         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
4956         for elf subdir.
4957         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
4958         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
4959         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
4960         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
4961         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4962         * sysdeps/unix/sysv/linux/s390/Versions: New file.
4963
4964 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
4965
4966         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
4967         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
4968         re_string_skip_chars, re_string_reconstruct): Likewise.
4969         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
4970
4971 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
4972
4973         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
4974         adjust the buffer alignment.
4975
4976 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4977
4978         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
4979         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
4980         net/route.h.
4981
4982         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
4983         flavor to description only when flavor is not NULL.
4984
4985         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
4986         mutex after SIGIO/SIGURG lookup loop.
4987
4988 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4989
4990         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
4991
4992 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
4993
4994         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
4995         handling.
4996
4997 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
4998
4999         * sysdeps/unix/sysv/linux/kernel-features.h
5000         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
5001
5002         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
5003         if no output is written.
5004
5005         * version.h: Bump to 2.10 development.
5006
5007         * posix/getconf.c: Update copyright year.
5008         * nss/getent.c: Likewise.
5009         * iconv/iconvconfig.c: Likewise.
5010         * iconv/iconv_prog.c: Likewise.
5011         * elf/ldconfig.c: Likewise.
5012         * catgets/gencat.c: Likewise.
5013         * csu/version.c: Likewise.
5014         * elf/ldd.bash.in: Likewise.
5015         * elf/sprof.c (print_version): Likewise.
5016         * locale/programs/locale.c: Likewise.
5017         * locale/programs/localedef.c: Likewise.
5018         * nscd/nscd.c (print_version): Likewise.
5019         * debug/xtrace.sh: Likewise.
5020         * malloc/memusage.sh: Likewise.
5021         * malloc/mtrace.pl: Likewise.
5022         * debug/catchsegv.sh: Likewise.
5023
5024 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
5025
5026         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
5027         script.
5028
5029 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
5030
5031         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
5032         gethostbyname4_r function call succeeded, just leave the loop.
5033
5034         [BZ #9694]
5035         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
5036         very end.
5037         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
5038         * wctype/Makefile (tests): Add bug-wctypeh.
5039         * wctype/bug-wctypeh.c: New file.
5040
5041         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
5042         LOCALDOMAIN is defined.
5043         * nscd/nscd_getai.c (__nscd_getai): Likewise.
5044
5045         * sysdeps/x86_64/bits/select.h: New file.
5046
5047         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
5048
5049 2008-12-21  Bruno Haible  <bruno@clisp.org>
5050
5051         [BZ #9677]
5052         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
5053         if no output is written.
5054
5055 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
5056
5057         * login/utmp_file.c (pututline_file): Replace call to dup2 with
5058         libc internal symbol __dup2 to avoid access through the PLT.
5059
5060 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
5061
5062         [BZ #6545]
5063         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
5064         available only for __USE_GNU.
5065
5066         * inet/Makefile (tests): Add tst-getni2.
5067         * inet/tst-getni2.c: New file.
5068
5069         [BZ #7080]
5070         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
5071         NULL when NI_NAMEREQD is set.
5072         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
5073         * inet/Makefile (tests): Add tst-getni1.
5074         * inet/tst-getni1.c: New file.
5075
5076 2008-12-03  Petr Baudis  <pasky@suse.cz>
5077
5078         [BZ #7067]
5079         * nscd/connections.c (invalidate_cache): Use prune_run_lock
5080         instead of prune_lock.
5081         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
5082         * nscd/nscd.h (database_dyn): Add prune_run_cache.
5083
5084 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
5085
5086         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
5087         use.
5088
5089         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
5090         handling.
5091
5092         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
5093         after reading name server list.
5094
5095         [BZ #7058]
5096         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
5097         handling for host name aliases.
5098
5099 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
5100
5101         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
5102         instead of doing things manually.
5103
5104 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
5105
5106         * posix/regex_internal.h (build_wcs_upper_buffer):
5107         Return type is reg_error_t.
5108
5109 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
5110
5111         * posix/globtest.sh: Use mktemp to create temporary file and
5112         directory.
5113
5114         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
5115         sets correctly.
5116         (__CPU_CLR_S): Likewise.
5117         (__CPU_ISSET_S): Likewise.
5118
5119 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
5120             Ulrich Drepper  <drepper@redhat.com>
5121
5122         * scripts/firstversion.awk: Use custom comparison function to compare
5123         version numbers.
5124         * scripts/versions.awk: Use sort invocation which can handle
5125         multi-digit sub-version numbers.
5126
5127 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
5128
5129         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
5130         * locale/iso-639.def: Add Chhattisgarhi entry.
5131
5132 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
5133
5134         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
5135         ESRCH return value.
5136         (_nss_dns_gethostbyname4_r): Likewise.
5137         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
5138         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
5139         gethostbyname4_r, we don't have a separate IPv6 status, so copy
5140         the no_data variable.
5141
5142         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
5143         information at the correct index.
5144
5145         * socket/sys/socket.h: Declare accept4.
5146         * socket/accept4.c: New file.
5147         * sysdeps/unix/sysv/linux/accept4.c: New file.
5148         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
5149         * socket/Makefile (routines): Add accept4.
5150         * socket/Versions: Export accept4 with version GLIBC_2.10.
5151         * socket/paccept.c: Removed.
5152         * sysdeps/unix/sysv/linux/paccept.c: Removed.
5153         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
5154         * Versions.def: Define GLIBC_2.10 for libc.
5155         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
5156
5157         * nscd/connections.c: Use accept4.
5158
5159         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
5160
5161 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
5162
5163         * resolv/res_send.c (send_dg): Create sockets with non-blocking
5164         flag already set.
5165
5166         * stdlib/setenv.c (unsetenv): Don't search environment if it does
5167         not exist.
5168         * stdlib/Makefile (tests): Add tst-unsetenv1.
5169         * stdlib/tst-unsetenv1.c: New file.
5170
5171 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
5172
5173         * login/utmp_file.c (file_writable): New variable.
5174         (setutent_file): Don't try to open file for writing.
5175         (pututline_file): Before writing, make descriptor writable if
5176         necessary.
5177
5178 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
5179
5180         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
5181         to IPv4 or IPv6 if an interface has been found.
5182
5183 2008-11-26  Roland McGrath  <roland@redhat.com>
5184
5185         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
5186         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
5187
5188         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
5189         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
5190         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
5191
5192         * elf/elf.h (NT_386_IOPERM): New macro.
5193         (NT_PPC_VSX): New macro.
5194
5195 2008-11-25  Roland McGrath  <roland@redhat.com>
5196
5197         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
5198         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
5199         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
5200         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
5201         Subdirectories moved to ports repository.
5202         * configure.in (base_machine): Remove alpha case.
5203
5204 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
5205
5206         * sysdeps/mach/strerror_l.c: New file.
5207
5208 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
5209
5210         [BZ #6411]
5211         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
5212         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
5213         magic numbers.
5214         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
5215         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
5216         (relax_fenv_state): Same as above.
5217         (FPSCR_29): Reserve bit in ISA 2.05.
5218         (FPSCR_NI): Provide define for compat.
5219         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
5220         magic numbers.
5221         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
5222         magic numbers.
5223         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
5224         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
5225         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
5226         access to hwcap to account for hwcap size increase to uint64_t.
5227         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
5228         Likewise.
5229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
5230         (*setcontext): Likewise.
5231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
5232         New file.
5233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
5234         New file.
5235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
5236         (*setcontext): dynamically select mtfsf insn based on
5237         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
5238         increase to uint64_t.
5239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5240         (*swapcontext): dynamically select mtfsf insn based on
5241         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
5242         increase to uint64_t.
5243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
5244         New file.
5245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
5246         New file.
5247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5248         (*setcontext): dynamically select mtfsf insn based on
5249         PPC_FEATURE_HAS_DFP.
5250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5251         (*swapcontext): dynamically select mtfsf insn based on
5252         PPC_FEATURE_HAS_DFP.
5253
5254 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
5255
5256         * version.h: Bump for 2.9 release.
5257         * include/features.h (__GLIBC_MINOR__): Bump to 9.
5258
5259         [BZ #7029]
5260         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
5261         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
5262         all the rounding.
5263
5264 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
5265
5266         [BZ #7009]
5267         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
5268         unknown request types for now.
5269
5270 2008-11-11  Roland McGrath  <roland@redhat.com>
5271
5272         * sysdeps/x86_64/configure: New file.
5273
5274         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
5275         * configure: Regenerated.
5276
5277 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5278
5279         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
5280         correct instruction to remove the stack frame.
5281
5282 2008-11-03  Michael Matz  <matz@suse.de>
5283
5284         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
5285         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
5286
5287 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
5288
5289         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
5290         Remove.
5291
5292         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
5293         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
5294         of the thread variable instead of void *.
5295         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
5296         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
5297         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5298         __libc_tsd_define arguments.
5299         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
5300         __libc_tsd_address arguments.  Remove union hack.
5301         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
5302         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
5303         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
5304         Adjust __libc_tsd_{set,get} arguments.
5305         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
5306         __libc_tsd_define arguments.
5307         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
5308         arguments.
5309         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
5310         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
5311         (LOCALE): Adjust __libc_tsd_define arguments.
5312         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
5313         arguments.
5314         (LOCALE): Adjust __libc_tsd_define arguments.
5315         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
5316         arguments.
5317         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
5318         arguments.
5319
5320 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
5321
5322         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
5323         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5324
5325 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
5326
5327         [BZ #6966]
5328         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
5329
5330 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
5331             Ulrich Drepper  <drepper@redhat.com>
5332
5333         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
5334         definition for GCC 3.1 and later.
5335
5336 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
5337
5338         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
5339         refetch dtv, as it might have changed.
5340         * elf/Makefile: Add rules to build and run tst-tls18.
5341         * elf/tst-tls18.c: New test.
5342         * elf/tst-tlsmod18a.c: New file.
5343
5344 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
5345
5346         [BZ #6875]
5347         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
5348
5349 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5350
5351         [BZ #6867]
5352         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
5353
5354         [BZ #6919]
5355         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
5356         Fix length of copy operation.
5357
5358 2008-10-02  Pierre Habouzit <madcoder@debian.org>
5359
5360         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
5361         and fix its calling convention.
5362
5363 2008-10-07  Andreas Schwab  <schwab@suse.de>
5364
5365         [BZ #6942]
5366         * resolv/res_send.c (send_vc): Fix last change.
5367         (send_dg): Align here as well.
5368
5369 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
5370
5371         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
5372         return value in case rlimit is RLIM_INFINITY.
5373
5374         [BZ #6947]
5375         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
5376         for UL_SETFSIZE.
5377         * resource/Makefile (tests): Add bug-ulimit1.
5378         * resource/bug-ulimit1.c: New file.
5379
5380         [BZ #6974]
5381         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
5382         without dot.  Properly terminate the string with a null byte.
5383         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
5384
5385         [BZ #6980]
5386         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
5387         negative sizees.
5388         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
5389         negative __size.
5390
5391         [BZ #6995]
5392         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
5393
5394 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
5395
5396         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
5397         abort if there is no initgroups_dyn function.
5398
5399         * resolv/res_send.c (send_dg): On timeout, only return nonzero
5400         result if any of the queries really provided an answer.
5401
5402 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
5403
5404         * po/lt.po: Update from translation team.
5405
5406 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
5407
5408         * po/id.po: Update from translation team.
5409
5410 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
5411
5412         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
5413         Fix tests for existence of second reply.
5414
5415 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
5416
5417         * po/id.po: New file.
5418         Contributed by the Indonesian translation team.
5419
5420 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
5421
5422         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
5423         initialization.
5424
5425 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
5426
5427         * elf/Makefile: Add rules to build and run tst-tls17.
5428         * elf/tst-tls17.c: New test.
5429         * elf/tst-tlsmod17a.c: New file.
5430         * elf/tst-tlsmod17b.c: Likewise.
5431
5432 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
5433
5434         * stdlib/divmod_1.c: Use correct type for dummy variable.
5435         * stdlib/mod_1.c: Likewise.
5436
5437 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
5438
5439         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
5440
5441 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
5442
5443         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
5444         __nonnull order for C++.
5445         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
5446         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
5447
5448 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
5449
5450         * stdlib/longlong.h: Update from GCC.
5451
5452 2008-10-09  Jakub Jelinek <jakub@redhat.com>
5453             David S. Miller  <davem@davemloft.net>
5454
5455         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
5456         make sure any registers used with 64-bit 'branch-on-register'
5457         instructions have their top 32-bits clear.
5458         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
5459         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
5460
5461 2008-09-18  Andreas Schwab  <schwab@suse.de>
5462
5463         [BZ #6942]
5464         * resolv/res_send.c (send_vc): Fix use of unaligned address.
5465         Properly handle partial reads.
5466
5467 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
5468
5469         * elf/elf.h (STO_MIPS_PLT): New.
5470         (R_MIPS_COPY): New.
5471         (R_MIPS_JUMP_SLOT): New.
5472         (R_MIPS_NUM): Redefine to 128.
5473         (DT_MIPS_PLTGOT): New.
5474         (DT_MIPS_RWPLT): New.
5475         (DT_MIPS_NUM): Redefine to 0x35.
5476
5477 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
5478
5479         * timezone/africa: Update from tzdata2008f.
5480         * timezone/asia: Likewise.
5481         * timezone/australasia: Likewise.
5482         * timezone/europe: Likewise.
5483         * timezone/leapseconds: Likewise.
5484         * timezone/northamerica: Likewise.
5485         * timezone/southamerica: Likewise.
5486         * timezone/zone.tab: Likewise.
5487
5488 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
5489
5490         * nscd/connections.c: Disable use of paccept for now.
5491
5492 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
5493
5494         * socket/Versions: Remove paccept export for GLIBC_2.9.
5495         * socket/Makefile (routines): Remove paccept.
5496         * socket/sys/socket.h: Remove paccept declaration.
5497
5498         * po/sv.po: Update from translation team.
5499
5500 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
5501
5502         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
5503         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
5504
5505 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
5506
5507         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
5508         Patch by Olivier Fourdan <ofourdan@redhat.com>.
5509
5510 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
5511
5512         * sunrpc/rpc/svc.h: Declare svcfd_create.
5513         Patch by Michael Solberg <msolberg@redhat.com>.
5514
5515 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
5516             Ulrich Drepper  <drepper@redhat.com>
5517
5518         * malloc/malloc.c (public_vALLOc): Try other arenas in case
5519         _int_valloc fails.
5520         (public_pVALLOc): Likewise.
5521
5522 2008-09-02  Andreas Jaeger  <aj@suse.de>
5523
5524         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
5525         commit.
5526
5527 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
5528
5529         [BZ #6860]
5530         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
5531
5532 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
5533
5534         * Makefile (check-data): Check data directory in add-ons.
5535         * elf/Makefile (check-data): Likewise.
5536
5537 2008-08-18  Roland McGrath  <roland@redhat.com>
5538
5539         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
5540         * configure: Regenerated.
5541         * config.make.in (cflags-cpu): New substituted variable.
5542         (with-cpu): Variable removed.
5543         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
5544
5545 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
5546
5547         [BZ #6845]
5548         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
5549         __signbitl definition and __LONG_DOUBLE_128__ guard from:
5550         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
5551         redundant.  Functions which call floating point assembler operations
5552         should go into a sysdeps powerpc/fpu directory.
5553
5554 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
5555
5556         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
5557         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
5558
5559 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
5560
5561         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
5562
5563         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
5564         change related to AT_EXECFN.  We cannot use that string.
5565         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
5566         _dl_execfn member.
5567         * elf/dl-support.c: Remove _dl_execfn variable.
5568         (_dl_aux_init): Remove handling of AT_EXECFN.
5569         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
5570         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
5571
5572 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
5573
5574         [BZ #6544]
5575         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
5576         byte gets added to writes and seeks from the end use the length of
5577         the buffer and not the currently terminating NUL byte.
5578
5579         [BZ #6634]
5580         * login/utmp_file.c (getutent_r_file): Take additional parameter.
5581         Set to true if locking failed.
5582         (getutid_r_file): Adjust caller.
5583         (pututline_file): Likewise.  Return NULL in this case.
5584         Patch mostly by halesh.s@gmail.com.
5585
5586 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
5587
5588         [BZ #6589]
5589         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
5590         Define.
5591         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
5592
5593 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
5594
5595         [BZ #6839]
5596         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
5597         macro since it is now available in elf/dynamic-link.h.
5598
5599 2008-08-12  Roland McGrath  <roland@frob.com>
5600
5601         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
5602         in case used outside of libc.
5603         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
5604
5605 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
5606
5607         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
5608         directly instead of going through dn_comp.
5609
5610 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
5611
5612         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5613         Fix asm constraints.
5614
5615 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5616
5617         [BZ #6790]
5618         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
5619         (IPV6_PMTUDISC_PROBE): Likewise.
5620
5621 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
5622
5623         [BZ #6791]
5624         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
5625
5626 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
5627             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5628
5629         [BZ #6817]
5630         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
5631         Added the members 'vsx' and 'arch_2_06'.
5632         (_dl_powerpc_platforms): Add the member 'power7'.
5633         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
5634         to reflect the changes required by VSX and ISA 2.06.
5635         Modify _DL_PLATFORMS_COUNT to reflect the addition of
5636         'power7'.
5637         Defined PPC_PLATFORM_POWER7.
5638         (_dl_string_platform): Add support for POWER7.
5639         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
5640         capability and ISA 2.06.
5641
5642 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
5643
5644         [BZ #6824]
5645         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
5646         macro to detect use of 128 bit long double.
5647         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
5648
5649 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
5650
5651         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
5652
5653         [BZ #5794]
5654         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
5655         parameters.
5656         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
5657         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
5658
5659 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
5660
5661         * nscd/connections.c (main_loop_poll): Pass a buffer which is
5662         guaranteed to be large enough to read inotify event.  Ignore
5663         EAGAIN error.  Better error message.  Add branch predicition.
5664         (main_loop_epoll): Likewise.
5665
5666 2008-08-02  Roland McGrath  <roland@frob.com>
5667
5668         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
5669         Add memory clobbers.
5670
5671 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
5672
5673         * manual/arith.texi: Avoid @strong{Note:}.
5674         * manual/creature.texi: Likewise.
5675         * manual/filesys.texi: Likewise.
5676         * manual/math.texi: Likewise.
5677         * manual/memory.texi: Likewise.
5678         * manual/resource.texi: Likewise.
5679         * manual/syslog.texi: Likewise.
5680         * manual/time.texi: Likewise.
5681
5682         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
5683         to prevent warning.
5684
5685 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
5686
5687         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
5688         new epoll_create1 interface.
5689         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5690         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5691         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5692
5693         * include/arpa/nameser.h (NS_GET16): Use const pointer.
5694         (NS_GET32): Likewise.
5695
5696         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
5697         syscalls, too.
5698
5699         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
5700         use the AT_EXECFN value if it is no absolute path.
5701         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
5702         __ASSUME_AT_EXECFN.
5703
5704         * Versions.def: Add GLIBC_2.9 to libresolv.
5705         * include/resolv.h: Remove hidden proto declarations for __ns_*
5706         functions.  Add them for __dn_count_labels and __p_secstodate.
5707         * include/arpa/nameser.h: Add a number of hidden proto declarations.
5708         Define ns_msg_getflags macro here.
5709         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
5710         and __p_secstodate.
5711         * resolv/Versions: Export functions from <arpa/nameser.h> from
5712         libresolv in version GLIBC_2.9.
5713         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
5714         hidden definitions.
5715         * resolv/ns_netint.c: Likewise.
5716         * resolv/ns_parse.c: Likewise.
5717         * resolv/ns_print.c: Likewise.
5718         * resolv/ns_samedomain.c: Likewise.
5719         * resolv/ns_ttl.c: Likewise.
5720         * resolv/arpa/nameser_compat.h: Likewise.
5721         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
5722         function calls.
5723         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
5724         instead of ns_get16.
5725         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
5726         __ns_get32 instead of ns_get16 and ns_get32 respectively.
5727         (gaih_getanswer_slice): Likewise.
5728         * resolv/Makefile (libresolv-routines): Add ns_date.
5729         * resolv/ns_date.c: New file.
5730
5731         * elf/Makefile (check-localplt.out): Also check libresolv and
5732         libcrypt.
5733
5734 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
5735
5736         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5737         __ASSUME_O_CLOEXEC.
5738
5739 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
5740
5741         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
5742         buffer passed to NSS functions.
5743
5744         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
5745
5746         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
5747         Define.
5748
5749         * misc/syslog.c (openlog_internal): Fix compile problem.
5750
5751 2008-07-28  Roland McGrath  <roland@redhat.com>
5752
5753         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
5754
5755 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
5756
5757         * io/ftw.c (add_object): Remove inline to avoid warning.
5758
5759         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
5760
5761         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
5762         Use it instead of locally defined resplen2 variable.
5763         (res_nsend): Adjust for __libc_res_nsend interface change.
5764         (send_vc): Initialize *resplen2 if necessary.  Read length of
5765         package into an appropriately aligned variable.  Store converted length
5766         in new variable and use it appropriately.
5767         Add branch prediction help.
5768         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
5769         and pass it on to __libc_res_nsend.  Adjust all callers.
5770         (__libc_res_nsearch): Likewise.
5771         (__libc_res_nqeurydomain): Likewise.
5772         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
5773         change.
5774         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
5775         Define resplen2 variable and pass it to __libc_res_nsearch and then
5776         to gaih_getanswer.
5777         (getanswer_r): In case of incorrect DNS data don't overread buffer.
5778         Add branch prediction.
5779         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
5780         (gaih_getanswer): Don't decode second slice if first one failed due
5781         to a too small buffer.  Don't let not found status of second
5782         decoder shadow results of the first.
5783         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
5784         and __libc_res_nquery interface changes
5785         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
5786         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
5787         __libc_res_nsearch, and __libc_res_nsend.
5788         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
5789         change.
5790         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
5791         __libc_res_nsearch interface changes.
5792
5793 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
5794
5795         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
5796
5797         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
5798         file descriptors with close-on-exec set.
5799         (exec_comm_child): Fix the case where the write end of the pipe is
5800         STDOUT_FILENO already.  In case it is, clear close-on-exec.
5801
5802         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
5803         * io/pipe2.c: Likewise.
5804         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
5805         instead of __ASSUME_PACCEPT.
5806         * include/unistd.h: Declare __have_pipe2.
5807         * libio/iopopen.c: Implement "e" flag.
5808         * libio/Makefile (tests): Add tst-popen1.
5809         * libio/tst-popen1.c: New file.
5810
5811         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
5812         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5813
5814 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5815
5816         [BZ #6771]
5817         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
5818         success call of _IO_SEEKOFF or calls which failed because the
5819         descriptor is for a pipe.
5820
5821         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
5822         magic number.
5823
5824         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
5825
5826         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
5827         F_SETFD use if we know fopen set the flag.
5828
5829         * login/utmp_file.c (setutent_file): Minor optimization in case
5830         O_CLOEXEC is available.
5831
5832 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
5833
5834         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
5835         * elf/Makefile: Use pie-ccflag variable.
5836         * nscd/Makefile: Likewise.
5837         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
5838
5839 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
5840
5841         [BZ #6724]
5842         * Versions.def: Add GLIBC_2.9 version tag for libutil.
5843         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
5844         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
5845         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
5846         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
5847         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
5848         utmp32, utmpx32 and login32.
5849         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
5850         versions of struct utmp functions to libc and libutil.
5851         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
5852         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
5853         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
5854         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
5855         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
5856         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
5857         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
5858         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
5859         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
5860         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
5861         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
5862         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
5863         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
5864         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
5865         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
5866         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
5867         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
5868         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
5869         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
5870         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
5871         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
5872         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
5873
5874 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
5875
5876         * scripts/gen-as-const.awk: Generate more widely usable code by
5877         using 64-bit arithmetic.
5878
5879         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
5880         the same treatment as narrow output code in last patch.
5881
5882         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
5883
5884         [BZ #6763]
5885         * elf/dl-load.c (local_strdup): Remove inline.
5886         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
5887         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
5888         part of the object.
5889
5890         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
5891
5892 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
5893
5894         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
5895         the new syscalls, too.
5896
5897         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
5898         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
5899
5900         [BZ #6698]
5901         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
5902         parameter for end of buffer.  If temporary copy is too large use
5903         malloc.
5904         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
5905         interface change.
5906         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
5907         string rewrite when allocating buffer.
5908
5909         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
5910         syscalls, too.
5911
5912         * nscd/connections.c (nscd_init): Clean up fcntl call.
5913
5914         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
5915         SOCK_NONBLOCK if possible.
5916
5917         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
5918         SOCK_CLOEXEC if available.
5919
5920         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
5921         __libc_clntudp_bufcreate_internal.
5922         * include/sys/socket.h: Declare __have_sock_cloexec.
5923         * socket/Makefile (aux): Add have_sock_cloexec.
5924         * socket/have_sock_cloexec.c: New file.
5925         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
5926         __libc_clntudp_bufcreate.
5927         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
5928         which takes an additional parameter.  Create socket with non-blocking
5929         mode and close-on-exec flag set, if wanted.
5930         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
5931         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
5932         instead of clntudp_create.  The socket has already the close-on-exec
5933         flag set if SOCK_CLOEXEC is defined.
5934
5935 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
5936
5937         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5938         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
5939         appropriate.
5940         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
5941         non-blocking mode by using socket, paccept, and inotify_init1.
5942
5943         * Versions.def (glibc): Add GLIBC_2.9.
5944         * io/Makefile (routines): Add dup3 and pipe2.
5945         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
5946         * io/dup3.c: New file.
5947         * io/pipe2.c: New file.
5948         * posix/unistd.h: Declare dup3 and pipe2.
5949         * socket/Makefile (routines): Add paccept.
5950         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
5951         * socket/paccept.c: New file.
5952         * socket/sys/socket.h: Declare paccept.
5953         * sysdeps/unix/syscalls.list: Add entry for dup3.
5954         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
5955         epoll_create2 and inotify_init1.
5956         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
5957         * sysdeps/unix/sysv/linux/paccept.c: New file.
5958         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
5959         possible.
5960         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
5961         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
5962         inotify_init1, and pipe2 entries.
5963         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
5964         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
5965         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
5966         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
5967         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
5968         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
5969         SOCK_NONBLOCK.
5970         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
5971         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
5972         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
5973         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
5974         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
5975         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
5976         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
5977         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
5978         EPOLL_NONBLOCK.  Declare epoll_create2.
5979         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
5980         EFD_NONBLOCK.
5981         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
5982         IN_NONBLOCK.  Declare inotify_init1.
5983         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
5984         SFD_NONBLOCK.
5985         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
5986         TFD_NONBLOCK.
5987
5988         * elf/elf.h: Define AT_EXECFN.
5989         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
5990         LD_ORIGIN_PATH.
5991         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
5992         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
5993         if __ASSUME_AT_EXECFN is defined.
5994         (_dl_aux_init): Handle AT_EXECFN.
5995         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
5996         for 2.6.27 and up.
5997         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
5998         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
5999         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
6000         _dl_execfn if available and avoid compatibility code if
6001         __ASSUME_AT_EXECFN is defined.
6002
6003         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
6004         _dl_discover_osversion only for older kernels.
6005
6006 2008-07-22  Roland McGrath  <roland@frob.com>
6007
6008         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
6009
6010 2008-07-21  Roland McGrath  <roland@frob.com>
6011
6012         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
6013         returned too much data out of line.
6014
6015 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
6016
6017         * locale/setlocale.c (setname): Remove inline to avoid compiler
6018         warning.
6019
6020         [BZ #6712]
6021         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
6022
6023 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
6024
6025         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
6026         doesn't manage to write anything, fail.
6027
6028         * malloc/hooks.c (__malloc_check_init): Remove printf.
6029
6030 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6031
6032         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
6033
6034 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
6035
6036         * nscd/connections.c (main_loop_poll): Fix handling of read errors
6037         from inotify.
6038         (main_loop_epoll): Likewise.
6039
6040 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
6041
6042         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
6043
6044         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
6045         if DEBUG is defined.
6046
6047         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
6048         query.  Adjust buffer size computation for padding.
6049
6050 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
6051
6052         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
6053         * stdio-common/tst-setvbuf1.c: New file.
6054         * stdio-common/tst-setvbuf1.expect: New file.
6055
6056         [BZ #6719]
6057         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
6058         when selecting fully-buffered stream.
6059         Patch by Wang Xin <wxinee@gmail.com>.
6060
6061 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6062
6063         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
6064         (__open_2): New function.
6065         (__open64_2): New alias to __open_2.
6066         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
6067         (__openat_2): New function.
6068         (__openat64_2): New alias to __openat_2.
6069
6070 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
6071
6072         [BZ #6723]
6073         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
6074
6075 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6076
6077         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
6078         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
6079         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
6080         __hurd_dfail.
6081         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6082         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6083         * sysdeps/mach/hurd/send.c (__send): Likewise.
6084         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
6085         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
6086
6087 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6088
6089         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
6090         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
6091         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
6092         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
6093         * hurd/get-host.c (_hurd_get_host_config): Likewise.
6094         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
6095
6096 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
6097
6098         [BZ #6657]
6099         * time/strptime_l.c: Don't clear s.era_cnt after successful match
6100         of %EY.
6101         Patch by Petr Baudis.
6102
6103 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
6104
6105         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
6106         Patch by Peter Jones <pjones@redhat.com>.
6107
6108 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6109
6110         [BZ #6654]
6111         * stdlib/canonicalize.c (__realpath): readlink can write too much
6112         into the buffer on platforms without PATH_MAX.
6113
6114 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
6115
6116         [BZ #6653]
6117         * posix/tst-regex.c (main): Rename to...
6118         (do_test): ... this. Remove cmdline option processing.
6119         (TIMEOUT): Define.
6120         (TEST_FUNCTION): Define.
6121         (CMDLINE_OPTIONS): Define.
6122
6123 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
6124
6125         [BZ #5210]
6126         * configure.in: Add -Werror to -fstack-protector test to catch
6127         unsupported architectures.
6128         Patch by Gilles Esponasse <g.esp@free.fr>.
6129
6130 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
6131
6132         * stdlib/tst-setcontext.c: Set back_in_main before exit if
6133         getcontext returns ENOSYS.
6134
6135 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
6136
6137         * nscd/connections.c (main_loop_poll): Fix test for read error.
6138         (main_loop_epoll): Likewise.
6139
6140 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
6141
6142         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
6143         better place so it is not called when nscd is used.
6144
6145         * nscd/connections.c: Also recognize and handle changes to the
6146         resolver configuration file.
6147
6148 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6149
6150         * time/strftime.c: Pass reference to tzset_called around to handle
6151         recursive calls.
6152
6153         [BZ #6612]
6154         * time/strftime.c (__strftime_internal): Call tzset() only
6155         when printing timezone-dependent values.
6156         Based on a patch by Petr Baudis <pasky@suse.cz>.
6157
6158         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
6159         unconditionally use second gaih_getanswer_slice result.
6160
6161         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
6162         (getaddrinfo): RES must always be non-NULL.
6163
6164 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
6165
6166         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
6167         cr[34] registers.
6168         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6169         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6170         Likewise.
6171         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
6172         register.
6173
6174 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
6175
6176         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
6177         fields.
6178         * nscd/connections.c (inotify_fd): New variable.
6179         (nscd_init): Try to open an inotify descriptor.
6180         If successful, watch files for databases using inotify instead of
6181         having prune threads stat the files.
6182         (nscd_run_prune): Recognize clear_cache flag being set and call
6183         prune_cache appropriately.
6184         (main_loop_poll): Add inotify descriptor to wait set and handle the
6185         reported changes.
6186         (main_loop_epoll): Likewise.
6187         * nscd/cache.c (prune_cache): Don't stat files for databases if
6188         inotify is used.
6189         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
6190         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
6191
6192         * nscd/grpcache.c (cache_addgr): Correctly compute size of
6193         fixed-size portion of the record.
6194         * nscd/servicescache.c (cache_addserv): Likewise.
6195         * nscd/pwdcache.c (cache_addpw): Likewise.
6196         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6197
6198 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
6199
6200         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
6201         out we don't use uninitialized memory.
6202
6203         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
6204         the client.
6205
6206 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
6207
6208         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
6209         ignore T_DNAME messages.
6210         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
6211
6212 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
6213
6214         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
6215         Avoid segfault if first GETC returns eof/'\0'/'\n'.
6216
6217 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
6218
6219         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
6220         instead of portstr to nscd_getserv_r.  Patch by
6221         Roman Kagan <rkagan@mail.ru>.
6222
6223 2008-05-26  Jim Meyering  <meyering@redhat.com>
6224
6225         Remove more useless "if" tests before "free".
6226         * include/inline-hashtab.h (htab_delete): Likewise.
6227         * libio/freopen.c (freopen): Likewise.
6228         * libio/freopen64.c (freopen64): Likewise.
6229         * locale/programs/ld-collate.c (collate_read): Likewise.
6230         * misc/fstab.c (libc_freeres_fn): Likewise.
6231         * posix/glob.c (globfree): Likewise.
6232
6233 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6234
6235         * string/Makefile (strop-tests): Add memmem.
6236         * string/test-memmem.c: New file.
6237         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
6238         (test_init): Size buf1 according to BUF1PAGES.
6239
6240 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
6241
6242         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
6243         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
6244         (CFLAGS-scanf17.c): New.
6245         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
6246         * stdio-common/scanf15.c (main): Likewise.
6247         * stdio-common/scanf16.c: New file.
6248         * stdio-common/scanf17.c: New file.
6249
6250 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
6251
6252         * resolv/res_send.c (send_dg): If we already have one of two
6253         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
6254         use the one answer insted of failing.
6255
6256 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
6257
6258         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
6259         being executed on PowerPC as the expected result exceeds IBM
6260         long double 128 __LDBL_MAX__.
6261
6262 2008-05-21  Roland McGrath  <roland@redhat.com>
6263
6264         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
6265
6266         * Makefile (check-data): Use $(abi-name) before other guesses.
6267         Look in $(add-ons) dirs before scripts/data/.
6268         * elf/Makefile (check-data): Likewise.
6269
6270         * scripts/soversions.awk: Grok ABI line.
6271         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
6272         Emit definition for abi-name variable.
6273
6274 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
6275
6276         * string/endian.h: Define new fixed-size hto* and *toh macros only
6277         if [__USE_BSD].
6278
6279         * iconvdata/Depend: Add localedata.
6280
6281 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6282
6283         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
6284
6285 2008-05-08  David S. Miller  <davem@davemloft.net>
6286
6287         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
6288         HIDDEN_JUMPTARGET.
6289         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6290         (__SYSCALL_CLOBBERS): Remove %g* registers.
6291         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6292         (__SYSCALL_CLOBBERS): Likewise.
6293         * scripts/data/localplt-sparc-linux-gnu.data: New file.
6294         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
6295
6296 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
6297
6298         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
6299         (CALL_ERRNO_LOCATION): Define.
6300         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6301         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
6302         (CALL_ERRNO_LOCATION): Define.
6303         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
6304         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
6305         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
6306
6307 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
6308
6309         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
6310         variable.
6311
6312 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
6313
6314         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6315         (FIRST_FRAME_POINTER): Define.
6316
6317 2008-05-09  David S. Miller  <davem@davemloft.net>
6318
6319         * sysdeps/sparc/sparc64/backtrace.c: New file.
6320
6321 2008-05-14  David S. Miller  <davem@davemloft.net>
6322
6323         * sysdeps/sparc/machine-gmon.h: New file.
6324         * sysdeps/sparc/sparc-mcount.S: Likewise.
6325         * sysdeps/sparc/Makefile: Add sparc-mcount target to
6326         sysdep_routines in gmon directory.
6327
6328 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
6329
6330         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
6331
6332 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
6333
6334         * resolv/res_query.c (__libc_res_nquery): In case one of two
6335         answer was too short don't try to read that answer's header.
6336
6337         * resolv/res_send.c (send_dg): In case of timeout and there are
6338         two queries and one has been answered, return value indicating
6339         success.
6340
6341 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
6342
6343         * nscd/cache.c (cache_add): Take additional parameter specifying
6344         whether this is in response of a cache refill.  Check alignment
6345         of package data.  Revamp waking of pruning thread.
6346         (prune_cache): Small optimization.
6347         * nscd/nscd.h: Adjust cache_add prototypes.
6348         * nscd/aicache.c: Adjust cache_add calls.
6349         * nscd/grpcache.c: Likewise.
6350         * nscd/hstcache.c: Likewise.
6351         * nscd/initgrcache.c: Likewise.
6352         * nscd/pwdcache.c: Likewise.
6353         * nscd/servicescache.c: Likewise.
6354         * nscd/connections.c (restart): Really disable cache use before
6355         exec attempt.  If it fails, reenable cache.
6356         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
6357         time to max to be able to notice concurrent cache additions.  Unlock
6358         prune_lock while performing gc.  Afterwards compute wakeup time with
6359         current wakeup_time value in mind.
6360
6361 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
6362
6363         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
6364
6365         * nscd/mem.c (gc): Correctly determine highest used array element
6366         in mark.
6367
6368         * nscd/mem.c (markrange): Add assert to check entries are all
6369         aligned.  Small cleanup in bitmap use.
6370
6371         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
6372         blockoff of type nscd_ssize_t.
6373         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
6374         (mempoll_alloc): Record block offset and not address.
6375
6376         * nscd/mem.c (gc): Fix test for stack overuse.
6377
6378         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
6379         more asserts.
6380
6381         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
6382         entry is available, believe it.
6383
6384         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
6385         no answers return NSS_STATUS_NOTFOUND.
6386         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
6387         buffer does not have any content.
6388
6389 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
6390
6391         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
6392
6393         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
6394         lookup, don't assign canon unconditionally.
6395
6396 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6397
6398         * string/Makefile (distribute): Add str-two-way.h.
6399
6400 2008-03-29  Eric Blake  <ebb9@byu.net>
6401
6402         Rewrite string searches to O(n) rather than O(n^2).
6403         * string/str-two-way.h: New file.  For linear fixed-allocation
6404         string searching.
6405         * string/memmem.c: New implementation.
6406         * string/strstr.c: New implementation.
6407         * string/strcasestr.c: New implementation.
6408
6409 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
6410
6411         * posix/regcomp.c (optimize_utf8): Add a note on why we test
6412         opr.ctx_type.
6413         (calc_first): Initialize constraint field.
6414         (duplicate_node_closure): Use it instead of special casing ANCHORS.
6415         Use search_duplicated_node to avoid loops.  Fix grammar.
6416         (duplicate_node): Merge constraint field for all node types.
6417         (calc_eclosure_iter): Look at constraint field for all node types.
6418         * posix/regex_internal.c (create_cd_newstate): Don't look at
6419         create_cd_newstate.
6420
6421 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6422
6423         [BZ #6428]
6424         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
6425
6426         [BZ #6442]
6427         * string/endian.h: Add macros for fixed-size endian conversion.
6428         * bits/byteswap.h: Allow inclusion from <endian.h>.
6429         * sysdeps/i386/bits/byteswap.h: Likewise.
6430         * sysdeps/ia64/bits/byteswap.h: Likewise.
6431         * sysdeps/s390/bits/byteswap.h: Likewise.
6432         * sysdeps/x86_64/bits/byteswap.h: Likewise.
6433         * string/Makefile (tests): Add tst-endian.
6434         * string/tst-endian.c: New file.
6435
6436         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
6437         Patch by Reuben Thomas.
6438
6439 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
6440
6441         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
6442
6443 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
6444
6445         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
6446
6447         [BZ #6461]
6448         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
6449         Add missing braces.
6450         (BODY for __gconv_transform_internal_ascii): Likewise.
6451
6452         [BZ #6472]
6453         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
6454         to be treated like link-local addresses.
6455         (match_prefix): Don't treat IPv4 loopback address special when
6456         converting to v4 mapped addressed.
6457
6458         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
6459         if necessary.
6460         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
6461         * posix/tst-rfc3484-2.c: Likewise.
6462         * posix/tst-rfc3484-3.c: Likewise.
6463
6464         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
6465         and SCTP.
6466
6467         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
6468
6469         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
6470
6471         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
6472
6473 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
6474
6475         * po/lt.po: New file.  From Lituanian translation team.
6476
6477 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
6478
6479         Introduce TLS descriptors for i386 and x86_64.
6480         * include/inline-hashtab.h: New file, copied from 2005's
6481         libiberty, with fix for memory leak imported afterwards by
6482         Glauber de Oliveira Costa.
6483         * elf/tlsdeschtab.h: New file.
6484         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
6485         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
6486         (CHECK_STATIC_TLS): Move to...
6487         * elf/dynamic-link.h: ... this file.
6488         (TRY_STATIC_TLS): New macro.
6489         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
6490         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
6491         R_386_TLS_DESC): Define.
6492         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
6493         binutils.
6494         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
6495         R_X86_64_TLSDESC): Define.
6496         (R_386_NUM, R_X86_64_NUM): Adjust.
6497         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
6498         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6499         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6500         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6501         release tlsdesc_table.
6502         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
6503         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
6504         (elf_machine_rel): Handle R_386_TLS_DESC.
6505         (elf_machine_rela): Likewise.
6506         (elf_machine_lazy_rel): Likewise.
6507         (elf_machine_lazy_rela): Likewise.
6508         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
6509         * sysdeps/i386/dl-tlsdesc.S: New file.
6510         * sysdeps/i386/dl-tlsdesc.h: New file.
6511         * sysdeps/i386/tlsdesc.c: New file.
6512         * sysdeps/i386/tlsdesc.sym: New file.
6513         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
6514         tlsdesc_table.
6515         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
6516         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
6517         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
6518         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
6519         release tlsdesc_table.
6520         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
6521         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
6522         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
6523         (elf_machine_rel): Handle R_X86_64_TLSDESC.
6524         (elf_machine_rela): Likewise.
6525         (elf_machine_lazy_rel): Likewise.
6526         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
6527         (__tls_get_addr): Do not declare for non-shared compiles.
6528         * sysdeps/x86_64/dl-tlsdesc.S: New file.
6529         * sysdeps/x86_64/dl-tlsdesc.h: New file.
6530         * sysdeps/x86_64/tlsdesc.c: New file.
6531         * sysdeps/x86_64/tlsdesc.sym: New file.
6532         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
6533         tlsdesc_table for both 32- and 64-bit structs.
6534
6535 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6536
6537         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
6538         its own function.  This reduces the frame setup costs and more.
6539
6540 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
6541
6542         [BZ #3406]
6543         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
6544         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
6545
6546 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
6547
6548         * io/openat.c (__openat_2): Also pass fd to __openat.
6549         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
6550         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
6551
6552         * string/tester.c (test_memcmp): Add a few more tests.
6553         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
6554
6555 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6556
6557         * nscd/cache.c (cache_add): Before returning with failure and this
6558         is the first use of the record, mark it as unusable.
6559         * nscd/aicache.c: Don't touch the dataset after cache_add returns
6560         reporting a failure.
6561         * nscd/grpcache.c: Likewise
6562         * nscd/hstcache.c: Likewise.
6563         * nscd/initgrcache.c: Likewise.
6564         * nscd/pwdcache.c: Likewise.
6565         * nscd/servicescache.c: Likewise.
6566
6567 2008-05-10  Roland McGrath  <roland@redhat.com>
6568
6569         [BZ #6505]
6570         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
6571
6572 2008-05-08  David S. Miller  <davem@davemloft.net>
6573
6574         * misc/truncate64.c (truncate64): Use __truncate not truncate.
6575
6576         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
6577         (__ieee754_y0l): Likewise.
6578         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6579         (__ieee754_y1l): Likewise.
6580         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
6581         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
6582         frexpl and ldexpl.  math_private.h provides them and the latter
6583         is not even used.
6584         (__log1pl): Use __frexpl.
6585
6586 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
6587
6588         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
6589         prototypes.
6590         * include/arpa/nameser_compat.h: Define T_UNSPEC.
6591         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
6592         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
6593         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
6594         af==AF_UNSPEC.
6595         (_nss_nis_gethostbyname4_r): New function.
6596         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
6597         Change to also handle af==AF_UNSPEC.
6598         (get_tablename): New function.  Use it to avoid duplication.
6599         (_nss_nisplus_gethostbyname4_r): New function.
6600         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
6601         available.
6602         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
6603         * nss/nss.h: Define struct gaih_addrtuple.
6604         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
6605         af==AF_UNSPEC.
6606         (_nss_files_gethostbyname4_r): New function.
6607         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
6608         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
6609         calls.
6610         * resolv/res_query.c (__libc_res_nquery): Take two additional
6611         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
6612         look up IPv4 and IPv6.
6613         Change all callers.
6614         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
6615         for an additional query and answer buffer.  Pass to send_vc and
6616         send_dg.
6617         (send_vc): Send possibly two requests and receive two answers.
6618         (send_dg): Likewise.
6619         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
6620         __libc_res_nquery.
6621         (_nss_dns_gethostbyname4_r): New function.
6622         (gaih_getanswer_slice): Likewise.
6623         (gaih_getanswer): Likewise.
6624         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
6625         __libc_res_nquery call.
6626         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
6627         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
6628         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
6629         available.
6630
6631 2008-05-05  David S. Miller  <davem@davemloft.net>
6632
6633         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
6634         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
6635
6636 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6637
6638         Fix termios bit macros.
6639         Move *DLY definitions where they belong, in termios.h.
6640         Add *[0-3] definitions.
6641         Fixes confusion between VT and FF.
6642         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
6643         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
6644         are already defined to avoid collision with termios.h.
6645         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
6646         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
6647         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
6648         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
6649         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
6650         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
6651         VTDLY, VT0, VT1): New macros.
6652         [__USE_GNU] (OLCUC): Change value of macro.
6653         [__USE_XOPEN] (OFILL): New macro.
6654         [__USE_BSD] (CRTSCTS): Change value.
6655         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
6656         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
6657         (B7200, B14400, B28800, B76800): New macros.
6658
6659 2008-05-01  David S. Miller  <davem@davemloft.net>
6660
6661         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
6662         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
6663         (gen-as-const-headers): Add it.
6664         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
6665         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
6666         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
6667         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
6668
6669         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
6670         six system call parameters.
6671         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
6672
6673 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
6674
6675         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
6676         RUSAGE_LWP.
6677         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
6678         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
6679
6680 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
6681
6682         * stdlib/tst-setcontext.c: Include unistd.h.
6683
6684 2008-04-25  David S. Miller  <davem@davemloft.net>
6685
6686         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
6687         Pass "union semun" properly in to sys_ipc, it must be passed
6688         by value, not by reference.
6689
6690 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
6691
6692         * nscd/Makefile (nscd-cflags): Set back to -fpie.
6693         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
6694         * nscd/connections.c (mem_in_flight): Likewise.
6695
6696         * nscd/nscd.h (dbs): Make hidden.
6697
6698         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
6699         Avoid returning -1, return 0 instead.
6700
6701 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
6702
6703         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
6704
6705 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
6706
6707         [BZ #5209]
6708         * sysdeps/unix/sysv/linux/times.c: New file.
6709
6710         [BZ #5381]
6711         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
6712         mem_in_flight_list variables.  Add new parameter to mempool_alloc
6713         prototype.
6714         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
6715         appropriate mem_in_flight element.
6716         (gc): Take allocations which have not yet been committed to the
6717         database into account.
6718         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
6719         Reset mem_in_flight before returning.
6720         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
6721         cue it up in mem_in_flight_list.
6722         * nscd/aicache.c: Adjust mempool_alloc call.
6723         * nscd/grpcache.c: Likewise.
6724         * nscd/hstcache.c: Likewise.
6725         * nscd/initgrcache.c: Likewise.
6726         * nscd/pwdcache.c: Likewise.
6727         * nscd/servicescache.c: Likewise.
6728         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
6729         of -fpie.
6730
6731         * nscd/connections.c (handle_request): Provide better error message
6732         in case SELinux forbids the service.
6733
6734         * version.h (VERSION): Bump to 2.8.90.
6735
6736 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
6737
6738         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
6739
6740 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6741
6742         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
6743         Also use for 32-bit.
6744         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
6745         __nextafter instead of nextafter to avoid local PLT.
6746         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
6747         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6748
6749         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
6750
6751         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
6752         __fe_nomask_env.
6753         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
6754         <fenv_libc.h> instead of <fenv.h>.
6755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6757
6758         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
6759
6760         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
6761         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
6762         function from fegetexcept and make old name weak alias.
6763         * include/fenv.h: Declare __fegetexcept.
6764         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
6765         fegetexcept.
6766         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
6767         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
6768         to fetestexcept.
6769         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
6770         instead of frexpl to avoid local PLT.
6771         * math/s_significandl.c (__significandl): Use __ilogbl instead of
6772         ilogbl to avoid local PLT.
6773         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
6774         instead of ldexpl to avoid local PLT.
6775         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
6776         __roundl not roundl to avoid local PLT.
6777         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
6778         local PLTs.  Use __sincosl instead of separate sinl and cosl
6779         calls.
6780         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6781
6782         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
6783         version for ppc64 to 2.4.21 since without it makecontext will fail.
6784
6785         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
6786         to the ABI in use.
6787         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
6788         .__tls_get_addr.
6789         [__powerpc64__] (TLS_GD): Likewise.
6790
6791 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
6792
6793         [BZ #4997]
6794         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
6795         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
6796         mantissa.
6797         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
6798         Likewise.  Also account for when x is an odd number between 2^52
6799         and 2^53-1.
6800         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
6801         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
6802         * math/libm-test.inc (lround_test, llround_test): Added test cases to
6803         detect aforementioned erroneous conditions.
6804
6805 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6806
6807         * configure.in: Check for -fno-section-anchors in addition to
6808         -fno-toplevel-reorder.
6809
6810 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
6811
6812         * include/features.h (__GLIBC_MINOR__): Bump to 8.
6813
6814         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
6815         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
6816         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
6817         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
6818         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
6819         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
6820
6821 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
6822
6823         [BZ #5443]
6824         * time/era.c: Transform __libc_setlocale_lock into rwlock.
6825         * time/alt_digit.c: Likewise.
6826         * wcsmbs/wcsmbsload.c: Likewise.
6827
6828 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
6829
6830         * version.h (VERSION): Bump to 2.8.
6831
6832         * timzeone/asia: Update from tzdata2008b.
6833         * timezone/backward: Likewise.
6834         * timezone/europe: Likewise.
6835         * timezone/northamerica: Likewise.
6836         * timezone/southamerica: Likewise.
6837         * timezone/iso3166.tab: Likewise.
6838         * timezone/leapseconds: Likewise.
6839         * timezone/zone.tab: Likewise.
6840         * timezone/private.h: Update from tzcode2008a.
6841         * timezone/zdump.c: Likewise.
6842         * timezone/zic.c: Likewise.
6843
6844 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
6845
6846         [BZ #5741]
6847         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
6848         Define additonal Data Cache Block instruction macros.
6849         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
6850         Replace dcbst with dcbf and sync with sync/isync.
6851
6852 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
6853
6854         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
6855         Always set ELF_RTYPE_CLASS_PLT.
6856         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
6857
6858 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
6859
6860         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
6861         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
6862         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
6863         For ISA 2.01 and later replace mftb with mfspr 268.
6864
6865 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
6866
6867         [BZ #5768]
6868         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
6869         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
6870
6871 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
6872
6873         [BZ #5768]
6874         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
6875         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
6876         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
6877         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
6878
6879 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
6880
6881         * stdlib/tst-makecontext.c (othervar): New variable.
6882         (cf): Test sign extending the argument to long.
6883
6884 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
6885
6886         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
6887         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
6888         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
6889         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
6890         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
6891         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
6892         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
6893
6894 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
6895
6896         * elf/Makefile (tests): Substitute tests-vis-yes here.
6897         (tests-vis-yes): Delete.
6898         (modules-name, modules-vis-yes): Similarly.
6899
6900 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
6901
6902         [BZ #4407]
6903         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6904         Preserve sign in signgamp when x is zero.
6905
6906 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
6907
6908         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
6909         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
6910         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
6911         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
6912         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
6913         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
6914
6915 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6916
6917         [BZ #4314]
6918         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
6919         buffers.
6920
6921         [BZ #5209]
6922         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
6923         a reserved error value.
6924
6925         * stdlib/tst-makecontext.c: Change parameter to cf to negative
6926         value to check for correct sign extension.
6927
6928         [BZ #5436]
6929         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6930         Copy 64-bit parameter values even though this is not required in
6931         the standard.
6932
6933         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
6934         PC save.
6935
6936 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
6937
6938         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
6939         PC save.
6940
6941 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
6942
6943         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
6944
6945 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
6946
6947         [BZ #5998]
6948         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
6949         in line-buffered stream failed.
6950         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
6951
6952 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
6953
6954         [BZ #6024]
6955         * scripts/abi-versions.awk: If the version specified by
6956         --enable-oldest-abi is older than the first version for this
6957         architecture, use the default version.
6958
6959         * locale/programs/ld-collate.c (collate_read): Ignore script lines
6960         as well when ignoring the whole category.
6961
6962 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6963
6964         [BZ #6042]
6965         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
6966         ETHERTYPE_* definitions.
6967         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
6968
6969 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6970
6971         * stdlib/mbtowc.c (__no_r_state): Remove.
6972         (mbtowc): New static state variable.  Use it instead of
6973         __no_r_state.
6974         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
6975         (__wctomb_state): New hidden variable.
6976         (wctomb): Use __wctomb_state instead of __no_r_state.
6977         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
6978         (__wctomb_state): New extern decl.
6979         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
6980
6981 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
6982
6983         [BZ #5475]
6984         * resolv/res_init.c: Handle scope IDs in resolv.conf.
6985
6986 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
6987
6988         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
6989
6990 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
6991
6992         * po/nl.po: Update from translation team.
6993
6994 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
6995
6996         [BZ #6007]
6997         * string/strfry.c: Handle empty strings again.
6998
6999 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
7000
7001         [BZ #5443]
7002         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
7003         before looking for translation.
7004         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
7005         * locale/freelocale.c: Likewise.
7006         * locale/newlocale.c: Likewise.
7007         * locale/setlocale.c: Likewise.
7008         Based partially on a patch by ryo@np.css.fujitsu.com.
7009
7010 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
7011
7012         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
7013         acquiring wrlock.  Do conv_tab allocation while holding lock.
7014         * intl/Makefile: Add rules to build and run tst-gettext6.
7015         * intl/tst-gettext6.c: New test.
7016         * intl/tst-gettext6.sh: New file.
7017
7018 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
7019
7020         * po/nl.po: Update from translation team.
7021
7022         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
7023         provided through st_blksize, try the default size before giving up.
7024
7025 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
7026
7027         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
7028
7029         [BZ #5939]
7030         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
7031
7032         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
7033         error message.  POSIX today does not require the messages to be in
7034         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
7035
7036         [BZ #5979]
7037         * sunrpc/auth_unix.c: Unify printed strings.
7038         * sunrpc/clnt_tcp.c: Likewise.
7039         * sunrpc/clnt_udp.c: Likewise.
7040         * sunrpc/clnt_unix.c: Likewise.
7041         * sunrpc/svc_tcp.c: Likewise.
7042         * sunrpc/svc_udp.c: Likewise.
7043         * sunrpc/svc_unix.c: Likewise.
7044         * sunrpc/xdr.c: Likewise.
7045         * sunrpc/xdr_array.c: Likewise.
7046         * sunrpc/xdr_rec.c: Likewise.
7047         * sunrpc/xdr_ref.c: Likewise.
7048         * locale/programs/ld-time.c (time_finish): Unify messages.
7049         * locale/programs/locfile.c (handle_copy): Fix typo.
7050         * nscd/nscd.c (options): Fix typo.
7051
7052         [BZ #5995]
7053         * stdlib/strtod_l.c: Use correct sign for result in one more
7054         underflow case.
7055         Patch by Eric Blake <ebb9@byu.net>.
7056
7057 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
7058
7059         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
7060         and creat system calls.
7061         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
7062         call.
7063         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
7064         system calls.
7065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
7066         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
7067         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
7068
7069 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
7070
7071         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
7072         <linux/limits.h> has defined it.
7073         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
7074         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
7075         headers.
7076         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
7077         it instead of ARG_MAX.
7078
7079 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
7080
7081         * posix/gai.conf: Fix comment for scope nullbits.
7082         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
7083         default to 128 bits for v4 mapped addresses.
7084
7085 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7086
7087         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
7088         ptrace call to get the ieee_instruction_pointer from the kernel.
7089         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
7090         ptrace call to set the ieee_instructtion_pointer.
7091         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
7092         Add comment that ieee_instruction_pointer is always 0.
7093
7094 2008-03-09  Andreas Jaeger  <aj@suse.de>
7095
7096         [BZ #5857]
7097         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
7098         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
7099         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
7100
7101         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
7102         (rint_test): Likewise.
7103
7104 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
7105
7106         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
7107         call.
7108         (__nisfind_server): Similar for open readColdStartFile call.
7109         Patch partially by Jim Meyering.
7110         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
7111         around internal_setent call.
7112
7113         * po/vi.po: New Vietnamese translation.
7114
7115         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
7116         ADJ_OFFSET_SS_READ.
7117
7118         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
7119         remove CLONE_STOPPED.
7120
7121 2008-02-10  Jim Meyering  <meyering@redhat.com>
7122
7123         Remove useless "if" before "free":
7124         * elf/ldconfig.c (parse_conf_include): Likewise.
7125         * gmon/gmon.c (weak_alias): Likewise.
7126         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
7127         * inet/rcmd.c (__validuser2_sa): Likewise.
7128         * intl/bindtextdom.c (set_binding_values): Likewise.
7129         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
7130         * libio/genops.c (save_for_backup): Likewise.
7131         * libio/wgenops.c (save_for_wbackup): Likewise.
7132         * locale/programs/ld-collate.c (collate_read): Likewise.
7133         * locale/programs/linereader.c (get_string): Likewise.
7134         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
7135         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
7136         * resolv/res_debug.c (do_section): Likewise.
7137         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
7138         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
7139         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
7140         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
7141         * time/tzset.c (tzset_internal): Likewise.
7142
7143 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
7144
7145         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
7146         of ASSEMBLER.
7147
7148 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
7149
7150         [BZ #5903]
7151         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
7152         not stream for output file.  Open output file here.
7153         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
7154         and output file name.
7155         (process_fd): Likewise.
7156         (process_file): Likewise.
7157         (main): Adjust callers of changed functions.
7158         * iconv/iconv_prog.h: Adjust prototype.
7159
7160 2008-03-09  Andreas Jaeger  <aj@suse.de>
7161
7162         [BZ #5753]
7163         * sysdeps/ia64/ieee754.h: Use protected namespace
7164         __BIG_ENDIAN/__LITTLE_ENDIAN.
7165         * sysdeps/ieee754/ieee754.h: Likewise.
7166         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7167
7168 2008-03-08  Roland McGrath  <roland@frob.com>
7169
7170         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
7171         ignore a signal that came from a machine exception, treat it as a
7172         fatal core-dump signal instead.
7173         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7174
7175         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7176         Clear DF bit in thread state's eflags.
7177         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7178
7179 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
7180
7181         [BZ #5774]
7182         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
7183         of NAN(...) sequence.
7184         * stdlib/Makefile (tests): Add tst-strtod6.
7185         * stdlib/tst-strtod6.c: New file.
7186
7187         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
7188
7189         [BZ #5762]
7190         * posix/getopt.c (_getopt_internal_r): Clarify error message by
7191         putting offending option character in quotes.  Clean up error
7192         messages.
7193         * po/be.po: Adjust msgstr in translation file.
7194         * po/bg.po: Likewise.
7195         * po/ca.po: Likewise.
7196         * po/cs.po: Likewise.
7197         * po/da.po: Likewise.
7198         * po/de.po: Likewise.
7199         * po/es.po: Likewise.
7200         * po/fr.po: Likewise.
7201         * po/hr.po: Likewise.
7202         * po/ko.po: Likewise.
7203         * po/nl.po: Likewise.
7204         * po/rw.po: Likewise.
7205         * po/sk.po: Likewise.
7206         * po/sv.po: Likewise.
7207         * po/tr.po: Likewise.
7208         * po/zh_CN.po: Likewise.
7209         * po/zh_TW.po: Likewise.
7210
7211         [BZ #5760]
7212         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
7213         Patch by Roland Bless <roland@bless.de>.
7214
7215         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
7216         .o file.
7217         * elf/Makefile (routines): Add dl-sysdep.
7218         (elide-routines.os): Likewise.
7219
7220 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
7221
7222         [BZ #5786]
7223         * elf/dl-sysdep.c: Undefine ROUND after use.
7224         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
7225         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
7226         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
7227         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
7228         to ...
7229         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
7230         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
7231         if necessary.
7232         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
7233
7234         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
7235         _dl_tls_get_addr_soft element.
7236         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
7237         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
7238         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
7239         GLRO.
7240         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7241         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
7242         of internal_function.
7243
7244         * stdlib/Makefile (aux): Add tens_in_limb.
7245         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
7246         * stdlib/tens_in_limb.c: ...here.  New file.
7247
7248         [BZ #5778]
7249         * sysdeps/unix/sysv/linux/pathconf.h: Declare
7250         __statfs_chown_restricted.
7251         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
7252         for _PC_CHOWN_RESTRICTED.
7253         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
7254         Implement __statfs_chown_restricted.
7255         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
7256         _POSIX_CHOWN_RESTRICTED value to zero.
7257         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
7258         defined to zero.
7259
7260         * sysdeps/x86_64/rtld-memset.c: New file.
7261
7262 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
7263
7264         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
7265
7266         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
7267         Barcelona machine.  Make default fall through branch of
7268         __x86_64_preferred_memory_instruction check as the integer code path.
7269
7270 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
7271
7272         * sysdeps/x86_64/cacheinfo.c
7273         (__x86_64_preferred_memory_instruction): New variable.
7274         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
7275
7276         * sysdeps/x86_64/memset.S: Rewrite.
7277
7278 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
7279
7280         * include/stdio.h (__asprintf_chk, __dprintf_chk,
7281         __obstack_printf_chk): New prototypes.
7282         (__vasprintf_chk, __vdprintf_chk,
7283         __obstack_vprintf_chk): Likewise.
7284         Add libc_hidden_proto.
7285         * libio/obprintf.c
7286         (_IO_obstack_jumps): No longer static, add attribute_hidden.
7287         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
7288         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7289         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
7290         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
7291         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
7292         __obstack_vprintf_chk): New prototypes.
7293         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
7294         obstack_vprintf): New inlines.
7295         * debug/dprintf_chk.c: New file.
7296         * debug/vdprintf_chk.c: New file.
7297         * debug/asprintf_chk.c: New file.
7298         * debug/vasprintf_chk.c: New file.
7299         * debug/obprintf_chk.c: New file.
7300         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
7301         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
7302         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
7303         @@GLIBC_2.8.
7304         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
7305         vdprintf_chk and obprintf_chk, set CFLAGS for them.
7306         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
7307         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
7308         libc_hidden_proto.
7309         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
7310         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
7311         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
7312         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
7313         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
7314         @@GLIBC_2.8.
7315         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
7316         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
7317         obstack_vprintf_chk.
7318         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
7319         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
7320         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
7321         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
7322         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
7323         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
7324
7325 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
7326
7327         [BZ #5779]
7328         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
7329         Patch by Roy Marples <roy@marples.name>.
7330
7331         [BZ #5736]
7332         * malloc/malloc.c: Fix typo in comment.
7333
7334         [BZ #5627]
7335         * locale/iso-639.def: Add Shuswap.
7336
7337 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
7338
7339         [BZ #5790]
7340         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
7341         overwrite *h_errnop/*errnop values from getanswer_r in case of
7342         failure.
7343
7344 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
7345
7346         [BZ #5818]
7347         * nscd/connections.c (dbs): Add initializers for .suggested_module.
7348         (verify_persistent_db): Remove one unnecessary test and add a new one
7349         for bad configuration.
7350         (nscd_init): Improve error reported when persistent database cannot
7351         be reused.
7352         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
7353         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
7354         .suggested_module and .max_db_size and case config file says the
7355         values are zero.
7356         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
7357
7358         [BZ #5854]
7359         * nis/ypclnt.c (yp_order): Fix handling of return value of
7360         do_ypcall_tr call.
7361         Patch by Jeff Moyer <jmoyer@redhat.com>.
7362
7363         * po/fr.po: Update from translation team.
7364
7365 2008-02-22  Andreas Jaeger  <aj@suse.de>,
7366             Carlos O'Donell <carlos@systemhalted.org>
7367
7368         [BZ #5012]
7369         * FAQ.in: Describe why glibc needs to be compiled with
7370         optimization.
7371
7372 2008-02-19  Roland McGrath  <roland@redhat.com>
7373
7374         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
7375
7376 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
7377
7378         [BZ #5737]
7379         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
7380         __USE_MISC is defined.
7381
7382 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
7383
7384         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
7385         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
7386         sys/timerfd.h.
7387         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
7388         timerfd_gettime, timerfd_settime.
7389         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
7390         timerfd_gettime, timerfd_settime for GLIBC_2.8.
7391
7392 2008-02-08  Roland McGrath  <roland@redhat.com>
7393
7394         * elf/elf.h (NT_PPC_SPE): New macro.
7395
7396 2008-02-06  Roland McGrath  <roland@redhat.com>
7397
7398         * Makerules ($(common-objpfx)sysd-rules):
7399         Depend on $(sysdep-makeconfigs).
7400
7401 2008-01-31  Roland McGrath  <roland@redhat.com>
7402
7403         [BZ #5442]
7404         * configure.in: Use -print-file-name if it yields a directory,
7405         for each of include and include-fixed.
7406         * configure: Regenerated.
7407
7408         * Makeconfig (sysd-rules-targets): New variable.
7409         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
7410         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
7411
7412 2008-01-30  Roland McGrath  <roland@redhat.com>
7413
7414         * manual/libc.texinfo: Update back-cover text.
7415
7416         * elf/elf.h (NT_386_TLS): New macro.
7417
7418 2008-01-29  Roland McGrath  <roland@redhat.com>
7419
7420         * Makeconfig (sysd-rules-patterns): New variable.
7421         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
7422         (check-inhibit-asm): New canned sequence, replaces ...
7423         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
7424         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
7425         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
7426         (CFLAGS-rtld): Variable removed.
7427
7428 2008-01-24  Roland McGrath  <roland@redhat.com>
7429
7430         * configure.in: Let configure fragments set base_os.
7431         * configure: Regenerated.
7432
7433 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
7434
7435         * po/ko.po: Update from translation team.
7436
7437 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
7438
7439         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
7440
7441 2008-01-12  Andreas Jaeger  <aj@suse.de>
7442
7443         [BZ #5040]
7444         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
7445         Add EPOLLRDHUP.
7446
7447 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7448
7449         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
7450         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
7451         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
7452
7453 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
7454
7455         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
7456         * elf/dl-close.c (_dl_close): Check for it.
7457         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
7458         (_dl_allocate_static_tls): Likewise.
7459         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
7460         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
7461         to it.
7462         * elf/tst-tls16.c: New file.
7463         * elf/tst-tlsmod16a.c: New file.
7464         * elf/tst-tlsmod16b.c: New file.
7465         * elf/Makefile: Add rules to build and run tst-tls16.
7466
7467 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
7468
7469         [BZ #5628]
7470         * bits/shm.h: Fix comment describing shmid_ds.
7471         * sysdeps/gnu/bits/shm.h: Likewise.
7472         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
7473         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
7474         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7475         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7476         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
7477         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7478         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7479         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
7480         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
7481
7482         [BZ #5607]
7483         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
7484         prototypes.
7485         * conform/data/limits.h-data: Adjust limits changed in v6 and add
7486         additional suffixes.
7487         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
7488         Add optional functions mq_timedreceive and mq_timedsend.
7489         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
7490         * conform/data/pthread.h-data: Fix prototype of
7491         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
7492         * conform/data/semaphore.h-data: Allow time.h definitions.
7493         * conform/data/signal.h-data: Likewise.
7494         * conform/data/stdio.h-data: getw and putw are not required in v6.
7495         * conform/data/stdlib.h-data: Change setstate prototype.
7496         * conform/data/string.h-data: Fix strerror_r prototype.
7497         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
7498         * conform/data/unistd.h-data: pthread_atfork not required in v6.
7499         Fix readlink prototype.
7500         * conform/data/netinet/in.h-data: Add const to in6addr_any and
7501         in6addr_loopback.
7502         * inet/netinet/in.h: Cleanup namespace.
7503         * posix/regex.h: Likewise.
7504         * resolv/netdb.h: Likewise.
7505         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
7506         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7507         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7508         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
7509         of names of in in6_addr.
7510         (default_precedence): Likewise.
7511         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
7512         NULL definition.
7513
7514 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
7515
7516         * conform/data/fmtmsg.h-data: Add missing allows.
7517         * conform/data/ftw.h-data: Likewise.
7518         * conform/data/inttypes.h-data: Likewise.
7519         * conform/data/math.h-data: Likewise.
7520         * conform/data/signal.h-data: Likewise.
7521         * conform/data/net/if.h-data: Likewise.
7522         * conform/data/netinet/in.h-data: Likewise.
7523         * conform/data/sys/socket.h-data: Likewise.
7524
7525         [BZ #5614]
7526         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
7527         (__strtok_r): Simplify.
7528         * string/tester.c (test_strtok_r): Add test case for futile search
7529         with single-character seach string.
7530
7531 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
7532
7533         * po/ko.po: Update from translation team.
7534
7535 2008-01-11  Andreas Jaeger  <aj@suse.de>
7536
7537         [BZ #5600]
7538         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7539         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
7540         kernel header.
7541
7542 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
7543
7544         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
7545         native interface lookup in all the relevant places.
7546
7547 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
7548             Ulrich Drepper  <drepper@redhat.com>
7549
7550         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
7551         field.  Use sockaddr_in6 for source_addr.
7552         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
7553         (match_prefix): Likewise.
7554         (get_label): Likewise.
7555         (get_precedence): Likewise.
7556         (rfc3484_sort): Change to use indirect access to results array.
7557         Adjust to use of sockaddr_in6.  Replace service_order test with
7558         simple index comparison.
7559         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
7560         service_order field.  Adjust qsort_t calls.  Access sorted result
7561         array indirectly through order array.
7562         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
7563         * posix/tst-rfc3484-2.c: Likewise.
7564         * posix/tst-rfc3484-3.c: Likewise.
7565
7566 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
7567
7568         [BZ #5541]
7569         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
7570         pollfd structures.
7571         Patch by André Cruz.
7572
7573         [BZ #5545]
7574         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
7575         (clnt_spcreateerror): Likewise.
7576
7577         [BZ #5553]
7578         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
7579         (public_mEMALIGn): Likewise.
7580         Patch mostly by Daniel Jacobowitz.
7581
7582 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
7583
7584         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
7585         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
7586         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
7587         * stdlib/tst-makecontext2.c: New test.
7588
7589 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
7590
7591         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
7592         defined.
7593         (REINIT_PARAMS): Likewise.  Undefine before end of file.
7594         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
7595         transliteration hooks and REINIT_PARAMS afterwards.
7596         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
7597         status.
7598         (REINIT_PARAMS): Define.
7599         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
7600         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
7601         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
7602         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
7603         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
7604         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
7605         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
7606         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
7607         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
7608         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
7609         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
7610         * iconvdata/tst-iconv7.c: New test.
7611
7612 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
7613
7614         * libio/stdio.h (vscanf): Fix definition for loser compilers.
7615
7616 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7617
7618         [BZ #5112]
7619         * nscd/connections.c (restart): Fix condition.
7620
7621 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7622
7623         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
7624         __ctype_toupper_loc): Add __THROW.
7625
7626 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
7627
7628         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
7629         recognition of interface family.
7630
7631         * posix/getconf.c: Update copyright year.
7632         * nss/getent.c: Likewise.
7633         * iconv/iconvconfig.c: Likewise.
7634         * iconv/iconv_prog.c: Likewise.
7635         * elf/ldconfig.c: Likewise.
7636         * catgets/gencat.c: Likewise.
7637         * csu/version.c: Likewise.
7638         * elf/ldd.bash.in: Likewise.
7639         * elf/sprof.c (print_version): Likewise.
7640         * locale/programs/locale.c: Likewise.
7641         * locale/programs/localedef.c: Likewise.
7642         * nscd/nscd.c (print_version): Likewise.
7643         * debug/xtrace.sh: Likewise.
7644         * malloc/memusage.sh: Likewise.
7645         * malloc/mtrace.pl: Likewise.
7646         * debug/catchsegv.sh: Likewise.
7647
7648 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
7649
7650         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
7651         second lookup.
7652
7653 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
7654
7655         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
7656         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7657
7658 2007-12-17  Roland McGrath  <roland@redhat.com>
7659
7660         * inet/ether_line.c (ether_line): Remove unused variable.
7661
7662 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7663
7664         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
7665         and winp.
7666         * login/openpty.c (openpty): Likewise.
7667         * login/pty.h (openpty, forkpty): Likewise.
7668         * manual/terminal.texi (openpty, forkpty): Likewise.
7669
7670 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
7671
7672         * malloc/malloc.c (public_cALLOc): For arenas other than
7673         main_arena, count all bytes inside the mprotect_size range of the
7674         heap as uninitialized.
7675
7676 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
7677
7678         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
7679         executable stacks.
7680
7681         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
7682         mTRIm for all of them.
7683         (mTRIm): Additionally iterate over all free blocks and use madvise
7684         to free memory for all those blocks which contain at least one
7685         memory page.
7686         * malloc/tst-trim1.c: New file.
7687         * malloc/Makefile (tests): Add tst-trim1.
7688
7689         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
7690
7691 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
7692
7693         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7694         First cast argument to long
7695         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
7696         Return long.
7697         (__vdso_clock_gettime): Likewise.
7698         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
7699         return long.
7700
7701 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
7702
7703         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
7704         * locale/nl_langinfo_l.c: Real implementation, copied from
7705         nl_langinfo.c.
7706         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
7707
7708 2007-12-01  Jim Meyering  <meyering@redhat.com>
7709
7710         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
7711         that would inhibit utf8-optimization of a regexp containing line-
7712         or buffer-anchors, e.g., `^', `$'.
7713
7714 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7715
7716         * time/bug-getdate1.c (do_test): Don't use century values which
7717         aren't valid on 32-bit systems.
7718
7719 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
7720
7721         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
7722         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
7723         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
7724         __strcat_g, __strncat_g): Add __asm__.
7725
7726 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
7727
7728         [BZ #5477]
7729         * io/fchmodat.c: Fix typo in stub_warning use.
7730         Patch by Petr Salinger.
7731
7732 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
7733
7734         * iconvdata/hp-thai8.c: New file.
7735         * iconvdata/Makefile: Add rules for hp-thai8.c.
7736         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
7737         * iconvdata/gconv-modules: Likewise.
7738
7739         [BZ #5464]
7740         * iconvdata/hp-greek8.c: New file.
7741         * iconvdata/Makefile: Add rules for hp-greek8.c.
7742         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
7743         * iconvdata/gconv-modules: Likewise.
7744
7745         [BZ #5463]
7746         * iconvdata/hp-turkish8.c: New file.
7747         * iconvdata/Makefile: Add rules for hp-turkish8.c.
7748         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
7749         * iconvdata/gconv-modules: Likewise.
7750
7751         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
7752         (shrink_heap): ... this new function.
7753         (heap_trim): Call shrink_heap instead of grow_heap.
7754
7755         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
7756         case don't call alloc_perturb.
7757
7758 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
7759
7760         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
7761         possible.
7762         * sysdeps/unix/sysv/linux/kernel-features.h
7763         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
7764         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
7765
7766 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
7767
7768         [BZ #5424]
7769         * stdio-common/vfprintf.c: Do not overflow when adding to done.
7770         * stdio-common/Makefile (tests): Add bug22.
7771         * stdio-common/bug22.c: New file.
7772
7773         [BZ #5451]
7774         * time/getdate.c: Fix filling in default values.
7775         * time/bug-getdate1.c: New file.
7776         * time/Makefile: Add rules to build and run bug-getdate1.
7777
7778         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
7779         * iconvdata/ebcdic-es.c: Likewise.
7780         * iconvdata/ebcdic-es-a.c: Likewise.
7781         * iconvdata/ebcdic-uk.c: Likewise.
7782         * iconvdata/iso8859-16.c: Likewise.
7783         * iconvdata/viscii.c: Likewise.
7784         * iconvdata/iso8859-9e.c: Likewise.
7785         * iconvdata/Makefile: Adjust appropriately.
7786
7787         [BZ #5428]
7788         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
7789         __need_wint_t.
7790
7791 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7792
7793         [BZ #5427]
7794         * iconvdata/hp-roman9.c: New file.
7795         * iconvdata/Makefile: Add rules for hp-roman9.c.
7796         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
7797         * iconvdata/gconv-modules: Likewise.
7798
7799         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
7800         * iconvdata/Makefile: Adjust appropriately.
7801
7802         [BZ #5441]
7803         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
7804         structure, it's allocated with alloca.
7805         * stdio-common/Makefile (tests): Add bug21.
7806         * stdio-common/bug21.c: New file.
7807
7808 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
7809
7810         [BZ #5452]
7811         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
7812         keyword for gcc's braced-groups.
7813
7814 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
7815
7816         [BZ #5454]
7817         * inet/ether_line.c: Strip hostname of whitespaces.
7818         * inet/Makefile (tests): Add tst-ether_line.
7819         * inet/tst-ether_line.c: New file.
7820
7821 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
7822
7823         [BZ #5439]
7824         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
7825
7826         [BZ #5435]
7827         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
7828
7829         * stdlib/tst-setcontext.c: Catch the case where the links gets
7830         messed up and we do not reach main again.
7831
7832         * po/ca.po: Update from translation team.
7833
7834 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
7835
7836         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
7837         * posix/regex.h (REG_ENOSYS): Likewise.
7838         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
7839
7840 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
7841
7842         * nscd/nscd.h (MAX_STACK_USE): Define.
7843         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
7844         (gc): Initialize stack_used based on allocation in prune_cache.
7845         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
7846         Clear array before use.
7847
7848         * nscd/aicache.c (addhstaiX): Update statistics counter in case
7849         memory allocation failed.
7850         * nscd/hstcache.c (cache_addhst): Likewise.
7851         * nscd/grpcache.c (cache_addgr): Likewise.
7852         * nscd/servicescache.c (cache_addserv): Likewise.
7853         * nscd/pwdcache.c (cache_addpw): Likewise.
7854         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7855
7856 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
7857
7858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
7859         and creat system calls.
7860
7861         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
7862
7863 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7864
7865         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
7866         Add netiucv/iucv.h.
7867         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
7868         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
7869         protocol.
7870         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
7871         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
7872         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
7873
7874 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7875
7876         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
7877         strncat): Define as macros to avoid compile errors.
7878
7879         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
7880         creat entries.
7881
7882 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
7883
7884         [BZ #5382]
7885         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
7886         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
7887         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7888         overflow it.
7889         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7890
7891         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
7892         Return zero in case the thread library is not NPTL.
7893
7894         [BZ #5375]
7895         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
7896         initializing interface list.
7897
7898         [BZ #5378]
7899         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
7900         use result of nss_getgrgid_r if nothing was found.  For other
7901         error return with a failure.
7902         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7903
7904         * locale/programs/ld-collate.c (collate_read): Fix loop to match
7905         macro name.
7906
7907 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7908
7909         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
7910         (get_scope): For IPv4 scope, use scopes table.
7911         (fini): Free scopes table if necessary.
7912         (free_scopelist): New function.
7913         (scopecmp): New function.
7914         (gaiconf_init): Also handle scopev4 entries.
7915         * posix/tst-rfc3484.c (do_test): Initialize scopes.
7916         * posix/tst-rfc3484-2.c (do_test): Likewise.
7917         * posix/gai.conf: Document scopev4 defaults.
7918         * posix/Makefile (tests): Add tst-rfc3484-3.
7919         * posix/tst-rfc3484-3.c: New file.
7920
7921         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
7922         Teredo tunnels.
7923         * posix/gai.conf: Update for current default tables.
7924
7925 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
7926
7927         * po/tr.po: Update from translation team.
7928
7929 2007-11-18  Roland McGrath  <roland@frob.com>
7930
7931         * manual/arith.texi (Remainder Functions): Spelling fix.
7932         From Shaun Silk <genix@mysoul.com.au>.
7933
7934         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
7935
7936 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
7937
7938         * po/zh_CN.po: Update from translation team.
7939
7940         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
7941         Add sys/signalfd.h and sys/eventfd.h.
7942
7943 2007-11-15  Bruno Haible  <bruno@clisp.org>
7944
7945         [BZ #5346]
7946         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
7947         union.
7948         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
7949         (DCIGETTEXT): Change the allocation of the 'search' variable so that
7950         it needs only fixed stack space. Delay the initialization of
7951         msgid_len until it is needed.
7952
7953 2007-11-15  Andreas Jaeger  <aj@suse.de>
7954
7955         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
7956         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
7957
7958 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
7959
7960         * po/ko.po: Update from translation team.
7961
7962 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
7963
7964         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
7965         significantly.  The device type is also part of the ifinfomsg data.
7966
7967         * po/sv.po: Update from translation team.
7968         * po/nl.po: Likewise.
7969
7970         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
7971         to wake up in 24 hours.
7972
7973         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
7974
7975 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
7976
7977         * po/cs.po: Update from translation team.
7978         * po/pl.po: Likewise.
7979
7980         * include/ifaddrs.h: Remove in6ai_temporary.
7981         (struct in6addrinfo): Add index element.
7982         Declare __check_native.
7983         * inet/Makefile (aux): Add check_native.
7984         * sysdeps/unix/sysv/linux/check_native.c: New file.
7985         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
7986         IFA_F_TEMPORARY.  Pass back ifa_index.
7987         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
7988         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
7989         call __check_native if necessary.
7990         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
7991         to sort addresses.  Pass information about the results.
7992         * posix/tst-rfc3484.c: Adjust for addition of index field and change
7993         of rfc3484_sort interface.
7994         * posix/tst-rfc3484-2.c: Likewise.
7995
7996         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
7997         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
7998         for _quicksort.
7999         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
8000         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
8001         on as third parameter to compare function and _quicksort.
8002         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
8003         to the compare function.
8004         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
8005         * Versions.def: Add GLIBC_2.8 for libc.
8006
8007         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
8008         * posix/tst-rfc3484-2.c: Likewise.
8009
8010         * include/kernel-features.h: Moved to...
8011         * sysdeps/mach/hurd/kernel-features.h: ...here.
8012
8013 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
8014
8015         * sysdeps/i386/i586/memcpy_chk.S: New file.
8016         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
8017         * sysdeps/i386/i586/memset_chk.S: Likewise.
8018
8019 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
8020
8021         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
8022         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
8023         list of interfaces.  Also store prefix length.
8024         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
8025         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
8026         prefix if source and destination address are in the same subnet.
8027         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
8028         Always look for matching record in in6ai list.
8029         Correct source_addr_len value for IPv6->IPv4 converted records.
8030
8031 2007-11-11  Roland McGrath  <roland@frob.com>
8032
8033         * include/kernel-features.h: New file.
8034
8035 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
8036
8037         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
8038         complications for 64-bit platforms.
8039
8040         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
8041         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
8042         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
8043         open64_2.
8044         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
8045         entries.
8046         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8047         * sysdeps/wordsize-64/alphasort.c: New file.
8048         * sysdeps/wordsize-64/alphasort64.c: New file.
8049         * sysdeps/wordsize-64/fseeko.c: New file.
8050         * sysdeps/wordsize-64/fseeko64.c: New file.
8051         * sysdeps/wordsize-64/ftello.c: New file.
8052         * sysdeps/wordsize-64/ftello64.c: New file.
8053         * sysdeps/wordsize-64/ftw.c: New file.
8054         * sysdeps/wordsize-64/ftw64.c: New file.
8055         * sysdeps/wordsize-64/iofgetpos.c: New file.
8056         * sysdeps/wordsize-64/iofgetpos64.c: New file.
8057         * sysdeps/wordsize-64/iofopen.c: New file.
8058         * sysdeps/wordsize-64/iofopen64.c: New file.
8059         * sysdeps/wordsize-64/iofsetpos.c: New file.
8060         * sysdeps/wordsize-64/iofsetpos64.c: New file.
8061         * sysdeps/wordsize-64/lockf.c: New file.
8062         * sysdeps/wordsize-64/lockf64.c: New file.
8063         * sysdeps/wordsize-64/mkostemp.c: New file.
8064         * sysdeps/wordsize-64/mkostemp64.c: New file.
8065         * sysdeps/wordsize-64/mkstemp.c: New file.
8066         * sysdeps/wordsize-64/mkstemp64.c: New file.
8067         * sysdeps/wordsize-64/scandir.c: New file.
8068         * sysdeps/wordsize-64/scandir64.c: New file.
8069         * sysdeps/wordsize-64/tmpfile.c: New file.
8070         * sysdeps/wordsize-64/tmpfile64.c: New file.
8071         * sysdeps/wordsize-64/versionsort.c: New file.
8072         * sysdeps/wordsize-64/versionsort64.c: New file.
8073         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
8074         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
8075         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
8076         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
8077         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
8078         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
8079         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
8080         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
8081         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
8082         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
8083         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
8084         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
8085
8086         * crypt/sha256-crypt.c: Fix a comment.
8087         * crypt/sha512-crypt.c: Likewise.
8088
8089 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
8090
8091         * sysdeps/x86_64/memset.S: Add sfence after movnti.
8092
8093 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
8094
8095         [BZ #5277]
8096         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
8097         because output buffer is too small break, don't loop.
8098         * iconvdata/Makefile (tests): Add bug-iconv6.
8099         * iconvdata/bug-iconv6.c: New file.
8100
8101 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
8102
8103         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
8104         with size_t type.
8105         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
8106         size_t.  Add casts where needed.
8107
8108         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
8109         old headers, don't call avc_has_perm if we don't have the
8110         permission information.
8111
8112 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
8113
8114         * elf/rtld.c (dl_main): Use the page size to find the map start.
8115
8116 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
8117
8118         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
8119         Patch by Szymon Siwek <sls@poczta.wp.pl>.
8120
8121         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
8122         when the lookup call failed.
8123
8124         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
8125         Add prune_cond and wakeup_time.
8126         (CACHE_PRUNE_INTERNAL): Define.
8127         Update declarations of prune_cache and setup_thread.
8128         * nscd/connections.c (dbs): Update initializers.
8129         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
8130         (nscd_init): Default number of threads is now 4.
8131         (invalidate_cache): Take lock before calling prune_cache.
8132         (handle_request): If SELinux forbids the request, say so.
8133         (readylist_cond): Use static initializer.
8134         (nscd_run_prune): New function.  Used only by pruning threads.
8135         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
8136         here.
8137         (fd_ready): Update nscd_run reference.
8138         (start_threads): No need to initialize readylist_cond.
8139         Start pruning threads separately.
8140         * nscd/nscd_setup_thread.c: Change return value type to int and always
8141         return 0.
8142         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
8143         to int and return nonzero value if we can use the TID address hack.
8144         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
8145         the database is later than the new entry's timeout, update the
8146         wakeup time and wake the cleanup thread.
8147         (prune_cache): Return seconds the next entry in the database is still
8148         valid.  Remove locking for pruning here.
8149         * nscd/nscd.conf: Document default number of threads.
8150
8151 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
8152
8153         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
8154         stack is properly aligned for the target function.
8155         Correct unwind info.
8156
8157         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
8158         when using auditing libraries.
8159
8160 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
8161
8162         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
8163         _nss_dns_getnetbyaddr2_r.
8164         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
8165         extra parameter to getanswer_r.
8166         (_nss_dns_getnetbyaddr_r): Now a wrapper around
8167         _nss_dns_getnetbyaddr2_r.
8168
8169         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
8170         gethstbynm3_r.
8171         * nscd/gethstbynm2_r.c: Remove.
8172         * nscd/gethstbynm3_r.c: New file.
8173         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
8174         __gethostbyaddr_r.
8175         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
8176         __gethostbyaddr_r compatibility wrapper.
8177         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
8178         determining timeout of entry.
8179         (lookup): Take new parameter and pass it to __gethostbyname3_r and
8180         __gethostbyaddr2_r.
8181         (addhstbyX): Pass reference to variable for TTL to lookup and
8182         cache_addhst.
8183         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
8184         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
8185         and __nss_next2.  Remove __nss_services_lookup.
8186         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
8187         Add compat wrapper.
8188         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
8189         __nss_next2.
8190         * nss/getXXent_r.c: Likewise.
8191         * nss/getnssent_r.c: Likewise.
8192         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
8193         does not exist in module, try the optional second name.
8194         (__nss_next2): New function.
8195         (__nss_next): Now wrapper around __nss_next2.
8196         * nss/nsswitch.h: Adjust __nss_lookup prototype.
8197         Declare __nss_next2.
8198         Adjust definition of db_lookup_function type.
8199         * nss/service-lookup.c: Define NO_COMPAT.
8200         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
8201         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
8202         * inet/ether_ntoh.c: Likewise.
8203         * sunrpc/netname.c: Likewise.
8204         * sunrpc/publickey.c: Likewise.
8205         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
8206         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
8207         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
8208         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
8209         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
8210
8211         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
8212
8213         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
8214
8215 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
8216
8217         [BZ #5204]
8218         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
8219         * crypt/sha512c-test.c: Likewise.
8220
8221         [BZ #5225]
8222         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
8223         to keep track of end of %[ format string element.
8224         * stdio-common/Makefile (tests): Add bug20.
8225         * stdio-common/bug20.c: New file.
8226
8227         [BZ #5222]
8228         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
8229         path elements in counting mode.
8230
8231 2007-10-27  Andreas Jaeger  <aj@suse.de>
8232
8233         [BZ #5040]
8234         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
8235
8236         [BZ #3112]
8237         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
8238         (__cleanup): Free shared library when exiting.
8239         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
8240         (__cleanup): Free shared library when exiting.
8241
8242 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
8243
8244         [BZ #2549]
8245         * math/libm-test.inc (check_float_internal): Support
8246         denormalized return.
8247
8248 2007-10-23  Andreas Jaeger  <aj@suse.de>
8249
8250         [BZ #5208]
8251         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
8252         __LONG_LONG_PAIR to handle little endian byte order.
8253         Suggested by abhishekrai@google.com
8254
8255 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
8256
8257         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
8258
8259 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
8260
8261         * nscd/cache.c (prune_cache): Move test for modified file outside
8262         of locking.
8263
8264 2007-10-21  Andreas Jaeger  <aj@suse.de>
8265
8266         * manual/texinfo.tex: Update to latest version.
8267
8268         * manual/sysinfo.texi (System Parameters): Fix Formatting.
8269
8270         * manual/arith.texi (Status bit operations): Fix formatting.
8271
8272         * manual/errno.texi (Error Messages): Fix formatting.
8273
8274         * manual/sysinfo.texi (System Parameters): Fix formatting.
8275
8276         * manual/libc.texinfo: Update VERSION and UPDATED.
8277
8278 2007-10-19  Roland McGrath  <roland@redhat.com>
8279
8280         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
8281
8282 2007-10-06  David S. Miller  <davem@davemloft.net>
8283
8284         * configure.in: Add sparcv9v2 and sparc64v2.
8285         * scripts/config.sub: Likewise.
8286         * configure: Regenerate.
8287         * elf/elf.h (HWCAP_SPARC_N2): New.
8288         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
8289         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
8290         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
8291         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
8292         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
8293         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
8294         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
8295
8296 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
8297
8298         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
8299         even if the poll result indicates there is data to read.
8300         Patch by Jeff Moyer <jmoyer@redhat.com>.
8301
8302 2007-10-18  Roland McGrath  <roland@redhat.com>
8303
8304         * elf/elf.h (NT_PPC_VMX): New macro.
8305
8306 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8307
8308         * version.h (VERSION): Set to 2.7.90.
8309
8310 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8311
8312         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
8313         weak_alias.
8314
8315 2007-10-17  Roland McGrath  <roland@frob.com>
8316
8317         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
8318         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
8319
8320 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8321
8322         * version.h (VERSION): Bump to 2.7.
8323         * include/features.h (__GLIBC_MINOR__): Bump to 7.
8324
8325         [BZ #5186]
8326         * time/tzset.c (__tz_convert): Don't force testing for a change of
8327         TZ if not called from localtime.  But then also see whether the
8328         file changed, in case __use_tzfile is set.
8329
8330         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
8331         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8332         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8333         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8334         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8335         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8336         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
8337         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8338
8339 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
8340
8341         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
8342         and admin selects to be able to replace the gai.conf file, lock
8343         data structures around the qsort call.
8344
8345 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8346
8347         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
8348         new memset.
8349         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
8350         too high for the improvements.  Implement bzero unconditionally for
8351         use in libc.
8352
8353 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
8354             Jakub Jelinek  <jakub@redhat.com>
8355
8356         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
8357         even when time_t is 32-bit.
8358         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
8359         timezone data read by __tzfile_default.  Ensure __tzname[0] is
8360         always set after the search.
8361
8362 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8363
8364         * time/tzfile.c (__tzfile_read): Help the compiler recognize
8365         unreachable code on 32-bit machines.
8366
8367 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8368
8369         [BZ #5184]
8370         * time/strftime_l.c: Include stdbool.h.
8371         (my_strftime): New wrapper, old function renamed to...
8372         (__strftime_internal): ... new function.  Add tzset_called
8373         argument, pass it down to recursive calls, don't call tzset ()
8374         if already true, set to true after call to tzset ().
8375
8376 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
8377
8378         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
8379         into account when copying TZ string.
8380
8381 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8382
8383         * time/tzfile.c (__tzfile_compute): For use_last case set i to
8384         num_transition rather than num_transitions - 1.
8385
8386 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
8387
8388         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
8389         PIC indirect jump.
8390
8391         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
8392         a local label rather than HIDDEN_JUMPTARGET.
8393
8394 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8395
8396         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
8397         (init_cacheinfo): Initialize it.
8398         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
8399         Always define bzero.
8400         Remove non-glibc code.
8401         * sysdeps/x86_64/bzero.S: Make an empty file.
8402
8403 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
8404
8405         * sysdeps/x86_64/cacheinfo.c
8406         (__x86_64_preferred_memory_instruction): New.
8407         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
8408
8409         * sysdeps/x86_64/memset.S: Rewrite.
8410
8411 2007-10-15  Roland McGrath  <roland@redhat.com>
8412
8413         * po/libc.pot: Regenerated.
8414
8415 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
8416
8417         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
8418         pointers.
8419
8420         [BZ #3425]
8421         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
8422         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
8423         address record to T_A/T_AAAA requests.
8424
8425 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8426
8427         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
8428
8429         * posix/glob.c: Add some branch prediction throughout.
8430
8431         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
8432         read from nscd.
8433
8434         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
8435         service_order.
8436         (rfc3484_sort): Make sure that even if qsort doesn't support
8437         stable sorting out sorting here is stable by comparing service_order.
8438         (getaddrinfo): Initialize service_order.
8439         * posix/tst-rfc3484.c (do_test): Adjust for addition of
8440         service_order field to sorting structure.
8441         * posix/tst-rfc3484-2.c (do_test): Likewise.
8442
8443         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
8444         * time/tzset.c (tzset_internal): Break TZ string parsing out into
8445         __tzset_parse_tz and updating of daylight, timezone, tzname into
8446         update_vars.
8447         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
8448         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
8449         happens in __tz_compute.
8450         * time/tzfile.c (__tzfile_read): Also read TZ string.
8451         (find_transition): Fold into __tzfile_compute.
8452         (__tzfile_compute): For times beyond the last transition try to
8453         use the TZ string.
8454         * timezone/tst-timezone.c: Information in daylight and tzname does
8455         change for Asia/Tokyo timezone with more concrete information.
8456         Remove the test.
8457
8458         * include/stdio.h: Add libc_hidden_proto for ftello.
8459         * libio/ftello.c: Add libc_hidden_def.
8460
8461         [BZ #1140]
8462         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
8463         on the specified time and not the last entries in the file.  Move
8464         code to determine tzname[] to...
8465         (find_transition): ...here.  Add ugly guess for times before the
8466         first transition.
8467
8468 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8469
8470         [BZ #3195]
8471         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
8472         no entry.
8473         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
8474         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8475         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8476         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8477
8478         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
8479         read mechanism when there are no group members and avoid no-op
8480         read syscall in this case.
8481
8482         [BZ #3242]
8483         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
8484         (__readall): If reading failed due to EAGAIN error wait a bit
8485         and possibly try again.
8486         (__readvall): Likewise.
8487
8488 2007-10-13  Bruno Haible  <bruno@clisp.org>
8489
8490         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
8491         when we cannot recode the message.
8492
8493 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
8494
8495         [BZ #4359]
8496         * libio/__freading.c (__freading): Don't return true for
8497         write-only streams.  For read/write streams, check whether we
8498         performed a read operation already.
8499         * libio/Makefile (tests): Add tst-ext2.
8500         * libio/tst-ext2.c: New file.
8501
8502 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8503
8504         * locale/programs/repertoire.c (repertoire_read): Always free
8505         memory for repertoire file name [Coverity CID 270].
8506
8507         * elf/cache.c (save_aux_cache): Free memory allocated for
8508         temporary file name [Coverity CID 267].
8509
8510 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8511
8512         * misc/Makefile (headers): Add bits/error.h.
8513
8514 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
8515
8516         * posix/fnmatch_loop.c: Take rule index returned as part of
8517         findidx return value into account when accessing weights.
8518         * posix/regcomp.c: Likewise.
8519         * posix/regexec.c: Likewise.
8520
8521         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
8522         (skip_to): Fix problems with parameter of elifdef/elifndef.
8523
8524 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
8525
8526         * iconv/gconv_simple.c: Add some branch prediction.
8527
8528 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
8529
8530         * locale/programs/ld-collate.c (collate_read): If ignore_content
8531         and nowtok is tok_define, eat any tok_eol tokens.
8532
8533 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
8534
8535         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
8536         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
8537
8538         * inet/netinet/in.h: Don't include bits/socket.h.
8539         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
8540         macro.
8541         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8542
8543 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
8544
8545         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
8546         and tok_elifndef.
8547         * locale/programs/locfile-kw.gperf: Likewise.
8548         * locale/programs/ld-collate.c: Implement primitive preprocessor.
8549
8550 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
8551
8552         * stdio-common/printf-parse.h: Include string.h and wchar.h.
8553         (__find_specwc): Change into __extern_always_inline function.
8554         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
8555         (__parse_one_specmb): Remove ps argument.
8556         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
8557         Adjust __find_specmb and __parse_one_specmb callers.
8558         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
8559         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
8560         Removed.
8561         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
8562         caller.
8563
8564 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
8565
8566         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
8567         with some Pentium Ds.
8568
8569 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
8570
8571         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
8572         __read not read.
8573         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
8574         __write not write.
8575
8576 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8577
8578         [BZ #181]
8579         * locale/C-time.c: Set week_1stday data to 19971201.
8580         * locale/programs/ld-time.c (time_finish): Default for
8581         first_workday is Monday.
8582
8583         [BZ #2633]
8584         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
8585
8586         [BZ #5103]
8587         * posix/glob.c (glob): Recognize patterns starting \/.
8588         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
8589         (main): Add test for pattern starting \/.
8590
8591         * misc/error.h: Use __const instead of const.
8592         * misc/bits/error.h: Likewise.
8593
8594 2007-10-07  Andreas Jaeger  <aj@suse.de>
8595
8596         * include/bits/error.h: New file.
8597
8598         * misc/bits/error.h (error_at_line): Fix prototype.
8599
8600 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
8601
8602         [BZ #3924]
8603         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
8604         more little bugs in creating the stack frame when pltexit has to
8605         be called.
8606
8607         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
8608         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8609
8610         [BZ #4407]
8611         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
8612         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8613         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
8614         * math/libm-test.inc: Add test for this case.
8615
8616         [BZ #5010]
8617         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
8618         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
8619         map service succeeded.
8620         (svc_is_mapped): New function.
8621         (svc_unregister): Use it before trying to unmap service.
8622
8623 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
8624
8625         * timezone/zic.c: Update from tzcode2007h.
8626
8627         [BZ #5063]
8628         * timezone/africa: Update from tzdata2007h.
8629         * timezone/antarctica: Likewise.
8630         * timezone/asia: Likewise.
8631         * timezone/australasia: Likewise.
8632         * timezone/europe: Likewise.
8633         * timezone/leapseconds: Likewise.
8634         * timezone/northamerica: Likewise.
8635         * timezone/southamerica: Likewise.
8636         * timzeone/zone.tab: Likewise.
8637
8638         [BZ #5104]
8639         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
8640
8641         [BZ #5113]
8642         * string/bits/string2.h (__strdup): Cast parameters to calloc to
8643         avoid warning with -Wconversion.
8644         (__strndup): Likewise.
8645         Half the patch by Christian Iseli <christian.iseli@licr.org>.
8646
8647         [BZ #5112]
8648         * nscd/connections.c (restart): Don't resync if database is
8649         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
8650
8651         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
8652         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
8653
8654         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
8655         evetnfd_read, eventfd_write.
8656         * sysdeps/unix/sysv/linux/eventfd.c: New file.
8657         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
8658         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
8659         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
8660         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8661         eventfd_write for GLIBC_2.7.
8662
8663         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
8664         * sysdeps/unix/sysv/linux/signalfd.c: New file.
8665         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
8666         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
8667
8668 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
8669
8670         * stdlib/msort.c: Include stdint.h.
8671         (struct msort_param): New type.
8672         (msort_with_tmp): Use struct msort_param pointer for unchanging
8673         parameters.  Add optimized handling for several common sizes
8674         and indirect sorting mode.
8675         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
8676         sorting.
8677         Suggested by Belazougui Djamel .
8678
8679         * stdlib/Makefile (tests): Add tst-qsort2.
8680         * stdlib/tst-qsort2.c: New test.
8681
8682 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
8683
8684         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
8685         for dup2 in case another thread races with the current one.  Retry
8686         in this case.
8687
8688         * misc/error.h: Remove support for use outside of libc.  We have to
8689         include <features.h> now.  Include <bits/error.h> if possible.
8690         * misc/bits/error.h: New file.
8691
8692 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
8693
8694         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
8695         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
8696         __extern_always_inline functions unconditionally, drop macros.
8697
8698         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
8699         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
8700         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
8701
8702         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
8703         add __artificial__ attribute.
8704
8705 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
8706
8707         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
8708         backward to forward direction.
8709
8710         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
8711
8712         [BZ #645]
8713         * locale/programs/ld-collate.c (collate_finish): Compare against last
8714         used section which is known to have rules defined.
8715         (collate_read): After order_start, correctly record order of sections
8716         and queue sections up.
8717
8718 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
8719
8720         [BZ #5071]
8721         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
8722         the same number of pages.
8723         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
8724
8725         * locale/programs/ld-collate.c (collate_read): After initial copy
8726         statement, continue in state 0.
8727
8728         * include/stdio_ext.h (__fsetlocking): Define as macro.
8729
8730 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
8731
8732         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
8733         of section order.
8734
8735         * po/pt_BR.po: Fix typo.
8736
8737 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
8738
8739         * iconvdata/Makefile (modules): Add ISO8859-9E.
8740         (distribute): Add iso8859-9e.c.
8741         (gen-8bit-gap-modules): Add iso8859-9e.
8742         * iconvdata/iso8859-9e.c: New file.
8743         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
8744         * iconvdata/TESTS: Likewise.
8745         * iconvdata/tst-tables.sh: Likewise.
8746
8747         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8748
8749         * locale/iso-639.def: Add several new entries.
8750
8751 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8752
8753         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
8754         void * pointers instead of struct link_map **.
8755         (_dl_scope_free): Change argument type to void *.
8756         * include/link.h (struct link_map): Change type of l_reldeps
8757         to struct link_map_reldeps, move l_reldepsact into that
8758         struct too.
8759         * elf/dl-deps.c: Include atomic.h.
8760         (_dl_map_object_deps): Only change l->l_initfini when it is
8761         fully populated, use _dl_scope_free for freeing it.  Optimize
8762         removal of libs from reldeps by using l_reserved flag, when
8763         some removal is needed, allocate a new list instead of
8764         reallocating and free the old with _dl_scope_free.  Adjust
8765         for l_reldeps and l_reldepsact changes.
8766         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
8767         searching in l_initfini and l_reldeps without holding dl_load_lock.
8768         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
8769         l_reldepsact changes.
8770         * elf/dl-close.c (_dl_close_worker): Likewise.
8771         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
8772
8773 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
8774
8775         * iconvdata/Makefile (modules): Add KOI8-RU.
8776         (distribute): Add koi8-ru.c.
8777         (gen-8bit-gap-modules): Add koi8-ru.
8778         * iconvdata/koi8-ru.c: New file.
8779         * iconvdata/gconv-modules: Add entries for KOI8-RU.
8780         * iconvdata/TESTS: Likewise.
8781         * iconvdata/tst-tables.sh: Likewise.
8782
8783         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
8784
8785 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
8786
8787         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
8788         with __warning__/__error__ attributes.
8789         (__warnattr): Define.
8790         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
8791         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
8792         __warnattr.
8793         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
8794         of __*_chk if compile time detectable overflow is found.
8795         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
8796         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
8797         with __warnattr.
8798         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
8799         instead of __*_chk if compile time detectable overflow is found.
8800         (__gets_alias): Rename to...
8801         (__gets_warn): ... this.  Add __warnattr.
8802         (gets): Call __gets_warn instead of __gets_alias.
8803         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
8804         aliases with __warnattr.
8805         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
8806         time detectable overflow is found.
8807         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
8808         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
8809         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
8810         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
8811         __getdomainname_chk_warn): New aliases with __warnattr.
8812         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
8813         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
8814         __*_chk_warn instead of __*_chk if compile time detectable overflow
8815         is found.
8816         (__getgroups_chk): Rename argument to __listlen from listlen.
8817         (__getwd_alias): Rename to...
8818         (__getwd_warn): ... this.  Add __warnattr.
8819         (getwd): Call __getwd_warn instead of __getwd_alias.
8820         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
8821         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
8822         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
8823         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
8824         __wcsnrtombs_chk_warn): New aliases with __warnattr.
8825         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
8826         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
8827         compile time detectable overflow is found.
8828         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
8829         to use __*_chk or not.
8830         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
8831         in comparisons which function should be called and in __*_chk*
8832         arguments.  Call __*_chk_warn instead of __*_chk if compile time
8833         detectable overflow is found.
8834         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
8835         __*_chk argument.
8836         * debug/tst-chk1.c (do_test): Add a few more tests.
8837
8838 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
8839
8840         [BZ #5058]
8841         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
8842         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
8843         (_nl_unload_domain): Finalize conversions_lock.
8844         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
8845         handling table of known conversions.
8846
8847 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
8848
8849         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
8850         close_not_cancel_no_status instead of close.
8851
8852 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
8853
8854         [BZ #5028]
8855         * posix/regcomp.c (lookup_collation_sequence_value): Check that
8856         nrules != 0 for multibyte chars.
8857
8858 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
8859
8860         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
8861         Provide better error message in case the type is unknown.
8862
8863         [BZ #4963]
8864         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
8865         * string/stratcliff.c: Make usable to test wide char functions.
8866         * wcsmbs/wcsatcliff.c: New file.
8867         * wcsmbs/Makefiel (tests): Add wcsatcliff.
8868
8869         [BZ #4972]
8870         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
8871         (distribute): Add mac-centraleurope.c.
8872         (gen-8bit-gap-modules): Add mac-centraleurope.
8873         * iconvdata/mac-centraleurope.c: New file.
8874         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
8875         * iconvdata/TESTS: Likewise.
8876         * iconvdata/tst-tables.sh: Likewise.
8877
8878         [BZ #5043]
8879         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
8880
8881 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
8882
8883         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
8884         from __x86_64_core_cache_size_half.
8885         (init_cacheinfo): Compute shared cache size for AMD processors with
8886         shared L3 correctly.
8887         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
8888         name change.
8889         Patch in large parts by Evandro Menezes.
8890
8891 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
8892
8893         * elf/dl-lookup.c (add_dependency): Handle failing memory
8894         allocation for dependency list.  Remove unnecessary check.
8895
8896         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
8897         open/close when determining source addresses.
8898
8899         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
8900         sha512-crypt, and sha512.
8901         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
8902         (distribute): Add sha256.h and sha512.h.
8903         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
8904         and call the appropriate code.
8905         * crypt/sha256-crypt.c: New file.
8906         * crypt/sha256.c: New file.
8907         * crypt/sha256.h: New file.
8908         * crypt/sha256c-test.c: New file.
8909         * crypt/sha256test.c: New file.
8910         * crypt/sha512-crypt.c: New file.
8911         * crypt/sha512.c: New file.
8912         * crypt/sha512.h: New file.
8913         * crypt/sha512c-test.c: New file.
8914         * crypt/sha512test.c: New file.
8915
8916 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
8917
8918         * misc/bits/syslog.h (syslog): Remove extraneous argument from
8919         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
8920         __syslog_chk.
8921
8922 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
8923
8924         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
8925         %as in fscanf format strings.
8926
8927         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
8928         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8929         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
8930         Likewise.
8931         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
8932         Likewise.
8933
8934         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
8935         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
8936         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
8937         * elf/dl-sym.c (do_sym): Likewise.
8938         * include/link.h (struct link_map): Add l_serial field.
8939         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
8940         * elf/dl-lookup.c (add_dependency): Add flags argument.
8941         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
8942         flags, use THREAD_GSCOPE_RESET_FLAG before and
8943         THREAD_GSCOPE_SET_FLAG after
8944         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
8945         Don't dereference map until it has been found on some list.
8946         If map->l_serial changed, return -1.
8947
8948 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
8949
8950         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
8951         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
8952         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
8953         libc_hidden_proto.
8954         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
8955         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
8956         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
8957         add libc_hidden_proto.
8958         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8959         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8960         conformance requested.
8961         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
8962         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
8963         conformance requested.
8964         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
8965         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
8966         conformance requested.
8967         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
8968         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
8969         ISO C99 or POSIX conformance requested.
8970         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
8971         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
8972         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
8973         and __isoc99_vsscanf@@GLIBC_2.7.
8974         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
8975         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
8976         (tests): Add scanf14.
8977         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
8978         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
8979         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
8980         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
8981         CFLAGS-isoc99_scanf.c): Add $(exceptions).
8982         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
8983         from using internal headers.
8984         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
8985         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
8986         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
8987         and __isoc99_vswscanf@@GLIBC_2.7.
8988         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
8989         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
8990         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
8991         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
8992         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
8993         * stdio-common/isoc99_scanf.c: New file.
8994         * stdio-common/isoc99_vsscanf.c: New file.
8995         * stdio-common/isoc99_vscanf.c: New file.
8996         * stdio-common/isoc99_vfscanf.c: New file.
8997         * stdio-common/isoc99_fscanf.c: New file.
8998         * stdio-common/isoc99_sscanf.c: New file.
8999         * wcsmbs/isoc99_fwscanf.c: New file.
9000         * wcsmbs/isoc99_vswscanf.c: New file.
9001         * wcsmbs/isoc99_swscanf.c: New file.
9002         * wcsmbs/isoc99_wscanf.c: New file.
9003         * wcsmbs/isoc99_vwscanf.c: New file.
9004         * wcsmbs/isoc99_vfwscanf.c: New file.
9005         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
9006         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
9007         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
9008         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
9009         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
9010         * stdio-common/scanf14.c: New test.
9011         * stdio-common/scanf15.c: New test.
9012         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9013         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
9014         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
9015         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
9016         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
9017         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
9018         __nldbl___isoc99_scanf@@GLIBC_2.7,
9019         __nldbl___isoc99_fscanf@@GLIBC_2.7,
9020         __nldbl___isoc99_sscanf@@GLIBC_2.7,
9021         __nldbl___isoc99_vscanf@@GLIBC_2.7,
9022         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
9023         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
9024         __nldbl___isoc99_wscanf@@GLIBC_2.7,
9025         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
9026         __nldbl___isoc99_swscanf@@GLIBC_2.7,
9027         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
9028         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
9029         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
9030         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
9031         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
9032         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
9033         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
9034         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
9035         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9036         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
9037         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
9038         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
9039         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
9040         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
9041         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
9042         functions.
9043         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
9044         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
9045         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
9046         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
9047         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
9048         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
9049         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
9050         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
9051         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
9052         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
9053         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
9054         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
9055
9056         * stdio-common/Makefile (tests): Add scanf13.
9057         (scanf13-ENV): New.
9058         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
9059         m modifier followed by l.
9060         (STRING_ARG): Add width argument.
9061         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
9062         <case L_('C')>: Handle %mlc and %mC.
9063         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
9064         arguments.
9065         * stdio-common/scanf13.c: New test.
9066
9067         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
9068         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
9069
9070 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
9071
9072         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
9073         type and __THROW marker of splice, vmsplice, and tee.
9074         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9075         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9076         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9077         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9078         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9079         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9080         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9081         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
9082         as cancellation points.
9083
9084 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
9085
9086         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
9087         parse more than three parts of the version number.
9088
9089 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
9090
9091         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
9092         modifier.  Patch by Jakub Jelinek.
9093
9094 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
9095
9096         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
9097         call_fallocate in misc subdir.
9098         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
9099         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
9100         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
9101         instead of __fallocate64.
9102         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
9103
9104 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
9105
9106         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
9107         * rt/Makefile (headers): Add bits/mqueue2.h.
9108         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
9109         optimizing with GCC and __va_arg_pack_len is defined.
9110         * rt/bits/mqueue2.h: New file.
9111         * rt/mq_open.c (__mq_open): Renamed from mq_open.
9112         (mq_open): New strong_alias.
9113         (__mq_open_2): New function.
9114         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
9115         (mq_open): New strong_alias.
9116         (__mq_open_2): New function.
9117         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
9118         * Versions.def (librt): Add GLIBC_2.7 version.
9119         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
9120         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
9121
9122         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
9123         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
9124         is defined rather than when not C++.
9125         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
9126         __openat64_alias): New redirects.
9127         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
9128         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
9129         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
9130         (open, open64, openat, openat64): Rewrite as __extern_always_inline
9131         functions instead of function-like macros.
9132
9133 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9134
9135         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
9136         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
9137         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
9138
9139 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
9140
9141         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
9142         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
9143
9144 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
9145
9146         * inet/tst-network.c: Increment ERRORS for failing tests.
9147
9148 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
9149
9150         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
9151         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
9152         implement as __extern_always_inline function.
9153         (vsyslog): Define as __extern_always_inline function unconditionally.
9154         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
9155         When __va_arg_pack is defined, implement as __extern_always_inline
9156         functions.
9157         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9158         __extern_always_inline functions unconditionally.
9159         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
9160         bits/stdio2.h will be included.
9161         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
9162         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
9163         implement as __extern_always_inline functions.
9164         (vswprintf, vwprintf, vfwprintf): Define as
9165         __extern_always_inline functions unconditionally.
9166         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
9167
9168 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
9169
9170         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
9171         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
9172         attribute.
9173         * include/features.h (__USE_EXTERN_INLINES): Define only when
9174         __extern_inline is defined.
9175         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
9176         is defined instead of when not __cplusplus.
9177         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
9178         is defined instead of when not __cplusplus.
9179         * socket/sys/socket.h: Include bits/socket2.h when
9180         __extern_always_inline is defined instead of when not __cplusplus.
9181         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
9182         is defined instead of when not __cplusplus.
9183         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
9184         is defined instead of when not __cplusplus.
9185         * string/string.h: Include bits/string3.h when __extern_always_inline
9186         is defined instead of when not __cplusplus.
9187         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
9188         is defined instead of when not __cplusplus.
9189         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
9190         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
9191         is not defined.
9192         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
9193         defined __extern_always_inline instead of !defined __cplusplus.
9194         * libio/bits/stdio-ldbl.h: Likewise.
9195         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9196         * misc/bits/syslog.h (syslog): Don't define for C++.
9197         (vsyslog): Use __extern_always_inline function for C++ instead of
9198         a macro.
9199         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
9200         whenever that macro is defined.
9201         (vprintf): Don't provide the inline for C++.
9202         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
9203         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
9204         define the macros for C++.
9205         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
9206         __extern_always_inline functions for C++.
9207         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
9208         stat64, lstat64, fstat64, fstatat64): Don't define if not
9209         __USE_EXTERN_INLINES.
9210         * wcsmbs/bits/wchar2.h: Fix #error message.
9211         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
9212         (vswprintf, vwprintf, vfwprintf): Define using
9213         __extern_always_inline functions for C++.
9214         * string/bits/string3.h: Don't #undef macros if __cplusplus.
9215         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
9216         strncpy, strcat, strncat): Define as __extern_always_inline
9217         functions instead of macros for C++.
9218         * math/bits/cmathcalls.h: Guard __extern_inline routines with
9219         defined __extern_inline.
9220         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
9221         to __extern_inline whenever that macro is defined.
9222         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9223         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9224         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
9225         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
9226         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9227         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9228         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9229         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
9230         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
9231         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
9232         prototypes.  Only provide __extern_inline routines if
9233         __USE_EXTERN_INLINES.
9234         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
9235         tests.
9236         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
9237         For now avoid some *printf tests in C++.  Skip all testing
9238         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
9239         is not.
9240         * debug/tst-chk4.cc: New file.
9241         * debug/tst-chk5.cc: New file.
9242         * debug/tst-chk6.cc: New file.
9243         * debug/tst-lfschk4.cc: New file.
9244         * debug/tst-lfschk5.cc: New file.
9245         * debug/tst-lfschk6.cc: New file.
9246         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
9247         prototypes in C++.
9248         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
9249         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
9250         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
9251
9252 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
9253
9254         * po/cs.po: Update from translation team.
9255
9256 2007-09-11  Roland McGrath  <roland@redhat.com>
9257
9258         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
9259         compiling.
9260
9261 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9262
9263         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
9264
9265 2007-09-05  Roland McGrath  <roland@redhat.com>
9266
9267         * manual/signal.texi (Signaling Another Process): Typo fix.
9268         From Karl Berry <karl@freefriends.org>.
9269
9270 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
9271
9272         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
9273         zero if not defined.
9274         (make_request): Recognize optimistic addresses and treat them like
9275         deprecated addresses.
9276         Reported by Neil Horman <nhorman@redhat.com>.
9277
9278 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
9279
9280         * nscd/connections.c (send_ro_fd): Also transfer file size.
9281         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
9282         file size don't call fstat.
9283
9284         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
9285         ahead and map the file.  This should always be correct and we can
9286         catch problems later.
9287
9288 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
9289
9290         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
9291         prototypes.
9292         (__fread_alias, __fread_unlocked_alias): New aliases.
9293         (fread): New extern inline.
9294         (fread_unlocked): Likewise.  Undef macro before definition of
9295         the inline function.
9296         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
9297         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
9298         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
9299         and __fread_unlocked_chk@@GLIBC_2.7.
9300         * debug/fread_chk.c: New file.
9301         * debug/fread_u_chk.c: New file.
9302         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
9303
9304 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
9305
9306         * sysdeps/unix/sysv/linux/syscalls.list
9307         (personality): Change caller to EXTRA.
9308
9309 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
9310
9311         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
9312         to keep gcc quiet.
9313         * iconvdata/iso-2022-cn.c (BODY): Likewise.
9314
9315         * locale/programs/ld-collate.c (collate_output): Avoid warning if
9316         NDEBUG is defined.
9317
9318         * Makerules: Use -p option with mkdir.
9319
9320         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
9321         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
9322         (_xdr_directory_obj): Likewise.
9323         (xdr_entry_obj): Likewise.
9324         (xdr_group_obj): Likewise.
9325         (xdr_link_obj): Likewise.
9326         (xdr_table_obj): Likewise.
9327         (_xdr_nis_result): Likewise.
9328         (_xdr_ns_request): Likewise.
9329         (_xdr_ib_request): Likewise.
9330         (_xdr_nis_taglist): Likewise.
9331         (xdr_cback_data): Likewise.
9332         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
9333         (xdr_ypresp_maplist): Likewise.
9334
9335         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
9336
9337         * posix/regex_internal.h: Prevent some declarations and definitions
9338         to be seen when used in tests.
9339
9340         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
9341         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
9342
9343         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
9344
9345         * config.make.in (datarootdir): Add to shut up configure.
9346
9347         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
9348         associativity for fully-associative caches.
9349
9350         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
9351         requests.  Fill on more associativity values for L2.
9352         Patch mostly by Evandro Menezes.
9353
9354 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
9355
9356         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9357         (_libc_vdso_platform_setup): Avoid using exported variable by using
9358         alias.
9359
9360         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
9361
9362         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
9363         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
9364         defined.
9365
9366 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
9367
9368         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
9369         align stack for call if pltexit is to be used.
9370
9371         [BZ #3924]
9372         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
9373         align for function call in case pltexit has to be called later.
9374
9375         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
9376         implicit atomic operation when storing function pointer.
9377         (_dl_runtime_profile): Likewise.
9378
9379 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9380
9381         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
9382         NIS_NOTFOUND.
9383
9384 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9385
9386         [BZ #4566]
9387         * string/strtok.c: Fix typo in comment.
9388
9389         [BZ #4582]
9390         * debug/segfault.c: Fix typos in comments.
9391
9392         [BZ #4588]
9393         * stdio-common/tempnam.c: Fix comment, it is not checked that
9394         TMPDIR points to a writable directory.
9395
9396         [BZ #4726]
9397         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
9398         memory allocated for the name server address.
9399
9400         [BZ #4946]
9401         * nscd/connections.c (handle_request): Using sendfile always
9402         requires that mmap is used for the database.
9403         Patch by Petr Baudis <pasky@suse.cz>.
9404
9405         [BZ #4905]
9406         * nscd/hstcache.c (cache_addhst): When reloading an entry which
9407         suddenly has two or more addresses, ignore it and remove the old
9408         entry.
9409
9410         [BZ #4814]
9411         * resolv/res_hconf.c: Prepare for compiling outside libc.
9412         * nscd/res_hconf.c: New file.
9413         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
9414         the new file.
9415         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
9416         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
9417
9418         * nscd/hstcache.c (cache_addhst): Minimal optimization.
9419
9420         [BZ #4925]
9421         * debug/pcprofiledump.c: Turn on internationalization by calling
9422         setlocale.  Patch mostly by Benno Schulenberg.
9423
9424         [BZ #4936]
9425         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
9426         the state.
9427         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
9428         * iconvdata/bug-iconv5.c: New file.
9429
9430 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
9431
9432         [BZ #4896]
9433         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
9434         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
9435         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
9436         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
9437         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
9438         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
9439         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
9440         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
9441
9442 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
9443
9444         [BZ #4937]
9445         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
9446         lookup loop.  Suggested by John Reiser.
9447
9448 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
9449
9450         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
9451
9452 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
9453
9454         * csu/libc-start.c: Don't handle VDSO_SETUP here.
9455         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
9456         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
9457         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
9458         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
9459         to...
9460         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
9461
9462 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
9463
9464         * po/nl.po: Update from translation team.
9465
9466 2007-08-16  Andreas Jaeger  <aj@suse.de>
9467
9468         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
9469         Reported by Peter Festner <peter.festner@ewetel.net>.
9470
9471 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
9472
9473         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
9474
9475 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
9476
9477         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
9478         to check for undefined symbols.
9479
9480         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
9481         If the syscall fails, set errno to the actual returned error number
9482         rather than EINVAL.
9483         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
9484         arguments are incorrect, set errno to EINVAL, if the syscall
9485         fails, set errno to the actual returned error number.
9486
9487         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
9488         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
9489
9490         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
9491         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
9492         file.
9493         (ASI_PNF, ASI_BLK_P): Don't define.
9494         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
9495         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
9496         file.
9497         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
9498         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
9499         file.
9500
9501 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
9502
9503         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
9504         FE_UNDERFLOW on Niagara CPUs.
9505
9506         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
9507         exceptions.
9508
9509 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
9510
9511         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
9512         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
9513         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
9514         flush should be used or not inside of the function.
9515         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
9516
9517         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
9518         __thread_start): Use HIDDEN_JUMPTARGET.
9519         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
9520         __thread_start): Likewise.
9521         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
9522
9523         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
9524         Add libc_hidden_proto.
9525         (STRTOF): Add libc_hidden_proto.
9526         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
9527         (strtold_l, wcstold_l): Use them as second argument for
9528         long_double_symbol.
9529
9530 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9531
9532         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
9533
9534 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9535
9536         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
9537
9538 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
9539
9540         * po/bg.po: New file.  From the translation team.
9541
9542 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9543
9544         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
9545         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
9546         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
9547         when each feature was introduced.
9548
9549         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
9550         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
9551         (CHECK_HASH): New macro.
9552         (PREPARE_VERSION): Use it.
9553
9554         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
9555         prototype if not __ASSUME_PSELECT.
9556         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
9557         prototype if not __ASSUME_PPOLL.
9558
9559         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
9560
9561         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
9562         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
9563         is defined.
9564
9565 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
9566
9567         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9568         (_libc_vdso_platform_setup): If vDSO is not available point
9569         __vdso_gettimeofday to the vsyscall.
9570         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
9571         __vdso_gettimeofday instead of vsyscall.
9572
9573 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
9574
9575         * nscd/servicescache.c: Include kernel-features.h.
9576         * nscd/gai.c: Likewise.
9577         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9578         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9579         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
9580         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
9581         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
9582         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9583         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
9584         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
9585         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
9586
9587 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9588
9589         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
9590         and _dl_get_origin defines anymore.
9591
9592         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
9593         Build fix for systems which might lack POSIX timer support.
9594
9595         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
9596         (_libc_vdso_platform_setup): Mangle function pointers before storing
9597         them.
9598         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
9599         Demangle vdso pointer before use.
9600         (INTERNAL_VSYSCALL): Likewise.
9601
9602         * elf/cache.c (primes): Mark as const.
9603         Noted by Roland McGrath.
9604
9605 2007-08-01  Andreas Jaeger  <aj@suse.de>
9606             Jakub Jelinek  <jakub@redhat.com>
9607
9608         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
9609         (options): Add option.
9610         (parse_opt): Handle option.
9611         (manual_link): Adjust process_file caller.  Call implicit_soname.
9612         (search_dir): Formatting.  Use and populate auxiliary cache.
9613         (main): Load and save auxiliary cache.
9614         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
9615         stat64 from fstat64 to caller.
9616         (implicit_soname): New function.
9617         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
9618         leave *soname as NULL.
9619         * elf/cache.c: Include libgen.h.
9620         (print_entry, print_cache, compare, save_cache, add_to_cache):
9621         Formatting and cleanups.
9622         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
9623         aux_cache_file): New structures.
9624         (AUX_CACHEMAGIC): Define.
9625         (primes): New array.
9626         (aux_hash_size, aux_hash): New variables.
9627         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
9628         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
9629         load_aux_cache, save_aux_cache): New functions.
9630         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
9631         (init_aux_cache, search_aux_cache, add_to_aux_cache,
9632         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
9633         (process_file): Adjust prototype.
9634
9635 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
9636
9637         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
9638         with __need_size_t.
9639
9640 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
9641
9642         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
9643         r_found_version structure as second parameter.
9644         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
9645         (_dl_vdso_vsym): Change type of second parameter accordingly.
9646         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
9647         (_libc_vdso_platform_setup): Adjust.
9648         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9649         (_libc_vdso_platform_setup): Likewise.
9650
9651         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
9652         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
9653         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
9654         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
9655         * csu/libc-start.c: Pretty printing.
9656         Use VDSO_SETUP if defined.
9657         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
9658         and let generic code call into _libc_vdso_platform_setup.
9659         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
9660         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
9661         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
9662         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
9663         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
9664         for GLIBC_PRIVATE.
9665         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
9666         (sysdep_rountines): Add dl-vdso.
9667
9668         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
9669         of routines.
9670
9671         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
9672         attribute_hidden to __vdso_gettimeofday prototype.
9673
9674 2007-08-12  Roland McGrath  <roland@redhat.com>
9675
9676         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
9677         From: Karl Berry <karl@freefriends.org>.
9678
9679 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
9680
9681         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
9682         an atime update for the files we read.
9683
9684 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9685
9686         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
9687
9688         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
9689         instead of mkstemp.
9690
9691         * misc/Makefile (routines): Add mkostemp and mkostemp64.
9692         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
9693         * misc/mkostemp.c: New file.
9694         * misc/mkostemp64.c: New file.
9695         * stdlib/stdlib.h: Declare the new functions.
9696         * sysdeps/posix/tempname.c: Add new parameter which is added to
9697         the flags for open.  Remove __GT_BIGFILE handling.
9698         * stdio-common/tempname.c: Likewise.
9699         * include/stdio.h: Adjust __gen_tempname prototype.
9700         Renumber __GT_* constants.
9701         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
9702         * misc/mkdtemp.c: Likewise.
9703         * misc/mkstemp.c: Likewise.
9704         * misc/mkstemp64.c: Likewise.
9705         * misc/mktemp.c: Likewise.
9706         * stdio-common/tempnam.c: Likewise.
9707         * stdio-common/tmpfile.c: Likewise.
9708         * stdio-common/tmpfile64.c: Likewise.
9709         * stdio-common/tmpnam.c: Likewise.
9710         * stdio-common/tmpnam_r.c: Likewise.
9711
9712 2007-08-10  Roland McGrath  <roland@frob.com>
9713
9714         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
9715         New macros.
9716         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
9717         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9718
9719 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
9720
9721         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
9722         possible.
9723         * nss/nss_files/files-alias.c (internal_setent): Likewise.
9724         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
9725         * nss/nss_files/files-have_o_cloexec.c: New file.
9726
9727         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
9728         available.
9729
9730 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
9731
9732         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
9733         ___new_wcstold_l): New weak aliases.
9734         (strtold_l, wcstold_l): Use them as second argument for
9735         long_double_symbol.
9736
9737 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
9738
9739         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
9740         register in test for error.
9741
9742         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
9743         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
9744
9745         * po/sv.po: Update from translation team.
9746
9747 2007-08-06  Roland McGrath  <roland@redhat.com>
9748
9749         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
9750         Remove __strto*_l inlines.
9751         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
9752         * stdlib/strtod.c: Add libc_hidden_def.
9753         * stdlib/strtod_l.c: Likewise.
9754         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
9755         for __new_strtold and __new_wcstold.
9756         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
9757         __STRTOF, STRTOF.
9758         * stdlib/strtol.c: Add libc_hidden_def.
9759         * stdlib/strtol_l.c: Likewise.
9760         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
9761         strtoq.
9762
9763         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
9764
9765         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
9766         * scripts/data/localplt-generic.data: ... here.
9767         * elf/Makefile (check-data): Get generic file if no other.
9768         ($(objpfx)check-localplt.out): Make target unconditional.
9769
9770         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
9771         Use ElfW(Nhdr).
9772
9773 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
9774
9775         * po/zh_CN.po: Updated translation from translation team.
9776
9777 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
9778
9779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
9780         Don't use CGOTSETUP and CGOTRESTORE macros.
9781
9782 2007-08-04  Roland McGrath  <roland@redhat.com>
9783
9784         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
9785
9786 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
9787
9788         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
9789         __extension__ around the whole statement expression.
9790
9791 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
9792
9793         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
9794         elements during initialization.
9795
9796         * po/pl.po: Updated translation from translation team.
9797         * po/tr.po: Likewise.
9798         * po/nl.po: Likewise.
9799
9800 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
9801
9802         * rt/aio.h: Add __nonnull attributes.
9803
9804 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9805
9806         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
9807         * stdlib/Makefile (tests): Add tst-strtod5.
9808         (tst-strtod5-ENV): New.
9809         * stdlib/tst-strtod5.c: New file.
9810
9811         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
9812         failed.
9813         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
9814         on failure.
9815
9816         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
9817         allocated.
9818
9819 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
9820
9821         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
9822         numbers.
9823
9824 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
9825
9826         * io/Makefile (aux): Add have_o_cloexec.
9827         * include/fcntl.h: Declare __have_o_cloexec.
9828         * io/have_o_cloexec.c: New file.
9829         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
9830         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
9831         fcntl call if not necessary.
9832         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
9833         of local variable.
9834
9835         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
9836         Avoid memset, add explicit initialization.
9837         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
9838         to the end and change into zero-sized array.
9839         Move lock member to fill a hole on 64-bit platforms.
9840
9841         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
9842         inline functions.
9843         * include/stdlib.h: Add __strto*_internal prototypes here.
9844         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
9845         inline functions.
9846         * include/wchar.h: Add __wcsto*_internal prototypes.
9847         * sysdeps/generic/inttypes.h: No need to protect the declaration
9848         of the __strto*_internal and __wcsto*_internal members here.
9849
9850         * rt/mqueue.h: Change const to __const and add nonnull attributes.
9851
9852 2007-08-02  Roland McGrath  <roland@redhat.com>
9853
9854         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
9855         $(inst_bindir)/getconf if possible.
9856
9857         * posix/Makefile ($(objpfx)getconf.speclist): New target.
9858         (generated): Add it.
9859         ($(inst_libexecdir)/getconf): Use it.
9860
9861 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
9862
9863         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
9864         /proc is faster and sufficient.  /sys is still needed for
9865         __get_nprocs_conf.
9866
9867 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
9868
9869         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
9870         syscall as __fallocate64.
9871         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
9872         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
9873
9874 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
9875
9876         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
9877         value.
9878
9879         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
9880         if off_t is different rank from size_t.
9881
9882         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
9883         uw_frame_state_for): Avoid type punning warnings.
9884         * sysdeps/generic/unwind-dw2-fde-glibc.c
9885         (_Unwind_IteratePhdrCallback): Likewise.
9886         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
9887         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
9888         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
9889         pointers.
9890
9891 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
9892
9893         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
9894         total processors using sysfs.
9895         (__get_nprocs): Use sysfs to determine which processors are online.
9896
9897 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
9898
9899         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
9900         syscall arguments count.
9901
9902         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
9903
9904 2007-07-30  Roland McGrath  <roland@redhat.com>
9905
9906         * manual/libc.texinfo: Update copyrights, formatting magic, and
9907         @dircategory.  From Karl Berry <karl@freefriends.org>.
9908
9909 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
9910
9911         [BZ #4860]
9912         * io/Makefile (headers): Add bits/fcntl2.h.
9913
9914         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
9915         using gcc builtin.
9916         (__CPU_EQUAL_S): Likewise.
9917
9918         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
9919         (tests): Add tst-cpuset.
9920         * posix/sched_cpualloc.c: New file.
9921         * posix/sched_cpufree.c: New file.
9922         * posix/tst-cpuset.c: New file.
9923         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
9924         GLIBC_2.7.
9925         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
9926         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
9927         macros.  Define CPU_*_S macros.
9928
9929 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
9930
9931         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
9932         entry.
9933
9934         [BZ #4858]
9935         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
9936         #.0g and value rounded to 1.0.
9937         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
9938
9939 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
9940
9941         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
9942         for int_frac_digits and frac_digits.
9943
9944         * login/logout.c (logout): Avoid aliasing violation.
9945         * login/logwtmp.c (logwtmp): Likewise.
9946
9947         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
9948
9949         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
9950         to avoid warning.
9951         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
9952         warning.
9953         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
9954         warning.
9955         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
9956         to avoid warnings.
9957
9958         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
9959         void **.
9960         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
9961
9962         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
9963         char * to avoid warning.
9964         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
9965
9966         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
9967
9968         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
9969         allocate_arrays): Cast second argument to charmap_find_symbol
9970         to char * to avoid warnings.
9971
9972         * locale/programs/repertoire.c (repertoire_new_char): Change
9973         from_nr, to_nr and cnt to unsigned long, adjust printf format
9974         string.
9975
9976         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
9977         Cast second argument to new_element to char * to avoid warnings.
9978
9979         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
9980
9981         * intl/gettextP.h (struct loaded_domain): Change plural to const
9982         struct expression *.
9983         * intl/plural-eval.c (plural_eval): Change first argument to
9984         const struct expression *.
9985         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
9986         argument to const struct expression **.
9987         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
9988         prototypes.
9989         * intl/loadmsgcat (_nl_unload_domain): Cast away const
9990         in call to __gettext_free_exp.
9991
9992         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
9993         unitialized wstring/wpattern var warnings.
9994
9995         * posix/runtests.c (struct a_test): Make data field const char *.
9996
9997         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
9998         vars if not LDBL_MANT_DIG >= 106.
9999
10000         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
10001
10002         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
10003         __find_specmb to avoid warning.
10004
10005         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
10006
10007         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
10008         to avoid warnings.
10009
10010         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
10011         initializer.
10012
10013         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
10014         tv var when it will be actually used.
10015
10016         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
10017         to avoid warnings.
10018
10019         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
10020         char array resp. pointer.
10021         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
10022         char array.
10023         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
10024         to const unsigned char **.
10025         (ucs4_to_cns11643): Change second argument to unsigned char *.
10026         * iconvdata/euc-tw.c (BODY): Change endp type to
10027         const unsigned char *.
10028         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
10029         to unsigned char *.
10030         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
10031         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
10032         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
10033         types to unsigned char pointers/arrays instead of char.
10034         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
10035         to unsigned char *.
10036         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
10037         * iconvdata/jis0212.h: Include assert.h.
10038         (ucs4_to_jisx0212): Change second argument to unsigned char *.
10039         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
10040         of trying to handle that.
10041         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
10042         shut up a warning.
10043         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
10044         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
10045         two dimensional const unsigned char arrays.
10046         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
10047         Initialize endp to inptr to shut up a warning.
10048
10049 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10050
10051         [BZ #4772]
10052         * time/strptime_l.c (__strptime_internal): Silently ignore
10053         strftime modifiers and field width in recursive calls.
10054
10055         * include/time.h (enum ptime_locale_status): Remove.
10056         (__strptime_internal): Remove decided and era_cnt arguments,
10057         add statep argument.
10058         * time/strptime_l.c (__strptime_internal): Remove decided
10059         and era_cnt arguments, add statep argument.  Don't recompute
10060         any fields in recursive calls, only update caller's tm
10061         and state, if recursive call fails, don't change tm nor
10062         any state.
10063         (get_alt_number): Adjust.
10064         (recursive): Adjust caller.
10065         (strptime): Likewise.
10066         * time/strptime.c (strptime): Likewise.
10067
10068 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
10069
10070         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
10071         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
10072         if from and to charsets are the same.
10073         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
10074         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
10075         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
10076
10077 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10078
10079         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
10080         Don't define wint_t when __need_mbstate_t unless it
10081         is necessary.
10082         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
10083         in the typedef if possible.
10084         * wctype/wctype.h (wint_t): Define by including
10085         wchar.h with __need_wint_t instead of including stddef.h
10086         with __need_wint_t and as fallback definining it ourselves.
10087         * iconv/gconv.h (__need_wint_t): Define before including
10088         wchar.h.
10089         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
10090         or _GLIBCPP_USE_WCHAR_T.
10091         (__need_wchar_t): Don't define
10092         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10093         (__need_wint_t): Don't define before including stddef.h,
10094         define before including wchar.h only if _LIBC or
10095         _GLIBCPP_USE_WCHAR_T.
10096         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
10097         * sysdeps/mach/hurd/_G_config.h: Likewise.
10098         * sysdeps/generic/_G_config.h: Likewise.
10099         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
10100         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
10101         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
10102         if _LIBC or _GLIBCPP_USE_WCHAR_T.
10103
10104 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
10105
10106         * sysdeps/posix/posix_fallocate64.c: Undefine
10107         __posix_fallocate64_l64 before alias handling.
10108         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
10109         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
10110         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
10111         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
10112
10113         * io/tst-posix_fallocate.c: Include <fcntl.h>.
10114
10115 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
10116
10117         * locale/programs/ld-collate.c (atwc): New variable.
10118         (add_to_tablewc): New toplevel function, moved from collate_output.
10119         (collate_output): Remove add_to_tablewc nested function.
10120
10121         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
10122         (name_insert): New function.
10123         (write_output): Remove hash_table and hash_size vars and name_insert
10124         nested function.
10125
10126 2007-07-24  Roland McGrath  <roland@redhat.com>
10127
10128         * Makerules (install-others-programs-nosubdir): New target.
10129         (install-no-libc.a-nosubdir): Depend on it.
10130
10131         * iconv/Makefile (install-others-programs): Set this instead of
10132         install-others.
10133         * login/Makefile (install-others-programs): Likewise.
10134         * posix/Makefile (install-others-programs): Likewise.
10135
10136         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
10137         dependencies.
10138
10139 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
10140
10141         * io/Makefile (tests): Add tst-posix_fallocate.
10142         * io/tst-posix_fallocate.c: New file.
10143
10144         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10145         __ASSUME_FALLOCATE.
10146
10147 2007-07-22  Roland McGrath  <roland@frob.com>
10148
10149         * hurd/getdport.c: Add missing copyright year update.
10150
10151         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
10152         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
10153
10154 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
10155
10156         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
10157
10158         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
10159         O_CLOEXEC is needed.
10160         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
10161         Avoid additional fcntl to set O_CLOEXEC if not needed.
10162         * nis/nss_compat/compat-initgroups.c: Likewise.
10163         * nis/nss_compat/compat-pwd.c: Likewise.
10164         * nis/nss_compat/compat-spwd.c: Likewise.
10165
10166 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10167
10168         [BZ #3665]
10169         * manual/errno.texi: Change ECANCELED value to 119.
10170
10171         [BZ #4610]
10172         * mach/lock-intern.h: Include <sys/cdefs.h>.
10173
10174         [BZ #4178]
10175         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
10176         reading A.
10177
10178         [BZ #4126]
10179         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
10180         to __sigsuspend.
10181
10182         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
10183
10184 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
10185
10186         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
10187         `__ASSEMBLER__'.
10188         * sysdeps/mach/hurd/i386/tls.h: Likewise.
10189
10190 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
10191
10192         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
10193         descriptor received from nscd.
10194
10195         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
10196
10197         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
10198         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10199         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10200         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10201         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10202         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10203
10204 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
10205
10206         [BZ #4816]
10207         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
10208
10209         [BZ #4813]
10210         * login/forkpty.c (forkpty): Close master and slave fds on
10211         fork failure.  Patch by
10212         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
10213
10214 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
10215
10216         * include/features.h (__USE_ISOC95): New define.
10217         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
10218         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
10219         for -std=iso9899:199409.
10220         * CONFORMANCE: Remove comments about unsupported AMD1.
10221
10222 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
10223
10224         * sysdeps/ia64/sched_cpucount.c: New file.
10225         * sysdeps/powerpc/sched_cpucount.c: New file.
10226
10227         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
10228         __BEGIN_DECLS/__END_DECLS around the prototype.
10229         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
10230         pointer to const cpu_set_t.
10231
10232         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
10233         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
10234         __need_size_t and include stddef.h.
10235         * sysvipc/sys/msg.h: Likewise.
10236         * posix/sched.h: Likewise.
10237         * hurd/hurd/signal.h (__need_size_t): Define.
10238
10239         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
10240         neither does signal.h in pedantic ISO C namespaces.  stdio.h
10241         no longer defines wint_t or wchar_t.
10242
10243         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
10244         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
10245         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
10246         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
10247         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
10248         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
10249         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
10250         * debug/printf_chk.c (__printf_chk): Likewise.
10251         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
10252         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
10253
10254         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
10255         Define.
10256
10257         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
10258         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
10259
10260 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
10261
10262         [BZ #4792]
10263         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
10264         * malloc/malloc.h (realloc): Likewise.
10265
10266         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
10267         if one of proc_file_chain streams has that fileno.
10268         * stdio-common/Makefile (tests): Add tst-popen2.
10269         * stdio-common/tst-popen2.c: New test.
10270
10271 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
10272
10273         * elf/ldconfig.c: Allow GPLv2 or any later version.
10274         * elf/readlib.c: Likewise.
10275         * elf/chroot_canon.c: Likewise.
10276         * elf/cache.c: Likewise.
10277         * nscd/mem.c: Likewise.
10278         * nscd/getpwuid_r.c: Likewise.
10279         * nscd/grpcache.c: Likewise.
10280         * nscd/aicache.c: Likewise.
10281         * nscd/getsrvbynm_r.c: Likewise.
10282         * nscd/nscd.c: Likewise.
10283         * nscd/servicescache.c: Likewise.
10284         * nscd/getsrvbypt_r.c: Likewise.
10285         * nscd/initgrcache.c: Likewise.
10286         * nscd/gethstbyad_r.c: Likewise.
10287         * nscd/gethstbynm2_r.c: Likewise.
10288         * nscd/getgrnam_r.c: Likewise.
10289         * nscd/nscd_setup_thread.c: Likewise.
10290         * nscd/getpwnam_r.c: Likewise.
10291         * nscd/gai.c: Likewise.
10292         * nscd/connections.c: Likewise.
10293         * nscd/dbg_log.c: Likewise.
10294         * nscd/cache.c: Likewise.
10295         * nscd/hstcache.c: Likewise.
10296         * nscd/nscd_conf.c: Likewise.
10297         * nscd/getgrgid_r.c: Likewise.
10298         * nscd/pwdcache.c: Likewise.
10299         * catgets/gencat.c: Likewise.
10300         * locale/programs/linereader.h: Likewise.
10301         * locale/programs/locarchive.c: Likewise.
10302         * locale/programs/ld-paper.c: Likewise.
10303         * locale/programs/locfile-kw.h: Likewise.
10304         * locale/programs/ld-address.c: Likewise.
10305         * locale/programs/xmalloc.c: Likewise.
10306         * locale/programs/ld-time.c: Likewise.
10307         * locale/programs/localedef.c: Likewise.
10308         * locale/programs/simple-hash.c: Likewise.
10309         * locale/programs/xstrdup.c: Likewise.
10310         * locale/programs/ld-numeric.c: Likewise.
10311         * locale/programs/locfile-kw.gperf: Likewise.
10312         * locale/programs/ld-collate.c: Likewise.
10313         * locale/programs/charmap-kw.gperf: Likewise.
10314         * locale/programs/charmap.h: Likewise.
10315         * locale/programs/charmap-kw.h: Likewise.
10316         * locale/programs/config.h: Likewise.
10317         * locale/programs/locfile.c: Likewise.
10318         * locale/programs/ld-ctype.c: Likewise.
10319         * locale/programs/charmap.c: Likewise.
10320         * locale/programs/ld-messages.c: Likewise.
10321         * locale/programs/repertoire.h: Likewise.
10322         * locale/programs/locale.c: Likewise.
10323         * locale/programs/ld-name.c: Likewise.
10324         * locale/programs/linereader.c: Likewise.
10325         * locale/programs/locfile.h: Likewise.
10326         * locale/programs/3level.h: Likewise.
10327         * locale/programs/ld-monetary.c: Likewise.
10328         * locale/programs/ld-measurement.c: Likewise.
10329         * locale/programs/charmap-dir.c: Likewise.
10330         * locale/programs/ld-identification.c: Likewise.
10331         * locale/programs/localedef.h: Likewise.
10332         * locale/programs/charmap-dir.h: Likewise.
10333         * locale/programs/repertoire.c: Likewise.
10334         * locale/programs/simple-hash.h: Likewise.
10335         * locale/programs/ld-telephone.c: Likewise.
10336         * locale/programs/locale-spec.c: Likewise.
10337         * locale/programs/locfile-token.h: Likewise.
10338         * posix/getconf.c: Likewise.
10339         * iconv/dummy-repertoire.c: Likewise.
10340         * iconv/iconv_charmap.c: Likewise.
10341         * iconv/iconvconfig.c: Likewise.
10342         * iconv/iconv_prog.c: Likewise.
10343         * malloc/memusagestat.c: Likewise.
10344         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
10345
10346 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10347
10348         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
10349         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
10350         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
10351         check for the first argument.
10352
10353 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
10354
10355         [BZ #4775]
10356         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
10357         (__tgmath_real_type): Fix if expr is const int or other const
10358         qualified integral type.
10359         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
10360         expressions and handle const qualified arguments.
10361         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
10362         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
10363         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
10364         statement expressions.
10365         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
10366         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
10367         (__TGMATH_UNARY_IMAG): Define.
10368         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
10369         * math/Makefile (tests): Add test-tgmath2.
10370         (CFLAGS-test-tgmath2.c): Add.
10371         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
10372         count_cfloat, count_cldouble): New variables.
10373         (NCCALLS): Define.
10374         (main): Check number of complex calls as well.
10375         (F(compile_test)): Add complex tests and tests with const qualified
10376         arguments.
10377         (y, z, ccount): Define.
10378         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
10379         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
10380         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
10381         F(cproj)): New functions.
10382         * math/test-tgmath2.c: New test.
10383
10384 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
10385
10386         [BZ #4776]
10387         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
10388         RPATH etc. as "/" rather than "", don't segfault on empty paths,
10389         instead output ".".
10390         * dlfcn/Makefile (distribute): Add glreflib3.c.
10391         (module-names): Add glreflib3.
10392         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
10393         glreflib1.so.
10394         (LDFLAGS_glreflib3.so): New.
10395         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
10396         glreflib1.so.
10397         * dlfcn/glreflib3.c: New file.
10398
10399         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
10400         returned -1, return NULL.
10401         * intl/explodename.c (_nl_explode_name): Return -1 if
10402         _nl_normalize_codeset failed.
10403
10404 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
10405
10406         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
10407         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
10408         and avoid branch misspredicts for > 31 bytes memset case.
10409         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
10410         Remove toc ref to __cache_line_size.
10411
10412         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
10413         to get ISA-V2.0 branch hints.
10414         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
10415         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
10416         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10417         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10418         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10419         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
10420         Remove toc ref to __cache_line_size.
10421
10422         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
10423         Include math_ldbl_opt.h.
10424
10425 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
10426
10427         [BZ #4773]
10428         * time/strptime_l.c (__strptime_internal): Implement greedy
10429         matching of weekday and month names.
10430
10431 2007-07-09  Roland McGrath  <roland@redhat.com>
10432
10433         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
10434         (ELF_NOTE_ABI): Use it.
10435         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
10436
10437 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
10438
10439         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
10440         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10441
10442 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
10443
10444         [BZ #4745]
10445         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
10446         in loop to look for conversion specifier to avoid testing of
10447         wrong errno value.
10448         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
10449         * stdio-common/bug18.c: New file.
10450         * stdio-common/bug18a.c: New file.
10451         * stdio-common/bug19.c: New file.
10452         * stdio-common/bug19a.c: New file.
10453
10454 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
10455
10456         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
10457         running awk script.
10458
10459 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
10460
10461         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
10462         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
10463         Return NULL if mmap failed instead of asserting it does not.
10464         (calloc): Check for integer overflow.
10465
10466         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
10467         than LONG_MAX / 10.
10468
10469 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
10470
10471         [BZ #4702]
10472         * nis/nss-default.c: Include errno.h.
10473         (init): Preserve errno.
10474
10475 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
10476
10477         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
10478
10479 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
10480
10481         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
10482
10483 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10484
10485         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
10486
10487 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
10488
10489         * sysdeps/s390/dl-procinfo.c: New file.
10490         * sysdeps/s390/dl-procinfo.h: New file.
10491         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
10492
10493 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
10494
10495         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
10496         in PT_NOTE segments with multiple notes.
10497         * elf/readelflib.c (process_elf_file): Likewise.
10498
10499 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
10500
10501         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
10502         ISO C compliant.
10503
10504 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10505
10506         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
10507
10508 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
10509
10510         * include/link.h: Don't include rtld-lowlevel.h.
10511         (struct link_map): Remove l_scope_lock.
10512         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
10513         (_dl_scope_free_list): New field (variable) in _rtld_global.
10514         (DL_LOOKUP_SCOPE_LOCK): Remove.
10515         (_dl_scope_free): New prototype.
10516         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
10517         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
10518         (_dl_profile_fixup): Likewise.
10519         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
10520         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
10521         THREAD_GSCOPE_RESET_FLAG around it.
10522         * elf/dl-close.c (_dl_close_worker): Don't use
10523         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
10524         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
10525         scopes were queued or if l_scope_mem has been abandoned.
10526         * elf/dl-open.c (_dl_scope_free): New function.
10527         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
10528         * elf/dl-support.c (_dl_scope_free_list): New variable.
10529         * elf/dl-lookup.c (add_dependency): Remove flags argument.
10530         Remove DL_LOOKUP_SCOPE_LOCK handling.
10531         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
10532         handling.
10533         * elf/dl-object.c (_dl_new_object): Don't use
10534         __rtld_mrlock_initialize.
10535
10536 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
10537
10538         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
10539         to fill in holes
10540         (rtld_global_ro): Likewise.
10541
10542 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10543
10544         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
10545         Move PT_LOAD checking to...
10546         (_dl_addr_inside_object): ... here, new function.
10547         * elf/dl-sym.c (do_sym): If not l_contiguous,
10548         call _dl_addr_inside_object.
10549         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
10550         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
10551         * elf/dl-open.c (dl_open_worker): Likewise.
10552         (_dl_addr_inside_object): New function if IS_IN_rtld.
10553         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
10554         holes are present or are PROT_NONE protected.
10555         * include/link.h (struct link_map): Add l_contiguous field.
10556         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
10557
10558 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10559             Tomas Janousek  <tjanouse@redhat.com>
10560             Ulrich Drepper  <drepper@redhat.com>
10561
10562         [BZ #4647]
10563         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
10564         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
10565         socket.
10566         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
10567         unused member a bitmap.
10568         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
10569         servers are configured.
10570
10571 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
10572
10573         * elf/rtld.c (dl_main): Don't call init_tls more than once.
10574
10575 2007-06-17  Andreas Schwab  <schwab@suse.de>
10576
10577         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
10578
10579 2007-06-16  Andreas Jaeger  <aj@suse.de>
10580
10581         [BZ #4125]
10582         * sysdeps/unix/sysv/linux/sys/ptrace.h
10583         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
10584         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
10585         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
10586         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
10587         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
10588         Define.
10589         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10590         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10591         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10592         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10593
10594 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
10595
10596         [BZ #4599]
10597         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
10598         determining whether there are IPv4/IPv6 addresses, ignore loopback
10599         addresses.
10600
10601 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10602
10603         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
10604         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
10605         as the return type.  Change type of "r" variable to CMPtype.
10606         * soft-fp/eqsf2.c (__eqsf2): Likewise.
10607         * soft-fp/eqtf2.c (__eqtf2): Likewise.
10608         * soft-fp/gedf2.c (__gedf2): Likewise.
10609         * soft-fp/gesf2.c (__gesf2): Likewise.
10610         * soft-fp/getf2.c (__getf2): Likewise.
10611         * soft-fp/ledf2.c (__ledf2): Likewise.
10612         * soft-fp/lesf2.c (__lesf2): Likewise.
10613         * soft-fp/letf2.c (__letf2): Likewise.
10614         * soft-fp/unorddf2 (__unorddf2): Likewise.
10615         * soft-fp/unordsf2 (__unordsf2): Likewise.
10616         * soft-fp/unordtf2 (__unordtf2): Likewise.
10617
10618 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
10619
10620         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
10621         make sure gcc doesn't mess around with this.
10622
10623 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10624
10625         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
10626
10627 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
10628
10629         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
10630         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
10631         at most once per _dl_close_worker.
10632
10633 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
10634
10635         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
10636         __sched_cpucount as const.
10637         * posix/sched_cpucount.c: Adjust.
10638
10639         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
10640         instruction for counting bits.
10641         * sysdeps/x86_64/sched_cpucount.c: New file.
10642
10643 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
10644
10645         * configure.in: Avoid variable named BASH.
10646         * config.make.in: Likewise.
10647         Patch in part by Mike Frysinger.
10648
10649 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
10650
10651         [BZ #4586]
10652         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
10653         pseudo-zeros as zero.
10654         * sysdeps/x86_64/ldbl2mpn.c: New file.
10655         * sysdeps/ia64/ldbl2mpn.c: New file.
10656
10657 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10658
10659         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
10660         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
10661         Remove unreachable code at the end.
10662
10663 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10664
10665         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
10666         ldbl-128ibm in comment.
10667         (fpclassifyl): Correct classification of denormals.
10668         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
10669         return value for MIN denormal. Rewrite using long double math too
10670         correctly handle denormals and canonicalize the results.
10671
10672 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
10673
10674         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
10675         (__mpn_construct_long_double): Fix conversion where result ought
10676         to be smaller than __LDBL_MIN__, or the low double should be
10677         denormal.  Fix decision where to negate low double - honor round
10678         to even rules.
10679         * stdio-common/tst-sprintf2.c: Include string.h.
10680         (COMPARE_LDBL): Define.
10681         (TEST): Also test whether a string hexadecimal float representation
10682         can be parsed back to the number.
10683         (main): Add a couple of further tests.
10684
10685 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
10686
10687         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
10688         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
10689         is non-zero, but smaller than 2 * __DBL_MIN__.
10690         * stdio-common/tst-sprintf2.c: New test.
10691         * stdio-common/Makefile (tests): Add tst-sprintf2.
10692
10693         * math/test-misc.c (main): Don't run last batch of tests with
10694         IBM long double format.
10695
10696 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10697
10698         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
10699         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
10700         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
10701         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
10702         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10703         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
10704         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
10705         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
10706         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
10707         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
10709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
10710         New file.
10711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
10712         New file.
10713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
10714         New file.
10715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
10716         New file.
10717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
10718         New file.
10719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
10720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
10721         New file.
10722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
10723         New file.
10724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
10725         New file.
10726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
10727         New file.
10728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
10729         New file.
10730
10731 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10732
10733         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
10734         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
10735         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
10736         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
10737         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
10738         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
10739         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
10740         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
10741
10742 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
10743
10744         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
10745         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10746         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
10747         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10748         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
10749         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10750         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
10751         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
10752
10753 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10754
10755         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
10756         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
10757         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
10758         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
10759
10760 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
10761
10762         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
10763         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
10764
10765 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
10766
10767         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
10768         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
10769         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
10770         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
10771
10772 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
10773
10774         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
10775         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
10776
10777 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10778
10779         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
10780         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
10781
10782         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
10783         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
10784         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
10785         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10786
10787 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
10788
10789         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
10790         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
10791         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
10792         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
10793
10794 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
10795
10796         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
10797         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
10798         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
10799         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
10800         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
10801         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
10802
10803 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10804
10805         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
10806         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
10807         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
10808         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
10809
10810 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
10811
10812         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
10813         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
10814         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
10815         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
10816         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
10817         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
10818         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
10819         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
10820         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
10821         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
10822         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
10823         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
10824         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
10825         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
10826         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
10827         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
10828
10829 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10830
10831         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
10832         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
10833
10834 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
10835
10836         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
10837         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
10838
10839 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
10840
10841         * sysdeps/powerpc/powerpc32/970/Implies: New file.
10842         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
10843         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
10844         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
10845         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
10846         * sysdeps/powerpc/powerpc64/970/Implies: New file.
10847         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
10848         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
10849         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
10850         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
10851
10852 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
10853
10854         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
10855
10856 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
10857
10858         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
10859         branch miss-predicts. Ensure that cache line crossing does not impact
10860         dispatch grouping.
10861
10862 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
10863
10864         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
10865         "../../powerpc32/power4/memcopy.h".
10866         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
10867         "../../powerpc32/power4/wordcopy.c".
10868
10869 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
10870
10871         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
10872         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
10873         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
10874         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
10875         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
10876         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
10877
10878 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
10879
10880         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
10881
10882 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
10883
10884         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
10885         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
10886         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
10887         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
10888         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
10889         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
10890         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
10891         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
10892
10893 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
10894
10895         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
10896
10897 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
10898
10899         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
10900         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
10901         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
10902         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
10903         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
10904         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
10905         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
10906
10907 2007-05-29  Roland McGrath  <roland@redhat.com>
10908
10909         * po/Makefile (po-sed-cmd): New variable.
10910         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
10911
10912 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
10913
10914         * crypt/md5-crypt.c: Fix comment.
10915
10916         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
10917         of crashing.  When this is the case or if the reply is malformed,
10918         don't try to close the new file descriptor since it does not
10919         exist.
10920         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
10921
10922 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
10923
10924         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
10925         if __NR_utimensat is not defined.
10926
10927 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
10928
10929         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
10930
10931 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
10932
10933         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
10934         (open): Fix comment typos.  Don't call __open_2 if flags
10935         is a compile time constant without O_CREAT.
10936         (__open64_2): Add nonnull attribute.
10937         (open64): Fix comment typos.  Don't call __open64_2 if flags
10938         is a compile time constant without O_CREAT.
10939         (__openat_2): Add nonnull attribute, fix nonnull attribute
10940         on redirect.
10941         (openat): Fix comment typos.  Don't call __openat_2 if flags
10942         is a compile time constant without O_CREAT.
10943         (__openat64_2): Add nonnull attribute, fix nonnull attribute
10944         on redirect.
10945         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
10946         is a compile time constant without O_CREAT.
10947
10948 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
10949
10950         * Makerules (sysd-rules): Define PTW for ptw-* files.
10951         * Versions: Define GLIBC_2.7 for libc.
10952         * include/stdio.h: Declare __fortify_fail.
10953         * debug/fortify_fail.c: New file.
10954         * debug/Makefile (routines): Add fortify_fail.
10955         * debug/chk_fail.c: Use __fortify_fail.
10956         * debug/stack_chk_fail.c: Likewise.
10957         * io/Versions: Export __open_2, __open64_2, __openat_2, and
10958         __openat64_2 for GLIBC_2.7.
10959         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
10960         * io/open.c: Define *_2 variant of function which checks for O_CREAT
10961         and fails if necessary.
10962         * io/open64.c: Likewise.
10963         * io/openat.c: Likewise.
10964         * io/openat64.c: Likewise.
10965         * sysdeps/unix/sysv/linux/open64.c: Likewise.
10966         * sysdeps/unix/sysv/linux/openat.c: Likewise.
10967         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
10968         * io/bits/fcntl2.h: New file.
10969         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
10970         __openat64_2.
10971         * include/bits/fcntl2.h: New file.
10972         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10973         Add open_2.
10974         * sysdeps/unix/sysv/linux/open_2.c: New file.
10975
10976 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
10977
10978         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
10979         as second parameter to handle_intel.
10980
10981         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
10982         the entry.
10983
10984         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
10985         handling to ...
10986         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
10987         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
10988         cacheinfo.
10989         * sysdeps/x86_64/memcpy.S: Complete rewrite.
10990         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
10991         Patch by Evandro Menezes <evandro.menezes@amd.com>.
10992
10993         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
10994
10995 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
10996
10997         [BZ #4525]
10998         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
10999         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
11000         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
11001
11002         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
11003
11004         [BZ #4514]
11005         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
11006         reinitialize workend at the start of each do_positional format spec
11007         loop, free workstart before do_positional loops.
11008         (printf_unknown): Fix size of work_buffer.
11009         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
11010
11011         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
11012         (public_sET_STATe): If ms->version < 3, put all chunks into
11013         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
11014         chunks.
11015
11016         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
11017         * malloc/hooks.c: Likewise.
11018         * malloc/arena.c: Likewise.
11019         * malloc/malloc.c (do_check_malloc_state): Don't assert
11020         n_mmaps is not greater than n_mmaps_max.  This removes the need
11021         for the previous change.
11022
11023         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
11024         2007-05-07 commit.
11025
11026 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
11027
11028         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
11029         Define for kernel >= 2.6.22.
11030
11031 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
11032
11033         * elf/dl-close.c (_dl_close_worker): When removing object from
11034         global scope, wait for all lookups to finish afterwards.
11035         * elf/dl-open.c (add_to_global): When global scope array must
11036         grow, allocate a new one and free old array only after all
11037         lookups finish.
11038         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
11039         (_dl_lookup_symbol_x): Likewise.
11040         * elf/dl-support.c: Define _dl_wait_lookup_done.
11041         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
11042         _dl_wait_lookup_done.
11043
11044         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
11045         not overlapping with arena.
11046
11047         * malloc/mcheck.c (reallochook): If size==0, free the block.
11048
11049         * rt/tst-shm.c: Use fstat64 instead of fstat.
11050
11051         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
11052         __NR_sync_file_range is not defined.
11053
11054 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
11055
11056         Dummy files to prevent stub versions from being used.
11057         * sysdeps/x86_64/fpu/k_cosl.c: New file.
11058         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
11059         * sysdeps/x86_64/fpu/k_sinl.c: New file.
11060         * sysdeps/x86_64/fpu/k_tanl.c: New file.
11061
11062         * version.h (VERSION): Set to 2.6.90.
11063
11064 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
11065
11066         * version.h (VERSION): Define to 2.6.
11067         * include/features.h (__GLIBC_MINOR__): Define to 6.
11068
11069         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
11070
11071         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
11072         sizes.
11073
11074 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
11075
11076         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
11077         number of mmaps.  n_mmaps_max is the target.
11078         * malloc/hooks.c: Likewise.
11079         * malloc/arena.c: Likewise.
11080
11081 2007-05-12  Andreas Jaeger  <aj@suse.de>
11082
11083         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
11084         getpid.
11085
11086 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
11087
11088         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
11089         adding new variables.
11090
11091         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
11092         optimize.  Completely extend global scope array before making the
11093         new entries visible.
11094
11095 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
11096
11097         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
11098         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
11099         tst-getcpu.
11100
11101         * include/link.h: Move l_version and l_nversion members around to
11102         fill gaps.
11103
11104         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
11105
11106         * sysdeps/unix/sysv/linux/sched_setaffinity.c
11107         (__sched_setaffinity_new): If syscall was successful and
11108         RESET_VGETCPU_CACHE is defined, use it before returning.
11109         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
11110
11111         * io/sys/stat.h: Make sure struct timespec is defined for
11112         __USE_ATFILE.
11113
11114         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
11115         UTIME_OMIT.
11116         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
11117         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11118         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
11119         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
11120         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11121         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11122         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
11123         * io/sys/stat.h: Declare utimensat, futimens.
11124         * io/utimensat.c: New file.
11125         * io/futimens.c: New file.
11126         * sysdeps/unix/sysv/linux/utimensat.c: New file.
11127         * sysdeps/unix/sysv/linux/futimens.c: New file.
11128         * io/Makefile (routines): Add utimensat, futimens.
11129         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
11130         * sysdeps/unix/sysv/linux/lutimes.c: New file.
11131         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
11132         available.
11133
11134         * include/sys/cdefs.h: Redefine __nonnull so that test for
11135         incorrect parameters in the libc code itself are not omitted.
11136
11137 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
11138
11139         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
11140         exception in addition to inexact when asked to raise only FE_INEXACT.
11141
11142         [BZ #3427]
11143         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
11144         in *envp.
11145
11146 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11147
11148         [BZ #4403]
11149         * string/strfry.c (strfry): Make result more random.
11150
11151 2007-05-07  Richard Henderson  <rth@redhat.com>
11152
11153         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
11154         if __NO_LONG_DOUBLE_MATH.
11155         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
11156         available in the compiler, add .arch directive to the assembly.
11157
11158 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
11159
11160         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
11161         compat_symbol to GLIBC_2_1.
11162         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
11163         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
11164         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
11165         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
11166         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
11167         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
11168         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
11169         libc, not libm.
11170         (__isnanl): New compat_symbol.
11171
11172 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
11173             Jakub Jelinek  <jakub@redhat.com>
11174
11175         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
11176         (new_heap): Initialize mprotect_size.
11177         (grow_heap): When growing, only mprotect from mprotect_size till
11178         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
11179         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
11180
11181 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
11182             Peter Bergner  <bergner@us.ibm.com>
11183
11184         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
11185         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
11186         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
11187         * sysdeps/powerpc/fpu/fe_mask.c: New file.
11188         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
11189         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
11190         Call __fe_mask_env() if all FP exceptions disabled.
11191         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
11192         from old FPSCR to new fenv to propagate DFP rounding modes.
11193         Call __fe_mask_env() if FP exceptions previously enabled.
11194         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
11195         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
11196         transitioning from all exceptions disabled to any exception enabled
11197         or visa versa.
11198         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
11199         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
11200         when transitioning from all exceptions disabled to any exception
11201         enabled or visa versa.
11202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
11203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
11204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
11205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
11206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
11207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
11208
11209 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11210
11211         [BZ #4465]
11212         * posix/unistd.h: Remove __THROW from fdatasync.
11213
11214 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
11215
11216         [BZ #4465]
11217         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
11218
11219 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
11220
11221         * stdio-common/vfprintf.c (process_string_arg): Optimize
11222         ridiculous precision in wide char code printing multi-byte string.
11223         Reported by Jim Meyering <jim@meyering.net>.
11224
11225         [BZ #4131]
11226         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
11227         boundaries to work around systems with overlapping binary loading.
11228         Based on a patch by Suzuki <suzuki@in.ibm.com>.
11229
11230 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
11231
11232         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
11233         __mbsnrtowcs after last change.
11234
11235         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
11236         (get_ident): Likewise.
11237
11238 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11239
11240         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
11241         with setting the sticky bit.
11242         * math/test-misc.c (main): Add more truncation tests.
11243
11244 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
11245
11246         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
11247         double in the function declaration.
11248         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
11249         double in the function declaration.
11250         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11251         float in the function declaration.
11252         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
11253         float in the function declaration.
11254
11255         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
11256         denormal operands.  Do not generate FP_EX_DENORM exception.
11257         (FP_UNPACK_RAW_EP): Ditto.
11258         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
11259         undefined _FP_UNPACK_RAW_E.
11260         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
11261         undefined _FP_UNPACK_RAW_EP.
11262         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
11263         undefined _FP_PACK_RAW_E.
11264         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
11265         undefined _FP_PACK_RAW_EP.
11266
11267         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
11268         _FP_FRAC_COPY_2.
11269         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
11270         _FP_FRAC_COPY_4.
11271
11272 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
11273             Jakub Jelinek  <jakub@redhat.com>
11274
11275         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
11276         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
11277         this case.
11278         * soft-fp/op-common.h (FP_TRUNC): Ditto.
11279
11280 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
11281
11282         * math/test-misc.c (main): Add tests for rounding long double
11283         values close to smallest double denormalized value to double.
11284
11285 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
11286
11287         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
11288         condition for truncating to 0.  Set sticky bit for such
11289         truncation.
11290
11291 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
11292
11293         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
11294         fixed length array for ignore.
11295
11296 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11297
11298         [BZ #4438]
11299         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
11300         stack for large precisions.
11301         * stdio-common/test-vfprintf.c (main): Add test for large
11302         precision.
11303
11304 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
11305
11306         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
11307         for exponent 0.
11308         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
11309
11310         [BZ #4439]
11311         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
11312         account in the size check.
11313         * resolv/tst-inet_ntop.c: New test.
11314         * resolv/Makefile (tests): Add tst-inet_ntop.
11315
11316 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
11317             Jakub Jelinek  <jakub@redhat.com>
11318
11319         [BZ #4349]
11320         * malloc/malloc.c: Keep separate list for first blocks on the bin
11321         lists with a given size.  This helps skipping over list elements
11322         we know won't fit in two places.
11323         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
11324
11325 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
11326
11327         [BZ #4102]
11328         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
11329         label to Teredo tunnel addresses 2001://32.
11330
11331 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
11332
11333         * locale/programs/ld-collate.c (collate_read): Allow order_start
11334         after copy.
11335
11336         * locale/programs/ld-collate.c (collate_read): Fix printing of
11337         error message.
11338
11339         [BZ #3213]
11340         * locale/C-translit.h.in: Add entry for U2044.
11341
11342         [BZ #4342]
11343         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
11344         hexa-decimal floats without exponent.
11345         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
11346
11347 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11348
11349         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
11350         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
11351         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
11352         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
11353         GLIBC_2.6.
11354         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
11355         Add sched_getcpu.
11356
11357 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11358
11359         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
11360         of 0 after the out_fail label.
11361
11362 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
11363
11364         [BZ #4406]
11365         * iconv/gconv_charset.h (strip): Allow ':'.
11366         * iconv/iconv_open.c (iconv_open): Adjust comment.
11367
11368 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
11369
11370         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
11371         version.
11372
11373 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11374
11375         [BZ #4381]
11376         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
11377         alignment of buffer and tmp_buffer.
11378         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
11379         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
11380         alignment of buffer.
11381         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
11382         bigger than INT_MAX.
11383         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
11384         h_errnop arguments.  Fail if buflen is too small.
11385         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
11386
11387 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
11388
11389         [BZ #4405]
11390         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
11391         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
11392
11393 2007-04-22  Roland McGrath  <roland@redhat.com>
11394
11395         * elf/elf.h (NT_PRXFPREG): New macro.
11396
11397 2007-04-19  Andreas Jaeger  <aj@suse.de>
11398
11399         [BZ #3905]
11400         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
11401         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
11402         Added.
11403
11404 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
11405
11406         * include/sys/mman.h: Mark madvise hidden.
11407         * misc/madvise.c: Add libc_hidden_def.
11408
11409 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
11410
11411         * nis/nis_domain_of.c (__nis_domain_of): New function.
11412         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
11413         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
11414         * nis/nis_call.c (rec_dirsearch): Likewise.
11415         (first_shoot): Likewise.  Remove search_parent_first argument.
11416         (struct nis_server_cache): Rename search_parent_first field
11417         to search_parent.
11418         (nis_server_cache_search, nis_server_cache_add): Rename
11419         search_parent_first argument to search_parent.
11420         (__nisfind_server): Likewise.  If search_parent, call
11421         __nis_domain_of.
11422
11423 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
11424
11425         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
11426
11427 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
11428
11429         [BZ #4368]
11430         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
11431
11432 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
11433
11434         [BZ #4364]
11435         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
11436
11437 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
11438
11439         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
11440         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
11441         current number of locales in SUPPORTED.
11442         (create_archive): Initialize serial.
11443         (enlarge_archive): Preserve aliases rather than duplicating
11444         their locrecs.
11445
11446 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11447
11448         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
11449         after _IO_un_link, not before it.
11450
11451         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
11452         special case handling when wcp == wstartp + 1.  Fix a comment typo.
11453         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
11454
11455 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
11456
11457         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
11458         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
11459         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
11460         Remove __THROW.
11461         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
11462         _IO_file_xsgetn_maybe_mmap): Likewise.
11463         * libio/oldfileops.c (old_do_write): Likewise.
11464         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
11465         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
11466         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
11467         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
11468         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
11469         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
11470         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
11471         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
11472         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
11473         _IO_file_underflow, _IO_file_underflow_mmap,
11474         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
11475         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
11476         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
11477         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
11478         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
11479         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
11480         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
11481         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
11482         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
11483         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
11484         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
11485         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
11486         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
11487         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
11488         _IO_adjust_column_internal, _IO_default_uflow_internal,
11489         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
11490         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
11491         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
11492         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
11493         _IO_file_close_it_internal, _IO_file_underflow_internal,
11494         _IO_file_overflow_internal, _IO_file_attach_internal,
11495         _IO_file_fopen_internal, _IO_file_sync_internal,
11496         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
11497         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
11498         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
11499         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
11500         _IO_seekpos_unlocked): Likewise.
11501         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
11502         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
11503
11504 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
11505
11506         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
11507         argument in xmalloc size computation.
11508
11509 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11510
11511         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
11512         math_opt_barrier and math_force_eval macros.
11513
11514 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11515
11516         [BZ #3306]
11517         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
11518         * sysdeps/i386/fpu/math_private.h: New file.
11519         * sysdeps/x86_64/fpu/math_private.h: New file.
11520         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
11521         math_force_eval macros.  Use "+m" constraint on asm rather than
11522         "=m" and "m".
11523         * math/s_nextafter.c (__nextafter): Likewise.
11524         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11525         Likewise.
11526         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
11527         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
11528         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
11529         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
11530         math_opt_barrier and math_force_eval macros.
11531         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
11532         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
11533         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
11534         (__nexttoward): Use math_opt_barrier and
11535         math_force_eval macros.  Use "+m" constraint on asm rather than
11536         "=m" and "m".  Only use asm to force double result if
11537         FLT_EVAL_METHOD is 2.
11538         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
11539         (__nexttowardf): Use math_opt_barrier and
11540         math_force_eval macros.  Use "+m" constraint on asm rather than
11541         "=m" and "m".  Only use asm to force double result if
11542         FLT_EVAL_METHOD is not 0.
11543         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
11544         (__nexttowardf): Use math_opt_barrier and
11545         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11546         x to float using asm.
11547         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
11548         (__nldbl_nexttowardf): Use math_opt_barrier and
11549         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
11550         x to float using asm.
11551         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
11552         (__nexttowardf): Use math_opt_barrier and math_force_eval
11553         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
11554         * math/bug-nextafter.c (zero, inf): New variables.
11555         (main): Add new tests.
11556         * math/bug-nexttoward.c (zero, inf): New variables.
11557         (main): Add new tests.
11558
11559 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11560
11561         [BZ #3427]
11562         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
11563         exceptions both in SW and MXCSR.
11564         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
11565         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
11566         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11567         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11568         in MXCSR if SSE is available.
11569         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
11570         and ldsodefs.h.
11571         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
11572         Fix comment typo.
11573         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
11574         Return 0 rather than 1.
11575         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
11576         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
11577         * math/test-fenv.c (feholdexcept_tests): New function.
11578         (main): Call it.
11579
11580 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
11581
11582         [BZ #3427]
11583         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
11584         in SW.
11585
11586 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
11587
11588         [BZ #4344]
11589         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
11590         Reported by David Anderson <davea42@earthlink.net>.
11591
11592 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
11593
11594         * posix/sys/wait.h: Remove unnecessary forward declaration.
11595
11596 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
11597
11598         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
11599         with obj->do_servers after first_shoot.
11600
11601 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
11602
11603         * posix/Makefile (routines): Add sched_cpucount.
11604         (tests): Add tst-cpucount.
11605         * posix/sched_cpucount.c: New file.
11606         * posix/tst-cpucount.c: New file.
11607         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
11608         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
11609         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
11610         * posix/sched.h: Define CPU_COUNT.
11611
11612 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
11613
11614         * posix/fnmatch.c (STRUCT): Define.
11615         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
11616         * posix/fnmatch_loop.c (struct STRUCT): New type.
11617         (FCT): Add ends argument.  If ends != NULL and normal * is
11618         seen in the pattern, store current pattern and string pointers
11619         and return.  Adjust recursive calls.
11620         (EXT): Adjust FCT callers.
11621         (STRUCT): Undef at the end of the file.
11622         * posix/Makefile (tests): Add tst-fnmatch2.
11623         * posix/tst-fnmatch2.c: New test.
11624
11625 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
11626
11627         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
11628         and 1 on failure.
11629
11630         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
11631         Change last argument to unsigned int.
11632
11633 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
11634
11635         * scripts/check-local-headers.sh: Filter out sys/capability.h.
11636
11637 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
11638
11639         * config.h.in (HAVE_LIBCAP): Add.
11640         * nscd/selinux.h: Include sys/capability.h rather than non-existent
11641         sys/capabilities.h.
11642         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
11643         free_caps.  Cast away const from 4th cap_set_flag argument.
11644
11645 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
11646
11647         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
11648         GLIBC_2.6.
11649         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11650         Add sync_file_range.
11651         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
11652
11653 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
11654
11655         * sysdeps/powerpc/bits/atomic.h
11656         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
11657         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
11658         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11659         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
11660         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11661         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
11662         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
11663         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11664         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11665         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11666         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
11667         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
11668         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
11669         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
11670         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11671         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
11672         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11673         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
11674         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
11675         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
11676
11677 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11678
11679         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
11680         (__cache_line_size): Define the variable here.  Add
11681         attribute_hidden, remove weak_extern.
11682         (__libc_start_main): Set __cache_line_size
11683         unconditionally.
11684         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
11685         (__cache_line_size): Define the variable here.  Add
11686         attribute_hidden, remove weak_extern.
11687         (DL_PLATFORM_AUXV): Set __cache_line_size
11688         unconditionally.
11689         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
11690         weak_extern, add attribute_hidden.
11691         (__elf_machine_runtime_setup): Assume __cache_line_size is always
11692         defined in ld.so.
11693         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
11694         definition.
11695         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
11696
11697 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11698
11699         [BZ #4276]
11700         * timezone/africa: Update from tzdata2007d.
11701         * timezone/asia: Likewise.
11702         * timezone/australasia: Likewise.
11703         * timezone/backward: Likewise.
11704         * timezone/europe: Likewise.
11705         * timezone/iso3166.tab: Likewise.
11706         * timezone/leapseconds: Likewise.
11707         * timezone/northamerica: Likewise.
11708         * timezone/southamerica: Likewise.
11709         * timezone/zone.tab: Likewise.
11710
11711         * timezone/private.h: Update from tzcode2007d.
11712         * timezone/zdump.c: Likewise.
11713         * timezone/zic.c: Likewise.
11714
11715 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11716
11717         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
11718         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
11719         variables.
11720         (nis_server_cache_search, nis_server_cache_add): New functions.
11721         (__nisfind_server): Use them.  Add dbp and flags argument, if
11722         call __nisbind_create.
11723         (__nisbind_create): Add server_used and current_ep arguments,
11724         only call __nis_findfastest if server_used is ~0.
11725         (__do_niscall2, __prepare_niscall): Adjust callers.
11726         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
11727         ckey_cache_euid, ckey_cache_lock): New variables.
11728         (get_ckey): New function.
11729         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
11730         __pmap_getnisport.  Save __pmap_getnisport result in
11731         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
11732         key.
11733         * nis/nis_lookup.c (nis_lookup): Likewise.
11734         * nis/nis_table.c (nis_list): Likewise.
11735         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
11736         prototypes.
11737
11738         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
11739         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
11740         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
11741         _nss_nisplus_getservbyport_r): Likewise.
11742         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
11743         _nss_nisplus_getnetbyaddr_r): Likewise.
11744         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
11745         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
11746         _nss_nisplus_getntohost_r): Likewise.
11747         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
11748         _nss_nisplus_getrpcbynumber_r): Likewise.
11749
11750 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11751
11752         * configure.in (libc_cv_gnu89_inline): Only do compile test.
11753         * configure: Rebuilt.
11754
11755         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
11756         bit-fields.
11757         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11758
11759 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
11760
11761         [BZ #2831]
11762         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
11763         bit-fields.
11764
11765 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
11766
11767         * nscd/gai.c: Include alloca.h.
11768         (__libc_use_alloca): Define.
11769
11770 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
11771
11772         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
11773         smaller scopes.
11774         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
11775         (DL_DST_REQUIRED): Adjust user.
11776
11777         * include/dlfcn.h (struct link_map): New forward decl.
11778
11779         * inet/getnameinfo.c: Include stddef.h.
11780         (getnameinfo): Use offsetof.
11781
11782         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
11783
11784         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
11785
11786         * string/strerror_l.c: Include stdlib.h.
11787
11788         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
11789         * config.make.in (gnu89-inline-CFLAGS): New variable.
11790         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
11791         -std=gnu99.
11792         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
11793         * argp/argp.h: Use it.
11794         * bits/mathinline.h: Likewise.
11795         * bits/sigset.h: Likewise.
11796         * bits/string.h: Likewise.
11797         * ctype/ctype.h: Likewise.
11798         * hurd/hurd.h: Likewise.
11799         * hurd/hurd/fd.h: Likewise.
11800         * hurd/hurd/port.h: Likewise.
11801         * hurd/hurd/signal.h: Likewise.
11802         * hurd/hurd/threadvar.h: Likewise.
11803         * hurd/hurd/userlink.h: Likewise.
11804         * io/sys/stat.h: Likewise.
11805         * libio/bits/stdio.h: Likewise.
11806         * libio/bits/stdio2.h: Likewise.
11807         * mach/lock-intern.h: Likewise.
11808         * mach/mach/mig_support.h: Likewise.
11809         * math/bits/cmathcalls.h: Likewise.
11810         * posix/bits/unistd.h: Likewise.
11811         * socket/bits/socket2.h: Likewise.
11812         * stdlib/bits/stdlib.h: Likewise.
11813         * stdlib/stdlib.h: Likewise.
11814         * string/argz.h: Likewise.
11815         * string/bits/string2.h: Likewise.
11816         * string/bits/string3.h: Likewise.
11817         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
11818         * sysdeps/generic/inttypes.h: Likewise.
11819         * sysdeps/generic/machine-lock.h: Likewise.
11820         * sysdeps/generic/machine-sp.h: Likewise.
11821         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
11822         * sysdeps/i386/i486/bits/string.h: Likewise.
11823         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
11824         * sysdeps/mach/alpha/machine-lock.h: Likewise.
11825         * sysdeps/mach/alpha/machine-sp.h: Likewise.
11826         * sysdeps/mach/i386/machine-lock.h: Likewise.
11827         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11828         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
11829         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
11830         * sysdeps/s390/bits/string.h: Likewise.
11831         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
11832         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
11833         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
11834         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
11835         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
11836         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
11837         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11838         * wcsmbs/bits/wchar2.h: Likewise.
11839         * wcsmbs/wchar.h: Likewise.
11840         * stdlib/gmp.h: Likewise.  Include <features.h> to get
11841         __extern_inline definition.
11842
11843 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
11844
11845         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
11846         NULL.
11847
11848         [BZ #3919]
11849         * math/libm-test.inc (log_test): Test -Inf and NaN.
11850         (log10_test, log1p_test, log2_test): Test -Inf.
11851         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
11852         FE_INVALID when argument is qNaN.
11853         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11854         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11855         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
11856         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
11857         andb $1, %ah with testb $1, %ah, don't test for parity, instead
11858         testb $4, %ah and jump if non-zero.
11859         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
11860         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
11861
11862         [BZ #4101]
11863         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
11864         ancestors with the same depths.
11865         Patch by Niels Moeller <nisse@lysator.liu.se>.
11866         (filter_doc): Don't crash if argp is NULL.
11867         * argp/Makefile (tests): Add tst-argp2.
11868         * argp/tst-argp2.c: New test.
11869
11870         [BZ #4130]
11871         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
11872         open_not_cancel_2.
11873         (updwtmp_file): Likewise.
11874
11875         [BZ #4181]
11876         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
11877         (inet6_opt_append): Don't check extlen is big enough if extbuf
11878         is NULL.
11879         (inet6_opt_finish): Likewise.
11880         * inet/Makefile (tests): Add test-inet6_opt.
11881         * inet/test-inet6_opt.c: New test.
11882
11883         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
11884         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
11885         NLMSG_ERR.  Instead use a page sized buffer.
11886         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
11887         buffer.
11888
11889 2007-03-14  Richard Henderson  <rth@redhat.com>
11890
11891         * sysdeps/alpha/fpu/s_llround.c: New file.
11892         * sysdeps/alpha/fpu/s_llroundf.c: New file.
11893         * sysdeps/alpha/fpu/s_lround.c: New file.
11894         * sysdeps/alpha/fpu/s_lroundf.c: New file.
11895         * sysdeps/alpha/fpu/s_round.c: New file.
11896         * sysdeps/alpha/fpu/s_roundf.c: New file.
11897         * sysdeps/alpha/fpu/s_trunc.c: New file.
11898         * sysdeps/alpha/fpu/s_truncf.c: New file.
11899
11900         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
11901         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11902         * sysdeps/alpha/fpu/s_floor.c: Likewise.
11903         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11904         * sysdeps/alpha/fpu/s_rint.c: Likewise.
11905         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
11906
11907         * sysdeps/alpha/fpu/s_fmax.S: New file.
11908         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
11909         * sysdeps/alpha/fpu/s_fmin.S: New file.
11910         * sysdeps/alpha/fpu/s_fminf.S: New file.
11911         * sysdeps/alpha/fpu/s_isnan.c: New file.
11912         * sysdeps/alpha/fpu/s_isnanf.c: New file.
11913         * sysdeps/alpha/fpu/s_llrint.c: New file.
11914         * sysdeps/alpha/fpu/s_llrintf.c: New file.
11915         * sysdeps/alpha/fpu/s_lrint.c: New file.
11916         * sysdeps/alpha/fpu/s_lrintf.c: New file.
11917         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
11918         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
11919
11920         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
11921         (__fdimf, fdimf, __fdim, fdim): Remove.
11922         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
11923         (__isnanf, __isnan, __isnanl): New.
11924
11925 2007-03-13  Richard Henderson  <rth@redhat.com>
11926
11927         * sysdeps/ieee754/ldbl-128/Makefile: New file.
11928
11929 2007-03-13  Richard Henderson  <rth@redhat.com>
11930
11931         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
11932         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
11933         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
11934         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
11935         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
11936         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
11937
11938 2007-03-13  Richard Henderson  <rth@redhat.com>
11939
11940         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
11941         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
11942         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
11943         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
11944         Move to dl-auxv.h; initialize instead of extern weak.
11945         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
11946         weak symbol.
11947         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
11948         Extern instead of initialized.
11949
11950 2007-03-13  Richard Henderson  <rth@redhat.com>
11951
11952         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
11953         __sigsuspend_nocancel.
11954
11955 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
11956
11957         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
11958         172.16/12 address range.
11959
11960 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
11961
11962         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
11963         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
11964         message.
11965
11966 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
11967
11968         [BZ #4069]
11969         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
11970         earlier.
11971         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
11972
11973         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
11974         for x qNaN and y either +-inf or non-integer value.
11975         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
11976         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11977         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11978
11979 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
11980
11981         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
11982         from sysdep_headers.
11983
11984 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
11985
11986         * time/tzfile.c (find_transition): Instead of a linear search try to
11987         guess the transition index, use a linear search if the result is at
11988         most 10 transitions away from the guess or binary search otherwise.
11989
11990 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
11991
11992         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
11993         memory reallocation.
11994
11995 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
11996
11997         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
11998         and fix some typos.
11999         Optimize use of TOLOWER.
12000
12001         [BZ #3325]
12002         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
12003         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12004         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12005
12006         [BZ #3458]
12007         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
12008         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
12009
12010         [BZ #4076]
12011         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
12012         (open_dir_stream): Likewise.
12013         * io/Makefile (tests): Add bug-ftw5.
12014         * io/bug-ftw5.c: New file.
12015
12016         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
12017         * nscd/servicescache.c (cache_addserv): Likewise.
12018
12019         * nscd/grpcache.c (cache_addgr): In case a record changed on
12020         refresh, adjust key_copy.
12021
12022         [BZ #4074]
12023         * nscd/pwdcache.c (cache_addpw): In case a record changed on
12024         refresh, adjust key_copy.
12025
12026         [BZ #4070]
12027         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
12028         special cases.
12029         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
12030
12031 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
12032
12033         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
12034         optimization.
12035
12036         * stdio-common/vfscanf.c: Small cleanups throughout.
12037
12038 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
12039
12040         [BZ #3325]
12041         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
12042         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
12043         * sysdeps/i386/fpu/e_fmod.S: Likewise.
12044         Patch by Jared Casper <jaredcasper@gmail.com>.
12045
12046         * sysdeps/unix/closedir.c: Outside libc don't use locking.
12047         * sysdeps/unix/opendir.c: Likewise.
12048         * sysdeps/unix/readdir.c: Likewise.
12049
12050         [BZ #2211]
12051         * stdio-common/vfscanf.c: Handle localized digits etc for floating
12052         point numbers.
12053         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
12054
12055         * stdio-common/vfscanf.c: Fix problems in width accounting.
12056         * stdio-common/tst-sscanf.c (double_tests): New tests.
12057         (main): Hook them up.
12058
12059         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
12060         More simplifications of floating-point reader.
12061
12062         * stdio-common/Makefile (tests): Add tst-swscanf.
12063         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
12064         testing.
12065         * stdio-common/tst-swscanf.c: New file.
12066
12067 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
12068
12069         [BZ #2633]
12070         * libio/stdio.h: Define struct _IO_FILE in global namespace.
12071         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
12072         Remove using for __jmp_buf_tag.
12073         * locale/locale.h (struct lconv): Also define in std namespace.
12074         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
12075
12076         [BZ #3842]
12077         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
12078         using __libc_enable_secure.
12079
12080         [BZ #3818]
12081         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
12082
12083         [BZ #3745]
12084         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
12085         of names for ellipsises.
12086
12087         [BZ #3348]
12088         * malloc/memusage.sh: Cleanups.
12089         * debug/xtrace.sh: Quoting and trap changes.
12090
12091 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
12092
12093         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
12094
12095         * locale/iso-3166.def: Update entry for Serbia.
12096         * locale/iso-4217.def: Define RSD, remove CSD.
12097
12098         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
12099         and 64-bit operations.
12100
12101         [BZ #4040]
12102         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
12103         16-bit operations.
12104
12105         * nscd/nscd.c (parse_opt): One more conversion to use send instead
12106         of writev.
12107
12108 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
12109
12110         [BZ #3991]
12111         * assert/assert.h (assert): Simplify.
12112         (assert_perror): Likewise.
12113         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
12114
12115         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
12116         reqdata.
12117
12118         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
12119         change: don't pass NULL in place of an integer.
12120
12121 2007-02-02  Bruno Haible  <bruno@clisp.org>
12122
12123         [BZ #3954]
12124         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
12125         Add mapping for U+327E.
12126         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
12127         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12128         mapping of 0xD9 0xE8.
12129         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
12130         mapping of U+327E.
12131         Reported by Jungshik Shin <jungshik@google.com>.
12132
12133         [BZ #3955]
12134         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
12135         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
12136         Reported by Jungshik Shin <jungshik@google.com>.
12137
12138 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
12139
12140         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
12141         byte variants.
12142
12143         [BZ #4040]
12144         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
12145         byte variants.  Patch mostly be tom@tommay.net.
12146
12147 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
12148
12149         [BZ #3996]
12150         * posix/glob.c (attribute_hidden): Define if not defined.
12151         (glob): Unescape dirname, filename or username when needed and not
12152         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
12153         is NULL.  Handle unescaped [ in pattern without closing ].
12154         Don't pass GLOB_CHECK down to recursive glob for directories.
12155         (__glob_pattern_type): New function.
12156         (__glob_pattern_p): Implement using __glob_pattern_type.
12157         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
12158         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
12159         Remove unreachable code.
12160         * posix/globtest.sh: Add a couple of new tests.
12161
12162 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
12163
12164         * po/ru.po: Update from translation team.
12165
12166 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
12167
12168         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
12169         to the list of i486+ CPUs.
12170         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12171
12172 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
12173
12174         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
12175         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
12176         references.
12177
12178 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
12179
12180         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
12181
12182         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
12183         * resolv/res_mkquery.c: Define __res_nopt.
12184         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
12185         try adding EDNS0 record.
12186         * resolv/res_send.c (send_dg): If request failed with FORMERR and
12187         EDNS0 record was send make sure we don't try it again.
12188         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
12189         * include/resolv.h: Declare __res_nopt.
12190
12191 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
12192
12193         [BZ #3944]
12194         * time/strptime_l.c (__strptime_internal): Set have_mon for
12195         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
12196         have been computed from tm_yday and tm_year.  Don't crash
12197         in day_of_the_week or day_of_the_year if not have_mon
12198         and tm_mon contains bogus value.
12199         * time/Makefile (tests): Add tst-strptime3.
12200         * time/tst-strptime3.c: New test.
12201
12202 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
12203
12204         [BZ #3957]
12205         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12206         bit for RE_HAT_LISTS_NOT_NEWLINE.
12207         (build_charclass_op): Remove bogus comment.
12208         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
12209         * posix/bug-regex27.c: New test.
12210         * posix/bug-regex28.c: New test.
12211
12212 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
12213
12214         * po/sv.po: Update from translation team.
12215
12216 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
12217
12218         * nscd/nscd_helper.c (open_socket): Minor size optimization.
12219
12220 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
12221
12222         * include/locale.h (__uselocale): Add libc_hidden_proto.
12223         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
12224
12225         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
12226         gettimeofday.
12227
12228 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
12229
12230         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
12231         returning.
12232         (PTR_DEMANGLE): Real definition now that it's not the same as
12233         PRT_MANGLE anymore.
12234         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12235
12236         * string/strerror_l.c: New file.
12237         * string/Makefile (routines): Add strerror_l.
12238         * string/string.h: Declare strerror_l.
12239         * string/Versions: Export strerror_l for GLIBC_2.6.
12240
12241 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
12242
12243         * nscd/nscd_helper.c (open_socket): Now takes request type and key
12244         as parameter.  Construct request record.  Try sending request
12245         before the first poll use, it usually succeeds.  Adjust all
12246         callers.
12247         * nscd/nscd-client.h: Define MAXKEYLEN.
12248         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
12249
12250 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
12251
12252         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
12253         from return value.
12254         * nscd/nscd_helper.c: Include string.h.
12255         (__nscd_cache_search): Remove const qualifier from return value.
12256         On strict alignment architectures check hash entry and data head
12257         alignment.
12258         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
12259         mmapped data during GC cycle contains garbage.  If
12260         __nscd_drop_map_ref fails, decrement mapped->counter when returning
12261         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
12262         dropped to 0.
12263         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
12264         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
12265         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
12266         * nscd/nscd_getai.c (__nscd_getai): Likewise.
12267         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12268
12269 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
12270
12271         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
12272
12273 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
12274
12275         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
12276         names not numbers in cfi_*.
12277
12278 2007-01-26  Andreas Jaeger  <aj@suse.de>
12279
12280         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
12281         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
12282         Correct values of PER_HPUX and PER_OSF4.
12283
12284 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
12285
12286         * elf/dl-minimal.c: Undefine _itoa first.
12287         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
12288         * malloc/mtrace.c: Revert last change.
12289         * posix/wordexp.c: Likewise.
12290
12291 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
12292
12293         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
12294         and __geode__ to the list of i486+ CPUs.
12295         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
12296
12297 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
12298
12299         * stdio-common/_itoa.c: Include <limits.h>.
12300         * stdio-common/_itowa.c: Likewise.
12301
12302 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
12303
12304         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
12305         platforms.
12306         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
12307         64-bit platforms.
12308         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
12309         possible.
12310         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
12311         if possible.
12312
12313         [BZ #3902]
12314         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
12315         * stdio-common/Makefile (tests): Add bug17.
12316         * stdio-common/bug17.c: New file.
12317
12318 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
12319
12320         * iconvdata/brf.c: New file.
12321         * iconvdata/testdata/BRF: New file.
12322         * iconvdata/testdata/BRF..UTF8: New file.
12323         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
12324         * iconvdata/Makefile: Add rules to build BRF.
12325         * iconvdata/TESTS: Add BRF entry.
12326         * iconvdata/gconv-modules: Likewise.
12327         * iconvdata/tst-tables.sh: Likewise.
12328
12329 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
12330
12331         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
12332         type `long long int', not `long int'.
12333         (wcstoq): Likewise.
12334
12335 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
12336
12337         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
12338         of values on 64-bit platforms which are too large.
12339
12340 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
12341             Joe Kerian  <jkerian@us.us.ibm.com>
12342
12343         [BZ #2749]
12344         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
12345         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
12346         (__copysignl): Use signbit() for comparison.
12347         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
12348         SET_LDOUBLE_WORDS64.
12349
12350         [BZ #2423, #2749]
12351         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
12352         (__ceill): Remove calls to fegetround(), fesetround().
12353         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12354         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12355         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12356
12357 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
12358
12359         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
12360
12361         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
12362
12363 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
12364
12365         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
12366         demangle pointer.
12367         * csu/libc-start.c: Likewise.
12368
12369 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
12370
12371         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
12372         really work anyway.
12373
12374 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12375
12376         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
12377         users.
12378         (handle_request): Remove unnecessary tests.
12379
12380         * nscd/cache.c (cache_add): Record the failure to add to the cache.
12381
12382 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
12383
12384         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
12385         workbits in semi-raw fraction.
12386
12387         * math/test-misc.c: Add new tests.
12388
12389 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
12390
12391         * math/basic-test.c: Include test-skeleton.c.
12392         (TEST_TRUNC): Define.
12393         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
12394         (main): Rename to ...
12395         (do_test): ...this.  Run new tests.
12396         (TEST_FUNCTION): Define.
12397
12398 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
12399             Joe Kerian  <jkerian@us.us.ibm.com>
12400
12401         [BZ #2749]
12402         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
12403         handling for high words.
12404         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
12405         and overflow for infinity.
12406
12407 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
12408
12409         * nscd/connections.c (handle_request): Add a __builtin_expect.
12410
12411         * nscd/connections.c (serv2db): Change type into structure which
12412         also says whether this is a request for data.  Renamed to
12413         servinfo.  All users changed.
12414         (handle_request): Much simpler test whether we should search the cache.
12415
12416         * nscd/connections.c (handle_request): Fix thinko in selinux test
12417         invocation.
12418
12419         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
12420         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
12421         it before getting dl_load_lock and then relock.
12422         (_dl_lookup_symbol_x): Pass flags to add_dependency.
12423         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
12424         case we unlocked the scope.
12425         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
12426         _dl_lookup_symbol_x in case we locked the scope.
12427         (_dl_profile_fixup): Likewise.
12428         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
12429         set DL_LOOKUP_SCOPE_LOCK.
12430
12431 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
12432
12433         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
12434         CFLAGS-getsrvbynpt_r.c.
12435         * nscd/getsrvbynm_r.c: New file.
12436         * nscd/getsrvbypt_r.c: New file.
12437         * nscd/nscd_getserv_r.c: New file.
12438         * nscd/servicescache.c: New file.
12439         * nscd/Makefile (routines): Add nscd_getserv_r.
12440         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
12441         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
12442         CFLAGS-getsrvbypt_r.c.
12443         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
12444         table.  Add entries for services database.
12445         * nscd/connections.c (serv2str): Mark as const.  Add entries for
12446         services database.
12447         (dbs): Add .reset_res and servdb initialization.
12448         (serv2db): Add entries for services database.
12449         (verify_persistent_db): Accept dbnr == servdb.
12450         (invalidate_cache): Rewrite database name recognition to use a table.
12451         Call res_init() if .reset_res is set for database.
12452         (handle_request): Add code to handle services database.
12453         * nscd/gai.c: Don't define __getservbyname_r.
12454         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
12455         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
12456         (serv_response_header): Define.
12457         (struct datahead): Add serv_response_header member.
12458         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
12459         using table.
12460         * nscd/nscd.conf: Add entries for services database.
12461         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
12462         Declare serv_iov_disabled.
12463         Declare addservbyname, readdservbyname, addservbyport, and
12464         readdservbyport.
12465         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
12466         (find_db): Fix error message.
12467         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
12468         __nscd_getservbyname_r, and __nscd_getservbyport_r.
12469         * nscd/selinux.c (perms): Add entries for services database.
12470         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
12471         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
12472
12473         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
12474         * nscd/hstcache.c: Likewise.
12475         * nscd/pwdcache.c: Likewise.
12476
12477         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
12478         computation of keylen.
12479
12480         * include/string.h: Only redefine strndupa if this is really for
12481         libc code.
12482
12483 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
12484
12485         * nscd/nscd_gethst_r.c: Minor cleanups.
12486
12487         * nscd/connections.c (handle_request): Check selinux permissions
12488         for all non-admin commands.
12489
12490         * sysdeps/i386/i486/bits/atomic.h: Define
12491         atomic_compare_and_exchange_val_acq,
12492         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
12493         using __sync_* built-ins for gcc >= 4.1.
12494         * sysdeps/x86_64/bits/atomic.h: Likewise.
12495
12496         [BZ #3840]
12497         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
12498         and .oS.d files.
12499
12500 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
12501
12502         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
12503         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
12504         (do_test): Check errno and exit(0) if ENOSYS.
12505
12506 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12507
12508         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
12509         thousands separators.
12510         * stdlib/Makefile: Add rules to build and run tst-strtod4.
12511         * stdlib/tst-strtod4.c: New test.
12512
12513         [BZ #3855]
12514         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
12515         hexadecimal digit should accept just the initial 0.
12516         * stdlib/tst-strtod2.c (tests): New variable.
12517         (do_test): Run several tests rather than just one.
12518
12519 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
12520
12521         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
12522         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
12523
12524 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
12525
12526         * io/fts.c: Make sure fts_cur is always valid after return from
12527         fts_read.
12528         Patch by Miloslav Trmac <mitr@redhat.com>.
12529
12530 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
12531
12532         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
12533         (R_MIPS_NUM): Bump by 1.
12534
12535 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
12536
12537         * posix/execvp.c: Include alloca.h.
12538         (allocate_scripts_argv): Renamed to...
12539         (scripts_argv): ... this.  Don't allocate buffer here nor count
12540         arguments.
12541         (execvp): Use alloca if possible.
12542         * posix/Makefile: Add rules to build and run tst-vfork3 test.
12543         * posix/tst-vfork3.c: New test.
12544
12545 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
12546
12547         * string/Makefile (tst-strxfrm2-ENV): Define.
12548         * stdlib/Makefile (tst-strtod3-ENV): Define.
12549
12550 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
12551
12552         * posix/getconf.c: Update copyright year.
12553         * nss/getent.c: Likewise.
12554         * iconv/iconvconfig.c: Likewise.
12555         * iconv/iconv_prog.c: Likewise.
12556         * elf/ldconfig.c: Likewise.
12557         * catgets/gencat.c: Likewise.
12558         * csu/version.c: Likewise.
12559         * elf/ldd.bash.in: Likewise.
12560         * elf/sprof.c (print_version): Likewise.
12561         * locale/programs/locale.c: Likewise.
12562         * locale/programs/localedef.c: Likewise.
12563         * nscd/nscd.c (print_version): Likewise.
12564         * debug/xtrace.sh: Likewise.
12565         * malloc/memusage.sh: Likewise.
12566         * malloc/mtrace.pl: Likewise.
12567         * debug/catchsegv.sh: Likewise.
12568
12569 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
12570
12571         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
12572         attempts.
12573
12574 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
12575
12576         * posix/wordexp.c: Remove some unnecessary tests.
12577
12578 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
12579
12580         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
12581         blacklist the group till after we look it up.
12582
12583 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
12584
12585         * include/atomic.h (atomic_forced_read): New macro.
12586
12587 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
12588
12589         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
12590
12591 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
12592
12593         * nss/getXXbyYY_r.c: Include atomic.h.
12594         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
12595         add atomic_write_barrier () in between.
12596
12597         * stdlib/Makefile (tests): Add tst-makecontext.
12598         * stdlib/tst-makecontext.c: New test.
12599
12600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12601         (__makecontext): Don't realign uc_mcontext.uc_regs.
12602
12603 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
12604
12605         * elf/dl-support.c: Include dl-procinfo.h.
12606         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
12607         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
12608         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
12609         Define.
12610         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
12611         hardcoded constants.
12612         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
12613         PPC_PLATFORM_* macros for array designators.
12614
12615 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
12616
12617         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
12618         names to the beginning.
12619         (_dl_powerpc_platforms): Add "power6x".
12620         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
12621         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
12622         (_DL_PLATFORMS_COUNT): Increase.
12623         (_dl_string_platform): Handle power6x case.
12624         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
12625         PPC_FEATURE_POWER6_EXT): Define.
12626         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
12627
12628 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
12629
12630         [BZ #3747]
12631         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
12632         [-2^31 .. 2^31) range.
12633         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
12634         targets.
12635         * stdlib/tst-rand48-2.c: New test.
12636         * stdlib/Makefile (tests): Add tst-rand48-2.
12637
12638 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
12639
12640         * misc/tst-pselect.c (do_test): Fix sigblock argument.
12641
12642 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
12643
12644         * misc/tst-pselect.c (do_test): Make sure the helper process is
12645         terminating when the test is aborted.
12646
12647 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
12648
12649         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
12650         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12651         Handle relatime mount option.
12652
12653         [BZ #2337]
12654         * libio/Makefile (tests): Add tst-setvbuf1.
12655         * libio/tst-setvbuf1.c: New file.
12656
12657 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
12658
12659         [BZ #2337]
12660         * libio/genops.c (__uflow): Fix a typo.
12661         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
12662         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
12663         the narrow buffer size.
12664
12665 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
12666
12667         [BZ #2337]
12668         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
12669         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
12670         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
12671         in _flags.
12672         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
12673         _IO_wstr_finish): Likewise.
12674         * libio/wmemstream.c (open_wmemstream): Likewise.
12675         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
12676         even for wide streams.
12677
12678 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
12679
12680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
12681         kernel-features.h.
12682
12683 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
12684
12685         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
12686         separators also if no non-zero digits found.
12687         * stdlib/Makefile (tests): Add tst-strtod3.
12688
12689 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
12690
12691         [BZ #3632]
12692         * include/features.h: Fix comment about default value for
12693         _POSIX_C_SOURCE.
12694
12695         [BZ #3664]
12696         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
12697         empty parsed strings.
12698         * stdlib/Makefile (tests): Add tst-strtod2.
12699         * stdlib/tst-strtod2.c: New file.
12700
12701         [BZ #3673]
12702         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
12703         computation.
12704         * stdlib/Makefile (tests): Add tst-atof2.
12705         * stdlib/tst-atof2.c: New file.
12706
12707         [BZ #3674]
12708         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
12709         correctly if removing trailing zero of hex-float.
12710         * stdlib/Makefile (tests): Add tst-atof1.
12711         * stdlib/tst-atof1.c: New file.
12712
12713 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
12714
12715         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
12716         Start searching for next comma at p rather than rest.
12717         * misc/Makefile (tests): Add tst-mntent2.
12718         * misc/tst-mntent2.c: New test.
12719
12720         * misc/getusershell.c (initshells): Check for integer overflows.
12721         Make strings buffer one bigger as fgets always succeeds when second
12722         argument is 1.  Don't use calloc for shells array.  Disallow
12723         / as shell.
12724
12725 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
12726
12727         * malloc/memusage.c: Handle realloc with new size of zero and
12728         non-NULL pointer correctly.
12729         (me): Really write first record twice.
12730         (struct entry): Make format bi-arch safe.
12731         (dest): Write out more realloc statistics.
12732         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
12733
12734 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
12735
12736         * nis/nis_subr.c (nis_getnames): Revert last change.
12737
12738 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
12739
12740         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
12741         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
12742         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
12743         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
12744         ENOTTY.
12745         * io/Makefile: Add rules to build and run tst-ttyname_r test.
12746         * io/tst-ttyname_r.c: New test.
12747
12748 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12749
12750         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
12751
12752 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
12753
12754         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
12755         jump table entries.
12756
12757 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
12758
12759         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
12760         `clone' function to ensure proper unwinding stop of gdb.
12761         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
12762
12763 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
12764
12765         * nscd/nscd.init: Remove obsolete and commented-out -S option
12766         handling.
12767
12768 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
12769
12770         [BZ #3514]
12771         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
12772
12773         [BZ #3515]
12774         * manual/string.texi (strtok): Remove duplicate paragraph.
12775
12776 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12777
12778         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
12779         libgcc not supporting `rflags' unwinding (register # >= 17).
12780
12781 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
12782
12783         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
12784         succeeded.
12785
12786 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
12787             Jakub Jelinek  <jakub@redhat.com>
12788             Jan Kratochvil  <jan.kratochvil@redhat.com>
12789
12790         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
12791         unwind information.
12792         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
12793         'restore_rt' even in the 'signal' directory.
12794         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
12795
12796 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
12797
12798         [BZ #3559]
12799         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
12800         malloc crashed.  Don't allocate memory unnecessarily in each
12801         loop.
12802
12803 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
12804
12805         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
12806
12807 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
12808
12809         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
12810
12811 2006-11-18  Bruno Haible  <bruno@clisp.org>
12812
12813         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
12814         __sysconf only after having tried to call getgroups32.
12815
12816 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
12817
12818         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
12819         addresses for IPv4 queries if they can be mapped.
12820
12821 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
12822
12823         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
12824         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
12825         (signmask): Add .size directive.
12826         (othermask): Add .type directive.
12827
12828 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
12829
12830         * po/nl.po: Update from translation team.
12831
12832         * timezone/zdump.c: Redo fix for BZ #3137.
12833
12834 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
12835
12836         * nss/nss_files/files-alias.c (get_next_alias): Set line back
12837         to first_unused after parsing :include: file.
12838
12839 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12840
12841         * timezone/africa: Update from tzdata2006o.
12842         * timezone/antarctica: Likewise.
12843         * timezone/asia: Likewise.
12844         * timezone/australasia: Likewise.
12845         * timezone/backward: Likewise.
12846         * timezone/europe: Likewise.
12847         * timezone/iso3166.tab: Likewise.
12848         * timezone/northamerica: Likewise.
12849         * timezone/southamerica: Likewise.
12850         * timezone/zone.tab: Likewise.
12851
12852         * time/tzfile.c (__tzfile_read): Extend to handle new file format
12853         on machines with 64-bit time_t.
12854
12855         * timezone/checktab.awk: Update from tzcode2006o.
12856         * timezone/ialloc.c: Likewise.
12857         * timezone/private.h: Likewise.
12858         * timezone/scheck.c: Likewise.
12859         * timezone/tzfile.h: Likewise.
12860         * timezone/tzselect.ksh: Likewise.
12861         * timezone/zdump.c: Likewise.
12862         * timezone/zic.c: Likewise.
12863
12864         [BZ #3483]
12865         * elf/ldconfig.c (main): Call setlocale and textdomain.
12866         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12867
12868         [BZ #3480]
12869         * manual/argp.texi: Fix typos.
12870         * manual/charset.texi: Likewise.
12871         * manual/errno.texi: Likewise.
12872         * manual/filesys.texi: Likewise.
12873         * manual/lang.texi: Likewise.
12874         * manual/maint.texi: Likewise.
12875         * manual/memory.texi: Likewise.
12876         * manual/message.texi: Likewise.
12877         * manual/resource.texi: Likewise.
12878         * manual/search.texi: Likewise.
12879         * manual/signal.texi: Likewise.
12880         * manual/startup.texi: Likewise.
12881         * manual/stdio.texi: Likewise.
12882         * manual/sysinfo.texi: Likewise.
12883         * manual/syslog.texi: Likewise.
12884         * manual/time.texi: Likewise.
12885         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12886
12887         [BZ #3465]
12888         * sunrpc/clnt_raw.c: Minimal message improvements.
12889         * sunrpc/pm_getmaps.c: Likewise.
12890         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
12891         * nis/nis_print_group_entry.c: Likewise.
12892         * locale/programs/repertoire.c: Likewise.
12893         * locale/programs/charmap.c: Likewise.
12894         * malloc/memusage.sh: Likewise.
12895         * elf/dl-deps.c: Likewise.
12896         * locale/programs/ld-collate.c: Likewise.
12897         * libio/vswprintf.c: Likewise.
12898         * malloc/memusagestat.c: Likewise.
12899         * sunrpc/auth_unix.c: Likewise.
12900         * sunrpc/rpc_main.c: Likewise.
12901         * nscd/cache.c: Likewise.
12902         * locale/programs/repertoire.c: Unify output messages.
12903         * locale/programs/charmap.c: Likewise.
12904         * locale/programs/ld-ctype.c: Likewise.
12905         * locale/programs/ld-monetary.c: Likewise.
12906         * locale/programs/ld-numeric.c: Likewise.
12907         * locale/programs/ld-time.c: Likewise.
12908         * elf/ldconfig.c: Likewise.
12909         * nscd/selinux.c: Likewise.
12910         * elf/cache.c: Likewise.
12911         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
12912
12913         [BZ #3451]
12914         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
12915         change atomic.
12916         (ceil): Likewise.
12917
12918 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12919
12920         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
12921         if N is one bigger than return value.
12922         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
12923         and l1 last arguments, if buf is defined, verify the return value
12924         equals to strlen (buf) and verify no byte beyond passed length
12925         is modified.
12926
12927 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
12928
12929         * po/sv.po: Update from translation team.
12930
12931 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12932
12933         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
12934         noinline attribute.
12935
12936 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
12937
12938         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
12939         noinline attribute.
12940
12941         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
12942         Use __new_sys_siglist instead of _sys_siglist_internal as
12943         second macro argument.
12944         (_old_sys_siglist): Use declare_symbol_alias macro instead of
12945         strong_alias.
12946
12947 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
12948
12949         [BZ #3493]
12950         * posix/unistd.h (sysconf): Remove const attribute.
12951
12952         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
12953         temporary or deprecated addresses.
12954         Patch by Sridhar Samudrala <sri@us.ibm.com>.
12955
12956         * string/Makefile (tests): Add tst-strxfrm2.
12957         * string/tst-strxfrm2.c: New file.
12958
12959 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
12960
12961         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
12962         rather than r->r_brk.
12963
12964 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
12965
12966         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
12967         optimization even if needed > n.
12968
12969         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
12970         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
12971         return false, otherwise return true.
12972         (cache_rpath): Return decompose_rpath return value.
12973
12974 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
12975
12976         * include/libc-symbols.h (declare_symbol): Rename to...
12977         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
12978         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
12979         .size directive.
12980         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
12981         changes.
12982         * sysdeps/gnu/siglist.c: Likewise.
12983
12984 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
12985
12986         * sysdeps/powerpc/fpu/bits/mathinline.h
12987         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
12988         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
12989
12990 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
12991
12992         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
12993         Update handling of cache descriptor 0x49 for new models.
12994         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
12995         Likewise.
12996
12997 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
12998
12999         * malloc/memusage.c (dest): Reset not_me back to false after
13000         printing statistics.
13001
13002 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
13003
13004         * configure.in: Work around ld --help change and avoid -z relro
13005         test completely if the architecture doesn't care about security.
13006
13007 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
13008
13009         * po/sv.po: Update from translation team.
13010
13011 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
13012
13013         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
13014         generate compatibility version.
13015
13016 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
13017
13018         * configure.in: Relax -z relro requirement a bit.
13019
13020         * po/sv.po: Update from translation team.
13021
13022 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
13023
13024         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
13025         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
13026         * elf/dl-close.c (_dl_close_worker): Likewise.
13027         * elf/dl-open.c (_dl_open_worker): Likewise.
13028         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
13029
13030 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
13031
13032         * configure.in: Require assembler support for visibility, compiler
13033         support for visibility and aliases, linker support for various -z
13034         options.
13035         * Makeconfig: Remove conditional code which now is unnecessary.
13036         * config.h.in: Likewise.
13037         * config.make.in: Likewise.
13038         * dlfcn/Makefile: Likewise.
13039         * elf/Makefile: Likewise.
13040         * elf/dl-load.c: Likewise.
13041         * elf/rtld.c: Likewise.
13042         * include/libc-symbols.h: Likewise.
13043         * include/stdio.h: Likewise.
13044         * io/Makefile: Likewise.
13045         * io/fstat.c: Likewise.
13046         * io/fstat64.c: Likewise.
13047         * io/fstatat.c: Likewise.
13048         * io/fstatat64.c: Likewise.
13049         * io/lstat.c: Likewise.
13050         * io/lstat64.c: Likewise.
13051         * io/mknod.c: Likewise.
13052         * io/mknodat.c: Likewise.
13053         * io/stat.c: Likewise.
13054         * io/stat64.c: Likewise.
13055         * libio/stdio.c: Likewise.
13056         * nscd/Makefile: Likewise.
13057         * stdlib/Makefile: Likewise.
13058         * stdlib/atexit.c: Likewise.
13059         * sysdeps/generic/ldsodefs.h: Likewise.
13060         * sysdeps/i386/dl-machine.h: Likewise.
13061         * sysdeps/i386/sysdep.h: Likewise.
13062         * sysdeps/i386/i686/memcmp.S: Likewise.
13063         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13064         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13065         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13066
13067         * Makerules: USE_TLS support is now default.
13068         * tls.make.c: Likewise.
13069         * csu/Versions: Likewise.
13070         * csu/libc-start.c: Likewise.
13071         * csu/libc-tls.c: Likewise.
13072         * csu/version.c: Likewise.
13073         * dlfcn/dlinfo.c: Likewise.
13074         * elf/dl-addr.c: Likewise.
13075         * elf/dl-cache.c: Likewise.
13076         * elf/dl-close.c: Likewise.
13077         * elf/dl-iteratephdr.c: Likewise.
13078         * elf/dl-load.c: Likewise.
13079         * elf/dl-lookup.c: Likewise.
13080         * elf/dl-object.c: Likewise.
13081         * elf/dl-open.c: Likewise.
13082         * elf/dl-reloc.c: Likewise.
13083         * elf/dl-support.c: Likewise.
13084         * elf/dl-sym.c: Likewise.
13085         * elf/dl-sysdep.c: Likewise.
13086         * elf/dl-tls.c: Likewise.
13087         * elf/ldconfig.c: Likewise.
13088         * elf/rtld.c: Likewise.
13089         * elf/tst-tls-dlinfo.c: Likewise.
13090         * elf/tst-tls1.c: Likewise.
13091         * elf/tst-tls10.h: Likewise.
13092         * elf/tst-tls14.c: Likewise.
13093         * elf/tst-tls2.c: Likewise.
13094         * elf/tst-tls3.c: Likewise.
13095         * elf/tst-tls4.c: Likewise.
13096         * elf/tst-tls5.c: Likewise.
13097         * elf/tst-tls6.c: Likewise.
13098         * elf/tst-tls7.c: Likewise.
13099         * elf/tst-tls8.c: Likewise.
13100         * elf/tst-tls9.c: Likewise.
13101         * elf/tst-tlsmod1.c: Likewise.
13102         * elf/tst-tlsmod13.c: Likewise.
13103         * elf/tst-tlsmod13a.c: Likewise.
13104         * elf/tst-tlsmod14a.c: Likewise.
13105         * elf/tst-tlsmod2.c: Likewise.
13106         * elf/tst-tlsmod3.c: Likewise.
13107         * elf/tst-tlsmod4.c: Likewise.
13108         * elf/tst-tlsmod5.c: Likewise.
13109         * elf/tst-tlsmod6.c: Likewise.
13110         * include/errno.h: Likewise.
13111         * include/link.h: Likewise.
13112         * include/tls.h: Likewise.
13113         * locale/global-locale.c: Likewise.
13114         * locale/localeinfo.h: Likewise.
13115         * malloc/arena.c: Likewise.
13116         * malloc/hooks.c: Likewise.
13117         * malloc/malloc.c: Likewise.
13118         * resolv/Versions: Likewise.
13119         * sysdeps/alpha/dl-machine.h: Likewise.
13120         * sysdeps/alpha/libc-tls.c: Likewise.
13121         * sysdeps/generic/ldsodefs.h: Likewise.
13122         * sysdeps/generic/tls.h: Likewise.
13123         * sysdeps/i386/dl-machine.h: Likewise.
13124         * sysdeps/ia64/dl-machine.h: Likewise.
13125         * sysdeps/ia64/libc-tls.c: Likewise.
13126         * sysdeps/mach/hurd/fork.c: Likewise.
13127         * sysdeps/mach/hurd/i386/tls.h: Likewise.
13128         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
13129         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
13130         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
13131         * sysdeps/s390/libc-tls.c: Likewise.
13132         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
13133         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13134         * sysdeps/sh/dl-machine.h: Likewise.
13135         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13136         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13137         * sysdeps/x86_64/dl-machine.h: Likewise.
13138
13139         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
13140         split out locking and parameter checking.
13141         (_dl_close): Call _dl_close_worker after locking and checking.
13142         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
13143         _dl_close.
13144         * elf/Makefile: Add rules to build and run tst-thrlock.
13145         * elf/tst-thrlock.c:  New file.
13146
13147         [BZ #3426]
13148         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
13149         reality.
13150
13151         [BZ #3429]
13152         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
13153         we are sure we do not need it anymore for _dl_close.  Also move
13154         the asserts inside the lock region.
13155         Patch mostly by Suzuki <suzuki@in.ibm.com>.
13156
13157 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
13158
13159         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
13160         argument.
13161         (_dl_lookup_symbol_x): Adjust caller.
13162
13163         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
13164         _ns_global_scope.
13165         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
13166
13167         * elf/dl-libc.c: Revert l_scope name changes.
13168         * elf/dl-load.c: Likewise.
13169         * elf/dl-object.c: Likewise.
13170         * elf/rtld.c: Likewise.
13171         * elf/dl-close.c (_dl_close): Likewise.
13172         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
13173         always use __rtld_mrlock_{change,done}.  Always free old scope list
13174         here if not l_scope_mem.
13175         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
13176         change.  Never free scope list here.  Just __rtld_mrlock_lock before
13177         the lookup and __rtld_mrlock_unlock it after the lookup.
13178         * elf/dl-sym.c: Likewise.
13179         * include/link.h (struct r_scoperec): Remove.
13180         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
13181         with l_scope_mem and l_scoperec_lock with l_scope_lock.
13182
13183 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
13184
13185         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
13186
13187 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13188
13189         * configure.in: Disable building profile libraries by default.
13190
13191 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13192
13193         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
13194         as signed longs, check for x_base + pos overflow.
13195         * sunrpc/Makefile (tests): Add tst-xdrmem2.
13196         * sunrpc/tst-xdrmem2.c: New test.
13197
13198 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13199
13200         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
13201         _dl_lookup_symbol_x code.
13202
13203 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13204
13205         * elf/dl-runtime.c: Include sysdep-cancel.h.
13206         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
13207         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
13208         instead of catomic_* macros.
13209         * elf/dl-sym.c: Include sysdep-cancel.h.
13210         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
13211         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13212         * elf/dl-close.c: Include sysdep-cancel.h.
13213         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
13214         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13215         * elf/dl-open.c: Include sysdep-cancel.h.
13216         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
13217         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
13218
13219 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13220
13221         [BZ #3313]
13222         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
13223         fastbin rather than end of fastbin array.
13224
13225 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
13226
13227         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
13228         body macro.
13229         * sysdeps/x86_64/bits/atomic.h
13230         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
13231         (catomic_decrement): Use correct body macro.
13232
13233 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
13234
13235         * include/atomic.h: Add a unique prefix to all local variables
13236         in macros.
13237         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
13238
13239 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
13240
13241         [BZ #3369]
13242         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
13243         and 7.
13244
13245 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
13246
13247         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
13248
13249 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
13250
13251         [BZ #3313]
13252         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
13253         determine highest fast bin to consolidate, always look into all of
13254         them.
13255         (do_check_malloc_state): Only require for empty bins for large
13256         sizes in main arena.
13257
13258         * libio/stdio.h: Add more __wur attributes.
13259
13260         * elf/dl-minimal.c (realloc): Optimize last patch.
13261
13262 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
13263
13264         [BZ #3352]
13265         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
13266         and use memcpy() if it does.
13267
13268 2006-11-12  Andreas Jaeger  <aj@suse.de>
13269
13270         [BZ #2510]
13271         * manual/search.texi (Hash Search Function): Clarify.
13272         (Array Search Function): Clarify.
13273
13274 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
13275
13276         [BZ #2830]
13277         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
13278         shifting.
13279         * math/atest-exp2.c (read_mpn_hex): Likewise.
13280         * math/atest-sincos.c (main): Likewise.
13281
13282 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13283
13284         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
13285         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
13286         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
13287         version GLIBC_2.6.
13288         * Versions.def: Add GLIBC_2.6 for libc.
13289
13290         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
13291
13292         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
13293
13294 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
13295
13296         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
13297
13298         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
13299
13300         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
13301         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
13302
13303 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
13304
13305         * include/atomic.c: Define catomic_* operations.
13306         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
13307         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
13308         * malloc/memusage.c: Likewise.
13309         * gmon/mcount.c: Likewise.
13310         * elf/dl-close.c: Likewise.
13311         * elf/dl-open.c: Likewise.
13312         * elf/dl-profile.c: Likewise.
13313         * elf/dl-sym.c: Likewise.
13314         * elf/dl-runtime.c: Likewise.
13315         * elf/dl-fptr.c: Likewise.
13316         * resolv/res_libc.c: Likewise.
13317
13318 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
13319
13320         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
13321         components which lack them.
13322
13323         * nis/nis_subr.c (nis_getnames): Make sure that we always return
13324         at least one entry consisting of the parameter concatenated with
13325         the domain.
13326
13327 2006-10-10  Roland McGrath  <roland@frob.com>
13328
13329         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
13330         * sysdeps/mach/hurd/futimes.c: Likewise.
13331         * sysdeps/mach/hurd/lutimes.c: Likewise.
13332
13333 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
13334             Jakub Jelinek  <jakub@redhat.com>
13335
13336         Implement reference counting of scope records.
13337         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
13338         from the list in objects which remain.  Always allocate new scope
13339         record.
13340         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
13341         don't resize, allocate a new one.
13342         * elf/dl-runtime.c: Update reference counters before using a scope
13343         array.
13344         * elf/dl-sym.c: Likewise.
13345         * elf/dl-libc.c: Adjust for l_scope name change.
13346         * elf/dl-load.c: Likewise.
13347         * elf/dl-object.c: Likewise.
13348         * elf/rtld.c: Likewise.
13349         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
13350         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
13351         Add l_scoperec_lock.
13352         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
13353         * sysdeps/generic/rtld-lowlevel.h: New file.
13354
13355         * include/atomic.h: Rename atomic_and to atomic_and_val and
13356         atomic_or to atomic_or_val.  Define new macros atomic_and and
13357         atomic_or which do not return values.
13358         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
13359         Various cleanups.
13360         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13361
13362         * po/sv.po: Update from translation team.
13363
13364 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
13365
13366         * Versions.def: Add GLIBC_2.6 to libpthread.
13367
13368         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
13369         (versioned_symbol): Likewise.
13370         (compat_symbol): Likewise.
13371
13372         * po/tr.po: Update from translation team.
13373
13374 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13375
13376         * nis/Banner: Removed.  It's been integral part forever and the
13377         author info is incomplete anyway.
13378         * libio/Banner: Likewise.
13379
13380         * nis/nis_table.c (nis_list): If __follow_path fails in the new
13381         code, make sure the nis_freeresult call doesn't crash and that the
13382         result is reported correctly.
13383
13384 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
13385
13386         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
13387         when callback is NULL.
13388
13389         * nis/Versions (libnss_nisplus): Add
13390         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
13391         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
13392         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
13393         _nss_create_tablename): Rename to...
13394         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
13395         ... these.  No longer static.
13396         (internal_setgrent): Adjust users.
13397         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
13398         Don't use locking around _nss_grp_create_tablename call.
13399         * nis/nss_nisplus/nisplus-initgroups.c: New file.
13400
13401 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13402
13403         * version.h (VERSION): Bump to 2.5.90 for new development tree.
13404
13405 2006-10-06  Andreas Jaeger  <aj@suse.de>
13406
13407         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
13408
13409 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
13410
13411         * po/pl.po: Update from translation team.
13412
13413         * nscd/nscd.c (main): Fix typo in message.
13414         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
13415
13416 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13417
13418         [BZ #3291]
13419         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
13420         errno.h, signal.h, unistd.h and sysdep-cancel.h.
13421         (__sigprocmask): Define.
13422
13423 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
13424
13425         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
13426         used.
13427
13428 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
13429
13430         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
13431         in oldtotal and newtotal calculation.
13432         * nscd/nscd-client.h (struct mapped_database): Add datasize
13433         field.
13434         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
13435         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
13436         increased.
13437         (__nscd_cache_search): Add checks to make sure we never reference
13438         data beyond the current mapping.
13439
13440 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
13441
13442         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
13443         variables const to avoid compiler warnings.
13444
13445         * io/fts.c (fts_close): Remove redundant checks.
13446         (fts_build): Likewise.
13447         (fts_palloc): Likewise.
13448
13449         * manual/message.texi (Advanced gettext functions,
13450         Using gettextized software): Fix typos.
13451
13452 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
13453
13454         * posix/glob.c (glob_in_dir): Add some comments and asserts to
13455         explain why there are no leaks.
13456
13457 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
13458
13459         * libio/wmemstream.c: Include <wchar.h>.
13460         * libio/bug-wmemstream1.c: Likewise.
13461         * libio/tst-wmemstream1.c: Likewise.
13462         * libio/tst-wmemstream2.c: Likewise.
13463
13464         * version.h (RELEASE): Bump to 2.5.
13465         * README: Regenerated.
13466
13467         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
13468
13469         [BZ #3273]
13470         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
13471         found no group members.
13472         Patch by Petr Baudis.
13473
13474 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
13475
13476         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
13477         assert bootstrap_map.l_tls_modid is zero.
13478         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
13479         if USE___THREAD.
13480
13481 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
13482
13483         * libio/stdio.h: Move open_wmemstream prototype to ...
13484         * wcsmbs/wchar.h: ... here.
13485
13486 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
13487
13488         [BZ #3252]
13489         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
13490         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
13491         __{,l}chown to handle the rest.
13492         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
13493         fchownat syscall and __ASSUME_32BITUIDS case inline, call
13494         __{,l}chown to handle the rest.
13495         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
13496         i386/fchownat.c.
13497         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
13498         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
13499
13500         [BZ #3253]
13501         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
13502         time, rather allocate increasingly bigger arrays of pointers, if
13503         possible with alloca, if too large with malloc.
13504
13505 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
13506
13507         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
13508
13509         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
13510
13511 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
13512
13513         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
13514         home addresses.
13515         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
13516         IFA_F_HOMEADDRESS flag for interfaces.
13517         * include/ifaddrs.h (struct in6addrinfo): Define
13518         in6ai_homeaddress.
13519
13520 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
13521
13522         [BZ #3225]
13523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
13524         PTR_DEMANGLE3): Define.
13525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
13526         PTR_DEMANGLE3): Likewise.
13527         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
13528         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
13529         Likewise.
13530         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
13531
13532 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
13533
13534         * po/libc.pot: Regenerated.
13535         * po/be.po: Updated.
13536         * po/ca.po: Likewise.
13537         * po/cs.po: Likewise.
13538         * po/da.po: Likewise.
13539         * po/de.po: Likewise.
13540         * po/el.po: Likewise.
13541         * po/en_GB.po: Likewise.
13542         * po/es.po: Likewise.
13543         * po/fi.po: Likewise.
13544         * po/fr.po: Likewise.
13545         * po/gl.po: Likewise.
13546         * po/hr.po: Likewise.
13547         * po/hu.po: Likewise.
13548         * po/ja.po: Likewise.
13549         * po/ko.po: Likewise.
13550         * po/nb.po: Likewise.
13551         * po/nl.po: Likewise.
13552         * po/pl.po: Likewise.
13553         * po/pt_BR.po: Likewise.
13554         * po/ru.po: Likewise.
13555         * po/rw.po: Likewise.
13556         * po/sk.po: Likewise.
13557         * po/sv.po: Likewise.
13558         * po/tr.po: Likewise.
13559         * po/zh_CN.po: Likewise.
13560         * po/zh_TW.po: Likewise.
13561
13562         [BZ #3137]
13563         * iconv/iconv_prog.c (main): Fix spelling in error message.
13564         * iconv/iconvconfig.c (main): Likewise.
13565         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
13566         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
13567         * locale/programs/localedef.c (main): Likewise.
13568         * locale/programs/repertoire.c (repertoire_read): Likewise.
13569         * timezone/zdump.c (main): Likewise.
13570         * nscd/connections.c (handle_request): Fix spelling in log message.
13571         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
13572
13573 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
13574
13575         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
13576         interfaces.
13577
13578 2006-09-20  Andreas Jaeger  <aj@suse.de>
13579
13580         * math/libm-test.inc (lrint_test_upward): Fix typo.
13581
13582 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
13583
13584         [BZ #2592]
13585         * math/libm-test.inc (lrint_test_tonearest): New function.
13586         (lrint_test_towardzero): New function.
13587         (lrint_test_downward): New function.
13588         (lrint_test_upward): New function.
13589         (main): Run these new tests.
13590         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
13591         of values near to 0.
13592         (two52): Use double not long double.
13593         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
13594         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
13595         (two23): Use float not double.
13596         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
13597         (two23): Use float not double.
13598         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
13599         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
13600         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
13601         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
13602
13603 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13604
13605         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
13606         Cast sp to unsigned long to avoid compiler warning.
13607         Use __makecontext_ret function instead of a trampoline on the stack.
13608         (__makecontext_ret): New function.
13609         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
13610
13611 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
13612
13613         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
13614         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
13615         bits.
13616
13617 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
13618
13619         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
13620         sure no reference to the unloaded map's search list remains in the
13621         dependency's scope.
13622
13623 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13624
13625         * elf/Makefile: Add rules to build and run unload7 test.
13626         * elf/unload7.c: New test.
13627         * elf/unload7mod1.c: New file.
13628         * elf/unload7mod2.c: New file.
13629
13630 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
13631
13632         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
13633         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
13634         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13635         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
13636         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13637         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
13638         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
13639         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
13640         PTRACE_GETEVENTMSG): Likewise.
13641         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
13642         values.
13643
13644 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
13645
13646         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
13647         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
13648         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
13649         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
13650
13651 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
13652
13653         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
13654         write '\0' to the fd.
13655         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
13656         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
13657         Change regs to unsigned long pointer from unsigned int, fix fscr
13658         offset.
13659
13660 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13661
13662         * io/Makefile (CFLAGS-fstatat.c): Set.
13663         (CFLAGS-fstatat64.c): Likewise.
13664         (CFLAGS-mknodat.c): Likewise.
13665
13666         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
13667         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13668         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
13669         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
13670
13671 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
13672             Steven Munroe  <sjmunroe@us.ibm.com>
13673
13674         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
13675         names to the beginning.  Rename "cell" to "cellbe".
13676         (_dl_powerpc_platforms): New.
13677         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
13678         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
13679         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
13680         (_DL_HWCAP_PLATFORM): Define to new mask.
13681         (_dl_platform_string, _dl_string_platform): New functions.
13682         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
13683         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
13684
13685 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
13686
13687         [BZ #2526]
13688         * README.libm: Fix a thinko in sqrt algorithm description.
13689
13690         [BZ #3143]
13691         * manual/string.texi (argz_delete): Fix prototype.
13692         Patch by <alpt@freaknet.org>.
13693
13694 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
13695
13696         [BZ #3138]
13697         * io/test-lfs.c (do_prepare): Give name_len type size_t.
13698         * io/tst-fcntl.c (do_prepare): Likewise.
13699         * posix/tst-exec.c (do_prepare): Likewise.
13700         * posix/tst-preadwrite.c (do_prepare): Likewise.
13701         * posix/tst-spawn.c (do_prepare): Likewise.
13702         * posix/tst-truncate.c (do_prepare): Likewise.
13703         * rt/tst-aio.c (do_prepare): Likewise.
13704         * rt/tst-aio64.c (do_prepare): Likewise.
13705         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
13706         size_t.
13707
13708 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
13709
13710         [BZ #2821]
13711         * time/mktime.c (guess_time_tm): Fix overflow detection.
13712         * time/Makefile (tests): Add bug-mktime1.
13713         * time/bug-mktime1.c: New file.
13714
13715         [BZ #3189, #3188]
13716         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
13717         (mremap): Likewise.
13718
13719 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
13720
13721         [BZ #1006]
13722         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13723         Ensure relocation doesn't clobber any bits outside of the
13724         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
13725         R_SPARC_HI22 and R_SPARC_H44.
13726
13727         [BZ #2775]
13728         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
13729         (long) (MINSIZE + nb - old_size) is positive.
13730
13731         * malloc/arena.c (grow_heap): When growing bail even if new_size
13732         is negative.
13733
13734         [BZ #3155]
13735         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
13736         stack below r1.
13737
13738 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13739
13740         * posix/regex_internal.c (re_string_reconstruct): Handle
13741         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13742         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13743         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13744         re_string_context_at.
13745         * posix/Makefile: Add rules to build and run bug-regex26 test.
13746         * posix/bug-regex26.c: New test.
13747
13748         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
13749         rather than col_sym_free.  Move seqp declaration earlier.
13750
13751         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
13752
13753 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
13754
13755         * nscd/initgrcache.c (addinitgroupsX): Move any_success
13756         decl before first goto out.
13757
13758 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13759
13760         * Makerules (shlib.lds): If have-hash-style, put .hash section
13761         at the end of the RO segment.
13762
13763 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
13764
13765         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
13766         style hash table format is used.
13767
13768 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
13769
13770         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
13771         randomization rather than before.
13772         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
13773
13774 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
13775
13776         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
13777
13778         * malloc/malloc.c (_int_malloc): Use full list insert and not
13779         shortcut which assumes the list is empty for large requests
13780         too.
13781
13782         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
13783
13784 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
13785
13786         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
13787         and offout arguments to the prototype.
13788         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
13789         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
13790         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
13791         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
13792         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
13793         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
13794         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
13795         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
13796
13797 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
13798
13799         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
13800
13801         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
13802         dlopen parameters.
13803
13804 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
13805
13806         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
13807         only if herrno is NETDB_INTERNAL.  Handle errors other than
13808         ERANGE outside of the loops, handle TRY_AGAIN.
13809
13810         * locale/programs/ld-ctype.c (translit_flatten): Issue error
13811         if other's ctype category was missing.
13812         * locale/programs/ld-collate.c (collate_read): Return if
13813         copy_locale's collate category is missing.
13814
13815 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
13816
13817         [BZ #2684]
13818         * malloc/malloc.c (public_rEALLOc): Try harder by using other
13819         arenas if allocation failed.
13820         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
13821
13822 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
13823
13824         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
13825         waste bins[0..1].
13826         (malloc_state): Reduce bins size by 2.
13827         (_int_malloc): Fix test for large enough buffer for early termination.
13828         When no unsorted block matches perfectly and an exiting block has
13829         to be split, use full list insert and not shortcut which assumes
13830         the list is empty.
13831
13832         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
13833         failure.
13834
13835 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13836
13837         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
13838         do anything.
13839
13840         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
13841         symbol require exact match (these are PLTs).
13842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
13843         (_dl_ppc64_addr_sym_match): Likewise.
13844
13845         [BZ #2683]
13846         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
13847         If symbol has a value use it.
13848         * elf/tst-dladdr1.c: New file.
13849         * elf/Makefile: Add rules to build and run tst-addr1.
13850
13851 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
13852
13853         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
13854         keeps failing and heap growth or new heap creation isn't
13855         successful either.
13856         * malloc/tst-malloc.c (main): Add new tests.
13857
13858 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
13859
13860         [BZ #2734]
13861         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
13862         as in the x86-64 code to use bswap.
13863
13864 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
13865
13866         [BZ #2680]
13867         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
13868         __USE_UNIX98.
13869         * posix/bits/unistd.h: Likewise.
13870
13871 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
13872
13873         [BZ #2751]
13874         * string/strchr.c: Add cast to avoid warning.
13875
13876 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13877
13878         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
13879         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
13880         limit is needed to avoid the exploding of the address space
13881         requirement for secondary heaps.
13882         * malloc/arena.c (HEAP_MAX_SIZE): Define using
13883         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
13884
13885 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
13886
13887         [BZ #3018]
13888         * Makerules (depfiles): Handle extra-test-objs the same as
13889         extra-objs.
13890         (common-mostlyclean): Likewise.
13891         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
13892         instead.
13893         * elf/Makefile (extra-objs): Likewise.
13894         * stdlib/Makefile (extra-objs): Likewise.
13895
13896 2006-08-14  Eric Blake  <ebb9@byu.net>
13897
13898         [BZ #3044]
13899         * misc/error.h: Assume C89 or better.
13900         * misc/error.c: Likewise.
13901
13902 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
13903
13904         [BZ #3040]
13905         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
13906         __ASSUME_ATFCTS is defined.
13907
13908 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
13909
13910         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
13911         to sort in each call.
13912
13913         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
13914         is empty simply return and use next service.
13915         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
13916
13917         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
13918         tells us when not finding a charmap file is an error.
13919         * locale/programs/charmap.h: Adjust charmap_read prototype.
13920         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
13921         cannot find a charmap.
13922         * locale/programs/localedef.c (main): Adjust charmap_read call.
13923
13924 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
13925
13926         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
13927         sysdeps/posix/pause.c implementation instead.
13928
13929 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
13930
13931         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
13932         to EPERM.
13933
13934 2006-08-13  Andreas Schwab  <schwab@suse.de>
13935
13936         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
13937         Don't clobber caller's LRSAVE.
13938         (_dl_prof_resolve): Likewise.
13939
13940 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
13941
13942         [BZ #1996]
13943         * libio/memstream.c (open_memstream): Allocate initial buffer with
13944         calloc.
13945         * libio/wmemstream.c (open_wmemstream): Likewise.
13946         * libio/strops.c: Pretty printing.
13947         (_IO_str_overflow): Clear uninitialized part of the new buffer.
13948         (enlarge_userbuf): New function.
13949         (_IO_str_seekoff): Call it if seek position is larger than current
13950         buffer.
13951         * libio/wstrops.c: Likewise.
13952         * libio/vasprintf.c: Add comment as to why we do not have to use
13953         calloc instead of malloc to allocate initial buffer.
13954         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
13955         * libio/bug-memstream1.c: New file.
13956         * libio/bug-wmemstream1.c: New file.
13957
13958 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13959
13960         * libio/wstrops.c: Remove dead macro definitions and comments.
13961         * libio/strops.c: Likewise.
13962
13963         [BZ #2764]
13964         * login/utmpname.c (__utmpname): Remove unnecessary test.
13965
13966 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
13967
13968         [BZ #2832]
13969         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
13970         0s from integers.
13971
13972 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
13973
13974         [BZ #2987]
13975         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
13976         for CPU clocks.
13977         * sysdeps/unix/clock_settime.c: Add support for platform-specific
13978         setting of CPU clocks.
13979
13980 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13981
13982         [BZ #2841]
13983         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
13984         since C99 requires the result to promote to 'int' when uint_least8_t
13985         and uint_least16_t promote to 'int'.
13986
13987 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13988
13989         [BZ #3013]
13990         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
13991         lenght of one output field, correct bitmask creation.
13992         * locale/programs/ld-time.c: Add alignment.
13993
13994         [BZ #2997]
13995         * misc/error.c: Add space between program name and message if file
13996         name is missing.
13997
13998 2006-08-03  Eric Blake  <ebb9@byu.net>
13999
14000         [BZ #2998]
14001         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
14002
14003 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
14004
14005         * malloc/memusagestat.c: Silence warnings.
14006
14007         * malloc/malloc.c: Dynamically size mmap treshold if the program
14008         frees mmaped blocks.
14009         Patch by Valerie Henson and Arjan van de Ven.
14010
14011 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
14012
14013         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
14014         __USE_GNU.
14015
14016         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
14017         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
14018         (DEF): Don't put the var into .gnu.linkonce.r.* section.
14019         Only provide var definitions in strtol_l (or for *ull*
14020         in strtoll_l).
14021
14022         * stdio-common/bug16.c (tests): New array.
14023         (do_tests): Allow the first hexadecimal digit
14024         to be 1, 2, 4 or 8.  Do 3 additional tests.
14025
14026         * sysdeps/s390/fpu/libm-test-ulps: Update.
14027
14028         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
14029         fchownat syscall if available.
14030         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
14031         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
14032         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
14033
14034 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
14035
14036         * nis/nis_xdr.c: Avoid some function calls.
14037
14038 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
14039             Ulrich Drepper  <drepper@redhat.com>
14040
14041         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
14042         short cut if only one name component is stripped away.
14043
14044 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
14045
14046         * nis/nis_call.c: Minor cleanups throughout.
14047         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
14048         (first_shoot): Add search_parent_first parameter.  Only if it is set
14049         search parent server first.
14050         If directory for table found through cold start cache is not the same
14051         as referenced in the cache, don't use it.
14052         (__nisfind_server): Take additional parameter.  Pass it on to
14053         first_shoot.
14054         (__prepare_niscall): Adjust __nisfind_server call.
14055         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
14056         * nis/nis_table.c: Adjust __nisfind_server call.
14057         * nis/nis_lookup.c: Likewise.
14058         (nis_lookup): Don't loop endlessly if name is reduced to ".".
14059
14060 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
14061
14062         [BZ #2182]
14063         * math/s_cacosh.c: Return values from positive branch.
14064         * math/s_cacoshf.c: Likewise.
14065         * math/s_cacoshl.c: Likewise.
14066
14067         [BZ #2883]
14068         * sysvipc/sys/msg.h: Change return value to ssize_t.
14069         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
14070         * sysvipc/msgrcv.c: Likewise.
14071         * include/sys/msg.h: Likewise.
14072
14073         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
14074         test introduced in patch for bz #661.
14075         (getgrouplist): Simplify code a bit.  Don't allocate one additional
14076         element for NEWGROUPS.
14077
14078         [BZ #2908]
14079         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
14080         'f', use '1' as leading digit not '\1'.
14081         * stdio-common/Makefile (tests): Add bug16.
14082         * stdio-common/bug16.c: New file.
14083
14084         [BZ #2914]
14085         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
14086         and don't try to open it.  The patch introducing the macro
14087         contained a bug and used the same file name as the new file
14088         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
14089         this out completely.
14090
14091         [BZ #2926]
14092         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
14093         Patch by Jerry James <Jerry.James@usu.edu>.
14094
14095         * rt/Makefile (tests): Add tst-clock2.
14096         * rt/tst-clock2.c: New file.
14097
14098         [BZ #2978]
14099         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
14100         function and its parameters and pass it to new thread.
14101         (__gai_notify): Add support for alternative waiting for completion.
14102         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
14103         waiting for completion.
14104         * resolv/getaddrinfo_a.c: Likewise.
14105         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
14106         waiting for completion is used.
14107         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
14108         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
14109         * resolv/gai_error.c: Likewise.
14110         * resolv/gai_sigqueue.c: Likewise.
14111
14112 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
14113
14114         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
14115         errno to EBADF and return MACH_PORT_NULL.
14116
14117 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
14118
14119         [BZ #2980]
14120         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
14121
14122 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
14123
14124         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
14125         walk them instead of the symbol table.
14126
14127 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
14128
14129         [BZ #2098]
14130         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
14131         status of NSS calls, not the number of returned entries.
14132
14133         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
14134         request_key, keyctl.
14135
14136 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14137
14138         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
14139
14140 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
14141
14142         * elf/tst-auditmod1.c: Fix typo in #error.
14143
14144 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14145
14146         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
14147
14148         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
14149
14150 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
14151
14152         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
14153         that the directory is empty even on non-POSIX filesystems.
14154
14155 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
14156
14157         * elf/dl-open.c (dl_open_worker): Add branch prediction.
14158
14159         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
14160         the backend NSS module.  If backend setgrent call failed, don't have
14161         internal_setgrent fail.  Just remember this until it is needed.
14162         * nis/nss_compat/compat-pwd.c: Likewise.
14163         * nis/nss_compat/compat-spwd.c: Likewise.
14164
14165 2006-07-30  Roland McGrath  <roland@redhat.com>
14166
14167         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
14168         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
14169         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
14170         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
14171
14172         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
14173         (nanosleep_not_cancel): New macro.
14174         (sigsuspend_not_cancel): new macro.
14175         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
14176         (do_sigsuspend): Define as inline.
14177         (__sigsuspend): Always use do_sigsuspend.
14178         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
14179         * include/signal.h: Declare __sigsuspend_nocancel.
14180         * sysdeps/posix/pause.c
14181         [! NO_CANCELLATION] (__pause_nocancel): New function.
14182
14183         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
14184         * include/time.h (__nanosleep_nocancel): Likewise.
14185
14186 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
14187
14188         * locale/programs/localedef.c (add_to_readlist): Rename local
14189         variables to avoid confusion.
14190
14191         * locale/programs/charmap.c (charmap_read): Emit error message if
14192         charmap couldn't be found or read.
14193
14194 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
14195
14196         * sysdeps/unix/sysv/linux/kernel-features.h: Define
14197         __ASSUME_FUTEX_LOCK_PI.
14198         * include/time.h: Declare __nanosleep_nocancel.
14199         * include/unistd.h: Declare __pause_nocancel.
14200
14201         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
14202         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
14203         get the __stack_chk_fail_local definition when it's needed.
14204
14205 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
14206
14207         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
14208         * dlfcn/bug-atexit3.c: New file.
14209         * dlfcn/bug-atexit3-lib.cc: New file.
14210
14211         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
14212         used when the namespace is not the base namespace.
14213
14214 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
14215
14216         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
14217         (__new_exitfn): Bump it in every successful call.
14218         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
14219         more exit handlers, call them right away.
14220         * stdlib/exit.h: Declare __new_exitfn_called.
14221
14222 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
14223
14224         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
14225         calling registered handler.
14226
14227         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
14228         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14229         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14230         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14231         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14232         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14233         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14234         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14235
14236 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
14237
14238         * elf/dl-lookup.c (dl_new_hash): New functions.
14239         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
14240         value here.  Compute new-style hash value.  Pass new hash value
14241         and reference to variable with the old value to do_lookup_x.
14242         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
14243         old-style hash table.
14244         (_dl_debug_bindings): Pass new hash value and reference to variable
14245         with the old value to do_lookup_x.
14246         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
14247         new-style hash value and change old-style hash value parameter to
14248         be a reference.  Reoganize functions to determine whether
14249         new-style hash table is available.  Only fall back on old-style
14250         table.  If old-style hash value is needed, compute it here.
14251         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
14252         entry.
14253         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
14254         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
14255         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
14256         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
14257         * Makeconfig: If linker supports --hash-style option add it to all
14258         linker command lines to build DSOs.
14259         * config.make.in: Define have-hash-style.
14260         * configure.in: Test whether linker supports --hash-style option.
14261
14262         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
14263         * sysdeps/generic/ldsodefs.h: Adjust prototype.
14264
14265 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
14266
14267         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
14268         auditing.
14269
14270         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
14271         RPATH of main map twice.
14272
14273 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
14274
14275         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
14276         look further, return original strings.
14277         (_nl_find_msg): Do not return found translation if the conversion
14278         failed.  Either signal the string is unusable or that something went
14279         wrong and the original should be used.
14280
14281 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
14282
14283         * string/_strerror.c (__strerror_r): Add __builtin_expect.
14284
14285 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
14286
14287         [BZ #2766]
14288         * misc/insremque.c (insque): Handle prev == NULL.
14289         * misc/Makefile (tests): Add tst-insremque.
14290         * misc/tst-insremque.c: New test.
14291
14292 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
14293
14294         [BZ #2792]
14295         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
14296         conflict with DL_DST_REQUIRED.
14297
14298 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
14299
14300         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
14301         match what Solaris does.
14302
14303 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
14304
14305         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
14306         local_setegid instead of seteuid and setegid.
14307         * sysdeps/generic/local-setxid.h: New file.
14308         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
14309
14310         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
14311
14312         * string/Makefile (tests): Add bug-envz1.
14313         * string/bug-envz1.c: New file.
14314
14315 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
14316
14317         * posix/regex_internal.c (re_string_skip_chars): If no character has
14318         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
14319         to the byte which couldn't be converted.
14320         (re_string_reconstruct): Don't clear valid_raw_len before calling
14321         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
14322         tip_context using re_string_context_at.
14323         * posix/Makefile: Add rules to build and run bug-regex25 test.
14324         * posix/bug-regex25.c: New test.
14325
14326 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
14327
14328         [BZ #2703]
14329         * string/envz.c (envz_strip): Correct erroneously reversed src
14330         and dest parameters to memmove() invocation.
14331
14332 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
14333
14334         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
14335         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
14336         to make sure the database has been already invalidated.
14337         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
14338         after the cache has been invalidated.  Use pthread_mutex_lock rather
14339         than pthread_mutex_trylock if fd != -1.
14340         * nscd/connections.c (invalidate_cache): Add fd argument, write
14341         response to fd if not calling prune_cache, pass fd to prune_cache.
14342         (handle_request): Adjust invalidate_cache caller.
14343         (nscd_run): Pass -1 as fd to prune_cache.
14344
14345 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
14346
14347         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
14348         the correct place.
14349
14350 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
14351
14352         * nscd/nscd.h (struct database_dyn): Add prunelock field.
14353         * nscd/cache.c (prune_cache): Take prunelock before starting the
14354         work.  Just return in case it is already taken.
14355         * nscd/connections.c (dbs): Initialize .prunelock.
14356
14357 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
14358
14359         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
14360         copying.  No need to allocate new array for group members.  Just
14361         move the pointers and update the size.
14362
14363         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
14364         Avoid memory leak in case realloc fails.  Simplification for
14365         better code generation.
14366
14367         Avoid deprecation warning because of libc_hidden_proto for
14368         inet6_option_alloc.
14369         * inet/inet6_option.c (option_alloc): Renamed from
14370         inet6_option_alloc.  Made static.
14371         (inet6_option_alloc): Now a simple wrapper around option_alloc.
14372         (inet6_option_append): Call option_alloc.
14373         * include/netinet/in.h: Remove libc_hidden_proto for
14374         inet6_option_alloc.
14375
14376         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
14377         for cleanup when cb!=NULL [Coverity CID 233].
14378
14379 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
14380
14381         [BZ #2693]
14382         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
14383         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
14384         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
14385         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
14386         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
14387         and inet6_rth_getaddr.
14388         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
14389         array.
14390         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
14391         Mark inet6_option_* interfaces as deprecated.
14392         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
14393         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
14394         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
14395         inet6_rth_segments, and inet6_rth_getaddr.
14396         * inet/inet6_opt.c: New file.
14397         * inet/inet6_rth.c: New file.
14398
14399         * inet/netinet/icmp6.h: Pretty printing.
14400
14401         [BZ #2683]
14402         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
14403
14404 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
14405
14406         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
14407         doing it all here.  When server does not know the answer do not
14408         fail immediate, try parent first.
14409
14410         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
14411         overflow test.
14412
14413 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
14414
14415         * nis/nis_call.c (__prepare_niscall): New function.  Split out
14416         from __do_niscall.
14417         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
14418         and exported.
14419         (__follow_path): New function.  Split out from nis_list.
14420         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
14421         _xdr_nis_result.
14422         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
14423         _xdr_nis_result.
14424         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
14425         and __follow_path.
14426         * nis/Versions: Export __prepare_niscall, __create_ib_request,
14427         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
14428         from libnsl for version GLIBC_PRIVATE.
14429         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
14430         Remove entry parameter from _nss_nisplus_parse_pwent and
14431         _nss_nisplus_parse_grent.
14432         * nis/nss_nisplus/nisplus-parser.c: Likewise.
14433         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
14434         again.  Rewrite getpwent handling to not use nis_first_entry and
14435         nis_next_entry.  Roll out own niscall handling.
14436         * nis/nss_nisplus/nisplus-grp.c: Likewise.
14437
14438         * sunrpc/xdr_rec.c: Fix typo in comment.
14439
14440 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
14441
14442         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
14443         handling.
14444
14445         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
14446         to allocate memory for my_pollfd.  Better initialization of
14447         cb_is_running.  Use TEMP_FAILURE_RETRY.
14448
14449         * malloc/memusage.sh (memusageso): Add quotes.
14450         (memusagestat): Likewise.
14451         * debug/xtrace.sh (pcprofileso): Likewise.
14452         (pcprofiledump): Likewise.
14453         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
14454         replacement.
14455         * malloc/Makefile ($(objpfx)memusage): Likewise.
14456
14457         * nis/nis_callback.c (__nis_create_callback): Calls to
14458         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
14459         asprintf call fails.
14460
14461         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
14462         no uninitialized memory is passed to sendto.
14463
14464 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14465
14466         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
14467         of snprintf+strdup.  Handle OOM.
14468         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
14469         cb->serv together.  Remove now obsolete free calls.
14470         (__nis_destroy_callback): Remove now obsolete free call.
14471
14472 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
14473
14474         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
14475         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
14476         and ULA respectively). Set precedence for IPv4 address to 10 as
14477         defined in RFC3484 for preferring IPv6.
14478         * posix/gai.conf: Update to match the new default tables.
14479
14480 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
14481
14482         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
14483         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
14484         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
14485         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
14486
14487         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
14488         Removed.
14489         (init_nss_interface): Remove initialization of these variables.
14490
14491 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14492
14493         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
14494         nis_free_directory forward to avoid duplication.
14495
14496 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
14497
14498         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
14499         rec_dirsearch returning NULL.
14500         (first_shoot): Handle __nis_finddirectory returning NULL.
14501         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
14502
14503         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
14504         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
14505
14506 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
14507
14508         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
14509         pid changed.
14510
14511 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
14512
14513         * include/rpc/pmap_prot.h: Mark all functions as hidden.
14514
14515         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
14516         * nscd/nscd_getgr_r.c: Likewise.
14517
14518         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
14519
14520         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
14521         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
14522
14523         * stdlib/longlong.h (__clz_tab): Mark as hidden.
14524
14525         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
14526
14527         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
14528
14529         * include/rpc/auth.h: Mark xdr_des_block_internal and
14530         xdr_opaque_auth_internal as hidden.
14531
14532         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
14533         hidden.
14534
14535         * include/rpc/xdr.h: Mark all _internal functions as hidden.
14536
14537         * misc/getusershell.c (okshells): Don't use static initializers,
14538         do it dynamically.
14539
14540         * stdlib/fmtmsg.c (keywords): Change type of len element to
14541         uint32_t to not waste space on 64bit machines.
14542
14543         * locale/setlocale.c: Change _nl_category_names into a string.
14544         Add new _nl_category_name_idxs.  Change all users.
14545         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
14546         Declare _nl_category_name_idxs.
14547         * locale/findlocale.c: Adjust for _nl_category_names change.
14548         * locale/loadlocale.c: Likewise.
14549         * locale/newlocale.c: Likewise.
14550         * intl/dcigettext.c: Likewise.
14551
14552         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
14553         (add_alias2): ...here.  New function.
14554         (__gconv_read_conf): Simplify builtin alias handling.
14555         (builtin_aliases): Convert to string to avoid relocations.
14556         * iconv/gconv_builtin.h: Add comment about correct formatting.
14557
14558 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
14559
14560         * resolv/res_debug.c (loc_ntoa): Make error const.
14561
14562 2006-05-14  Andreas Schwab  <schwab@suse.de>
14563
14564         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
14565
14566 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
14567
14568         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
14569         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
14570         sizeof (cpu_set_t).
14571
14572 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
14573
14574         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
14575
14576         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
14577
14578         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
14579         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
14580
14581         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
14582         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
14583
14584         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
14585         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
14586         xdr_cback_data.
14587
14588         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
14589         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14590         xdr_ypupdate_args.
14591
14592         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
14593         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
14594
14595         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
14596         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
14597
14598         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
14599         * include/rpcsvc/nis_callback.h: New file.
14600
14601         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
14602         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
14603
14604         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14605         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14606
14607         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
14608         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
14609
14610         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
14611         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
14612
14613         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
14614         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
14615         xdr_ypdelete_args.
14616
14617         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
14618         __BEGIN_DECLS and __END_DECLS, the header is not installed.
14619
14620         * nis/nis_error.c: Remove table of strings.  Use position
14621         independent mechanism.
14622         * nis/nis_error.h: New file.
14623
14624 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
14625
14626         * locale/programs/ld-time.c (time_finish): If wide era name or
14627         format aren't provided, set both wname and wformat to L"".
14628
14629 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14630
14631         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
14632         results if the call was succesful.
14633
14634         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
14635
14636         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
14637         as hidden.
14638
14639 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
14640
14641         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
14642
14643 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
14644
14645         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
14646         caller makes sure this is not the case.
14647         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
14648
14649 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
14650
14651         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
14652         calls.
14653
14654         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
14655         [Coverity CID 229, 230]
14656
14657         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
14658         DGETTEXT calls.
14659         (hol_help): Likewise.  [Coverity CID 226, 227]
14660
14661         * string/argz-replace.c (__argz_replace): Unconditionally call
14662         free on SRC.  [Coverity CID 225]
14663
14664         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
14665         the return value of __nis_default_owner and __nis_default_group,
14666         it has been especially allocated.  [Coverity CID 224]
14667
14668         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
14669         searchgroup and searchowner.  Significantly simplified.
14670         (__nis_default_owner): Remove duplication.  Do not locally copy the
14671         string before duplicating it.
14672         (__nis_default_group): Likewise.
14673
14674         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
14675         we must clear the variable before calling __nisfind_server.
14676
14677         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
14678         nis_getnames.  [Coverity CID 223]
14679
14680         * locale/programs/locfile.c (locfile_read): Use alloca instead of
14681         xmalloc to allocate local repertoire name.  [Coverity CID 222]
14682
14683         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
14684         allocate memory for the input to add_bytes.  [Coverity CID 221]
14685
14686         * posix/wordexp.c (w_addword): Free word if realloc fails and it
14687         was allocated here.  [Coverity CID 219, 220]
14688
14689         * posix/getconf.c (print_all): Free confstr data after printing.
14690         [Coverity CID 218]
14691
14692         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
14693         list allocation fails.  [Coverity CID 215]
14694
14695         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
14696         [Coverity CID 213]
14697
14698         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
14699         string is NULL.  [Coverity CID 212]
14700         * argp/Makefile: Add rules to build and run bug-argp1.
14701         * argp/bug-argp1.c: New file.
14702
14703         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
14704         end of string.
14705         * stdlib/canonicalize.c (__realpath): Likewise.
14706
14707         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
14708         pointer.  [Coverity CID 206]
14709
14710         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
14711         in statically linked code.
14712         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
14713         statically built code, be prepared to have no link map.
14714         [Coverity CID 205]
14715
14716         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
14717         dgettext calls. [Coverity CID 204]
14718
14719         * argp/argp-help.c (struct uparams): Remove valid member.  Change
14720         the one user.
14721         (uparam_names): Reduce size.  Avoid relative relocations.
14722         Moved to read-only segment.
14723         (fill_in_uparams): Update for new layout.
14724
14725         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
14726         assumed to always be != NULL. [Coverity CID 202]
14727
14728         * argp/argp-help.c (hol_entry_help): Remove some dead code
14729         [Coverity CID 200].
14730
14731         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
14732         away a few more unconditional yperr2nss calls.
14733         (_nss_nis_getservbyname_r): Likewise.
14734
14735 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
14736
14737         * sysdeps/generic/ldsodefs.h: Remove support for non-core
14738         architectures.
14739
14740         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
14741         that unused memory passed to sendto is nevertheless initialized.
14742
14743         [BZ #2499]
14744         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
14745         possibly unaligned memory accesses.
14746
14747         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
14748         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
14749         and __putlong respectively.  Correct buffer overflow check for
14750         NS_NOTIFY_OP.
14751
14752         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
14753
14754         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
14755         (send_dg): Rewrite error handling to be more compact and avoid
14756         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
14757
14758         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
14759
14760         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
14761         instead of ns_get16.
14762         (res_queriesmatch): Likewise.  Minor optimization.
14763
14764         [BZ #2499]
14765         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
14766         __libc_res_nsend might reallocate the buffer for the answer.  In
14767         this case we have to reload the HP pointer.
14768
14769 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14770
14771         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
14772         some branch prediction hints.
14773
14774         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
14775         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14776         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14777         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14778         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14779         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14780         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
14781         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14782
14783 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
14784
14785         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
14786         by a GOT relocation to make Scrt1.o position independent.
14787         * sysdeps/s390/s390-64/elf/start.S: Likewise.
14788
14789         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
14790         six system call parameters.
14791         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
14792
14793 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14794
14795         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
14796         malloc&bzero.
14797
14798         * sunrpc/svc_udp.c (BZERO): Remove definition.
14799         (CALLOC): Define.
14800         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
14801
14802         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
14803         (des_SPtrans): Use uint32_t type.
14804         (des_skb): Likewise.
14805
14806         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
14807
14808 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
14809
14810         [BZ #2509]
14811         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
14812         on 32-bit arches.
14813
14814 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
14815
14816         * locale/programs/ld-address.c (address_finish): Fix one more
14817         place where the iso639 array might be accessed beyond the limits.
14818
14819 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
14820
14821         * nis/nis_table.c (nis_list): Avoid clearing res twice before
14822         filling it for the first time.
14823
14824         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
14825         Adjust all callers.
14826         Free res object content before returning.
14827
14828         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
14829
14830         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
14831         client->cl_auth.
14832
14833         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
14834         cleanup for initial thread, just the free call on TVP.
14835
14836         * nscd/gai.c (__getline): Define.
14837
14838
14839 See ChangeLog.16 for earlier changes.