Fix whitespaces.
[platform/upstream/glibc.git] / ChangeLog
1 2009-10-21  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4         strend-sse4.
5         * sysdeps/x86_64/multiarch/strchr.S: New file.
6         * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
7         * sysdeps/x86_64/multiarch/strrchr.S: New file.
8
9 2009-10-21  Andreas Schwab  <schwab@redhat.com>
10
11         * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
12
13 2009-10-19  Andreas Schwab  <schwab@redhat.com>
14
15         * include/math.h: Add hidden protos for __exp/__expf/__expl.
16         * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
17         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
18         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
19         * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
20         * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
21         * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
22         __ieee751_expl to handle overflow.
23
24 2009-10-14  David S. Miller  <davem@davemloft.net>
25
26         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
27         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
28
29 2009-10-13  Andreas Schwab  <schwab@redhat.com>
30
31         * csu/elf-init.c (__libc_csu_init): Run preinit array even if
32         !USE_MULTIARCH.
33
34 2009-10-08  Ulrich Drepper  <drepper@redhat.com>
35
36         [BZ #10730]
37         * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
38         Patch in part by Steve Ward <planet36@gmail.com>.
39
40         [BZ #10731]
41         * stdlib/rand_r.c: Fix typo.
42
43         * po/cs.po: Update from translation team.
44
45 2009-10-06  Andreas Schwab  <schwab@redhat.com>
46
47         * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
48         returning if RTLD_NOLOAD.
49
50 2009-10-06  Roland McGrath  <roland@redhat.com>
51
52         * sysdeps/x86_64/multiarch/strstr-c.c
53         [! SHARED]: Omit libc_hidden_builtin_def fiddling.
54
55         * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
56         libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
57
58         * sysdeps/x86_64/multiarch/init-arch.h
59         [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
60         (HAS_CPU_FEATURE): New macro.
61         (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
62         * sysdeps/x86_64/multiarch/init-arch.c
63         (__get_cpu_features): #undef it before definition.
64
65 2009-10-05  Andreas Schwab  <schwab@redhat.com>
66
67         * locale/C-time.c: Revert week-1stday back to 19971130 and set
68         first_weekday to 1 and first_workday to 2.
69
70 2009-10-01  Ulrich Drepper  <drepper@redhat.com>
71
72         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
73         F_GETOWN_EX.
74         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
75         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
76         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
77         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
78         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
79         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
80
81 2009-09-28  Andreas Schwab  <schwab@redhat.com>
82
83         * stdio-common/printf_fp.c: Check for and avoid integer overflows.
84         * stdio-common/vfprintf.c: Likewise.
85
86 2009-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
87
88         * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
89         (mkdirat): Call __directory_name_split_at instead of
90         __directory_name_split.
91
92 2009-09-28  Ulrich Drepper  <drepper@redhat.com>
93
94         * locale/programs/locale-spec.c (locale_special): If nothing matches
95         fail with an appropriate message.
96
97 2009-09-10  H.J. Lu  <hongjiu.lu@intel.com>
98
99         * configure.in: Exclude binutils 2.X.  Support binutils 2.100
100         and XX.
101
102 2009-09-25  Andreas Schwab  <schwab@redhat.com>
103
104         * elf/dl-reloc.c (RESOLVE_MAP): Always pass
105         DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
106
107 2009-09-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
108
109         * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
110
111 2009-09-20  Andreas Schwab  <schwab@linux-m68k.org>
112
113         * iconvdata/iso646.c (gconv_init): Correctly initialize the
114         character size elements in step data.
115
116 2009-09-20  Ulrich Drepper  <drepper@redhat.com>
117
118         * po/hu.po: Update from translation team.
119         * po/vi.po: Likewise.
120
121 2009-09-19  Roland McGrath  <roland@redhat.com>
122
123         * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
124
125 2009-09-15  Roland McGrath  <roland@redhat.com>
126
127         * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
128         * nptl/sysdeps/pthread/configure: Regenerated.
129         * nptl/sysdeps/x86_64/configure: Regenerated.
130         * sysdeps/unix/sysv/linux/configure: Regenerated.
131         * sysdeps/x86_64/elf/configure: Regenerated.
132
133         * Makefile (autoconf-it): Set execute bit only on top-level configure.
134
135         * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
136         the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
137         * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
138         * configure: Regenerated.
139
140 2009-09-09  Ulrich Drepper  <drepper@redhat.com>
141
142         * posix/getconf.c (main): Handle -- on command line.
143
144 2009-09-05  H.J. Lu  <hongjiu.lu@intel.com>
145
146         * configure.in: Support binutils 2.100 and 3.0.
147
148 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
149
150         * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
151         * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
152         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
153         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
154
155 2009-09-07  Ulrich Drepper  <drepper@redhat.com>
156
157         * locale/programs/ld-collate.c (struct locale_collate_t): Add
158         unnamed_section_defined field.
159         (collate_read): Test and set unnamed_section_defined.
160
161         * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
162         _POSIX2_LINE_MAX.
163
164 2009-09-04  H.J. Lu  <hongjiu.lu@intel.com>
165
166         * configure.in: Support binutils 2.20.
167
168 2009-09-03  Ulrich Drepper  <drepper@redhat.com>
169
170         * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
171         __strstr_ia32): Add attribute_hidden.
172
173 2009-09-01  Andreas Schwab  <schwab@redhat.com>
174
175         * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
176         parsing of group entry.
177
178 2009-09-02  Andreas Schwab  <schwab@redhat.com>
179
180         * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
181         external buffer.  Always discard readahead in internal buffer.
182         * libio/Makefile (tests): Add bug-wsetpos.
183         * libio/bug-wsetpos.c: New file.
184
185 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
186
187         * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
188         Add attribute_hidden.
189         * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
190         __strcasestr_sse2): Likewise.
191         * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
192         (__fma_fma): Make static.
193         * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
194         (__fmaf_fma): Make static.
195
196 2009-08-31  Andreas Schwab  <schwab@redhat.com>
197
198         * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
199         reformulate in-buffer optimisation check to match code in
200         _IO_new_file_seekoff.
201
202 2009-08-31  Joshua W. Boyer  <jwboyer@linux.vnet.ibm.com>
203
204         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
205         to srwi in 32-bit memcpy for power6.
206
207 2009-09-01  Andreas Schwab  <schwab@redhat.com>
208
209         * include/stdio.h: Declare hidden proto for fflush.
210         * libio/iofflush.c: Add hidden weak alias for fflush.
211
212 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
213
214         * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
215         (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
216
217 2009-08-31  Andreas Schwab  <schwab@redhat.com>
218
219         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
220
221 2009-08-31  Ulrich Drepper  <drepper@redhat.com>
222
223         [BZ #10560]
224         * malloc/malloc.c: Add local assert definition to avoid problems with
225         memory allocation in the real one.
226
227 2009-08-27  H.J. Lu  <hongjiu.lu@intel.com>
228
229         * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
230         Removed.
231         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
232         turn off SSSE3 on Atom.
233
234 2009-08-28  Ulrich Drepper  <drepper@redhat.com>
235
236         * stdlib/tst-strtol.c (tests): More tests.
237         * stdlib/tst-strtoll.c (tests): Likewise.
238
239 2009-08-26  Ulrich Drepper  <drepper@redhat.com>
240
241         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
242
243         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
244
245 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
246
247         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
248         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
249
250         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
251
252         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
253
254         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
255
256 2009-08-25  Joseph Myers  <joseph@codesourcery.com>
257
258         * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
259
260 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
261
262         * sysdeps/x86_64/fpu/s_scalbln.c: New file.
263         * sysdeps/x86_64/fpu/s_scalbn.c: New file.
264
265         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
266
267         * sysdeps/x86_64/fpu/s_signbit.S: New file.
268         * sysdeps/x86_64/fpu/s_signbitf.S: New file.
269
270         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
271         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
272
273         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
274         leftover YMM_SIZE definition.
275
276 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
277
278         * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
279         union.
280         (EXTRACT_WORDS64, INSERT_WORDS64): Define.
281         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
282         Redefine.
283         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
284
285         * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
286         and SET_FLOAT_WORD definitions.
287
288 2009-08-24  Roland McGrath  <roland@redhat.com>
289
290         * sysdeps/unix/syscall-template.S: New file.
291         * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
292         * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
293         (compile-syscall): Pass mkdep and -g options as normal.
294         (s-proto.d, s-proto-cancel.d): Don't "-include" these.
295         (common-generated): Don't add them here.
296
297 2009-08-24  Ulrich Drepper  <drepper@redhat.com>
298
299         * math/s_fdim.c: In case of overflows set errno.
300         * math/s_fdimf.c: Likewise.
301         * math/s_fdiml.c: Likewise.
302
303         * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
304         * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
305         are using the inline optimizations.
306
307         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
308         (__signbitf): Likewise.
309
310 2009-08-23  Ulrich Drepper  <drepper@redhat.com>
311
312         * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
313         terminated.
314         * posix/Makefile (tests): Add bug-regex29.
315         * posix/bug-regex29.c: New file.
316
317         * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
318         older POSIX versions are selected.
319
320         * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
321         as well.
322         * stdio-common/printf_fphex.c: Likewise.
323         * stdio-common/tstdiomisc.c: Add more tests.
324
325         * locale/locale.h: Include xlocale.h and the thread-local locale
326         declarations for XPG7, not XPG6.
327
328 2009-08-21  Andreas Schwab  <schwab@redhat.com>
329
330         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
331         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
334         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
335         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
336
337 2009-08-20  Roland McGrath  <roland@redhat.com>
338
339         * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
340         Use l_addr instead of l_map_start (dli_fbase).
341         Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
342         address when there is no proximate symbol.
343         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
344         Likewise.
345
346 2009-08-16  Ulrich Drepper  <drepper@redhat.com>
347
348         * scripts/gen-as-const.awk: Fix test for 64-bit platform.
349
350 2009-08-14  Ulrich Drepper  <drepper@redhat.com>
351
352         * test-skeleton.c (signal_handler): Renamed from timeout_handler.
353         Also handle SIGINT.  In that case only do the cleanup and then
354         re-raise the signal.
355         (main): Install handler for SIGINT.
356
357 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
358
359         * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
360         clobber list.
361
362 2009-08-01  H.J. Lu  <hongjiu.lu@intel.com>
363
364         * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
365         tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
366         tst-auditmod7b.c.
367         (tests): Add tst-audit6 tst-audit7.
368         (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
369         tst-auditmod7a tst-auditmod7b.
370         ($(objpfx)tst-audit6): New.
371         ($(objpfx)tst-audit6.out): Likewise.
372         ($(objpfx)tst-audit7): Likewise.
373         ($(objpfx)tst-audit7.out): Likewise.
374         (tst-audit6-ENV): Likewise.
375         (tst-audit7-ENV): Likewise.
376         (CFLAGS-tst-auditmod6b.c): Likewise.
377         (CFLAGS-tst-auditmod6c.c): Likewise.
378         (CFLAGS-tst-auditmod7b.c): Likewise.
379         * elf/tst-audit6.c: New file.
380         * elf/tst-audit7.c: New file.
381         * elf/tst-auditmod6a.c: New file.
382         * elf/tst-auditmod6b.c: New file.
383         * elf/tst-auditmod6c.c: New file.
384         * elf/tst-auditmod7a.c: New file.
385         * elf/tst-auditmod7b.c: New file.
386         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
387         saving and restoring SSE/AVX registers to ...
388         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
389
390 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
391
392         * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
393         only if SHARED is defined.
394         * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
395
396 2009-08-03  Jim Meyering  <meyering@redhat.com>
397
398         * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
399
400 2009-08-08  Ulrich Drepper  <drepper@redhat.com>
401
402         * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
403         section as the other functions for this architecture.
404         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
405
406 2009-08-07  Ulrich Drepper  <drepper@redhat.com>
407
408         * sysdeps/x86_64/strcmp.S: Add support to compile with
409         USE_SSSE3.  In this case palignr is used.
410         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
411         available but SSSE3 is, pick __str{,n}cmp_ssse3.
412         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
413         Add strcmp-ssse3 and strncmp-ssse3.
414         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
415         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
416
417         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
418         warning through fake initialization.
419
420 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
421
422         * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
423
424 2009-08-07  Andreas Schwab  <schwab@redhat.com>
425
426         * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
427         unique symbols.
428
429 2009-08-05  H.J. Lu  <hongjiu.lu@intel.com>
430
431         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
432         EBX from EAX = 1.  Handle EAX = 11.
433
434 2009-08-07  Andreas Schwab  <schwab@redhat.com>
435
436         * Makefile (TAGS): Use separate sed -e expressions to avoid \
437         inside ''.
438
439 2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
440
441         * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
442         hidden IFUNC functions.
443         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
444
445         * sysdeps/i386/i686/multiarch/strlen.S: New file.
446
447         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
448         (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
449         strcasestr-c.
450         (CFLAGS-strcspn-c.c): Define.
451         (CFLAGS-strpbrk-c.c): Define.
452         (CFLAGS-strspn-c.c): Define.
453         (CFLAGS-strstr.c): Define.
454         (CFLAGS-strcasestr.c): Define.
455         * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
456         * sysdeps/i386/i686/multiarch/strcspn.S: New file.
457         * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
458         * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
459         * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
460         * sysdeps/i386/i686/multiarch/strspn.S: New file.
461         * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
462         * sysdeps/i386/i686/multiarch/strstr.c: New file.
463         * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
464         * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
465         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
466         -16L instead of 0xfffffffffffffff0L.
467         * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
468
469 2009-08-02  Ulrich Drepper  <drepper@redhat.com>
470
471         * sysdeps/i386/configure.in: Add test for <cpuid.h>.
472
473 2009-07-31  Ulrich Drepper  <drepper@redhat.com>
474
475         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
476         another rewrite.  Much smaller and faster.
477         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
478
479         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
480         ss_flags from the correct location.
481
482 2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>
483
484         * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
485         * sysdeps/i386/i686/cacheinfo.c: New file.
486         * sysdeps/i386/i686/multiarch/Makefile: New file.
487         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
488         * sysdeps/i386/i686/multiarch/init-arch.c: New file.
489         * sysdeps/i386/i686/multiarch/init-arch.h: New file.
490         * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
491         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
492         * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
493         (__cpuid_count): New. Provide the default.
494         (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
495         (__x86_64_preferred_memory_instruction): Define only if
496         DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
497         (intel_check_word): Use __cpuid.
498         (handle_intel): Likewise.
499         (handle_amd): Likewise.
500         (__cache_sysconf): Likewise.
501         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
502         (__cache_sysconf): Likewise.
503         (init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.
504         * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
505         (get_common_indeces): Use __cpuid.
506         (__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
507         if ENABLE_SSSE3_ON_ATOM is not defined.
508         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
509         * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
510         popcnt instead of popcntq.
511
512 2009-07-31  Jakub Jelinek  <jakub@redhat.com>
513
514         * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
515
516 2009-07-30  Ulrich Drepper  <drepper@redhat.com>
517
518         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
519         * sysdeps/i386/____longjmp_chk.S: Remove all code.  This is now a file
520         which always causes a compile error.
521
522         * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
523
524         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file.  Content
525         comes from...
526         * sysdeps/x86_64/____longjmp_chk.S: ...here.  This is now a file
527         which always causes a compile error.
528
529         * debug/Makefile (tests): Add tst-longjmp_chk2.
530         * debug/tst-longjmp_chk2.c: New file.
531
532         * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling.  Fix CFI.
533         Remove incorrect use of BP_SYM.
534         * sysdeps/x86_64/____longjmp_chk.S: Rewrite.  Complete implementation
535         here now since it is more complex than just a simple check.
536
537         * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
538         we make no more progress.
539
540 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
541
542         * math/s_fma.c: Don't define alias if __fma is a macro.
543         * math/s_fmaf.c: Likewise.
544         * sysdeps/x86_64/multiarch/s_fma.c: New file.
545         * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
546         Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
547
548         * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
549         (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
550         New macro HAS_FMA.
551         * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
552         function.
553         * include/libc-symbols.h (libm_ifunc): Define.
554         * sysdeps/x86_64/multiarch/Versions: New file.
555
556         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
557
558 2009-07-28  H.J. Lu  <hongjiu.lu@intel.com>
559
560         * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
561
562 2009-07-29  Ulrich Drepper  <drepper@redhat.com>
563
564         * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
565         call that registers used in calling conventions need to be preserved.
566         * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
567         to preserve register content if necessary.
568         * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
569         (_dl_x86_64_restore_sse): New function.
570         * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
571         is allowed to modify xmm/ymm registers.
572
573         * stdio-common/scanf15.c: Undefine _LIBC.  We want to test from an
574         application's perspective.
575         * stdio-common/scanf17.c: Likewise.
576
577 2009-07-28  Ulrich Drepper  <drepper@redhat.com>
578
579         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
580         size to memsz.
581         (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
582         here.
583         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
584         two steps to catch bugs.
585
586 2009-07-27  Ulrich Drepper  <drepper@redhat.com>
587
588         * sysdeps/x86_64/tst-xmmymm.sh: Refine testing.  The script now
589         determines which files are used in runtime lookups and only checks
590         those for SSE use.
591         * sysdeps/x86_64/rtld-memchr.c: Removed.  Not needed with refined
592         testing.
593         * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
594         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
595         * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
596         take a while.
597
598         * elf/dl-open.c: Move _dl_scope_free to...
599         * elf/dl-scope.c: ...here.  New file.
600         * elf/Makefile (dl-routines): Add scope.
601
602         * resolv/resolv.h (RES_USE_DNSSEC): Define.
603         * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
604         RES_USE_DNSSEC.
605         * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
606         * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
607         all the places we handled RES_USE_EDNS0 only before.
608         Patch by Adam Tkac <atkac@redhat.com>.
609
610 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
611
612         * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
613         3/4 full.  Pass size + 1 rather than size to _dl_higher_prime_number.
614         Update size when reallocating.
615
616 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
617
618         * sysdeps/x86_64/tst-xmmymm.sh: New file.  Check whether any of the
619         functions used in ld.so modify xmm/ymm registers.
620         * sysdeps/x86_64/Makefile:  Hook new test up.
621         * sysdeps/x86_64/rtld-memchr.c: New file.
622         * sysdeps/x86_64/rtld-memcmp.c: New file.
623         * sysdeps/x86_64/rtld-rawmemchr.c: New file.
624         * sysdeps/x86_64/rtld-strchr.S: New file.
625         * sysdeps/x86_64/rtld-strlen.S: New file.
626         * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
627         * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
628
629 2009-07-26  H.J. Lu  <hongjiu.lu@intel.com>
630
631         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
632         strncmp-c.
633         * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
634         (exit): Likewise.
635         (Byte1): Likewise.
636         (Byte2): Likewise.
637         (Byte3): Likewise.
638         (Byte4): Likewise.
639         (Byte5): Likewise.
640         (Byte6): Likewise.
641         (next_8_bytes): Likewise.
642         (Byte0): Remove commented out codes.
643         (unaligned_table): Align jump table at 8 bytes.
644         Add _sse4_2 to all labels.  Always include "../strcmp.S".
645         * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
646         * sysdeps/x86_64/strcmp.S: Add SSE2 support.
647         * sysdeps/x86_64/strncmp.S: New file.
648
649 2009-07-26  Ulrich Drepper  <drepper@redhat.com>
650
651         [BZ #10422]
652         * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
653         kernels, dropped when eventfd2 support was added.
654         * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
655         kernels, dropped when signalfd4 support was added.
656         * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
657         added, name them.
658
659         [BZ #10452]
660         * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
661         replies up.
662
663         * elf/elf.h: Define NT_GNU_GOLD_VERSION.
664
665 2009-07-25  Ulrich Drepper  <drepper@redhat.com>
666
667         * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
668         modern processor versions.  Patch by H.J. Lu <hongjiu.lu@intel.com>.
669
670         [BZ #10448]
671         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
672         callback we must touch the status to avoid using stale value.
673
674         * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
675         compiled in.
676
677 2009-07-24  Ulrich Drepper  <drepper@redhat.com>
678
679         * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
680         /lib/modules/* headers anymore.  We have sane headers in the standard
681         place now.
682
683 2009-06-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
684
685         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
686         "etf3enh" and "highgprs" added.
687         (_dl_s390_platforms): "z10" added.
688         * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
689         Increased for the new entries.
690         (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
691         HWCAP_S390_HIGH_GPRS added.
692
693         * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
694         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
695         * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
696         * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
697         * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
698
699 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
700
701         * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
702         avoid additional cpuid instructions.  Most of the information is
703         stored somewhere.
704
705         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
706         cache descriptors.
707         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
708
709         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
710         SSSE3 bit for Atoms.
711         * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
712         here anymore.
713
714         * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
715         structure before copying it to avoid warning.
716         * posix/tst-rfc3484-2.c (do_test): Likewise.
717         * posix/tst-rfc3484-3.c (do_test): Likewise.
718
719         [BZ #10416]
720         * include/unistd.h: Make header file suitable for C++ test cases.
721         Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
722
723         * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
724         stack alignment in the exit code.
725
726         * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
727         potentially be zero.
728
729         * elf/tst-unique1.c: Extend test to check for unloading DSO with
730         unique symbol definition.
731         Patch by Jakub Jelinek.
732         * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
733         make sure the object with the definition cannot be unloaded.  Adjust
734         a few types.
735         * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
736         the unique symbol hash table should not be const.
737
738 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
739
740         * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
741         unnecesary variables.  Comment fixes.
742
743 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
744
745         * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
746         Use NONASCII_CASE information provided by the locale to determine
747         whether optimized string load function can be used.  Minor cleanups.
748
749 2009-07-20  H.J. Lu  <hongjiu.lu@intel.com>
750
751         * string/strcasestr.c (STRCASESTR): New macro.
752         (__strcasestr): Renamed to ..
753         (STRCASESTR): ...this.
754         * string/strstr.c (STRSTR): New macro.
755         (strstr): Renamed to ..
756         (STRSTR): ...this.
757         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
758         strstr-c strcasestr-c
759         (CFLAGS-strstr.c): New.
760         (CFLAGS-strcasestr.c): Likewise.
761         * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
762         * sysdeps/x86_64/multiarch/strcasestr.c: New file.
763         * sysdeps/x86_64/multiarch/strstr-c.c: New file.
764         * sysdeps/x86_64/multiarch/strstr.c: New file.
765
766 2009-07-20  Ulrich Drepper  <drepper@redhat.com>
767
768         * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
769         * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
770         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
771         _NL_CTYPE_NONASCII_CASE.
772         * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
773         field.
774         (ctype_finish): Check whether there are any 8-bit characters outside
775         the range ASCII has or whether the mapping isn't the same as for
776         ASCII (±0x20).  Set nonascii_case appropriately.
777         (ctype_output): Add output handler for nonascii_case.
778
779 2009-07-17  Ulrich Drepper  <drepper@redhat.com>
780
781         * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
782         CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
783
784 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
785
786         [BZ #10360]
787         * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
788         0xffff in the EDNS0 record.
789
790 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
791
792         * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
793         instead of atomic_compare_and_exchange_bool_acq to ensure pointer
794         is written before the list head update.
795         Patch by Andreas Schwab <aschwab@redhat.com>.
796
797 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
798             Jakub Jelinek  <jakub@redhat.com>
799
800         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
801         corruption thread-safe.
802
803 2009-07-13  Jakub Jelinek  <jakub@redhat.com>
804
805         * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
806         overrides atomic_compare_and_exchange_val_rel, define to
807         atomic_compare_and_exchange_val_rel by default, otherwise default
808         to catomic_compare_and_exchange_val_acq.
809         (catomic_compare_and_exchange_bool_rel): If arch overrides
810         atomic_compare_and_exchange_bool_rel, define to
811         atomic_compare_and_exchange_bool_rel by default.
812         * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
813         Use catomic_compare_and_exchange_val_rel instead of
814         catomic_compare_and_exchange_val_acq.
815
816 2009-07-16  Ulrich Drepper  <drepper@redhat.com>
817
818         * sysdeps/generic/ldsodefs.h: Add prototype for
819         _dl_higher_prime_number.
820         * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
821
822         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
823         restoring of ymm registers a bit.
824
825 2009-07-15  H.J. Lu  <hongjiu.lu@intel.com>
826
827         * sysdeps/x86_64/memcmp.S: New file.
828
829 2009-07-15  Ulrich Drepper  <drepper@redhat.com>
830
831         * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
832         * sysdeps/x86-64/dl-trampoline.S: ...here.  Rewrite to avoid function
833         pointers in writable memory.
834
835 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
836
837         * config.h.in: Add HAVE_AVX_SUPPORT entry.
838         * config.make.in: Add config-cflags-avx entry.
839         * configure.in: Substitute libc_cv_cc_avx.
840         * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
841         * elf/tst-audit4.c: New file.
842         * elf/tst-audit5.c: New file.
843         * elf/tst-auditmod4a.c: New file.
844         * elf/tst-auditmod4b.c: New file.
845         * elf/tst-auditmod5a.c: New file.
846         * elf/tst-auditmod5b.c: New file.
847         * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
848         link-defines.sym.
849         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
850         (La_x86_64_vector): Likewise.
851         (La_x86_64_regs): Append lr_vector.
852         (La_x86_64_retval): Append lr_vector0/lrv_vector1.
853         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
854         saving and restoring SSE registers to ...
855         * sysdeps/x86_64/dl-trampoline.h: This.  New file.
856         * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
857         <link-defines.h>.
858         (_dl_runtime_profile): Use LR_SIZE to allocate space for
859         La_x86_64_regs.  Allocate extra space and jump to memory at
860         save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
861         (save_and_restore_vector_sse): New.
862         (save_and_restore_vector_avx): Likewise.
863         (check_avx): Likewise.
864         (save_and_restore_vector): Likewise.
865         * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
866         HAVE_AVX_SUPPORT.
867         * sysdeps/x86_64/link-defines.sym: New file.
868
869 2009-07-10  Ulrich Drepper  <drepper@redhat.com>
870
871         * elf/do-lookup.h: Removed after folding content into...
872         * elf/dl-lookup.c: ...here.
873
874         * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
875
876 2009-07-09  Ulrich Drepper  <drepper@redhat.com>
877
878         * configure.in: Check for gnu_unique_symbol symbol type.
879         * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
880         * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
881         the undefined symbol.  Handle STB_GNU_UNIQUE binding of found symbol.
882         * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
883         change.
884         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
885         unique symbol table.
886         * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
887         for first namespace.
888         * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
889         unique symbol hash table.
890         * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
891         * elf/tst-unique1.c: New file.
892         * elf/tst-unique1mod1.c: New file.
893         * elf/tst-unique1mod2.c: New file.
894         * elf/tst-unique2.c: New file.
895         * elf/tst-unique2mod1.c: New file.
896         * elf/tst-unique2mod2.c: New file.
897
898 2009-07-07  Ulrich Drepper  <drepper@redhat.com>
899
900         * elf/elf.h (STB_GNU_UNIQUE): Define.
901
902         * elf/dl-misc.c (_dl_higher_prime_number): New function.  Moved here
903         from...
904         * include/inline-hashtab.h: ...here.
905         (htab_expand): Adjust for renamed function.  Correct memory handling.
906
907 2009-07-06  Ulrich Drepper  <drepper@redhat.com>
908
909         * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
910
911 2009-07-03  Andreas Schwab  <aschwab@redhat.com>
912
913         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
914         (PPC_FEATURE_HAS_VSX): Likewise.
915
916 2009-07-03  Ulrich Drepper  <drepper@redhat.com>
917
918         * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
919         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
920
921         * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
922         aligned to 16 byte boundaries.
923         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
924         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
925         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
926
927 2009-07-02  H.J. Lu  <hongjiu.lu@intel.com>
928
929         * config.h.in (HAVE_SSE4_SUPPORT): New macro.
930         * config.make.in (config-cflags-sse4): New variable.
931         * configure.in: Substitute libc_cv_cc_sse4.
932         * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
933         HAVE_SSE4_SUPPORT.
934         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
935         strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
936         * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
937         * sysdeps/x86_64/multiarch/strcspn.S: New file.
938         * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
939         * sysdeps/x86_64/multiarch/strpbrk.S: New file.
940         * sysdeps/x86_64/multiarch/strspn-c.c: New file.
941         * sysdeps/x86_64/multiarch/strspn.S: New file.
942
943 2009-06-30  H.J. Lu  <hongjiu.lu@intel.com>
944
945         * elf/Makefile (distribute): Remove tst-audit.sh.  Add
946         tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
947         (tests): Add tst-audit3 for x86_64.
948         (modules-names): Add tst-auditmod3a, tst-auditmod3b.
949         ($(objpfx)tst-audit3): Define.
950         ($(objpfx)tst-audit3.out): Define.
951         (tst-audit3-ENV): Define.
952         * elf/tst-audit3.c: New file.
953         * elf/tst-auditmod3a.c: New file.
954         * elf/tst-auditmod3b.c: New file.
955         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
956         and restore xmm6.
957
958         * string/stpncpy.c (STPNCPY): New.  Defined if not defined.
959         (__stpncpy): Renamed to ...
960         (STPNCPY): This.
961         (stpncpy): Create alias only if STPNCPY is not defined.
962         * string/strncpy.c (STRNCPY): New.  Defined to strncpy if not
963         defined.
964         (strncpy): Renamed to ...
965         (STRNCPY): This.
966         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
967          stpncpy-c strncpy-c for string.
968         * sysdeps/x86_64/multiarch/stpcpy.S: New file.
969         * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
970         * sysdeps/x86_64/multiarch/stpncpy.S: New file.
971         * sysdeps/x86_64/multiarch/strcpy.S: New file.
972         * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
973         * sysdeps/x86_64/multiarch/strncpy.S: New file.
974
975 2009-07-02  Ulrich Drepper  <drepper@redhat.com>
976
977         * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
978         adding to fast bin list.
979
980 2009-07-01  Ulrich Drepper  <drepper@redhat.com>
981
982         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
983         inet_makeaddr.  This worked only with class-based networks.
984         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
985         Likewise.
986
987         * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
988         recognize all types.
989         * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
990         to getnetbyaddr.  Fix network parameter to getnetbyaddr.  It must
991         be in host byte order.
992
993 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
994
995         * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
996         (MODEL_OFFSET): Define.
997         * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
998         family and model.
999         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1000         out common code into new function get_common_indeces. Determine
1001         extended family and model for Intel processors.
1002
1003 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
1004
1005         * resolv/resolv.h: Define RES_SNGLKUPREOP.
1006         * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1007         option.
1008         * resolv/res_send.c (reopen): New function.  Broken out of...
1009         (send_dg): ... here.  Recognize RES_SNGLKUPREOP.  Implement second
1010         fallback mechanism.  If single-request fails switch to
1011         single-request-reopen mode which opens a new socket for the second
1012         request.
1013
1014 2009-06-25  Andreas Schwab  <aschwab@redhat.com>
1015
1016         * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1017         (CHECK_SP): Use it.
1018
1019 2009-06-24  Andreas Schwab  <aschwab@redhat.com>
1020
1021         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1022         for saved registers.
1023         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1024         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1025         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1026
1027 2009-06-23  Andreas Schwab  <aschwab@redhat.com>
1028
1029         * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1030
1031 2009-06-22  Ulrich Drepper  <drepper@redhat.com>
1032
1033         * po/id.po: Update from translation team.
1034
1035         * po/bg.po: Update from translation team.
1036
1037 2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>
1038
1039         * string/strncmp.c (STRNCMP): New.  Defined to strncmp if not
1040         defined.
1041         (strncmp): Renamed to STRNCMP.
1042         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1043         strncmp-c for string.
1044         * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1045         * sysdeps/x86_64/multiarch/strcmp.S: New file.
1046         * sysdeps/x86_64/multiarch/strncmp.S: New file.
1047         * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1048
1049 2009-06-19  H.J. Lu  <hongjiu.lu@intel.com>
1050
1051         * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1052         ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1053         ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1054         ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1055         ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1056         ifuncmain7static.c.
1057         (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1058         ifuncmain7static, and ifuncmain7picstatic.
1059         (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1060         $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1061         $(objpfx)ifuncmain7pie.out.
1062         (modules-names): Add ifuncmod5 ifuncmod6
1063         (ifuncmod5.so-no-z-defs): Define.
1064         (ifuncmod6.so-no-z-defs): Define.
1065         (CFLAGS-ifuncmain5pic.c): Define.
1066         (CFLAGS-ifuncmain5picstatic.c): Define.
1067         (CFLAGS-ifuncmain5staticpic.c): Define.
1068         (CFLAGS-ifuncdep5pic.c): Define.
1069         (CFLAGS-ifuncmain7pic.c): Define.
1070         (CFLAGS-ifuncmain7picstatic.c): Define.
1071         (CFLAGS-ifuncmain1staticpie.c): Define.
1072         (CFLAGS-ifuncmain5pie.c): Define.
1073         (CFLAGS-ifuncmain6pie.c): Define.
1074         (CFLAGS-ifuncmain7pie.c): Define.
1075         ($(objpfx)ifuncmain1staticpie.out): Define.
1076         ($(objpfx)ifuncmain1staticpie): Define.
1077         ($(objpfx)ifuncmain5pie.out): Define.
1078         ($(objpfx)ifuncmain5pie): Define.
1079         ($(objpfx)ifuncmain6pie.out): Define.
1080         ($(objpfx)ifuncmain6pie): Define.
1081         ($(objpfx)ifuncmain5): Define.
1082         ($(objpfx)ifuncmain5pic): Define.
1083         ($(objpfx)ifuncmain5static): Define.
1084         ($(objpfx)ifuncmain5staticpic): Define.
1085         ($(objpfx)ifuncmain5picstatic): Define.
1086         (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1087         ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1088         ifuncmain6pie.out.
1089         * elf/b/elf/ifuncmain1staticpie.c: New file.
1090         * elf/ifuncdep5.c: New file.
1091         * elf/ifuncdep5pic.c: New file.
1092         * elf/ifuncmain5.c: New file.
1093         * elf/ifuncmain5pic.c: New file.
1094         * elf/ifuncmain5picstatic.c: New file.
1095         * elf/ifuncmain5pie.c: New file.
1096         * elf/ifuncmain5static.c: New file.
1097         * elf/ifuncmain5staticpic.c: New file.
1098         * elf/ifuncmain6pie.c: New file.
1099         * elf/ifuncmain7.c: New file.
1100         * elf/ifuncmain7pic.c: New file.
1101         * elf/ifuncmain7picstatic.c: New file.
1102         * elf/ifuncmain7pie.c: New file.
1103         * elf/ifuncmain7static.c: New file.
1104         * elf/ifuncmod5.c: New file.
1105         * elf/ifuncmod6.c: New file.
1106
1107 2009-06-20  Ulrich Drepper  <drepper@redhat.com>
1108
1109         [BZ #10085]
1110         * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1111         (nss_endgrent): New variable.
1112         (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1113         fields. Change type of files to bool and adjust all users.
1114         (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1115         (internal_endgrent): Call nss_endgrent if necessary.
1116         (add_group): New function.  Broken out of...
1117         (check_and_add_group): ...here.
1118         (getgrent_next_nss): Remove test that any callback is available.
1119         Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1120         callback.  If there is no blacklist we can trust the results returned
1121         by the initgroups_dyn callback.  In case there is a callback and we
1122         find a group entry for the group ID but it doesn't contain the
1123         correct member, switch to the slow mode and use getgrent_r.
1124         (internal_getgrent_r): When we see a +: entry, determine whether
1125         there is any callback and which we can use the initgroups_dyn
1126         callback.
1127
1128 2009-06-18  Ulrich Drepper  <drepper@redhat.com>
1129
1130         * malloc/malloc.c (_int_malloc): Add some consistency checks.
1131         (_int_free): Likewise.
1132
1133         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1134         AF_IEEE802154.
1135         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1136         * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1137         and ARPHRD_IEEE802154_PHY.
1138
1139         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1140         relative to generic Linux version.
1141
1142 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
1143
1144         * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1145         ($(objpfx)ifuncmain1vispie): Likewise.
1146
1147 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1148
1149         * login/Makefile: Build pt_chown as PIE.
1150
1151 2009-06-15  Andreas Schwab  <aschwab@redhat.com>
1152
1153         * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1154         a format string.
1155         * elf/sln.c (usage): Likewise.
1156         * malloc/memusage.sh (do_help): Likewise.
1157         * nss/getent.c (more_help): Likewise.
1158         * posix/getconf.c (main): Likewise.
1159         * sunrpc/rpcinfo.c (usage): Likewise.
1160         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1161
1162 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1163
1164         * login/programs/pt_chown.c: Use libcap to drop privileges other than
1165         those needed.
1166         * login/Makefile: If necessary link pt_chown with -lcap.
1167         * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1168         * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
1169
1170 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
1171
1172         * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1173         comparisons.
1174         * string/test-memchr.c (do_random_tests): Test very large lengths
1175         as well.
1176
1177 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1178
1179         * Makeconfig (+link-pie): Define.
1180         (+prectorS): Define.
1181         (+postctorS): Define.
1182         * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1183         * nscd/Makefile ($(objpfx)nscd): Likewise.
1184
1185 2009-04-22  Ryan S. Arnold  <rsa@us.ibm.com>
1186
1187         [BZ #10107]
1188         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1189         with cmplwi.
1190         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1191
1192 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
1193
1194         * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1195         into ...
1196         * sysdeps/unix/grantpt.c: ...here.
1197
1198 2009-06-15  Ulrich Drepper  <drepper@redhat.com>
1199
1200         * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1201         chmod if it is necessary.
1202
1203         [BZ #10166]
1204         * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1205         when the slave device is in devpts or devfs.
1206
1207         [BZ #10183]
1208         * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1209
1210         [BZ #10195]
1211         * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1212         of nd_opt_home_agent_info_preference to uint16_t.
1213         Patch by Arnaud Ebalard <arno@natisbad.org>.
1214
1215         [BZ #10207]
1216         * nss/getent.c: Add support for printing gshadow data.
1217
1218         [BZ #10203]
1219         * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1220         not just the currently used one and those which follow.
1221         Patch by Joe Landers <jlanders@vmware.com>.
1222
1223         [BZ #10196]
1224         * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
1225         * libio/Makefile: Run tst-fgetwc with necessary envvar.
1226         Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1227
1228         [BZ #10217]
1229         * stdlib/abort.c: Define variable __abort_msg.
1230         * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1231         * include/stdlib.h: Declare __abort_msg.
1232         * assert/assert-perr.c: Don't free buffer for message immediately.
1233         Store atomically in __abort_msg and free old buffer if necessary.
1234         * assert/assert.c: Likewise.
1235         * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1236         store pointer in __abort_msg, and possibly free old string.
1237         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1238
1239         * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1240
1241         [BZ #10211]
1242         * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1243         handle leap seconds if they are available.
1244         Patch by Akinori Hattori <hattya@gentoo.org>.
1245
1246         * timezone/tzselect.ksh: Update from tzcode2009i.
1247         * timezone/zdump.c: Likewise.
1248         * timezone/zic.c: Likewise.
1249
1250         * timezone/africa: Update from tzdata2009i.
1251         * timezone/antarctica: Likewise.
1252         * timezone/asia: Likewise.
1253         * timezone/australasia: Likewise.
1254         * timezone/backward: Likewise.
1255         * timezone/etcetera: Likewise.
1256         * timezone/europe: Likewise.
1257         * timezone/factory: Likewise.
1258         * timezone/iso3166.tab: Likewise.
1259         * timezone/leapseconds: Likewise.
1260         * timezone/northamerica: Likewise.
1261         * timezone/pacificnew: Likewise.
1262         * timezone/solar87: Likewise.
1263         * timezone/solar88: Likewise.
1264         * timezone/solar89: Likewise.
1265         * timezone/southamerica: Likewise.
1266         * timezone/systemv: Likewise.
1267         * timezone/yearistype: Likewise.
1268         * timezone/zone.tab: Likewise.
1269
1270 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
1271
1272         * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1273         STT_GNU_IFUNC symbol or in 8 into type_class.
1274
1275         * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1276         instead of Elf64_Addr.
1277
1278 2009-06-14  Ulrich Drepper  <drepper@redhat.com>
1279
1280         * po/sv.po: Update from translation team.
1281
1282         [BZ #10229]
1283         * misc/sys/select.h (__NFDBITS): Expression should have type int.
1284         * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1285         __FD_CLR, and __FD_ISSET.  gcc nowadays generates better code from
1286         the C version.
1287
1288 2009-06-12  Ulrich Drepper  <drepper@redhat.com>
1289
1290         * Versions.def: Add GLIBC_2.11 for libpthread.
1291
1292 2009-06-11  Ulrich Drepper  <drepper@redhat.com>
1293
1294         * resolv/res_send.c (send_dg): Remember we switched to
1295         single-request mode.
1296
1297 2009-06-09  Ulrich Drepper  <drepper@redhat.com>
1298
1299         * dlfcn/dlfcn.h: Remove comma at end of enum.
1300         Patch by J.H.M. Dassen <rdassen@redhat.com>.
1301
1302         * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1303         parsing mode string.
1304
1305 2009-06-05  Ulrich Drepper  <drepper@redhat.com>
1306
1307         * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1308
1309         * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1310
1311         * sysdeps/x86_64/multiarch/strlen.S: New file.
1312         * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1313         * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1314         * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1315         content.
1316
1317         * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1318         is defined.
1319
1320 2009-06-04  Ulrich Drepper  <drepper@redhat.com>
1321
1322         * sysdeps/x86_64/strlen.S: Minor optimizations.
1323
1324 2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1325
1326         * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1327         ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1328         ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1329         ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1330         ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1331         funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1332         ifuncmain3.c, ifuncmod3.c,.
1333         ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1334         (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1335         ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1336         ifuncmain4picstatic.
1337         (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1338         ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1339         ifuncmain3, ifuncmain4.
1340         (tests): Depend on $(objpfx)ifuncmain1pie.out and
1341         $(objpfx)ifuncmain1vispie.out.
1342         (modules-names): Add ifuncmod1 ifuncmod3.
1343         (generated): Add ifuncmain1pie ifuncmain1pie.out
1344         ifuncmain1vispie ifuncmain1vispie.out.
1345         Define rules to build and run the tests.
1346         * elf/ifuncdep1.c: New file.
1347         * elf/ifuncdep1pic.c: New file.
1348         * elf/ifuncdep2.c: New file.
1349         * elf/ifuncdep2pic.c: New file.
1350         * elf/ifuncmain1.c: New file.
1351         * elf/ifuncmain1pic.c: New file.
1352         * elf/ifuncmain1picstatic.c: New file.
1353         * elf/ifuncmain1pie.c: New file.
1354         * elf/ifuncmain1static.c: New file.
1355         * elf/ifuncmain1staticpic.c: New file.
1356         * elf/ifuncmain1vis.c: New file..
1357         * elf/ifuncmain1vispic.c: New file..
1358         * elf/ifuncmain1vispie.c: New file.
1359         * elf/ifuncmain2.c: New file.
1360         * elf/ifuncmain2pic.c: New file.
1361         * elf/ifuncmain2picstatic.c: New file.
1362         * elf/ifuncmain2static.c: New file.
1363         * elf/ifuncmain3.c: New file.
1364         * elf/ifuncmain4.c: New file.
1365         * elf/ifuncmain4picstatic.c: New file.
1366         * elf/ifuncmain4static.c: New file.
1367         * elf/ifuncmod1.c: New file.
1368         * elf/ifuncmod3.c: New file.
1369
1370 2009-06-03  Ulrich Drepper  <drepper@redhat.com>
1371
1372         * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1373
1374 2009-06-02  Ulrich Drepper  <drepper@redhat.com>
1375
1376         [BZ #10221]
1377         * posix/Makefile (routines): Add execvpe.
1378         * posix/Versions: Export execvpe for GLIBC_2.11.
1379         * posix/execvp.c: Now only a wrapper.  Move code to...
1380         * posix/execvpe.c: ...here.  New file.
1381         * posix/unistd.h: Declare execvpe.
1382
1383 2009-06-01  Ulrich Drepper  <drepper@redhat.com>
1384
1385         * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1386         for STT_GNU_IFUNC handling for efficiency.
1387         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1388
1389         * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1390         _exit.
1391         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
1392
1393 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1394
1395         * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
1396         for !SHARED.
1397
1398 2009-05-29  H.J. Lu  <hongjiu.lu@intel.com>
1399
1400         * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
1401         is not defined.
1402         (__rela_iplt_start): New declaration.
1403         (__rela_iplt_end): Likewise.
1404         (__rel_iplt_start): Likewise.
1405         (__rel_iplt_end): Likewise.
1406         (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
1407         * elf/elf.h (R_386_IRELATIVE): New macro.
1408         (R_X86_64_IRELATIVE): New macro.
1409         (R_386_NUM): Updated.
1410         (R_X86_64_NUM): Likewise.
1411         * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
1412         (libc_ifunc_hidden_def): New macro.
1413         * sysdeps/generic/dl-irel.h: New file.
1414         * sysdeps/i386/dl-irel.h: New file.
1415         * sysdeps/x86_64/dl-irel.h: New file.
1416         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
1417         (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
1418         Handle R_386_IRELATIVE.
1419         (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
1420         (elf_machine_lazy_rela): Likewise.
1421         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1422         R_X86_64_IRELATIVE.
1423         (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
1424
1425 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
1426
1427         * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
1428         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  So far there
1429         are no differences.  If an architecture has bits in CPUID index 1
1430         meaning different things the values for the COMMON_CPUID_INDEX_1
1431         index must not be set.
1432         (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
1433         (HAS_POPCOUNT): ...this.  New macro.
1434         * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
1435         instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1.  Unify code
1436         to set the value for Intel and AMD architectures.
1437         * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
1438         INTEL_CPUID_INDEX_1.
1439         * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
1440         change.
1441
1442 2009-05-30  Andreas Schwab  <schwab@linux-m68k.org>
1443
1444         * configure.in: Move AC_CANONICAL_HOST before first use of $host
1445         and $build.
1446
1447 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
1448
1449         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
1450         (__expm1l): Set errno to ERANGE on overflow.
1451         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
1452         (__tanl): Set errno to EDOM for Â±Inf.
1453         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
1454         (__cosl): Set errno to EDOM for Â±Inf.
1455         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
1456         (__sinl): Set errno to EDOM for Â±Inf.
1457
1458         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
1459         defined, use it.
1460         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
1461         * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
1462         * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
1463
1464 2009-05-29  Ulrich Drepper  <drepper@redhat.com>
1465
1466         * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array.  Adjust
1467         code accessing it.
1468         * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
1469
1470 2009-05-22  Andreas Schwab  <schwab@linux-m68k.org>
1471
1472         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for Â±Inf.
1473         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
1474         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
1475         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
1476
1477         * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
1478         * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
1479         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
1480         defined.
1481         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1482         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1483
1484 2009-05-22  Jakub Jelinek  <jakub@redhat.com>
1485
1486         * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
1487         (accept4): If __NR_accept4 is not defined, but __NR_socketcall
1488         is, either do nothing at all if __ASSUME_ACCEPT4, or
1489         call __internal_accept4 and handle EINVAL -> ENOSYS translation.
1490         * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
1491         * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
1492         define.
1493         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
1494         * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
1495         internal_accept4 in socket directory.
1496
1497 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
1498
1499         * sysdeps/ia64/configure.in: New file.
1500
1501 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1502
1503         [BZ #10162]
1504         * sysdeps/ia64/memchr.S: Use speculative load.
1505
1506         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
1507         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
1508         use it.
1509
1510         * sysdeps/i386/__longjmp.S: Add .text.
1511         * sysdeps/x86_64/__longjmp.S: Likewise.
1512
1513 2009-05-21  Ulrich Drepper  <drepper@redhat.com>
1514
1515         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1516         __ASSUME_ACCEPT4 for IA-64.
1517
1518 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
1519
1520         * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
1521
1522         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
1523         (SOCKOP_accept4): Define.
1524
1525 2009-05-20  Ulrich Drepper  <drepper@redhat.com>
1526
1527         Sun approved the change of the license.
1528         * sunrpc/auth_des.c: Replace license text.
1529         * sunrpc/auth_none.c: Likewise.
1530         * sunrpc/auth_unix.c: Likewise.
1531         * sunrpc/authdes_prot.c: Likewise.
1532         * sunrpc/authuxprot.c: Likewise.
1533         * sunrpc/bindrsvprt.c: Likewise.
1534         * sunrpc/clnt_gen.c: Likewise.
1535         * sunrpc/clnt_perr.c: Likewise.
1536         * sunrpc/clnt_raw.c: Likewise.
1537         * sunrpc/clnt_simp.c: Likewise.
1538         * sunrpc/clnt_tcp.c: Likewise.
1539         * sunrpc/clnt_udp.c: Likewise.
1540         * sunrpc/clnt_unix.c: Likewise.
1541         * sunrpc/des_crypt.c: Likewise.
1542         * sunrpc/des_soft.c: Likewise.
1543         * sunrpc/get_myaddr.c: Likewise.
1544         * sunrpc/getrpcport.c: Likewise.
1545         * sunrpc/key_call.c: Likewise.
1546         * sunrpc/key_prot.c: Likewise.
1547         * sunrpc/openchild.c: Likewise.
1548         * sunrpc/pm_getmaps.c: Likewise.
1549         * sunrpc/pm_getport.c: Likewise.
1550         * sunrpc/pmap_clnt.c: Likewise.
1551         * sunrpc/pmap_prot.c: Likewise.
1552         * sunrpc/pmap_prot2.c: Likewise.
1553         * sunrpc/pmap_rmt.c: Likewise.
1554         * sunrpc/rpc/auth.h: Likewise.
1555         * sunrpc/rpc/auth_unix.h: Likewise.
1556         * sunrpc/rpc/clnt.h: Likewise.
1557         * sunrpc/rpc/des_crypt.h: Likewise.
1558         * sunrpc/rpc/key_prot.h: Likewise.
1559         * sunrpc/rpc/netdb.h: Likewise.
1560         * sunrpc/rpc/pmap_clnt.h: Likewise.
1561         * sunrpc/rpc/pmap_prot.h: Likewise.
1562         * sunrpc/rpc/pmap_rmt.h: Likewise.
1563         * sunrpc/rpc/rpc.h: Likewise.
1564         * sunrpc/rpc/rpc_des.h: Likewise.
1565         * sunrpc/rpc/rpc_msg.h: Likewise.
1566         * sunrpc/rpc/svc.h: Likewise.
1567         * sunrpc/rpc/svc_auth.h: Likewise.
1568         * sunrpc/rpc/types.h: Likewise.
1569         * sunrpc/rpc/xdr.h: Likewise.
1570         * sunrpc/rpc_clntout.c: Likewise.
1571         * sunrpc/rpc_cmsg.c: Likewise.
1572         * sunrpc/rpc_common.c: Likewise.
1573         * sunrpc/rpc_cout.c: Likewise.
1574         * sunrpc/rpc_dtable.c: Likewise.
1575         * sunrpc/rpc_hout.c: Likewise.
1576         * sunrpc/rpc_main.c: Likewise.
1577         * sunrpc/rpc_parse.c: Likewise.
1578         * sunrpc/rpc_parse.h: Likewise.
1579         * sunrpc/rpc_prot.c: Likewise.
1580         * sunrpc/rpc_sample.c: Likewise.
1581         * sunrpc/rpc_scan.c: Likewise.
1582         * sunrpc/rpc_scan.h: Likewise.
1583         * sunrpc/rpc_svcout.c: Likewise.
1584         * sunrpc/rpc_tblout.c: Likewise.
1585         * sunrpc/rpc_util.c: Likewise.
1586         * sunrpc/rpc_util.h: Likewise.
1587         * sunrpc/rpcinfo.c: Likewise.
1588         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
1589         * sunrpc/rpcsvc/key_prot.x: Likewise.
1590         * sunrpc/rpcsvc/klm_prot.x: Likewise.
1591         * sunrpc/rpcsvc/mount.x: Likewise.
1592         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
1593         * sunrpc/rpcsvc/rex.x: Likewise.
1594         * sunrpc/rpcsvc/rstat.x: Likewise.
1595         * sunrpc/rpcsvc/rusers.x: Likewise.
1596         * sunrpc/rpcsvc/sm_inter.x: Likewise.
1597         * sunrpc/rpcsvc/spray.x: Likewise.
1598         * sunrpc/rpcsvc/yppasswd.x: Likewise.
1599         * sunrpc/rtime.c: Likewise.
1600         * sunrpc/svc.c: Likewise.
1601         * sunrpc/svc_auth.c: Likewise.
1602         * sunrpc/svc_authux.c: Likewise.
1603         * sunrpc/svc_raw.c: Likewise.
1604         * sunrpc/svc_run.c: Likewise.
1605         * sunrpc/svc_simple.c: Likewise.
1606         * sunrpc/svc_tcp.c: Likewise.
1607         * sunrpc/svc_udp.c: Likewise.
1608         * sunrpc/svc_unix.c: Likewise.
1609         * sunrpc/svcauth_des.c: Likewise.
1610         * sunrpc/xcrypt.c: Likewise.
1611         * sunrpc/xdr.c: Likewise.
1612         * sunrpc/xdr_array.c: Likewise.
1613         * sunrpc/xdr_float.c: Likewise.
1614         * sunrpc/xdr_mem.c: Likewise.
1615         * sunrpc/xdr_rec.c: Likewise.
1616         * sunrpc/xdr_ref.c: Likewise.
1617         * sunrpc/xdr_sizeof.c: Likewise.
1618         * sunrpc/xdr_stdio.c: Likewise.
1619
1620         * po/da.po: Update from translation team.
1621
1622 2009-05-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1623
1624         * sysdeps/sh/____longjmp_chk.S: New file.
1625         * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
1626         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1627
1628 2009-05-18  Jakub Jelinek  <jakub@redhat.com>
1629             Ulrich Drepper  <drepper@redhat.com>
1630
1631         * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
1632         (__nscd_cache_search): Assume each entry in the
1633         hash chain needs one hashentry and half of datahead.  Use
1634         MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
1635
1636 2009-05-16  Ulrich Drepper  <drepper@redhat.com>
1637
1638         * posix/sys/wait.h: Fix typos.  Pretty printing.
1639         * stdlib/stdlib.h: Likewise.  Correct comments.
1640
1641         [BZ #10159]
1642         * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
1643
1644         * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
1645         patch.
1646
1647 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
1648
1649         * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
1650         Use it if we absolutely cannot reach any more correct list elements
1651         because that many do not fit into the currently mapped database.
1652
1653 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
1654
1655         * nscd/nscd_helper.c: Include stddef.h.
1656         (__nscd_cache_search): Add datalen argument.  Use atomic_forced_read
1657         in a couple of places.  Return NULL if trail is not less than
1658         datasize, don't consider dataheads with length smaller than
1659         offsetof (struct datahead, data) + datalen.
1660         * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
1661         * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
1662         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1663         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1664         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1665         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1666         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1667
1668         * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
1669         Rename ...
1670         (fallocate64): ... to this.
1671         * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
1672         Rename ...
1673         (fallocate64): ... to this.
1674         * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
1675         * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
1676         fallocate64@@GLIBC_2.10.
1677         * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
1678         fallocate64@@GLIBC_2.11.
1679         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
1681         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1682         * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
1683
1684         * nscd/selinux.c (nscd_avc_destroy): Removed.
1685         * nscd/selinux.h (nscd_avc_destroy): Likewise.
1686         * nscd/nscd.c (termination_handler): Don't call
1687         nscd_avc_destroy.
1688
1689 2009-05-12  Jakub Jelinek  <jakub@redhat.com>
1690
1691         * include/atomic.h: Formatting.
1692         (catomic_compare_and_exchange_val_acq): Don't define if already
1693         defined by bits/atomic.h.
1694
1695 2009-05-15  Ulrich Drepper  <drepper@redhat.com>
1696
1697         * math/libm-test.inc (expm1_test): Add test for range error.
1698
1699         * Versions.def: Add GLIBC_2.11 for libc.
1700         * debug/Makefile (routines): Add longjmp_chk.
1701         Add rules to build and run tst-longjmp_chk.
1702         * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
1703         * debug/longjmp_chk.c: New file.
1704         * debug/tst-longjmp_chk.c: New file.
1705         * include/bits/setjmp2.: New file.
1706         * include/stdio.h: Mark __fortify_fail as internal_function.
1707         * setjmp/Makefile (headers): Add bits/setjmp2.h.
1708         * setjmp/bits/setjmp2.h: New file.
1709         * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
1710         of the aliases.
1711         * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
1712         defined.
1713         * sysdeps/i386/____longjmp_chk.S: New file.
1714         * sysdeps/x86_64/____longjmp_chk.S: New file.
1715         * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
1716         * sysdeps/x86_64/__longjmp.S: Likewise.
1717
1718         * version.h: Bump for 2.11 development.
1719
1720         * elf/check-execstack.c: New file.
1721         * elf/Makefile: Add rules to build and run check-execstack.
1722
1723 2009-05-10  Ulrich Drepper  <drepper@redhat.com>
1724
1725         * version.h (VERSION): Bump to 2.10.1.
1726
1727         * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
1728         compatibility functions.
1729         * nss/getXXent_r.c: Likewise.
1730         * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
1731         * gshadow/getsgnam_r.c: Likewise.
1732         * gshadow/Version: Remove duplicate entries.
1733
1734         * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
1735         for recent processor.
1736         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
1737         Likewise.
1738
1739 2009-05-09  Ulrich Drepper  <drepper@redhat.com>
1740
1741         * version.h (VERSION): Bump for 2.10 release.
1742         * include/features.h (__GLIBC_MINOR__): Bump to 10.
1743
1744         * Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the
1745         same place we add ASFLAGS-config.
1746
1747 2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
1748
1749         [BZ #10128]
1750         * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
1751         or FORMERR and the other NOERROR, don't raise an error.
1752
1753 2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
1754
1755         [BZ #10118]
1756         * Makeconfig (+asflags): New variable based upon ASFLAG or
1757         asflags-cpu.
1758         (ASFLAGS): Add override to set ASFLAGS to +asflags.
1759         * config.make.in (asflags-cpu): Add variable based upon
1760         @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
1761         the assembler.
1762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1763         Remove unneeded file now that the assembler emits _ARCH_PWR6 and
1764         recognizes power6 instruction set due to passing -mcpu=power6 from
1765         --with-cpu=power6 when compiling .S files.
1766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1767         Likewise.
1768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1769         Likewise.
1770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1771         Likewise.
1772
1773 2009-05-09  Jakub Jelinek  <jakub@redhat.com>
1774
1775         * string/stratcliff.c (do_test): Test for zero length
1776         STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
1777         at the end of the page.
1778
1779 2009-05-08  Ulrich Drepper  <drepper@redhat.com>
1780
1781         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
1782
1783         * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
1784         count is zero.
1785
1786         * po/da.po: Update from translation team.
1787
1788 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
1789
1790         * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
1791         guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
1792
1793 2009-05-05  Ulrich Drepper  <drepper@redhat.com>
1794
1795         * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
1796         and READ_IMPLIES_EXEC.
1797
1798 2009-05-04  Ulrich Drepper  <drepper@redhat.com>
1799
1800         * po/da.po: Update from translation team.
1801
1802 2009-04-29  Jakub Jelinek  <jakub@redhat.com>
1803
1804         * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
1805         comment change.
1806
1807 2009-04-27  Jakub Jelinek  <jakub@redhat.com>
1808
1809         * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
1810         to MAP_ANON in PROT_NONE mmap64 call.
1811         (open_archive): Likewise.
1812         (file_data_available_p): Use mmap64 instead of mremap.
1813         (enlarge_archive): Likewise.  Update head if ah->addr changed.
1814         Attempt to reserve address space after mmap64 region.
1815
1816 2009-04-26  Ulrich Drepper  <drepper@redhat.com>
1817
1818         * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
1819         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1820         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1821
1822         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
1823         atanh should set ERANGE.
1824
1825         [BZ #10087]
1826         * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
1827         result of lookup to make call to implement STT_GNU_IFUNC.
1828         (_dl_profile_fixup): Likewise.
1829         Patch by H.J. Lu <hjl.tools@gmail.com>.
1830
1831         * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
1832         warning.
1833
1834         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
1835         from definition.
1836
1837         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
1838         label if it is not used.
1839
1840         * elf/dl-profile.c (_dl_start_profile): Define real-type variant
1841         of gmon_hist_hdr and gmon_hdr structures and use them.
1842         * elf/sprof.c: Likewise.
1843
1844         * elf/dl-load.c (open_verify): Add temporary variable to avoid
1845         warning.
1846
1847         * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
1848
1849         * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
1850         to avoid cast.
1851
1852         * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
1853         * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
1854         to avoid warnings.
1855         (iruserok_af): Use ss_family instead of casts.
1856
1857         * gmon/gmon.c (write_hist): Define real-type variant of
1858         gmon_hist_hdr structure and use it.
1859         (write_gmon): Likewise for gmon_hdr.
1860
1861         * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
1862         function if we are not going to define it.
1863         * sysdeps/unix/sysv/linux/writev.c: Likewise.
1864
1865         * inet/inet6_option.c (option_alloc): Add temporary variable to
1866         avoid warning.
1867
1868         * libio/strfile.h (struct _IO_streambuf): Use correct type and
1869         name of VTable element.
1870         * libio/iovsprintf.c: Avoid casts to avoid warnings.
1871         * libio/iovsscanf.c: Likewise.
1872         * libio/vasprintf.c: Likewise.
1873         * libio/vsnprintf.c: Likewise.
1874         * stdio-common/isoc99_vsscanf.c: Likewise.
1875         * stdlib/strfmon_l.c: Likewise.
1876         * debug/vasprintf_chk.c: Likewise.
1877         * debug/vsnprintf_chk.c: Likewise.
1878         * debug/vsprintf_chk.c: Likewise.
1879
1880         * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
1881         function pointers.
1882
1883 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
1884
1885         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
1886
1887 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
1888
1889         * posix/bits/posix1_lim.h: Cleanup namespace a bit.
1890
1891         * sysdeps/i386/fpu/s_tan.S: Set errno for Â±Inf.
1892         * sysdeps/i386/fpu/s_tanf.S: Likewise.
1893         * sysdeps/i386/fpu/s_tanl.S: Likewise.
1894         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1895         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
1896         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1897         * math/libm-test.inc: Add tests for errno after tan calls with
1898         Â±Inf.
1899
1900         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
1901         errno value vor pow(+-0,neg).
1902         * math/libm-test.inc (pow_test): Add tests for errno value for
1903         pole errors.
1904
1905         * math/w_fmod.c: Also handle x=±Inf as error.
1906         * math/w_fmodf.c: Likewise.
1907         * math/w_fmodl.c: Likewise.
1908         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
1909         x=±Inf or y=0.
1910
1911         * sysdeps/i386/fpu/s_cos.S: Set errno for Â±Inf.
1912         * sysdeps/i386/fpu/s_cosf.S: Likewise.
1913         * sysdeps/i386/fpu/s_cosl.S: Likewise.
1914         * sysdeps/i386/fpu/s_sin.S: Likewise.
1915         * sysdeps/i386/fpu/s_sinf.S: Likewise.
1916         * sysdeps/i386/fpu/s_sinl.S: Likewise.
1917         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1918         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1919         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1920         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
1921         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
1922         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1923         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1924         * math/libm-test.inc: Add tests for errno after sin/cos calls with
1925         Â±Inf.
1926
1927         * stdlib/strtod_l.c (round_and_return): We have to set errno to
1928         ERANGE for underflows.
1929         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
1930
1931         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
1932         the 2001 revision.
1933
1934         * libio/tst-widetext.input: Remove surrogates.
1935
1936         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
1937
1938         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
1939         for lgamma should set errno to ERANGE, not EDOM.
1940         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
1941
1942 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1943
1944         [BZ #10093]
1945         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
1946         UTF-16 surrogates.
1947
1948         * locale/programs/locarchive.c (enlarge_archive): Conserve address
1949         space when temporarily mapping the whole content of the old file.
1950
1951         [BZ #10100]
1952         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
1953         not zero.
1954
1955 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
1956
1957         * iconvdata/sjis.c (BODY): Don't advance inptr before
1958         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
1959         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
1960         two byte chars.
1961
1962 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
1963
1964         * locale/locarchive.h (struct locarhandle): Rename len field to
1965         mmaped and add new reserved field.
1966         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
1967         (create_archive): Reserve address space and then map file into it.
1968         (open_archive): Likewise.
1969         (file_data_available_p): New function.
1970         (compare_from_file): New function.
1971         (close_archive): Adjust to member name changes.
1972         (add_locale): Before comparing locale data, check it is mapped.
1973         Otherwise fall back to reading from the file.
1974
1975 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
1976
1977         * stdio-common/psiginfo.c: Include <errno.h>.
1978
1979 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1980
1981         [BZ #9920]
1982         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
1983         to get consistency between 32 and 64 bit architectures.
1984
1985         [BZ #10052]
1986         * sysdeps/unix/make-syscalls.sh: Add rule to create target
1987         directory for dummy syscall rules.
1988         Patch by Chris Steinbroner <hesh@pobox.com>.
1989
1990 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
1991
1992         [BZ #10092]
1993         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
1994         MNT_EXPIRE.
1995
1996 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
1997
1998         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
1999         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2000
2001 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
2002
2003         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
2004         data from vector to temporary buffer and call PWRITEV after it
2005         instead of vice versa.
2006         * sysdeps/posix/preadv.c: Fix up comment.
2007         * misc/preadv.c: Likewise.
2008         * misc/preadv64.c: Likewise.
2009         * misc/pwritev.c: Likewise.
2010         * misc/pwritev64.c: Likewise.
2011         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2012
2013 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
2014
2015         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2016
2017         * shadow/Makefile (tests): Add tst-shadow.
2018         * shadow/tst-shadow.c: New file.
2019
2020         [BZ #9955]
2021         * gshadow/Makefile: New file.
2022         * gshadow/Versions: New file.
2023         * gshadow/fgetsgent.c: New file.
2024         * gshadow/fgetsgent_r.c: New file.
2025         * gshadow/getsgent.c: New file.
2026         * gshadow/getsgent_r.c: New file.
2027         * gshadow/getsgnam.c: New file.
2028         * gshadow/getsgnam_r.c: New file.
2029         * gshadow/gshadow.h: New file.
2030         * gshadow/putsgent.c: New file.
2031         * gshadow/sgetsgent.c: New file.
2032         * gshadow/sgetsgent_r.c: New file.
2033         * gshadow/tst-gshadow.c: New file.
2034         * include/gshadow.h: New file.
2035         * Makeconfig (all-subdirs): Add gshadow.
2036         * Makefile (installed-headers): Add gshadow/gshadow.h.
2037         * nss/Makefile (databases): Add sgrp.
2038         * nss/Versions: Add gshadow functions as private exports.
2039         * nss/nsswitch.conf: Add gshadow entry.
2040         * nss/sgrp-lookup.c: New file.
2041         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
2042         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2043         * nss/nss_files/files-sgrp.c: New file.
2044         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2045         * sysdeps/unix/sysv/linux/paths.h: Likewise.
2046
2047 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
2048
2049         * stdio-common/printf.h: Add missing const to register_printf_modifier.
2050         * stdio-common/reg-modifier.c: Likewise.
2051
2052 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
2053
2054         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2055         is no FPU.
2056
2057 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
2058
2059         [BZ #10086]
2060         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2061         headers up to 2.6.30.
2062
2063         * po/ca.po: Update from translation team.
2064
2065 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
2066
2067         [BZ #10069]
2068         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2069         an object that uses static TLS if the TLS modid is higher than the
2070         reserve we always allocate.  At least for multi-threaded code.
2071
2072 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
2073
2074         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2075         Numerically stable check for valid width.
2076
2077         * locale/programs/locarchive.c (open_archive): Map the entire file
2078         and not just the administrative data.
2079         (add_locale): When we find a hash sum match compare the content
2080         to be sure.
2081
2082         * malloc/malloc.c (malloc_info): Output address space information.
2083
2084 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
2085
2086         * malloc/malloc.c (malloc_info): Also output system memory information.
2087
2088         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2089         architectures have preadv/pwritev in 2.6.30.
2090
2091         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2092         * sysdeps/posix/readv.c: Likewise.
2093         Reported by Markus Armbruster <armbru@redhat.com>.
2094
2095         * malloc/hooks.c (top_check): Force hook value into register.
2096
2097 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2098
2099         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2100         calls to _dl_relocate_object.
2101
2102 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2103
2104         [BZ #9957]
2105         * malloc/malloc.c (force_reg): Define.
2106         (sYSMALLOc): Load hook variable into variable
2107         before test and force into register.
2108         (sYSTRIm): Likewise.
2109         (public_mALLOc): Force hook value into register.
2110         (public_fREe): Likewise.
2111         (public_rEALLOc): Likewise.
2112         (public_mEMALIGn): Likewise.
2113         (public_vALLOc): Likewise.
2114         (public_pVALLOc): Likewise.
2115         (public_cALLOc): Likewise.
2116         (__posix_memalign): Likewise.
2117         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2118         before test and force into register.
2119         * malloc/hooks.c (top_check): Likewise.
2120         (public_sET_STATe): Pretty printing.
2121
2122         * resolv/res_send.c (send_dg): Don't just ignore the result we got
2123         in case we only receive one reply in single-request mode.
2124
2125 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
2126
2127         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2128         are dlopened in statically linked program even for __LM_ID_CALLER.
2129
2130 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
2131
2132         * resolv/res_send.c (send_dg): Don't switch into single-request
2133         mode if we already are in it.
2134
2135 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
2136
2137         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2138         are always at least 4 bytes in the returned line.
2139
2140 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
2141
2142         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2143         __libc_use_alloca (8192), if the stack is too small use 512 bytes
2144         instead of 8K.  Stop searching in /proc/stat after hitting first
2145         line not starting with cpu.
2146         (next_line): Truncate too long
2147         lines at buffer size * 3/4 instead of pretending there were line
2148         breaks inside of large lines.
2149
2150 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2151
2152         * sysdeps/x86_64/mp_clz_tab.c: New file.
2153
2154 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
2155             Ulrich Drepper  <drepper@redhat.com>
2156
2157         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2158         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2159         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2160
2161 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
2162
2163         * sysdeps/sh/libc-tls.c: New file.
2164
2165         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2166
2167 2009-04-14  Roland McGrath  <roland@redhat.com>
2168
2169         * elf/elf.h: Add various missing ARM constants, to match binutils.
2170
2171 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2172
2173         Optimizations from GMP.
2174         * sysdeps/x86_64/add_n.S: New file.
2175         * sysdeps/x86_64/addmul_1.S: New file.
2176         * sysdeps/x86_64/lshift.S: New file.
2177         * sysdeps/x86_64/mul_1.S: New file.
2178         * sysdeps/x86_64/rshift.S: New file.
2179         * sysdeps/x86_64/sub_n.S: New file.
2180         * sysdeps/x86_64/submul_1.S: New file.
2181
2182 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
2183
2184         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2185         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2186         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2187         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2188
2189 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
2190
2191         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2192         preadv/pwritev.
2193
2194 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
2195
2196         * sysdeps/x86-64/strrchr.S: New file.
2197
2198 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
2199
2200         * stdio-common/printf.h (struct printf_info): Add user element.
2201         New types printf_arginfo_size_function, printf_va_arg_function.
2202         Declare register_printf_specifier, register_printf_modifier,
2203         register_printf_type.
2204         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2205         (union printf_arg): Add pa_user element.
2206         Adjust __printf_arginfo_table type.
2207         Add __printf_va_arg_table, __printf_modifier_table,
2208         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2209         declarations.
2210         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2211         If registered arginfo call failed try normal specifier.
2212         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2213         function.
2214         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2215         * stdio-common/Versions: Export register_printf_modifier,
2216         register_printf_type, and register_printf_specifier for GLIBC_2.10.
2217         * stdio-common/reg-modifier.c: New file.
2218         * stdio-common/reg-type.c: New file.
2219         * stdio-common/reg-printf.c (__register_printf_specifier): New
2220         function.  Mostly the old __register_printf_function function but
2221         uses locking and type of third parameter changed.
2222         (__register_printf_function): Implement using
2223         __register_printf_specifier.
2224         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2225         calls to arginfo functions.  Allocate enough memory for user-defined
2226         types.  Call new va_arg functions to get user-defined types.
2227         Try installed handlers even for existing format specifiers first.
2228
2229 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
2230
2231         * sysdeps/x86_64/rawmemchr.S: New file.
2232
2233         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2234         Simplified code and possible copy problem fixed.
2235
2236         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
2237         function if it is not defined.  Add some necessary casts.
2238         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2239
2240         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2241         have preadv/pwritev in 2.6.30.
2242
2243 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
2244
2245         * malloc/malloc.c (malloc_info): New function.
2246         * malloc/malloc.h: Declare it.
2247         * malloc/Versions: Export malloc_info for GLIBC_2.10.
2248
2249         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2250         to avoid PLT slot.
2251
2252         * malloc/malloc.c (_int_realloc): Add parameter with old block
2253         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
2254         Adjust all callers.
2255         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2256
2257 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
2258
2259         * sysdeps/x86_64/strchrnul.S: New file.
2260
2261         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
2262         depending libcrypt on -lfreebl3.
2263
2264         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2265         preadv/pwritev in 2.6.30.
2266
2267         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2268         instead of __strcasecmp.
2269
2270         * string/stratcliff.c (do_test): Add memchr tests..
2271         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2272         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2273         first read quad word.
2274
2275 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
2276
2277         * string/strverscmp.c (__strverscmp): Fix last cleanups.
2278         * string/tst-svc.input: Add new test case.
2279         * string/tst-svc.expect: Adjust.
2280         * string/Makefile: Don't ignore tst-svc error.
2281
2282         * sysdeps/x86_64/memchr.S: New file.
2283
2284         * resolv/resolv.h (RES_SNGLKUP): Define.
2285         * resolv/res_init.c (res_setoptions): Recognize single-request option.
2286         * resolv/res_send.c (send_dg): If we sent two requests at once and
2287         only get one reply before timeout switch to mode where we send the
2288         second request only after the first answer has been received.
2289
2290 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
2291
2292         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
2293         * sysdeps/x86_64/strchr.S: Likewise.
2294
2295 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
2296
2297         * configure.in: We need to test for the compiler earlier.
2298
2299         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2300         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2301         GLIBC_2.10.
2302         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2303         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2304         and pwritev.
2305         * misc/preadv.c: New file.
2306         * misc/preadv64.c: New file.
2307         * misc/pwritev.c: New file.
2308         * misc/pwritev64.c: New file.
2309         * sysdeps/posx/preadv.c: New file.
2310         * sysdeps/posx/preadv64.c: New file.
2311         * sysdeps/posx/pwritev.c: New file.
2312         * sysdeps/posx/pwritev64.c: New file.
2313         * sysdeps/unix/sysv/linux/preadv.c: New file.
2314         * sysdeps/unix/sysv/linux/preadv64.c: New file.
2315         * sysdeps/unix/sysv/linux/pwritev.c: New file.
2316         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2317         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2318         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2319
2320         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2321         compatibility code.
2322         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2323
2324         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2325         __ASSUME_COMPLETE_READV_WRITEV.
2326         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2327         with modern kernels.
2328         * sysdeps/unix/sysv/linux/writev.c: Likewise.
2329
2330         * sysdeps/posix/readv.c: Since read is a cancellation point we have
2331         to free a possible malloced buffer in case of cancellation.
2332         * sysdeps/posix/writev.c: Likewise for write.
2333
2334 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
2335
2336         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2337
2338         * configure.in: Recognize --enable-nss-crypt.
2339         * config.make.in: Add nss-crypt entry.
2340         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2341         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
2342         and include path for NSS directory to compiler for md5-crypt,
2343         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
2344         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2345         function implementation, use NSS.  Introduce wrappers around the
2346         hash function calls.  Little code size optimization.
2347         * crypt/sha256-crypt.c: Likewise.
2348         * crypt/sha512-crypt.c: Likewise.
2349         * scripts/check-local-headers.sh: Ignore nss3 directory.
2350
2351         * configure.in: Rename pic_default to libc_cv_pic_default.
2352         * config.make.in: Likewise.
2353
2354 2009-04-01  Roland McGrath  <roland@redhat.com>
2355
2356         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2357         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2358         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2359         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2360         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2361         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2362         (R_SPARC_NUM): Update.
2363         From Dave Miller <davem@davemloft.net>.
2364
2365 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
2366
2367         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2368
2369 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
2370
2371         * elf/dl-open.c: Keep track of used name spaces and only iterate over
2372         those which are used.
2373         * elf/dl-addr.c: Likewise.
2374         * elf/dl-caller.c: Likewise.
2375         * elf/dl-fini.c: Likewise.
2376         * elf/dl-iteratephdr.c: Likewise.
2377         * elf/dl-libc.c: Likewise.
2378         * elf/dl-load.c: Likewise.
2379         * elf/dl-support.c: Likewise.
2380         * elf/dl-sym.c: Likewise.
2381         * elf/rtld.c: Likewise.
2382         * sysdeps/generic/ldsodefs.h: Likewise.
2383
2384         * elf/dl-load.c: Remove support for systems without MAP_ANON.
2385         * elf/dl-minimal.c: Likewise.
2386         * elf/dl-misc.c: Likewise.
2387         * elf/rtld.c: Likewise.
2388         * sysdeps/generic/ldsodefs.h: Likewise.
2389
2390 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
2391
2392         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
2393         Avoid reuse of complex expression.
2394
2395         * po/fr.po: Update from translation team.
2396
2397 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2398
2399         * include/dirent.h: Yet more changes to match sort function type
2400         change.
2401         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
2402         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2403         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2404
2405 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
2406
2407         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
2408
2409 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
2410
2411         * nscd/connections.c (restart): Try to preserve the process name
2412         by reading the /proc/self/exe symlink and using the return name.
2413         Patch by Jeff Bastian <jbastian@redhat.com>.
2414
2415 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
2416
2417         [BZ #9733]
2418         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
2419         if we are not loading a new audit library.
2420         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
2421         Only use profiling trampoline for auditing if we are not relocating
2422         an audit library.
2423         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
2424         * elf/rtld.c: Likewise.
2425         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
2426
2427         * elf/rtld.c (dl_main): Extend help message for --audit option.
2428
2429         [BZ #9759]
2430         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
2431         alphasort64, versionsort, and versionsort64 to POSIX 2008.
2432         * dirent/alphasort.c: Adjust implementation to type change.
2433         * dirent/alphasort64.c: Likewise.
2434         * dirent/scandir.c: Likewise.
2435         * dirent/versionsort.c: Likewise.
2436         * dirent/versionsort64.c: Likewise.
2437         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
2438         declaration.
2439         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
2440         declaration.
2441
2442         [BZ #9880]
2443         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
2444         correctly.  Set segleft member in output as required.
2445         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2446         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
2447
2448         [BZ #9881]
2449         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
2450         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2451         * inet/Makefile (tests): Add tst-inet6_rth.
2452         * inet/tst-inet6_rth.c: New file.
2453
2454         [BZ #5807]
2455         * string/strlen.c (strlen): Fix omission in the expression to test
2456         for NUL bytes.
2457
2458 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2459
2460         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
2461
2462         * elf/dl-runtime.c (reloc_offset): Define.
2463         (reloc_index): Define.
2464         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
2465         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
2466         computing index from reloc_offset.
2467         (_dl_call_pltexit): Likewise.
2468         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
2469         the relocation index to _dl_fixup.
2470         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
2471         _dl_call_pltexit.
2472         * sysdeps/x86_64/dl-runtime.c: New file.
2473
2474         [BZ #9893]
2475         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
2476         alignment of La_x86_64_regs.  Store xmm parameters.
2477         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
2478
2479         [BZ #9913]
2480         * string/strverscmp.c (__strverscmp): Fix case of different digits
2481         in fractional part of string.
2482         Patch by Jingyu Liu <jyliu@fortinet.com>.
2483         * string/Makefile (tests): Add tst-svc2.
2484         * string/tst-svc2.c: New file.
2485
2486         * string/strverscmp.c (__strverscmp): Optimize size of tables.
2487
2488         * locale/iso-639.def: Add Min Nan.
2489
2490 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2491
2492         [BZ #9948]
2493         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
2494
2495 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
2496
2497         * elf/dl-sysdep.c (auxvars): Compress data structure.
2498
2499         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
2500         STT_GNU_IFUNC handling.
2501         (elf_machine_rela): Likewise.
2502
2503 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
2504
2505         * config.h.in (USE_MULTIARCH): Define.
2506         * configure.in: Handle --enable-multi-arch.
2507         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
2508         (_dl_fixup_profile): Likewise.
2509         * elf/do-lookup.c (dl_lookup_x): Likewise.
2510         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
2511         * elf/elf.h (STT_GNU_IFUNC): Define.
2512         * include/libc-symbols.h (libc_ifunc): Define.
2513         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
2514         framework in init-arch.h to get CPUID values.
2515         * sysdeps/x86_64/multiarch/Makefile: New file.
2516         * sysdeps/x86_64/multiarch/init-arch.c: New file.
2517         * sysdeps/x86_64/multiarch/init-arch.h: New file.
2518         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
2519
2520         * config.make.in (experimental-malloc): Define.
2521         * configure.in: Handle --enable-experimental-malloc.
2522         * malloc/Makefile: Handle experimental-malloc flag.
2523         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
2524         * malloc/arena.c: Likewise.
2525         * malloc/hooks.c: Likewise.
2526         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2527
2528 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
2529
2530         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
2531         prediction.  A few size optimizations.
2532
2533 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2534
2535         * time/tzset.c: Optimize a bit for size.
2536
2537 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2538
2539         * include/stdio.h (fmemopen): Add libc_hidden_proto.
2540         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
2541
2542         * elf/sprof.c: Avoid warning about multi-line comment.
2543
2544 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2545
2546         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
2547         DST name.
2548         * time/tst-posixtz.c: Add tests for quoted timezone names.
2549
2550 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
2551
2552         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
2553         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
2554         200809L instead of 200112L.
2555         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
2556         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
2557
2558         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
2559         instead of __quick_exit_funcs to __run_exit_handlers.
2560         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
2561         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
2562         (__cxa_at_quick_exit): Remove attribute_hidden.
2563         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
2564         to __run_exit_handlers.
2565         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
2566         attribute_hidden.
2567
2568 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
2569
2570         * po/id.po: Update from translation team.
2571
2572 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
2573
2574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
2575         .machine push; .machine "power6" and .machine pop around mtfsf
2576         insns outside of _ARCH_PWR6 define.
2577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2578         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2579         Likewise.
2580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2581         Likewise.
2582         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
2583         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
2584         relax_fenv_state): Likewise.
2585
2586 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
2587
2588         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
2589         cxa_at_quick_exit.
2590         (static-only-routines): Add at_quick_exit.
2591         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
2592         GLIBC_2.10.
2593         * stdlib/quick_exit.c: New file.
2594         * stdlib/at_quick_exit.c: New file.
2595         * stdlib/cxa_at_quick_exit.c: New file.
2596         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
2597         it appropriately.
2598         (__internal_atexit): New function.
2599         (__new_exitfn): Now takes parameter to point to the list to use.
2600         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
2601         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
2602         (exit): ...here.  Just call __run_exit_handlers appropriately.
2603         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
2604         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
2605         * stdlib/on_exit.c: Adjust call to __new_exitfn.
2606         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
2607
2608         * po/id.po: Update from translation team.
2609
2610 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
2611
2612         * po/ru.po: Update from translation team.
2613
2614 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
2615
2616         * po/nl.po: Update from translation team.
2617
2618 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
2619
2620         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
2621         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2622         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2623         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2624         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2625         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2626         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2627
2628         * po/pl.po: Update from translation team.
2629
2630 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
2631
2632         [BZ #7083]
2633         * sysdeps/unix/sysv/linux/fallocate.c: New file.
2634         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
2635         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
2636         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
2637         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
2638         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
2639         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
2640         for GLIBC_2.10.
2641         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2642         Add fallocate and fallocate64.
2643
2644         * io/fcntl.h: Pretty printing.
2645
2646 2009-03-02  Richard Guenther  <rguenther@suse.de>
2647
2648         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
2649         attribute also for non-C99 inline semantics variant.
2650
2651 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2652
2653         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
2654         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
2655         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
2656         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
2657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
2658         Likewise.
2659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
2660         Likewise.
2661
2662 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
2663
2664         * po/cs.po: Update from translation team.
2665
2666 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
2667
2668         * po/bg.po: Update from translation team.
2669         * po/sv.po: Likewise.
2670         * po/fi.po: Likewise.
2671         * po/vi.po: Likewise.
2672
2673 2009-02-27  Roland McGrath  <roland@redhat.com>
2674
2675         * Makeconfig (%.v.i): Depend on Makeconfig.
2676         Exclude % lines from initial #-comment removal.
2677
2678 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
2679
2680         * po/ko.po: Update from translation team.
2681
2682 2009-02-26  Roland McGrath  <roland@redhat.com>
2683
2684         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
2685         avoids unused warning.
2686
2687 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
2688             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2689
2690         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
2691         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
2692         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
2693         and asm/user.h.  Include asm/ptrace.h.
2694         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
2695         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2696         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
2697         Undefine.
2698         (start_thread): Don't undefine.
2699         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
2700         Define.
2701
2702 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
2703
2704         * wctype/wctype.h: The *_l functions are in POSIX 2008.
2705         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
2706         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
2707         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
2708         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
2709         200112L to 200809L.
2710         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2711         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2712         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
2713         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2714         _SC_THREAD_ROBUST_PRIO_PROTECT.
2715         * posix/unistd.h: fexecve is in POSIX 2008.
2716         * time/time.h: strftime_l is in POSIX 2008.
2717         * io/sys/stat.h: futimens is in POSIX 2008.
2718         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
2719         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
2720         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
2721         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
2722         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2723         open_memstream, and vdprintf are in POSIX 2008.
2724
2725 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
2726
2727         * include/features.h: Define macros for XPG7/POSIX 2008.
2728         * ctype/ctype.h: The *_l functions are in POSIX 2008.
2729         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2730         POSIX 2008.
2731         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
2732         * locale/xlocale.h: Define locale_t type.
2733         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
2734         in POSIX 2008.  Don't define locale_t here.
2735         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
2736         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2737         UTIME_OMIT only with __USE_ATFILE.
2738         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
2739         * stdio-common/psiginfo.c: New file.
2740         * stdio-common/psiginfo-data.h: New file.
2741         * stdio-common/psiginfo-define.h: New file.
2742         * stdio-common/Makefile (routines): Add psiginfo.
2743         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
2744         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2745         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2746         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2747         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2748         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2749         * io/sys/stat.h: Move mknodat definition into same conditional as
2750         mknod.
2751         * time/sys/time.h: futimesat is not among the functions accepted
2752         into the POSIX standard.
2753
2754         * include/features.h: If no feature selection given and we select
2755         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
2756         * posix/Versions: Export __posix_getopt.
2757         * posix/getopt.c (_getopt_initialize): Take additional parameter.
2758         Use it to alternatively initialize __posixly_correct.
2759         (_getopt_internal_r): Take addition parameter.  Pass on to
2760         _getopt_initialize.
2761         (_getopt_internal): Take addition parameter.  Pass on to
2762         _getopt_internal_r.
2763         (getopt): Pass additional zero to _getopt_internal.
2764         (__posix_getopt): New function.
2765         * posix/getopt.h: Add redirection for getopt.
2766         * posix/getopt1.c (getopt_long): Pass additional zero to
2767         _getopt_internal.
2768         (getopt_long_only): Likewise.
2769         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
2770         (_getopt_long_only_r): Likewise.
2771         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
2772         _getopt_internal_r.
2773
2774 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
2775
2776         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
2777         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2778         * sysdeps/posix/sysconf.c (__sysconf): Handle
2779         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
2780         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2781
2782 2009-02-24  Roland McGrath  <roland@redhat.com>
2783
2784         [BZ #9895]
2785         * README.template: Reworded not to use substituted version number.
2786         Renamed to ...
2787         * README: ... here (no longer generated).
2788         * Makefile (README): Target removed.
2789
2790 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
2791
2792         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
2793         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
2794         instead.
2795
2796         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
2797
2798         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
2799
2800 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
2801
2802         * po/bg.po: Update from translation team.
2803
2804 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
2805
2806         * stdlib/monetary.h: Uglify function parameter names.
2807         * sunrpc/rpc/pmap_clnt.h: Likewise.
2808         * sunrpc/rpc/svc.h: Likewise.
2809         * sunrpc/rpc/xdr.h: Likewise.
2810         * sunrpc/rpc/clnt.h: Likewise.
2811         * resolv/netdb.h: Likewise.
2812         * resolv/arpa/nameser.h: Likewise.
2813         * resolv/resolv.h: Likewise.
2814         * argp/argp.h: Likewise.
2815         * locale/langinfo.h: Likewise.
2816         * io/sys/stat.h: Likewise.
2817         * posix/spawn.h: Likewise.
2818         * nis/rpcsvc/nislib.h: Likewise.
2819         * malloc/obstack.h: Likewise.
2820         * sysdeps/ia64/bits/link.h: Likewise.
2821         * sysdeps/i386/bits/link.h: Likewise.
2822         * sysdeps/s390/bits/link.h: Likewise.
2823         * sysdeps/powerpc/bits/link.h: Likewise.
2824         * sysdeps/x86_64/bits/link.h: Likewise.
2825         * sysdeps/sparc/bits/link.h: Likewise.
2826         * sysdeps/sh/bits/link.h: Likewise.
2827         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
2828         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
2829         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
2830         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2831
2832 2008-12-01  Fredrik Unger  <fred@tree.se>
2833
2834         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
2835         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
2836         _FP_UNPACK_RAW_2, fix up first argument.
2837
2838 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
2839
2840         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
2841         (GET_NPROCS_PARSER): Change parameters and use next_line.
2842         (__get_nprocs): Rewrite to not use stdio routines.
2843         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
2844         Change parameters and use next_line.
2845
2846 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
2847
2848         [BZ #5381]
2849         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
2850         Change mempool_alloc prototype.
2851         * nscd/mem.c (gc): Don't handle mem_in_flight.
2852         (mempool_alloc): Third parameter now only indicates whether this is the
2853         first call (to allocate data) or not.  If it is, get db rdlock.
2854         Release it on error.  Don't handle mem_in_flight.
2855         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
2856         Adjust third parameter of mempool_alloc calls.
2857         Nothing to do here in case mempool_alloc fails.
2858         Avoid local variable shadowing parameter.  No need to get db rdlock
2859         before calling cache_add.
2860         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
2861         no mem_in_flight array anymore.
2862         * nscd/connections.c: Remove definition and handling of mem_in_flight.
2863         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
2864         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
2865         in case mempool_alloc fails. No need to get db rdlock before calling
2866         cache_add.
2867         * nscd/hstcache.c (cache_addhst): Likewise.
2868         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2869         * nscd/servicescache.c (cache_addserv): Likewise.
2870         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
2871
2872 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
2873
2874         * po/lt.po: Update from translation team.
2875
2876 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
2877
2878         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
2879         defined, allow additional data to be added using the optional
2880         MORE_ELF_HEADER_DATA macro.
2881         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
2882         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
2883
2884 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
2885
2886         * include/atomic.h: Define catomic_and if not already defined.
2887         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
2888         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2889
2890 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
2891
2892         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
2893         Change all callers.
2894         (_int_realloc): Likewise.  Third argument is now padded size
2895         All _int_* functions are now static.
2896
2897         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
2898         * malloc/arena.c: Likewise.
2899         * include/malloc.h: Remove now unnecessary declarations of the _int_*
2900         functions.
2901
2902         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
2903         easily.
2904
2905         * malloc/malloc.c: Add branch prediction for use of the hooks.
2906
2907         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
2908
2909 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2910
2911         [BZ #7095]
2912         * bits/confname.h: Add SUSv7 macros for getconf environments.
2913         * bits/environments.h: Likewise.
2914         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
2915         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
2916         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
2917         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
2918         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
2919         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
2920         * posix/getconf.c: Likewise.
2921         * posix/sysconf.c: Likewise.
2922         * sysdeps/posix/sysconf.c: Likewise.
2923         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
2924         environments.
2925
2926 2009-01-16  Petr Baudis  <pasky@suse.cz>
2927
2928         [BZ #9753]
2929         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
2930         even if we currently have zero nscount.
2931
2932 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2933
2934         [BZ #9781]
2935         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
2936         the input line is too long.
2937
2938         * po/Makefile (libc.pot): Add f_print as function taking c-format
2939         parameter.
2940
2941         * debug/xtrace.sh: Unify translatable messages.
2942         * elf/ldd.bash.in: Likewise.
2943         * elf/sprof.c: Likewise.
2944         * locale/programs/locale.c: Likewise.
2945         * malloc/memusage.sh: Likewise.
2946         * nss/getent.c: Likewise.
2947
2948 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
2949
2950         * debug/pcprofiledump.c (print_version,
2951         argp_program_version_hook): New function.
2952         * elf/ldconfig.c (more_help): New function.
2953         (argp): Use it.
2954         * elf/sln.c (usage): New function.
2955         (main): Support --help and --version.
2956         * malloc/memusagestat.c (print_version): New function.
2957         (argp_program_version_hook): New variable.
2958         * nscd/nscd.c (more_help): New function.
2959         (argp): Use it.
2960         * posix/getconf.c (main): Send --version output to stdout.
2961         Support --help.
2962         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
2963         arguments.  All callers changed.
2964         (print_version): New function.
2965         (parseargs): Support --help and --version.
2966         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
2967         changed.
2968         (print_version): New function.
2969         (main): Use getopt_long.  Support --help and --version.
2970         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
2971         --version.
2972
2973 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
2974
2975         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
2976         (update_data): Fix handling of wrapping back
2977         to the beginning of the buffer.
2978
2979         [BZ #9823]
2980         * stdio-common/psignal.c (psignal): Fix test for empty string.
2981
2982 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
2983
2984         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
2985         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
2986         move _null_auth to .rodata.
2987
2988         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
2989         value of 24.
2990
2991         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
2992
2993         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
2994         today than when the original code was written.  Use larger
2995         buffers.  This also makes it unnecessary to have stat information,
2996         if this causes extra efforts.
2997         (__opendir): In case O_DIRECTORY works, don't call fstat just for
2998         __alloc_dir.
2999
3000 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
3001
3002         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3003         is set.
3004         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3005         * sysdeps/sh/sh4/__longjmp.S: Likewise.
3006         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3007         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3008         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3009         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3010
3011 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3012
3013         * po/ru.po: Update from translation team.
3014
3015 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
3016
3017         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3018         Add _tid slot to maintain consistency with kernel.
3019
3020 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
3021
3022         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3023         incomplete characters at end of input buffer.
3024         * libio/Makefile (tests): Add tst-fgetwc.
3025         * libio/tst-fgetwc.c: New file.
3026         * libio/tst-fgetwc.input: New file.
3027
3028 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
3029
3030         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3031
3032 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
3033
3034         [BZ #9793]
3035         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3036         *OUTBUFSTART unless the whole output fit into the buffer.
3037         * iconv/Makefile (tests): Add tst-iconv4.
3038         * iconv/tst-iconv4.c: New file.
3039
3040 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
3041
3042         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3043         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3044
3045 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
3046
3047         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3048         newer linker scripts.
3049
3050 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3051
3052         [BZ #7040]
3053         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3054         inotify_rm_watch should have type int.
3055
3056 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
3057
3058         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3059         Make aligned_restore_vmx a local symbol.
3060         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3061         Likewise.
3062
3063 2009-01-30  Andreas Jaeger  <aj@suse.de>
3064
3065         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3066         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3067         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3068         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3069         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3070         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3071         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3072
3073 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
3074
3075         [BZ #9726]
3076         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3077         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3078
3079 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
3080
3081         [BZ #9726]
3082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3083         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3085         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3086
3087 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
3088
3089         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3090         memcpy instead of memcmp.
3091         (_dl_setup_pointer_guard): Likewise.
3092
3093 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
3094
3095         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3096         manipulated brk, use malloc_printerr.
3097         * misc/sbrk.c (__sbrk): Better error handling for nonsense
3098         requests.
3099
3100 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
3101
3102         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3103         rindex): For C++ add inlines so that they can be recognized as
3104         builtins.
3105         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3106
3107 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3108             Jakub Jelinek  <jakub@redhat.com>
3109
3110         * string/string.h: Define correct C++ prototypes for gcc 4.4.
3111         * wcsmbs/wchar.h: Likewise.
3112
3113 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
3114
3115         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3116         (stackinfo_sub_sp): Define.
3117
3118 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3119
3120         [BZ #9750]
3121         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3122         * include/alloca.h (alloca_account): Define.
3123         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3124         (stackinfo_sub_sp): Define.
3125
3126         * nscd/connections.c (nscd_init): If database file access fails
3127         check whether this is due to permission problems and bail in that
3128         case.
3129
3130         [BZ #9741]
3131         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3132         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3133
3134 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3135
3136         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3137         Add "t" to clobber list.
3138         (INTERNAL_SYSCALL_NCS): Likewise.
3139
3140 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
3141
3142         * nss/getent.c (print_networks): Don't print comma between aliases.
3143
3144 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
3145
3146         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3147
3148         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3149         the hash table.
3150         * misc/Makefile (tests): Add bug-hsearch1.
3151         * misc/bug-hsearch1.c: New file.
3152
3153 2009-01-22  Roland McGrath  <roland@redhat.com>
3154
3155         * Makeconfig (%.v.i): Strip trailing # comments,
3156         not only whole-line comments.
3157
3158 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
3159
3160         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3161         one parameter.  If non-NULL use it to initialize return value.
3162         (_dl_setup_pointer_guard): New function.
3163         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3164         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3165         * elf/rtld.c (security_init): Pass _dl_random to
3166         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
3167         pointer_chk_guard.
3168         * elf/dl-sysdep.c (_dl_random): New variable.
3169         (_dl_sysdep_start): Handle AT_RANDOM.
3170         (_dl_show_auxv): Likewise.
3171         * elf/dl-support.c (_dl_random): New variable.
3172         (_dl_aux_init): Handle AT_RANDOM.
3173         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3174         to _dl_setup_stack_chk_guard.
3175
3176         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3177
3178 2009-01-10  Roland McGrath  <roland@redhat.com>
3179
3180         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3181
3182 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
3183
3184         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3185
3186         [BZ #9706]
3187         * nss/nss_files/files-parse.c (strtou32): New function.
3188         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3189         across 32-bit and 64-bit platforms.
3190         (INT_FIELD_MAYBE_NULL): Likewise.
3191
3192 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
3193
3194         [BZ #9720]
3195         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3196         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3197         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3198         Likewise.
3199
3200 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
3201
3202         [BZ #697]
3203         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3204         being NULL also if there are no backreferences.
3205         * posix/rxspencer/tests: Add testcases.
3206
3207 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
3208
3209         [BZ #9697]
3210         * posix/bug-regex17.c: Add testcases.
3211         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3212         handling.
3213
3214 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3215
3216         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3217         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3218         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3219         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3220         for elf subdir.
3221         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3222         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3223         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3224         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3225         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3226         * sysdeps/unix/sysv/linux/s390/Versions: New file.
3227
3228 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
3229
3230         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3231         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3232         re_string_skip_chars, re_string_reconstruct): Likewise.
3233         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3234
3235 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
3236
3237         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3238         adjust the buffer alignment.
3239
3240 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3241
3242         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3243         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3244         net/route.h.
3245
3246         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3247         flavor to description only when flavor is not NULL.
3248
3249         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3250         mutex after SIGIO/SIGURG lookup loop.
3251
3252 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3253
3254         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3255
3256 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
3257
3258         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3259         handling.
3260
3261 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
3262
3263         * sysdeps/unix/sysv/linux/kernel-features.h
3264         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3265
3266         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3267         if no output is written.
3268
3269         * version.h: Bump to 2.10 development.
3270
3271         * posix/getconf.c: Update copyright year.
3272         * nss/getent.c: Likewise.
3273         * iconv/iconvconfig.c: Likewise.
3274         * iconv/iconv_prog.c: Likewise.
3275         * elf/ldconfig.c: Likewise.
3276         * catgets/gencat.c: Likewise.
3277         * csu/version.c: Likewise.
3278         * elf/ldd.bash.in: Likewise.
3279         * elf/sprof.c (print_version): Likewise.
3280         * locale/programs/locale.c: Likewise.
3281         * locale/programs/localedef.c: Likewise.
3282         * nscd/nscd.c (print_version): Likewise.
3283         * debug/xtrace.sh: Likewise.
3284         * malloc/memusage.sh: Likewise.
3285         * malloc/mtrace.pl: Likewise.
3286         * debug/catchsegv.sh: Likewise.
3287
3288 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
3289
3290         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3291         script.
3292
3293 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
3294
3295         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3296         gethostbyname4_r function call succeeded, just leave the loop.
3297
3298         [BZ #9694]
3299         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3300         very end.
3301         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3302         * wctype/Makefile (tests): Add bug-wctypeh.
3303         * wctype/bug-wctypeh.c: New file.
3304
3305         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3306         LOCALDOMAIN is defined.
3307         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3308
3309         * sysdeps/x86_64/bits/select.h: New file.
3310
3311         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3312
3313 2008-12-21  Bruno Haible  <bruno@clisp.org>
3314
3315         [BZ #9677]
3316         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3317         if no output is written.
3318
3319 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
3320
3321         * login/utmp_file.c (pututline_file): Replace call to dup2 with
3322         libc internal symbol __dup2 to avoid access through the PLT.
3323
3324 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
3325
3326         [BZ #6545]
3327         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3328         available only for __USE_GNU.
3329
3330         * inet/Makefile (tests): Add tst-getni2.
3331         * inet/tst-getni2.c: New file.
3332
3333         [BZ #7080]
3334         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3335         NULL when NI_NAMEREQD is set.
3336         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3337         * inet/Makefile (tests): Add tst-getni1.
3338         * inet/tst-getni1.c: New file.
3339
3340 2008-12-03  Petr Baudis  <pasky@suse.cz>
3341
3342         [BZ #7067]
3343         * nscd/connections.c (invalidate_cache): Use prune_run_lock
3344         instead of prune_lock.
3345         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3346         * nscd/nscd.h (database_dyn): Add prune_run_cache.
3347
3348 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
3349
3350         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3351         use.
3352
3353         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3354         handling.
3355
3356         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3357         after reading name server list.
3358
3359         [BZ #7058]
3360         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3361         handling for host name aliases.
3362
3363 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
3364
3365         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3366         instead of doing things manually.
3367
3368 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
3369
3370         * posix/regex_internal.h (build_wcs_upper_buffer):
3371         Return type is reg_error_t.
3372
3373 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
3374
3375         * posix/globtest.sh: Use mktemp to create temporary file and
3376         directory.
3377
3378         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3379         sets correctly.
3380         (__CPU_CLR_S): Likewise.
3381         (__CPU_ISSET_S): Likewise.
3382
3383 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
3384             Ulrich Drepper  <drepper@redhat.com>
3385
3386         * scripts/firstversion.awk: Use custom comparison function to compare
3387         version numbers.
3388         * scripts/versions.awk: Use sort invocation which can handle
3389         multi-digit sub-version numbers.
3390
3391 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
3392
3393         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
3394         * locale/iso-639.def: Add Chhattisgarhi entry.
3395
3396 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
3397
3398         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
3399         ESRCH return value.
3400         (_nss_dns_gethostbyname4_r): Likewise.
3401         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
3402         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
3403         gethostbyname4_r, we don't have a separate IPv6 status, so copy
3404         the no_data variable.
3405
3406         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
3407         information at the correct index.
3408
3409         * socket/sys/socket.h: Declare accept4.
3410         * socket/accept4.c: New file.
3411         * sysdeps/unix/sysv/linux/accept4.c: New file.
3412         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
3413         * socket/Makefile (routines): Add accept4.
3414         * socket/Versions: Export accept4 with version GLIBC_2.10.
3415         * socket/paccept.c: Removed.
3416         * sysdeps/unix/sysv/linux/paccept.c: Removed.
3417         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
3418         * Versions.def: Define GLIBC_2.10 for libc.
3419         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
3420
3421         * nscd/connections.c: Use accept4.
3422
3423         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
3424
3425 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
3426
3427         * resolv/res_send.c (send_dg): Create sockets with non-blocking
3428         flag already set.
3429
3430         * stdlib/setenv.c (unsetenv): Don't search environment if it does
3431         not exist.
3432         * stdlib/Makefile (tests): Add tst-unsetenv1.
3433         * stdlib/tst-unsetenv1.c: New file.
3434
3435 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
3436
3437         * login/utmp_file.c (file_writable): New variable.
3438         (setutent_file): Don't try to open file for writing.
3439         (pututline_file): Before writing, make descriptor writable if
3440         necessary.
3441
3442 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
3443
3444         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
3445         to IPv4 or IPv6 if an interface has been found.
3446
3447 2008-11-26  Roland McGrath  <roland@redhat.com>
3448
3449         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
3450         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
3451
3452         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
3453         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
3454         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
3455
3456         * elf/elf.h (NT_386_IOPERM): New macro.
3457         (NT_PPC_VSX): New macro.
3458
3459 2008-11-25  Roland McGrath  <roland@redhat.com>
3460
3461         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
3462         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
3463         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
3464         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
3465         Subdirectories moved to ports repository.
3466         * configure.in (base_machine): Remove alpha case.
3467
3468 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
3469
3470         * sysdeps/mach/strerror_l.c: New file.
3471
3472 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
3473
3474         [BZ #6411]
3475         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
3476         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
3477         magic numbers.
3478         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
3479         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
3480         (relax_fenv_state): Same as above.
3481         (FPSCR_29): Reserve bit in ISA 2.05.
3482         (FPSCR_NI): Provide define for compat.
3483         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
3484         magic numbers.
3485         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
3486         magic numbers.
3487         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
3488         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
3489         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
3490         access to hwcap to account for hwcap size increase to uint64_t.
3491         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
3492         Likewise.
3493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3494         (*setcontext): Likewise.
3495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3496         New file.
3497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3498         New file.
3499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3500         (*setcontext): dynamically select mtfsf insn based on
3501         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3502         increase to uint64_t.
3503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3504         (*swapcontext): dynamically select mtfsf insn based on
3505         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
3506         increase to uint64_t.
3507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3508         New file.
3509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3510         New file.
3511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3512         (*setcontext): dynamically select mtfsf insn based on
3513         PPC_FEATURE_HAS_DFP.
3514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3515         (*swapcontext): dynamically select mtfsf insn based on
3516         PPC_FEATURE_HAS_DFP.
3517
3518 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
3519
3520         * version.h: Bump for 2.9 release.
3521         * include/features.h (__GLIBC_MINOR__): Bump to 9.
3522
3523         [BZ #7029]
3524         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
3525         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
3526         all the rounding.
3527
3528 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
3529
3530         [BZ #7009]
3531         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
3532         unknown request types for now.
3533
3534 2008-11-11  Roland McGrath  <roland@redhat.com>
3535
3536         * sysdeps/x86_64/configure: New file.
3537
3538         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
3539         * configure: Regenerated.
3540
3541 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3542
3543         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
3544         correct instruction to remove the stack frame.
3545
3546 2008-11-03  Michael Matz  <matz@suse.de>
3547
3548         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
3549         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
3550
3551 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
3552
3553         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
3554         Remove.
3555
3556         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
3557         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
3558         of the thread variable instead of void *.
3559         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
3560         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
3561         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3562         __libc_tsd_define arguments.
3563         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
3564         __libc_tsd_address arguments.  Remove union hack.
3565         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
3566         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
3567         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
3568         Adjust __libc_tsd_{set,get} arguments.
3569         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3570         __libc_tsd_define arguments.
3571         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
3572         arguments.
3573         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3574         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
3575         (LOCALE): Adjust __libc_tsd_define arguments.
3576         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
3577         arguments.
3578         (LOCALE): Adjust __libc_tsd_define arguments.
3579         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
3580         arguments.
3581         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
3582         arguments.
3583
3584 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
3585
3586         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
3587         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3588
3589 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
3590
3591         [BZ #6966]
3592         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
3593
3594 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
3595             Ulrich Drepper  <drepper@redhat.com>
3596
3597         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
3598         definition for GCC 3.1 and later.
3599
3600 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
3601
3602         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
3603         refetch dtv, as it might have changed.
3604         * elf/Makefile: Add rules to build and run tst-tls18.
3605         * elf/tst-tls18.c: New test.
3606         * elf/tst-tlsmod18a.c: New file.
3607
3608 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
3609
3610         [BZ #6875]
3611         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
3612
3613 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
3614
3615         [BZ #6867]
3616         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
3617
3618         [BZ #6919]
3619         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
3620         Fix length of copy operation.
3621
3622 2008-10-02  Pierre Habouzit <madcoder@debian.org>
3623
3624         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
3625         and fix its calling convention.
3626
3627 2008-10-07  Andreas Schwab  <schwab@suse.de>
3628
3629         [BZ #6942]
3630         * resolv/res_send.c (send_vc): Fix last change.
3631         (send_dg): Align here as well.
3632
3633 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
3634
3635         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
3636         return value in case rlimit is RLIM_INFINITY.
3637
3638         [BZ #6947]
3639         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
3640         for UL_SETFSIZE.
3641         * resource/Makefile (tests): Add bug-ulimit1.
3642         * resource/bug-ulimit1.c: New file.
3643
3644         [BZ #6974]
3645         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
3646         without dot.  Properly terminate the string with a null byte.
3647         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
3648
3649         [BZ #6980]
3650         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
3651         negative sizees.
3652         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
3653         negative __size.
3654
3655         [BZ #6995]
3656         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
3657
3658 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
3659
3660         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
3661         abort if there is no initgroups_dyn function.
3662
3663         * resolv/res_send.c (send_dg): On timeout, only return nonzero
3664         result if any of the queries really provided an answer.
3665
3666 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
3667
3668         * po/lt.po: Update from translation team.
3669
3670 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
3671
3672         * po/id.po: Update from translation team.
3673
3674 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
3675
3676         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
3677         Fix tests for existence of second reply.
3678
3679 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
3680
3681         * po/id.po: New file.
3682         Contributed by the Indonesian translation team.
3683
3684 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
3685
3686         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
3687         initialization.
3688
3689 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
3690
3691         * elf/Makefile: Add rules to build and run tst-tls17.
3692         * elf/tst-tls17.c: New test.
3693         * elf/tst-tlsmod17a.c: New file.
3694         * elf/tst-tlsmod17b.c: Likewise.
3695
3696 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
3697
3698         * stdlib/divmod_1.c: Use correct type for dummy variable.
3699         * stdlib/mod_1.c: Likewise.
3700
3701 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
3702
3703         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
3704
3705 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
3706
3707         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
3708         __nonnull order for C++.
3709         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
3710         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
3711
3712 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
3713
3714         * stdlib/longlong.h: Update from GCC.
3715
3716 2008-10-09  Jakub Jelinek <jakub@redhat.com>
3717             David S. Miller  <davem@davemloft.net>
3718
3719         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
3720         make sure any registers used with 64-bit 'branch-on-register'
3721         instructions have their top 32-bits clear.
3722         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
3723         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
3724
3725 2008-09-18  Andreas Schwab  <schwab@suse.de>
3726
3727         [BZ #6942]
3728         * resolv/res_send.c (send_vc): Fix use of unaligned address.
3729         Properly handle partial reads.
3730
3731 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
3732
3733         * elf/elf.h (STO_MIPS_PLT): New.
3734         (R_MIPS_COPY): New.
3735         (R_MIPS_JUMP_SLOT): New.
3736         (R_MIPS_NUM): Redefine to 128.
3737         (DT_MIPS_PLTGOT): New.
3738         (DT_MIPS_RWPLT): New.
3739         (DT_MIPS_NUM): Redefine to 0x35.
3740
3741 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
3742
3743         * timezone/africa: Update from tzdata2008f.
3744         * timezone/asia: Likewise.
3745         * timezone/australasia: Likewise.
3746         * timezone/europe: Likewise.
3747         * timezone/leapseconds: Likewise.
3748         * timezone/northamerica: Likewise.
3749         * timezone/southamerica: Likewise.
3750         * timezone/zone.tab: Likewise.
3751
3752 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
3753
3754         * nscd/connections.c: Disable use of paccept for now.
3755
3756 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
3757
3758         * socket/Versions: Remove paccept export for GLIBC_2.9.
3759         * socket/Makefile (routines): Remove paccept.
3760         * socket/sys/socket.h: Remove paccept declaration.
3761
3762         * po/sv.po: Update from translation team.
3763
3764 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
3765
3766         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
3767         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3768
3769 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
3770
3771         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
3772         Patch by Olivier Fourdan <ofourdan@redhat.com>.
3773
3774 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
3775
3776         * sunrpc/rpc/svc.h: Declare svcfd_create.
3777         Patch by Michael Solberg <msolberg@redhat.com>.
3778
3779 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
3780             Ulrich Drepper  <drepper@redhat.com>
3781
3782         * malloc/malloc.c (public_vALLOc): Try other arenas in case
3783         _int_valloc fails.
3784         (public_pVALLOc): Likewise.
3785
3786 2008-09-02  Andreas Jaeger  <aj@suse.de>
3787
3788         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
3789         commit.
3790
3791 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
3792
3793         [BZ #6860]
3794         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
3795
3796 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
3797
3798         * Makefile (check-data): Check data directory in add-ons.
3799         * elf/Makefile (check-data): Likewise.
3800
3801 2008-08-18  Roland McGrath  <roland@redhat.com>
3802
3803         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
3804         * configure: Regenerated.
3805         * config.make.in (cflags-cpu): New substituted variable.
3806         (with-cpu): Variable removed.
3807         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
3808
3809 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
3810
3811         [BZ #6845]
3812         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
3813         __signbitl definition and __LONG_DOUBLE_128__ guard from:
3814         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
3815         redundant.  Functions which call floating point assembler operations
3816         should go into a sysdeps powerpc/fpu directory.
3817
3818 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
3819
3820         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
3821         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3822
3823 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
3824
3825         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
3826
3827         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
3828         change related to AT_EXECFN.  We cannot use that string.
3829         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
3830         _dl_execfn member.
3831         * elf/dl-support.c: Remove _dl_execfn variable.
3832         (_dl_aux_init): Remove handling of AT_EXECFN.
3833         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
3834         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
3835
3836 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
3837
3838         [BZ #6544]
3839         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
3840         byte gets added to writes and seeks from the end use the length of
3841         the buffer and not the currently terminating NUL byte.
3842
3843         [BZ #6634]
3844         * login/utmp_file.c (getutent_r_file): Take additional parameter.
3845         Set to true if locking failed.
3846         (getutid_r_file): Adjust caller.
3847         (pututline_file): Likewise.  Return NULL in this case.
3848         Patch mostly by halesh.s@gmail.com.
3849
3850 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
3851
3852         [BZ #6589]
3853         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
3854         Define.
3855         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
3856
3857 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
3858
3859         [BZ #6839]
3860         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
3861         macro since it is now available in elf/dynamic-link.h.
3862
3863 2008-08-12  Roland McGrath  <roland@frob.com>
3864
3865         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
3866         in case used outside of libc.
3867         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
3868
3869 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
3870
3871         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
3872         directly instead of going through dn_comp.
3873
3874 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
3875
3876         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3877         Fix asm constraints.
3878
3879 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
3880
3881         [BZ #6790]
3882         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
3883         (IPV6_PMTUDISC_PROBE): Likewise.
3884
3885 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
3886
3887         [BZ #6791]
3888         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
3889
3890 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
3891             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3892
3893         [BZ #6817]
3894         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
3895         Added the members 'vsx' and 'arch_2_06'.
3896         (_dl_powerpc_platforms): Add the member 'power7'.
3897         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
3898         to reflect the changes required by VSX and ISA 2.06.
3899         Modify _DL_PLATFORMS_COUNT to reflect the addition of
3900         'power7'.
3901         Defined PPC_PLATFORM_POWER7.
3902         (_dl_string_platform): Add support for POWER7.
3903         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
3904         capability and ISA 2.06.
3905
3906 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
3907
3908         [BZ #6824]
3909         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
3910         macro to detect use of 128 bit long double.
3911         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
3912
3913 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
3914
3915         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
3916
3917         [BZ #5794]
3918         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
3919         parameters.
3920         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3921         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3922
3923 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
3924
3925         * nscd/connections.c (main_loop_poll): Pass a buffer which is
3926         guaranteed to be large enough to read inotify event.  Ignore
3927         EAGAIN error.  Better error message.  Add branch predicition.
3928         (main_loop_epoll): Likewise.
3929
3930 2008-08-02  Roland McGrath  <roland@frob.com>
3931
3932         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3933         Add memory clobbers.
3934
3935 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
3936
3937         * manual/arith.texi: Avoid @strong{Note:}.
3938         * manual/creature.texi: Likewise.
3939         * manual/filesys.texi: Likewise.
3940         * manual/math.texi: Likewise.
3941         * manual/memory.texi: Likewise.
3942         * manual/resource.texi: Likewise.
3943         * manual/syslog.texi: Likewise.
3944         * manual/time.texi: Likewise.
3945
3946         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
3947         to prevent warning.
3948
3949 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
3950
3951         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
3952         new epoll_create1 interface.
3953         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3954         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
3955         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3956
3957         * include/arpa/nameser.h (NS_GET16): Use const pointer.
3958         (NS_GET32): Likewise.
3959
3960         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
3961         syscalls, too.
3962
3963         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
3964         use the AT_EXECFN value if it is no absolute path.
3965         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
3966         __ASSUME_AT_EXECFN.
3967
3968         * Versions.def: Add GLIBC_2.9 to libresolv.
3969         * include/resolv.h: Remove hidden proto declarations for __ns_*
3970         functions.  Add them for __dn_count_labels and __p_secstodate.
3971         * include/arpa/nameser.h: Add a number of hidden proto declarations.
3972         Define ns_msg_getflags macro here.
3973         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
3974         and __p_secstodate.
3975         * resolv/Versions: Export functions from <arpa/nameser.h> from
3976         libresolv in version GLIBC_2.9.
3977         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
3978         hidden definitions.
3979         * resolv/ns_netint.c: Likewise.
3980         * resolv/ns_parse.c: Likewise.
3981         * resolv/ns_print.c: Likewise.
3982         * resolv/ns_samedomain.c: Likewise.
3983         * resolv/ns_ttl.c: Likewise.
3984         * resolv/arpa/nameser_compat.h: Likewise.
3985         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
3986         function calls.
3987         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
3988         instead of ns_get16.
3989         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
3990         __ns_get32 instead of ns_get16 and ns_get32 respectively.
3991         (gaih_getanswer_slice): Likewise.
3992         * resolv/Makefile (libresolv-routines): Add ns_date.
3993         * resolv/ns_date.c: New file.
3994
3995         * elf/Makefile (check-localplt.out): Also check libresolv and
3996         libcrypt.
3997
3998 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
3999
4000         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4001         __ASSUME_O_CLOEXEC.
4002
4003 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
4004
4005         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4006         buffer passed to NSS functions.
4007
4008         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
4009
4010         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4011         Define.
4012
4013         * misc/syslog.c (openlog_internal): Fix compile problem.
4014
4015 2008-07-28  Roland McGrath  <roland@redhat.com>
4016
4017         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4018
4019 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
4020
4021         * io/ftw.c (add_object): Remove inline to avoid warning.
4022
4023         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4024
4025         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4026         Use it instead of locally defined resplen2 variable.
4027         (res_nsend): Adjust for __libc_res_nsend interface change.
4028         (send_vc): Initialize *resplen2 if necessary.  Read length of
4029         package into an appropriately aligned variable.  Store converted length
4030         in new variable and use it appropriately.
4031         Add branch prediction help.
4032         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4033         and pass it on to __libc_res_nsend.  Adjust all callers.
4034         (__libc_res_nsearch): Likewise.
4035         (__libc_res_nqeurydomain): Likewise.
4036         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4037         change.
4038         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4039         Define resplen2 variable and pass it to __libc_res_nsearch and then
4040         to gaih_getanswer.
4041         (getanswer_r): In case of incorrect DNS data don't overread buffer.
4042         Add branch prediction.
4043         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
4044         (gaih_getanswer): Don't decode second slice if first one failed due
4045         to a too small buffer.  Don't let not found status of second
4046         decoder shadow results of the first.
4047         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4048         and __libc_res_nquery interface changes
4049         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4050         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4051         __libc_res_nsearch, and __libc_res_nsend.
4052         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4053         change.
4054         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4055         __libc_res_nsearch interface changes.
4056
4057 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
4058
4059         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4060
4061         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4062         file descriptors with close-on-exec set.
4063         (exec_comm_child): Fix the case where the write end of the pipe is
4064         STDOUT_FILENO already.  In case it is, clear close-on-exec.
4065
4066         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4067         * io/pipe2.c: Likewise.
4068         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4069         instead of __ASSUME_PACCEPT.
4070         * include/unistd.h: Declare __have_pipe2.
4071         * libio/iopopen.c: Implement "e" flag.
4072         * libio/Makefile (tests): Add tst-popen1.
4073         * libio/tst-popen1.c: New file.
4074
4075         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4076         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4077
4078 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4079
4080         [BZ #6771]
4081         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4082         success call of _IO_SEEKOFF or calls which failed because the
4083         descriptor is for a pipe.
4084
4085         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4086         magic number.
4087
4088         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4089
4090         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
4091         F_SETFD use if we know fopen set the flag.
4092
4093         * login/utmp_file.c (setutent_file): Minor optimization in case
4094         O_CLOEXEC is available.
4095
4096 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
4097
4098         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4099         * elf/Makefile: Use pie-ccflag variable.
4100         * nscd/Makefile: Likewise.
4101         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4102
4103 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
4104
4105         [BZ #6724]
4106         * Versions.def: Add GLIBC_2.9 version tag for libutil.
4107         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4108         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
4109         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4110         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
4111         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4112         utmp32, utmpx32 and login32.
4113         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4114         versions of struct utmp functions to libc and libutil.
4115         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4116         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4117         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4118         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4119         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4120         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4121         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4122         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4123         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4124         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4125         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4126         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4127         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4128         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4129         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4130         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4131         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4132         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4133         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4134         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4135         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4136         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4137
4138 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
4139
4140         * scripts/gen-as-const.awk: Generate more widely usable code by
4141         using 64-bit arithmetic.
4142
4143         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
4144         the same treatment as narrow output code in last patch.
4145
4146         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4147
4148         [BZ #6763]
4149         * elf/dl-load.c (local_strdup): Remove inline.
4150         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4151         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4152         part of the object.
4153
4154         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4155
4156 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
4157
4158         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4159         the new syscalls, too.
4160
4161         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4162         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4163
4164         [BZ #6698]
4165         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4166         parameter for end of buffer.  If temporary copy is too large use
4167         malloc.
4168         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4169         interface change.
4170         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
4171         string rewrite when allocating buffer.
4172
4173         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4174         syscalls, too.
4175
4176         * nscd/connections.c (nscd_init): Clean up fcntl call.
4177
4178         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4179         SOCK_NONBLOCK if possible.
4180
4181         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4182         SOCK_CLOEXEC if available.
4183
4184         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4185         __libc_clntudp_bufcreate_internal.
4186         * include/sys/socket.h: Declare __have_sock_cloexec.
4187         * socket/Makefile (aux): Add have_sock_cloexec.
4188         * socket/have_sock_cloexec.c: New file.
4189         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4190         __libc_clntudp_bufcreate.
4191         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4192         which takes an additional parameter.  Create socket with non-blocking
4193         mode and close-on-exec flag set, if wanted.
4194         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4195         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4196         instead of clntudp_create.  The socket has already the close-on-exec
4197         flag set if SOCK_CLOEXEC is defined.
4198
4199 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
4200
4201         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4202         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4203         appropriate.
4204         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4205         non-blocking mode by using socket, paccept, and inotify_init1.
4206
4207         * Versions.def (glibc): Add GLIBC_2.9.
4208         * io/Makefile (routines): Add dup3 and pipe2.
4209         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4210         * io/dup3.c: New file.
4211         * io/pipe2.c: New file.
4212         * posix/unistd.h: Declare dup3 and pipe2.
4213         * socket/Makefile (routines): Add paccept.
4214         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4215         * socket/paccept.c: New file.
4216         * socket/sys/socket.h: Declare paccept.
4217         * sysdeps/unix/syscalls.list: Add entry for dup3.
4218         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4219         epoll_create2 and inotify_init1.
4220         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4221         * sysdeps/unix/sysv/linux/paccept.c: New file.
4222         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4223         possible.
4224         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4225         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4226         inotify_init1, and pipe2 entries.
4227         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4228         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4229         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4230         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4231         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4232         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4233         SOCK_NONBLOCK.
4234         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4235         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4236         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4237         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4238         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4239         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4240         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4241         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4242         EPOLL_NONBLOCK.  Declare epoll_create2.
4243         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4244         EFD_NONBLOCK.
4245         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4246         IN_NONBLOCK.  Declare inotify_init1.
4247         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4248         SFD_NONBLOCK.
4249         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4250         TFD_NONBLOCK.
4251
4252         * elf/elf.h: Define AT_EXECFN.
4253         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4254         LD_ORIGIN_PATH.
4255         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4256         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
4257         if __ASSUME_AT_EXECFN is defined.
4258         (_dl_aux_init): Handle AT_EXECFN.
4259         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4260         for 2.6.27 and up.
4261         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4262         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4263         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4264         _dl_execfn if available and avoid compatibility code if
4265         __ASSUME_AT_EXECFN is defined.
4266
4267         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4268         _dl_discover_osversion only for older kernels.
4269
4270 2008-07-22  Roland McGrath  <roland@frob.com>
4271
4272         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4273
4274 2008-07-21  Roland McGrath  <roland@frob.com>
4275
4276         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4277         returned too much data out of line.
4278
4279 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
4280
4281         * locale/setlocale.c (setname): Remove inline to avoid compiler
4282         warning.
4283
4284         [BZ #6712]
4285         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4286
4287 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
4288
4289         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4290         doesn't manage to write anything, fail.
4291
4292         * malloc/hooks.c (__malloc_check_init): Remove printf.
4293
4294 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4295
4296         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4297
4298 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
4299
4300         * nscd/connections.c (main_loop_poll): Fix handling of read errors
4301         from inotify.
4302         (main_loop_epoll): Likewise.
4303
4304 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
4305
4306         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4307
4308         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4309         if DEBUG is defined.
4310
4311         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4312         query.  Adjust buffer size computation for padding.
4313
4314 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
4315
4316         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4317         * stdio-common/tst-setvbuf1.c: New file.
4318         * stdio-common/tst-setvbuf1.expect: New file.
4319
4320         [BZ #6719]
4321         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4322         when selecting fully-buffered stream.
4323         Patch by Wang Xin <wxinee@gmail.com>.
4324
4325 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4326
4327         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4328         (__open_2): New function.
4329         (__open64_2): New alias to __open_2.
4330         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4331         (__openat_2): New function.
4332         (__openat64_2): New alias to __openat_2.
4333
4334 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
4335
4336         [BZ #6723]
4337         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4338
4339 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4340
4341         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4342         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4343         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4344         __hurd_dfail.
4345         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4346         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4347         * sysdeps/mach/hurd/send.c (__send): Likewise.
4348         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4349         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4350
4351 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4352
4353         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4354         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4355         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4356         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4357         * hurd/get-host.c (_hurd_get_host_config): Likewise.
4358         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4359
4360 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
4361
4362         [BZ #6657]
4363         * time/strptime_l.c: Don't clear s.era_cnt after successful match
4364         of %EY.
4365         Patch by Petr Baudis.
4366
4367 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
4368
4369         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
4370         Patch by Peter Jones <pjones@redhat.com>.
4371
4372 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4373
4374         [BZ #6654]
4375         * stdlib/canonicalize.c (__realpath): readlink can write too much
4376         into the buffer on platforms without PATH_MAX.
4377
4378 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
4379
4380         [BZ #6653]
4381         * posix/tst-regex.c (main): Rename to...
4382         (do_test): ... this. Remove cmdline option processing.
4383         (TIMEOUT): Define.
4384         (TEST_FUNCTION): Define.
4385         (CMDLINE_OPTIONS): Define.
4386
4387 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
4388
4389         [BZ #5210]
4390         * configure.in: Add -Werror to -fstack-protector test to catch
4391         unsupported architectures.
4392         Patch by Gilles Esponasse <g.esp@free.fr>.
4393
4394 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
4395
4396         * stdlib/tst-setcontext.c: Set back_in_main before exit if
4397         getcontext returns ENOSYS.
4398
4399 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
4400
4401         * nscd/connections.c (main_loop_poll): Fix test for read error.
4402         (main_loop_epoll): Likewise.
4403
4404 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
4405
4406         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
4407         better place so it is not called when nscd is used.
4408
4409         * nscd/connections.c: Also recognize and handle changes to the
4410         resolver configuration file.
4411
4412 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4413
4414         * time/strftime.c: Pass reference to tzset_called around to handle
4415         recursive calls.
4416
4417         [BZ #6612]
4418         * time/strftime.c (__strftime_internal): Call tzset() only
4419         when printing timezone-dependent values.
4420         Based on a patch by Petr Baudis <pasky@suse.cz>.
4421
4422         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
4423         unconditionally use second gaih_getanswer_slice result.
4424
4425         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
4426         (getaddrinfo): RES must always be non-NULL.
4427
4428 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4429
4430         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
4431         cr[34] registers.
4432         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4433         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4434         Likewise.
4435         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
4436         register.
4437
4438 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
4439
4440         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
4441         fields.
4442         * nscd/connections.c (inotify_fd): New variable.
4443         (nscd_init): Try to open an inotify descriptor.
4444         If successful, watch files for databases using inotify instead of
4445         having prune threads stat the files.
4446         (nscd_run_prune): Recognize clear_cache flag being set and call
4447         prune_cache appropriately.
4448         (main_loop_poll): Add inotify descriptor to wait set and handle the
4449         reported changes.
4450         (main_loop_epoll): Likewise.
4451         * nscd/cache.c (prune_cache): Don't stat files for databases if
4452         inotify is used.
4453         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
4454         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
4455
4456         * nscd/grpcache.c (cache_addgr): Correctly compute size of
4457         fixed-size portion of the record.
4458         * nscd/servicescache.c (cache_addserv): Likewise.
4459         * nscd/pwdcache.c (cache_addpw): Likewise.
4460         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4461
4462 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
4463
4464         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
4465         out we don't use uninitialized memory.
4466
4467         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
4468         the client.
4469
4470 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
4471
4472         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
4473         ignore T_DNAME messages.
4474         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
4475
4476 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
4477
4478         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
4479         Avoid segfault if first GETC returns eof/'\0'/'\n'.
4480
4481 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
4482
4483         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
4484         instead of portstr to nscd_getserv_r.  Patch by
4485         Roman Kagan <rkagan@mail.ru>.
4486
4487 2008-05-26  Jim Meyering  <meyering@redhat.com>
4488
4489         Remove more useless "if" tests before "free".
4490         * include/inline-hashtab.h (htab_delete): Likewise.
4491         * libio/freopen.c (freopen): Likewise.
4492         * libio/freopen64.c (freopen64): Likewise.
4493         * locale/programs/ld-collate.c (collate_read): Likewise.
4494         * misc/fstab.c (libc_freeres_fn): Likewise.
4495         * posix/glob.c (globfree): Likewise.
4496
4497 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4498
4499         * string/Makefile (strop-tests): Add memmem.
4500         * string/test-memmem.c: New file.
4501         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
4502         (test_init): Size buf1 according to BUF1PAGES.
4503
4504 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
4505
4506         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
4507         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
4508         (CFLAGS-scanf17.c): New.
4509         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
4510         * stdio-common/scanf15.c (main): Likewise.
4511         * stdio-common/scanf16.c: New file.
4512         * stdio-common/scanf17.c: New file.
4513
4514 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
4515
4516         * resolv/res_send.c (send_dg): If we already have one of two
4517         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
4518         use the one answer insted of failing.
4519
4520 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
4521
4522         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
4523         being executed on PowerPC as the expected result exceeds IBM
4524         long double 128 __LDBL_MAX__.
4525
4526 2008-05-21  Roland McGrath  <roland@redhat.com>
4527
4528         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
4529
4530         * Makefile (check-data): Use $(abi-name) before other guesses.
4531         Look in $(add-ons) dirs before scripts/data/.
4532         * elf/Makefile (check-data): Likewise.
4533
4534         * scripts/soversions.awk: Grok ABI line.
4535         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
4536         Emit definition for abi-name variable.
4537
4538 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
4539
4540         * string/endian.h: Define new fixed-size hto* and *toh macros only
4541         if [__USE_BSD].
4542
4543         * iconvdata/Depend: Add localedata.
4544
4545 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4546
4547         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
4548
4549 2008-05-08  David S. Miller  <davem@davemloft.net>
4550
4551         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
4552         HIDDEN_JUMPTARGET.
4553         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4554         (__SYSCALL_CLOBBERS): Remove %g* registers.
4555         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4556         (__SYSCALL_CLOBBERS): Likewise.
4557         * scripts/data/localplt-sparc-linux-gnu.data: New file.
4558         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
4559
4560 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
4561
4562         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4563         (CALL_ERRNO_LOCATION): Define.
4564         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4565         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4566         (CALL_ERRNO_LOCATION): Define.
4567         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4568         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
4569         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
4570
4571 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
4572
4573         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
4574         variable.
4575
4576 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
4577
4578         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
4579         (FIRST_FRAME_POINTER): Define.
4580
4581 2008-05-09  David S. Miller  <davem@davemloft.net>
4582
4583         * sysdeps/sparc/sparc64/backtrace.c: New file.
4584
4585 2008-05-14  David S. Miller  <davem@davemloft.net>
4586
4587         * sysdeps/sparc/machine-gmon.h: New file.
4588         * sysdeps/sparc/sparc-mcount.S: Likewise.
4589         * sysdeps/sparc/Makefile: Add sparc-mcount target to
4590         sysdep_routines in gmon directory.
4591
4592 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
4593
4594         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
4595
4596 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
4597
4598         * resolv/res_query.c (__libc_res_nquery): In case one of two
4599         answer was too short don't try to read that answer's header.
4600
4601         * resolv/res_send.c (send_dg): In case of timeout and there are
4602         two queries and one has been answered, return value indicating
4603         success.
4604
4605 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
4606
4607         * nscd/cache.c (cache_add): Take additional parameter specifying
4608         whether this is in response of a cache refill.  Check alignment
4609         of package data.  Revamp waking of pruning thread.
4610         (prune_cache): Small optimization.
4611         * nscd/nscd.h: Adjust cache_add prototypes.
4612         * nscd/aicache.c: Adjust cache_add calls.
4613         * nscd/grpcache.c: Likewise.
4614         * nscd/hstcache.c: Likewise.
4615         * nscd/initgrcache.c: Likewise.
4616         * nscd/pwdcache.c: Likewise.
4617         * nscd/servicescache.c: Likewise.
4618         * nscd/connections.c (restart): Really disable cache use before
4619         exec attempt.  If it fails, reenable cache.
4620         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
4621         time to max to be able to notice concurrent cache additions.  Unlock
4622         prune_lock while performing gc.  Afterwards compute wakeup time with
4623         current wakeup_time value in mind.
4624
4625 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
4626
4627         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
4628
4629         * nscd/mem.c (gc): Correctly determine highest used array element
4630         in mark.
4631
4632         * nscd/mem.c (markrange): Add assert to check entries are all
4633         aligned.  Small cleanup in bitmap use.
4634
4635         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
4636         blockoff of type nscd_ssize_t.
4637         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
4638         (mempoll_alloc): Record block offset and not address.
4639
4640         * nscd/mem.c (gc): Fix test for stack overuse.
4641
4642         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
4643         more asserts.
4644
4645         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
4646         entry is available, believe it.
4647
4648         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
4649         no answers return NSS_STATUS_NOTFOUND.
4650         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
4651         buffer does not have any content.
4652
4653 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
4654
4655         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
4656
4657         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
4658         lookup, don't assign canon unconditionally.
4659
4660 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4661
4662         * string/Makefile (distribute): Add str-two-way.h.
4663
4664 2008-03-29  Eric Blake  <ebb9@byu.net>
4665
4666         Rewrite string searches to O(n) rather than O(n^2).
4667         * string/str-two-way.h: New file.  For linear fixed-allocation
4668         string searching.
4669         * string/memmem.c: New implementation.
4670         * string/strstr.c: New implementation.
4671         * string/strcasestr.c: New implementation.
4672
4673 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
4674
4675         * posix/regcomp.c (optimize_utf8): Add a note on why we test
4676         opr.ctx_type.
4677         (calc_first): Initialize constraint field.
4678         (duplicate_node_closure): Use it instead of special casing ANCHORS.
4679         Use search_duplicated_node to avoid loops.  Fix grammar.
4680         (duplicate_node): Merge constraint field for all node types.
4681         (calc_eclosure_iter): Look at constraint field for all node types.
4682         * posix/regex_internal.c (create_cd_newstate): Don't look at
4683         create_cd_newstate.
4684
4685 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4686
4687         [BZ #6428]
4688         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
4689
4690         [BZ #6442]
4691         * string/endian.h: Add macros for fixed-size endian conversion.
4692         * bits/byteswap.h: Allow inclusion from <endian.h>.
4693         * sysdeps/i386/bits/byteswap.h: Likewise.
4694         * sysdeps/ia64/bits/byteswap.h: Likewise.
4695         * sysdeps/s390/bits/byteswap.h: Likewise.
4696         * sysdeps/x86_64/bits/byteswap.h: Likewise.
4697         * string/Makefile (tests): Add tst-endian.
4698         * string/tst-endian.c: New file.
4699
4700         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
4701         Patch by Reuben Thomas.
4702
4703 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
4704
4705         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
4706
4707 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
4708
4709         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
4710
4711         [BZ #6461]
4712         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
4713         Add missing braces.
4714         (BODY for __gconv_transform_internal_ascii): Likewise.
4715
4716         [BZ #6472]
4717         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4718         to be treated like link-local addresses.
4719         (match_prefix): Don't treat IPv4 loopback address special when
4720         converting to v4 mapped addressed.
4721
4722         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
4723         if necessary.
4724         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
4725         * posix/tst-rfc3484-2.c: Likewise.
4726         * posix/tst-rfc3484-3.c: Likewise.
4727
4728         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4729         and SCTP.
4730
4731         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4732
4733         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4734
4735         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4736
4737 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
4738
4739         * po/lt.po: New file.  From Lituanian translation team.
4740
4741 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
4742
4743         Introduce TLS descriptors for i386 and x86_64.
4744         * include/inline-hashtab.h: New file, copied from 2005's
4745         libiberty, with fix for memory leak imported afterwards by
4746         Glauber de Oliveira Costa.
4747         * elf/tlsdeschtab.h: New file.
4748         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
4749         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
4750         (CHECK_STATIC_TLS): Move to...
4751         * elf/dynamic-link.h: ... this file.
4752         (TRY_STATIC_TLS): New macro.
4753         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
4754         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
4755         R_386_TLS_DESC): Define.
4756         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
4757         binutils.
4758         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
4759         R_X86_64_TLSDESC): Define.
4760         (R_386_NUM, R_X86_64_NUM): Adjust.
4761         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
4762         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4763         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4764         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4765         release tlsdesc_table.
4766         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
4767         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
4768         (elf_machine_rel): Handle R_386_TLS_DESC.
4769         (elf_machine_rela): Likewise.
4770         (elf_machine_lazy_rel): Likewise.
4771         (elf_machine_lazy_rela): Likewise.
4772         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
4773         * sysdeps/i386/dl-tlsdesc.S: New file.
4774         * sysdeps/i386/dl-tlsdesc.h: New file.
4775         * sysdeps/i386/tlsdesc.c: New file.
4776         * sysdeps/i386/tlsdesc.sym: New file.
4777         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
4778         tlsdesc_table.
4779         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
4780         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4781         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4782         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
4783         release tlsdesc_table.
4784         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
4785         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
4786         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
4787         (elf_machine_rel): Handle R_X86_64_TLSDESC.
4788         (elf_machine_rela): Likewise.
4789         (elf_machine_lazy_rel): Likewise.
4790         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
4791         (__tls_get_addr): Do not declare for non-shared compiles.
4792         * sysdeps/x86_64/dl-tlsdesc.S: New file.
4793         * sysdeps/x86_64/dl-tlsdesc.h: New file.
4794         * sysdeps/x86_64/tlsdesc.c: New file.
4795         * sysdeps/x86_64/tlsdesc.sym: New file.
4796         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
4797         tlsdesc_table for both 32- and 64-bit structs.
4798
4799 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
4800
4801         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
4802         its own function.  This reduces the frame setup costs and more.
4803
4804 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
4805
4806         [BZ #3406]
4807         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
4808         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
4809
4810 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
4811
4812         * io/openat.c (__openat_2): Also pass fd to __openat.
4813         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
4814         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
4815
4816         * string/tester.c (test_memcmp): Add a few more tests.
4817         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
4818
4819 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
4820
4821         * nscd/cache.c (cache_add): Before returning with failure and this
4822         is the first use of the record, mark it as unusable.
4823         * nscd/aicache.c: Don't touch the dataset after cache_add returns
4824         reporting a failure.
4825         * nscd/grpcache.c: Likewise
4826         * nscd/hstcache.c: Likewise.
4827         * nscd/initgrcache.c: Likewise.
4828         * nscd/pwdcache.c: Likewise.
4829         * nscd/servicescache.c: Likewise.
4830
4831 2008-05-10  Roland McGrath  <roland@redhat.com>
4832
4833         [BZ #6505]
4834         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
4835
4836 2008-05-08  David S. Miller  <davem@davemloft.net>
4837
4838         * misc/truncate64.c (truncate64): Use __truncate not truncate.
4839
4840         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
4841         (__ieee754_y0l): Likewise.
4842         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
4843         (__ieee754_y1l): Likewise.
4844         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
4845         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
4846         frexpl and ldexpl.  math_private.h provides them and the latter
4847         is not even used.
4848         (__log1pl): Use __frexpl.
4849
4850 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
4851
4852         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
4853         prototypes.
4854         * include/arpa/nameser_compat.h: Define T_UNSPEC.
4855         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
4856         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
4857         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
4858         af==AF_UNSPEC.
4859         (_nss_nis_gethostbyname4_r): New function.
4860         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4861         Change to also handle af==AF_UNSPEC.
4862         (get_tablename): New function.  Use it to avoid duplication.
4863         (_nss_nisplus_gethostbyname4_r): New function.
4864         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
4865         available.
4866         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
4867         * nss/nss.h: Define struct gaih_addrtuple.
4868         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
4869         af==AF_UNSPEC.
4870         (_nss_files_gethostbyname4_r): New function.
4871         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
4872         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
4873         calls.
4874         * resolv/res_query.c (__libc_res_nquery): Take two additional
4875         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
4876         look up IPv4 and IPv6.
4877         Change all callers.
4878         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
4879         for an additional query and answer buffer.  Pass to send_vc and
4880         send_dg.
4881         (send_vc): Send possibly two requests and receive two answers.
4882         (send_dg): Likewise.
4883         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
4884         __libc_res_nquery.
4885         (_nss_dns_gethostbyname4_r): New function.
4886         (gaih_getanswer_slice): Likewise.
4887         (gaih_getanswer): Likewise.
4888         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
4889         __libc_res_nquery call.
4890         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
4891         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
4892         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
4893         available.
4894
4895 2008-05-05  David S. Miller  <davem@davemloft.net>
4896
4897         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
4898         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
4899
4900 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4901
4902         Fix termios bit macros.
4903         Move *DLY definitions where they belong, in termios.h.
4904         Add *[0-3] definitions.
4905         Fixes confusion between VT and FF.
4906         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
4907         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
4908         are already defined to avoid collision with termios.h.
4909         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
4910         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
4911         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
4912         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
4913         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
4914         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
4915         VTDLY, VT0, VT1): New macros.
4916         [__USE_GNU] (OLCUC): Change value of macro.
4917         [__USE_XOPEN] (OFILL): New macro.
4918         [__USE_BSD] (CRTSCTS): Change value.
4919         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
4920         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
4921         (B7200, B14400, B28800, B76800): New macros.
4922
4923 2008-05-01  David S. Miller  <davem@davemloft.net>
4924
4925         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
4926         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
4927         (gen-as-const-headers): Add it.
4928         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
4929         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
4930         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
4931         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
4932
4933         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
4934         six system call parameters.
4935         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
4936
4937 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
4938
4939         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
4940         RUSAGE_LWP.
4941         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4942         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4943
4944 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
4945
4946         * stdlib/tst-setcontext.c: Include unistd.h.
4947
4948 2008-04-25  David S. Miller  <davem@davemloft.net>
4949
4950         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
4951         Pass "union semun" properly in to sys_ipc, it must be passed
4952         by value, not by reference.
4953
4954 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
4955
4956         * nscd/Makefile (nscd-cflags): Set back to -fpie.
4957         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
4958         * nscd/connections.c (mem_in_flight): Likewise.
4959
4960         * nscd/nscd.h (dbs): Make hidden.
4961
4962         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
4963         Avoid returning -1, return 0 instead.
4964
4965 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
4966
4967         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
4968
4969 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
4970
4971         [BZ #5209]
4972         * sysdeps/unix/sysv/linux/times.c: New file.
4973
4974         [BZ #5381]
4975         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
4976         mem_in_flight_list variables.  Add new parameter to mempool_alloc
4977         prototype.
4978         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
4979         appropriate mem_in_flight element.
4980         (gc): Take allocations which have not yet been committed to the
4981         database into account.
4982         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
4983         Reset mem_in_flight before returning.
4984         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
4985         cue it up in mem_in_flight_list.
4986         * nscd/aicache.c: Adjust mempool_alloc call.
4987         * nscd/grpcache.c: Likewise.
4988         * nscd/hstcache.c: Likewise.
4989         * nscd/initgrcache.c: Likewise.
4990         * nscd/pwdcache.c: Likewise.
4991         * nscd/servicescache.c: Likewise.
4992         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
4993         of -fpie.
4994
4995         * nscd/connections.c (handle_request): Provide better error message
4996         in case SELinux forbids the service.
4997
4998         * version.h (VERSION): Bump to 2.8.90.
4999
5000 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
5001
5002         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5003
5004 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5005
5006         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5007         Also use for 32-bit.
5008         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5009         __nextafter instead of nextafter to avoid local PLT.
5010         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5011         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5012
5013         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5014
5015         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5016         __fe_nomask_env.
5017         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
5018         <fenv_libc.h> instead of <fenv.h>.
5019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5021
5022         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5023
5024         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5025         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5026         function from fegetexcept and make old name weak alias.
5027         * include/fenv.h: Declare __fegetexcept.
5028         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5029         fegetexcept.
5030         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5031         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5032         to fetestexcept.
5033         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5034         instead of frexpl to avoid local PLT.
5035         * math/s_significandl.c (__significandl): Use __ilogbl instead of
5036         ilogbl to avoid local PLT.
5037         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5038         instead of ldexpl to avoid local PLT.
5039         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5040         __roundl not roundl to avoid local PLT.
5041         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5042         local PLTs.  Use __sincosl instead of separate sinl and cosl
5043         calls.
5044         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5045
5046         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5047         version for ppc64 to 2.4.21 since without it makecontext will fail.
5048
5049         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5050         to the ABI in use.
5051         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5052         .__tls_get_addr.
5053         [__powerpc64__] (TLS_GD): Likewise.
5054
5055 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
5056
5057         [BZ #4997]
5058         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5059         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5060         mantissa.
5061         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5062         Likewise.  Also account for when x is an odd number between 2^52
5063         and 2^53-1.
5064         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5065         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5066         * math/libm-test.inc (lround_test, llround_test): Added test cases to
5067         detect aforementioned erroneous conditions.
5068
5069 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5070
5071         * configure.in: Check for -fno-section-anchors in addition to
5072         -fno-toplevel-reorder.
5073
5074 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
5075
5076         * include/features.h (__GLIBC_MINOR__): Bump to 8.
5077
5078         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5079         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5080         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5081         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5082         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5083         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5084
5085 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
5086
5087         [BZ #5443]
5088         * time/era.c: Transform __libc_setlocale_lock into rwlock.
5089         * time/alt_digit.c: Likewise.
5090         * wcsmbs/wcsmbsload.c: Likewise.
5091
5092 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
5093
5094         * version.h (VERSION): Bump to 2.8.
5095
5096         * timzeone/asia: Update from tzdata2008b.
5097         * timezone/backward: Likewise.
5098         * timezone/europe: Likewise.
5099         * timezone/northamerica: Likewise.
5100         * timezone/southamerica: Likewise.
5101         * timezone/iso3166.tab: Likewise.
5102         * timezone/leapseconds: Likewise.
5103         * timezone/zone.tab: Likewise.
5104         * timezone/private.h: Update from tzcode2008a.
5105         * timezone/zdump.c: Likewise.
5106         * timezone/zic.c: Likewise.
5107
5108 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
5109
5110         [BZ #5741]
5111         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5112         Define additonal Data Cache Block instruction macros.
5113         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5114         Replace dcbst with dcbf and sync with sync/isync.
5115
5116 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
5117
5118         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5119         Always set ELF_RTYPE_CLASS_PLT.
5120         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5121
5122 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
5123
5124         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5125         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5126         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5127         For ISA 2.01 and later replace mftb with mfspr 268.
5128
5129 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
5130
5131         [BZ #5768]
5132         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5133         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5134
5135 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
5136
5137         [BZ #5768]
5138         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5139         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5140         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5141         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5142
5143 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
5144
5145         * stdlib/tst-makecontext.c (othervar): New variable.
5146         (cf): Test sign extending the argument to long.
5147
5148 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
5149
5150         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5151         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5152         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5153         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5154         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5155         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5156         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5157
5158 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
5159
5160         * elf/Makefile (tests): Substitute tests-vis-yes here.
5161         (tests-vis-yes): Delete.
5162         (modules-name, modules-vis-yes): Similarly.
5163
5164 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
5165
5166         [BZ #4407]
5167         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5168         Preserve sign in signgamp when x is zero.
5169
5170 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
5171
5172         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5173         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5174         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5175         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5176         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5177         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5178
5179 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5180
5181         [BZ #4314]
5182         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5183         buffers.
5184
5185         [BZ #5209]
5186         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5187         a reserved error value.
5188
5189         * stdlib/tst-makecontext.c: Change parameter to cf to negative
5190         value to check for correct sign extension.
5191
5192         [BZ #5436]
5193         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5194         Copy 64-bit parameter values even though this is not required in
5195         the standard.
5196
5197         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5198         PC save.
5199
5200 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
5201
5202         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5203         PC save.
5204
5205 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
5206
5207         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5208
5209 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
5210
5211         [BZ #5998]
5212         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5213         in line-buffered stream failed.
5214         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5215
5216 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
5217
5218         [BZ #6024]
5219         * scripts/abi-versions.awk: If the version specified by
5220         --enable-oldest-abi is older than the first version for this
5221         architecture, use the default version.
5222
5223         * locale/programs/ld-collate.c (collate_read): Ignore script lines
5224         as well when ignoring the whole category.
5225
5226 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5227
5228         [BZ #6042]
5229         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5230         ETHERTYPE_* definitions.
5231         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5232
5233 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5234
5235         * stdlib/mbtowc.c (__no_r_state): Remove.
5236         (mbtowc): New static state variable.  Use it instead of
5237         __no_r_state.
5238         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5239         (__wctomb_state): New hidden variable.
5240         (wctomb): Use __wctomb_state instead of __no_r_state.
5241         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5242         (__wctomb_state): New extern decl.
5243         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5244
5245 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
5246
5247         [BZ #5475]
5248         * resolv/res_init.c: Handle scope IDs in resolv.conf.
5249
5250 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
5251
5252         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5253
5254 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
5255
5256         * po/nl.po: Update from translation team.
5257
5258 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
5259
5260         [BZ #6007]
5261         * string/strfry.c: Handle empty strings again.
5262
5263 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5264
5265         [BZ #5443]
5266         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5267         before looking for translation.
5268         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5269         * locale/freelocale.c: Likewise.
5270         * locale/newlocale.c: Likewise.
5271         * locale/setlocale.c: Likewise.
5272         Based partially on a patch by ryo@np.css.fujitsu.com.
5273
5274 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
5275
5276         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5277         acquiring wrlock.  Do conv_tab allocation while holding lock.
5278         * intl/Makefile: Add rules to build and run tst-gettext6.
5279         * intl/tst-gettext6.c: New test.
5280         * intl/tst-gettext6.sh: New file.
5281
5282 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
5283
5284         * po/nl.po: Update from translation team.
5285
5286         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5287         provided through st_blksize, try the default size before giving up.
5288
5289 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
5290
5291         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5292
5293         [BZ #5939]
5294         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5295
5296         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5297         error message.  POSIX today does not require the messages to be in
5298         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
5299
5300         [BZ #5979]
5301         * sunrpc/auth_unix.c: Unify printed strings.
5302         * sunrpc/clnt_tcp.c: Likewise.
5303         * sunrpc/clnt_udp.c: Likewise.
5304         * sunrpc/clnt_unix.c: Likewise.
5305         * sunrpc/svc_tcp.c: Likewise.
5306         * sunrpc/svc_udp.c: Likewise.
5307         * sunrpc/svc_unix.c: Likewise.
5308         * sunrpc/xdr.c: Likewise.
5309         * sunrpc/xdr_array.c: Likewise.
5310         * sunrpc/xdr_rec.c: Likewise.
5311         * sunrpc/xdr_ref.c: Likewise.
5312         * locale/programs/ld-time.c (time_finish): Unify messages.
5313         * locale/programs/locfile.c (handle_copy): Fix typo.
5314         * nscd/nscd.c (options): Fix typo.
5315
5316         [BZ #5995]
5317         * stdlib/strtod_l.c: Use correct sign for result in one more
5318         underflow case.
5319         Patch by Eric Blake <ebb9@byu.net>.
5320
5321 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
5322
5323         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5324         and creat system calls.
5325         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5326         call.
5327         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5328         system calls.
5329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5330         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5331         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5332
5333 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
5334
5335         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5336         <linux/limits.h> has defined it.
5337         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5338         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5339         headers.
5340         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5341         it instead of ARG_MAX.
5342
5343 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
5344
5345         * posix/gai.conf: Fix comment for scope nullbits.
5346         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5347         default to 128 bits for v4 mapped addresses.
5348
5349 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5350
5351         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5352         ptrace call to get the ieee_instruction_pointer from the kernel.
5353         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5354         ptrace call to set the ieee_instructtion_pointer.
5355         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5356         Add comment that ieee_instruction_pointer is always 0.
5357
5358 2008-03-09  Andreas Jaeger  <aj@suse.de>
5359
5360         [BZ #5857]
5361         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5362         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5363         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5364
5365         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5366         (rint_test): Likewise.
5367
5368 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
5369
5370         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5371         call.
5372         (__nisfind_server): Similar for open readColdStartFile call.
5373         Patch partially by Jim Meyering.
5374         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5375         around internal_setent call.
5376
5377         * po/vi.po: New Vietnamese translation.
5378
5379         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5380         ADJ_OFFSET_SS_READ.
5381
5382         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5383         remove CLONE_STOPPED.
5384
5385 2008-02-10  Jim Meyering  <meyering@redhat.com>
5386
5387         Remove useless "if" before "free":
5388         * elf/ldconfig.c (parse_conf_include): Likewise.
5389         * gmon/gmon.c (weak_alias): Likewise.
5390         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5391         * inet/rcmd.c (__validuser2_sa): Likewise.
5392         * intl/bindtextdom.c (set_binding_values): Likewise.
5393         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
5394         * libio/genops.c (save_for_backup): Likewise.
5395         * libio/wgenops.c (save_for_wbackup): Likewise.
5396         * locale/programs/ld-collate.c (collate_read): Likewise.
5397         * locale/programs/linereader.c (get_string): Likewise.
5398         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
5399         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
5400         * resolv/res_debug.c (do_section): Likewise.
5401         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
5402         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
5403         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
5404         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5405         * time/tzset.c (tzset_internal): Likewise.
5406
5407 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
5408
5409         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
5410         of ASSEMBLER.
5411
5412 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
5413
5414         [BZ #5903]
5415         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
5416         not stream for output file.  Open output file here.
5417         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
5418         and output file name.
5419         (process_fd): Likewise.
5420         (process_file): Likewise.
5421         (main): Adjust callers of changed functions.
5422         * iconv/iconv_prog.h: Adjust prototype.
5423
5424 2008-03-09  Andreas Jaeger  <aj@suse.de>
5425
5426         [BZ #5753]
5427         * sysdeps/ia64/ieee754.h: Use protected namespace
5428         __BIG_ENDIAN/__LITTLE_ENDIAN.
5429         * sysdeps/ieee754/ieee754.h: Likewise.
5430         Patch by Aurelien Jarno <aurelien@aurel32.net>.
5431
5432 2008-03-08  Roland McGrath  <roland@frob.com>
5433
5434         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
5435         ignore a signal that came from a machine exception, treat it as a
5436         fatal core-dump signal instead.
5437         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5438
5439         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5440         Clear DF bit in thread state's eflags.
5441         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5442
5443 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
5444
5445         [BZ #5774]
5446         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
5447         of NAN(...) sequence.
5448         * stdlib/Makefile (tests): Add tst-strtod6.
5449         * stdlib/tst-strtod6.c: New file.
5450
5451         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
5452
5453         [BZ #5762]
5454         * posix/getopt.c (_getopt_internal_r): Clarify error message by
5455         putting offending option character in quotes.  Clean up error
5456         messages.
5457         * po/be.po: Adjust msgstr in translation file.
5458         * po/bg.po: Likewise.
5459         * po/ca.po: Likewise.
5460         * po/cs.po: Likewise.
5461         * po/da.po: Likewise.
5462         * po/de.po: Likewise.
5463         * po/es.po: Likewise.
5464         * po/fr.po: Likewise.
5465         * po/hr.po: Likewise.
5466         * po/ko.po: Likewise.
5467         * po/nl.po: Likewise.
5468         * po/rw.po: Likewise.
5469         * po/sk.po: Likewise.
5470         * po/sv.po: Likewise.
5471         * po/tr.po: Likewise.
5472         * po/zh_CN.po: Likewise.
5473         * po/zh_TW.po: Likewise.
5474
5475         [BZ #5760]
5476         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
5477         Patch by Roland Bless <roland@bless.de>.
5478
5479         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
5480         .o file.
5481         * elf/Makefile (routines): Add dl-sysdep.
5482         (elide-routines.os): Likewise.
5483
5484 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
5485
5486         [BZ #5786]
5487         * elf/dl-sysdep.c: Undefine ROUND after use.
5488         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
5489         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
5490         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
5491         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
5492         to ...
5493         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
5494         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
5495         if necessary.
5496         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
5497
5498         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
5499         _dl_tls_get_addr_soft element.
5500         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
5501         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
5502         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
5503         GLRO.
5504         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5505         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
5506         of internal_function.
5507
5508         * stdlib/Makefile (aux): Add tens_in_limb.
5509         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
5510         * stdlib/tens_in_limb.c: ...here.  New file.
5511
5512         [BZ #5778]
5513         * sysdeps/unix/sysv/linux/pathconf.h: Declare
5514         __statfs_chown_restricted.
5515         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
5516         for _PC_CHOWN_RESTRICTED.
5517         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5518         Implement __statfs_chown_restricted.
5519         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
5520         _POSIX_CHOWN_RESTRICTED value to zero.
5521         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
5522         defined to zero.
5523
5524         * sysdeps/x86_64/rtld-memset.c: New file.
5525
5526 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
5527
5528         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
5529
5530         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
5531         Barcelona machine.  Make default fall through branch of
5532         __x86_64_preferred_memory_instruction check as the integer code path.
5533
5534 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
5535
5536         * sysdeps/x86_64/cacheinfo.c
5537         (__x86_64_preferred_memory_instruction): New variable.
5538         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5539
5540         * sysdeps/x86_64/memset.S: Rewrite.
5541
5542 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
5543
5544         * include/stdio.h (__asprintf_chk, __dprintf_chk,
5545         __obstack_printf_chk): New prototypes.
5546         (__vasprintf_chk, __vdprintf_chk,
5547         __obstack_vprintf_chk): Likewise.
5548         Add libc_hidden_proto.
5549         * libio/obprintf.c
5550         (_IO_obstack_jumps): No longer static, add attribute_hidden.
5551         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
5552         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5553         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
5554         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
5555         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5556         __obstack_vprintf_chk): New prototypes.
5557         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
5558         obstack_vprintf): New inlines.
5559         * debug/dprintf_chk.c: New file.
5560         * debug/vdprintf_chk.c: New file.
5561         * debug/asprintf_chk.c: New file.
5562         * debug/vasprintf_chk.c: New file.
5563         * debug/obprintf_chk.c: New file.
5564         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
5565         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
5566         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
5567         @@GLIBC_2.8.
5568         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
5569         vdprintf_chk and obprintf_chk, set CFLAGS for them.
5570         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
5571         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
5572         libc_hidden_proto.
5573         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
5574         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
5575         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
5576         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
5577         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
5578         @@GLIBC_2.8.
5579         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
5580         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
5581         obstack_vprintf_chk.
5582         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
5583         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
5584         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
5585         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
5586         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
5587         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
5588
5589 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
5590
5591         [BZ #5779]
5592         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
5593         Patch by Roy Marples <roy@marples.name>.
5594
5595         [BZ #5736]
5596         * malloc/malloc.c: Fix typo in comment.
5597
5598         [BZ #5627]
5599         * locale/iso-639.def: Add Shuswap.
5600
5601 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
5602
5603         [BZ #5790]
5604         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
5605         overwrite *h_errnop/*errnop values from getanswer_r in case of
5606         failure.
5607
5608 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
5609
5610         [BZ #5818]
5611         * nscd/connections.c (dbs): Add initializers for .suggested_module.
5612         (verify_persistent_db): Remove one unnecessary test and add a new one
5613         for bad configuration.
5614         (nscd_init): Improve error reported when persistent database cannot
5615         be reused.
5616         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
5617         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
5618         .suggested_module and .max_db_size and case config file says the
5619         values are zero.
5620         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
5621
5622         [BZ #5854]
5623         * nis/ypclnt.c (yp_order): Fix handling of return value of
5624         do_ypcall_tr call.
5625         Patch by Jeff Moyer <jmoyer@redhat.com>.
5626
5627         * po/fr.po: Update from translation team.
5628
5629 2008-02-22  Andreas Jaeger  <aj@suse.de>,
5630             Carlos O'Donell <carlos@systemhalted.org>
5631
5632         [BZ #5012]
5633         * FAQ.in: Describe why glibc needs to be compiled with
5634         optimization.
5635
5636 2008-02-19  Roland McGrath  <roland@redhat.com>
5637
5638         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
5639
5640 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
5641
5642         [BZ #5737]
5643         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
5644         __USE_MISC is defined.
5645
5646 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
5647
5648         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
5649         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
5650         sys/timerfd.h.
5651         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
5652         timerfd_gettime, timerfd_settime.
5653         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
5654         timerfd_gettime, timerfd_settime for GLIBC_2.8.
5655
5656 2008-02-08  Roland McGrath  <roland@redhat.com>
5657
5658         * elf/elf.h (NT_PPC_SPE): New macro.
5659
5660 2008-02-06  Roland McGrath  <roland@redhat.com>
5661
5662         * Makerules ($(common-objpfx)sysd-rules):
5663         Depend on $(sysdep-makeconfigs).
5664
5665 2008-01-31  Roland McGrath  <roland@redhat.com>
5666
5667         [BZ #5442]
5668         * configure.in: Use -print-file-name if it yields a directory,
5669         for each of include and include-fixed.
5670         * configure: Regenerated.
5671
5672         * Makeconfig (sysd-rules-targets): New variable.
5673         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
5674         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
5675
5676 2008-01-30  Roland McGrath  <roland@redhat.com>
5677
5678         * manual/libc.texinfo: Update back-cover text.
5679
5680         * elf/elf.h (NT_386_TLS): New macro.
5681
5682 2008-01-29  Roland McGrath  <roland@redhat.com>
5683
5684         * Makeconfig (sysd-rules-patterns): New variable.
5685         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
5686         (check-inhibit-asm): New canned sequence, replaces ...
5687         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
5688         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
5689         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
5690         (CFLAGS-rtld): Variable removed.
5691
5692 2008-01-24  Roland McGrath  <roland@redhat.com>
5693
5694         * configure.in: Let configure fragments set base_os.
5695         * configure: Regenerated.
5696
5697 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
5698
5699         * po/ko.po: Update from translation team.
5700
5701 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
5702
5703         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
5704
5705 2008-01-12  Andreas Jaeger  <aj@suse.de>
5706
5707         [BZ #5040]
5708         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
5709         Add EPOLLRDHUP.
5710
5711 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5712
5713         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
5714         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
5715         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5716
5717 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
5718
5719         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
5720         * elf/dl-close.c (_dl_close): Check for it.
5721         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
5722         (_dl_allocate_static_tls): Likewise.
5723         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5724         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
5725         to it.
5726         * elf/tst-tls16.c: New file.
5727         * elf/tst-tlsmod16a.c: New file.
5728         * elf/tst-tlsmod16b.c: New file.
5729         * elf/Makefile: Add rules to build and run tst-tls16.
5730
5731 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
5732
5733         [BZ #5628]
5734         * bits/shm.h: Fix comment describing shmid_ds.
5735         * sysdeps/gnu/bits/shm.h: Likewise.
5736         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5737         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5738         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5739         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5740         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5741         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5742         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5743         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5744         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
5745
5746         [BZ #5607]
5747         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5748         prototypes.
5749         * conform/data/limits.h-data: Adjust limits changed in v6 and add
5750         additional suffixes.
5751         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
5752         Add optional functions mq_timedreceive and mq_timedsend.
5753         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
5754         * conform/data/pthread.h-data: Fix prototype of
5755         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
5756         * conform/data/semaphore.h-data: Allow time.h definitions.
5757         * conform/data/signal.h-data: Likewise.
5758         * conform/data/stdio.h-data: getw and putw are not required in v6.
5759         * conform/data/stdlib.h-data: Change setstate prototype.
5760         * conform/data/string.h-data: Fix strerror_r prototype.
5761         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
5762         * conform/data/unistd.h-data: pthread_atfork not required in v6.
5763         Fix readlink prototype.
5764         * conform/data/netinet/in.h-data: Add const to in6addr_any and
5765         in6addr_loopback.
5766         * inet/netinet/in.h: Cleanup namespace.
5767         * posix/regex.h: Likewise.
5768         * resolv/netdb.h: Likewise.
5769         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
5770         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5771         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5772         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
5773         of names of in in6_addr.
5774         (default_precedence): Likewise.
5775         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
5776         NULL definition.
5777
5778 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
5779
5780         * conform/data/fmtmsg.h-data: Add missing allows.
5781         * conform/data/ftw.h-data: Likewise.
5782         * conform/data/inttypes.h-data: Likewise.
5783         * conform/data/math.h-data: Likewise.
5784         * conform/data/signal.h-data: Likewise.
5785         * conform/data/net/if.h-data: Likewise.
5786         * conform/data/netinet/in.h-data: Likewise.
5787         * conform/data/sys/socket.h-data: Likewise.
5788
5789         [BZ #5614]
5790         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
5791         (__strtok_r): Simplify.
5792         * string/tester.c (test_strtok_r): Add test case for futile search
5793         with single-character seach string.
5794
5795 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
5796
5797         * po/ko.po: Update from translation team.
5798
5799 2008-01-11  Andreas Jaeger  <aj@suse.de>
5800
5801         [BZ #5600]
5802         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
5803         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
5804         kernel header.
5805
5806 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
5807
5808         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
5809         native interface lookup in all the relevant places.
5810
5811 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
5812             Ulrich Drepper  <drepper@redhat.com>
5813
5814         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
5815         field.  Use sockaddr_in6 for source_addr.
5816         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
5817         (match_prefix): Likewise.
5818         (get_label): Likewise.
5819         (get_precedence): Likewise.
5820         (rfc3484_sort): Change to use indirect access to results array.
5821         Adjust to use of sockaddr_in6.  Replace service_order test with
5822         simple index comparison.
5823         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
5824         service_order field.  Adjust qsort_t calls.  Access sorted result
5825         array indirectly through order array.
5826         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
5827         * posix/tst-rfc3484-2.c: Likewise.
5828         * posix/tst-rfc3484-3.c: Likewise.
5829
5830 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
5831
5832         [BZ #5541]
5833         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
5834         pollfd structures.
5835         Patch by André Cruz.
5836
5837         [BZ #5545]
5838         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
5839         (clnt_spcreateerror): Likewise.
5840
5841         [BZ #5553]
5842         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
5843         (public_mEMALIGn): Likewise.
5844         Patch mostly by Daniel Jacobowitz.
5845
5846 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
5847
5848         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
5849         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
5850         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
5851         * stdlib/tst-makecontext2.c: New test.
5852
5853 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
5854
5855         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
5856         defined.
5857         (REINIT_PARAMS): Likewise.  Undefine before end of file.
5858         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
5859         transliteration hooks and REINIT_PARAMS afterwards.
5860         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
5861         status.
5862         (REINIT_PARAMS): Define.
5863         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
5864         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
5865         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
5866         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
5867         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
5868         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
5869         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
5870         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
5871         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
5872         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
5873         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
5874         * iconvdata/tst-iconv7.c: New test.
5875
5876 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
5877
5878         * libio/stdio.h (vscanf): Fix definition for loser compilers.
5879
5880 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
5881
5882         [BZ #5112]
5883         * nscd/connections.c (restart): Fix condition.
5884
5885 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
5886
5887         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
5888         __ctype_toupper_loc): Add __THROW.
5889
5890 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
5891
5892         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
5893         recognition of interface family.
5894
5895         * posix/getconf.c: Update copyright year.
5896         * nss/getent.c: Likewise.
5897         * iconv/iconvconfig.c: Likewise.
5898         * iconv/iconv_prog.c: Likewise.
5899         * elf/ldconfig.c: Likewise.
5900         * catgets/gencat.c: Likewise.
5901         * csu/version.c: Likewise.
5902         * elf/ldd.bash.in: Likewise.
5903         * elf/sprof.c (print_version): Likewise.
5904         * locale/programs/locale.c: Likewise.
5905         * locale/programs/localedef.c: Likewise.
5906         * nscd/nscd.c (print_version): Likewise.
5907         * debug/xtrace.sh: Likewise.
5908         * malloc/memusage.sh: Likewise.
5909         * malloc/mtrace.pl: Likewise.
5910         * debug/catchsegv.sh: Likewise.
5911
5912 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
5913
5914         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
5915         second lookup.
5916
5917 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
5918
5919         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
5920         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5921
5922 2007-12-17  Roland McGrath  <roland@redhat.com>
5923
5924         * inet/ether_line.c (ether_line): Remove unused variable.
5925
5926 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5927
5928         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
5929         and winp.
5930         * login/openpty.c (openpty): Likewise.
5931         * login/pty.h (openpty, forkpty): Likewise.
5932         * manual/terminal.texi (openpty, forkpty): Likewise.
5933
5934 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
5935
5936         * malloc/malloc.c (public_cALLOc): For arenas other than
5937         main_arena, count all bytes inside the mprotect_size range of the
5938         heap as uninitialized.
5939
5940 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
5941
5942         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
5943         executable stacks.
5944
5945         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
5946         mTRIm for all of them.
5947         (mTRIm): Additionally iterate over all free blocks and use madvise
5948         to free memory for all those blocks which contain at least one
5949         memory page.
5950         * malloc/tst-trim1.c: New file.
5951         * malloc/Makefile (tests): Add tst-trim1.
5952
5953         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
5954
5955 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
5956
5957         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5958         First cast argument to long
5959         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
5960         Return long.
5961         (__vdso_clock_gettime): Likewise.
5962         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
5963         return long.
5964
5965 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
5966
5967         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
5968         * locale/nl_langinfo_l.c: Real implementation, copied from
5969         nl_langinfo.c.
5970         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
5971
5972 2007-12-01  Jim Meyering  <meyering@redhat.com>
5973
5974         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
5975         that would inhibit utf8-optimization of a regexp containing line-
5976         or buffer-anchors, e.g., `^', `$'.
5977
5978 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5979
5980         * time/bug-getdate1.c (do_test): Don't use century values which
5981         aren't valid on 32-bit systems.
5982
5983 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
5984
5985         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
5986         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
5987         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
5988         __strcat_g, __strncat_g): Add __asm__.
5989
5990 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
5991
5992         [BZ #5477]
5993         * io/fchmodat.c: Fix typo in stub_warning use.
5994         Patch by Petr Salinger.
5995
5996 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
5997
5998         * iconvdata/hp-thai8.c: New file.
5999         * iconvdata/Makefile: Add rules for hp-thai8.c.
6000         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6001         * iconvdata/gconv-modules: Likewise.
6002
6003         [BZ #5464]
6004         * iconvdata/hp-greek8.c: New file.
6005         * iconvdata/Makefile: Add rules for hp-greek8.c.
6006         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6007         * iconvdata/gconv-modules: Likewise.
6008
6009         [BZ #5463]
6010         * iconvdata/hp-turkish8.c: New file.
6011         * iconvdata/Makefile: Add rules for hp-turkish8.c.
6012         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6013         * iconvdata/gconv-modules: Likewise.
6014
6015         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6016         (shrink_heap): ... this new function.
6017         (heap_trim): Call shrink_heap instead of grow_heap.
6018
6019         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6020         case don't call alloc_perturb.
6021
6022 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
6023
6024         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6025         possible.
6026         * sysdeps/unix/sysv/linux/kernel-features.h
6027         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6028         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6029
6030 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
6031
6032         [BZ #5424]
6033         * stdio-common/vfprintf.c: Do not overflow when adding to done.
6034         * stdio-common/Makefile (tests): Add bug22.
6035         * stdio-common/bug22.c: New file.
6036
6037         [BZ #5451]
6038         * time/getdate.c: Fix filling in default values.
6039         * time/bug-getdate1.c: New file.
6040         * time/Makefile: Add rules to build and run bug-getdate1.
6041
6042         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6043         * iconvdata/ebcdic-es.c: Likewise.
6044         * iconvdata/ebcdic-es-a.c: Likewise.
6045         * iconvdata/ebcdic-uk.c: Likewise.
6046         * iconvdata/iso8859-16.c: Likewise.
6047         * iconvdata/viscii.c: Likewise.
6048         * iconvdata/iso8859-9e.c: Likewise.
6049         * iconvdata/Makefile: Adjust appropriately.
6050
6051         [BZ #5428]
6052         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6053         __need_wint_t.
6054
6055 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6056
6057         [BZ #5427]
6058         * iconvdata/hp-roman9.c: New file.
6059         * iconvdata/Makefile: Add rules for hp-roman9.c.
6060         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
6061         * iconvdata/gconv-modules: Likewise.
6062
6063         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6064         * iconvdata/Makefile: Adjust appropriately.
6065
6066         [BZ #5441]
6067         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6068         structure, it's allocated with alloca.
6069         * stdio-common/Makefile (tests): Add bug21.
6070         * stdio-common/bug21.c: New file.
6071
6072 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
6073
6074         [BZ #5452]
6075         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
6076         keyword for gcc's braced-groups.
6077
6078 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
6079
6080         [BZ #5454]
6081         * inet/ether_line.c: Strip hostname of whitespaces.
6082         * inet/Makefile (tests): Add tst-ether_line.
6083         * inet/tst-ether_line.c: New file.
6084
6085 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
6086
6087         [BZ #5439]
6088         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6089
6090         [BZ #5435]
6091         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6092
6093         * stdlib/tst-setcontext.c: Catch the case where the links gets
6094         messed up and we do not reach main again.
6095
6096         * po/ca.po: Update from translation team.
6097
6098 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
6099
6100         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
6101         * posix/regex.h (REG_ENOSYS): Likewise.
6102         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
6103
6104 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
6105
6106         * nscd/nscd.h (MAX_STACK_USE): Define.
6107         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6108         (gc): Initialize stack_used based on allocation in prune_cache.
6109         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
6110         Clear array before use.
6111
6112         * nscd/aicache.c (addhstaiX): Update statistics counter in case
6113         memory allocation failed.
6114         * nscd/hstcache.c (cache_addhst): Likewise.
6115         * nscd/grpcache.c (cache_addgr): Likewise.
6116         * nscd/servicescache.c (cache_addserv): Likewise.
6117         * nscd/pwdcache.c (cache_addpw): Likewise.
6118         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6119
6120 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
6121
6122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6123         and creat system calls.
6124
6125         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6126
6127 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6128
6129         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6130         Add netiucv/iucv.h.
6131         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6132         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6133         protocol.
6134         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6135         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6136         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6137
6138 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6139
6140         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6141         strncat): Define as macros to avoid compile errors.
6142
6143         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
6144         creat entries.
6145
6146 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
6147
6148         [BZ #5382]
6149         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6150         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6151         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
6152         overflow it.
6153         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6154
6155         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
6156         Return zero in case the thread library is not NPTL.
6157
6158         [BZ #5375]
6159         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6160         initializing interface list.
6161
6162         [BZ #5378]
6163         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6164         use result of nss_getgrgid_r if nothing was found.  For other
6165         error return with a failure.
6166         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6167
6168         * locale/programs/ld-collate.c (collate_read): Fix loop to match
6169         macro name.
6170
6171 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6172
6173         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6174         (get_scope): For IPv4 scope, use scopes table.
6175         (fini): Free scopes table if necessary.
6176         (free_scopelist): New function.
6177         (scopecmp): New function.
6178         (gaiconf_init): Also handle scopev4 entries.
6179         * posix/tst-rfc3484.c (do_test): Initialize scopes.
6180         * posix/tst-rfc3484-2.c (do_test): Likewise.
6181         * posix/gai.conf: Document scopev4 defaults.
6182         * posix/Makefile (tests): Add tst-rfc3484-3.
6183         * posix/tst-rfc3484-3.c: New file.
6184
6185         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6186         Teredo tunnels.
6187         * posix/gai.conf: Update for current default tables.
6188
6189 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
6190
6191         * po/tr.po: Update from translation team.
6192
6193 2007-11-18  Roland McGrath  <roland@frob.com>
6194
6195         * manual/arith.texi (Remainder Functions): Spelling fix.
6196         From Shaun Silk <genix@mysoul.com.au>.
6197
6198         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6199
6200 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
6201
6202         * po/zh_CN.po: Update from translation team.
6203
6204         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6205         Add sys/signalfd.h and sys/eventfd.h.
6206
6207 2007-11-15  Bruno Haible  <bruno@clisp.org>
6208
6209         [BZ #5346]
6210         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6211         union.
6212         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6213         (DCIGETTEXT): Change the allocation of the 'search' variable so that
6214         it needs only fixed stack space. Delay the initialization of
6215         msgid_len until it is needed.
6216
6217 2007-11-15  Andreas Jaeger  <aj@suse.de>
6218
6219         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6220         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6221
6222 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
6223
6224         * po/ko.po: Update from translation team.
6225
6226 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
6227
6228         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6229         significantly.  The device type is also part of the ifinfomsg data.
6230
6231         * po/sv.po: Update from translation team.
6232         * po/nl.po: Likewise.
6233
6234         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6235         to wake up in 24 hours.
6236
6237         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
6238
6239 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
6240
6241         * po/cs.po: Update from translation team.
6242         * po/pl.po: Likewise.
6243
6244         * include/ifaddrs.h: Remove in6ai_temporary.
6245         (struct in6addrinfo): Add index element.
6246         Declare __check_native.
6247         * inet/Makefile (aux): Add check_native.
6248         * sysdeps/unix/sysv/linux/check_native.c: New file.
6249         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6250         IFA_F_TEMPORARY.  Pass back ifa_index.
6251         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6252         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
6253         call __check_native if necessary.
6254         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
6255         to sort addresses.  Pass information about the results.
6256         * posix/tst-rfc3484.c: Adjust for addition of index field and change
6257         of rfc3484_sort interface.
6258         * posix/tst-rfc3484-2.c: Likewise.
6259
6260         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
6261         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6262         for _quicksort.
6263         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6264         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
6265         on as third parameter to compare function and _quicksort.
6266         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6267         to the compare function.
6268         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6269         * Versions.def: Add GLIBC_2.8 for libc.
6270
6271         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6272         * posix/tst-rfc3484-2.c: Likewise.
6273
6274         * include/kernel-features.h: Moved to...
6275         * sysdeps/mach/hurd/kernel-features.h: ...here.
6276
6277 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
6278
6279         * sysdeps/i386/i586/memcpy_chk.S: New file.
6280         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6281         * sysdeps/i386/i586/memset_chk.S: Likewise.
6282
6283 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
6284
6285         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6286         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6287         list of interfaces.  Also store prefix length.
6288         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6289         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6290         prefix if source and destination address are in the same subnet.
6291         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
6292         Always look for matching record in in6ai list.
6293         Correct source_addr_len value for IPv6->IPv4 converted records.
6294
6295 2007-11-11  Roland McGrath  <roland@frob.com>
6296
6297         * include/kernel-features.h: New file.
6298
6299 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
6300
6301         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6302         complications for 64-bit platforms.
6303
6304         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6305         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
6306         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6307         open64_2.
6308         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6309         entries.
6310         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6311         * sysdeps/wordsize-64/alphasort.c: New file.
6312         * sysdeps/wordsize-64/alphasort64.c: New file.
6313         * sysdeps/wordsize-64/fseeko.c: New file.
6314         * sysdeps/wordsize-64/fseeko64.c: New file.
6315         * sysdeps/wordsize-64/ftello.c: New file.
6316         * sysdeps/wordsize-64/ftello64.c: New file.
6317         * sysdeps/wordsize-64/ftw.c: New file.
6318         * sysdeps/wordsize-64/ftw64.c: New file.
6319         * sysdeps/wordsize-64/iofgetpos.c: New file.
6320         * sysdeps/wordsize-64/iofgetpos64.c: New file.
6321         * sysdeps/wordsize-64/iofopen.c: New file.
6322         * sysdeps/wordsize-64/iofopen64.c: New file.
6323         * sysdeps/wordsize-64/iofsetpos.c: New file.
6324         * sysdeps/wordsize-64/iofsetpos64.c: New file.
6325         * sysdeps/wordsize-64/lockf.c: New file.
6326         * sysdeps/wordsize-64/lockf64.c: New file.
6327         * sysdeps/wordsize-64/mkostemp.c: New file.
6328         * sysdeps/wordsize-64/mkostemp64.c: New file.
6329         * sysdeps/wordsize-64/mkstemp.c: New file.
6330         * sysdeps/wordsize-64/mkstemp64.c: New file.
6331         * sysdeps/wordsize-64/scandir.c: New file.
6332         * sysdeps/wordsize-64/scandir64.c: New file.
6333         * sysdeps/wordsize-64/tmpfile.c: New file.
6334         * sysdeps/wordsize-64/tmpfile64.c: New file.
6335         * sysdeps/wordsize-64/versionsort.c: New file.
6336         * sysdeps/wordsize-64/versionsort64.c: New file.
6337         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6338         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6339         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6340         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6341         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6342         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6343         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6344         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6345         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6346         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6347         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6348         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6349
6350         * crypt/sha256-crypt.c: Fix a comment.
6351         * crypt/sha512-crypt.c: Likewise.
6352
6353 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6354
6355         * sysdeps/x86_64/memset.S: Add sfence after movnti.
6356
6357 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
6358
6359         [BZ #5277]
6360         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6361         because output buffer is too small break, don't loop.
6362         * iconvdata/Makefile (tests): Add bug-iconv6.
6363         * iconvdata/bug-iconv6.c: New file.
6364
6365 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
6366
6367         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6368         with size_t type.
6369         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6370         size_t.  Add casts where needed.
6371
6372         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6373         old headers, don't call avc_has_perm if we don't have the
6374         permission information.
6375
6376 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
6377
6378         * elf/rtld.c (dl_main): Use the page size to find the map start.
6379
6380 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
6381
6382         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6383         Patch by Szymon Siwek <sls@poczta.wp.pl>.
6384
6385         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6386         when the lookup call failed.
6387
6388         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6389         Add prune_cond and wakeup_time.
6390         (CACHE_PRUNE_INTERNAL): Define.
6391         Update declarations of prune_cache and setup_thread.
6392         * nscd/connections.c (dbs): Update initializers.
6393         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
6394         (nscd_init): Default number of threads is now 4.
6395         (invalidate_cache): Take lock before calling prune_cache.
6396         (handle_request): If SELinux forbids the request, say so.
6397         (readylist_cond): Use static initializer.
6398         (nscd_run_prune): New function.  Used only by pruning threads.
6399         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
6400         here.
6401         (fd_ready): Update nscd_run reference.
6402         (start_threads): No need to initialize readylist_cond.
6403         Start pruning threads separately.
6404         * nscd/nscd_setup_thread.c: Change return value type to int and always
6405         return 0.
6406         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
6407         to int and return nonzero value if we can use the TID address hack.
6408         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
6409         the database is later than the new entry's timeout, update the
6410         wakeup time and wake the cleanup thread.
6411         (prune_cache): Return seconds the next entry in the database is still
6412         valid.  Remove locking for pruning here.
6413         * nscd/nscd.conf: Document default number of threads.
6414
6415 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
6416
6417         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
6418         stack is properly aligned for the target function.
6419         Correct unwind info.
6420
6421         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
6422         when using auditing libraries.
6423
6424 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
6425
6426         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
6427         _nss_dns_getnetbyaddr2_r.
6428         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
6429         extra parameter to getanswer_r.
6430         (_nss_dns_getnetbyaddr_r): Now a wrapper around
6431         _nss_dns_getnetbyaddr2_r.
6432
6433         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
6434         gethstbynm3_r.
6435         * nscd/gethstbynm2_r.c: Remove.
6436         * nscd/gethstbynm3_r.c: New file.
6437         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
6438         __gethostbyaddr_r.
6439         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
6440         __gethostbyaddr_r compatibility wrapper.
6441         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
6442         determining timeout of entry.
6443         (lookup): Take new parameter and pass it to __gethostbyname3_r and
6444         __gethostbyaddr2_r.
6445         (addhstbyX): Pass reference to variable for TTL to lookup and
6446         cache_addhst.
6447         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
6448         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
6449         and __nss_next2.  Remove __nss_services_lookup.
6450         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
6451         Add compat wrapper.
6452         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
6453         __nss_next2.
6454         * nss/getXXent_r.c: Likewise.
6455         * nss/getnssent_r.c: Likewise.
6456         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
6457         does not exist in module, try the optional second name.
6458         (__nss_next2): New function.
6459         (__nss_next): Now wrapper around __nss_next2.
6460         * nss/nsswitch.h: Adjust __nss_lookup prototype.
6461         Declare __nss_next2.
6462         Adjust definition of db_lookup_function type.
6463         * nss/service-lookup.c: Define NO_COMPAT.
6464         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
6465         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
6466         * inet/ether_ntoh.c: Likewise.
6467         * sunrpc/netname.c: Likewise.
6468         * sunrpc/publickey.c: Likewise.
6469         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
6470         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
6471         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
6472         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
6473         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
6474
6475         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
6476
6477         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
6478
6479 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
6480
6481         [BZ #5204]
6482         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
6483         * crypt/sha512c-test.c: Likewise.
6484
6485         [BZ #5225]
6486         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
6487         to keep track of end of %[ format string element.
6488         * stdio-common/Makefile (tests): Add bug20.
6489         * stdio-common/bug20.c: New file.
6490
6491         [BZ #5222]
6492         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
6493         path elements in counting mode.
6494
6495 2007-10-27  Andreas Jaeger  <aj@suse.de>
6496
6497         [BZ #5040]
6498         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
6499
6500         [BZ #3112]
6501         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
6502         (__cleanup): Free shared library when exiting.
6503         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
6504         (__cleanup): Free shared library when exiting.
6505
6506 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
6507
6508         [BZ #2549]
6509         * math/libm-test.inc (check_float_internal): Support
6510         denormalized return.
6511
6512 2007-10-23  Andreas Jaeger  <aj@suse.de>
6513
6514         [BZ #5208]
6515         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
6516         __LONG_LONG_PAIR to handle little endian byte order.
6517         Suggested by abhishekrai@google.com
6518
6519 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
6520
6521         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
6522
6523 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
6524
6525         * nscd/cache.c (prune_cache): Move test for modified file outside
6526         of locking.
6527
6528 2007-10-21  Andreas Jaeger  <aj@suse.de>
6529
6530         * manual/texinfo.tex: Update to latest version.
6531
6532         * manual/sysinfo.texi (System Parameters): Fix Formatting.
6533
6534         * manual/arith.texi (Status bit operations): Fix formatting.
6535
6536         * manual/errno.texi (Error Messages): Fix formatting.
6537
6538         * manual/sysinfo.texi (System Parameters): Fix formatting.
6539
6540         * manual/libc.texinfo: Update VERSION and UPDATED.
6541
6542 2007-10-19  Roland McGrath  <roland@redhat.com>
6543
6544         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
6545
6546 2007-10-06  David S. Miller  <davem@davemloft.net>
6547
6548         * configure.in: Add sparcv9v2 and sparc64v2.
6549         * scripts/config.sub: Likewise.
6550         * configure: Regenerate.
6551         * elf/elf.h (HWCAP_SPARC_N2): New.
6552         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
6553         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
6554         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
6555         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
6556         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
6557         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
6558         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
6559
6560 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
6561
6562         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
6563         even if the poll result indicates there is data to read.
6564         Patch by Jeff Moyer <jmoyer@redhat.com>.
6565
6566 2007-10-18  Roland McGrath  <roland@redhat.com>
6567
6568         * elf/elf.h (NT_PPC_VMX): New macro.
6569
6570 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6571
6572         * version.h (VERSION): Set to 2.7.90.
6573
6574 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
6575
6576         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
6577         weak_alias.
6578
6579 2007-10-17  Roland McGrath  <roland@frob.com>
6580
6581         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
6582         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
6583
6584 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6585
6586         * version.h (VERSION): Bump to 2.7.
6587         * include/features.h (__GLIBC_MINOR__): Bump to 7.
6588
6589         [BZ #5186]
6590         * time/tzset.c (__tz_convert): Don't force testing for a change of
6591         TZ if not called from localtime.  But then also see whether the
6592         file changed, in case __use_tzfile is set.
6593
6594         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
6595         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6596         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6597         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6598         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6599         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6600         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
6601         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6602
6603 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
6604
6605         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
6606         and admin selects to be able to replace the gai.conf file, lock
6607         data structures around the qsort call.
6608
6609 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6610
6611         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
6612         new memset.
6613         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
6614         too high for the improvements.  Implement bzero unconditionally for
6615         use in libc.
6616
6617 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
6618             Jakub Jelinek  <jakub@redhat.com>
6619
6620         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
6621         even when time_t is 32-bit.
6622         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
6623         timezone data read by __tzfile_default.  Ensure __tzname[0] is
6624         always set after the search.
6625
6626 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
6627
6628         * time/tzfile.c (__tzfile_read): Help the compiler recognize
6629         unreachable code on 32-bit machines.
6630
6631 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6632
6633         [BZ #5184]
6634         * time/strftime_l.c: Include stdbool.h.
6635         (my_strftime): New wrapper, old function renamed to...
6636         (__strftime_internal): ... new function.  Add tzset_called
6637         argument, pass it down to recursive calls, don't call tzset ()
6638         if already true, set to true after call to tzset ().
6639
6640 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
6641
6642         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
6643         into account when copying TZ string.
6644
6645 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6646
6647         * time/tzfile.c (__tzfile_compute): For use_last case set i to
6648         num_transition rather than num_transitions - 1.
6649
6650 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
6651
6652         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
6653         PIC indirect jump.
6654
6655         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
6656         a local label rather than HIDDEN_JUMPTARGET.
6657
6658 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
6659
6660         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
6661         (init_cacheinfo): Initialize it.
6662         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
6663         Always define bzero.
6664         Remove non-glibc code.
6665         * sysdeps/x86_64/bzero.S: Make an empty file.
6666
6667 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
6668
6669         * sysdeps/x86_64/cacheinfo.c
6670         (__x86_64_preferred_memory_instruction): New.
6671         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6672
6673         * sysdeps/x86_64/memset.S: Rewrite.
6674
6675 2007-10-15  Roland McGrath  <roland@redhat.com>
6676
6677         * po/libc.pot: Regenerated.
6678
6679 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
6680
6681         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
6682         pointers.
6683
6684         [BZ #3425]
6685         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
6686         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
6687         address record to T_A/T_AAAA requests.
6688
6689 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
6690
6691         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
6692
6693         * posix/glob.c: Add some branch prediction throughout.
6694
6695         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
6696         read from nscd.
6697
6698         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
6699         service_order.
6700         (rfc3484_sort): Make sure that even if qsort doesn't support
6701         stable sorting out sorting here is stable by comparing service_order.
6702         (getaddrinfo): Initialize service_order.
6703         * posix/tst-rfc3484.c (do_test): Adjust for addition of
6704         service_order field to sorting structure.
6705         * posix/tst-rfc3484-2.c (do_test): Likewise.
6706
6707         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
6708         * time/tzset.c (tzset_internal): Break TZ string parsing out into
6709         __tzset_parse_tz and updating of daylight, timezone, tzname into
6710         update_vars.
6711         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
6712         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
6713         happens in __tz_compute.
6714         * time/tzfile.c (__tzfile_read): Also read TZ string.
6715         (find_transition): Fold into __tzfile_compute.
6716         (__tzfile_compute): For times beyond the last transition try to
6717         use the TZ string.
6718         * timezone/tst-timezone.c: Information in daylight and tzname does
6719         change for Asia/Tokyo timezone with more concrete information.
6720         Remove the test.
6721
6722         * include/stdio.h: Add libc_hidden_proto for ftello.
6723         * libio/ftello.c: Add libc_hidden_def.
6724
6725         [BZ #1140]
6726         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
6727         on the specified time and not the last entries in the file.  Move
6728         code to determine tzname[] to...
6729         (find_transition): ...here.  Add ugly guess for times before the
6730         first transition.
6731
6732 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6733
6734         [BZ #3195]
6735         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6736         no entry.
6737         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
6738         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6739         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6740         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6741
6742         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
6743         read mechanism when there are no group members and avoid no-op
6744         read syscall in this case.
6745
6746         [BZ #3242]
6747         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
6748         (__readall): If reading failed due to EAGAIN error wait a bit
6749         and possibly try again.
6750         (__readvall): Likewise.
6751
6752 2007-10-13  Bruno Haible  <bruno@clisp.org>
6753
6754         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6755         when we cannot recode the message.
6756
6757 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
6758
6759         [BZ #4359]
6760         * libio/__freading.c (__freading): Don't return true for
6761         write-only streams.  For read/write streams, check whether we
6762         performed a read operation already.
6763         * libio/Makefile (tests): Add tst-ext2.
6764         * libio/tst-ext2.c: New file.
6765
6766 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6767
6768         * locale/programs/repertoire.c (repertoire_read): Always free
6769         memory for repertoire file name [Coverity CID 270].
6770
6771         * elf/cache.c (save_aux_cache): Free memory allocated for
6772         temporary file name [Coverity CID 267].
6773
6774 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
6775
6776         * misc/Makefile (headers): Add bits/error.h.
6777
6778 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
6779
6780         * posix/fnmatch_loop.c: Take rule index returned as part of
6781         findidx return value into account when accessing weights.
6782         * posix/regcomp.c: Likewise.
6783         * posix/regexec.c: Likewise.
6784
6785         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
6786         (skip_to): Fix problems with parameter of elifdef/elifndef.
6787
6788 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
6789
6790         * iconv/gconv_simple.c: Add some branch prediction.
6791
6792 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
6793
6794         * locale/programs/ld-collate.c (collate_read): If ignore_content
6795         and nowtok is tok_define, eat any tok_eol tokens.
6796
6797 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
6798
6799         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
6800         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
6801
6802         * inet/netinet/in.h: Don't include bits/socket.h.
6803         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
6804         macro.
6805         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6806
6807 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
6808
6809         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
6810         and tok_elifndef.
6811         * locale/programs/locfile-kw.gperf: Likewise.
6812         * locale/programs/ld-collate.c: Implement primitive preprocessor.
6813
6814 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
6815
6816         * stdio-common/printf-parse.h: Include string.h and wchar.h.
6817         (__find_specwc): Change into __extern_always_inline function.
6818         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
6819         (__parse_one_specmb): Remove ps argument.
6820         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
6821         Adjust __find_specmb and __parse_one_specmb callers.
6822         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
6823         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
6824         Removed.
6825         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
6826         caller.
6827
6828 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
6829
6830         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
6831         with some Pentium Ds.
6832
6833 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
6834
6835         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
6836         __read not read.
6837         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
6838         __write not write.
6839
6840 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
6841
6842         [BZ #181]
6843         * locale/C-time.c: Set week_1stday data to 19971201.
6844         * locale/programs/ld-time.c (time_finish): Default for
6845         first_workday is Monday.
6846
6847         [BZ #2633]
6848         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
6849
6850         [BZ #5103]
6851         * posix/glob.c (glob): Recognize patterns starting \/.
6852         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
6853         (main): Add test for pattern starting \/.
6854
6855         * misc/error.h: Use __const instead of const.
6856         * misc/bits/error.h: Likewise.
6857
6858 2007-10-07  Andreas Jaeger  <aj@suse.de>
6859
6860         * include/bits/error.h: New file.
6861
6862         * misc/bits/error.h (error_at_line): Fix prototype.
6863
6864 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
6865
6866         [BZ #3924]
6867         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
6868         more little bugs in creating the stack frame when pltexit has to
6869         be called.
6870
6871         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
6872         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
6873
6874         [BZ #4407]
6875         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
6876         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6877         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6878         * math/libm-test.inc: Add test for this case.
6879
6880         [BZ #5010]
6881         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
6882         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
6883         map service succeeded.
6884         (svc_is_mapped): New function.
6885         (svc_unregister): Use it before trying to unmap service.
6886
6887 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
6888
6889         * timezone/zic.c: Update from tzcode2007h.
6890
6891         [BZ #5063]
6892         * timezone/africa: Update from tzdata2007h.
6893         * timezone/antarctica: Likewise.
6894         * timezone/asia: Likewise.
6895         * timezone/australasia: Likewise.
6896         * timezone/europe: Likewise.
6897         * timezone/leapseconds: Likewise.
6898         * timezone/northamerica: Likewise.
6899         * timezone/southamerica: Likewise.
6900         * timzeone/zone.tab: Likewise.
6901
6902         [BZ #5104]
6903         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
6904
6905         [BZ #5113]
6906         * string/bits/string2.h (__strdup): Cast parameters to calloc to
6907         avoid warning with -Wconversion.
6908         (__strndup): Likewise.
6909         Half the patch by Christian Iseli <christian.iseli@licr.org>.
6910
6911         [BZ #5112]
6912         * nscd/connections.c (restart): Don't resync if database is
6913         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
6914
6915         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
6916         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
6917
6918         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
6919         evetnfd_read, eventfd_write.
6920         * sysdeps/unix/sysv/linux/eventfd.c: New file.
6921         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
6922         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
6923         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
6924         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
6925         eventfd_write for GLIBC_2.7.
6926
6927         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
6928         * sysdeps/unix/sysv/linux/signalfd.c: New file.
6929         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
6930         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
6931
6932 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
6933
6934         * stdlib/msort.c: Include stdint.h.
6935         (struct msort_param): New type.
6936         (msort_with_tmp): Use struct msort_param pointer for unchanging
6937         parameters.  Add optimized handling for several common sizes
6938         and indirect sorting mode.
6939         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
6940         sorting.
6941         Suggested by Belazougui Djamel .
6942
6943         * stdlib/Makefile (tests): Add tst-qsort2.
6944         * stdlib/tst-qsort2.c: New test.
6945
6946 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
6947
6948         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
6949         for dup2 in case another thread races with the current one.  Retry
6950         in this case.
6951
6952         * misc/error.h: Remove support for use outside of libc.  We have to
6953         include <features.h> now.  Include <bits/error.h> if possible.
6954         * misc/bits/error.h: New file.
6955
6956 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
6957
6958         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
6959         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
6960         __extern_always_inline functions unconditionally, drop macros.
6961
6962         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
6963         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
6964         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
6965
6966         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
6967         add __artificial__ attribute.
6968
6969 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
6970
6971         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
6972         backward to forward direction.
6973
6974         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
6975
6976         [BZ #645]
6977         * locale/programs/ld-collate.c (collate_finish): Compare against last
6978         used section which is known to have rules defined.
6979         (collate_read): After order_start, correctly record order of sections
6980         and queue sections up.
6981
6982 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
6983
6984         [BZ #5071]
6985         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
6986         the same number of pages.
6987         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
6988
6989         * locale/programs/ld-collate.c (collate_read): After initial copy
6990         statement, continue in state 0.
6991
6992         * include/stdio_ext.h (__fsetlocking): Define as macro.
6993
6994 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
6995
6996         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
6997         of section order.
6998
6999         * po/pt_BR.po: Fix typo.
7000
7001 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
7002
7003         * iconvdata/Makefile (modules): Add ISO8859-9E.
7004         (distribute): Add iso8859-9e.c.
7005         (gen-8bit-gap-modules): Add iso8859-9e.
7006         * iconvdata/iso8859-9e.c: New file.
7007         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7008         * iconvdata/TESTS: Likewise.
7009         * iconvdata/tst-tables.sh: Likewise.
7010
7011         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7012
7013         * locale/iso-639.def: Add several new entries.
7014
7015 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7016
7017         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7018         void * pointers instead of struct link_map **.
7019         (_dl_scope_free): Change argument type to void *.
7020         * include/link.h (struct link_map): Change type of l_reldeps
7021         to struct link_map_reldeps, move l_reldepsact into that
7022         struct too.
7023         * elf/dl-deps.c: Include atomic.h.
7024         (_dl_map_object_deps): Only change l->l_initfini when it is
7025         fully populated, use _dl_scope_free for freeing it.  Optimize
7026         removal of libs from reldeps by using l_reserved flag, when
7027         some removal is needed, allocate a new list instead of
7028         reallocating and free the old with _dl_scope_free.  Adjust
7029         for l_reldeps and l_reldepsact changes.
7030         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
7031         searching in l_initfini and l_reldeps without holding dl_load_lock.
7032         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7033         l_reldepsact changes.
7034         * elf/dl-close.c (_dl_close_worker): Likewise.
7035         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7036
7037 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
7038
7039         * iconvdata/Makefile (modules): Add KOI8-RU.
7040         (distribute): Add koi8-ru.c.
7041         (gen-8bit-gap-modules): Add koi8-ru.
7042         * iconvdata/koi8-ru.c: New file.
7043         * iconvdata/gconv-modules: Add entries for KOI8-RU.
7044         * iconvdata/TESTS: Likewise.
7045         * iconvdata/tst-tables.sh: Likewise.
7046
7047         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7048
7049 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
7050
7051         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7052         with __warning__/__error__ attributes.
7053         (__warnattr): Define.
7054         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7055         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7056         __warnattr.
7057         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7058         of __*_chk if compile time detectable overflow is found.
7059         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7060         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7061         with __warnattr.
7062         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7063         instead of __*_chk if compile time detectable overflow is found.
7064         (__gets_alias): Rename to...
7065         (__gets_warn): ... this.  Add __warnattr.
7066         (gets): Call __gets_warn instead of __gets_alias.
7067         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7068         aliases with __warnattr.
7069         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7070         time detectable overflow is found.
7071         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7072         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7073         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7074         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7075         __getdomainname_chk_warn): New aliases with __warnattr.
7076         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7077         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7078         __*_chk_warn instead of __*_chk if compile time detectable overflow
7079         is found.
7080         (__getgroups_chk): Rename argument to __listlen from listlen.
7081         (__getwd_alias): Rename to...
7082         (__getwd_warn): ... this.  Add __warnattr.
7083         (getwd): Call __getwd_warn instead of __getwd_alias.
7084         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7085         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7086         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7087         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7088         __wcsnrtombs_chk_warn): New aliases with __warnattr.
7089         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7090         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7091         compile time detectable overflow is found.
7092         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
7093         to use __*_chk or not.
7094         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7095         in comparisons which function should be called and in __*_chk*
7096         arguments.  Call __*_chk_warn instead of __*_chk if compile time
7097         detectable overflow is found.
7098         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7099         __*_chk argument.
7100         * debug/tst-chk1.c (do_test): Add a few more tests.
7101
7102 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
7103
7104         [BZ #5058]
7105         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7106         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7107         (_nl_unload_domain): Finalize conversions_lock.
7108         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7109         handling table of known conversions.
7110
7111 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
7112
7113         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7114         close_not_cancel_no_status instead of close.
7115
7116 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
7117
7118         [BZ #5028]
7119         * posix/regcomp.c (lookup_collation_sequence_value): Check that
7120         nrules != 0 for multibyte chars.
7121
7122 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
7123
7124         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7125         Provide better error message in case the type is unknown.
7126
7127         [BZ #4963]
7128         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7129         * string/stratcliff.c: Make usable to test wide char functions.
7130         * wcsmbs/wcsatcliff.c: New file.
7131         * wcsmbs/Makefiel (tests): Add wcsatcliff.
7132
7133         [BZ #4972]
7134         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7135         (distribute): Add mac-centraleurope.c.
7136         (gen-8bit-gap-modules): Add mac-centraleurope.
7137         * iconvdata/mac-centraleurope.c: New file.
7138         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7139         * iconvdata/TESTS: Likewise.
7140         * iconvdata/tst-tables.sh: Likewise.
7141
7142         [BZ #5043]
7143         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7144
7145 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
7146
7147         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7148         from __x86_64_core_cache_size_half.
7149         (init_cacheinfo): Compute shared cache size for AMD processors with
7150         shared L3 correctly.
7151         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7152         name change.
7153         Patch in large parts by Evandro Menezes.
7154
7155 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
7156
7157         * elf/dl-lookup.c (add_dependency): Handle failing memory
7158         allocation for dependency list.  Remove unnecessary check.
7159
7160         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7161         open/close when determining source addresses.
7162
7163         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7164         sha512-crypt, and sha512.
7165         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7166         (distribute): Add sha256.h and sha512.h.
7167         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7168         and call the appropriate code.
7169         * crypt/sha256-crypt.c: New file.
7170         * crypt/sha256.c: New file.
7171         * crypt/sha256.h: New file.
7172         * crypt/sha256c-test.c: New file.
7173         * crypt/sha256test.c: New file.
7174         * crypt/sha512-crypt.c: New file.
7175         * crypt/sha512.c: New file.
7176         * crypt/sha512.h: New file.
7177         * crypt/sha512c-test.c: New file.
7178         * crypt/sha512test.c: New file.
7179
7180 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
7181
7182         * misc/bits/syslog.h (syslog): Remove extraneous argument from
7183         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7184         __syslog_chk.
7185
7186 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
7187
7188         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7189         %as in fscanf format strings.
7190
7191         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7192         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7193         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7194         Likewise.
7195         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7196         Likewise.
7197
7198         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7199         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7200         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7201         * elf/dl-sym.c (do_sym): Likewise.
7202         * include/link.h (struct link_map): Add l_serial field.
7203         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7204         * elf/dl-lookup.c (add_dependency): Add flags argument.
7205         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7206         flags, use THREAD_GSCOPE_RESET_FLAG before and
7207         THREAD_GSCOPE_SET_FLAG after
7208         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7209         Don't dereference map until it has been found on some list.
7210         If map->l_serial changed, return -1.
7211
7212 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
7213
7214         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7215         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7216         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7217         libc_hidden_proto.
7218         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7219         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7220         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7221         add libc_hidden_proto.
7222         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7223         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7224         conformance requested.
7225         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7226         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7227         conformance requested.
7228         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7229         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7230         conformance requested.
7231         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7232         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7233         ISO C99 or POSIX conformance requested.
7234         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7235         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7236         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7237         and __isoc99_vsscanf@@GLIBC_2.7.
7238         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7239         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7240         (tests): Add scanf14.
7241         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7242         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7243         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7244         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7245         CFLAGS-isoc99_scanf.c): Add $(exceptions).
7246         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7247         from using internal headers.
7248         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7249         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7250         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7251         and __isoc99_vswscanf@@GLIBC_2.7.
7252         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7253         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7254         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7255         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7256         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7257         * stdio-common/isoc99_scanf.c: New file.
7258         * stdio-common/isoc99_vsscanf.c: New file.
7259         * stdio-common/isoc99_vscanf.c: New file.
7260         * stdio-common/isoc99_vfscanf.c: New file.
7261         * stdio-common/isoc99_fscanf.c: New file.
7262         * stdio-common/isoc99_sscanf.c: New file.
7263         * wcsmbs/isoc99_fwscanf.c: New file.
7264         * wcsmbs/isoc99_vswscanf.c: New file.
7265         * wcsmbs/isoc99_swscanf.c: New file.
7266         * wcsmbs/isoc99_wscanf.c: New file.
7267         * wcsmbs/isoc99_vwscanf.c: New file.
7268         * wcsmbs/isoc99_vfwscanf.c: New file.
7269         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7270         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7271         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7272         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7273         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7274         * stdio-common/scanf14.c: New test.
7275         * stdio-common/scanf15.c: New test.
7276         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7277         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7278         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7279         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7280         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7281         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7282         __nldbl___isoc99_scanf@@GLIBC_2.7,
7283         __nldbl___isoc99_fscanf@@GLIBC_2.7,
7284         __nldbl___isoc99_sscanf@@GLIBC_2.7,
7285         __nldbl___isoc99_vscanf@@GLIBC_2.7,
7286         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7287         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7288         __nldbl___isoc99_wscanf@@GLIBC_2.7,
7289         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7290         __nldbl___isoc99_swscanf@@GLIBC_2.7,
7291         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7292         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7293         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7294         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7295         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7296         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7297         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7298         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7299         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7300         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7301         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7302         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7303         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7304         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7305         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7306         functions.
7307         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7308         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7309         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7310         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7311         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7312         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7313         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7314         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7315         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7316         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7317         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7318         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7319
7320         * stdio-common/Makefile (tests): Add scanf13.
7321         (scanf13-ENV): New.
7322         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7323         m modifier followed by l.
7324         (STRING_ARG): Add width argument.
7325         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7326         <case L_('C')>: Handle %mlc and %mC.
7327         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7328         arguments.
7329         * stdio-common/scanf13.c: New test.
7330
7331         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7332         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7333
7334 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
7335
7336         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
7337         type and __THROW marker of splice, vmsplice, and tee.
7338         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7339         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7340         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7341         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7342         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7343         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7344         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7345         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7346         as cancellation points.
7347
7348 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
7349
7350         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7351         parse more than three parts of the version number.
7352
7353 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
7354
7355         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7356         modifier.  Patch by Jakub Jelinek.
7357
7358 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
7359
7360         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7361         call_fallocate in misc subdir.
7362         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7363         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7364         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7365         instead of __fallocate64.
7366         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7367
7368 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
7369
7370         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7371         * rt/Makefile (headers): Add bits/mqueue2.h.
7372         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7373         optimizing with GCC and __va_arg_pack_len is defined.
7374         * rt/bits/mqueue2.h: New file.
7375         * rt/mq_open.c (__mq_open): Renamed from mq_open.
7376         (mq_open): New strong_alias.
7377         (__mq_open_2): New function.
7378         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7379         (mq_open): New strong_alias.
7380         (__mq_open_2): New function.
7381         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7382         * Versions.def (librt): Add GLIBC_2.7 version.
7383         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7384         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7385
7386         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7387         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7388         is defined rather than when not C++.
7389         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7390         __openat64_alias): New redirects.
7391         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7392         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
7393         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
7394         (open, open64, openat, openat64): Rewrite as __extern_always_inline
7395         functions instead of function-like macros.
7396
7397 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7398
7399         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
7400         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
7401         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
7402
7403 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
7404
7405         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
7406         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
7407
7408 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
7409
7410         * inet/tst-network.c: Increment ERRORS for failing tests.
7411
7412 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
7413
7414         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
7415         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
7416         implement as __extern_always_inline function.
7417         (vsyslog): Define as __extern_always_inline function unconditionally.
7418         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
7419         When __va_arg_pack is defined, implement as __extern_always_inline
7420         functions.
7421         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7422         __extern_always_inline functions unconditionally.
7423         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
7424         bits/stdio2.h will be included.
7425         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
7426         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
7427         implement as __extern_always_inline functions.
7428         (vswprintf, vwprintf, vfwprintf): Define as
7429         __extern_always_inline functions unconditionally.
7430         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
7431
7432 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
7433
7434         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
7435         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
7436         attribute.
7437         * include/features.h (__USE_EXTERN_INLINES): Define only when
7438         __extern_inline is defined.
7439         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
7440         is defined instead of when not __cplusplus.
7441         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
7442         is defined instead of when not __cplusplus.
7443         * socket/sys/socket.h: Include bits/socket2.h when
7444         __extern_always_inline is defined instead of when not __cplusplus.
7445         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
7446         is defined instead of when not __cplusplus.
7447         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
7448         is defined instead of when not __cplusplus.
7449         * string/string.h: Include bits/string3.h when __extern_always_inline
7450         is defined instead of when not __cplusplus.
7451         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
7452         is defined instead of when not __cplusplus.
7453         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
7454         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
7455         is not defined.
7456         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
7457         defined __extern_always_inline instead of !defined __cplusplus.
7458         * libio/bits/stdio-ldbl.h: Likewise.
7459         * wcsmbs/bits/wchar-ldbl.h: Likewise.
7460         * misc/bits/syslog.h (syslog): Don't define for C++.
7461         (vsyslog): Use __extern_always_inline function for C++ instead of
7462         a macro.
7463         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
7464         whenever that macro is defined.
7465         (vprintf): Don't provide the inline for C++.
7466         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
7467         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
7468         define the macros for C++.
7469         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7470         __extern_always_inline functions for C++.
7471         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
7472         stat64, lstat64, fstat64, fstatat64): Don't define if not
7473         __USE_EXTERN_INLINES.
7474         * wcsmbs/bits/wchar2.h: Fix #error message.
7475         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
7476         (vswprintf, vwprintf, vfwprintf): Define using
7477         __extern_always_inline functions for C++.
7478         * string/bits/string3.h: Don't #undef macros if __cplusplus.
7479         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
7480         strncpy, strcat, strncat): Define as __extern_always_inline
7481         functions instead of macros for C++.
7482         * math/bits/cmathcalls.h: Guard __extern_inline routines with
7483         defined __extern_inline.
7484         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
7485         to __extern_inline whenever that macro is defined.
7486         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7487         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7488         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
7489         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
7490         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7491         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7492         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7493         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7494         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
7495         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
7496         prototypes.  Only provide __extern_inline routines if
7497         __USE_EXTERN_INLINES.
7498         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
7499         tests.
7500         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
7501         For now avoid some *printf tests in C++.  Skip all testing
7502         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
7503         is not.
7504         * debug/tst-chk4.cc: New file.
7505         * debug/tst-chk5.cc: New file.
7506         * debug/tst-chk6.cc: New file.
7507         * debug/tst-lfschk4.cc: New file.
7508         * debug/tst-lfschk5.cc: New file.
7509         * debug/tst-lfschk6.cc: New file.
7510         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
7511         prototypes in C++.
7512         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
7513         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
7514         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
7515
7516 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
7517
7518         * po/cs.po: Update from translation team.
7519
7520 2007-09-11  Roland McGrath  <roland@redhat.com>
7521
7522         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
7523         compiling.
7524
7525 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7526
7527         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
7528
7529 2007-09-05  Roland McGrath  <roland@redhat.com>
7530
7531         * manual/signal.texi (Signaling Another Process): Typo fix.
7532         From Karl Berry <karl@freefriends.org>.
7533
7534 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
7535
7536         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
7537         zero if not defined.
7538         (make_request): Recognize optimistic addresses and treat them like
7539         deprecated addresses.
7540         Reported by Neil Horman <nhorman@redhat.com>.
7541
7542 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
7543
7544         * nscd/connections.c (send_ro_fd): Also transfer file size.
7545         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
7546         file size don't call fstat.
7547
7548         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
7549         ahead and map the file.  This should always be correct and we can
7550         catch problems later.
7551
7552 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
7553
7554         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
7555         prototypes.
7556         (__fread_alias, __fread_unlocked_alias): New aliases.
7557         (fread): New extern inline.
7558         (fread_unlocked): Likewise.  Undef macro before definition of
7559         the inline function.
7560         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
7561         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
7562         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
7563         and __fread_unlocked_chk@@GLIBC_2.7.
7564         * debug/fread_chk.c: New file.
7565         * debug/fread_u_chk.c: New file.
7566         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
7567
7568 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
7569
7570         * sysdeps/unix/sysv/linux/syscalls.list
7571         (personality): Change caller to EXTRA.
7572
7573 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
7574
7575         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
7576         to keep gcc quiet.
7577         * iconvdata/iso-2022-cn.c (BODY): Likewise.
7578
7579         * locale/programs/ld-collate.c (collate_output): Avoid warning if
7580         NDEBUG is defined.
7581
7582         * Makerules: Use -p option with mkdir.
7583
7584         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
7585         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
7586         (_xdr_directory_obj): Likewise.
7587         (xdr_entry_obj): Likewise.
7588         (xdr_group_obj): Likewise.
7589         (xdr_link_obj): Likewise.
7590         (xdr_table_obj): Likewise.
7591         (_xdr_nis_result): Likewise.
7592         (_xdr_ns_request): Likewise.
7593         (_xdr_ib_request): Likewise.
7594         (_xdr_nis_taglist): Likewise.
7595         (xdr_cback_data): Likewise.
7596         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
7597         (xdr_ypresp_maplist): Likewise.
7598
7599         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
7600
7601         * posix/regex_internal.h: Prevent some declarations and definitions
7602         to be seen when used in tests.
7603
7604         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
7605         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
7606
7607         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
7608
7609         * config.make.in (datarootdir): Add to shut up configure.
7610
7611         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
7612         associativity for fully-associative caches.
7613
7614         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
7615         requests.  Fill on more associativity values for L2.
7616         Patch mostly by Evandro Menezes.
7617
7618 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
7619
7620         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7621         (_libc_vdso_platform_setup): Avoid using exported variable by using
7622         alias.
7623
7624         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
7625
7626         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
7627         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
7628         defined.
7629
7630 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
7631
7632         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
7633         align stack for call if pltexit is to be used.
7634
7635         [BZ #3924]
7636         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
7637         align for function call in case pltexit has to be called later.
7638
7639         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
7640         implicit atomic operation when storing function pointer.
7641         (_dl_runtime_profile): Likewise.
7642
7643 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
7644
7645         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
7646         NIS_NOTFOUND.
7647
7648 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
7649
7650         [BZ #4566]
7651         * string/strtok.c: Fix typo in comment.
7652
7653         [BZ #4582]
7654         * debug/segfault.c: Fix typos in comments.
7655
7656         [BZ #4588]
7657         * stdio-common/tempnam.c: Fix comment, it is not checked that
7658         TMPDIR points to a writable directory.
7659
7660         [BZ #4726]
7661         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
7662         memory allocated for the name server address.
7663
7664         [BZ #4946]
7665         * nscd/connections.c (handle_request): Using sendfile always
7666         requires that mmap is used for the database.
7667         Patch by Petr Baudis <pasky@suse.cz>.
7668
7669         [BZ #4905]
7670         * nscd/hstcache.c (cache_addhst): When reloading an entry which
7671         suddenly has two or more addresses, ignore it and remove the old
7672         entry.
7673
7674         [BZ #4814]
7675         * resolv/res_hconf.c: Prepare for compiling outside libc.
7676         * nscd/res_hconf.c: New file.
7677         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
7678         the new file.
7679         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
7680         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
7681
7682         * nscd/hstcache.c (cache_addhst): Minimal optimization.
7683
7684         [BZ #4925]
7685         * debug/pcprofiledump.c: Turn on internationalization by calling
7686         setlocale.  Patch mostly by Benno Schulenberg.
7687
7688         [BZ #4936]
7689         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
7690         the state.
7691         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
7692         * iconvdata/bug-iconv5.c: New file.
7693
7694 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
7695
7696         [BZ #4896]
7697         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
7698         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
7699         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
7700         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
7701         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
7702         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
7703         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
7704         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
7705
7706 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
7707
7708         [BZ #4937]
7709         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
7710         lookup loop.  Suggested by John Reiser.
7711
7712 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
7713
7714         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
7715
7716 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
7717
7718         * csu/libc-start.c: Don't handle VDSO_SETUP here.
7719         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
7720         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
7721         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
7722         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
7723         to...
7724         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
7725
7726 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
7727
7728         * po/nl.po: Update from translation team.
7729
7730 2007-08-16  Andreas Jaeger  <aj@suse.de>
7731
7732         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
7733         Reported by Peter Festner <peter.festner@ewetel.net>.
7734
7735 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
7736
7737         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7738
7739 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
7740
7741         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7742         to check for undefined symbols.
7743
7744         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7745         If the syscall fails, set errno to the actual returned error number
7746         rather than EINVAL.
7747         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
7748         arguments are incorrect, set errno to EINVAL, if the syscall
7749         fails, set errno to the actual returned error number.
7750
7751         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7752         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7753
7754         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7755         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
7756         file.
7757         (ASI_PNF, ASI_BLK_P): Don't define.
7758         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
7759         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
7760         file.
7761         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
7762         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
7763         file.
7764
7765 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
7766
7767         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
7768         FE_UNDERFLOW on Niagara CPUs.
7769
7770         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
7771         exceptions.
7772
7773 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
7774
7775         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
7776         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
7777         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
7778         flush should be used or not inside of the function.
7779         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
7780
7781         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
7782         __thread_start): Use HIDDEN_JUMPTARGET.
7783         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
7784         __thread_start): Likewise.
7785         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
7786
7787         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
7788         Add libc_hidden_proto.
7789         (STRTOF): Add libc_hidden_proto.
7790         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
7791         (strtold_l, wcstold_l): Use them as second argument for
7792         long_double_symbol.
7793
7794 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
7795
7796         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
7797
7798 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7799
7800         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
7801
7802 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
7803
7804         * po/bg.po: New file.  From the translation team.
7805
7806 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
7807
7808         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
7809         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
7810         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
7811         when each feature was introduced.
7812
7813         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
7814         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
7815         (CHECK_HASH): New macro.
7816         (PREPARE_VERSION): Use it.
7817
7818         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
7819         prototype if not __ASSUME_PSELECT.
7820         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
7821         prototype if not __ASSUME_PPOLL.
7822
7823         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
7824
7825         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
7826         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
7827         is defined.
7828
7829 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
7830
7831         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7832         (_libc_vdso_platform_setup): If vDSO is not available point
7833         __vdso_gettimeofday to the vsyscall.
7834         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
7835         __vdso_gettimeofday instead of vsyscall.
7836
7837 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
7838
7839         * nscd/servicescache.c: Include kernel-features.h.
7840         * nscd/gai.c: Likewise.
7841         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
7842         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
7843         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
7844         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
7845         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
7846         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
7847         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
7848         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
7849         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
7850
7851 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
7852
7853         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
7854         and _dl_get_origin defines anymore.
7855
7856         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
7857         Build fix for systems which might lack POSIX timer support.
7858
7859         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7860         (_libc_vdso_platform_setup): Mangle function pointers before storing
7861         them.
7862         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
7863         Demangle vdso pointer before use.
7864         (INTERNAL_VSYSCALL): Likewise.
7865
7866         * elf/cache.c (primes): Mark as const.
7867         Noted by Roland McGrath.
7868
7869 2007-08-01  Andreas Jaeger  <aj@suse.de>
7870             Jakub Jelinek  <jakub@redhat.com>
7871
7872         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
7873         (options): Add option.
7874         (parse_opt): Handle option.
7875         (manual_link): Adjust process_file caller.  Call implicit_soname.
7876         (search_dir): Formatting.  Use and populate auxiliary cache.
7877         (main): Load and save auxiliary cache.
7878         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
7879         stat64 from fstat64 to caller.
7880         (implicit_soname): New function.
7881         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
7882         leave *soname as NULL.
7883         * elf/cache.c: Include libgen.h.
7884         (print_entry, print_cache, compare, save_cache, add_to_cache):
7885         Formatting and cleanups.
7886         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
7887         aux_cache_file): New structures.
7888         (AUX_CACHEMAGIC): Define.
7889         (primes): New array.
7890         (aux_hash_size, aux_hash): New variables.
7891         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
7892         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
7893         load_aux_cache, save_aux_cache): New functions.
7894         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
7895         (init_aux_cache, search_aux_cache, add_to_aux_cache,
7896         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
7897         (process_file): Adjust prototype.
7898
7899 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
7900
7901         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
7902         with __need_size_t.
7903
7904 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
7905
7906         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
7907         r_found_version structure as second parameter.
7908         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
7909         (_dl_vdso_vsym): Change type of second parameter accordingly.
7910         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
7911         (_libc_vdso_platform_setup): Adjust.
7912         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7913         (_libc_vdso_platform_setup): Likewise.
7914
7915         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
7916         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
7917         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
7918         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
7919         * csu/libc-start.c: Pretty printing.
7920         Use VDSO_SETUP if defined.
7921         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
7922         and let generic code call into _libc_vdso_platform_setup.
7923         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
7924         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
7925         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
7926         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
7927         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
7928         for GLIBC_PRIVATE.
7929         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
7930         (sysdep_rountines): Add dl-vdso.
7931
7932         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
7933         of routines.
7934
7935         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
7936         attribute_hidden to __vdso_gettimeofday prototype.
7937
7938 2007-08-12  Roland McGrath  <roland@redhat.com>
7939
7940         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
7941         From: Karl Berry <karl@freefriends.org>.
7942
7943 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
7944
7945         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
7946         an atime update for the files we read.
7947
7948 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7949
7950         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
7951
7952         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
7953         instead of mkstemp.
7954
7955         * misc/Makefile (routines): Add mkostemp and mkostemp64.
7956         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
7957         * misc/mkostemp.c: New file.
7958         * misc/mkostemp64.c: New file.
7959         * stdlib/stdlib.h: Declare the new functions.
7960         * sysdeps/posix/tempname.c: Add new parameter which is added to
7961         the flags for open.  Remove __GT_BIGFILE handling.
7962         * stdio-common/tempname.c: Likewise.
7963         * include/stdio.h: Adjust __gen_tempname prototype.
7964         Renumber __GT_* constants.
7965         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
7966         * misc/mkdtemp.c: Likewise.
7967         * misc/mkstemp.c: Likewise.
7968         * misc/mkstemp64.c: Likewise.
7969         * misc/mktemp.c: Likewise.
7970         * stdio-common/tempnam.c: Likewise.
7971         * stdio-common/tmpfile.c: Likewise.
7972         * stdio-common/tmpfile64.c: Likewise.
7973         * stdio-common/tmpnam.c: Likewise.
7974         * stdio-common/tmpnam_r.c: Likewise.
7975
7976 2007-08-10  Roland McGrath  <roland@frob.com>
7977
7978         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
7979         New macros.
7980         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
7981         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
7982
7983 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
7984
7985         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
7986         possible.
7987         * nss/nss_files/files-alias.c (internal_setent): Likewise.
7988         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
7989         * nss/nss_files/files-have_o_cloexec.c: New file.
7990
7991         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
7992         available.
7993
7994 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
7995
7996         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
7997         ___new_wcstold_l): New weak aliases.
7998         (strtold_l, wcstold_l): Use them as second argument for
7999         long_double_symbol.
8000
8001 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
8002
8003         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8004         register in test for error.
8005
8006         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8007         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8008
8009         * po/sv.po: Update from translation team.
8010
8011 2007-08-06  Roland McGrath  <roland@redhat.com>
8012
8013         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8014         Remove __strto*_l inlines.
8015         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8016         * stdlib/strtod.c: Add libc_hidden_def.
8017         * stdlib/strtod_l.c: Likewise.
8018         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8019         for __new_strtold and __new_wcstold.
8020         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8021         __STRTOF, STRTOF.
8022         * stdlib/strtol.c: Add libc_hidden_def.
8023         * stdlib/strtol_l.c: Likewise.
8024         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8025         strtoq.
8026
8027         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8028
8029         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8030         * scripts/data/localplt-generic.data: ... here.
8031         * elf/Makefile (check-data): Get generic file if no other.
8032         ($(objpfx)check-localplt.out): Make target unconditional.
8033
8034         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8035         Use ElfW(Nhdr).
8036
8037 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
8038
8039         * po/zh_CN.po: Updated translation from translation team.
8040
8041 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
8042
8043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8044         Don't use CGOTSETUP and CGOTRESTORE macros.
8045
8046 2007-08-04  Roland McGrath  <roland@redhat.com>
8047
8048         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8049
8050 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
8051
8052         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8053         __extension__ around the whole statement expression.
8054
8055 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
8056
8057         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8058         elements during initialization.
8059
8060         * po/pl.po: Updated translation from translation team.
8061         * po/tr.po: Likewise.
8062         * po/nl.po: Likewise.
8063
8064 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
8065
8066         * rt/aio.h: Add __nonnull attributes.
8067
8068 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8069
8070         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8071         * stdlib/Makefile (tests): Add tst-strtod5.
8072         (tst-strtod5-ENV): New.
8073         * stdlib/tst-strtod5.c: New file.
8074
8075         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8076         failed.
8077         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8078         on failure.
8079
8080         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8081         allocated.
8082
8083 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
8084
8085         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8086         numbers.
8087
8088 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
8089
8090         * io/Makefile (aux): Add have_o_cloexec.
8091         * include/fcntl.h: Declare __have_o_cloexec.
8092         * io/have_o_cloexec.c: New file.
8093         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8094         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8095         fcntl call if not necessary.
8096         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8097         of local variable.
8098
8099         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8100         Avoid memset, add explicit initialization.
8101         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8102         to the end and change into zero-sized array.
8103         Move lock member to fill a hole on 64-bit platforms.
8104
8105         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8106         inline functions.
8107         * include/stdlib.h: Add __strto*_internal prototypes here.
8108         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8109         inline functions.
8110         * include/wchar.h: Add __wcsto*_internal prototypes.
8111         * sysdeps/generic/inttypes.h: No need to protect the declaration
8112         of the __strto*_internal and __wcsto*_internal members here.
8113
8114         * rt/mqueue.h: Change const to __const and add nonnull attributes.
8115
8116 2007-08-02  Roland McGrath  <roland@redhat.com>
8117
8118         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8119         $(inst_bindir)/getconf if possible.
8120
8121         * posix/Makefile ($(objpfx)getconf.speclist): New target.
8122         (generated): Add it.
8123         ($(inst_libexecdir)/getconf): Use it.
8124
8125 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
8126
8127         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8128         /proc is faster and sufficient.  /sys is still needed for
8129         __get_nprocs_conf.
8130
8131 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
8132
8133         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8134         syscall as __fallocate64.
8135         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8136         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8137
8138 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
8139
8140         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8141         value.
8142
8143         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8144         if off_t is different rank from size_t.
8145
8146         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8147         uw_frame_state_for): Avoid type punning warnings.
8148         * sysdeps/generic/unwind-dw2-fde-glibc.c
8149         (_Unwind_IteratePhdrCallback): Likewise.
8150         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8151         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8152         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8153         pointers.
8154
8155 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
8156
8157         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8158         total processors using sysfs.
8159         (__get_nprocs): Use sysfs to determine which processors are online.
8160
8161 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
8162
8163         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8164         syscall arguments count.
8165
8166         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8167
8168 2007-07-30  Roland McGrath  <roland@redhat.com>
8169
8170         * manual/libc.texinfo: Update copyrights, formatting magic, and
8171         @dircategory.  From Karl Berry <karl@freefriends.org>.
8172
8173 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
8174
8175         [BZ #4860]
8176         * io/Makefile (headers): Add bits/fcntl2.h.
8177
8178         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8179         using gcc builtin.
8180         (__CPU_EQUAL_S): Likewise.
8181
8182         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8183         (tests): Add tst-cpuset.
8184         * posix/sched_cpualloc.c: New file.
8185         * posix/sched_cpufree.c: New file.
8186         * posix/tst-cpuset.c: New file.
8187         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8188         GLIBC_2.7.
8189         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8190         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8191         macros.  Define CPU_*_S macros.
8192
8193 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8194
8195         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8196         entry.
8197
8198         [BZ #4858]
8199         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8200         #.0g and value rounded to 1.0.
8201         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8202
8203 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
8204
8205         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8206         for int_frac_digits and frac_digits.
8207
8208         * login/logout.c (logout): Avoid aliasing violation.
8209         * login/logwtmp.c (logwtmp): Likewise.
8210
8211         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8212
8213         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8214         to avoid warning.
8215         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8216         warning.
8217         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8218         warning.
8219         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8220         to avoid warnings.
8221
8222         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8223         void **.
8224         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8225
8226         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8227         char * to avoid warning.
8228         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8229
8230         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8231
8232         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8233         allocate_arrays): Cast second argument to charmap_find_symbol
8234         to char * to avoid warnings.
8235
8236         * locale/programs/repertoire.c (repertoire_new_char): Change
8237         from_nr, to_nr and cnt to unsigned long, adjust printf format
8238         string.
8239
8240         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8241         Cast second argument to new_element to char * to avoid warnings.
8242
8243         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8244
8245         * intl/gettextP.h (struct loaded_domain): Change plural to const
8246         struct expression *.
8247         * intl/plural-eval.c (plural_eval): Change first argument to
8248         const struct expression *.
8249         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8250         argument to const struct expression **.
8251         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8252         prototypes.
8253         * intl/loadmsgcat (_nl_unload_domain): Cast away const
8254         in call to __gettext_free_exp.
8255
8256         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8257         unitialized wstring/wpattern var warnings.
8258
8259         * posix/runtests.c (struct a_test): Make data field const char *.
8260
8261         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8262         vars if not LDBL_MANT_DIG >= 106.
8263
8264         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8265
8266         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8267         __find_specmb to avoid warning.
8268
8269         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8270
8271         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8272         to avoid warnings.
8273
8274         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8275         initializer.
8276
8277         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8278         tv var when it will be actually used.
8279
8280         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8281         to avoid warnings.
8282
8283         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8284         char array resp. pointer.
8285         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8286         char array.
8287         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8288         to const unsigned char **.
8289         (ucs4_to_cns11643): Change second argument to unsigned char *.
8290         * iconvdata/euc-tw.c (BODY): Change endp type to
8291         const unsigned char *.
8292         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8293         to unsigned char *.
8294         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8295         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8296         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8297         types to unsigned char pointers/arrays instead of char.
8298         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8299         to unsigned char *.
8300         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8301         * iconvdata/jis0212.h: Include assert.h.
8302         (ucs4_to_jisx0212): Change second argument to unsigned char *.
8303         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8304         of trying to handle that.
8305         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8306         shut up a warning.
8307         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8308         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8309         two dimensional const unsigned char arrays.
8310         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8311         Initialize endp to inptr to shut up a warning.
8312
8313 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8314
8315         [BZ #4772]
8316         * time/strptime_l.c (__strptime_internal): Silently ignore
8317         strftime modifiers and field width in recursive calls.
8318
8319         * include/time.h (enum ptime_locale_status): Remove.
8320         (__strptime_internal): Remove decided and era_cnt arguments,
8321         add statep argument.
8322         * time/strptime_l.c (__strptime_internal): Remove decided
8323         and era_cnt arguments, add statep argument.  Don't recompute
8324         any fields in recursive calls, only update caller's tm
8325         and state, if recursive call fails, don't change tm nor
8326         any state.
8327         (get_alt_number): Adjust.
8328         (recursive): Adjust caller.
8329         (strptime): Likewise.
8330         * time/strptime.c (strptime): Likewise.
8331
8332 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
8333
8334         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8335         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8336         if from and to charsets are the same.
8337         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8338         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8339         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8340
8341 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8342
8343         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8344         Don't define wint_t when __need_mbstate_t unless it
8345         is necessary.
8346         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8347         in the typedef if possible.
8348         * wctype/wctype.h (wint_t): Define by including
8349         wchar.h with __need_wint_t instead of including stddef.h
8350         with __need_wint_t and as fallback definining it ourselves.
8351         * iconv/gconv.h (__need_wint_t): Define before including
8352         wchar.h.
8353         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8354         or _GLIBCPP_USE_WCHAR_T.
8355         (__need_wchar_t): Don't define
8356         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8357         (__need_wint_t): Don't define before including stddef.h,
8358         define before including wchar.h only if _LIBC or
8359         _GLIBCPP_USE_WCHAR_T.
8360         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8361         * sysdeps/mach/hurd/_G_config.h: Likewise.
8362         * sysdeps/generic/_G_config.h: Likewise.
8363         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8364         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8365         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8366         if _LIBC or _GLIBCPP_USE_WCHAR_T.
8367
8368 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
8369
8370         * sysdeps/posix/posix_fallocate64.c: Undefine
8371         __posix_fallocate64_l64 before alias handling.
8372         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8373         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8374         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8375         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8376
8377         * io/tst-posix_fallocate.c: Include <fcntl.h>.
8378
8379 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
8380
8381         * locale/programs/ld-collate.c (atwc): New variable.
8382         (add_to_tablewc): New toplevel function, moved from collate_output.
8383         (collate_output): Remove add_to_tablewc nested function.
8384
8385         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8386         (name_insert): New function.
8387         (write_output): Remove hash_table and hash_size vars and name_insert
8388         nested function.
8389
8390 2007-07-24  Roland McGrath  <roland@redhat.com>
8391
8392         * Makerules (install-others-programs-nosubdir): New target.
8393         (install-no-libc.a-nosubdir): Depend on it.
8394
8395         * iconv/Makefile (install-others-programs): Set this instead of
8396         install-others.
8397         * login/Makefile (install-others-programs): Likewise.
8398         * posix/Makefile (install-others-programs): Likewise.
8399
8400         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
8401         dependencies.
8402
8403 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
8404
8405         * io/Makefile (tests): Add tst-posix_fallocate.
8406         * io/tst-posix_fallocate.c: New file.
8407
8408         * sysdeps/unix/sysv/linux/kernel-features.h: Define
8409         __ASSUME_FALLOCATE.
8410
8411 2007-07-22  Roland McGrath  <roland@frob.com>
8412
8413         * hurd/getdport.c: Add missing copyright year update.
8414
8415         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
8416         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
8417
8418 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
8419
8420         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
8421
8422         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
8423         O_CLOEXEC is needed.
8424         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
8425         Avoid additional fcntl to set O_CLOEXEC if not needed.
8426         * nis/nss_compat/compat-initgroups.c: Likewise.
8427         * nis/nss_compat/compat-pwd.c: Likewise.
8428         * nis/nss_compat/compat-spwd.c: Likewise.
8429
8430 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8431
8432         [BZ #3665]
8433         * manual/errno.texi: Change ECANCELED value to 119.
8434
8435         [BZ #4610]
8436         * mach/lock-intern.h: Include <sys/cdefs.h>.
8437
8438         [BZ #4178]
8439         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
8440         reading A.
8441
8442         [BZ #4126]
8443         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
8444         to __sigsuspend.
8445
8446         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
8447
8448 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
8449
8450         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
8451         `__ASSEMBLER__'.
8452         * sysdeps/mach/hurd/i386/tls.h: Likewise.
8453
8454 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
8455
8456         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
8457         descriptor received from nscd.
8458
8459         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
8460
8461         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
8462         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8463         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8464         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8465         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8466         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8467
8468 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
8469
8470         [BZ #4816]
8471         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
8472
8473         [BZ #4813]
8474         * login/forkpty.c (forkpty): Close master and slave fds on
8475         fork failure.  Patch by
8476         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
8477
8478 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
8479
8480         * include/features.h (__USE_ISOC95): New define.
8481         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
8482         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
8483         for -std=iso9899:199409.
8484         * CONFORMANCE: Remove comments about unsupported AMD1.
8485
8486 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
8487
8488         * sysdeps/ia64/sched_cpucount.c: New file.
8489         * sysdeps/powerpc/sched_cpucount.c: New file.
8490
8491         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
8492         __BEGIN_DECLS/__END_DECLS around the prototype.
8493         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
8494         pointer to const cpu_set_t.
8495
8496         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
8497         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
8498         __need_size_t and include stddef.h.
8499         * sysvipc/sys/msg.h: Likewise.
8500         * posix/sched.h: Likewise.
8501         * hurd/hurd/signal.h (__need_size_t): Define.
8502
8503         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
8504         neither does signal.h in pedantic ISO C namespaces.  stdio.h
8505         no longer defines wint_t or wchar_t.
8506
8507         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
8508         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
8509         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
8510         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
8511         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
8512         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
8513         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
8514         * debug/printf_chk.c (__printf_chk): Likewise.
8515         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
8516         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
8517
8518         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
8519         Define.
8520
8521         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
8522         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
8523
8524 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
8525
8526         [BZ #4792]
8527         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
8528         * malloc/malloc.h (realloc): Likewise.
8529
8530         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
8531         if one of proc_file_chain streams has that fileno.
8532         * stdio-common/Makefile (tests): Add tst-popen2.
8533         * stdio-common/tst-popen2.c: New test.
8534
8535 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
8536
8537         * elf/ldconfig.c: Allow GPLv2 or any later version.
8538         * elf/readlib.c: Likewise.
8539         * elf/chroot_canon.c: Likewise.
8540         * elf/cache.c: Likewise.
8541         * nscd/mem.c: Likewise.
8542         * nscd/getpwuid_r.c: Likewise.
8543         * nscd/grpcache.c: Likewise.
8544         * nscd/aicache.c: Likewise.
8545         * nscd/getsrvbynm_r.c: Likewise.
8546         * nscd/nscd.c: Likewise.
8547         * nscd/servicescache.c: Likewise.
8548         * nscd/getsrvbypt_r.c: Likewise.
8549         * nscd/initgrcache.c: Likewise.
8550         * nscd/gethstbyad_r.c: Likewise.
8551         * nscd/gethstbynm2_r.c: Likewise.
8552         * nscd/getgrnam_r.c: Likewise.
8553         * nscd/nscd_setup_thread.c: Likewise.
8554         * nscd/getpwnam_r.c: Likewise.
8555         * nscd/gai.c: Likewise.
8556         * nscd/connections.c: Likewise.
8557         * nscd/dbg_log.c: Likewise.
8558         * nscd/cache.c: Likewise.
8559         * nscd/hstcache.c: Likewise.
8560         * nscd/nscd_conf.c: Likewise.
8561         * nscd/getgrgid_r.c: Likewise.
8562         * nscd/pwdcache.c: Likewise.
8563         * catgets/gencat.c: Likewise.
8564         * locale/programs/linereader.h: Likewise.
8565         * locale/programs/locarchive.c: Likewise.
8566         * locale/programs/ld-paper.c: Likewise.
8567         * locale/programs/locfile-kw.h: Likewise.
8568         * locale/programs/ld-address.c: Likewise.
8569         * locale/programs/xmalloc.c: Likewise.
8570         * locale/programs/ld-time.c: Likewise.
8571         * locale/programs/localedef.c: Likewise.
8572         * locale/programs/simple-hash.c: Likewise.
8573         * locale/programs/xstrdup.c: Likewise.
8574         * locale/programs/ld-numeric.c: Likewise.
8575         * locale/programs/locfile-kw.gperf: Likewise.
8576         * locale/programs/ld-collate.c: Likewise.
8577         * locale/programs/charmap-kw.gperf: Likewise.
8578         * locale/programs/charmap.h: Likewise.
8579         * locale/programs/charmap-kw.h: Likewise.
8580         * locale/programs/config.h: Likewise.
8581         * locale/programs/locfile.c: Likewise.
8582         * locale/programs/ld-ctype.c: Likewise.
8583         * locale/programs/charmap.c: Likewise.
8584         * locale/programs/ld-messages.c: Likewise.
8585         * locale/programs/repertoire.h: Likewise.
8586         * locale/programs/locale.c: Likewise.
8587         * locale/programs/ld-name.c: Likewise.
8588         * locale/programs/linereader.c: Likewise.
8589         * locale/programs/locfile.h: Likewise.
8590         * locale/programs/3level.h: Likewise.
8591         * locale/programs/ld-monetary.c: Likewise.
8592         * locale/programs/ld-measurement.c: Likewise.
8593         * locale/programs/charmap-dir.c: Likewise.
8594         * locale/programs/ld-identification.c: Likewise.
8595         * locale/programs/localedef.h: Likewise.
8596         * locale/programs/charmap-dir.h: Likewise.
8597         * locale/programs/repertoire.c: Likewise.
8598         * locale/programs/simple-hash.h: Likewise.
8599         * locale/programs/ld-telephone.c: Likewise.
8600         * locale/programs/locale-spec.c: Likewise.
8601         * locale/programs/locfile-token.h: Likewise.
8602         * posix/getconf.c: Likewise.
8603         * iconv/dummy-repertoire.c: Likewise.
8604         * iconv/iconv_charmap.c: Likewise.
8605         * iconv/iconvconfig.c: Likewise.
8606         * iconv/iconv_prog.c: Likewise.
8607         * malloc/memusagestat.c: Likewise.
8608         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
8609
8610 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8611
8612         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
8613         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
8614         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
8615         check for the first argument.
8616
8617 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
8618
8619         [BZ #4775]
8620         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
8621         (__tgmath_real_type): Fix if expr is const int or other const
8622         qualified integral type.
8623         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
8624         expressions and handle const qualified arguments.
8625         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
8626         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
8627         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
8628         statement expressions.
8629         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
8630         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
8631         (__TGMATH_UNARY_IMAG): Define.
8632         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
8633         * math/Makefile (tests): Add test-tgmath2.
8634         (CFLAGS-test-tgmath2.c): Add.
8635         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
8636         count_cfloat, count_cldouble): New variables.
8637         (NCCALLS): Define.
8638         (main): Check number of complex calls as well.
8639         (F(compile_test)): Add complex tests and tests with const qualified
8640         arguments.
8641         (y, z, ccount): Define.
8642         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
8643         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
8644         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
8645         F(cproj)): New functions.
8646         * math/test-tgmath2.c: New test.
8647
8648 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
8649
8650         [BZ #4776]
8651         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
8652         RPATH etc. as "/" rather than "", don't segfault on empty paths,
8653         instead output ".".
8654         * dlfcn/Makefile (distribute): Add glreflib3.c.
8655         (module-names): Add glreflib3.
8656         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
8657         glreflib1.so.
8658         (LDFLAGS_glreflib3.so): New.
8659         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
8660         glreflib1.so.
8661         * dlfcn/glreflib3.c: New file.
8662
8663         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
8664         returned -1, return NULL.
8665         * intl/explodename.c (_nl_explode_name): Return -1 if
8666         _nl_normalize_codeset failed.
8667
8668 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
8669
8670         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
8671         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
8672         and avoid branch misspredicts for > 31 bytes memset case.
8673         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
8674         Remove toc ref to __cache_line_size.
8675
8676         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
8677         to get ISA-V2.0 branch hints.
8678         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
8679         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
8680         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8681         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8682         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8683         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
8684         Remove toc ref to __cache_line_size.
8685
8686         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
8687         Include math_ldbl_opt.h.
8688
8689 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
8690
8691         [BZ #4773]
8692         * time/strptime_l.c (__strptime_internal): Implement greedy
8693         matching of weekday and month names.
8694
8695 2007-07-09  Roland McGrath  <roland@redhat.com>
8696
8697         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
8698         (ELF_NOTE_ABI): Use it.
8699         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
8700
8701 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
8702
8703         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
8704         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
8705
8706 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
8707
8708         [BZ #4745]
8709         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
8710         in loop to look for conversion specifier to avoid testing of
8711         wrong errno value.
8712         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
8713         * stdio-common/bug18.c: New file.
8714         * stdio-common/bug18a.c: New file.
8715         * stdio-common/bug19.c: New file.
8716         * stdio-common/bug19a.c: New file.
8717
8718 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
8719
8720         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8721         running awk script.
8722
8723 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
8724
8725         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
8726         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
8727         Return NULL if mmap failed instead of asserting it does not.
8728         (calloc): Check for integer overflow.
8729
8730         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8731         than LONG_MAX / 10.
8732
8733 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
8734
8735         [BZ #4702]
8736         * nis/nss-default.c: Include errno.h.
8737         (init): Preserve errno.
8738
8739 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
8740
8741         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8742
8743 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
8744
8745         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8746
8747 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8748
8749         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8750
8751 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8752
8753         * sysdeps/s390/dl-procinfo.c: New file.
8754         * sysdeps/s390/dl-procinfo.h: New file.
8755         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
8756
8757 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
8758
8759         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
8760         in PT_NOTE segments with multiple notes.
8761         * elf/readelflib.c (process_elf_file): Likewise.
8762
8763 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
8764
8765         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
8766         ISO C compliant.
8767
8768 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8769
8770         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
8771
8772 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
8773
8774         * include/link.h: Don't include rtld-lowlevel.h.
8775         (struct link_map): Remove l_scope_lock.
8776         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
8777         (_dl_scope_free_list): New field (variable) in _rtld_global.
8778         (DL_LOOKUP_SCOPE_LOCK): Remove.
8779         (_dl_scope_free): New prototype.
8780         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
8781         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
8782         (_dl_profile_fixup): Likewise.
8783         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
8784         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
8785         THREAD_GSCOPE_RESET_FLAG around it.
8786         * elf/dl-close.c (_dl_close_worker): Don't use
8787         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
8788         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
8789         scopes were queued or if l_scope_mem has been abandoned.
8790         * elf/dl-open.c (_dl_scope_free): New function.
8791         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
8792         * elf/dl-support.c (_dl_scope_free_list): New variable.
8793         * elf/dl-lookup.c (add_dependency): Remove flags argument.
8794         Remove DL_LOOKUP_SCOPE_LOCK handling.
8795         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
8796         handling.
8797         * elf/dl-object.c (_dl_new_object): Don't use
8798         __rtld_mrlock_initialize.
8799
8800 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
8801
8802         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
8803         to fill in holes
8804         (rtld_global_ro): Likewise.
8805
8806 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8807
8808         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
8809         Move PT_LOAD checking to...
8810         (_dl_addr_inside_object): ... here, new function.
8811         * elf/dl-sym.c (do_sym): If not l_contiguous,
8812         call _dl_addr_inside_object.
8813         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
8814         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8815         * elf/dl-open.c (dl_open_worker): Likewise.
8816         (_dl_addr_inside_object): New function if IS_IN_rtld.
8817         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
8818         holes are present or are PROT_NONE protected.
8819         * include/link.h (struct link_map): Add l_contiguous field.
8820         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
8821
8822 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8823             Tomas Janousek  <tjanouse@redhat.com>
8824             Ulrich Drepper  <drepper@redhat.com>
8825
8826         [BZ #4647]
8827         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
8828         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
8829         socket.
8830         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
8831         unused member a bitmap.
8832         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
8833         servers are configured.
8834
8835 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
8836
8837         * elf/rtld.c (dl_main): Don't call init_tls more than once.
8838
8839 2007-06-17  Andreas Schwab  <schwab@suse.de>
8840
8841         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
8842
8843 2007-06-16  Andreas Jaeger  <aj@suse.de>
8844
8845         [BZ #4125]
8846         * sysdeps/unix/sysv/linux/sys/ptrace.h
8847         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
8848         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
8849         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
8850         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
8851         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
8852         Define.
8853         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8854         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8855         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8856         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8857
8858 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
8859
8860         [BZ #4599]
8861         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
8862         determining whether there are IPv4/IPv6 addresses, ignore loopback
8863         addresses.
8864
8865 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
8866
8867         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
8868         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
8869         as the return type.  Change type of "r" variable to CMPtype.
8870         * soft-fp/eqsf2.c (__eqsf2): Likewise.
8871         * soft-fp/eqtf2.c (__eqtf2): Likewise.
8872         * soft-fp/gedf2.c (__gedf2): Likewise.
8873         * soft-fp/gesf2.c (__gesf2): Likewise.
8874         * soft-fp/getf2.c (__getf2): Likewise.
8875         * soft-fp/ledf2.c (__ledf2): Likewise.
8876         * soft-fp/lesf2.c (__lesf2): Likewise.
8877         * soft-fp/letf2.c (__letf2): Likewise.
8878         * soft-fp/unorddf2 (__unorddf2): Likewise.
8879         * soft-fp/unordsf2 (__unordsf2): Likewise.
8880         * soft-fp/unordtf2 (__unordtf2): Likewise.
8881
8882 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
8883
8884         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
8885         make sure gcc doesn't mess around with this.
8886
8887 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
8888
8889         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
8890
8891 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
8892
8893         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
8894         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
8895         at most once per _dl_close_worker.
8896
8897 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
8898
8899         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
8900         __sched_cpucount as const.
8901         * posix/sched_cpucount.c: Adjust.
8902
8903         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
8904         instruction for counting bits.
8905         * sysdeps/x86_64/sched_cpucount.c: New file.
8906
8907 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
8908
8909         * configure.in: Avoid variable named BASH.
8910         * config.make.in: Likewise.
8911         Patch in part by Mike Frysinger.
8912
8913 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
8914
8915         [BZ #4586]
8916         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
8917         pseudo-zeros as zero.
8918         * sysdeps/x86_64/ldbl2mpn.c: New file.
8919         * sysdeps/ia64/ldbl2mpn.c: New file.
8920
8921 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8922
8923         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
8924         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
8925         Remove unreachable code at the end.
8926
8927 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
8928
8929         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
8930         ldbl-128ibm in comment.
8931         (fpclassifyl): Correct classification of denormals.
8932         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
8933         return value for MIN denormal. Rewrite using long double math too
8934         correctly handle denormals and canonicalize the results.
8935
8936 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
8937
8938         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
8939         (__mpn_construct_long_double): Fix conversion where result ought
8940         to be smaller than __LDBL_MIN__, or the low double should be
8941         denormal.  Fix decision where to negate low double - honor round
8942         to even rules.
8943         * stdio-common/tst-sprintf2.c: Include string.h.
8944         (COMPARE_LDBL): Define.
8945         (TEST): Also test whether a string hexadecimal float representation
8946         can be parsed back to the number.
8947         (main): Add a couple of further tests.
8948
8949 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
8950
8951         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
8952         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
8953         is non-zero, but smaller than 2 * __DBL_MIN__.
8954         * stdio-common/tst-sprintf2.c: New test.
8955         * stdio-common/Makefile (tests): Add tst-sprintf2.
8956
8957         * math/test-misc.c (main): Don't run last batch of tests with
8958         IBM long double format.
8959
8960 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8961
8962         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
8963         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
8964         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
8965         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
8966         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
8967         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
8968         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
8969         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
8970         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
8971         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
8972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
8973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
8974         New file.
8975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
8976         New file.
8977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
8978         New file.
8979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
8980         New file.
8981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
8982         New file.
8983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
8984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
8985         New file.
8986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
8987         New file.
8988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
8989         New file.
8990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
8991         New file.
8992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
8993         New file.
8994
8995 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
8996
8997         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
8998         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
8999         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9000         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9001         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9002         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9003         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9004         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9005
9006 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
9007
9008         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9009         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9010         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9011         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9012         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9013         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9014         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9015         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9016
9017 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9018
9019         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9020         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9021         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9022         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9023
9024 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
9025
9026         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9027         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9028
9029 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
9030
9031         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9032         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9033         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9034         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9035
9036 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
9037
9038         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9039         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9040
9041 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9042
9043         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9044         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9045
9046         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9047         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9048         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9049         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9050
9051 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
9052
9053         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9054         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9055         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9056         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9057
9058 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
9059
9060         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9061         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9062         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9063         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9064         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9065         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9066
9067 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9068
9069         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9070         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9071         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9072         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9073
9074 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
9075
9076         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9077         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9078         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9079         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9080         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9081         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9082         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9083         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9084         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9085         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9086         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9087         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9088         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9089         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9090         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9091         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9092
9093 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9094
9095         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9096         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9097
9098 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
9099
9100         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9101         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9102
9103 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
9104
9105         * sysdeps/powerpc/powerpc32/970/Implies: New file.
9106         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9107         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9108         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9109         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9110         * sysdeps/powerpc/powerpc64/970/Implies: New file.
9111         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9112         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9113         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9114         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9115
9116 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
9117
9118         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9119
9120 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
9121
9122         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9123         branch miss-predicts. Ensure that cache line crossing does not impact
9124         dispatch grouping.
9125
9126 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
9127
9128         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9129         "../../powerpc32/power4/memcopy.h".
9130         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9131         "../../powerpc32/power4/wordcopy.c".
9132
9133 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
9134
9135         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9136         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9137         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9138         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9139         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9140         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9141
9142 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
9143
9144         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9145
9146 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
9147
9148         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9149         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9150         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9151         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9152         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9153         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9154         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9155         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9156
9157 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
9158
9159         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9160
9161 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
9162
9163         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9164         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9165         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9166         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9167         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9168         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9169         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9170
9171 2007-05-29  Roland McGrath  <roland@redhat.com>
9172
9173         * po/Makefile (po-sed-cmd): New variable.
9174         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9175
9176 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
9177
9178         * crypt/md5-crypt.c: Fix comment.
9179
9180         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9181         of crashing.  When this is the case or if the reply is malformed,
9182         don't try to close the new file descriptor since it does not
9183         exist.
9184         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9185
9186 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
9187
9188         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9189         if __NR_utimensat is not defined.
9190
9191 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
9192
9193         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9194
9195 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
9196
9197         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9198         (open): Fix comment typos.  Don't call __open_2 if flags
9199         is a compile time constant without O_CREAT.
9200         (__open64_2): Add nonnull attribute.
9201         (open64): Fix comment typos.  Don't call __open64_2 if flags
9202         is a compile time constant without O_CREAT.
9203         (__openat_2): Add nonnull attribute, fix nonnull attribute
9204         on redirect.
9205         (openat): Fix comment typos.  Don't call __openat_2 if flags
9206         is a compile time constant without O_CREAT.
9207         (__openat64_2): Add nonnull attribute, fix nonnull attribute
9208         on redirect.
9209         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
9210         is a compile time constant without O_CREAT.
9211
9212 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
9213
9214         * Makerules (sysd-rules): Define PTW for ptw-* files.
9215         * Versions: Define GLIBC_2.7 for libc.
9216         * include/stdio.h: Declare __fortify_fail.
9217         * debug/fortify_fail.c: New file.
9218         * debug/Makefile (routines): Add fortify_fail.
9219         * debug/chk_fail.c: Use __fortify_fail.
9220         * debug/stack_chk_fail.c: Likewise.
9221         * io/Versions: Export __open_2, __open64_2, __openat_2, and
9222         __openat64_2 for GLIBC_2.7.
9223         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9224         * io/open.c: Define *_2 variant of function which checks for O_CREAT
9225         and fails if necessary.
9226         * io/open64.c: Likewise.
9227         * io/openat.c: Likewise.
9228         * io/openat64.c: Likewise.
9229         * sysdeps/unix/sysv/linux/open64.c: Likewise.
9230         * sysdeps/unix/sysv/linux/openat.c: Likewise.
9231         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9232         * io/bits/fcntl2.h: New file.
9233         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9234         __openat64_2.
9235         * include/bits/fcntl2.h: New file.
9236         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9237         Add open_2.
9238         * sysdeps/unix/sysv/linux/open_2.c: New file.
9239
9240 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
9241
9242         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9243         as second parameter to handle_intel.
9244
9245         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9246         the entry.
9247
9248         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9249         handling to ...
9250         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
9251         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9252         cacheinfo.
9253         * sysdeps/x86_64/memcpy.S: Complete rewrite.
9254         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9255         Patch by Evandro Menezes <evandro.menezes@amd.com>.
9256
9257         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9258
9259 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
9260
9261         [BZ #4525]
9262         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9263         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9264         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9265
9266         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9267
9268         [BZ #4514]
9269         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9270         reinitialize workend at the start of each do_positional format spec
9271         loop, free workstart before do_positional loops.
9272         (printf_unknown): Fix size of work_buffer.
9273         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9274
9275         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9276         (public_sET_STATe): If ms->version < 3, put all chunks into
9277         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9278         chunks.
9279
9280         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9281         * malloc/hooks.c: Likewise.
9282         * malloc/arena.c: Likewise.
9283         * malloc/malloc.c (do_check_malloc_state): Don't assert
9284         n_mmaps is not greater than n_mmaps_max.  This removes the need
9285         for the previous change.
9286
9287         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9288         2007-05-07 commit.
9289
9290 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
9291
9292         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9293         Define for kernel >= 2.6.22.
9294
9295 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
9296
9297         * elf/dl-close.c (_dl_close_worker): When removing object from
9298         global scope, wait for all lookups to finish afterwards.
9299         * elf/dl-open.c (add_to_global): When global scope array must
9300         grow, allocate a new one and free old array only after all
9301         lookups finish.
9302         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9303         (_dl_lookup_symbol_x): Likewise.
9304         * elf/dl-support.c: Define _dl_wait_lookup_done.
9305         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9306         _dl_wait_lookup_done.
9307
9308         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9309         not overlapping with arena.
9310
9311         * malloc/mcheck.c (reallochook): If size==0, free the block.
9312
9313         * rt/tst-shm.c: Use fstat64 instead of fstat.
9314
9315         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9316         __NR_sync_file_range is not defined.
9317
9318 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
9319
9320         Dummy files to prevent stub versions from being used.
9321         * sysdeps/x86_64/fpu/k_cosl.c: New file.
9322         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9323         * sysdeps/x86_64/fpu/k_sinl.c: New file.
9324         * sysdeps/x86_64/fpu/k_tanl.c: New file.
9325
9326         * version.h (VERSION): Set to 2.6.90.
9327
9328 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
9329
9330         * version.h (VERSION): Define to 2.6.
9331         * include/features.h (__GLIBC_MINOR__): Define to 6.
9332
9333         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9334
9335         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9336         sizes.
9337
9338 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
9339
9340         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9341         number of mmaps.  n_mmaps_max is the target.
9342         * malloc/hooks.c: Likewise.
9343         * malloc/arena.c: Likewise.
9344
9345 2007-05-12  Andreas Jaeger  <aj@suse.de>
9346
9347         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9348         getpid.
9349
9350 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
9351
9352         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9353         adding new variables.
9354
9355         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
9356         optimize.  Completely extend global scope array before making the
9357         new entries visible.
9358
9359 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
9360
9361         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9362         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9363         tst-getcpu.
9364
9365         * include/link.h: Move l_version and l_nversion members around to
9366         fill gaps.
9367
9368         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9369
9370         * sysdeps/unix/sysv/linux/sched_setaffinity.c
9371         (__sched_setaffinity_new): If syscall was successful and
9372         RESET_VGETCPU_CACHE is defined, use it before returning.
9373         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9374
9375         * io/sys/stat.h: Make sure struct timespec is defined for
9376         __USE_ATFILE.
9377
9378         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9379         UTIME_OMIT.
9380         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9381         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9382         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9383         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9384         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9385         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9386         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9387         * io/sys/stat.h: Declare utimensat, futimens.
9388         * io/utimensat.c: New file.
9389         * io/futimens.c: New file.
9390         * sysdeps/unix/sysv/linux/utimensat.c: New file.
9391         * sysdeps/unix/sysv/linux/futimens.c: New file.
9392         * io/Makefile (routines): Add utimensat, futimens.
9393         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
9394         * sysdeps/unix/sysv/linux/lutimes.c: New file.
9395         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
9396         available.
9397
9398         * include/sys/cdefs.h: Redefine __nonnull so that test for
9399         incorrect parameters in the libc code itself are not omitted.
9400
9401 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
9402
9403         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
9404         exception in addition to inexact when asked to raise only FE_INEXACT.
9405
9406         [BZ #3427]
9407         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
9408         in *envp.
9409
9410 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9411
9412         [BZ #4403]
9413         * string/strfry.c (strfry): Make result more random.
9414
9415 2007-05-07  Richard Henderson  <rth@redhat.com>
9416
9417         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
9418         if __NO_LONG_DOUBLE_MATH.
9419         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
9420         available in the compiler, add .arch directive to the assembly.
9421
9422 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
9423
9424         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
9425         compat_symbol to GLIBC_2_1.
9426         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
9427         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
9428         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
9429         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
9430         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
9431         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
9432         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
9433         libc, not libm.
9434         (__isnanl): New compat_symbol.
9435
9436 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
9437             Jakub Jelinek  <jakub@redhat.com>
9438
9439         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
9440         (new_heap): Initialize mprotect_size.
9441         (grow_heap): When growing, only mprotect from mprotect_size till
9442         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
9443         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
9444
9445 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
9446             Peter Bergner  <bergner@us.ibm.com>
9447
9448         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
9449         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
9450         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
9451         * sysdeps/powerpc/fpu/fe_mask.c: New file.
9452         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
9453         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
9454         Call __fe_mask_env() if all FP exceptions disabled.
9455         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
9456         from old FPSCR to new fenv to propagate DFP rounding modes.
9457         Call __fe_mask_env() if FP exceptions previously enabled.
9458         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
9459         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
9460         transitioning from all exceptions disabled to any exception enabled
9461         or visa versa.
9462         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
9463         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
9464         when transitioning from all exceptions disabled to any exception
9465         enabled or visa versa.
9466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
9467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
9468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
9469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
9470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
9471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
9472
9473 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9474
9475         [BZ #4465]
9476         * posix/unistd.h: Remove __THROW from fdatasync.
9477
9478 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
9479
9480         [BZ #4465]
9481         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
9482
9483 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
9484
9485         * stdio-common/vfprintf.c (process_string_arg): Optimize
9486         ridiculous precision in wide char code printing multi-byte string.
9487         Reported by Jim Meyering <jim@meyering.net>.
9488
9489         [BZ #4131]
9490         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
9491         boundaries to work around systems with overlapping binary loading.
9492         Based on a patch by Suzuki <suzuki@in.ibm.com>.
9493
9494 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
9495
9496         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
9497         __mbsnrtowcs after last change.
9498
9499         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
9500         (get_ident): Likewise.
9501
9502 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9503
9504         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
9505         with setting the sticky bit.
9506         * math/test-misc.c (main): Add more truncation tests.
9507
9508 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
9509
9510         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
9511         double in the function declaration.
9512         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
9513         double in the function declaration.
9514         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9515         float in the function declaration.
9516         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9517         float in the function declaration.
9518
9519         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
9520         denormal operands.  Do not generate FP_EX_DENORM exception.
9521         (FP_UNPACK_RAW_EP): Ditto.
9522         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
9523         undefined _FP_UNPACK_RAW_E.
9524         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
9525         undefined _FP_UNPACK_RAW_EP.
9526         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
9527         undefined _FP_PACK_RAW_E.
9528         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
9529         undefined _FP_PACK_RAW_EP.
9530
9531         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
9532         _FP_FRAC_COPY_2.
9533         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
9534         _FP_FRAC_COPY_4.
9535
9536 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
9537             Jakub Jelinek  <jakub@redhat.com>
9538
9539         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
9540         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
9541         this case.
9542         * soft-fp/op-common.h (FP_TRUNC): Ditto.
9543
9544 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
9545
9546         * math/test-misc.c (main): Add tests for rounding long double
9547         values close to smallest double denormalized value to double.
9548
9549 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
9550
9551         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
9552         condition for truncating to 0.  Set sticky bit for such
9553         truncation.
9554
9555 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
9556
9557         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
9558         fixed length array for ignore.
9559
9560 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9561
9562         [BZ #4438]
9563         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
9564         stack for large precisions.
9565         * stdio-common/test-vfprintf.c (main): Add test for large
9566         precision.
9567
9568 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
9569
9570         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
9571         for exponent 0.
9572         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
9573
9574         [BZ #4439]
9575         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
9576         account in the size check.
9577         * resolv/tst-inet_ntop.c: New test.
9578         * resolv/Makefile (tests): Add tst-inet_ntop.
9579
9580 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
9581             Jakub Jelinek  <jakub@redhat.com>
9582
9583         [BZ #4349]
9584         * malloc/malloc.c: Keep separate list for first blocks on the bin
9585         lists with a given size.  This helps skipping over list elements
9586         we know won't fit in two places.
9587         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
9588
9589 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
9590
9591         [BZ #4102]
9592         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
9593         label to Teredo tunnel addresses 2001://32.
9594
9595 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
9596
9597         * locale/programs/ld-collate.c (collate_read): Allow order_start
9598         after copy.
9599
9600         * locale/programs/ld-collate.c (collate_read): Fix printing of
9601         error message.
9602
9603         [BZ #3213]
9604         * locale/C-translit.h.in: Add entry for U2044.
9605
9606         [BZ #4342]
9607         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
9608         hexa-decimal floats without exponent.
9609         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
9610
9611 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
9612
9613         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
9614         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
9615         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
9616         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
9617         GLIBC_2.6.
9618         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
9619         Add sched_getcpu.
9620
9621 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
9622
9623         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
9624         of 0 after the out_fail label.
9625
9626 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
9627
9628         [BZ #4406]
9629         * iconv/gconv_charset.h (strip): Allow ':'.
9630         * iconv/iconv_open.c (iconv_open): Adjust comment.
9631
9632 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
9633
9634         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
9635         version.
9636
9637 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
9638
9639         [BZ #4381]
9640         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
9641         alignment of buffer and tmp_buffer.
9642         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
9643         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
9644         alignment of buffer.
9645         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
9646         bigger than INT_MAX.
9647         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
9648         h_errnop arguments.  Fail if buflen is too small.
9649         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
9650
9651 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
9652
9653         [BZ #4405]
9654         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
9655         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
9656
9657 2007-04-22  Roland McGrath  <roland@redhat.com>
9658
9659         * elf/elf.h (NT_PRXFPREG): New macro.
9660
9661 2007-04-19  Andreas Jaeger  <aj@suse.de>
9662
9663         [BZ #3905]
9664         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
9665         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
9666         Added.
9667
9668 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
9669
9670         * include/sys/mman.h: Mark madvise hidden.
9671         * misc/madvise.c: Add libc_hidden_def.
9672
9673 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
9674
9675         * nis/nis_domain_of.c (__nis_domain_of): New function.
9676         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
9677         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
9678         * nis/nis_call.c (rec_dirsearch): Likewise.
9679         (first_shoot): Likewise.  Remove search_parent_first argument.
9680         (struct nis_server_cache): Rename search_parent_first field
9681         to search_parent.
9682         (nis_server_cache_search, nis_server_cache_add): Rename
9683         search_parent_first argument to search_parent.
9684         (__nisfind_server): Likewise.  If search_parent, call
9685         __nis_domain_of.
9686
9687 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
9688
9689         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
9690
9691 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
9692
9693         [BZ #4368]
9694         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
9695
9696 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
9697
9698         [BZ #4364]
9699         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
9700
9701 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
9702
9703         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
9704         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
9705         current number of locales in SUPPORTED.
9706         (create_archive): Initialize serial.
9707         (enlarge_archive): Preserve aliases rather than duplicating
9708         their locrecs.
9709
9710 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
9711
9712         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
9713         after _IO_un_link, not before it.
9714
9715         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
9716         special case handling when wcp == wstartp + 1.  Fix a comment typo.
9717         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
9718
9719 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
9720
9721         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
9722         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
9723         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
9724         Remove __THROW.
9725         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
9726         _IO_file_xsgetn_maybe_mmap): Likewise.
9727         * libio/oldfileops.c (old_do_write): Likewise.
9728         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
9729         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
9730         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
9731         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
9732         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
9733         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
9734         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
9735         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
9736         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
9737         _IO_file_underflow, _IO_file_underflow_mmap,
9738         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
9739         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
9740         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
9741         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
9742         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
9743         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
9744         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
9745         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
9746         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
9747         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
9748         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
9749         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
9750         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
9751         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
9752         _IO_adjust_column_internal, _IO_default_uflow_internal,
9753         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
9754         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
9755         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
9756         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
9757         _IO_file_close_it_internal, _IO_file_underflow_internal,
9758         _IO_file_overflow_internal, _IO_file_attach_internal,
9759         _IO_file_fopen_internal, _IO_file_sync_internal,
9760         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
9761         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
9762         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
9763         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
9764         _IO_seekpos_unlocked): Likewise.
9765         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
9766         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
9767
9768 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
9769
9770         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
9771         argument in xmalloc size computation.
9772
9773 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
9774
9775         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
9776         math_opt_barrier and math_force_eval macros.
9777
9778 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
9779
9780         [BZ #3306]
9781         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
9782         * sysdeps/i386/fpu/math_private.h: New file.
9783         * sysdeps/x86_64/fpu/math_private.h: New file.
9784         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
9785         math_force_eval macros.  Use "+m" constraint on asm rather than
9786         "=m" and "m".
9787         * math/s_nextafter.c (__nextafter): Likewise.
9788         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
9789         Likewise.
9790         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
9791         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
9792         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9793         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
9794         math_opt_barrier and math_force_eval macros.
9795         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
9796         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
9797         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
9798         (__nexttoward): Use math_opt_barrier and
9799         math_force_eval macros.  Use "+m" constraint on asm rather than
9800         "=m" and "m".  Only use asm to force double result if
9801         FLT_EVAL_METHOD is 2.
9802         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
9803         (__nexttowardf): Use math_opt_barrier and
9804         math_force_eval macros.  Use "+m" constraint on asm rather than
9805         "=m" and "m".  Only use asm to force double result if
9806         FLT_EVAL_METHOD is not 0.
9807         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
9808         (__nexttowardf): Use math_opt_barrier and
9809         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
9810         x to float using asm.
9811         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
9812         (__nldbl_nexttowardf): Use math_opt_barrier and
9813         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
9814         x to float using asm.
9815         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
9816         (__nexttowardf): Use math_opt_barrier and math_force_eval
9817         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
9818         * math/bug-nextafter.c (zero, inf): New variables.
9819         (main): Add new tests.
9820         * math/bug-nexttoward.c (zero, inf): New variables.
9821         (main): Add new tests.
9822
9823 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
9824
9825         [BZ #3427]
9826         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
9827         exceptions both in SW and MXCSR.
9828         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
9829         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
9830         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
9831         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9832         in MXCSR if SSE is available.
9833         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
9834         and ldsodefs.h.
9835         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
9836         Fix comment typo.
9837         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
9838         Return 0 rather than 1.
9839         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
9840         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
9841         * math/test-fenv.c (feholdexcept_tests): New function.
9842         (main): Call it.
9843
9844 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
9845
9846         [BZ #3427]
9847         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9848         in SW.
9849
9850 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
9851
9852         [BZ #4344]
9853         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
9854         Reported by David Anderson <davea42@earthlink.net>.
9855
9856 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
9857
9858         * posix/sys/wait.h: Remove unnecessary forward declaration.
9859
9860 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
9861
9862         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
9863         with obj->do_servers after first_shoot.
9864
9865 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
9866
9867         * posix/Makefile (routines): Add sched_cpucount.
9868         (tests): Add tst-cpucount.
9869         * posix/sched_cpucount.c: New file.
9870         * posix/tst-cpucount.c: New file.
9871         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
9872         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
9873         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9874         * posix/sched.h: Define CPU_COUNT.
9875
9876 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
9877
9878         * posix/fnmatch.c (STRUCT): Define.
9879         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
9880         * posix/fnmatch_loop.c (struct STRUCT): New type.
9881         (FCT): Add ends argument.  If ends != NULL and normal * is
9882         seen in the pattern, store current pattern and string pointers
9883         and return.  Adjust recursive calls.
9884         (EXT): Adjust FCT callers.
9885         (STRUCT): Undef at the end of the file.
9886         * posix/Makefile (tests): Add tst-fnmatch2.
9887         * posix/tst-fnmatch2.c: New test.
9888
9889 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
9890
9891         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
9892         and 1 on failure.
9893
9894         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
9895         Change last argument to unsigned int.
9896
9897 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
9898
9899         * scripts/check-local-headers.sh: Filter out sys/capability.h.
9900
9901 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
9902
9903         * config.h.in (HAVE_LIBCAP): Add.
9904         * nscd/selinux.h: Include sys/capability.h rather than non-existent
9905         sys/capabilities.h.
9906         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
9907         free_caps.  Cast away const from 4th cap_set_flag argument.
9908
9909 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
9910
9911         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
9912         GLIBC_2.6.
9913         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9914         Add sync_file_range.
9915         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
9916
9917 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
9918
9919         * sysdeps/powerpc/bits/atomic.h
9920         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
9921         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
9922         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9923         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
9924         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9925         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
9926         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
9927         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9928         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9929         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9930         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
9931         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9932         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9933         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9934         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9935         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
9936         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9937         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
9938         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9939         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
9940
9941 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
9942
9943         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9944         (__cache_line_size): Define the variable here.  Add
9945         attribute_hidden, remove weak_extern.
9946         (__libc_start_main): Set __cache_line_size
9947         unconditionally.
9948         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
9949         (__cache_line_size): Define the variable here.  Add
9950         attribute_hidden, remove weak_extern.
9951         (DL_PLATFORM_AUXV): Set __cache_line_size
9952         unconditionally.
9953         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
9954         weak_extern, add attribute_hidden.
9955         (__elf_machine_runtime_setup): Assume __cache_line_size is always
9956         defined in ld.so.
9957         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
9958         definition.
9959         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
9960
9961 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
9962
9963         [BZ #4276]
9964         * timezone/africa: Update from tzdata2007d.
9965         * timezone/asia: Likewise.
9966         * timezone/australasia: Likewise.
9967         * timezone/backward: Likewise.
9968         * timezone/europe: Likewise.
9969         * timezone/iso3166.tab: Likewise.
9970         * timezone/leapseconds: Likewise.
9971         * timezone/northamerica: Likewise.
9972         * timezone/southamerica: Likewise.
9973         * timezone/zone.tab: Likewise.
9974
9975         * timezone/private.h: Update from tzcode2007d.
9976         * timezone/zdump.c: Likewise.
9977         * timezone/zic.c: Likewise.
9978
9979 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
9980
9981         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
9982         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
9983         variables.
9984         (nis_server_cache_search, nis_server_cache_add): New functions.
9985         (__nisfind_server): Use them.  Add dbp and flags argument, if
9986         call __nisbind_create.
9987         (__nisbind_create): Add server_used and current_ep arguments,
9988         only call __nis_findfastest if server_used is ~0.
9989         (__do_niscall2, __prepare_niscall): Adjust callers.
9990         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
9991         ckey_cache_euid, ckey_cache_lock): New variables.
9992         (get_ckey): New function.
9993         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
9994         __pmap_getnisport.  Save __pmap_getnisport result in
9995         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
9996         key.
9997         * nis/nis_lookup.c (nis_lookup): Likewise.
9998         * nis/nis_table.c (nis_list): Likewise.
9999         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10000         prototypes.
10001
10002         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10003         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10004         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10005         _nss_nisplus_getservbyport_r): Likewise.
10006         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10007         _nss_nisplus_getnetbyaddr_r): Likewise.
10008         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10009         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10010         _nss_nisplus_getntohost_r): Likewise.
10011         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10012         _nss_nisplus_getrpcbynumber_r): Likewise.
10013
10014 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
10015
10016         * configure.in (libc_cv_gnu89_inline): Only do compile test.
10017         * configure: Rebuilt.
10018
10019         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10020         bit-fields.
10021         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10022
10023 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
10024
10025         [BZ #2831]
10026         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10027         bit-fields.
10028
10029 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
10030
10031         * nscd/gai.c: Include alloca.h.
10032         (__libc_use_alloca): Define.
10033
10034 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
10035
10036         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10037         smaller scopes.
10038         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10039         (DL_DST_REQUIRED): Adjust user.
10040
10041         * include/dlfcn.h (struct link_map): New forward decl.
10042
10043         * inet/getnameinfo.c: Include stddef.h.
10044         (getnameinfo): Use offsetof.
10045
10046         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10047
10048         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10049
10050         * string/strerror_l.c: Include stdlib.h.
10051
10052         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10053         * config.make.in (gnu89-inline-CFLAGS): New variable.
10054         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10055         -std=gnu99.
10056         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10057         * argp/argp.h: Use it.
10058         * bits/mathinline.h: Likewise.
10059         * bits/sigset.h: Likewise.
10060         * bits/string.h: Likewise.
10061         * ctype/ctype.h: Likewise.
10062         * hurd/hurd.h: Likewise.
10063         * hurd/hurd/fd.h: Likewise.
10064         * hurd/hurd/port.h: Likewise.
10065         * hurd/hurd/signal.h: Likewise.
10066         * hurd/hurd/threadvar.h: Likewise.
10067         * hurd/hurd/userlink.h: Likewise.
10068         * io/sys/stat.h: Likewise.
10069         * libio/bits/stdio.h: Likewise.
10070         * libio/bits/stdio2.h: Likewise.
10071         * mach/lock-intern.h: Likewise.
10072         * mach/mach/mig_support.h: Likewise.
10073         * math/bits/cmathcalls.h: Likewise.
10074         * posix/bits/unistd.h: Likewise.
10075         * socket/bits/socket2.h: Likewise.
10076         * stdlib/bits/stdlib.h: Likewise.
10077         * stdlib/stdlib.h: Likewise.
10078         * string/argz.h: Likewise.
10079         * string/bits/string2.h: Likewise.
10080         * string/bits/string3.h: Likewise.
10081         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10082         * sysdeps/generic/inttypes.h: Likewise.
10083         * sysdeps/generic/machine-lock.h: Likewise.
10084         * sysdeps/generic/machine-sp.h: Likewise.
10085         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10086         * sysdeps/i386/i486/bits/string.h: Likewise.
10087         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10088         * sysdeps/mach/alpha/machine-lock.h: Likewise.
10089         * sysdeps/mach/alpha/machine-sp.h: Likewise.
10090         * sysdeps/mach/i386/machine-lock.h: Likewise.
10091         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10092         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10093         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10094         * sysdeps/s390/bits/string.h: Likewise.
10095         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10096         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10097         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10098         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10099         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10100         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10101         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10102         * wcsmbs/bits/wchar2.h: Likewise.
10103         * wcsmbs/wchar.h: Likewise.
10104         * stdlib/gmp.h: Likewise.  Include <features.h> to get
10105         __extern_inline definition.
10106
10107 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
10108
10109         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10110         NULL.
10111
10112         [BZ #3919]
10113         * math/libm-test.inc (log_test): Test -Inf and NaN.
10114         (log10_test, log1p_test, log2_test): Test -Inf.
10115         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10116         FE_INVALID when argument is qNaN.
10117         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10118         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10119         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10120         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10121         andb $1, %ah with testb $1, %ah, don't test for parity, instead
10122         testb $4, %ah and jump if non-zero.
10123         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10124         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10125
10126         [BZ #4101]
10127         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10128         ancestors with the same depths.
10129         Patch by Niels Moeller <nisse@lysator.liu.se>.
10130         (filter_doc): Don't crash if argp is NULL.
10131         * argp/Makefile (tests): Add tst-argp2.
10132         * argp/tst-argp2.c: New test.
10133
10134         [BZ #4130]
10135         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10136         open_not_cancel_2.
10137         (updwtmp_file): Likewise.
10138
10139         [BZ #4181]
10140         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10141         (inet6_opt_append): Don't check extlen is big enough if extbuf
10142         is NULL.
10143         (inet6_opt_finish): Likewise.
10144         * inet/Makefile (tests): Add test-inet6_opt.
10145         * inet/test-inet6_opt.c: New test.
10146
10147         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10148         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10149         NLMSG_ERR.  Instead use a page sized buffer.
10150         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10151         buffer.
10152
10153 2007-03-14  Richard Henderson  <rth@redhat.com>
10154
10155         * sysdeps/alpha/fpu/s_llround.c: New file.
10156         * sysdeps/alpha/fpu/s_llroundf.c: New file.
10157         * sysdeps/alpha/fpu/s_lround.c: New file.
10158         * sysdeps/alpha/fpu/s_lroundf.c: New file.
10159         * sysdeps/alpha/fpu/s_round.c: New file.
10160         * sysdeps/alpha/fpu/s_roundf.c: New file.
10161         * sysdeps/alpha/fpu/s_trunc.c: New file.
10162         * sysdeps/alpha/fpu/s_truncf.c: New file.
10163
10164         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10165         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10166         * sysdeps/alpha/fpu/s_floor.c: Likewise.
10167         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10168         * sysdeps/alpha/fpu/s_rint.c: Likewise.
10169         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10170
10171         * sysdeps/alpha/fpu/s_fmax.S: New file.
10172         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10173         * sysdeps/alpha/fpu/s_fmin.S: New file.
10174         * sysdeps/alpha/fpu/s_fminf.S: New file.
10175         * sysdeps/alpha/fpu/s_isnan.c: New file.
10176         * sysdeps/alpha/fpu/s_isnanf.c: New file.
10177         * sysdeps/alpha/fpu/s_llrint.c: New file.
10178         * sysdeps/alpha/fpu/s_llrintf.c: New file.
10179         * sysdeps/alpha/fpu/s_lrint.c: New file.
10180         * sysdeps/alpha/fpu/s_lrintf.c: New file.
10181         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10182         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10183
10184         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10185         (__fdimf, fdimf, __fdim, fdim): Remove.
10186         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10187         (__isnanf, __isnan, __isnanl): New.
10188
10189 2007-03-13  Richard Henderson  <rth@redhat.com>
10190
10191         * sysdeps/ieee754/ldbl-128/Makefile: New file.
10192
10193 2007-03-13  Richard Henderson  <rth@redhat.com>
10194
10195         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10196         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10197         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10198         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10199         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10200         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10201
10202 2007-03-13  Richard Henderson  <rth@redhat.com>
10203
10204         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
10205         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10206         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10207         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10208         Move to dl-auxv.h; initialize instead of extern weak.
10209         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10210         weak symbol.
10211         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10212         Extern instead of initialized.
10213
10214 2007-03-13  Richard Henderson  <rth@redhat.com>
10215
10216         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10217         __sigsuspend_nocancel.
10218
10219 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
10220
10221         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10222         172.16/12 address range.
10223
10224 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
10225
10226         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10227         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10228         message.
10229
10230 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
10231
10232         [BZ #4069]
10233         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10234         earlier.
10235         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10236
10237         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10238         for x qNaN and y either +-inf or non-integer value.
10239         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10240         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10241         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10242
10243 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
10244
10245         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10246         from sysdep_headers.
10247
10248 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
10249
10250         * time/tzfile.c (find_transition): Instead of a linear search try to
10251         guess the transition index, use a linear search if the result is at
10252         most 10 transitions away from the guess or binary search otherwise.
10253
10254 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
10255
10256         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10257         memory reallocation.
10258
10259 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
10260
10261         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10262         and fix some typos.
10263         Optimize use of TOLOWER.
10264
10265         [BZ #3325]
10266         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10267         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10268         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10269
10270         [BZ #3458]
10271         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10272         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10273
10274         [BZ #4076]
10275         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10276         (open_dir_stream): Likewise.
10277         * io/Makefile (tests): Add bug-ftw5.
10278         * io/bug-ftw5.c: New file.
10279
10280         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10281         * nscd/servicescache.c (cache_addserv): Likewise.
10282
10283         * nscd/grpcache.c (cache_addgr): In case a record changed on
10284         refresh, adjust key_copy.
10285
10286         [BZ #4074]
10287         * nscd/pwdcache.c (cache_addpw): In case a record changed on
10288         refresh, adjust key_copy.
10289
10290         [BZ #4070]
10291         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
10292         special cases.
10293         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
10294
10295 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
10296
10297         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10298         optimization.
10299
10300         * stdio-common/vfscanf.c: Small cleanups throughout.
10301
10302 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
10303
10304         [BZ #3325]
10305         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10306         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10307         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10308         Patch by Jared Casper <jaredcasper@gmail.com>.
10309
10310         * sysdeps/unix/closedir.c: Outside libc don't use locking.
10311         * sysdeps/unix/opendir.c: Likewise.
10312         * sysdeps/unix/readdir.c: Likewise.
10313
10314         [BZ #2211]
10315         * stdio-common/vfscanf.c: Handle localized digits etc for floating
10316         point numbers.
10317         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10318
10319         * stdio-common/vfscanf.c: Fix problems in width accounting.
10320         * stdio-common/tst-sscanf.c (double_tests): New tests.
10321         (main): Hook them up.
10322
10323         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
10324         More simplifications of floating-point reader.
10325
10326         * stdio-common/Makefile (tests): Add tst-swscanf.
10327         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10328         testing.
10329         * stdio-common/tst-swscanf.c: New file.
10330
10331 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
10332
10333         [BZ #2633]
10334         * libio/stdio.h: Define struct _IO_FILE in global namespace.
10335         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10336         Remove using for __jmp_buf_tag.
10337         * locale/locale.h (struct lconv): Also define in std namespace.
10338         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10339
10340         [BZ #3842]
10341         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10342         using __libc_enable_secure.
10343
10344         [BZ #3818]
10345         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10346
10347         [BZ #3745]
10348         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10349         of names for ellipsises.
10350
10351         [BZ #3348]
10352         * malloc/memusage.sh: Cleanups.
10353         * debug/xtrace.sh: Quoting and trap changes.
10354
10355 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
10356
10357         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10358
10359         * locale/iso-3166.def: Update entry for Serbia.
10360         * locale/iso-4217.def: Define RSD, remove CSD.
10361
10362         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10363         and 64-bit operations.
10364
10365         [BZ #4040]
10366         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10367         16-bit operations.
10368
10369         * nscd/nscd.c (parse_opt): One more conversion to use send instead
10370         of writev.
10371
10372 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
10373
10374         [BZ #3991]
10375         * assert/assert.h (assert): Simplify.
10376         (assert_perror): Likewise.
10377         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10378
10379         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10380         reqdata.
10381
10382         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10383         change: don't pass NULL in place of an integer.
10384
10385 2007-02-02  Bruno Haible  <bruno@clisp.org>
10386
10387         [BZ #3954]
10388         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10389         Add mapping for U+327E.
10390         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10391         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10392         mapping of 0xD9 0xE8.
10393         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
10394         mapping of U+327E.
10395         Reported by Jungshik Shin <jungshik@google.com>.
10396
10397         [BZ #3955]
10398         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10399         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
10400         Reported by Jungshik Shin <jungshik@google.com>.
10401
10402 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
10403
10404         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
10405         byte variants.
10406
10407         [BZ #4040]
10408         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
10409         byte variants.  Patch mostly be tom@tommay.net.
10410
10411 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
10412
10413         [BZ #3996]
10414         * posix/glob.c (attribute_hidden): Define if not defined.
10415         (glob): Unescape dirname, filename or username when needed and not
10416         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
10417         is NULL.  Handle unescaped [ in pattern without closing ].
10418         Don't pass GLOB_CHECK down to recursive glob for directories.
10419         (__glob_pattern_type): New function.
10420         (__glob_pattern_p): Implement using __glob_pattern_type.
10421         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10422         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10423         Remove unreachable code.
10424         * posix/globtest.sh: Add a couple of new tests.
10425
10426 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
10427
10428         * po/ru.po: Update from translation team.
10429
10430 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
10431
10432         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
10433         to the list of i486+ CPUs.
10434         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10435
10436 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
10437
10438         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
10439         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
10440         references.
10441
10442 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
10443
10444         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
10445
10446         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
10447         * resolv/res_mkquery.c: Define __res_nopt.
10448         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
10449         try adding EDNS0 record.
10450         * resolv/res_send.c (send_dg): If request failed with FORMERR and
10451         EDNS0 record was send make sure we don't try it again.
10452         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
10453         * include/resolv.h: Declare __res_nopt.
10454
10455 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
10456
10457         [BZ #3944]
10458         * time/strptime_l.c (__strptime_internal): Set have_mon for
10459         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
10460         have been computed from tm_yday and tm_year.  Don't crash
10461         in day_of_the_week or day_of_the_year if not have_mon
10462         and tm_mon contains bogus value.
10463         * time/Makefile (tests): Add tst-strptime3.
10464         * time/tst-strptime3.c: New test.
10465
10466 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
10467
10468         [BZ #3957]
10469         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
10470         bit for RE_HAT_LISTS_NOT_NEWLINE.
10471         (build_charclass_op): Remove bogus comment.
10472         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
10473         * posix/bug-regex27.c: New test.
10474         * posix/bug-regex28.c: New test.
10475
10476 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
10477
10478         * po/sv.po: Update from translation team.
10479
10480 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
10481
10482         * nscd/nscd_helper.c (open_socket): Minor size optimization.
10483
10484 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
10485
10486         * include/locale.h (__uselocale): Add libc_hidden_proto.
10487         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
10488
10489         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
10490         gettimeofday.
10491
10492 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
10493
10494         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
10495         returning.
10496         (PTR_DEMANGLE): Real definition now that it's not the same as
10497         PRT_MANGLE anymore.
10498         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10499
10500         * string/strerror_l.c: New file.
10501         * string/Makefile (routines): Add strerror_l.
10502         * string/string.h: Declare strerror_l.
10503         * string/Versions: Export strerror_l for GLIBC_2.6.
10504
10505 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
10506
10507         * nscd/nscd_helper.c (open_socket): Now takes request type and key
10508         as parameter.  Construct request record.  Try sending request
10509         before the first poll use, it usually succeeds.  Adjust all
10510         callers.
10511         * nscd/nscd-client.h: Define MAXKEYLEN.
10512         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
10513
10514 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
10515
10516         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
10517         from return value.
10518         * nscd/nscd_helper.c: Include string.h.
10519         (__nscd_cache_search): Remove const qualifier from return value.
10520         On strict alignment architectures check hash entry and data head
10521         alignment.
10522         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
10523         mmapped data during GC cycle contains garbage.  If
10524         __nscd_drop_map_ref fails, decrement mapped->counter when returning
10525         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
10526         dropped to 0.
10527         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10528         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
10529         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10530         * nscd/nscd_getai.c (__nscd_getai): Likewise.
10531         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10532
10533 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
10534
10535         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
10536
10537 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
10538
10539         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
10540         names not numbers in cfi_*.
10541
10542 2007-01-26  Andreas Jaeger  <aj@suse.de>
10543
10544         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
10545         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
10546         Correct values of PER_HPUX and PER_OSF4.
10547
10548 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
10549
10550         * elf/dl-minimal.c: Undefine _itoa first.
10551         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
10552         * malloc/mtrace.c: Revert last change.
10553         * posix/wordexp.c: Likewise.
10554
10555 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
10556
10557         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
10558         and __geode__ to the list of i486+ CPUs.
10559         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10560
10561 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
10562
10563         * stdio-common/_itoa.c: Include <limits.h>.
10564         * stdio-common/_itowa.c: Likewise.
10565
10566 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
10567
10568         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
10569         platforms.
10570         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
10571         64-bit platforms.
10572         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
10573         possible.
10574         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
10575         if possible.
10576
10577         [BZ #3902]
10578         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
10579         * stdio-common/Makefile (tests): Add bug17.
10580         * stdio-common/bug17.c: New file.
10581
10582 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
10583
10584         * iconvdata/brf.c: New file.
10585         * iconvdata/testdata/BRF: New file.
10586         * iconvdata/testdata/BRF..UTF8: New file.
10587         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
10588         * iconvdata/Makefile: Add rules to build BRF.
10589         * iconvdata/TESTS: Add BRF entry.
10590         * iconvdata/gconv-modules: Likewise.
10591         * iconvdata/tst-tables.sh: Likewise.
10592
10593 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
10594
10595         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
10596         type `long long int', not `long int'.
10597         (wcstoq): Likewise.
10598
10599 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
10600
10601         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
10602         of values on 64-bit platforms which are too large.
10603
10604 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
10605             Joe Kerian  <jkerian@us.us.ibm.com>
10606
10607         [BZ #2749]
10608         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
10609         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
10610         (__copysignl): Use signbit() for comparison.
10611         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
10612         SET_LDOUBLE_WORDS64.
10613
10614         [BZ #2423, #2749]
10615         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
10616         (__ceill): Remove calls to fegetround(), fesetround().
10617         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10618         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10619         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10620
10621 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
10622
10623         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
10624
10625         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
10626
10627 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
10628
10629         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
10630         demangle pointer.
10631         * csu/libc-start.c: Likewise.
10632
10633 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
10634
10635         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
10636         really work anyway.
10637
10638 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
10639
10640         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
10641         users.
10642         (handle_request): Remove unnecessary tests.
10643
10644         * nscd/cache.c (cache_add): Record the failure to add to the cache.
10645
10646 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
10647
10648         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
10649         workbits in semi-raw fraction.
10650
10651         * math/test-misc.c: Add new tests.
10652
10653 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
10654
10655         * math/basic-test.c: Include test-skeleton.c.
10656         (TEST_TRUNC): Define.
10657         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
10658         (main): Rename to ...
10659         (do_test): ...this.  Run new tests.
10660         (TEST_FUNCTION): Define.
10661
10662 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
10663             Joe Kerian  <jkerian@us.us.ibm.com>
10664
10665         [BZ #2749]
10666         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
10667         handling for high words.
10668         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
10669         and overflow for infinity.
10670
10671 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
10672
10673         * nscd/connections.c (handle_request): Add a __builtin_expect.
10674
10675         * nscd/connections.c (serv2db): Change type into structure which
10676         also says whether this is a request for data.  Renamed to
10677         servinfo.  All users changed.
10678         (handle_request): Much simpler test whether we should search the cache.
10679
10680         * nscd/connections.c (handle_request): Fix thinko in selinux test
10681         invocation.
10682
10683         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
10684         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
10685         it before getting dl_load_lock and then relock.
10686         (_dl_lookup_symbol_x): Pass flags to add_dependency.
10687         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
10688         case we unlocked the scope.
10689         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
10690         _dl_lookup_symbol_x in case we locked the scope.
10691         (_dl_profile_fixup): Likewise.
10692         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
10693         set DL_LOOKUP_SCOPE_LOCK.
10694
10695 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
10696
10697         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
10698         CFLAGS-getsrvbynpt_r.c.
10699         * nscd/getsrvbynm_r.c: New file.
10700         * nscd/getsrvbypt_r.c: New file.
10701         * nscd/nscd_getserv_r.c: New file.
10702         * nscd/servicescache.c: New file.
10703         * nscd/Makefile (routines): Add nscd_getserv_r.
10704         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
10705         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
10706         CFLAGS-getsrvbypt_r.c.
10707         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
10708         table.  Add entries for services database.
10709         * nscd/connections.c (serv2str): Mark as const.  Add entries for
10710         services database.
10711         (dbs): Add .reset_res and servdb initialization.
10712         (serv2db): Add entries for services database.
10713         (verify_persistent_db): Accept dbnr == servdb.
10714         (invalidate_cache): Rewrite database name recognition to use a table.
10715         Call res_init() if .reset_res is set for database.
10716         (handle_request): Add code to handle services database.
10717         * nscd/gai.c: Don't define __getservbyname_r.
10718         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
10719         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
10720         (serv_response_header): Define.
10721         (struct datahead): Add serv_response_header member.
10722         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
10723         using table.
10724         * nscd/nscd.conf: Add entries for services database.
10725         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
10726         Declare serv_iov_disabled.
10727         Declare addservbyname, readdservbyname, addservbyport, and
10728         readdservbyport.
10729         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
10730         (find_db): Fix error message.
10731         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
10732         __nscd_getservbyname_r, and __nscd_getservbyport_r.
10733         * nscd/selinux.c (perms): Add entries for services database.
10734         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
10735         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
10736
10737         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
10738         * nscd/hstcache.c: Likewise.
10739         * nscd/pwdcache.c: Likewise.
10740
10741         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10742         computation of keylen.
10743
10744         * include/string.h: Only redefine strndupa if this is really for
10745         libc code.
10746
10747 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
10748
10749         * nscd/nscd_gethst_r.c: Minor cleanups.
10750
10751         * nscd/connections.c (handle_request): Check selinux permissions
10752         for all non-admin commands.
10753
10754         * sysdeps/i386/i486/bits/atomic.h: Define
10755         atomic_compare_and_exchange_val_acq,
10756         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
10757         using __sync_* built-ins for gcc >= 4.1.
10758         * sysdeps/x86_64/bits/atomic.h: Likewise.
10759
10760         [BZ #3840]
10761         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
10762         and .oS.d files.
10763
10764 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
10765
10766         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
10767         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
10768         (do_test): Check errno and exit(0) if ENOSYS.
10769
10770 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
10771
10772         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
10773         thousands separators.
10774         * stdlib/Makefile: Add rules to build and run tst-strtod4.
10775         * stdlib/tst-strtod4.c: New test.
10776
10777         [BZ #3855]
10778         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
10779         hexadecimal digit should accept just the initial 0.
10780         * stdlib/tst-strtod2.c (tests): New variable.
10781         (do_test): Run several tests rather than just one.
10782
10783 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
10784
10785         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
10786         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10787
10788 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
10789
10790         * io/fts.c: Make sure fts_cur is always valid after return from
10791         fts_read.
10792         Patch by Miloslav Trmac <mitr@redhat.com>.
10793
10794 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
10795
10796         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
10797         (R_MIPS_NUM): Bump by 1.
10798
10799 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
10800
10801         * posix/execvp.c: Include alloca.h.
10802         (allocate_scripts_argv): Renamed to...
10803         (scripts_argv): ... this.  Don't allocate buffer here nor count
10804         arguments.
10805         (execvp): Use alloca if possible.
10806         * posix/Makefile: Add rules to build and run tst-vfork3 test.
10807         * posix/tst-vfork3.c: New test.
10808
10809 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
10810
10811         * string/Makefile (tst-strxfrm2-ENV): Define.
10812         * stdlib/Makefile (tst-strtod3-ENV): Define.
10813
10814 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
10815
10816         * posix/getconf.c: Update copyright year.
10817         * nss/getent.c: Likewise.
10818         * iconv/iconvconfig.c: Likewise.
10819         * iconv/iconv_prog.c: Likewise.
10820         * elf/ldconfig.c: Likewise.
10821         * catgets/gencat.c: Likewise.
10822         * csu/version.c: Likewise.
10823         * elf/ldd.bash.in: Likewise.
10824         * elf/sprof.c (print_version): Likewise.
10825         * locale/programs/locale.c: Likewise.
10826         * locale/programs/localedef.c: Likewise.
10827         * nscd/nscd.c (print_version): Likewise.
10828         * debug/xtrace.sh: Likewise.
10829         * malloc/memusage.sh: Likewise.
10830         * malloc/mtrace.pl: Likewise.
10831         * debug/catchsegv.sh: Likewise.
10832
10833 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
10834
10835         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
10836         attempts.
10837
10838 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
10839
10840         * posix/wordexp.c: Remove some unnecessary tests.
10841
10842 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
10843
10844         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
10845         blacklist the group till after we look it up.
10846
10847 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
10848
10849         * include/atomic.h (atomic_forced_read): New macro.
10850
10851 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10852
10853         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
10854
10855 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
10856
10857         * nss/getXXbyYY_r.c: Include atomic.h.
10858         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
10859         add atomic_write_barrier () in between.
10860
10861         * stdlib/Makefile (tests): Add tst-makecontext.
10862         * stdlib/tst-makecontext.c: New test.
10863
10864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
10865         (__makecontext): Don't realign uc_mcontext.uc_regs.
10866
10867 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
10868
10869         * elf/dl-support.c: Include dl-procinfo.h.
10870         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
10871         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
10872         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
10873         Define.
10874         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
10875         hardcoded constants.
10876         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
10877         PPC_PLATFORM_* macros for array designators.
10878
10879 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
10880
10881         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
10882         names to the beginning.
10883         (_dl_powerpc_platforms): Add "power6x".
10884         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10885         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
10886         (_DL_PLATFORMS_COUNT): Increase.
10887         (_dl_string_platform): Handle power6x case.
10888         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
10889         PPC_FEATURE_POWER6_EXT): Define.
10890         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
10891
10892 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
10893
10894         [BZ #3747]
10895         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
10896         [-2^31 .. 2^31) range.
10897         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
10898         targets.
10899         * stdlib/tst-rand48-2.c: New test.
10900         * stdlib/Makefile (tests): Add tst-rand48-2.
10901
10902 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
10903
10904         * misc/tst-pselect.c (do_test): Fix sigblock argument.
10905
10906 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
10907
10908         * misc/tst-pselect.c (do_test): Make sure the helper process is
10909         terminating when the test is aborted.
10910
10911 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
10912
10913         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
10914         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10915         Handle relatime mount option.
10916
10917         [BZ #2337]
10918         * libio/Makefile (tests): Add tst-setvbuf1.
10919         * libio/tst-setvbuf1.c: New file.
10920
10921 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
10922
10923         [BZ #2337]
10924         * libio/genops.c (__uflow): Fix a typo.
10925         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
10926         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
10927         the narrow buffer size.
10928
10929 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
10930
10931         [BZ #2337]
10932         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
10933         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
10934         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
10935         in _flags.
10936         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
10937         _IO_wstr_finish): Likewise.
10938         * libio/wmemstream.c (open_wmemstream): Likewise.
10939         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
10940         even for wide streams.
10941
10942 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
10943
10944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
10945         kernel-features.h.
10946
10947 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
10948
10949         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
10950         separators also if no non-zero digits found.
10951         * stdlib/Makefile (tests): Add tst-strtod3.
10952
10953 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
10954
10955         [BZ #3632]
10956         * include/features.h: Fix comment about default value for
10957         _POSIX_C_SOURCE.
10958
10959         [BZ #3664]
10960         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
10961         empty parsed strings.
10962         * stdlib/Makefile (tests): Add tst-strtod2.
10963         * stdlib/tst-strtod2.c: New file.
10964
10965         [BZ #3673]
10966         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
10967         computation.
10968         * stdlib/Makefile (tests): Add tst-atof2.
10969         * stdlib/tst-atof2.c: New file.
10970
10971         [BZ #3674]
10972         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
10973         correctly if removing trailing zero of hex-float.
10974         * stdlib/Makefile (tests): Add tst-atof1.
10975         * stdlib/tst-atof1.c: New file.
10976
10977 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
10978
10979         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
10980         Start searching for next comma at p rather than rest.
10981         * misc/Makefile (tests): Add tst-mntent2.
10982         * misc/tst-mntent2.c: New test.
10983
10984         * misc/getusershell.c (initshells): Check for integer overflows.
10985         Make strings buffer one bigger as fgets always succeeds when second
10986         argument is 1.  Don't use calloc for shells array.  Disallow
10987         / as shell.
10988
10989 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
10990
10991         * malloc/memusage.c: Handle realloc with new size of zero and
10992         non-NULL pointer correctly.
10993         (me): Really write first record twice.
10994         (struct entry): Make format bi-arch safe.
10995         (dest): Write out more realloc statistics.
10996         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
10997
10998 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
10999
11000         * nis/nis_subr.c (nis_getnames): Revert last change.
11001
11002 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
11003
11004         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11005         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11006         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11007         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11008         ENOTTY.
11009         * io/Makefile: Add rules to build and run tst-ttyname_r test.
11010         * io/tst-ttyname_r.c: New test.
11011
11012 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11013
11014         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
11015
11016 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
11017
11018         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11019         jump table entries.
11020
11021 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
11022
11023         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11024         `clone' function to ensure proper unwinding stop of gdb.
11025         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11026
11027 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
11028
11029         * nscd/nscd.init: Remove obsolete and commented-out -S option
11030         handling.
11031
11032 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
11033
11034         [BZ #3514]
11035         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11036
11037         [BZ #3515]
11038         * manual/string.texi (strtok): Remove duplicate paragraph.
11039
11040 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11041
11042         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11043         libgcc not supporting `rflags' unwinding (register # >= 17).
11044
11045 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
11046
11047         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11048         succeeded.
11049
11050 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
11051             Jakub Jelinek  <jakub@redhat.com>
11052             Jan Kratochvil  <jan.kratochvil@redhat.com>
11053
11054         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11055         unwind information.
11056         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11057         'restore_rt' even in the 'signal' directory.
11058         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
11059
11060 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
11061
11062         [BZ #3559]
11063         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11064         malloc crashed.  Don't allocate memory unnecessarily in each
11065         loop.
11066
11067 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
11068
11069         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
11070
11071 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
11072
11073         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
11074
11075 2006-11-18  Bruno Haible  <bruno@clisp.org>
11076
11077         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11078         __sysconf only after having tried to call getgroups32.
11079
11080 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
11081
11082         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11083         addresses for IPv4 queries if they can be mapped.
11084
11085 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
11086
11087         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11088         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11089         (signmask): Add .size directive.
11090         (othermask): Add .type directive.
11091
11092 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
11093
11094         * po/nl.po: Update from translation team.
11095
11096         * timezone/zdump.c: Redo fix for BZ #3137.
11097
11098 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
11099
11100         * nss/nss_files/files-alias.c (get_next_alias): Set line back
11101         to first_unused after parsing :include: file.
11102
11103 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11104
11105         * timezone/africa: Update from tzdata2006o.
11106         * timezone/antarctica: Likewise.
11107         * timezone/asia: Likewise.
11108         * timezone/australasia: Likewise.
11109         * timezone/backward: Likewise.
11110         * timezone/europe: Likewise.
11111         * timezone/iso3166.tab: Likewise.
11112         * timezone/northamerica: Likewise.
11113         * timezone/southamerica: Likewise.
11114         * timezone/zone.tab: Likewise.
11115
11116         * time/tzfile.c (__tzfile_read): Extend to handle new file format
11117         on machines with 64-bit time_t.
11118
11119         * timezone/checktab.awk: Update from tzcode2006o.
11120         * timezone/ialloc.c: Likewise.
11121         * timezone/private.h: Likewise.
11122         * timezone/scheck.c: Likewise.
11123         * timezone/tzfile.h: Likewise.
11124         * timezone/tzselect.ksh: Likewise.
11125         * timezone/zdump.c: Likewise.
11126         * timezone/zic.c: Likewise.
11127
11128         [BZ #3483]
11129         * elf/ldconfig.c (main): Call setlocale and textdomain.
11130         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11131
11132         [BZ #3480]
11133         * manual/argp.texi: Fix typos.
11134         * manual/charset.texi: Likewise.
11135         * manual/errno.texi: Likewise.
11136         * manual/filesys.texi: Likewise.
11137         * manual/lang.texi: Likewise.
11138         * manual/maint.texi: Likewise.
11139         * manual/memory.texi: Likewise.
11140         * manual/message.texi: Likewise.
11141         * manual/resource.texi: Likewise.
11142         * manual/search.texi: Likewise.
11143         * manual/signal.texi: Likewise.
11144         * manual/startup.texi: Likewise.
11145         * manual/stdio.texi: Likewise.
11146         * manual/sysinfo.texi: Likewise.
11147         * manual/syslog.texi: Likewise.
11148         * manual/time.texi: Likewise.
11149         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11150
11151         [BZ #3465]
11152         * sunrpc/clnt_raw.c: Minimal message improvements.
11153         * sunrpc/pm_getmaps.c: Likewise.
11154         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11155         * nis/nis_print_group_entry.c: Likewise.
11156         * locale/programs/repertoire.c: Likewise.
11157         * locale/programs/charmap.c: Likewise.
11158         * malloc/memusage.sh: Likewise.
11159         * elf/dl-deps.c: Likewise.
11160         * locale/programs/ld-collate.c: Likewise.
11161         * libio/vswprintf.c: Likewise.
11162         * malloc/memusagestat.c: Likewise.
11163         * sunrpc/auth_unix.c: Likewise.
11164         * sunrpc/rpc_main.c: Likewise.
11165         * nscd/cache.c: Likewise.
11166         * locale/programs/repertoire.c: Unify output messages.
11167         * locale/programs/charmap.c: Likewise.
11168         * locale/programs/ld-ctype.c: Likewise.
11169         * locale/programs/ld-monetary.c: Likewise.
11170         * locale/programs/ld-numeric.c: Likewise.
11171         * locale/programs/ld-time.c: Likewise.
11172         * elf/ldconfig.c: Likewise.
11173         * nscd/selinux.c: Likewise.
11174         * elf/cache.c: Likewise.
11175         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11176
11177         [BZ #3451]
11178         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11179         change atomic.
11180         (ceil): Likewise.
11181
11182 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11183
11184         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11185         if N is one bigger than return value.
11186         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11187         and l1 last arguments, if buf is defined, verify the return value
11188         equals to strlen (buf) and verify no byte beyond passed length
11189         is modified.
11190
11191 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
11192
11193         * po/sv.po: Update from translation team.
11194
11195 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11196
11197         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11198         noinline attribute.
11199
11200 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
11201
11202         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11203         noinline attribute.
11204
11205         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11206         Use __new_sys_siglist instead of _sys_siglist_internal as
11207         second macro argument.
11208         (_old_sys_siglist): Use declare_symbol_alias macro instead of
11209         strong_alias.
11210
11211 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
11212
11213         [BZ #3493]
11214         * posix/unistd.h (sysconf): Remove const attribute.
11215
11216         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11217         temporary or deprecated addresses.
11218         Patch by Sridhar Samudrala <sri@us.ibm.com>.
11219
11220         * string/Makefile (tests): Add tst-strxfrm2.
11221         * string/tst-strxfrm2.c: New file.
11222
11223 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
11224
11225         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11226         rather than r->r_brk.
11227
11228 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
11229
11230         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11231         optimization even if needed > n.
11232
11233         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11234         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11235         return false, otherwise return true.
11236         (cache_rpath): Return decompose_rpath return value.
11237
11238 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
11239
11240         * include/libc-symbols.h (declare_symbol): Rename to...
11241         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
11242         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11243         .size directive.
11244         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11245         changes.
11246         * sysdeps/gnu/siglist.c: Likewise.
11247
11248 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
11249
11250         * sysdeps/powerpc/fpu/bits/mathinline.h
11251         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11252         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
11253
11254 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
11255
11256         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11257         Update handling of cache descriptor 0x49 for new models.
11258         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11259         Likewise.
11260
11261 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
11262
11263         * malloc/memusage.c (dest): Reset not_me back to false after
11264         printing statistics.
11265
11266 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
11267
11268         * configure.in: Work around ld --help change and avoid -z relro
11269         test completely if the architecture doesn't care about security.
11270
11271 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
11272
11273         * po/sv.po: Update from translation team.
11274
11275 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
11276
11277         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11278         generate compatibility version.
11279
11280 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
11281
11282         * configure.in: Relax -z relro requirement a bit.
11283
11284         * po/sv.po: Update from translation team.
11285
11286 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
11287
11288         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11289         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11290         * elf/dl-close.c (_dl_close_worker): Likewise.
11291         * elf/dl-open.c (_dl_open_worker): Likewise.
11292         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11293
11294 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
11295
11296         * configure.in: Require assembler support for visibility, compiler
11297         support for visibility and aliases, linker support for various -z
11298         options.
11299         * Makeconfig: Remove conditional code which now is unnecessary.
11300         * config.h.in: Likewise.
11301         * config.make.in: Likewise.
11302         * dlfcn/Makefile: Likewise.
11303         * elf/Makefile: Likewise.
11304         * elf/dl-load.c: Likewise.
11305         * elf/rtld.c: Likewise.
11306         * include/libc-symbols.h: Likewise.
11307         * include/stdio.h: Likewise.
11308         * io/Makefile: Likewise.
11309         * io/fstat.c: Likewise.
11310         * io/fstat64.c: Likewise.
11311         * io/fstatat.c: Likewise.
11312         * io/fstatat64.c: Likewise.
11313         * io/lstat.c: Likewise.
11314         * io/lstat64.c: Likewise.
11315         * io/mknod.c: Likewise.
11316         * io/mknodat.c: Likewise.
11317         * io/stat.c: Likewise.
11318         * io/stat64.c: Likewise.
11319         * libio/stdio.c: Likewise.
11320         * nscd/Makefile: Likewise.
11321         * stdlib/Makefile: Likewise.
11322         * stdlib/atexit.c: Likewise.
11323         * sysdeps/generic/ldsodefs.h: Likewise.
11324         * sysdeps/i386/dl-machine.h: Likewise.
11325         * sysdeps/i386/sysdep.h: Likewise.
11326         * sysdeps/i386/i686/memcmp.S: Likewise.
11327         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11328         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11329         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11330
11331         * Makerules: USE_TLS support is now default.
11332         * tls.make.c: Likewise.
11333         * csu/Versions: Likewise.
11334         * csu/libc-start.c: Likewise.
11335         * csu/libc-tls.c: Likewise.
11336         * csu/version.c: Likewise.
11337         * dlfcn/dlinfo.c: Likewise.
11338         * elf/dl-addr.c: Likewise.
11339         * elf/dl-cache.c: Likewise.
11340         * elf/dl-close.c: Likewise.
11341         * elf/dl-iteratephdr.c: Likewise.
11342         * elf/dl-load.c: Likewise.
11343         * elf/dl-lookup.c: Likewise.
11344         * elf/dl-object.c: Likewise.
11345         * elf/dl-open.c: Likewise.
11346         * elf/dl-reloc.c: Likewise.
11347         * elf/dl-support.c: Likewise.
11348         * elf/dl-sym.c: Likewise.
11349         * elf/dl-sysdep.c: Likewise.
11350         * elf/dl-tls.c: Likewise.
11351         * elf/ldconfig.c: Likewise.
11352         * elf/rtld.c: Likewise.
11353         * elf/tst-tls-dlinfo.c: Likewise.
11354         * elf/tst-tls1.c: Likewise.
11355         * elf/tst-tls10.h: Likewise.
11356         * elf/tst-tls14.c: Likewise.
11357         * elf/tst-tls2.c: Likewise.
11358         * elf/tst-tls3.c: Likewise.
11359         * elf/tst-tls4.c: Likewise.
11360         * elf/tst-tls5.c: Likewise.
11361         * elf/tst-tls6.c: Likewise.
11362         * elf/tst-tls7.c: Likewise.
11363         * elf/tst-tls8.c: Likewise.
11364         * elf/tst-tls9.c: Likewise.
11365         * elf/tst-tlsmod1.c: Likewise.
11366         * elf/tst-tlsmod13.c: Likewise.
11367         * elf/tst-tlsmod13a.c: Likewise.
11368         * elf/tst-tlsmod14a.c: Likewise.
11369         * elf/tst-tlsmod2.c: Likewise.
11370         * elf/tst-tlsmod3.c: Likewise.
11371         * elf/tst-tlsmod4.c: Likewise.
11372         * elf/tst-tlsmod5.c: Likewise.
11373         * elf/tst-tlsmod6.c: Likewise.
11374         * include/errno.h: Likewise.
11375         * include/link.h: Likewise.
11376         * include/tls.h: Likewise.
11377         * locale/global-locale.c: Likewise.
11378         * locale/localeinfo.h: Likewise.
11379         * malloc/arena.c: Likewise.
11380         * malloc/hooks.c: Likewise.
11381         * malloc/malloc.c: Likewise.
11382         * resolv/Versions: Likewise.
11383         * sysdeps/alpha/dl-machine.h: Likewise.
11384         * sysdeps/alpha/libc-tls.c: Likewise.
11385         * sysdeps/generic/ldsodefs.h: Likewise.
11386         * sysdeps/generic/tls.h: Likewise.
11387         * sysdeps/i386/dl-machine.h: Likewise.
11388         * sysdeps/ia64/dl-machine.h: Likewise.
11389         * sysdeps/ia64/libc-tls.c: Likewise.
11390         * sysdeps/mach/hurd/fork.c: Likewise.
11391         * sysdeps/mach/hurd/i386/tls.h: Likewise.
11392         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
11393         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11394         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11395         * sysdeps/s390/libc-tls.c: Likewise.
11396         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11397         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11398         * sysdeps/sh/dl-machine.h: Likewise.
11399         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11400         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11401         * sysdeps/x86_64/dl-machine.h: Likewise.
11402
11403         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
11404         split out locking and parameter checking.
11405         (_dl_close): Call _dl_close_worker after locking and checking.
11406         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
11407         _dl_close.
11408         * elf/Makefile: Add rules to build and run tst-thrlock.
11409         * elf/tst-thrlock.c:  New file.
11410
11411         [BZ #3426]
11412         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
11413         reality.
11414
11415         [BZ #3429]
11416         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
11417         we are sure we do not need it anymore for _dl_close.  Also move
11418         the asserts inside the lock region.
11419         Patch mostly by Suzuki <suzuki@in.ibm.com>.
11420
11421 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
11422
11423         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
11424         argument.
11425         (_dl_lookup_symbol_x): Adjust caller.
11426
11427         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
11428         _ns_global_scope.
11429         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
11430
11431         * elf/dl-libc.c: Revert l_scope name changes.
11432         * elf/dl-load.c: Likewise.
11433         * elf/dl-object.c: Likewise.
11434         * elf/rtld.c: Likewise.
11435         * elf/dl-close.c (_dl_close): Likewise.
11436         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
11437         always use __rtld_mrlock_{change,done}.  Always free old scope list
11438         here if not l_scope_mem.
11439         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
11440         change.  Never free scope list here.  Just __rtld_mrlock_lock before
11441         the lookup and __rtld_mrlock_unlock it after the lookup.
11442         * elf/dl-sym.c: Likewise.
11443         * include/link.h (struct r_scoperec): Remove.
11444         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
11445         with l_scope_mem and l_scoperec_lock with l_scope_lock.
11446
11447 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
11448
11449         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
11450
11451 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11452
11453         * configure.in: Disable building profile libraries by default.
11454
11455 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11456
11457         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
11458         as signed longs, check for x_base + pos overflow.
11459         * sunrpc/Makefile (tests): Add tst-xdrmem2.
11460         * sunrpc/tst-xdrmem2.c: New test.
11461
11462 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11463
11464         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
11465         _dl_lookup_symbol_x code.
11466
11467 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11468
11469         * elf/dl-runtime.c: Include sysdep-cancel.h.
11470         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
11471         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
11472         instead of catomic_* macros.
11473         * elf/dl-sym.c: Include sysdep-cancel.h.
11474         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
11475         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11476         * elf/dl-close.c: Include sysdep-cancel.h.
11477         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
11478         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11479         * elf/dl-open.c: Include sysdep-cancel.h.
11480         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
11481         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
11482
11483 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11484
11485         [BZ #3313]
11486         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
11487         fastbin rather than end of fastbin array.
11488
11489 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
11490
11491         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
11492         body macro.
11493         * sysdeps/x86_64/bits/atomic.h
11494         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
11495         (catomic_decrement): Use correct body macro.
11496
11497 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
11498
11499         * include/atomic.h: Add a unique prefix to all local variables
11500         in macros.
11501         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
11502
11503 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
11504
11505         [BZ #3369]
11506         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
11507         and 7.
11508
11509 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
11510
11511         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
11512
11513 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
11514
11515         [BZ #3313]
11516         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
11517         determine highest fast bin to consolidate, always look into all of
11518         them.
11519         (do_check_malloc_state): Only require for empty bins for large
11520         sizes in main arena.
11521
11522         * libio/stdio.h: Add more __wur attributes.
11523
11524         * elf/dl-minimal.c (realloc): Optimize last patch.
11525
11526 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
11527
11528         [BZ #3352]
11529         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
11530         and use memcpy() if it does.
11531
11532 2006-11-12  Andreas Jaeger  <aj@suse.de>
11533
11534         [BZ #2510]
11535         * manual/search.texi (Hash Search Function): Clarify.
11536         (Array Search Function): Clarify.
11537
11538 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
11539
11540         [BZ #2830]
11541         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
11542         shifting.
11543         * math/atest-exp2.c (read_mpn_hex): Likewise.
11544         * math/atest-sincos.c (main): Likewise.
11545
11546 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11547
11548         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
11549         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
11550         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
11551         version GLIBC_2.6.
11552         * Versions.def: Add GLIBC_2.6 for libc.
11553
11554         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
11555
11556         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
11557
11558 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
11559
11560         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
11561
11562         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
11563
11564         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
11565         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
11566
11567 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
11568
11569         * include/atomic.c: Define catomic_* operations.
11570         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
11571         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
11572         * malloc/memusage.c: Likewise.
11573         * gmon/mcount.c: Likewise.
11574         * elf/dl-close.c: Likewise.
11575         * elf/dl-open.c: Likewise.
11576         * elf/dl-profile.c: Likewise.
11577         * elf/dl-sym.c: Likewise.
11578         * elf/dl-runtime.c: Likewise.
11579         * elf/dl-fptr.c: Likewise.
11580         * resolv/res_libc.c: Likewise.
11581
11582 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
11583
11584         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
11585         components which lack them.
11586
11587         * nis/nis_subr.c (nis_getnames): Make sure that we always return
11588         at least one entry consisting of the parameter concatenated with
11589         the domain.
11590
11591 2006-10-10  Roland McGrath  <roland@frob.com>
11592
11593         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
11594         * sysdeps/mach/hurd/futimes.c: Likewise.
11595         * sysdeps/mach/hurd/lutimes.c: Likewise.
11596
11597 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
11598             Jakub Jelinek  <jakub@redhat.com>
11599
11600         Implement reference counting of scope records.
11601         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
11602         from the list in objects which remain.  Always allocate new scope
11603         record.
11604         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
11605         don't resize, allocate a new one.
11606         * elf/dl-runtime.c: Update reference counters before using a scope
11607         array.
11608         * elf/dl-sym.c: Likewise.
11609         * elf/dl-libc.c: Adjust for l_scope name change.
11610         * elf/dl-load.c: Likewise.
11611         * elf/dl-object.c: Likewise.
11612         * elf/rtld.c: Likewise.
11613         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
11614         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
11615         Add l_scoperec_lock.
11616         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
11617         * sysdeps/generic/rtld-lowlevel.h: New file.
11618
11619         * include/atomic.h: Rename atomic_and to atomic_and_val and
11620         atomic_or to atomic_or_val.  Define new macros atomic_and and
11621         atomic_or which do not return values.
11622         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
11623         Various cleanups.
11624         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11625
11626         * po/sv.po: Update from translation team.
11627
11628 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
11629
11630         * Versions.def: Add GLIBC_2.6 to libpthread.
11631
11632         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
11633         (versioned_symbol): Likewise.
11634         (compat_symbol): Likewise.
11635
11636         * po/tr.po: Update from translation team.
11637
11638 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11639
11640         * nis/Banner: Removed.  It's been integral part forever and the
11641         author info is incomplete anyway.
11642         * libio/Banner: Likewise.
11643
11644         * nis/nis_table.c (nis_list): If __follow_path fails in the new
11645         code, make sure the nis_freeresult call doesn't crash and that the
11646         result is reported correctly.
11647
11648 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
11649
11650         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
11651         when callback is NULL.
11652
11653         * nis/Versions (libnss_nisplus): Add
11654         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
11655         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
11656         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
11657         _nss_create_tablename): Rename to...
11658         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
11659         ... these.  No longer static.
11660         (internal_setgrent): Adjust users.
11661         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
11662         Don't use locking around _nss_grp_create_tablename call.
11663         * nis/nss_nisplus/nisplus-initgroups.c: New file.
11664
11665 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11666
11667         * version.h (VERSION): Bump to 2.5.90 for new development tree.
11668
11669 2006-10-06  Andreas Jaeger  <aj@suse.de>
11670
11671         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
11672
11673 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
11674
11675         * po/pl.po: Update from translation team.
11676
11677         * nscd/nscd.c (main): Fix typo in message.
11678         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
11679
11680 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
11681
11682         [BZ #3291]
11683         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
11684         errno.h, signal.h, unistd.h and sysdep-cancel.h.
11685         (__sigprocmask): Define.
11686
11687 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
11688
11689         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
11690         used.
11691
11692 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
11693
11694         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
11695         in oldtotal and newtotal calculation.
11696         * nscd/nscd-client.h (struct mapped_database): Add datasize
11697         field.
11698         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
11699         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
11700         increased.
11701         (__nscd_cache_search): Add checks to make sure we never reference
11702         data beyond the current mapping.
11703
11704 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
11705
11706         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
11707         variables const to avoid compiler warnings.
11708
11709         * io/fts.c (fts_close): Remove redundant checks.
11710         (fts_build): Likewise.
11711         (fts_palloc): Likewise.
11712
11713         * manual/message.texi (Advanced gettext functions,
11714         Using gettextized software): Fix typos.
11715
11716 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
11717
11718         * posix/glob.c (glob_in_dir): Add some comments and asserts to
11719         explain why there are no leaks.
11720
11721 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
11722
11723         * libio/wmemstream.c: Include <wchar.h>.
11724         * libio/bug-wmemstream1.c: Likewise.
11725         * libio/tst-wmemstream1.c: Likewise.
11726         * libio/tst-wmemstream2.c: Likewise.
11727
11728         * version.h (RELEASE): Bump to 2.5.
11729         * README: Regenerated.
11730
11731         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11732
11733         [BZ #3273]
11734         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11735         found no group members.
11736         Patch by Petr Baudis.
11737
11738 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
11739
11740         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
11741         assert bootstrap_map.l_tls_modid is zero.
11742         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
11743         if USE___THREAD.
11744
11745 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
11746
11747         * libio/stdio.h: Move open_wmemstream prototype to ...
11748         * wcsmbs/wchar.h: ... here.
11749
11750 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
11751
11752         [BZ #3252]
11753         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
11754         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
11755         __{,l}chown to handle the rest.
11756         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
11757         fchownat syscall and __ASSUME_32BITUIDS case inline, call
11758         __{,l}chown to handle the rest.
11759         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
11760         i386/fchownat.c.
11761         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
11762         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
11763
11764         [BZ #3253]
11765         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11766         time, rather allocate increasingly bigger arrays of pointers, if
11767         possible with alloca, if too large with malloc.
11768
11769 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
11770
11771         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
11772
11773         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
11774
11775 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
11776
11777         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
11778         home addresses.
11779         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
11780         IFA_F_HOMEADDRESS flag for interfaces.
11781         * include/ifaddrs.h (struct in6addrinfo): Define
11782         in6ai_homeaddress.
11783
11784 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
11785
11786         [BZ #3225]
11787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
11788         PTR_DEMANGLE3): Define.
11789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
11790         PTR_DEMANGLE3): Likewise.
11791         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
11792         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
11793         Likewise.
11794         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11795
11796 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
11797
11798         * po/libc.pot: Regenerated.
11799         * po/be.po: Updated.
11800         * po/ca.po: Likewise.
11801         * po/cs.po: Likewise.
11802         * po/da.po: Likewise.
11803         * po/de.po: Likewise.
11804         * po/el.po: Likewise.
11805         * po/en_GB.po: Likewise.
11806         * po/es.po: Likewise.
11807         * po/fi.po: Likewise.
11808         * po/fr.po: Likewise.
11809         * po/gl.po: Likewise.
11810         * po/hr.po: Likewise.
11811         * po/hu.po: Likewise.
11812         * po/ja.po: Likewise.
11813         * po/ko.po: Likewise.
11814         * po/nb.po: Likewise.
11815         * po/nl.po: Likewise.
11816         * po/pl.po: Likewise.
11817         * po/pt_BR.po: Likewise.
11818         * po/ru.po: Likewise.
11819         * po/rw.po: Likewise.
11820         * po/sk.po: Likewise.
11821         * po/sv.po: Likewise.
11822         * po/tr.po: Likewise.
11823         * po/zh_CN.po: Likewise.
11824         * po/zh_TW.po: Likewise.
11825
11826         [BZ #3137]
11827         * iconv/iconv_prog.c (main): Fix spelling in error message.
11828         * iconv/iconvconfig.c (main): Likewise.
11829         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
11830         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
11831         * locale/programs/localedef.c (main): Likewise.
11832         * locale/programs/repertoire.c (repertoire_read): Likewise.
11833         * timezone/zdump.c (main): Likewise.
11834         * nscd/connections.c (handle_request): Fix spelling in log message.
11835         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
11836
11837 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
11838
11839         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
11840         interfaces.
11841
11842 2006-09-20  Andreas Jaeger  <aj@suse.de>
11843
11844         * math/libm-test.inc (lrint_test_upward): Fix typo.
11845
11846 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
11847
11848         [BZ #2592]
11849         * math/libm-test.inc (lrint_test_tonearest): New function.
11850         (lrint_test_towardzero): New function.
11851         (lrint_test_downward): New function.
11852         (lrint_test_upward): New function.
11853         (main): Run these new tests.
11854         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
11855         of values near to 0.
11856         (two52): Use double not long double.
11857         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11858         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11859         (two23): Use float not double.
11860         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11861         (two23): Use float not double.
11862         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
11863         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11864         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
11865         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11866
11867 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11868
11869         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
11870         Cast sp to unsigned long to avoid compiler warning.
11871         Use __makecontext_ret function instead of a trampoline on the stack.
11872         (__makecontext_ret): New function.
11873         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
11874
11875 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
11876
11877         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
11878         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
11879         bits.
11880
11881 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
11882
11883         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
11884         sure no reference to the unloaded map's search list remains in the
11885         dependency's scope.
11886
11887 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
11888
11889         * elf/Makefile: Add rules to build and run unload7 test.
11890         * elf/unload7.c: New test.
11891         * elf/unload7mod1.c: New file.
11892         * elf/unload7mod2.c: New file.
11893
11894 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
11895
11896         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
11897         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
11898         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11899         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
11900         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11901         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
11902         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11903         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
11904         PTRACE_GETEVENTMSG): Likewise.
11905         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
11906         values.
11907
11908 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
11909
11910         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
11911         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11912         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
11913         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
11914
11915 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
11916
11917         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
11918         write '\0' to the fd.
11919         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
11920         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
11921         Change regs to unsigned long pointer from unsigned int, fix fscr
11922         offset.
11923
11924 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11925
11926         * io/Makefile (CFLAGS-fstatat.c): Set.
11927         (CFLAGS-fstatat64.c): Likewise.
11928         (CFLAGS-mknodat.c): Likewise.
11929
11930         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
11931         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11932         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
11933         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
11934
11935 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
11936             Steven Munroe  <sjmunroe@us.ibm.com>
11937
11938         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
11939         names to the beginning.  Rename "cell" to "cellbe".
11940         (_dl_powerpc_platforms): New.
11941         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11942         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
11943         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
11944         (_DL_HWCAP_PLATFORM): Define to new mask.
11945         (_dl_platform_string, _dl_string_platform): New functions.
11946         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
11947         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
11948
11949 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
11950
11951         [BZ #2526]
11952         * README.libm: Fix a thinko in sqrt algorithm description.
11953
11954         [BZ #3143]
11955         * manual/string.texi (argz_delete): Fix prototype.
11956         Patch by <alpt@freaknet.org>.
11957
11958 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
11959
11960         [BZ #3138]
11961         * io/test-lfs.c (do_prepare): Give name_len type size_t.
11962         * io/tst-fcntl.c (do_prepare): Likewise.
11963         * posix/tst-exec.c (do_prepare): Likewise.
11964         * posix/tst-preadwrite.c (do_prepare): Likewise.
11965         * posix/tst-spawn.c (do_prepare): Likewise.
11966         * posix/tst-truncate.c (do_prepare): Likewise.
11967         * rt/tst-aio.c (do_prepare): Likewise.
11968         * rt/tst-aio64.c (do_prepare): Likewise.
11969         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
11970         size_t.
11971
11972 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
11973
11974         [BZ #2821]
11975         * time/mktime.c (guess_time_tm): Fix overflow detection.
11976         * time/Makefile (tests): Add bug-mktime1.
11977         * time/bug-mktime1.c: New file.
11978
11979         [BZ #3189, #3188]
11980         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
11981         (mremap): Likewise.
11982
11983 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
11984
11985         [BZ #1006]
11986         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
11987         Ensure relocation doesn't clobber any bits outside of the
11988         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
11989         R_SPARC_HI22 and R_SPARC_H44.
11990
11991         [BZ #2775]
11992         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
11993         (long) (MINSIZE + nb - old_size) is positive.
11994
11995         * malloc/arena.c (grow_heap): When growing bail even if new_size
11996         is negative.
11997
11998         [BZ #3155]
11999         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12000         stack below r1.
12001
12002 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
12003
12004         * posix/regex_internal.c (re_string_reconstruct): Handle
12005         offset < pstr->valid_raw_len && pstr->offsets_needed case.
12006         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
12007         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12008         re_string_context_at.
12009         * posix/Makefile: Add rules to build and run bug-regex26 test.
12010         * posix/bug-regex26.c: New test.
12011
12012         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12013         rather than col_sym_free.  Move seqp declaration earlier.
12014
12015         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12016
12017 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
12018
12019         * nscd/initgrcache.c (addinitgroupsX): Move any_success
12020         decl before first goto out.
12021
12022 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12023
12024         * Makerules (shlib.lds): If have-hash-style, put .hash section
12025         at the end of the RO segment.
12026
12027 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
12028
12029         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12030         style hash table format is used.
12031
12032 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
12033
12034         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12035         randomization rather than before.
12036         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12037
12038 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
12039
12040         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
12041
12042         * malloc/malloc.c (_int_malloc): Use full list insert and not
12043         shortcut which assumes the list is empty for large requests
12044         too.
12045
12046         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12047
12048 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
12049
12050         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12051         and offout arguments to the prototype.
12052         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12053         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12054         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12055         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12056         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12057         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12058         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12059         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12060
12061 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
12062
12063         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12064
12065         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12066         dlopen parameters.
12067
12068 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
12069
12070         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12071         only if herrno is NETDB_INTERNAL.  Handle errors other than
12072         ERANGE outside of the loops, handle TRY_AGAIN.
12073
12074         * locale/programs/ld-ctype.c (translit_flatten): Issue error
12075         if other's ctype category was missing.
12076         * locale/programs/ld-collate.c (collate_read): Return if
12077         copy_locale's collate category is missing.
12078
12079 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
12080
12081         [BZ #2684]
12082         * malloc/malloc.c (public_rEALLOc): Try harder by using other
12083         arenas if allocation failed.
12084         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12085
12086 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
12087
12088         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12089         waste bins[0..1].
12090         (malloc_state): Reduce bins size by 2.
12091         (_int_malloc): Fix test for large enough buffer for early termination.
12092         When no unsorted block matches perfectly and an exiting block has
12093         to be split, use full list insert and not shortcut which assumes
12094         the list is empty.
12095
12096         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12097         failure.
12098
12099 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12100
12101         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12102         do anything.
12103
12104         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12105         symbol require exact match (these are PLTs).
12106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12107         (_dl_ppc64_addr_sym_match): Likewise.
12108
12109         [BZ #2683]
12110         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12111         If symbol has a value use it.
12112         * elf/tst-dladdr1.c: New file.
12113         * elf/Makefile: Add rules to build and run tst-addr1.
12114
12115 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
12116
12117         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12118         keeps failing and heap growth or new heap creation isn't
12119         successful either.
12120         * malloc/tst-malloc.c (main): Add new tests.
12121
12122 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
12123
12124         [BZ #2734]
12125         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12126         as in the x86-64 code to use bswap.
12127
12128 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
12129
12130         [BZ #2680]
12131         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12132         __USE_UNIX98.
12133         * posix/bits/unistd.h: Likewise.
12134
12135 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
12136
12137         [BZ #2751]
12138         * string/strchr.c: Add cast to avoid warning.
12139
12140 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12141
12142         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12143         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
12144         limit is needed to avoid the exploding of the address space
12145         requirement for secondary heaps.
12146         * malloc/arena.c (HEAP_MAX_SIZE): Define using
12147         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12148
12149 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
12150
12151         [BZ #3018]
12152         * Makerules (depfiles): Handle extra-test-objs the same as
12153         extra-objs.
12154         (common-mostlyclean): Likewise.
12155         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12156         instead.
12157         * elf/Makefile (extra-objs): Likewise.
12158         * stdlib/Makefile (extra-objs): Likewise.
12159
12160 2006-08-14  Eric Blake  <ebb9@byu.net>
12161
12162         [BZ #3044]
12163         * misc/error.h: Assume C89 or better.
12164         * misc/error.c: Likewise.
12165
12166 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
12167
12168         [BZ #3040]
12169         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12170         __ASSUME_ATFCTS is defined.
12171
12172 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
12173
12174         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12175         to sort in each call.
12176
12177         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12178         is empty simply return and use next service.
12179         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12180
12181         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
12182         tells us when not finding a charmap file is an error.
12183         * locale/programs/charmap.h: Adjust charmap_read prototype.
12184         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12185         cannot find a charmap.
12186         * locale/programs/localedef.c (main): Adjust charmap_read call.
12187
12188 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
12189
12190         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12191         sysdeps/posix/pause.c implementation instead.
12192
12193 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
12194
12195         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12196         to EPERM.
12197
12198 2006-08-13  Andreas Schwab  <schwab@suse.de>
12199
12200         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12201         Don't clobber caller's LRSAVE.
12202         (_dl_prof_resolve): Likewise.
12203
12204 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
12205
12206         [BZ #1996]
12207         * libio/memstream.c (open_memstream): Allocate initial buffer with
12208         calloc.
12209         * libio/wmemstream.c (open_wmemstream): Likewise.
12210         * libio/strops.c: Pretty printing.
12211         (_IO_str_overflow): Clear uninitialized part of the new buffer.
12212         (enlarge_userbuf): New function.
12213         (_IO_str_seekoff): Call it if seek position is larger than current
12214         buffer.
12215         * libio/wstrops.c: Likewise.
12216         * libio/vasprintf.c: Add comment as to why we do not have to use
12217         calloc instead of malloc to allocate initial buffer.
12218         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12219         * libio/bug-memstream1.c: New file.
12220         * libio/bug-wmemstream1.c: New file.
12221
12222 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12223
12224         * libio/wstrops.c: Remove dead macro definitions and comments.
12225         * libio/strops.c: Likewise.
12226
12227         [BZ #2764]
12228         * login/utmpname.c (__utmpname): Remove unnecessary test.
12229
12230 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
12231
12232         [BZ #2832]
12233         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12234         0s from integers.
12235
12236 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
12237
12238         [BZ #2987]
12239         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12240         for CPU clocks.
12241         * sysdeps/unix/clock_settime.c: Add support for platform-specific
12242         setting of CPU clocks.
12243
12244 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12245
12246         [BZ #2841]
12247         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12248         since C99 requires the result to promote to 'int' when uint_least8_t
12249         and uint_least16_t promote to 'int'.
12250
12251 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
12252
12253         [BZ #3013]
12254         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12255         lenght of one output field, correct bitmask creation.
12256         * locale/programs/ld-time.c: Add alignment.
12257
12258         [BZ #2997]
12259         * misc/error.c: Add space between program name and message if file
12260         name is missing.
12261
12262 2006-08-03  Eric Blake  <ebb9@byu.net>
12263
12264         [BZ #2998]
12265         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12266
12267 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
12268
12269         * malloc/memusagestat.c: Silence warnings.
12270
12271         * malloc/malloc.c: Dynamically size mmap treshold if the program
12272         frees mmaped blocks.
12273         Patch by Valerie Henson and Arjan van de Ven.
12274
12275 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
12276
12277         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12278         __USE_GNU.
12279
12280         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12281         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12282         (DEF): Don't put the var into .gnu.linkonce.r.* section.
12283         Only provide var definitions in strtol_l (or for *ull*
12284         in strtoll_l).
12285
12286         * stdio-common/bug16.c (tests): New array.
12287         (do_tests): Allow the first hexadecimal digit
12288         to be 1, 2, 4 or 8.  Do 3 additional tests.
12289
12290         * sysdeps/s390/fpu/libm-test-ulps: Update.
12291
12292         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12293         fchownat syscall if available.
12294         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12295         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12296         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12297
12298 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12299
12300         * nis/nis_xdr.c: Avoid some function calls.
12301
12302 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
12303             Ulrich Drepper  <drepper@redhat.com>
12304
12305         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12306         short cut if only one name component is stripped away.
12307
12308 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
12309
12310         * nis/nis_call.c: Minor cleanups throughout.
12311         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
12312         (first_shoot): Add search_parent_first parameter.  Only if it is set
12313         search parent server first.
12314         If directory for table found through cold start cache is not the same
12315         as referenced in the cache, don't use it.
12316         (__nisfind_server): Take additional parameter.  Pass it on to
12317         first_shoot.
12318         (__prepare_niscall): Adjust __nisfind_server call.
12319         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12320         * nis/nis_table.c: Adjust __nisfind_server call.
12321         * nis/nis_lookup.c: Likewise.
12322         (nis_lookup): Don't loop endlessly if name is reduced to ".".
12323
12324 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
12325
12326         [BZ #2182]
12327         * math/s_cacosh.c: Return values from positive branch.
12328         * math/s_cacoshf.c: Likewise.
12329         * math/s_cacoshl.c: Likewise.
12330
12331         [BZ #2883]
12332         * sysvipc/sys/msg.h: Change return value to ssize_t.
12333         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12334         * sysvipc/msgrcv.c: Likewise.
12335         * include/sys/msg.h: Likewise.
12336
12337         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12338         test introduced in patch for bz #661.
12339         (getgrouplist): Simplify code a bit.  Don't allocate one additional
12340         element for NEWGROUPS.
12341
12342         [BZ #2908]
12343         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12344         'f', use '1' as leading digit not '\1'.
12345         * stdio-common/Makefile (tests): Add bug16.
12346         * stdio-common/bug16.c: New file.
12347
12348         [BZ #2914]
12349         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12350         and don't try to open it.  The patch introducing the macro
12351         contained a bug and used the same file name as the new file
12352         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
12353         this out completely.
12354
12355         [BZ #2926]
12356         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12357         Patch by Jerry James <Jerry.James@usu.edu>.
12358
12359         * rt/Makefile (tests): Add tst-clock2.
12360         * rt/tst-clock2.c: New file.
12361
12362         [BZ #2978]
12363         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12364         function and its parameters and pass it to new thread.
12365         (__gai_notify): Add support for alternative waiting for completion.
12366         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12367         waiting for completion.
12368         * resolv/getaddrinfo_a.c: Likewise.
12369         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12370         waiting for completion is used.
12371         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12372         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12373         * resolv/gai_error.c: Likewise.
12374         * resolv/gai_sigqueue.c: Likewise.
12375
12376 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
12377
12378         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
12379         errno to EBADF and return MACH_PORT_NULL.
12380
12381 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
12382
12383         [BZ #2980]
12384         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
12385
12386 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
12387
12388         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12389         walk them instead of the symbol table.
12390
12391 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
12392
12393         [BZ #2098]
12394         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
12395         status of NSS calls, not the number of returned entries.
12396
12397         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
12398         request_key, keyctl.
12399
12400 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12401
12402         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
12403
12404 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
12405
12406         * elf/tst-auditmod1.c: Fix typo in #error.
12407
12408 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12409
12410         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
12411
12412         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
12413
12414 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
12415
12416         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
12417         that the directory is empty even on non-POSIX filesystems.
12418
12419 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
12420
12421         * elf/dl-open.c (dl_open_worker): Add branch prediction.
12422
12423         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
12424         the backend NSS module.  If backend setgrent call failed, don't have
12425         internal_setgrent fail.  Just remember this until it is needed.
12426         * nis/nss_compat/compat-pwd.c: Likewise.
12427         * nis/nss_compat/compat-spwd.c: Likewise.
12428
12429 2006-07-30  Roland McGrath  <roland@redhat.com>
12430
12431         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
12432         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
12433         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
12434         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
12435
12436         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
12437         (nanosleep_not_cancel): New macro.
12438         (sigsuspend_not_cancel): new macro.
12439         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
12440         (do_sigsuspend): Define as inline.
12441         (__sigsuspend): Always use do_sigsuspend.
12442         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
12443         * include/signal.h: Declare __sigsuspend_nocancel.
12444         * sysdeps/posix/pause.c
12445         [! NO_CANCELLATION] (__pause_nocancel): New function.
12446
12447         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
12448         * include/time.h (__nanosleep_nocancel): Likewise.
12449
12450 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
12451
12452         * locale/programs/localedef.c (add_to_readlist): Rename local
12453         variables to avoid confusion.
12454
12455         * locale/programs/charmap.c (charmap_read): Emit error message if
12456         charmap couldn't be found or read.
12457
12458 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
12459
12460         * sysdeps/unix/sysv/linux/kernel-features.h: Define
12461         __ASSUME_FUTEX_LOCK_PI.
12462         * include/time.h: Declare __nanosleep_nocancel.
12463         * include/unistd.h: Declare __pause_nocancel.
12464
12465         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
12466         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
12467         get the __stack_chk_fail_local definition when it's needed.
12468
12469 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
12470
12471         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
12472         * dlfcn/bug-atexit3.c: New file.
12473         * dlfcn/bug-atexit3-lib.cc: New file.
12474
12475         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
12476         used when the namespace is not the base namespace.
12477
12478 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
12479
12480         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
12481         (__new_exitfn): Bump it in every successful call.
12482         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
12483         more exit handlers, call them right away.
12484         * stdlib/exit.h: Declare __new_exitfn_called.
12485
12486 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
12487
12488         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
12489         calling registered handler.
12490
12491         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
12492         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12493         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12494         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12495         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12496         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12497         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12498         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12499
12500 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
12501
12502         * elf/dl-lookup.c (dl_new_hash): New functions.
12503         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
12504         value here.  Compute new-style hash value.  Pass new hash value
12505         and reference to variable with the old value to do_lookup_x.
12506         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
12507         old-style hash table.
12508         (_dl_debug_bindings): Pass new hash value and reference to variable
12509         with the old value to do_lookup_x.
12510         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
12511         new-style hash value and change old-style hash value parameter to
12512         be a reference.  Reoganize functions to determine whether
12513         new-style hash table is available.  Only fall back on old-style
12514         table.  If old-style hash value is needed, compute it here.
12515         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
12516         entry.
12517         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
12518         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
12519         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
12520         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
12521         * Makeconfig: If linker supports --hash-style option add it to all
12522         linker command lines to build DSOs.
12523         * config.make.in: Define have-hash-style.
12524         * configure.in: Test whether linker supports --hash-style option.
12525
12526         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
12527         * sysdeps/generic/ldsodefs.h: Adjust prototype.
12528
12529 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
12530
12531         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
12532         auditing.
12533
12534         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
12535         RPATH of main map twice.
12536
12537 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
12538
12539         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
12540         look further, return original strings.
12541         (_nl_find_msg): Do not return found translation if the conversion
12542         failed.  Either signal the string is unusable or that something went
12543         wrong and the original should be used.
12544
12545 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
12546
12547         * string/_strerror.c (__strerror_r): Add __builtin_expect.
12548
12549 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
12550
12551         [BZ #2766]
12552         * misc/insremque.c (insque): Handle prev == NULL.
12553         * misc/Makefile (tests): Add tst-insremque.
12554         * misc/tst-insremque.c: New test.
12555
12556 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
12557
12558         [BZ #2792]
12559         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
12560         conflict with DL_DST_REQUIRED.
12561
12562 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
12563
12564         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
12565         match what Solaris does.
12566
12567 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
12568
12569         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
12570         local_setegid instead of seteuid and setegid.
12571         * sysdeps/generic/local-setxid.h: New file.
12572         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
12573
12574         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
12575
12576         * string/Makefile (tests): Add bug-envz1.
12577         * string/bug-envz1.c: New file.
12578
12579 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
12580
12581         * posix/regex_internal.c (re_string_skip_chars): If no character has
12582         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
12583         to the byte which couldn't be converted.
12584         (re_string_reconstruct): Don't clear valid_raw_len before calling
12585         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
12586         tip_context using re_string_context_at.
12587         * posix/Makefile: Add rules to build and run bug-regex25 test.
12588         * posix/bug-regex25.c: New test.
12589
12590 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
12591
12592         [BZ #2703]
12593         * string/envz.c (envz_strip): Correct erroneously reversed src
12594         and dest parameters to memmove() invocation.
12595
12596 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
12597
12598         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
12599         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
12600         to make sure the database has been already invalidated.
12601         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
12602         after the cache has been invalidated.  Use pthread_mutex_lock rather
12603         than pthread_mutex_trylock if fd != -1.
12604         * nscd/connections.c (invalidate_cache): Add fd argument, write
12605         response to fd if not calling prune_cache, pass fd to prune_cache.
12606         (handle_request): Adjust invalidate_cache caller.
12607         (nscd_run): Pass -1 as fd to prune_cache.
12608
12609 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
12610
12611         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
12612         the correct place.
12613
12614 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
12615
12616         * nscd/nscd.h (struct database_dyn): Add prunelock field.
12617         * nscd/cache.c (prune_cache): Take prunelock before starting the
12618         work.  Just return in case it is already taken.
12619         * nscd/connections.c (dbs): Initialize .prunelock.
12620
12621 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
12622
12623         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
12624         copying.  No need to allocate new array for group members.  Just
12625         move the pointers and update the size.
12626
12627         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
12628         Avoid memory leak in case realloc fails.  Simplification for
12629         better code generation.
12630
12631         Avoid deprecation warning because of libc_hidden_proto for
12632         inet6_option_alloc.
12633         * inet/inet6_option.c (option_alloc): Renamed from
12634         inet6_option_alloc.  Made static.
12635         (inet6_option_alloc): Now a simple wrapper around option_alloc.
12636         (inet6_option_append): Call option_alloc.
12637         * include/netinet/in.h: Remove libc_hidden_proto for
12638         inet6_option_alloc.
12639
12640         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
12641         for cleanup when cb!=NULL [Coverity CID 233].
12642
12643 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
12644
12645         [BZ #2693]
12646         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
12647         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
12648         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
12649         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
12650         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
12651         and inet6_rth_getaddr.
12652         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
12653         array.
12654         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
12655         Mark inet6_option_* interfaces as deprecated.
12656         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
12657         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
12658         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
12659         inet6_rth_segments, and inet6_rth_getaddr.
12660         * inet/inet6_opt.c: New file.
12661         * inet/inet6_rth.c: New file.
12662
12663         * inet/netinet/icmp6.h: Pretty printing.
12664
12665         [BZ #2683]
12666         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
12667
12668 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
12669
12670         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
12671         doing it all here.  When server does not know the answer do not
12672         fail immediate, try parent first.
12673
12674         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
12675         overflow test.
12676
12677 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
12678
12679         * nis/nis_call.c (__prepare_niscall): New function.  Split out
12680         from __do_niscall.
12681         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
12682         and exported.
12683         (__follow_path): New function.  Split out from nis_list.
12684         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
12685         _xdr_nis_result.
12686         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
12687         _xdr_nis_result.
12688         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
12689         and __follow_path.
12690         * nis/Versions: Export __prepare_niscall, __create_ib_request,
12691         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
12692         from libnsl for version GLIBC_PRIVATE.
12693         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
12694         Remove entry parameter from _nss_nisplus_parse_pwent and
12695         _nss_nisplus_parse_grent.
12696         * nis/nss_nisplus/nisplus-parser.c: Likewise.
12697         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
12698         again.  Rewrite getpwent handling to not use nis_first_entry and
12699         nis_next_entry.  Roll out own niscall handling.
12700         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12701
12702         * sunrpc/xdr_rec.c: Fix typo in comment.
12703
12704 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
12705
12706         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
12707         handling.
12708
12709         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
12710         to allocate memory for my_pollfd.  Better initialization of
12711         cb_is_running.  Use TEMP_FAILURE_RETRY.
12712
12713         * malloc/memusage.sh (memusageso): Add quotes.
12714         (memusagestat): Likewise.
12715         * debug/xtrace.sh (pcprofileso): Likewise.
12716         (pcprofiledump): Likewise.
12717         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
12718         replacement.
12719         * malloc/Makefile ($(objpfx)memusage): Likewise.
12720
12721         * nis/nis_callback.c (__nis_create_callback): Calls to
12722         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
12723         asprintf call fails.
12724
12725         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12726         no uninitialized memory is passed to sendto.
12727
12728 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12729
12730         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
12731         of snprintf+strdup.  Handle OOM.
12732         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
12733         cb->serv together.  Remove now obsolete free calls.
12734         (__nis_destroy_callback): Remove now obsolete free call.
12735
12736 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
12737
12738         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
12739         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
12740         and ULA respectively). Set precedence for IPv4 address to 10 as
12741         defined in RFC3484 for preferring IPv6.
12742         * posix/gai.conf: Update to match the new default tables.
12743
12744 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
12745
12746         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
12747         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
12748         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
12749         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
12750
12751         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12752         Removed.
12753         (init_nss_interface): Remove initialization of these variables.
12754
12755 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
12756
12757         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
12758         nis_free_directory forward to avoid duplication.
12759
12760 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
12761
12762         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
12763         rec_dirsearch returning NULL.
12764         (first_shoot): Handle __nis_finddirectory returning NULL.
12765         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
12766
12767         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
12768         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
12769
12770 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
12771
12772         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
12773         pid changed.
12774
12775 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
12776
12777         * include/rpc/pmap_prot.h: Mark all functions as hidden.
12778
12779         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
12780         * nscd/nscd_getgr_r.c: Likewise.
12781
12782         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
12783
12784         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
12785         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
12786
12787         * stdlib/longlong.h (__clz_tab): Mark as hidden.
12788
12789         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
12790
12791         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
12792
12793         * include/rpc/auth.h: Mark xdr_des_block_internal and
12794         xdr_opaque_auth_internal as hidden.
12795
12796         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
12797         hidden.
12798
12799         * include/rpc/xdr.h: Mark all _internal functions as hidden.
12800
12801         * misc/getusershell.c (okshells): Don't use static initializers,
12802         do it dynamically.
12803
12804         * stdlib/fmtmsg.c (keywords): Change type of len element to
12805         uint32_t to not waste space on 64bit machines.
12806
12807         * locale/setlocale.c: Change _nl_category_names into a string.
12808         Add new _nl_category_name_idxs.  Change all users.
12809         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
12810         Declare _nl_category_name_idxs.
12811         * locale/findlocale.c: Adjust for _nl_category_names change.
12812         * locale/loadlocale.c: Likewise.
12813         * locale/newlocale.c: Likewise.
12814         * intl/dcigettext.c: Likewise.
12815
12816         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
12817         (add_alias2): ...here.  New function.
12818         (__gconv_read_conf): Simplify builtin alias handling.
12819         (builtin_aliases): Convert to string to avoid relocations.
12820         * iconv/gconv_builtin.h: Add comment about correct formatting.
12821
12822 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
12823
12824         * resolv/res_debug.c (loc_ntoa): Make error const.
12825
12826 2006-05-14  Andreas Schwab  <schwab@suse.de>
12827
12828         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
12829
12830 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
12831
12832         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
12833         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
12834         sizeof (cpu_set_t).
12835
12836 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
12837
12838         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
12839
12840         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
12841
12842         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
12843         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
12844
12845         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
12846         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
12847
12848         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
12849         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
12850         xdr_cback_data.
12851
12852         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
12853         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12854         xdr_ypupdate_args.
12855
12856         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
12857         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
12858
12859         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
12860         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
12861
12862         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
12863         * include/rpcsvc/nis_callback.h: New file.
12864
12865         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
12866         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
12867
12868         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12869         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12870
12871         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
12872         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
12873
12874         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12875         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12876
12877         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
12878         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12879         xdr_ypdelete_args.
12880
12881         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
12882         __BEGIN_DECLS and __END_DECLS, the header is not installed.
12883
12884         * nis/nis_error.c: Remove table of strings.  Use position
12885         independent mechanism.
12886         * nis/nis_error.h: New file.
12887
12888 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
12889
12890         * locale/programs/ld-time.c (time_finish): If wide era name or
12891         format aren't provided, set both wname and wformat to L"".
12892
12893 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
12894
12895         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
12896         results if the call was succesful.
12897
12898         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
12899
12900         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
12901         as hidden.
12902
12903 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
12904
12905         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
12906
12907 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
12908
12909         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
12910         caller makes sure this is not the case.
12911         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
12912
12913 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
12914
12915         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
12916         calls.
12917
12918         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
12919         [Coverity CID 229, 230]
12920
12921         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
12922         DGETTEXT calls.
12923         (hol_help): Likewise.  [Coverity CID 226, 227]
12924
12925         * string/argz-replace.c (__argz_replace): Unconditionally call
12926         free on SRC.  [Coverity CID 225]
12927
12928         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
12929         the return value of __nis_default_owner and __nis_default_group,
12930         it has been especially allocated.  [Coverity CID 224]
12931
12932         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
12933         searchgroup and searchowner.  Significantly simplified.
12934         (__nis_default_owner): Remove duplication.  Do not locally copy the
12935         string before duplicating it.
12936         (__nis_default_group): Likewise.
12937
12938         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
12939         we must clear the variable before calling __nisfind_server.
12940
12941         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
12942         nis_getnames.  [Coverity CID 223]
12943
12944         * locale/programs/locfile.c (locfile_read): Use alloca instead of
12945         xmalloc to allocate local repertoire name.  [Coverity CID 222]
12946
12947         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
12948         allocate memory for the input to add_bytes.  [Coverity CID 221]
12949
12950         * posix/wordexp.c (w_addword): Free word if realloc fails and it
12951         was allocated here.  [Coverity CID 219, 220]
12952
12953         * posix/getconf.c (print_all): Free confstr data after printing.
12954         [Coverity CID 218]
12955
12956         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
12957         list allocation fails.  [Coverity CID 215]
12958
12959         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
12960         [Coverity CID 213]
12961
12962         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
12963         string is NULL.  [Coverity CID 212]
12964         * argp/Makefile: Add rules to build and run bug-argp1.
12965         * argp/bug-argp1.c: New file.
12966
12967         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
12968         end of string.
12969         * stdlib/canonicalize.c (__realpath): Likewise.
12970
12971         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
12972         pointer.  [Coverity CID 206]
12973
12974         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
12975         in statically linked code.
12976         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
12977         statically built code, be prepared to have no link map.
12978         [Coverity CID 205]
12979
12980         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
12981         dgettext calls. [Coverity CID 204]
12982
12983         * argp/argp-help.c (struct uparams): Remove valid member.  Change
12984         the one user.
12985         (uparam_names): Reduce size.  Avoid relative relocations.
12986         Moved to read-only segment.
12987         (fill_in_uparams): Update for new layout.
12988
12989         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
12990         assumed to always be != NULL. [Coverity CID 202]
12991
12992         * argp/argp-help.c (hol_entry_help): Remove some dead code
12993         [Coverity CID 200].
12994
12995         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
12996         away a few more unconditional yperr2nss calls.
12997         (_nss_nis_getservbyname_r): Likewise.
12998
12999 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
13000
13001         * sysdeps/generic/ldsodefs.h: Remove support for non-core
13002         architectures.
13003
13004         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13005         that unused memory passed to sendto is nevertheless initialized.
13006
13007         [BZ #2499]
13008         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13009         possibly unaligned memory accesses.
13010
13011         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13012         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13013         and __putlong respectively.  Correct buffer overflow check for
13014         NS_NOTIFY_OP.
13015
13016         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13017
13018         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13019         (send_dg): Rewrite error handling to be more compact and avoid
13020         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
13021
13022         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13023
13024         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13025         instead of ns_get16.
13026         (res_queriesmatch): Likewise.  Minor optimization.
13027
13028         [BZ #2499]
13029         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13030         __libc_res_nsend might reallocate the buffer for the answer.  In
13031         this case we have to reload the HP pointer.
13032
13033 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13034
13035         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
13036         some branch prediction hints.
13037
13038         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13039         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13040         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13041         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13042         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13043         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13044         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13045         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13046
13047 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
13048
13049         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13050         by a GOT relocation to make Scrt1.o position independent.
13051         * sysdeps/s390/s390-64/elf/start.S: Likewise.
13052
13053         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13054         six system call parameters.
13055         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13056
13057 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13058
13059         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13060         malloc&bzero.
13061
13062         * sunrpc/svc_udp.c (BZERO): Remove definition.
13063         (CALLOC): Define.
13064         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13065
13066         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
13067         (des_SPtrans): Use uint32_t type.
13068         (des_skb): Likewise.
13069
13070         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13071
13072 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
13073
13074         [BZ #2509]
13075         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13076         on 32-bit arches.
13077
13078 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
13079
13080         * locale/programs/ld-address.c (address_finish): Fix one more
13081         place where the iso639 array might be accessed beyond the limits.
13082
13083 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
13084
13085         * nis/nis_table.c (nis_list): Avoid clearing res twice before
13086         filling it for the first time.
13087
13088         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13089         Adjust all callers.
13090         Free res object content before returning.
13091
13092         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13093
13094         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13095         client->cl_auth.
13096
13097         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13098         cleanup for initial thread, just the free call on TVP.
13099
13100         * nscd/gai.c (__getline): Define.
13101
13102
13103 See ChangeLog.16 for earlier changes.