]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Add macros for DSCP markings.
[thirdparty/glibc.git] / ChangeLog
1 2009-10-29 Ulrich Drepper <drepper@redhat.com>
2
3 [BZ #10789]
4 * sysdeps/generic/netinet/ip.h: Define IPTOS_ENC* and IPTOS_DSCP*
5 macros. Patch by Philip Prindeville <philipp@redfish-solutions.com>.
6
7 [BZ #10840]
8 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9 __ASSUME_F_GETOWN_EX.
10 * sysdeps/unix/sysv/linux/fcntl.c: Implement F_GETOWN using F_GETOWN_EX
11 if possible.
12 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
13
14 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
15 and f_owner_ex.
16 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
21 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22
23 [BZ #10847]
24 * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
25 getutmpx symbol.
26
27 [BZ #10823]
28 * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
29 addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
30
31 2009-10-24 Joseph Myers <joseph@codesourcery.com>
32
33 * sysdeps/ieee754/ldbl-128/w_expl.c: Add hidden_def (__expl).
34
35 2009-10-27 Jakub Jelinek <jakub@redhat.com>
36
37 [BZ #10817]
38 * math/w_coshl.c (__coshl): Use __finitel instead of __finite.
39 Reported by Ray Chason.
40
41 2009-10-21 H.J. Lu <hongjiu.lu@intel.com>
42
43 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44 strend-sse4.
45 * sysdeps/x86_64/multiarch/strchr.S: New file.
46 * sysdeps/x86_64/multiarch/strend-sse4.S: New file.
47 * sysdeps/x86_64/multiarch/strrchr.S: New file.
48
49 2009-10-21 Andreas Schwab <schwab@redhat.com>
50
51 * elf/dl-sym.c (do_sym): Resolve STT_GNU_IFUNC symbols.
52
53 2009-10-19 Andreas Schwab <schwab@redhat.com>
54
55 * include/math.h: Add hidden protos for __exp/__expf/__expl.
56 * sysdeps/ieee754/dbl-64/w_exp.c: Add hidden alias.
57 * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
58 * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
59 * sysdeps/i386/fpu/s_expm1.S: Call __exp to handle overflow.
60 * sysdeps/i386/fpu/s_expm1f.S: Call __expf to handle overflow.
61 * sysdeps/i386/fpu/s_expm1l.S: Call __expl instead of
62 __ieee751_expl to handle overflow.
63
64 2009-10-14 David S. Miller <davem@davemloft.net>
65
66 * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: New file.
67 * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: New file.
68
69 2009-10-13 Andreas Schwab <schwab@redhat.com>
70
71 * csu/elf-init.c (__libc_csu_init): Run preinit array even if
72 !USE_MULTIARCH.
73
74 2009-10-08 Ulrich Drepper <drepper@redhat.com>
75
76 [BZ #10730]
77 * stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
78 Patch in part by Steve Ward <planet36@gmail.com>.
79
80 [BZ #10731]
81 * stdlib/rand_r.c: Fix typo.
82
83 * po/cs.po: Update from translation team.
84
85 2009-10-06 Andreas Schwab <schwab@redhat.com>
86
87 * elf/dl-load.c (_dl_map_object_from_fd): Close fd before
88 returning if RTLD_NOLOAD.
89
90 2009-10-06 Roland McGrath <roland@redhat.com>
91
92 * sysdeps/x86_64/multiarch/strstr-c.c
93 [! SHARED]: Omit libc_hidden_builtin_def fiddling.
94
95 * sysdeps/x86_64/multiarch/strcasestr-c.c: Remove
96 libc_hidden_builtin_def fiddling, does not apply to strcasestr at all.
97
98 * sysdeps/x86_64/multiarch/init-arch.h
99 [NOT_IN_libc] (__get_cpu_features): Define it as a macro.
100 (HAS_CPU_FEATURE): New macro.
101 (HAS_SSE2, HAS_POPCOUNT, HAS_SSE4_2, HAS_FMA): Use it.
102 * sysdeps/x86_64/multiarch/init-arch.c
103 (__get_cpu_features): #undef it before definition.
104
105 2009-10-05 Andreas Schwab <schwab@redhat.com>
106
107 * locale/C-time.c: Revert week-1stday back to 19971130 and set
108 first_weekday to 1 and first_workday to 2.
109
110 2009-10-01 Ulrich Drepper <drepper@redhat.com>
111
112 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_SETOWN_EX and
113 F_GETOWN_EX.
114 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
115 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
116 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
117 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
118 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
119 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
120
121 2009-09-28 Andreas Schwab <schwab@redhat.com>
122
123 * stdio-common/printf_fp.c: Check for and avoid integer overflows.
124 * stdio-common/vfprintf.c: Likewise.
125
126 2009-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
127
128 * sysdeps/mach/hurd/mkdirat.c: Include <hurd/fd.h>.
129 (mkdirat): Call __directory_name_split_at instead of
130 __directory_name_split.
131
132 2009-09-28 Ulrich Drepper <drepper@redhat.com>
133
134 * locale/programs/locale-spec.c (locale_special): If nothing matches
135 fail with an appropriate message.
136
137 2009-09-10 H.J. Lu <hongjiu.lu@intel.com>
138
139 * configure.in: Exclude binutils 2.X. Support binutils 2.100
140 and XX.
141
142 2009-09-25 Andreas Schwab <schwab@redhat.com>
143
144 * elf/dl-reloc.c (RESOLVE_MAP): Always pass
145 DL_LOOKUP_ADD_DEPENDENCY to _dl_lookup_symbol_x.
146
147 2009-09-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
148
149 * bits/termios.h [__USE_UNIX98] (IXANY): Define macro.
150
151 2009-09-20 Andreas Schwab <schwab@linux-m68k.org>
152
153 * iconvdata/iso646.c (gconv_init): Correctly initialize the
154 character size elements in step data.
155
156 2009-09-20 Ulrich Drepper <drepper@redhat.com>
157
158 * po/hu.po: Update from translation team.
159 * po/vi.po: Likewise.
160
161 2009-09-19 Roland McGrath <roland@redhat.com>
162
163 * libio/wfileops.c (_IO_wfile_seekoff): Remove unused variables.
164
165 2009-09-15 Roland McGrath <roland@redhat.com>
166
167 * aclocal.m4 (GLIBC_PROVIDES): Add _AS_ECHO_PREPARE.
168 * nptl/sysdeps/pthread/configure: Regenerated.
169 * nptl/sysdeps/x86_64/configure: Regenerated.
170 * sysdeps/unix/sysv/linux/configure: Regenerated.
171 * sysdeps/x86_64/elf/configure: Regenerated.
172
173 * Makefile (autoconf-it): Set execute bit only on top-level configure.
174
175 * configure.in: Let add-ons set $libc_add_on_config_subdirs to have
176 the effect of AC_CONFIG_SUBDIRS relative to the add-on directory.
177 * aclocal.m4 (GLIBC_PROVIDES): Add AC_CONFIG_SUBDIRS.
178 * configure: Regenerated.
179
180 2009-09-09 Ulrich Drepper <drepper@redhat.com>
181
182 * posix/getconf.c (main): Handle -- on command line.
183
184 2009-09-05 H.J. Lu <hongjiu.lu@intel.com>
185
186 * configure.in: Support binutils 2.100 and 3.0.
187
188 2009-09-08 Jakub Jelinek <jakub@redhat.com>
189
190 * sysdeps/s390/s390-32/____longjmp_chk.c: Removed.
191 * sysdeps/s390/s390-64/____longjmp_chk.c: Removed.
192 * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: New file.
193 * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: New file.
194
195 2009-09-07 Ulrich Drepper <drepper@redhat.com>
196
197 * locale/programs/ld-collate.c (struct locale_collate_t): Add
198 unnamed_section_defined field.
199 (collate_read): Test and set unnamed_section_defined.
200
201 * posix/getconf.c (vars): Handle POSIX2_LINE_MAX in addition to
202 _POSIX2_LINE_MAX.
203
204 2009-09-04 H.J. Lu <hongjiu.lu@intel.com>
205
206 * configure.in: Support binutils 2.20.
207
208 2009-09-03 Ulrich Drepper <drepper@redhat.com>
209
210 * sysdeps/i386/i686/multiarch/strstr-c.c (__strstr_sse42,
211 __strstr_ia32): Add attribute_hidden.
212
213 2009-09-01 Andreas Schwab <schwab@redhat.com>
214
215 * hesiod/nss_hesiod/hesiod-grp.c (internal_gid_from_group): Fix
216 parsing of group entry.
217
218 2009-09-02 Andreas Schwab <schwab@redhat.com>
219
220 * libio/wfileops.c (_IO_wfile_seekoff): Account for readahead in
221 external buffer. Always discard readahead in internal buffer.
222 * libio/Makefile (tests): Add bug-wsetpos.
223 * libio/bug-wsetpos.c: New file.
224
225 2009-09-02 Jakub Jelinek <jakub@redhat.com>
226
227 * sysdeps/x86_64/multiarch/strstr-c.c (__strstr_sse42, __strstr_sse2):
228 Add attribute_hidden.
229 * sysdeps/x86_64/multiarch/strcasestr-c.c (__strcasestr_sse42,
230 __strcasestr_sse2): Likewise.
231 * sysdeps/x86_64/multiarch/s_fma.c (__fma_sse2): Add attribute_hidden.
232 (__fma_fma): Make static.
233 * sysdeps/x86_64/multiarch/s_fmaf.c (__fmaf_sse2): Add attribute_hidden.
234 (__fmaf_fma): Make static.
235
236 2009-08-31 Andreas Schwab <schwab@redhat.com>
237
238 * libio/wfileops.c (_IO_wfile_seekoff): Remove dead code and
239 reformulate in-buffer optimisation check to match code in
240 _IO_new_file_seekoff.
241
242 2009-08-31 Joshua W. Boyer <jwboyer@linux.vnet.ibm.com>
243
244 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Change srdi instruction
245 to srwi in 32-bit memcpy for power6.
246
247 2009-09-01 Andreas Schwab <schwab@redhat.com>
248
249 * include/stdio.h: Declare hidden proto for fflush.
250 * libio/iofflush.c: Add hidden weak alias for fflush.
251
252 2009-09-01 Jakub Jelinek <jakub@redhat.com>
253
254 * sysdeps/x86_64/fpu/bits/mathinline.h: Include bits/wordsize.h.
255 (__signbitf, __signbit): Only use SSE inline asm for 64-bit.
256
257 2009-08-31 Andreas Schwab <schwab@redhat.com>
258
259 * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
260
261 2009-08-31 Ulrich Drepper <drepper@redhat.com>
262
263 [BZ #10560]
264 * malloc/malloc.c: Add local assert definition to avoid problems with
265 memory allocation in the real one.
266
267 2009-08-27 H.J. Lu <hongjiu.lu@intel.com>
268
269 * sysdeps/i386/i686/multiarch/init-arch.c (ENABLE_SSSE3_ON_ATOM):
270 Removed.
271 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Don't
272 turn off SSSE3 on Atom.
273
274 2009-08-28 Ulrich Drepper <drepper@redhat.com>
275
276 * stdlib/tst-strtol.c (tests): More tests.
277 * stdlib/tst-strtoll.c (tests): Likewise.
278
279 2009-08-26 Ulrich Drepper <drepper@redhat.com>
280
281 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: New file.
282
283 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: New file.
284
285 2009-08-25 Ulrich Drepper <drepper@redhat.com>
286
287 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Add llround aliases.
288 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: New file.
289
290 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: New file
291
292 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: New file.
293
294 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: New file.
295
296 2009-08-25 Joseph Myers <joseph@codesourcery.com>
297
298 * math/s_fdiml.c (__fdiml): Use fpclassify instead of fpclassifyl.
299
300 2009-08-25 Ulrich Drepper <drepper@redhat.com>
301
302 * sysdeps/x86_64/fpu/s_scalbln.c: New file.
303 * sysdeps/x86_64/fpu/s_scalbn.c: New file.
304
305 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
306
307 * sysdeps/x86_64/fpu/s_signbit.S: New file.
308 * sysdeps/x86_64/fpu/s_signbitf.S: New file.
309
310 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: New file.
311 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: New file.
312
313 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Remove
314 leftover YMM_SIZE definition.
315
316 2009-08-24 Ulrich Drepper <drepper@redhat.com>
317
318 * math/math_private.h (ieee_double_shape_type): Add uint64_t word to
319 union.
320 (EXTRACT_WORDS64, INSERT_WORDS64): Define.
321 * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64, INSERT_WORDS64):
322 Redefine.
323 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: New file.
324
325 * sysdeps/x86_64/fpu/math_private.h: Add specialized GET_FLOAT_WORD
326 and SET_FLOAT_WORD definitions.
327
328 2009-08-24 Roland McGrath <roland@redhat.com>
329
330 * sysdeps/unix/syscall-template.S: New file.
331 * sysdeps/unix/make-syscalls.sh: Generate rules to use it.
332 * sysdeps/unix/Makefile (omit-deps): Do not omit syscall stubs' deps.
333 (compile-syscall): Pass mkdep and -g options as normal.
334 (s-proto.d, s-proto-cancel.d): Don't "-include" these.
335 (common-generated): Don't add them here.
336
337 2009-08-24 Ulrich Drepper <drepper@redhat.com>
338
339 * math/s_fdim.c: In case of overflows set errno.
340 * math/s_fdimf.c: Likewise.
341 * math/s_fdiml.c: Likewise.
342
343 * math/math.h: Define math_errhandling of __FAST_MATH__ is not defined.
344 * sysdeps/i386/fpu/bits/mathinline.h: Undefine math_errhandling if we
345 are using the inline optimizations.
346
347 * sysdeps/x86_64/fpu/bits/mathinline.h (__signbit): Optimize.
348 (__signbitf): Likewise.
349
350 2009-08-23 Ulrich Drepper <drepper@redhat.com>
351
352 * posix/regcomp.c (parse_dup_op): Verify the expression is correctly
353 terminated.
354 * posix/Makefile (tests): Add bug-regex29.
355 * posix/bug-regex29.c: New file.
356
357 * posix/unistd.h: Define _POSIX_VERSION and _POSIX2_* correctly if
358 older POSIX versions are selected.
359
360 * stdio-common/printf_fp.c: ISO C expects to print the sign of NaN
361 as well.
362 * stdio-common/printf_fphex.c: Likewise.
363 * stdio-common/tstdiomisc.c: Add more tests.
364
365 * locale/locale.h: Include xlocale.h and the thread-local locale
366 declarations for XPG7, not XPG6.
367
368 2009-08-21 Andreas Schwab <schwab@redhat.com>
369
370 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: Removed.
371 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: Removed.
372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: New file.
373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S: New file.
374 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Move CHECK_SP earlier.
375 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
376
377 2009-08-20 Roland McGrath <roland@redhat.com>
378
379 * sysdeps/generic/elf/backtracesyms.c (__backtrace_symbols):
380 Use l_addr instead of l_map_start (dli_fbase).
381 Print "FILE([+-]OFFSET) [ADDRESS]" with the file-relative
382 address when there is no proximate symbol.
383 * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd):
384 Likewise.
385
386 2009-08-16 Ulrich Drepper <drepper@redhat.com>
387
388 * scripts/gen-as-const.awk: Fix test for 64-bit platform.
389
390 2009-08-14 Ulrich Drepper <drepper@redhat.com>
391
392 * test-skeleton.c (signal_handler): Renamed from timeout_handler.
393 Also handle SIGINT. In that case only do the cleanup and then
394 re-raise the signal.
395 (main): Install handler for SIGINT.
396
397 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
398
399 * stdlib/longlong.h [__sh__] (udiv_qrnnd, sub_ddmmss): Add "t" to
400 clobber list.
401
402 2009-08-01 H.J. Lu <hongjiu.lu@intel.com>
403
404 * elf/Makefile (distribute): Add tst-audit6.c tst-auditmod6a.c
405 tst-auditmod6b.c tst-auditmod6c.c tst-audit7.c tst-auditmod7a.c
406 tst-auditmod7b.c.
407 (tests): Add tst-audit6 tst-audit7.
408 (modules-names): Add st-auditmod6a tst-auditmod6b tst-auditmod6c
409 tst-auditmod7a tst-auditmod7b.
410 ($(objpfx)tst-audit6): New.
411 ($(objpfx)tst-audit6.out): Likewise.
412 ($(objpfx)tst-audit7): Likewise.
413 ($(objpfx)tst-audit7.out): Likewise.
414 (tst-audit6-ENV): Likewise.
415 (tst-audit7-ENV): Likewise.
416 (CFLAGS-tst-auditmod6b.c): Likewise.
417 (CFLAGS-tst-auditmod6c.c): Likewise.
418 (CFLAGS-tst-auditmod7b.c): Likewise.
419 * elf/tst-audit6.c: New file.
420 * elf/tst-audit7.c: New file.
421 * elf/tst-auditmod6a.c: New file.
422 * elf/tst-auditmod6b.c: New file.
423 * elf/tst-auditmod6c.c: New file.
424 * elf/tst-auditmod7a.c: New file.
425 * elf/tst-auditmod7b.c: New file.
426 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
427 saving and restoring SSE/AVX registers to ...
428 * sysdeps/x86_64/dl-trampoline.h: This. New file.
429
430 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
431
432 * sysdeps/i386/i686/multiarch/strcspn.S (STRCSPN): Use PIC
433 only if SHARED is defined.
434 * sysdeps/i386/i686/multiarch/strspn.S (strspn): Likewise.
435
436 2009-08-03 Jim Meyering <meyering@redhat.com>
437
438 * sysdeps/i386/configure.in: Use AC_HEADER_CHECK.
439
440 2009-08-08 Ulrich Drepper <drepper@redhat.com>
441
442 * sysdeps/x86_64/multiarch/strlen.S: Move SSE4.2 version into the same
443 section as the other functions for this architecture.
444 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
445
446 2009-08-07 Ulrich Drepper <drepper@redhat.com>
447
448 * sysdeps/x86_64/strcmp.S: Add support to compile with
449 USE_SSSE3. In this case palignr is used.
450 * sysdeps/x86_64/multiarch/strcmp.S (strcmp): If SSE4.2 is not
451 available but SSSE3 is, pick __str{,n}cmp_ssse3.
452 * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
453 Add strcmp-ssse3 and strncmp-ssse3.
454 * sysdeps/x86_64/multiarch/strcmp-ssse3.S: New file.
455 * sysdeps/x86_64/multiarch/strncmp-ssse3.S: New file.
456
457 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
458 warning through fake initialization.
459
460 2009-08-07 H.J. Lu <hongjiu.lu@intel.com>
461
462 * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
463
464 2009-08-07 Andreas Schwab <schwab@redhat.com>
465
466 * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
467 unique symbols.
468
469 2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
470
471 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
472 EBX from EAX = 1. Handle EAX = 11.
473
474 2009-08-07 Andreas Schwab <schwab@redhat.com>
475
476 * Makefile (TAGS): Use separate sed -e expressions to avoid \
477 inside ''.
478
479 2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
480
481 * sysdeps/i386/i686/multiarch/strcspn.S: Add comments for no
482 hidden IFUNC functions.
483 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
484
485 * sysdeps/i386/i686/multiarch/strlen.S: New file.
486
487 * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
488 (sysdep_routines): Add strcspn-c, strpbrk-c, strspn-c, strstr-c, and
489 strcasestr-c.
490 (CFLAGS-strcspn-c.c): Define.
491 (CFLAGS-strpbrk-c.c): Define.
492 (CFLAGS-strspn-c.c): Define.
493 (CFLAGS-strstr.c): Define.
494 (CFLAGS-strcasestr.c): Define.
495 * sysdeps/i386/i686/multiarch/strcspn-c.c: New file.
496 * sysdeps/i386/i686/multiarch/strcspn.S: New file.
497 * sysdeps/i386/i686/multiarch/strpbrk-c.c: New file.
498 * sysdeps/i386/i686/multiarch/strpbrk.S: New file.
499 * sysdeps/i386/i686/multiarch/strspn-c.c: New file.
500 * sysdeps/i386/i686/multiarch/strspn.S: New file.
501 * sysdeps/i386/i686/multiarch/strstr-c.c: New file.
502 * sysdeps/i386/i686/multiarch/strstr.c: New file.
503 * sysdeps/i386/i686/multiarch/strcasestr-c.c: New file.
504 * sysdeps/i386/i686/multiarch/strcasestr.c: New file.
505 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Use
506 -16L instead of 0xfffffffffffffff0L.
507 * sysdeps/x86_64/multiarch/strspn-c.c (__strspn_sse42): Likewise.
508
509 2009-08-02 Ulrich Drepper <drepper@redhat.com>
510
511 * sysdeps/i386/configure.in: Add test for <cpuid.h>.
512
513 2009-07-31 Ulrich Drepper <drepper@redhat.com>
514
515 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Yet
516 another rewrite. Much smaller and faster.
517 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
518
519 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (longjmp_msg): Get
520 ss_flags from the correct location.
521
522 2009-07-31 H.J. Lu <hongjiu.lu@intel.com>
523
524 * sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.
525 * sysdeps/i386/i686/cacheinfo.c: New file.
526 * sysdeps/i386/i686/multiarch/Makefile: New file.
527 * sysdeps/i386/i686/multiarch/ifunc-defines.sym: New file.
528 * sysdeps/i386/i686/multiarch/init-arch.c: New file.
529 * sysdeps/i386/i686/multiarch/init-arch.h: New file.
530 * sysdeps/i386/i686/multiarch/sched_cpucount.c: New file.
531 * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: New file.
532 * sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
533 (__cpuid_count): New. Provide the default.
534 (__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not defined.
535 (__x86_64_preferred_memory_instruction): Define only if
536 DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
537 (intel_check_word): Use __cpuid.
538 (handle_intel): Likewise.
539 (handle_amd): Likewise.
540 (__cache_sysconf): Likewise.
541 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
542 (__cache_sysconf): Likewise.
543 (init_cacheinfo): Updated. Use __cpuid and __cpuid_count.
544 * sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
545 (get_common_indeces): Use __cpuid.
546 (__init_cpu_features): Likewise. Disable SSSE3 on Atom only
547 if ENABLE_SSSE3_ON_ATOM is not defined.
548 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): Define.
549 * sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
550 popcnt instead of popcntq.
551
552 2009-07-31 Jakub Jelinek <jakub@redhat.com>
553
554 * malloc/Makefile (CFLAGS-obstack.c): Add $(uses-callbacks).
555
556 2009-07-30 Ulrich Drepper <drepper@redhat.com>
557
558 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: New file.
559 * sysdeps/i386/____longjmp_chk.S: Remove all code. This is now a file
560 which always causes a compile error.
561
562 * sysdeps/i386/__longjmp.S: Remove bound-checking pointer support.
563
564 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: New file. Content
565 comes from...
566 * sysdeps/x86_64/____longjmp_chk.S: ...here. This is now a file
567 which always causes a compile error.
568
569 * debug/Makefile (tests): Add tst-longjmp_chk2.
570 * debug/tst-longjmp_chk2.c: New file.
571
572 * sysdeps/x86_64/__longjmp.S: Remove CHECK_RSP handling. Fix CFI.
573 Remove incorrect use of BP_SYM.
574 * sysdeps/x86_64/____longjmp_chk.S: Rewrite. Complete implementation
575 here now since it is more complex than just a simple check.
576
577 * sysdeps/ia64/backtrace.c (backtrace_helper): Stop backtrace when
578 we make no more progress.
579
580 2009-07-29 Ulrich Drepper <drepper@redhat.com>
581
582 * math/s_fma.c: Don't define alias if __fma is a macro.
583 * math/s_fmaf.c: Likewise.
584 * sysdeps/x86_64/multiarch/s_fma.c: New file.
585 * sysdeps/x86_64/multiarch/s_fmaf.c: New file.
586 Partially based on a patch by H.J. Lu <hongjiu.lu@intel.com>.
587
588 * sysdeps/x86_64/multiarch/init-arch.h (__get_cpu_features): Declare.
589 (HAS_POPCOUNT, HAS_SSE4_2): Add variants which work outside libc.
590 New macro HAS_FMA.
591 * sysdeps/x86_64/multiarch/init-arch.c (__get_cpu_features): New
592 function.
593 * include/libc-symbols.h (libm_ifunc): Define.
594 * sysdeps/x86_64/multiarch/Versions: New file.
595
596 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Improve CFI.
597
598 2009-07-28 H.J. Lu <hongjiu.lu@intel.com>
599
600 * sysdeps/x86_64/dl-trampoline.S: Properly restore AVX registers.
601
602 2009-07-29 Ulrich Drepper <drepper@redhat.com>
603
604 * elf/dl-runtime.c (_dl_fixup): Indicate before _dl_lookup_symbol_x
605 call that registers used in calling conventions need to be preserved.
606 * elf/dl-lookup.c (do_lookup_x): Use RTLD_*_FOREIGN_CALL macros
607 to preserve register content if necessary.
608 * sysdeps/x86_64/dl-trampoline.S (_dl_x86_64_save_sse): New function.
609 (_dl_x86_64_restore_sse): New function.
610 * sysdeps/x86_64/tst-xmmymm.sh: There is now one more function that
611 is allowed to modify xmm/ymm registers.
612
613 * stdio-common/scanf15.c: Undefine _LIBC. We want to test from an
614 application's perspective.
615 * stdio-common/scanf17.c: Likewise.
616
617 2009-07-28 Ulrich Drepper <drepper@redhat.com>
618
619 * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Don't add TCB
620 size to memsz.
621 (init_static_tls) [TLS_TCB_AT_TP]: Add it to GL(dl_tls_static_size)
622 here.
623 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Compute freebytes in
624 two steps to catch bugs.
625
626 2009-07-27 Ulrich Drepper <drepper@redhat.com>
627
628 * sysdeps/x86_64/tst-xmmymm.sh: Refine testing. The script now
629 determines which files are used in runtime lookups and only checks
630 those for SSE use.
631 * sysdeps/x86_64/rtld-memchr.c: Removed. Not needed with refined
632 testing.
633 * sysdeps/x86_64/rtld-rawmemchr.c: Removed.
634 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: Removed
635 * sysdeps/x86_64/Makefile: Emit warning that tst-xmmymm.sh might
636 take a while.
637
638 * elf/dl-open.c: Move _dl_scope_free to...
639 * elf/dl-scope.c: ...here. New file.
640 * elf/Makefile (dl-routines): Add scope.
641
642 * resolv/resolv.h (RES_USE_DNSSEC): Define.
643 * resolv/res_debug.c (p_option): Handle RES_USE_EDNS0 and
644 RES_USE_DNSSEC.
645 * resolv/res_mkquery.c (__res_nopt): Set flags for RES_USE_DNSSEC.
646 * resolv/res_query.c (__libc_res_nquery): Handle RES_USE_DNSSEC in
647 all the places we handled RES_USE_EDNS0 only before.
648 Patch by Adam Tkac <atkac@redhat.com>.
649
650 2009-07-27 Jakub Jelinek <jakub@redhat.com>
651
652 * elf/dl-lookup.c (do_lookup_x): Fix check for table more than
653 3/4 full. Pass size + 1 rather than size to _dl_higher_prime_number.
654 Update size when reallocating.
655
656 2009-07-26 Ulrich Drepper <drepper@redhat.com>
657
658 * sysdeps/x86_64/tst-xmmymm.sh: New file. Check whether any of the
659 functions used in ld.so modify xmm/ymm registers.
660 * sysdeps/x86_64/Makefile: Hook new test up.
661 * sysdeps/x86_64/rtld-memchr.c: New file.
662 * sysdeps/x86_64/rtld-memcmp.c: New file.
663 * sysdeps/x86_64/rtld-rawmemchr.c: New file.
664 * sysdeps/x86_64/rtld-strchr.S: New file.
665 * sysdeps/x86_64/rtld-strlen.S: New file.
666 * sysdeps/x86_64/multiarch/rtld-rawmemchr.c: New file.
667 * sysdeps/x86_64/multiarch/rtld-strlen.S: New file.
668
669 2009-07-26 H.J. Lu <hongjiu.lu@intel.com>
670
671 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
672 strncmp-c.
673 * sysdeps/x86_64/multiarch/strcmp.S (aftertail): Removed.
674 (exit): Likewise.
675 (Byte1): Likewise.
676 (Byte2): Likewise.
677 (Byte3): Likewise.
678 (Byte4): Likewise.
679 (Byte5): Likewise.
680 (Byte6): Likewise.
681 (next_8_bytes): Likewise.
682 (Byte0): Remove commented out codes.
683 (unaligned_table): Align jump table at 8 bytes.
684 Add _sse4_2 to all labels. Always include "../strcmp.S".
685 * sysdeps/x86_64/multiarch/strncmp-c.c: Removed.
686 * sysdeps/x86_64/strcmp.S: Add SSE2 support.
687 * sysdeps/x86_64/strncmp.S: New file.
688
689 2009-07-26 Ulrich Drepper <drepper@redhat.com>
690
691 [BZ #10422]
692 * sysdeps/unix/sysv/linux/eventfd.c: Add compatibility for old
693 kernels, dropped when eventfd2 support was added.
694 * sysdeps/unix/sysv/linux/signalfd.c: Add compatibility for old
695 kernels, dropped when signalfd4 support was added.
696 * sysdeps/unix/sysv/linux/kernel-features.h: More CLOEXEC syscalls
697 added, name them.
698
699 [BZ #10452]
700 * resolv/res_send.c (send_dg): Pass full SERVFAIL, NOTIMP, REFUSED
701 replies up.
702
703 * elf/elf.h: Define NT_GNU_GOLD_VERSION.
704
705 2009-07-25 Ulrich Drepper <drepper@redhat.com>
706
707 * sysdeps/x86_64/multiarch/strcmp.S: Some more optimizations for
708 modern processor versions. Patch by H.J. Lu <hongjiu.lu@intel.com>.
709
710 [BZ #10448]
711 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
712 callback we must touch the status to avoid using stale value.
713
714 * sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
715 compiled in.
716
717 2009-07-24 Ulrich Drepper <drepper@redhat.com>
718
719 * sysdeps/unix/sysv/linux/configure.in: Don't automatically include
720 /lib/modules/* headers anymore. We have sane headers in the standard
721 place now.
722
723 2009-06-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
724
725 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "hpage",
726 "etf3enh" and "highgprs" added.
727 (_dl_s390_platforms): "z10" added.
728 * sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT, _DL_PLATFORMS_COUNT):
729 Increased for the new entries.
730 (HWCAP enum): HWCAP_S390_HPAGE, HWCAP_S390_ETF3EH and
731 HWCAP_S390_HIGH_GPRS added.
732
733 * sysdeps/s390/s390-64/Makefile: Adjusted to build the new modules.
734 * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: New file.
735 * sysdeps/s390/s390-64/utf16-utf32-z9.c: New file.
736 * sysdeps/s390/s390-64/utf8-utf16-z9.c: New file.
737 * sysdeps/s390/s390-64/utf8-utf32-z9.c: New file.
738
739 2009-07-23 Ulrich Drepper <drepper@redhat.com>
740
741 * sysdeps/x86_64/cacheinfo.c [USE_MULTIARCH]: Rearrange code to
742 avoid additional cpuid instructions. Most of the information is
743 stored somewhere.
744
745 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Add more
746 cache descriptors.
747 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Likewise.
748
749 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Reset
750 SSSE3 bit for Atoms.
751 * sysdeps/x86_64/multiarch/strcpy.S: New need to perform Atom test
752 here anymore.
753
754 * posix/tst-rfc3484.c (do_test): Initialize entire sockaddr_in
755 structure before copying it to avoid warning.
756 * posix/tst-rfc3484-2.c (do_test): Likewise.
757 * posix/tst-rfc3484-3.c (do_test): Likewise.
758
759 [BZ #10416]
760 * include/unistd.h: Make header file suitable for C++ test cases.
761 Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
762
763 * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
764 stack alignment in the exit code.
765
766 * elf/dl-lookup.c (dl_lookup_x): The hashval for unique symbol can
767 potentially be zero.
768
769 * elf/tst-unique1.c: Extend test to check for unloading DSO with
770 unique symbol definition.
771 Patch by Jakub Jelinek.
772 * elf/dl-lookup.c (do_lookup_x): When entering a new unique symbol,
773 make sure the object with the definition cannot be unloaded. Adjust
774 a few types.
775 * sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
776 the unique symbol hash table should not be const.
777
778 2009-07-21 Ulrich Drepper <drepper@redhat.com>
779
780 * sysdeps/x86_64/multiarch/strstr.c: Minor cleanups. Remove
781 unnecesary variables. Comment fixes.
782
783 2009-07-20 Ulrich Drepper <drepper@redhat.com>
784
785 * sysdeps/x86_64/multiarch/strstr.c [USE_AS_STRCASESTR] (STRSTR_SSE42):
786 Use NONASCII_CASE information provided by the locale to determine
787 whether optimized string load function can be used. Minor cleanups.
788
789 2009-07-20 H.J. Lu <hongjiu.lu@intel.com>
790
791 * string/strcasestr.c (STRCASESTR): New macro.
792 (__strcasestr): Renamed to ..
793 (STRCASESTR): ...this.
794 * string/strstr.c (STRSTR): New macro.
795 (strstr): Renamed to ..
796 (STRSTR): ...this.
797 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
798 strstr-c strcasestr-c
799 (CFLAGS-strstr.c): New.
800 (CFLAGS-strcasestr.c): Likewise.
801 * sysdeps/x86_64/multiarch/strcasestr-c.c: New file.
802 * sysdeps/x86_64/multiarch/strcasestr.c: New file.
803 * sysdeps/x86_64/multiarch/strstr-c.c: New file.
804 * sysdeps/x86_64/multiarch/strstr.c: New file.
805
806 2009-07-20 Ulrich Drepper <drepper@redhat.com>
807
808 * locale/localeinfo.h (LIMAGIC): Update value for LC_CTYPE.
809 * locale/langinfo.h: Define _NL_CTYPE_NONASCII_CASE.
810 * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializer for
811 _NL_CTYPE_NONASCII_CASE.
812 * locale/programs/ld-ctype.c (locale_ctype_t): Add nonascii_case
813 field.
814 (ctype_finish): Check whether there are any 8-bit characters outside
815 the range ASCII has or whether the mapping isn't the same as for
816 ASCII (±0x20). Set nonascii_case appropriately.
817 (ctype_output): Add output handler for nonascii_case.
818
819 2009-07-17 Ulrich Drepper <drepper@redhat.com>
820
821 * sysdeps/generic/sysdep.h: Define cfi_personality, cfi_lsda,
822 CFI_PERSONALITY, CFI_LSDA, and DW_EH_PE_* constants.
823
824 2009-07-16 Ulrich Drepper <drepper@redhat.com>
825
826 [BZ #10360]
827 * resolv/res-mkquery.c (__res_nopt): If anslen is > 0xffff store
828 0xffff in the EDNS0 record.
829
830 2009-07-16 Ulrich Drepper <drepper@redhat.com>
831
832 * nscd/cache.c (cache_add): Use atomic_compare_and_exchange_bool_rel
833 instead of atomic_compare_and_exchange_bool_acq to ensure pointer
834 is written before the list head update.
835 Patch by Andreas Schwab <aschwab@redhat.com>.
836
837 2009-07-16 Ulrich Drepper <drepper@redhat.com>
838 Jakub Jelinek <jakub@redhat.com>
839
840 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Make check for
841 corruption thread-safe.
842
843 2009-07-13 Jakub Jelinek <jakub@redhat.com>
844
845 * include/atomic.h (catomic_compare_and_exchange_val_rel): If arch
846 overrides atomic_compare_and_exchange_val_rel, define to
847 atomic_compare_and_exchange_val_rel by default, otherwise default
848 to catomic_compare_and_exchange_val_acq.
849 (catomic_compare_and_exchange_bool_rel): If arch overrides
850 atomic_compare_and_exchange_bool_rel, define to
851 atomic_compare_and_exchange_bool_rel by default.
852 * malloc/malloc.c (_int_free): Revert 2009-07-02 change.
853 Use catomic_compare_and_exchange_val_rel instead of
854 catomic_compare_and_exchange_val_acq.
855
856 2009-07-16 Ulrich Drepper <drepper@redhat.com>
857
858 * sysdeps/generic/ldsodefs.h: Add prototype for
859 _dl_higher_prime_number.
860 * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
861
862 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
863 restoring of ymm registers a bit.
864
865 2009-07-15 H.J. Lu <hongjiu.lu@intel.com>
866
867 * sysdeps/x86_64/memcmp.S: New file.
868
869 2009-07-15 Ulrich Drepper <drepper@redhat.com>
870
871 * sysdeps/x86-64/dl-trampoline.h: Remove after integrating code into...
872 * sysdeps/x86-64/dl-trampoline.S: ...here. Rewrite to avoid function
873 pointers in writable memory.
874
875 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
876
877 * config.h.in: Add HAVE_AVX_SUPPORT entry.
878 * config.make.in: Add config-cflags-avx entry.
879 * configure.in: Substitute libc_cv_cc_avx.
880 * elf/Makefile: Add rules to build and run tst-audit4 and tst-audit5.
881 * elf/tst-audit4.c: New file.
882 * elf/tst-audit5.c: New file.
883 * elf/tst-auditmod4a.c: New file.
884 * elf/tst-auditmod4b.c: New file.
885 * elf/tst-auditmod5a.c: New file.
886 * elf/tst-auditmod5b.c: New file.
887 * sysdeps/x86_64/Makefile (gen-as-const-headers): Add
888 link-defines.sym.
889 * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): New.
890 (La_x86_64_vector): Likewise.
891 (La_x86_64_regs): Append lr_vector.
892 (La_x86_64_retval): Append lr_vector0/lrv_vector1.
893 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Move
894 saving and restoring SSE registers to ...
895 * sysdeps/x86_64/dl-trampoline.h: This. New file.
896 * sysdeps/x86_64/dl-trampoline.S: Include <config.h> and
897 <link-defines.h>.
898 (_dl_runtime_profile): Use LR_SIZE to allocate space for
899 La_x86_64_regs. Allocate extra space and jump to memory at
900 save_and_restore_vector if HAVE_AVX_SUPPORT is defined.
901 (save_and_restore_vector_sse): New.
902 (save_and_restore_vector_avx): Likewise.
903 (check_avx): Likewise.
904 (save_and_restore_vector): Likewise.
905 * sysdeps/x86_64/elf/configure.in: Set libc_cv_cc_avx and
906 HAVE_AVX_SUPPORT.
907 * sysdeps/x86_64/link-defines.sym: New file.
908
909 2009-07-10 Ulrich Drepper <drepper@redhat.com>
910
911 * elf/do-lookup.h: Removed after folding content into...
912 * elf/dl-lookup.c: ...here.
913
914 * sysdeps/unix/sysv/linux/sys/epoll.h: Fix comment.
915
916 2009-07-09 Ulrich Drepper <drepper@redhat.com>
917
918 * configure.in: Check for gnu_unique_symbol symbol type.
919 * config.h.in: Add HAVE_ASM_UNIQUE_OBJECT entry.
920 * elf/do-lookup.h (do_lookup_x): Take new parameter with link map of
921 the undefined symbol. Handle STB_GNU_UNIQUE binding of found symbol.
922 * elf/dl-lookup.c (_dl_lookup_symbol_x): Adjust callers for do_lookup_x
923 change.
924 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add definitions for
925 unique symbol table.
926 * elf/rtld.c (rtld_global): Initialize lock of unique symbol hash table
927 for first namespace.
928 * elf/dl-open.c (_dl_open): For new namespace, initialize lock for
929 unique symbol hash table.
930 * elf/Makefile: Add rules to build and run tst-unique1 and tst-unique2.
931 * elf/tst-unique1.c: New file.
932 * elf/tst-unique1mod1.c: New file.
933 * elf/tst-unique1mod2.c: New file.
934 * elf/tst-unique2.c: New file.
935 * elf/tst-unique2mod1.c: New file.
936 * elf/tst-unique2mod2.c: New file.
937
938 2009-07-07 Ulrich Drepper <drepper@redhat.com>
939
940 * elf/elf.h (STB_GNU_UNIQUE): Define.
941
942 * elf/dl-misc.c (_dl_higher_prime_number): New function. Moved here
943 from...
944 * include/inline-hashtab.h: ...here.
945 (htab_expand): Adjust for renamed function. Correct memory handling.
946
947 2009-07-06 Ulrich Drepper <drepper@redhat.com>
948
949 * elf/do-lookup.h (do_lookup_x): Optimize test for valid symbol types.
950
951 2009-07-03 Andreas Schwab <aschwab@redhat.com>
952
953 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_ARCH_2_06): Fix value.
954 (PPC_FEATURE_HAS_VSX): Likewise.
955
956 2009-07-03 Ulrich Drepper <drepper@redhat.com>
957
958 * sysdeps/x86_64/multiarch/strcspn-c.c: Minor cleanups.
959 * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
960
961 * sysdeps/x86_64/multiarch/strcmp.S: Make sure functions are all
962 aligned to 16 byte boundaries.
963 * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
964 * sysdeps/x86_64/multiarch/strlen.S: Likewise.
965 * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
966
967 2009-07-02 H.J. Lu <hongjiu.lu@intel.com>
968
969 * config.h.in (HAVE_SSE4_SUPPORT): New macro.
970 * config.make.in (config-cflags-sse4): New variable.
971 * configure.in: Substitute libc_cv_cc_sse4.
972 * sysdeps/i386/configure.in: Set libc_cv_cc_sse4 and
973 HAVE_SSE4_SUPPORT.
974 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
975 strcspn-c, strpbrk-c, strspn-c for string if gcc supports SSE4.
976 * sysdeps/x86_64/multiarch/strcspn-c.c: New file.
977 * sysdeps/x86_64/multiarch/strcspn.S: New file.
978 * sysdeps/x86_64/multiarch/strpbrk-c.c: New file.
979 * sysdeps/x86_64/multiarch/strpbrk.S: New file.
980 * sysdeps/x86_64/multiarch/strspn-c.c: New file.
981 * sysdeps/x86_64/multiarch/strspn.S: New file.
982
983 2009-06-30 H.J. Lu <hongjiu.lu@intel.com>
984
985 * elf/Makefile (distribute): Remove tst-audit.sh. Add
986 tst-audit2.c, tst-audit3.c, tst-auditmod3a.c, tst-auditmod3b.c.
987 (tests): Add tst-audit3 for x86_64.
988 (modules-names): Add tst-auditmod3a, tst-auditmod3b.
989 ($(objpfx)tst-audit3): Define.
990 ($(objpfx)tst-audit3.out): Define.
991 (tst-audit3-ENV): Define.
992 * elf/tst-audit3.c: New file.
993 * elf/tst-auditmod3a.c: New file.
994 * elf/tst-auditmod3b.c: New file.
995 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
996 and restore xmm6.
997
998 * string/stpncpy.c (STPNCPY): New. Defined if not defined.
999 (__stpncpy): Renamed to ...
1000 (STPNCPY): This.
1001 (stpncpy): Create alias only if STPNCPY is not defined.
1002 * string/strncpy.c (STRNCPY): New. Defined to strncpy if not
1003 defined.
1004 (strncpy): Renamed to ...
1005 (STRNCPY): This.
1006 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1007 stpncpy-c strncpy-c for string.
1008 * sysdeps/x86_64/multiarch/stpcpy.S: New file.
1009 * sysdeps/x86_64/multiarch/stpncpy-c.c: New file.
1010 * sysdeps/x86_64/multiarch/stpncpy.S: New file.
1011 * sysdeps/x86_64/multiarch/strcpy.S: New file.
1012 * sysdeps/x86_64/multiarch/strncpy-c.c: New file.
1013 * sysdeps/x86_64/multiarch/strncpy.S: New file.
1014
1015 2009-07-02 Ulrich Drepper <drepper@redhat.com>
1016
1017 * malloc/malloc.c [ATOMIC_FASTBINS] (_int_free): Add full barrier when
1018 adding to fast bin list.
1019
1020 2009-07-01 Ulrich Drepper <drepper@redhat.com>
1021
1022 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyaddr_r): Don't use
1023 inet_makeaddr. This worked only with class-based networks.
1024 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
1025 Likewise.
1026
1027 * nss/nss_files/files-network.c (netbyaddr): If type is AF_UNSPEC,
1028 recognize all types.
1029 * nss/getent.c (networks_keys): Pass AF_UNSPEC instead of AF_UNIX
1030 to getnetbyaddr. Fix network parameter to getnetbyaddr. It must
1031 be in host byte order.
1032
1033 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
1034
1035 * sysdeps/x86_64/multiarch/ifunc-defines.sym (FAMILIY_OFFSET): Define.
1036 (MODEL_OFFSET): Define.
1037 * sysdeps/x86_64/multiarch/init-arch.h (cpu_features): Add
1038 family and model.
1039 * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Break
1040 out common code into new function get_common_indeces. Determine
1041 extended family and model for Intel processors.
1042
1043 2009-06-26 Ulrich Drepper <drepper@redhat.com>
1044
1045 * resolv/resolv.h: Define RES_SNGLKUPREOP.
1046 * resolv/res_init.c (res_setoptions): Recognize single-request-reopen
1047 option.
1048 * resolv/res_send.c (reopen): New function. Broken out of...
1049 (send_dg): ... here. Recognize RES_SNGLKUPREOP. Implement second
1050 fallback mechanism. If single-request fails switch to
1051 single-request-reopen mode which opens a new socket for the second
1052 request.
1053
1054 2009-06-25 Andreas Schwab <aschwab@redhat.com>
1055
1056 * sysdeps/powerpc/powerpc32/____longjmp_chk.S (LOAD_ARG): Define.
1057 (CHECK_SP): Use it.
1058
1059 2009-06-24 Andreas Schwab <aschwab@redhat.com>
1060
1061 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Fix cfa offset
1062 for saved registers.
1063 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1064 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1065 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1066
1067 2009-06-23 Andreas Schwab <aschwab@redhat.com>
1068
1069 * time/tzfile.c (__tzfile_read): Don't use an empty TZ string.
1070
1071 2009-06-22 Ulrich Drepper <drepper@redhat.com>
1072
1073 * po/id.po: Update from translation team.
1074
1075 * po/bg.po: Update from translation team.
1076
1077 2009-06-22 H.J. Lu <hongjiu.lu@intel.com>
1078
1079 * string/strncmp.c (STRNCMP): New. Defined to strncmp if not
1080 defined.
1081 (strncmp): Renamed to STRNCMP.
1082 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1083 strncmp-c for string.
1084 * sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE4_2): Define.
1085 * sysdeps/x86_64/multiarch/strcmp.S: New file.
1086 * sysdeps/x86_64/multiarch/strncmp.S: New file.
1087 * sysdeps/x86_64/multiarch/strncmp-c.c: New file.
1088
1089 2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
1090
1091 * elf/Makefile (distribute): Add ifuncmain1staticpie.c,
1092 ifuncmain5.c, ifuncmain5pic.c, ifuncmain5picstatic.c,
1093 ifuncmain5pie.c, ifuncmain5static.c, ifuncmain5staticpic.c,
1094 ifuncdep5.c, ifuncdep5pic.c, ifuncmod5.c, ifuncmain7.c,
1095 ifuncmain7pic.c, ifuncmain7picstatic.c, ifuncmain7pie.c, and
1096 ifuncmain7static.c.
1097 (tests-static): Add ifuncmain5static, ifuncmain5picstatic,
1098 ifuncmain7static, and ifuncmain7picstatic.
1099 (tests): Also depend on $(objpfx)ifuncmain1staticpie.out,
1100 $(objpfx)ifuncmain5pie.out, $(objpfx)ifuncmain6pie.out, and
1101 $(objpfx)ifuncmain7pie.out.
1102 (modules-names): Add ifuncmod5 ifuncmod6
1103 (ifuncmod5.so-no-z-defs): Define.
1104 (ifuncmod6.so-no-z-defs): Define.
1105 (CFLAGS-ifuncmain5pic.c): Define.
1106 (CFLAGS-ifuncmain5picstatic.c): Define.
1107 (CFLAGS-ifuncmain5staticpic.c): Define.
1108 (CFLAGS-ifuncdep5pic.c): Define.
1109 (CFLAGS-ifuncmain7pic.c): Define.
1110 (CFLAGS-ifuncmain7picstatic.c): Define.
1111 (CFLAGS-ifuncmain1staticpie.c): Define.
1112 (CFLAGS-ifuncmain5pie.c): Define.
1113 (CFLAGS-ifuncmain6pie.c): Define.
1114 (CFLAGS-ifuncmain7pie.c): Define.
1115 ($(objpfx)ifuncmain1staticpie.out): Define.
1116 ($(objpfx)ifuncmain1staticpie): Define.
1117 ($(objpfx)ifuncmain5pie.out): Define.
1118 ($(objpfx)ifuncmain5pie): Define.
1119 ($(objpfx)ifuncmain6pie.out): Define.
1120 ($(objpfx)ifuncmain6pie): Define.
1121 ($(objpfx)ifuncmain5): Define.
1122 ($(objpfx)ifuncmain5pic): Define.
1123 ($(objpfx)ifuncmain5static): Define.
1124 ($(objpfx)ifuncmain5staticpic): Define.
1125 ($(objpfx)ifuncmain5picstatic): Define.
1126 (generated): Add ifuncmain1staticpie, ifuncmain1staticpie.out,
1127 ifuncmain5pie, ifuncmain5pie.out, ifuncmain6pie, and
1128 ifuncmain6pie.out.
1129 * elf/b/elf/ifuncmain1staticpie.c: New file.
1130 * elf/ifuncdep5.c: New file.
1131 * elf/ifuncdep5pic.c: New file.
1132 * elf/ifuncmain5.c: New file.
1133 * elf/ifuncmain5pic.c: New file.
1134 * elf/ifuncmain5picstatic.c: New file.
1135 * elf/ifuncmain5pie.c: New file.
1136 * elf/ifuncmain5static.c: New file.
1137 * elf/ifuncmain5staticpic.c: New file.
1138 * elf/ifuncmain6pie.c: New file.
1139 * elf/ifuncmain7.c: New file.
1140 * elf/ifuncmain7pic.c: New file.
1141 * elf/ifuncmain7picstatic.c: New file.
1142 * elf/ifuncmain7pie.c: New file.
1143 * elf/ifuncmain7static.c: New file.
1144 * elf/ifuncmod5.c: New file.
1145 * elf/ifuncmod6.c: New file.
1146
1147 2009-06-20 Ulrich Drepper <drepper@redhat.com>
1148
1149 [BZ #10085]
1150 * nis/nss_compat/compat-initgroups.c (nss_setgrent): New variable.
1151 (nss_endgrent): New variable.
1152 (struct ent_t): Add need_endgrent and skip_initgroups_dyn
1153 fields. Change type of files to bool and adjust all users.
1154 (init_nss_interface): Initialize nss_setgrent and nss_endgrent.
1155 (internal_endgrent): Call nss_endgrent if necessary.
1156 (add_group): New function. Broken out of...
1157 (check_and_add_group): ...here.
1158 (getgrent_next_nss): Remove test that any callback is available.
1159 Use skip_initgroups_dyn to determine whether to use initgroups_dyn
1160 callback. If there is no blacklist we can trust the results returned
1161 by the initgroups_dyn callback. In case there is a callback and we
1162 find a group entry for the group ID but it doesn't contain the
1163 correct member, switch to the slow mode and use getgrent_r.
1164 (internal_getgrent_r): When we see a +: entry, determine whether
1165 there is any callback and which we can use the initgroups_dyn
1166 callback.
1167
1168 2009-06-18 Ulrich Drepper <drepper@redhat.com>
1169
1170 * malloc/malloc.c (_int_malloc): Add some consistency checks.
1171 (_int_free): Likewise.
1172
1173 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_IEEE802154 and
1174 AF_IEEE802154.
1175 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
1176 * sysdeps/unix/sysv/linux/net/if_arp.h: Define ARPHRD_IEEE802154
1177 and ARPHRD_IEEE802154_PHY.
1178
1179 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Add missing definitions
1180 relative to generic Linux version.
1181
1182 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
1183
1184 * elf/Makefile ($(objpfx)ifuncmain1pie): Use $(+link-pie).
1185 ($(objpfx)ifuncmain1vispie): Likewise.
1186
1187 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1188
1189 * login/Makefile: Build pt_chown as PIE.
1190
1191 2009-06-15 Andreas Schwab <aschwab@redhat.com>
1192
1193 * debug/xtrace.sh (do_help): Don't treat bug reporting message as
1194 a format string.
1195 * elf/sln.c (usage): Likewise.
1196 * malloc/memusage.sh (do_help): Likewise.
1197 * nss/getent.c (more_help): Likewise.
1198 * posix/getconf.c (main): Likewise.
1199 * sunrpc/rpcinfo.c (usage): Likewise.
1200 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1201
1202 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1203
1204 * login/programs/pt_chown.c: Use libcap to drop privileges other than
1205 those needed.
1206 * login/Makefile: If necessary link pt_chown with -lcap.
1207 * sysdeps/generic/pty-private.h: Define FAIL_ENOMEM.
1208 * sysdeps/unix/grantpt.c: Handle FAIL_ENOMEM.
1209
1210 2009-06-16 Jakub Jelinek <jakub@redhat.com>
1211
1212 * sysdeps/x86_64/memchr.S (memchr): Use unsigned instead of signed
1213 comparisons.
1214 * string/test-memchr.c (do_random_tests): Test very large lengths
1215 as well.
1216
1217 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1218
1219 * Makeconfig (+link-pie): Define.
1220 (+prectorS): Define.
1221 (+postctorS): Define.
1222 * elf/Makefile ($(objpfx)tst-pie1): Use $(+link-pie).
1223 * nscd/Makefile ($(objpfx)nscd): Likewise.
1224
1225 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
1226
1227 [BZ #10107]
1228 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
1229 with cmplwi.
1230 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1231
1232 2009-06-16 Ulrich Drepper <drepper@redhat.com>
1233
1234 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
1235 into ...
1236 * sysdeps/unix/grantpt.c: ...here.
1237
1238 2009-06-15 Ulrich Drepper <drepper@redhat.com>
1239
1240 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
1241 chmod if it is necessary.
1242
1243 [BZ #10166]
1244 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
1245 when the slave device is in devpts or devfs.
1246
1247 [BZ #10183]
1248 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
1249
1250 [BZ #10195]
1251 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
1252 of nd_opt_home_agent_info_preference to uint16_t.
1253 Patch by Arnaud Ebalard <arno@natisbad.org>.
1254
1255 [BZ #10207]
1256 * nss/getent.c: Add support for printing gshadow data.
1257
1258 [BZ #10203]
1259 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
1260 not just the currently used one and those which follow.
1261 Patch by Joe Landers <jlanders@vmware.com>.
1262
1263 [BZ #10196]
1264 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
1265 * libio/Makefile: Run tst-fgetwc with necessary envvar.
1266 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
1267
1268 [BZ #10217]
1269 * stdlib/abort.c: Define variable __abort_msg.
1270 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
1271 * include/stdlib.h: Declare __abort_msg.
1272 * assert/assert-perr.c: Don't free buffer for message immediately.
1273 Store atomically in __abort_msg and free old buffer if necessary.
1274 * assert/assert.c: Likewise.
1275 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
1276 store pointer in __abort_msg, and possibly free old string.
1277 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
1278
1279 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
1280
1281 [BZ #10211]
1282 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
1283 handle leap seconds if they are available.
1284 Patch by Akinori Hattori <hattya@gentoo.org>.
1285
1286 * timezone/tzselect.ksh: Update from tzcode2009i.
1287 * timezone/zdump.c: Likewise.
1288 * timezone/zic.c: Likewise.
1289
1290 * timezone/africa: Update from tzdata2009i.
1291 * timezone/antarctica: Likewise.
1292 * timezone/asia: Likewise.
1293 * timezone/australasia: Likewise.
1294 * timezone/backward: Likewise.
1295 * timezone/etcetera: Likewise.
1296 * timezone/europe: Likewise.
1297 * timezone/factory: Likewise.
1298 * timezone/iso3166.tab: Likewise.
1299 * timezone/leapseconds: Likewise.
1300 * timezone/northamerica: Likewise.
1301 * timezone/pacificnew: Likewise.
1302 * timezone/solar87: Likewise.
1303 * timezone/solar88: Likewise.
1304 * timezone/solar89: Likewise.
1305 * timezone/southamerica: Likewise.
1306 * timezone/systemv: Likewise.
1307 * timezone/yearistype: Likewise.
1308 * timezone/zone.tab: Likewise.
1309
1310 2009-06-15 Jakub Jelinek <jakub@redhat.com>
1311
1312 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
1313 STT_GNU_IFUNC symbol or in 8 into type_class.
1314
1315 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
1316 instead of Elf64_Addr.
1317
1318 2009-06-14 Ulrich Drepper <drepper@redhat.com>
1319
1320 * po/sv.po: Update from translation team.
1321
1322 [BZ #10229]
1323 * misc/sys/select.h (__NFDBITS): Expression should have type int.
1324 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
1325 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
1326 the C version.
1327
1328 2009-06-12 Ulrich Drepper <drepper@redhat.com>
1329
1330 * Versions.def: Add GLIBC_2.11 for libpthread.
1331
1332 2009-06-11 Ulrich Drepper <drepper@redhat.com>
1333
1334 * resolv/res_send.c (send_dg): Remember we switched to
1335 single-request mode.
1336
1337 2009-06-09 Ulrich Drepper <drepper@redhat.com>
1338
1339 * dlfcn/dlfcn.h: Remove comma at end of enum.
1340 Patch by J.H.M. Dassen <rdassen@redhat.com>.
1341
1342 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
1343 parsing mode string.
1344
1345 2009-06-05 Ulrich Drepper <drepper@redhat.com>
1346
1347 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
1348
1349 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
1350
1351 * sysdeps/x86_64/multiarch/strlen.S: New file.
1352 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
1353 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
1354 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
1355 content.
1356
1357 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
1358 is defined.
1359
1360 2009-06-04 Ulrich Drepper <drepper@redhat.com>
1361
1362 * sysdeps/x86_64/strlen.S: Minor optimizations.
1363
1364 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1365
1366 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
1367 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
1368 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
1369 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
1370 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
1371 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
1372 ifuncmain3.c, ifuncmod3.c,.
1373 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
1374 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
1375 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
1376 ifuncmain4picstatic.
1377 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
1378 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
1379 ifuncmain3, ifuncmain4.
1380 (tests): Depend on $(objpfx)ifuncmain1pie.out and
1381 $(objpfx)ifuncmain1vispie.out.
1382 (modules-names): Add ifuncmod1 ifuncmod3.
1383 (generated): Add ifuncmain1pie ifuncmain1pie.out
1384 ifuncmain1vispie ifuncmain1vispie.out.
1385 Define rules to build and run the tests.
1386 * elf/ifuncdep1.c: New file.
1387 * elf/ifuncdep1pic.c: New file.
1388 * elf/ifuncdep2.c: New file.
1389 * elf/ifuncdep2pic.c: New file.
1390 * elf/ifuncmain1.c: New file.
1391 * elf/ifuncmain1pic.c: New file.
1392 * elf/ifuncmain1picstatic.c: New file.
1393 * elf/ifuncmain1pie.c: New file.
1394 * elf/ifuncmain1static.c: New file.
1395 * elf/ifuncmain1staticpic.c: New file.
1396 * elf/ifuncmain1vis.c: New file..
1397 * elf/ifuncmain1vispic.c: New file..
1398 * elf/ifuncmain1vispie.c: New file.
1399 * elf/ifuncmain2.c: New file.
1400 * elf/ifuncmain2pic.c: New file.
1401 * elf/ifuncmain2picstatic.c: New file.
1402 * elf/ifuncmain2static.c: New file.
1403 * elf/ifuncmain3.c: New file.
1404 * elf/ifuncmain4.c: New file.
1405 * elf/ifuncmain4picstatic.c: New file.
1406 * elf/ifuncmain4static.c: New file.
1407 * elf/ifuncmod1.c: New file.
1408 * elf/ifuncmod3.c: New file.
1409
1410 2009-06-03 Ulrich Drepper <drepper@redhat.com>
1411
1412 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
1413
1414 2009-06-02 Ulrich Drepper <drepper@redhat.com>
1415
1416 [BZ #10221]
1417 * posix/Makefile (routines): Add execvpe.
1418 * posix/Versions: Export execvpe for GLIBC_2.11.
1419 * posix/execvp.c: Now only a wrapper. Move code to...
1420 * posix/execvpe.c: ...here. New file.
1421 * posix/unistd.h: Declare execvpe.
1422
1423 2009-06-01 Ulrich Drepper <drepper@redhat.com>
1424
1425 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
1426 for STT_GNU_IFUNC handling for efficiency.
1427 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1428
1429 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
1430 _exit.
1431 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
1432
1433 2009-05-31 Ulrich Drepper <drepper@redhat.com>
1434
1435 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
1436 for !SHARED.
1437
1438 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
1439
1440 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
1441 is not defined.
1442 (__rela_iplt_start): New declaration.
1443 (__rela_iplt_end): Likewise.
1444 (__rel_iplt_start): Likewise.
1445 (__rel_iplt_end): Likewise.
1446 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
1447 * elf/elf.h (R_386_IRELATIVE): New macro.
1448 (R_X86_64_IRELATIVE): New macro.
1449 (R_386_NUM): Updated.
1450 (R_X86_64_NUM): Likewise.
1451 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
1452 (libc_ifunc_hidden_def): New macro.
1453 * sysdeps/generic/dl-irel.h: New file.
1454 * sysdeps/i386/dl-irel.h: New file.
1455 * sysdeps/x86_64/dl-irel.h: New file.
1456 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
1457 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
1458 Handle R_386_IRELATIVE.
1459 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
1460 (elf_machine_lazy_rela): Likewise.
1461 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1462 R_X86_64_IRELATIVE.
1463 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
1464
1465 2009-05-31 Ulrich Drepper <drepper@redhat.com>
1466
1467 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
1468 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
1469 are no differences. If an architecture has bits in CPUID index 1
1470 meaning different things the values for the COMMON_CPUID_INDEX_1
1471 index must not be set.
1472 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
1473 (HAS_POPCOUNT): ...this. New macro.
1474 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
1475 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
1476 to set the value for Intel and AMD architectures.
1477 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
1478 INTEL_CPUID_INDEX_1.
1479 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
1480 change.
1481
1482 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
1483
1484 * configure.in: Move AC_CANONICAL_HOST before first use of $host
1485 and $build.
1486
1487 2009-05-29 Jakub Jelinek <jakub@redhat.com>
1488
1489 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
1490 (__expm1l): Set errno to ERANGE on overflow.
1491 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
1492 (__tanl): Set errno to EDOM for ±Inf.
1493 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
1494 (__cosl): Set errno to EDOM for ±Inf.
1495 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
1496 (__sinl): Set errno to EDOM for ±Inf.
1497
1498 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
1499 defined, use it.
1500 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
1501 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
1502 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
1503
1504 2009-05-29 Ulrich Drepper <drepper@redhat.com>
1505
1506 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
1507 code accessing it.
1508 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
1509
1510 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
1511
1512 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
1513 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
1514 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
1515 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
1516
1517 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
1518 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
1519 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
1520 defined.
1521 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1522 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1523
1524 2009-05-22 Jakub Jelinek <jakub@redhat.com>
1525
1526 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
1527 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
1528 is, either do nothing at all if __ASSUME_ACCEPT4, or
1529 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
1530 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
1531 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
1532 define.
1533 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
1534 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
1535 internal_accept4 in socket directory.
1536
1537 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
1538
1539 * sysdeps/ia64/configure.in: New file.
1540
1541 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
1542
1543 [BZ #10162]
1544 * sysdeps/ia64/memchr.S: Use speculative load.
1545
1546 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
1547 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
1548 use it.
1549
1550 * sysdeps/i386/__longjmp.S: Add .text.
1551 * sysdeps/x86_64/__longjmp.S: Likewise.
1552
1553 2009-05-21 Ulrich Drepper <drepper@redhat.com>
1554
1555 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1556 __ASSUME_ACCEPT4 for IA-64.
1557
1558 2009-05-21 Jakub Jelinek <jakub@redhat.com>
1559
1560 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
1561
1562 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
1563 (SOCKOP_accept4): Define.
1564
1565 2009-05-20 Ulrich Drepper <drepper@redhat.com>
1566
1567 Sun approved the change of the license.
1568 * sunrpc/auth_des.c: Replace license text.
1569 * sunrpc/auth_none.c: Likewise.
1570 * sunrpc/auth_unix.c: Likewise.
1571 * sunrpc/authdes_prot.c: Likewise.
1572 * sunrpc/authuxprot.c: Likewise.
1573 * sunrpc/bindrsvprt.c: Likewise.
1574 * sunrpc/clnt_gen.c: Likewise.
1575 * sunrpc/clnt_perr.c: Likewise.
1576 * sunrpc/clnt_raw.c: Likewise.
1577 * sunrpc/clnt_simp.c: Likewise.
1578 * sunrpc/clnt_tcp.c: Likewise.
1579 * sunrpc/clnt_udp.c: Likewise.
1580 * sunrpc/clnt_unix.c: Likewise.
1581 * sunrpc/des_crypt.c: Likewise.
1582 * sunrpc/des_soft.c: Likewise.
1583 * sunrpc/get_myaddr.c: Likewise.
1584 * sunrpc/getrpcport.c: Likewise.
1585 * sunrpc/key_call.c: Likewise.
1586 * sunrpc/key_prot.c: Likewise.
1587 * sunrpc/openchild.c: Likewise.
1588 * sunrpc/pm_getmaps.c: Likewise.
1589 * sunrpc/pm_getport.c: Likewise.
1590 * sunrpc/pmap_clnt.c: Likewise.
1591 * sunrpc/pmap_prot.c: Likewise.
1592 * sunrpc/pmap_prot2.c: Likewise.
1593 * sunrpc/pmap_rmt.c: Likewise.
1594 * sunrpc/rpc/auth.h: Likewise.
1595 * sunrpc/rpc/auth_unix.h: Likewise.
1596 * sunrpc/rpc/clnt.h: Likewise.
1597 * sunrpc/rpc/des_crypt.h: Likewise.
1598 * sunrpc/rpc/key_prot.h: Likewise.
1599 * sunrpc/rpc/netdb.h: Likewise.
1600 * sunrpc/rpc/pmap_clnt.h: Likewise.
1601 * sunrpc/rpc/pmap_prot.h: Likewise.
1602 * sunrpc/rpc/pmap_rmt.h: Likewise.
1603 * sunrpc/rpc/rpc.h: Likewise.
1604 * sunrpc/rpc/rpc_des.h: Likewise.
1605 * sunrpc/rpc/rpc_msg.h: Likewise.
1606 * sunrpc/rpc/svc.h: Likewise.
1607 * sunrpc/rpc/svc_auth.h: Likewise.
1608 * sunrpc/rpc/types.h: Likewise.
1609 * sunrpc/rpc/xdr.h: Likewise.
1610 * sunrpc/rpc_clntout.c: Likewise.
1611 * sunrpc/rpc_cmsg.c: Likewise.
1612 * sunrpc/rpc_common.c: Likewise.
1613 * sunrpc/rpc_cout.c: Likewise.
1614 * sunrpc/rpc_dtable.c: Likewise.
1615 * sunrpc/rpc_hout.c: Likewise.
1616 * sunrpc/rpc_main.c: Likewise.
1617 * sunrpc/rpc_parse.c: Likewise.
1618 * sunrpc/rpc_parse.h: Likewise.
1619 * sunrpc/rpc_prot.c: Likewise.
1620 * sunrpc/rpc_sample.c: Likewise.
1621 * sunrpc/rpc_scan.c: Likewise.
1622 * sunrpc/rpc_scan.h: Likewise.
1623 * sunrpc/rpc_svcout.c: Likewise.
1624 * sunrpc/rpc_tblout.c: Likewise.
1625 * sunrpc/rpc_util.c: Likewise.
1626 * sunrpc/rpc_util.h: Likewise.
1627 * sunrpc/rpcinfo.c: Likewise.
1628 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
1629 * sunrpc/rpcsvc/key_prot.x: Likewise.
1630 * sunrpc/rpcsvc/klm_prot.x: Likewise.
1631 * sunrpc/rpcsvc/mount.x: Likewise.
1632 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
1633 * sunrpc/rpcsvc/rex.x: Likewise.
1634 * sunrpc/rpcsvc/rstat.x: Likewise.
1635 * sunrpc/rpcsvc/rusers.x: Likewise.
1636 * sunrpc/rpcsvc/sm_inter.x: Likewise.
1637 * sunrpc/rpcsvc/spray.x: Likewise.
1638 * sunrpc/rpcsvc/yppasswd.x: Likewise.
1639 * sunrpc/rtime.c: Likewise.
1640 * sunrpc/svc.c: Likewise.
1641 * sunrpc/svc_auth.c: Likewise.
1642 * sunrpc/svc_authux.c: Likewise.
1643 * sunrpc/svc_raw.c: Likewise.
1644 * sunrpc/svc_run.c: Likewise.
1645 * sunrpc/svc_simple.c: Likewise.
1646 * sunrpc/svc_tcp.c: Likewise.
1647 * sunrpc/svc_udp.c: Likewise.
1648 * sunrpc/svc_unix.c: Likewise.
1649 * sunrpc/svcauth_des.c: Likewise.
1650 * sunrpc/xcrypt.c: Likewise.
1651 * sunrpc/xdr.c: Likewise.
1652 * sunrpc/xdr_array.c: Likewise.
1653 * sunrpc/xdr_float.c: Likewise.
1654 * sunrpc/xdr_mem.c: Likewise.
1655 * sunrpc/xdr_rec.c: Likewise.
1656 * sunrpc/xdr_ref.c: Likewise.
1657 * sunrpc/xdr_sizeof.c: Likewise.
1658 * sunrpc/xdr_stdio.c: Likewise.
1659
1660 * po/da.po: Update from translation team.
1661
1662 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1663
1664 * sysdeps/sh/____longjmp_chk.S: New file.
1665 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
1666 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1667
1668 2009-05-18 Jakub Jelinek <jakub@redhat.com>
1669 Ulrich Drepper <drepper@redhat.com>
1670
1671 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
1672 (__nscd_cache_search): Assume each entry in the
1673 hash chain needs one hashentry and half of datahead. Use
1674 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
1675
1676 2009-05-16 Ulrich Drepper <drepper@redhat.com>
1677
1678 * posix/sys/wait.h: Fix typos. Pretty printing.
1679 * stdlib/stdlib.h: Likewise. Correct comments.
1680
1681 [BZ #10159]
1682 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
1683
1684 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
1685 patch.
1686
1687 2009-05-15 Ulrich Drepper <drepper@redhat.com>
1688
1689 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
1690 Use it if we absolutely cannot reach any more correct list elements
1691 because that many do not fit into the currently mapped database.
1692
1693 2009-05-14 Jakub Jelinek <jakub@redhat.com>
1694
1695 * nscd/nscd_helper.c: Include stddef.h.
1696 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
1697 in a couple of places. Return NULL if trail is not less than
1698 datasize, don't consider dataheads with length smaller than
1699 offsetof (struct datahead, data) + datalen.
1700 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
1701 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
1702 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
1703 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1704 * nscd/nscd_getai.c (__nscd_getai): Likewise.
1705 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
1706 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
1707
1708 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
1709 Rename ...
1710 (fallocate64): ... to this.
1711 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
1712 Rename ...
1713 (fallocate64): ... to this.
1714 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
1715 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
1716 fallocate64@@GLIBC_2.10.
1717 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
1718 fallocate64@@GLIBC_2.11.
1719 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
1720 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
1721 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
1722 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
1723
1724 * nscd/selinux.c (nscd_avc_destroy): Removed.
1725 * nscd/selinux.h (nscd_avc_destroy): Likewise.
1726 * nscd/nscd.c (termination_handler): Don't call
1727 nscd_avc_destroy.
1728
1729 2009-05-12 Jakub Jelinek <jakub@redhat.com>
1730
1731 * include/atomic.h: Formatting.
1732 (catomic_compare_and_exchange_val_acq): Don't define if already
1733 defined by bits/atomic.h.
1734
1735 2009-05-15 Ulrich Drepper <drepper@redhat.com>
1736
1737 * math/libm-test.inc (expm1_test): Add test for range error.
1738
1739 * Versions.def: Add GLIBC_2.11 for libc.
1740 * debug/Makefile (routines): Add longjmp_chk.
1741 Add rules to build and run tst-longjmp_chk.
1742 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
1743 * debug/longjmp_chk.c: New file.
1744 * debug/tst-longjmp_chk.c: New file.
1745 * include/bits/setjmp2.: New file.
1746 * include/stdio.h: Mark __fortify_fail as internal_function.
1747 * setjmp/Makefile (headers): Add bits/setjmp2.h.
1748 * setjmp/bits/setjmp2.h: New file.
1749 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
1750 of the aliases.
1751 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
1752 defined.
1753 * sysdeps/i386/____longjmp_chk.S: New file.
1754 * sysdeps/x86_64/____longjmp_chk.S: New file.
1755 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
1756 * sysdeps/x86_64/__longjmp.S: Likewise.
1757
1758 * version.h: Bump for 2.11 development.
1759
1760 * elf/check-execstack.c: New file.
1761 * elf/Makefile: Add rules to build and run check-execstack.
1762
1763 2009-05-10 Ulrich Drepper <drepper@redhat.com>
1764
1765 * version.h (VERSION): Bump to 2.10.1.
1766
1767 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
1768 compatibility functions.
1769 * nss/getXXent_r.c: Likewise.
1770 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
1771 * gshadow/getsgnam_r.c: Likewise.
1772 * gshadow/Version: Remove duplicate entries.
1773
1774 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
1775 for recent processor.
1776 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
1777 Likewise.
1778
1779 2009-05-09 Ulrich Drepper <drepper@redhat.com>
1780
1781 * version.h (VERSION): Bump for 2.10 release.
1782 * include/features.h (__GLIBC_MINOR__): Bump to 10.
1783
1784 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
1785 same place we add ASFLAGS-config.
1786
1787 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
1788
1789 [BZ #10128]
1790 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
1791 or FORMERR and the other NOERROR, don't raise an error.
1792
1793 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
1794
1795 [BZ #10118]
1796 * Makeconfig (+asflags): New variable based upon ASFLAG or
1797 asflags-cpu.
1798 (ASFLAGS): Add override to set ASFLAGS to +asflags.
1799 * config.make.in (asflags-cpu): Add variable based upon
1800 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
1801 the assembler.
1802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1803 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
1804 recognizes power6 instruction set due to passing -mcpu=power6 from
1805 --with-cpu=power6 when compiling .S files.
1806 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1807 Likewise.
1808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1809 Likewise.
1810 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1811 Likewise.
1812
1813 2009-05-09 Jakub Jelinek <jakub@redhat.com>
1814
1815 * string/stratcliff.c (do_test): Test for zero length
1816 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
1817 at the end of the page.
1818
1819 2009-05-08 Ulrich Drepper <drepper@redhat.com>
1820
1821 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
1822
1823 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
1824 count is zero.
1825
1826 * po/da.po: Update from translation team.
1827
1828 2009-05-05 Jakub Jelinek <jakub@redhat.com>
1829
1830 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
1831 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
1832
1833 2009-05-05 Ulrich Drepper <drepper@redhat.com>
1834
1835 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
1836 and READ_IMPLIES_EXEC.
1837
1838 2009-05-04 Ulrich Drepper <drepper@redhat.com>
1839
1840 * po/da.po: Update from translation team.
1841
1842 2009-04-29 Jakub Jelinek <jakub@redhat.com>
1843
1844 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
1845 comment change.
1846
1847 2009-04-27 Jakub Jelinek <jakub@redhat.com>
1848
1849 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
1850 to MAP_ANON in PROT_NONE mmap64 call.
1851 (open_archive): Likewise.
1852 (file_data_available_p): Use mmap64 instead of mremap.
1853 (enlarge_archive): Likewise. Update head if ah->addr changed.
1854 Attempt to reserve address space after mmap64 region.
1855
1856 2009-04-26 Ulrich Drepper <drepper@redhat.com>
1857
1858 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
1859 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
1860 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1861
1862 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
1863 atanh should set ERANGE.
1864
1865 [BZ #10087]
1866 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
1867 result of lookup to make call to implement STT_GNU_IFUNC.
1868 (_dl_profile_fixup): Likewise.
1869 Patch by H.J. Lu <hjl.tools@gmail.com>.
1870
1871 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
1872 warning.
1873
1874 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
1875 from definition.
1876
1877 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
1878 label if it is not used.
1879
1880 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
1881 of gmon_hist_hdr and gmon_hdr structures and use them.
1882 * elf/sprof.c: Likewise.
1883
1884 * elf/dl-load.c (open_verify): Add temporary variable to avoid
1885 warning.
1886
1887 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
1888
1889 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
1890 to avoid cast.
1891
1892 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
1893 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
1894 to avoid warnings.
1895 (iruserok_af): Use ss_family instead of casts.
1896
1897 * gmon/gmon.c (write_hist): Define real-type variant of
1898 gmon_hist_hdr structure and use it.
1899 (write_gmon): Likewise for gmon_hdr.
1900
1901 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
1902 function if we are not going to define it.
1903 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1904
1905 * inet/inet6_option.c (option_alloc): Add temporary variable to
1906 avoid warning.
1907
1908 * libio/strfile.h (struct _IO_streambuf): Use correct type and
1909 name of VTable element.
1910 * libio/iovsprintf.c: Avoid casts to avoid warnings.
1911 * libio/iovsscanf.c: Likewise.
1912 * libio/vasprintf.c: Likewise.
1913 * libio/vsnprintf.c: Likewise.
1914 * stdio-common/isoc99_vsscanf.c: Likewise.
1915 * stdlib/strfmon_l.c: Likewise.
1916 * debug/vasprintf_chk.c: Likewise.
1917 * debug/vsnprintf_chk.c: Likewise.
1918 * debug/vsprintf_chk.c: Likewise.
1919
1920 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
1921 function pointers.
1922
1923 2009-04-26 Jakub Jelinek <jakub@redhat.com>
1924
1925 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
1926
1927 2009-04-25 Ulrich Drepper <drepper@redhat.com>
1928
1929 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
1930
1931 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
1932 * sysdeps/i386/fpu/s_tanf.S: Likewise.
1933 * sysdeps/i386/fpu/s_tanl.S: Likewise.
1934 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1935 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
1936 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1937 * math/libm-test.inc: Add tests for errno after tan calls with
1938 ±Inf.
1939
1940 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
1941 errno value vor pow(+-0,neg).
1942 * math/libm-test.inc (pow_test): Add tests for errno value for
1943 pole errors.
1944
1945 * math/w_fmod.c: Also handle x=±Inf as error.
1946 * math/w_fmodf.c: Likewise.
1947 * math/w_fmodl.c: Likewise.
1948 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
1949 x=±Inf or y=0.
1950
1951 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
1952 * sysdeps/i386/fpu/s_cosf.S: Likewise.
1953 * sysdeps/i386/fpu/s_cosl.S: Likewise.
1954 * sysdeps/i386/fpu/s_sin.S: Likewise.
1955 * sysdeps/i386/fpu/s_sinf.S: Likewise.
1956 * sysdeps/i386/fpu/s_sinl.S: Likewise.
1957 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1958 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
1959 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
1960 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
1961 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
1962 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1963 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1964 * math/libm-test.inc: Add tests for errno after sin/cos calls with
1965 ±Inf.
1966
1967 * stdlib/strtod_l.c (round_and_return): We have to set errno to
1968 ERANGE for underflows.
1969 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
1970
1971 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
1972 the 2001 revision.
1973
1974 * libio/tst-widetext.input: Remove surrogates.
1975
1976 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
1977
1978 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
1979 for lgamma should set errno to ERANGE, not EDOM.
1980 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
1981
1982 2009-04-24 Ulrich Drepper <drepper@redhat.com>
1983
1984 [BZ #10093]
1985 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
1986 UTF-16 surrogates.
1987
1988 * locale/programs/locarchive.c (enlarge_archive): Conserve address
1989 space when temporarily mapping the whole content of the old file.
1990
1991 [BZ #10100]
1992 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
1993 not zero.
1994
1995 2009-04-24 Jakub Jelinek <jakub@redhat.com>
1996
1997 * iconvdata/sjis.c (BODY): Don't advance inptr before
1998 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
1999 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
2000 two byte chars.
2001
2002 2009-04-24 Ulrich Drepper <drepper@redhat.com>
2003
2004 * locale/locarchive.h (struct locarhandle): Rename len field to
2005 mmaped and add new reserved field.
2006 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
2007 (create_archive): Reserve address space and then map file into it.
2008 (open_archive): Likewise.
2009 (file_data_available_p): New function.
2010 (compare_from_file): New function.
2011 (close_archive): Adjust to member name changes.
2012 (add_locale): Before comparing locale data, check it is mapped.
2013 Otherwise fall back to reading from the file.
2014
2015 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
2016
2017 * stdio-common/psiginfo.c: Include <errno.h>.
2018
2019 2009-04-23 Ulrich Drepper <drepper@redhat.com>
2020
2021 [BZ #9920]
2022 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
2023 to get consistency between 32 and 64 bit architectures.
2024
2025 [BZ #10052]
2026 * sysdeps/unix/make-syscalls.sh: Add rule to create target
2027 directory for dummy syscall rules.
2028 Patch by Chris Steinbroner <hesh@pobox.com>.
2029
2030 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
2031
2032 [BZ #10092]
2033 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
2034 MNT_EXPIRE.
2035
2036 2009-04-23 Ulrich Drepper <drepper@redhat.com>
2037
2038 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
2039 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2040
2041 2009-04-23 Jakub Jelinek <jakub@redhat.com>
2042
2043 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
2044 data from vector to temporary buffer and call PWRITEV after it
2045 instead of vice versa.
2046 * sysdeps/posix/preadv.c: Fix up comment.
2047 * misc/preadv.c: Likewise.
2048 * misc/preadv64.c: Likewise.
2049 * misc/pwritev.c: Likewise.
2050 * misc/pwritev64.c: Likewise.
2051 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
2052
2053 2009-04-23 Ulrich Drepper <drepper@redhat.com>
2054
2055 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
2056
2057 * shadow/Makefile (tests): Add tst-shadow.
2058 * shadow/tst-shadow.c: New file.
2059
2060 [BZ #9955]
2061 * gshadow/Makefile: New file.
2062 * gshadow/Versions: New file.
2063 * gshadow/fgetsgent.c: New file.
2064 * gshadow/fgetsgent_r.c: New file.
2065 * gshadow/getsgent.c: New file.
2066 * gshadow/getsgent_r.c: New file.
2067 * gshadow/getsgnam.c: New file.
2068 * gshadow/getsgnam_r.c: New file.
2069 * gshadow/gshadow.h: New file.
2070 * gshadow/putsgent.c: New file.
2071 * gshadow/sgetsgent.c: New file.
2072 * gshadow/sgetsgent_r.c: New file.
2073 * gshadow/tst-gshadow.c: New file.
2074 * include/gshadow.h: New file.
2075 * Makeconfig (all-subdirs): Add gshadow.
2076 * Makefile (installed-headers): Add gshadow/gshadow.h.
2077 * nss/Makefile (databases): Add sgrp.
2078 * nss/Versions: Add gshadow functions as private exports.
2079 * nss/nsswitch.conf: Add gshadow entry.
2080 * nss/sgrp-lookup.c: New file.
2081 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
2082 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
2083 * nss/nss_files/files-sgrp.c: New file.
2084 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
2085 * sysdeps/unix/sysv/linux/paths.h: Likewise.
2086
2087 2009-04-22 Ulrich Drepper <drepper@redhat.com>
2088
2089 * stdio-common/printf.h: Add missing const to register_printf_modifier.
2090 * stdio-common/reg-modifier.c: Likewise.
2091
2092 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
2093
2094 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
2095 is no FPU.
2096
2097 2009-04-20 Ulrich Drepper <drepper@redhat.com>
2098
2099 [BZ #10086]
2100 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
2101 headers up to 2.6.30.
2102
2103 * po/ca.po: Update from translation team.
2104
2105 2009-04-19 Ulrich Drepper <drepper@redhat.com>
2106
2107 [BZ #10069]
2108 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
2109 an object that uses static TLS if the TLS modid is higher than the
2110 reserve we always allocate. At least for multi-threaded code.
2111
2112 2009-04-18 Ulrich Drepper <drepper@redhat.com>
2113
2114 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
2115 Numerically stable check for valid width.
2116
2117 * locale/programs/locarchive.c (open_archive): Map the entire file
2118 and not just the administrative data.
2119 (add_locale): When we find a hash sum match compare the content
2120 to be sure.
2121
2122 * malloc/malloc.c (malloc_info): Output address space information.
2123
2124 2009-04-17 Ulrich Drepper <drepper@redhat.com>
2125
2126 * malloc/malloc.c (malloc_info): Also output system memory information.
2127
2128 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
2129 architectures have preadv/pwritev in 2.6.30.
2130
2131 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
2132 * sysdeps/posix/readv.c: Likewise.
2133 Reported by Markus Armbruster <armbru@redhat.com>.
2134
2135 * malloc/hooks.c (top_check): Force hook value into register.
2136
2137 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2138
2139 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
2140 calls to _dl_relocate_object.
2141
2142 2009-04-16 Ulrich Drepper <drepper@redhat.com>
2143
2144 [BZ #9957]
2145 * malloc/malloc.c (force_reg): Define.
2146 (sYSMALLOc): Load hook variable into variable
2147 before test and force into register.
2148 (sYSTRIm): Likewise.
2149 (public_mALLOc): Force hook value into register.
2150 (public_fREe): Likewise.
2151 (public_rEALLOc): Likewise.
2152 (public_mEMALIGn): Likewise.
2153 (public_vALLOc): Likewise.
2154 (public_pVALLOc): Likewise.
2155 (public_cALLOc): Likewise.
2156 (__posix_memalign): Likewise.
2157 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
2158 before test and force into register.
2159 * malloc/hooks.c (top_check): Likewise.
2160 (public_sET_STATe): Pretty printing.
2161
2162 * resolv/res_send.c (send_dg): Don't just ignore the result we got
2163 in case we only receive one reply in single-request mode.
2164
2165 2009-04-16 Jakub Jelinek <jakub@redhat.com>
2166
2167 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
2168 are dlopened in statically linked program even for __LM_ID_CALLER.
2169
2170 2009-04-16 Ulrich Drepper <drepper@redhat.com>
2171
2172 * resolv/res_send.c (send_dg): Don't switch into single-request
2173 mode if we already are in it.
2174
2175 2009-04-15 Ulrich Drepper <drepper@redhat.com>
2176
2177 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
2178 are always at least 4 bytes in the returned line.
2179
2180 2009-04-15 Jakub Jelinek <jakub@redhat.com>
2181
2182 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
2183 __libc_use_alloca (8192), if the stack is too small use 512 bytes
2184 instead of 8K. Stop searching in /proc/stat after hitting first
2185 line not starting with cpu.
2186 (next_line): Truncate too long
2187 lines at buffer size * 3/4 instead of pretending there were line
2188 breaks inside of large lines.
2189
2190 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2191
2192 * sysdeps/x86_64/mp_clz_tab.c: New file.
2193
2194 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
2195 Ulrich Drepper <drepper@redhat.com>
2196
2197 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
2198 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
2199 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2200
2201 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
2202
2203 * sysdeps/sh/libc-tls.c: New file.
2204
2205 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
2206
2207 2009-04-14 Roland McGrath <roland@redhat.com>
2208
2209 * elf/elf.h: Add various missing ARM constants, to match binutils.
2210
2211 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2212
2213 Optimizations from GMP.
2214 * sysdeps/x86_64/add_n.S: New file.
2215 * sysdeps/x86_64/addmul_1.S: New file.
2216 * sysdeps/x86_64/lshift.S: New file.
2217 * sysdeps/x86_64/mul_1.S: New file.
2218 * sysdeps/x86_64/rshift.S: New file.
2219 * sysdeps/x86_64/sub_n.S: New file.
2220 * sysdeps/x86_64/submul_1.S: New file.
2221
2222 2009-04-14 Jakub Jelinek <jakub@redhat.com>
2223
2224 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
2225 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
2226 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
2227 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2228
2229 2009-04-14 Ulrich Drepper <drepper@redhat.com>
2230
2231 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
2232 preadv/pwritev.
2233
2234 2009-04-13 Ulrich Drepper <drepper@redhat.com>
2235
2236 * sysdeps/x86-64/strrchr.S: New file.
2237
2238 2009-04-10 Ulrich Drepper <drepper@redhat.com>
2239
2240 * stdio-common/printf.h (struct printf_info): Add user element.
2241 New types printf_arginfo_size_function, printf_va_arg_function.
2242 Declare register_printf_specifier, register_printf_modifier,
2243 register_printf_type.
2244 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
2245 (union printf_arg): Add pa_user element.
2246 Adjust __printf_arginfo_table type.
2247 Add __printf_va_arg_table, __printf_modifier_table,
2248 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
2249 declarations.
2250 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
2251 If registered arginfo call failed try normal specifier.
2252 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
2253 function.
2254 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
2255 * stdio-common/Versions: Export register_printf_modifier,
2256 register_printf_type, and register_printf_specifier for GLIBC_2.10.
2257 * stdio-common/reg-modifier.c: New file.
2258 * stdio-common/reg-type.c: New file.
2259 * stdio-common/reg-printf.c (__register_printf_specifier): New
2260 function. Mostly the old __register_printf_function function but
2261 uses locking and type of third parameter changed.
2262 (__register_printf_function): Implement using
2263 __register_printf_specifier.
2264 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
2265 calls to arginfo functions. Allocate enough memory for user-defined
2266 types. Call new va_arg functions to get user-defined types.
2267 Try installed handlers even for existing format specifiers first.
2268
2269 2009-04-09 Ulrich Drepper <drepper@redhat.com>
2270
2271 * sysdeps/x86_64/rawmemchr.S: New file.
2272
2273 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2274 Simplified code and possible copy problem fixed.
2275
2276 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
2277 function if it is not defined. Add some necessary casts.
2278 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2279
2280 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
2281 have preadv/pwritev in 2.6.30.
2282
2283 2009-04-08 Ulrich Drepper <drepper@redhat.com>
2284
2285 * malloc/malloc.c (malloc_info): New function.
2286 * malloc/malloc.h: Declare it.
2287 * malloc/Versions: Export malloc_info for GLIBC_2.10.
2288
2289 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
2290 to avoid PLT slot.
2291
2292 * malloc/malloc.c (_int_realloc): Add parameter with old block
2293 size. Remove duplicated test. Don't handle mmap'ed blocks here.
2294 Adjust all callers.
2295 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2296
2297 2009-04-07 Ulrich Drepper <drepper@redhat.com>
2298
2299 * sysdeps/x86_64/strchrnul.S: New file.
2300
2301 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
2302 depending libcrypt on -lfreebl3.
2303
2304 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
2305 preadv/pwritev in 2.6.30.
2306
2307 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2308 instead of __strcasecmp.
2309
2310 * string/stratcliff.c (do_test): Add memchr tests..
2311 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
2312 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
2313 first read quad word.
2314
2315 2009-04-06 Ulrich Drepper <drepper@redhat.com>
2316
2317 * string/strverscmp.c (__strverscmp): Fix last cleanups.
2318 * string/tst-svc.input: Add new test case.
2319 * string/tst-svc.expect: Adjust.
2320 * string/Makefile: Don't ignore tst-svc error.
2321
2322 * sysdeps/x86_64/memchr.S: New file.
2323
2324 * resolv/resolv.h (RES_SNGLKUP): Define.
2325 * resolv/res_init.c (res_setoptions): Recognize single-request option.
2326 * resolv/res_send.c (send_dg): If we sent two requests at once and
2327 only get one reply before timeout switch to mode where we send the
2328 second request only after the first answer has been received.
2329
2330 2009-04-05 Ulrich Drepper <drepper@redhat.com>
2331
2332 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
2333 * sysdeps/x86_64/strchr.S: Likewise.
2334
2335 2009-04-03 Ulrich Drepper <drepper@redhat.com>
2336
2337 * configure.in: We need to test for the compiler earlier.
2338
2339 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
2340 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
2341 GLIBC_2.10.
2342 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
2343 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
2344 and pwritev.
2345 * misc/preadv.c: New file.
2346 * misc/preadv64.c: New file.
2347 * misc/pwritev.c: New file.
2348 * misc/pwritev64.c: New file.
2349 * sysdeps/posx/preadv.c: New file.
2350 * sysdeps/posx/preadv64.c: New file.
2351 * sysdeps/posx/pwritev.c: New file.
2352 * sysdeps/posx/pwritev64.c: New file.
2353 * sysdeps/unix/sysv/linux/preadv.c: New file.
2354 * sysdeps/unix/sysv/linux/preadv64.c: New file.
2355 * sysdeps/unix/sysv/linux/pwritev.c: New file.
2356 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
2357 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
2358 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2359
2360 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
2361 compatibility code.
2362 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
2363
2364 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2365 __ASSUME_COMPLETE_READV_WRITEV.
2366 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
2367 with modern kernels.
2368 * sysdeps/unix/sysv/linux/writev.c: Likewise.
2369
2370 * sysdeps/posix/readv.c: Since read is a cancellation point we have
2371 to free a possible malloced buffer in case of cancellation.
2372 * sysdeps/posix/writev.c: Likewise for write.
2373
2374 2009-04-02 Ulrich Drepper <drepper@redhat.com>
2375
2376 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
2377
2378 * configure.in: Recognize --enable-nss-crypt.
2379 * config.make.in: Add nss-crypt entry.
2380 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
2381 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
2382 and include path for NSS directory to compiler for md5-crypt,
2383 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
2384 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
2385 function implementation, use NSS. Introduce wrappers around the
2386 hash function calls. Little code size optimization.
2387 * crypt/sha256-crypt.c: Likewise.
2388 * crypt/sha512-crypt.c: Likewise.
2389 * scripts/check-local-headers.sh: Ignore nss3 directory.
2390
2391 * configure.in: Rename pic_default to libc_cv_pic_default.
2392 * config.make.in: Likewise.
2393
2394 2009-04-01 Roland McGrath <roland@redhat.com>
2395
2396 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
2397 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
2398 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
2399 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
2400 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
2401 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
2402 (R_SPARC_NUM): Update.
2403 From Dave Miller <davem@davemloft.net>.
2404
2405 2009-04-01 Ulrich Drepper <drepper@redhat.com>
2406
2407 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
2408
2409 2009-03-31 Ulrich Drepper <drepper@redhat.com>
2410
2411 * elf/dl-open.c: Keep track of used name spaces and only iterate over
2412 those which are used.
2413 * elf/dl-addr.c: Likewise.
2414 * elf/dl-caller.c: Likewise.
2415 * elf/dl-fini.c: Likewise.
2416 * elf/dl-iteratephdr.c: Likewise.
2417 * elf/dl-libc.c: Likewise.
2418 * elf/dl-load.c: Likewise.
2419 * elf/dl-support.c: Likewise.
2420 * elf/dl-sym.c: Likewise.
2421 * elf/rtld.c: Likewise.
2422 * sysdeps/generic/ldsodefs.h: Likewise.
2423
2424 * elf/dl-load.c: Remove support for systems without MAP_ANON.
2425 * elf/dl-minimal.c: Likewise.
2426 * elf/dl-misc.c: Likewise.
2427 * elf/rtld.c: Likewise.
2428 * sysdeps/generic/ldsodefs.h: Likewise.
2429
2430 2009-03-30 Ulrich Drepper <drepper@redhat.com>
2431
2432 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
2433 Avoid reuse of complex expression.
2434
2435 * po/fr.po: Update from translation team.
2436
2437 2009-03-16 Ulrich Drepper <drepper@redhat.com>
2438
2439 * include/dirent.h: Yet more changes to match sort function type
2440 change.
2441 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
2442 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
2443 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
2444
2445 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
2446
2447 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
2448
2449 2009-03-16 Ulrich Drepper <drepper@redhat.com>
2450
2451 * nscd/connections.c (restart): Try to preserve the process name
2452 by reading the /proc/self/exe symlink and using the return name.
2453 Patch by Jeff Bastian <jbastian@redhat.com>.
2454
2455 2009-03-15 Ulrich Drepper <drepper@redhat.com>
2456
2457 [BZ #9733]
2458 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
2459 if we are not loading a new audit library.
2460 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
2461 Only use profiling trampoline for auditing if we are not relocating
2462 an audit library.
2463 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
2464 * elf/rtld.c: Likewise.
2465 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
2466
2467 * elf/rtld.c (dl_main): Extend help message for --audit option.
2468
2469 [BZ #9759]
2470 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
2471 alphasort64, versionsort, and versionsort64 to POSIX 2008.
2472 * dirent/alphasort.c: Adjust implementation to type change.
2473 * dirent/alphasort64.c: Likewise.
2474 * dirent/scandir.c: Likewise.
2475 * dirent/versionsort.c: Likewise.
2476 * dirent/versionsort64.c: Likewise.
2477 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
2478 declaration.
2479 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
2480 declaration.
2481
2482 [BZ #9880]
2483 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
2484 correctly. Set segleft member in output as required.
2485 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2486 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
2487
2488 [BZ #9881]
2489 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
2490 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2491 * inet/Makefile (tests): Add tst-inet6_rth.
2492 * inet/tst-inet6_rth.c: New file.
2493
2494 [BZ #5807]
2495 * string/strlen.c (strlen): Fix omission in the expression to test
2496 for NUL bytes.
2497
2498 2009-03-14 Ulrich Drepper <drepper@redhat.com>
2499
2500 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
2501
2502 * elf/dl-runtime.c (reloc_offset): Define.
2503 (reloc_index): Define.
2504 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
2505 (_dl_fixup_profile): Likewise. Use reloc_index instead of
2506 computing index from reloc_offset.
2507 (_dl_call_pltexit): Likewise.
2508 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
2509 the relocation index to _dl_fixup.
2510 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
2511 _dl_call_pltexit.
2512 * sysdeps/x86_64/dl-runtime.c: New file.
2513
2514 [BZ #9893]
2515 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
2516 alignment of La_x86_64_regs. Store xmm parameters.
2517 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
2518
2519 [BZ #9913]
2520 * string/strverscmp.c (__strverscmp): Fix case of different digits
2521 in fractional part of string.
2522 Patch by Jingyu Liu <jyliu@fortinet.com>.
2523 * string/Makefile (tests): Add tst-svc2.
2524 * string/tst-svc2.c: New file.
2525
2526 * string/strverscmp.c (__strverscmp): Optimize size of tables.
2527
2528 * locale/iso-639.def: Add Min Nan.
2529
2530 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2531
2532 [BZ #9948]
2533 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
2534
2535 2009-03-14 Ulrich Drepper <drepper@redhat.com>
2536
2537 * elf/dl-sysdep.c (auxvars): Compress data structure.
2538
2539 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
2540 STT_GNU_IFUNC handling.
2541 (elf_machine_rela): Likewise.
2542
2543 2009-03-13 Ulrich Drepper <drepper@redhat.com>
2544
2545 * config.h.in (USE_MULTIARCH): Define.
2546 * configure.in: Handle --enable-multi-arch.
2547 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
2548 (_dl_fixup_profile): Likewise.
2549 * elf/do-lookup.c (dl_lookup_x): Likewise.
2550 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
2551 * elf/elf.h (STT_GNU_IFUNC): Define.
2552 * include/libc-symbols.h (libc_ifunc): Define.
2553 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
2554 framework in init-arch.h to get CPUID values.
2555 * sysdeps/x86_64/multiarch/Makefile: New file.
2556 * sysdeps/x86_64/multiarch/init-arch.c: New file.
2557 * sysdeps/x86_64/multiarch/init-arch.h: New file.
2558 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
2559
2560 * config.make.in (experimental-malloc): Define.
2561 * configure.in: Handle --enable-experimental-malloc.
2562 * malloc/Makefile: Handle experimental-malloc flag.
2563 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
2564 * malloc/arena.c: Likewise.
2565 * malloc/hooks.c: Likewise.
2566 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2567
2568 2009-03-11 Ulrich Drepper <drepper@redhat.com>
2569
2570 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
2571 prediction. A few size optimizations.
2572
2573 2009-03-10 Ulrich Drepper <drepper@redhat.com>
2574
2575 * time/tzset.c: Optimize a bit for size.
2576
2577 2009-03-10 Jakub Jelinek <jakub@redhat.com>
2578
2579 * include/stdio.h (fmemopen): Add libc_hidden_proto.
2580 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
2581
2582 * elf/sprof.c: Avoid warning about multi-line comment.
2583
2584 2009-03-10 Ulrich Drepper <drepper@redhat.com>
2585
2586 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
2587 DST name.
2588 * time/tst-posixtz.c: Add tests for quoted timezone names.
2589
2590 2009-03-10 Jakub Jelinek <jakub@redhat.com>
2591
2592 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
2593 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
2594 200809L instead of 200112L.
2595 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
2596 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
2597
2598 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
2599 instead of __quick_exit_funcs to __run_exit_handlers.
2600 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
2601 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
2602 (__cxa_at_quick_exit): Remove attribute_hidden.
2603 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
2604 to __run_exit_handlers.
2605 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
2606 attribute_hidden.
2607
2608 2009-03-10 Ulrich Drepper <drepper@redhat.com>
2609
2610 * po/id.po: Update from translation team.
2611
2612 2009-02-18 Jakub Jelinek <jakub@redhat.com>
2613
2614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
2615 .machine push; .machine "power6" and .machine pop around mtfsf
2616 insns outside of _ARCH_PWR6 define.
2617 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2618 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2619 Likewise.
2620 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2621 Likewise.
2622 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
2623 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
2624 relax_fenv_state): Likewise.
2625
2626 2009-03-08 Ulrich Drepper <drepper@redhat.com>
2627
2628 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
2629 cxa_at_quick_exit.
2630 (static-only-routines): Add at_quick_exit.
2631 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
2632 GLIBC_2.10.
2633 * stdlib/quick_exit.c: New file.
2634 * stdlib/at_quick_exit.c: New file.
2635 * stdlib/cxa_at_quick_exit.c: New file.
2636 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
2637 it appropriately.
2638 (__internal_atexit): New function.
2639 (__new_exitfn): Now takes parameter to point to the list to use.
2640 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
2641 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
2642 (exit): ...here. Just call __run_exit_handlers appropriately.
2643 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
2644 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
2645 * stdlib/on_exit.c: Adjust call to __new_exitfn.
2646 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
2647
2648 * po/id.po: Update from translation team.
2649
2650 2009-03-07 Ulrich Drepper <drepper@redhat.com>
2651
2652 * po/ru.po: Update from translation team.
2653
2654 2009-03-04 Ulrich Drepper <drepper@redhat.com>
2655
2656 * po/nl.po: Update from translation team.
2657
2658 2009-03-03 Ulrich Drepper <drepper@redhat.com>
2659
2660 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
2661 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2662 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2663 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
2664 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2665 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2666 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2667
2668 * po/pl.po: Update from translation team.
2669
2670 2009-03-02 Ulrich Drepper <drepper@redhat.com>
2671
2672 [BZ #7083]
2673 * sysdeps/unix/sysv/linux/fallocate.c: New file.
2674 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
2675 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
2676 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
2677 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
2678 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
2679 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
2680 for GLIBC_2.10.
2681 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2682 Add fallocate and fallocate64.
2683
2684 * io/fcntl.h: Pretty printing.
2685
2686 2009-03-02 Richard Guenther <rguenther@suse.de>
2687
2688 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
2689 attribute also for non-C99 inline semantics variant.
2690
2691 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2692
2693 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
2694 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
2695 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
2696 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
2697 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
2698 Likewise.
2699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
2700 Likewise.
2701
2702 2009-03-02 Ulrich Drepper <drepper@redhat.com>
2703
2704 * po/cs.po: Update from translation team.
2705
2706 2009-02-28 Ulrich Drepper <drepper@redhat.com>
2707
2708 * po/bg.po: Update from translation team.
2709 * po/sv.po: Likewise.
2710 * po/fi.po: Likewise.
2711 * po/vi.po: Likewise.
2712
2713 2009-02-27 Roland McGrath <roland@redhat.com>
2714
2715 * Makeconfig (%.v.i): Depend on Makeconfig.
2716 Exclude % lines from initial #-comment removal.
2717
2718 2009-02-27 Ulrich Drepper <drepper@redhat.com>
2719
2720 * po/ko.po: Update from translation team.
2721
2722 2009-02-26 Roland McGrath <roland@redhat.com>
2723
2724 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
2725 avoids unused warning.
2726
2727 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
2728 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
2729
2730 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
2731 sys/ucontext.h and asm/elf.h. Include sys/user.h.
2732 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
2733 and asm/user.h. Include asm/ptrace.h.
2734 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
2735 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2736 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
2737 Undefine.
2738 (start_thread): Don't undefine.
2739 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
2740 Define.
2741
2742 2009-02-26 Ulrich Drepper <drepper@redhat.com>
2743
2744 * wctype/wctype.h: The *_l functions are in POSIX 2008.
2745 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
2746 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
2747 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
2748 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
2749 200112L to 200809L.
2750 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
2751 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2752 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
2753 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
2754 _SC_THREAD_ROBUST_PRIO_PROTECT.
2755 * posix/unistd.h: fexecve is in POSIX 2008.
2756 * time/time.h: strftime_l is in POSIX 2008.
2757 * io/sys/stat.h: futimens is in POSIX 2008.
2758 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
2759 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
2760 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
2761 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
2762 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
2763 open_memstream, and vdprintf are in POSIX 2008.
2764
2765 2009-02-25 Ulrich Drepper <drepper@redhat.com>
2766
2767 * include/features.h: Define macros for XPG7/POSIX 2008.
2768 * ctype/ctype.h: The *_l functions are in POSIX 2008.
2769 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
2770 POSIX 2008.
2771 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
2772 * locale/xlocale.h: Define locale_t type.
2773 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
2774 in POSIX 2008. Don't define locale_t here.
2775 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
2776 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
2777 UTIME_OMIT only with __USE_ATFILE.
2778 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
2779 * stdio-common/psiginfo.c: New file.
2780 * stdio-common/psiginfo-data.h: New file.
2781 * stdio-common/psiginfo-define.h: New file.
2782 * stdio-common/Makefile (routines): Add psiginfo.
2783 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
2784 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2785 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2786 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2787 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2788 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2789 * io/sys/stat.h: Move mknodat definition into same conditional as
2790 mknod.
2791 * time/sys/time.h: futimesat is not among the functions accepted
2792 into the POSIX standard.
2793
2794 * include/features.h: If no feature selection given and we select
2795 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
2796 * posix/Versions: Export __posix_getopt.
2797 * posix/getopt.c (_getopt_initialize): Take additional parameter.
2798 Use it to alternatively initialize __posixly_correct.
2799 (_getopt_internal_r): Take addition parameter. Pass on to
2800 _getopt_initialize.
2801 (_getopt_internal): Take addition parameter. Pass on to
2802 _getopt_internal_r.
2803 (getopt): Pass additional zero to _getopt_internal.
2804 (__posix_getopt): New function.
2805 * posix/getopt.h: Add redirection for getopt.
2806 * posix/getopt1.c (getopt_long): Pass additional zero to
2807 _getopt_internal.
2808 (getopt_long_only): Likewise.
2809 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
2810 (_getopt_long_only_r): Likewise.
2811 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
2812 _getopt_internal_r.
2813
2814 2009-02-24 Ulrich Drepper <drepper@redhat.com>
2815
2816 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
2817 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2818 * sysdeps/posix/sysconf.c (__sysconf): Handle
2819 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
2820 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2821
2822 2009-02-24 Roland McGrath <roland@redhat.com>
2823
2824 [BZ #9895]
2825 * README.template: Reworded not to use substituted version number.
2826 Renamed to ...
2827 * README: ... here (no longer generated).
2828 * Makefile (README): Target removed.
2829
2830 2009-02-24 Ulrich Drepper <drepper@redhat.com>
2831
2832 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
2833 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
2834 instead.
2835
2836 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
2837
2838 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
2839
2840 2009-02-22 Ulrich Drepper <drepper@redhat.com>
2841
2842 * po/bg.po: Update from translation team.
2843
2844 2009-02-16 Jakub Jelinek <jakub@redhat.com>
2845
2846 * stdlib/monetary.h: Uglify function parameter names.
2847 * sunrpc/rpc/pmap_clnt.h: Likewise.
2848 * sunrpc/rpc/svc.h: Likewise.
2849 * sunrpc/rpc/xdr.h: Likewise.
2850 * sunrpc/rpc/clnt.h: Likewise.
2851 * resolv/netdb.h: Likewise.
2852 * resolv/arpa/nameser.h: Likewise.
2853 * resolv/resolv.h: Likewise.
2854 * argp/argp.h: Likewise.
2855 * locale/langinfo.h: Likewise.
2856 * io/sys/stat.h: Likewise.
2857 * posix/spawn.h: Likewise.
2858 * nis/rpcsvc/nislib.h: Likewise.
2859 * malloc/obstack.h: Likewise.
2860 * sysdeps/ia64/bits/link.h: Likewise.
2861 * sysdeps/i386/bits/link.h: Likewise.
2862 * sysdeps/s390/bits/link.h: Likewise.
2863 * sysdeps/powerpc/bits/link.h: Likewise.
2864 * sysdeps/x86_64/bits/link.h: Likewise.
2865 * sysdeps/sparc/bits/link.h: Likewise.
2866 * sysdeps/sh/bits/link.h: Likewise.
2867 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
2868 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
2869 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
2870 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2871
2872 2008-12-01 Fredrik Unger <fred@tree.se>
2873
2874 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
2875 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
2876 _FP_UNPACK_RAW_2, fix up first argument.
2877
2878 2009-02-15 Ulrich Drepper <drepper@redhat.com>
2879
2880 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
2881 (GET_NPROCS_PARSER): Change parameters and use next_line.
2882 (__get_nprocs): Rewrite to not use stdio routines.
2883 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
2884 Change parameters and use next_line.
2885
2886 2009-02-13 Ulrich Drepper <drepper@redhat.com>
2887
2888 [BZ #5381]
2889 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
2890 Change mempool_alloc prototype.
2891 * nscd/mem.c (gc): Don't handle mem_in_flight.
2892 (mempool_alloc): Third parameter now only indicates whether this is the
2893 first call (to allocate data) or not. If it is, get db rdlock.
2894 Release it on error. Don't handle mem_in_flight.
2895 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
2896 Adjust third parameter of mempool_alloc calls.
2897 Nothing to do here in case mempool_alloc fails.
2898 Avoid local variable shadowing parameter. No need to get db rdlock
2899 before calling cache_add.
2900 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
2901 no mem_in_flight array anymore.
2902 * nscd/connections.c: Remove definition and handling of mem_in_flight.
2903 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
2904 mempool_alloc calls. Mark he parameter as const. Nothing to do here
2905 in case mempool_alloc fails. No need to get db rdlock before calling
2906 cache_add.
2907 * nscd/hstcache.c (cache_addhst): Likewise.
2908 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2909 * nscd/servicescache.c (cache_addserv): Likewise.
2910 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
2911
2912 2009-02-11 Ulrich Drepper <drepper@redhat.com>
2913
2914 * po/lt.po: Update from translation team.
2915
2916 2009-02-10 Ulrich Drepper <drepper@redhat.com>
2917
2918 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
2919 defined, allow additional data to be added using the optional
2920 MORE_ELF_HEADER_DATA macro.
2921 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
2922 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
2923
2924 2009-02-08 Ulrich Drepper <drepper@redhat.com>
2925
2926 * include/atomic.h: Define catomic_and if not already defined.
2927 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
2928 * sysdeps/i386/i486/bits/atomic.h: Likewise.
2929
2930 2009-02-07 Ulrich Drepper <drepper@redhat.com>
2931
2932 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
2933 Change all callers.
2934 (_int_realloc): Likewise. Third argument is now padded size
2935 All _int_* functions are now static.
2936
2937 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
2938 * malloc/arena.c: Likewise.
2939 * include/malloc.h: Remove now unnecessary declarations of the _int_*
2940 functions.
2941
2942 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
2943 easily.
2944
2945 * malloc/malloc.c: Add branch prediction for use of the hooks.
2946
2947 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
2948
2949 2009-02-06 Ulrich Drepper <drepper@redhat.com>
2950
2951 [BZ #7095]
2952 * bits/confname.h: Add SUSv7 macros for getconf environments.
2953 * bits/environments.h: Likewise.
2954 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
2955 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
2956 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
2957 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
2958 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
2959 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
2960 * posix/getconf.c: Likewise.
2961 * posix/sysconf.c: Likewise.
2962 * sysdeps/posix/sysconf.c: Likewise.
2963 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
2964 environments.
2965
2966 2009-01-16 Petr Baudis <pasky@suse.cz>
2967
2968 [BZ #9753]
2969 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
2970 even if we currently have zero nscount.
2971
2972 2009-02-06 Ulrich Drepper <drepper@redhat.com>
2973
2974 [BZ #9781]
2975 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
2976 the input line is too long.
2977
2978 * po/Makefile (libc.pot): Add f_print as function taking c-format
2979 parameter.
2980
2981 * debug/xtrace.sh: Unify translatable messages.
2982 * elf/ldd.bash.in: Likewise.
2983 * elf/sprof.c: Likewise.
2984 * locale/programs/locale.c: Likewise.
2985 * malloc/memusage.sh: Likewise.
2986 * nss/getent.c: Likewise.
2987
2988 2009-02-06 Joseph Myers <joseph@codesourcery.com>
2989
2990 * debug/pcprofiledump.c (print_version,
2991 argp_program_version_hook): New function.
2992 * elf/ldconfig.c (more_help): New function.
2993 (argp): Use it.
2994 * elf/sln.c (usage): New function.
2995 (main): Support --help and --version.
2996 * malloc/memusagestat.c (print_version): New function.
2997 (argp_program_version_hook): New variable.
2998 * nscd/nscd.c (more_help): New function.
2999 (argp): Use it.
3000 * posix/getconf.c (main): Send --version output to stdout.
3001 Support --help.
3002 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
3003 arguments. All callers changed.
3004 (print_version): New function.
3005 (parseargs): Support --help and --version.
3006 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
3007 changed.
3008 (print_version): New function.
3009 (main): Use getopt_long. Support --help and --version.
3010 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
3011 --version.
3012
3013 2009-02-06 Ulrich Drepper <drepper@redhat.com>
3014
3015 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
3016 (update_data): Fix handling of wrapping back
3017 to the beginning of the buffer.
3018
3019 [BZ #9823]
3020 * stdio-common/psignal.c (psignal): Fix test for empty string.
3021
3022 2009-02-05 Ulrich Drepper <drepper@redhat.com>
3023
3024 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
3025 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
3026 move _null_auth to .rodata.
3027
3028 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
3029 value of 24.
3030
3031 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
3032
3033 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
3034 today than when the original code was written. Use larger
3035 buffers. This also makes it unnecessary to have stat information,
3036 if this causes extra efforts.
3037 (__opendir): In case O_DIRECTORY works, don't call fstat just for
3038 __alloc_dir.
3039
3040 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
3041
3042 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
3043 is set.
3044 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
3045 * sysdeps/sh/sh4/__longjmp.S: Likewise.
3046 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
3047 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
3048 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
3049 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
3050
3051 2009-02-04 Ulrich Drepper <drepper@redhat.com>
3052
3053 * po/ru.po: Update from translation team.
3054
3055 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
3056
3057 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
3058 Add _tid slot to maintain consistency with kernel.
3059
3060 2009-02-04 Ulrich Drepper <drepper@redhat.com>
3061
3062 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
3063 incomplete characters at end of input buffer.
3064 * libio/Makefile (tests): Add tst-fgetwc.
3065 * libio/tst-fgetwc.c: New file.
3066 * libio/tst-fgetwc.input: New file.
3067
3068 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
3069
3070 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
3071
3072 2009-02-02 Ulrich Drepper <drepper@redhat.com>
3073
3074 [BZ #9793]
3075 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
3076 *OUTBUFSTART unless the whole output fit into the buffer.
3077 * iconv/Makefile (tests): Add tst-iconv4.
3078 * iconv/tst-iconv4.c: New file.
3079
3080 2009-02-01 Ulrich Drepper <drepper@redhat.com>
3081
3082 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
3083 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3084
3085 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
3086
3087 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
3088 newer linker scripts.
3089
3090 2009-01-30 Ulrich Drepper <drepper@redhat.com>
3091
3092 [BZ #7040]
3093 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
3094 inotify_rm_watch should have type int.
3095
3096 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
3097
3098 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3099 Make aligned_restore_vmx a local symbol.
3100 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
3101 Likewise.
3102
3103 2009-01-30 Andreas Jaeger <aj@suse.de>
3104
3105 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
3106 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
3107 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
3108 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
3109 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
3110 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
3111 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
3112
3113 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
3114
3115 [BZ #9726]
3116 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
3117 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
3118
3119 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
3120
3121 [BZ #9726]
3122 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3123 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3125 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
3126
3127 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
3128
3129 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
3130 memcpy instead of memcmp.
3131 (_dl_setup_pointer_guard): Likewise.
3132
3133 2009-01-30 Ulrich Drepper <drepper@redhat.com>
3134
3135 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
3136 manipulated brk, use malloc_printerr.
3137 * misc/sbrk.c (__sbrk): Better error handling for nonsense
3138 requests.
3139
3140 2009-01-30 Jakub Jelinek <jakub@redhat.com>
3141
3142 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
3143 rindex): For C++ add inlines so that they can be recognized as
3144 builtins.
3145 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
3146
3147 2009-01-29 Ulrich Drepper <drepper@redhat.com>
3148 Jakub Jelinek <jakub@redhat.com>
3149
3150 * string/string.h: Define correct C++ prototypes for gcc 4.4.
3151 * wcsmbs/wchar.h: Likewise.
3152
3153 2009-01-29 Ulrich Drepper <drepper@redhat.com>
3154
3155 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
3156 (stackinfo_sub_sp): Define.
3157
3158 2009-01-28 Ulrich Drepper <drepper@redhat.com>
3159
3160 [BZ #9750]
3161 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
3162 * include/alloca.h (alloca_account): Define.
3163 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
3164 (stackinfo_sub_sp): Define.
3165
3166 * nscd/connections.c (nscd_init): If database file access fails
3167 check whether this is due to permission problems and bail in that
3168 case.
3169
3170 [BZ #9741]
3171 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
3172 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
3173
3174 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3175
3176 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
3177 Add "t" to clobber list.
3178 (INTERNAL_SYSCALL_NCS): Likewise.
3179
3180 2009-01-28 Ulrich Drepper <drepper@redhat.com>
3181
3182 * nss/getent.c (print_networks): Don't print comma between aliases.
3183
3184 2009-01-23 Ulrich Drepper <drepper@redhat.com>
3185
3186 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
3187
3188 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
3189 the hash table.
3190 * misc/Makefile (tests): Add bug-hsearch1.
3191 * misc/bug-hsearch1.c: New file.
3192
3193 2009-01-22 Roland McGrath <roland@redhat.com>
3194
3195 * Makeconfig (%.v.i): Strip trailing # comments,
3196 not only whole-line comments.
3197
3198 2009-01-10 Ulrich Drepper <drepper@redhat.com>
3199
3200 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
3201 one parameter. If non-NULL use it to initialize return value.
3202 (_dl_setup_pointer_guard): New function.
3203 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3204 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
3205 * elf/rtld.c (security_init): Pass _dl_random to
3206 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
3207 pointer_chk_guard.
3208 * elf/dl-sysdep.c (_dl_random): New variable.
3209 (_dl_sysdep_start): Handle AT_RANDOM.
3210 (_dl_show_auxv): Likewise.
3211 * elf/dl-support.c (_dl_random): New variable.
3212 (_dl_aux_init): Handle AT_RANDOM.
3213 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
3214 to _dl_setup_stack_chk_guard.
3215
3216 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
3217
3218 2009-01-10 Roland McGrath <roland@redhat.com>
3219
3220 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
3221
3222 2009-01-08 Ulrich Drepper <drepper@redhat.com>
3223
3224 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
3225
3226 [BZ #9706]
3227 * nss/nss_files/files-parse.c (strtou32): New function.
3228 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
3229 across 32-bit and 64-bit platforms.
3230 (INT_FIELD_MAYBE_NULL): Likewise.
3231
3232 2009-01-08 Jakub Jelinek <jakub@redhat.com>
3233
3234 [BZ #9720]
3235 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
3236 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
3237 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
3238 Likewise.
3239
3240 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
3241
3242 [BZ #697]
3243 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3244 being NULL also if there are no backreferences.
3245 * posix/rxspencer/tests: Add testcases.
3246
3247 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
3248
3249 [BZ #9697]
3250 * posix/bug-regex17.c: Add testcases.
3251 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3252 handling.
3253
3254 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
3255
3256 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
3257 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
3258 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
3259 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
3260 for elf subdir.
3261 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
3262 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
3263 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
3264 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
3265 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
3266 * sysdeps/unix/sysv/linux/s390/Versions: New file.
3267
3268 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
3269
3270 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3271 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3272 re_string_skip_chars, re_string_reconstruct): Likewise.
3273 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3274
3275 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
3276
3277 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
3278 adjust the buffer alignment.
3279
3280 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3281
3282 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
3283 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
3284 net/route.h.
3285
3286 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
3287 flavor to description only when flavor is not NULL.
3288
3289 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
3290 mutex after SIGIO/SIGURG lookup loop.
3291
3292 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3293
3294 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
3295
3296 2009-01-03 Ulrich Drepper <drepper@redhat.com>
3297
3298 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
3299 handling.
3300
3301 2009-01-02 Ulrich Drepper <drepper@redhat.com>
3302
3303 * sysdeps/unix/sysv/linux/kernel-features.h
3304 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
3305
3306 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
3307 if no output is written.
3308
3309 * version.h: Bump to 2.10 development.
3310
3311 * posix/getconf.c: Update copyright year.
3312 * nss/getent.c: Likewise.
3313 * iconv/iconvconfig.c: Likewise.
3314 * iconv/iconv_prog.c: Likewise.
3315 * elf/ldconfig.c: Likewise.
3316 * catgets/gencat.c: Likewise.
3317 * csu/version.c: Likewise.
3318 * elf/ldd.bash.in: Likewise.
3319 * elf/sprof.c (print_version): Likewise.
3320 * locale/programs/locale.c: Likewise.
3321 * locale/programs/localedef.c: Likewise.
3322 * nscd/nscd.c (print_version): Likewise.
3323 * debug/xtrace.sh: Likewise.
3324 * malloc/memusage.sh: Likewise.
3325 * malloc/mtrace.pl: Likewise.
3326 * debug/catchsegv.sh: Likewise.
3327
3328 2008-12-29 Mike Frysinger <vapier@gentoo.org>
3329
3330 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
3331 script.
3332
3333 2008-12-29 Ulrich Drepper <drepper@redhat.com>
3334
3335 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
3336 gethostbyname4_r function call succeeded, just leave the loop.
3337
3338 [BZ #9694]
3339 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
3340 very end.
3341 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
3342 * wctype/Makefile (tests): Add bug-wctypeh.
3343 * wctype/bug-wctypeh.c: New file.
3344
3345 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
3346 LOCALDOMAIN is defined.
3347 * nscd/nscd_getai.c (__nscd_getai): Likewise.
3348
3349 * sysdeps/x86_64/bits/select.h: New file.
3350
3351 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
3352
3353 2008-12-21 Bruno Haible <bruno@clisp.org>
3354
3355 [BZ #9677]
3356 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
3357 if no output is written.
3358
3359 2008-12-13 Klaus Dittrich <kladit@arcor.de>
3360
3361 * login/utmp_file.c (pututline_file): Replace call to dup2 with
3362 libc internal symbol __dup2 to avoid access through the PLT.
3363
3364 2008-12-08 Ulrich Drepper <drepper@redhat.com>
3365
3366 [BZ #6545]
3367 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
3368 available only for __USE_GNU.
3369
3370 * inet/Makefile (tests): Add tst-getni2.
3371 * inet/tst-getni2.c: New file.
3372
3373 [BZ #7080]
3374 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
3375 NULL when NI_NAMEREQD is set.
3376 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
3377 * inet/Makefile (tests): Add tst-getni1.
3378 * inet/tst-getni1.c: New file.
3379
3380 2008-12-03 Petr Baudis <pasky@suse.cz>
3381
3382 [BZ #7067]
3383 * nscd/connections.c (invalidate_cache): Use prune_run_lock
3384 instead of prune_lock.
3385 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
3386 * nscd/nscd.h (database_dyn): Add prune_run_cache.
3387
3388 2008-12-07 Ulrich Drepper <drepper@redhat.com>
3389
3390 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
3391 use.
3392
3393 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
3394 handling.
3395
3396 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
3397 after reading name server list.
3398
3399 [BZ #7058]
3400 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
3401 handling for host name aliases.
3402
3403 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
3404
3405 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
3406 instead of doing things manually.
3407
3408 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
3409
3410 * posix/regex_internal.h (build_wcs_upper_buffer):
3411 Return type is reg_error_t.
3412
3413 2008-12-05 Ulrich Drepper <drepper@redhat.com>
3414
3415 * posix/globtest.sh: Use mktemp to create temporary file and
3416 directory.
3417
3418 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
3419 sets correctly.
3420 (__CPU_CLR_S): Likewise.
3421 (__CPU_ISSET_S): Likewise.
3422
3423 2008-12-05 Joseph Myers <joseph@codesourcery.com>
3424 Ulrich Drepper <drepper@redhat.com>
3425
3426 * scripts/firstversion.awk: Use custom comparison function to compare
3427 version numbers.
3428 * scripts/versions.awk: Use sort invocation which can handle
3429 multi-digit sub-version numbers.
3430
3431 2008-12-04 Ulrich Drepper <drepper@redhat.com>
3432
3433 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
3434 * locale/iso-639.def: Add Chhattisgarhi entry.
3435
3436 2008-12-02 Ulrich Drepper <drepper@redhat.com>
3437
3438 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
3439 ESRCH return value.
3440 (_nss_dns_gethostbyname4_r): Likewise.
3441 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
3442 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
3443 gethostbyname4_r, we don't have a separate IPv6 status, so copy
3444 the no_data variable.
3445
3446 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
3447 information at the correct index.
3448
3449 * socket/sys/socket.h: Declare accept4.
3450 * socket/accept4.c: New file.
3451 * sysdeps/unix/sysv/linux/accept4.c: New file.
3452 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
3453 * socket/Makefile (routines): Add accept4.
3454 * socket/Versions: Export accept4 with version GLIBC_2.10.
3455 * socket/paccept.c: Removed.
3456 * sysdeps/unix/sysv/linux/paccept.c: Removed.
3457 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
3458 * Versions.def: Define GLIBC_2.10 for libc.
3459 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
3460
3461 * nscd/connections.c: Use accept4.
3462
3463 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
3464
3465 2008-12-01 Ulrich Drepper <drepper@redhat.com>
3466
3467 * resolv/res_send.c (send_dg): Create sockets with non-blocking
3468 flag already set.
3469
3470 * stdlib/setenv.c (unsetenv): Don't search environment if it does
3471 not exist.
3472 * stdlib/Makefile (tests): Add tst-unsetenv1.
3473 * stdlib/tst-unsetenv1.c: New file.
3474
3475 2008-11-29 Ulrich Drepper <drepper@redhat.com>
3476
3477 * login/utmp_file.c (file_writable): New variable.
3478 (setutent_file): Don't try to open file for writing.
3479 (pututline_file): Before writing, make descriptor writable if
3480 necessary.
3481
3482 2008-11-26 Ulrich Drepper <drepper@redhat.com>
3483
3484 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
3485 to IPv4 or IPv6 if an interface has been found.
3486
3487 2008-11-26 Roland McGrath <roland@redhat.com>
3488
3489 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
3490 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
3491
3492 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
3493 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
3494 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
3495
3496 * elf/elf.h (NT_386_IOPERM): New macro.
3497 (NT_PPC_VSX): New macro.
3498
3499 2008-11-25 Roland McGrath <roland@redhat.com>
3500
3501 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
3502 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
3503 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
3504 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
3505 Subdirectories moved to ports repository.
3506 * configure.in (base_machine): Remove alpha case.
3507
3508 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
3509
3510 * sysdeps/mach/strerror_l.c: New file.
3511
3512 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
3513
3514 [BZ #6411]
3515 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
3516 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
3517 magic numbers.
3518 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
3519 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
3520 (relax_fenv_state): Same as above.
3521 (FPSCR_29): Reserve bit in ISA 2.05.
3522 (FPSCR_NI): Provide define for compat.
3523 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
3524 magic numbers.
3525 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
3526 magic numbers.
3527 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
3528 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
3529 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
3530 access to hwcap to account for hwcap size increase to uint64_t.
3531 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
3532 Likewise.
3533 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3534 (*setcontext): Likewise.
3535 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
3536 New file.
3537 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
3538 New file.
3539 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3540 (*setcontext): dynamically select mtfsf insn based on
3541 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3542 increase to uint64_t.
3543 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
3544 (*swapcontext): dynamically select mtfsf insn based on
3545 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
3546 increase to uint64_t.
3547 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
3548 New file.
3549 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
3550 New file.
3551 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3552 (*setcontext): dynamically select mtfsf insn based on
3553 PPC_FEATURE_HAS_DFP.
3554 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3555 (*swapcontext): dynamically select mtfsf insn based on
3556 PPC_FEATURE_HAS_DFP.
3557
3558 2008-11-13 Ulrich Drepper <drepper@redhat.com>
3559
3560 * version.h: Bump for 2.9 release.
3561 * include/features.h (__GLIBC_MINOR__): Bump to 9.
3562
3563 [BZ #7029]
3564 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
3565 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
3566 all the rounding.
3567
3568 2008-11-11 Ulrich Drepper <drepper@redhat.com>
3569
3570 [BZ #7009]
3571 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
3572 unknown request types for now.
3573
3574 2008-11-11 Roland McGrath <roland@redhat.com>
3575
3576 * sysdeps/x86_64/configure: New file.
3577
3578 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
3579 * configure: Regenerated.
3580
3581 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
3582
3583 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
3584 correct instruction to remove the stack frame.
3585
3586 2008-11-03 Michael Matz <matz@suse.de>
3587
3588 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
3589 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
3590
3591 2008-11-07 Jakub Jelinek <jakub@redhat.com>
3592
3593 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
3594 Remove.
3595
3596 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
3597 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
3598 of the thread variable instead of void *.
3599 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
3600 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
3601 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3602 __libc_tsd_define arguments.
3603 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
3604 __libc_tsd_address arguments. Remove union hack.
3605 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
3606 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
3607 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
3608 Adjust __libc_tsd_{set,get} arguments.
3609 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
3610 __libc_tsd_define arguments.
3611 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
3612 arguments.
3613 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
3614 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
3615 (LOCALE): Adjust __libc_tsd_define arguments.
3616 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
3617 arguments.
3618 (LOCALE): Adjust __libc_tsd_define arguments.
3619 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
3620 arguments.
3621 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
3622 arguments.
3623
3624 2008-11-02 Ulrich Drepper <drepper@redhat.com>
3625
3626 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
3627 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3628
3629 2008-11-01 Ulrich Drepper <drepper@redhat.com>
3630
3631 [BZ #6966]
3632 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
3633
3634 2008-10-24 Joseph Myers <joseph@codesourcery.com>
3635 Ulrich Drepper <drepper@redhat.com>
3636
3637 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
3638 definition for GCC 3.1 and later.
3639
3640 2008-10-31 Jakub Jelinek <jakub@redhat.com>
3641
3642 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
3643 refetch dtv, as it might have changed.
3644 * elf/Makefile: Add rules to build and run tst-tls18.
3645 * elf/tst-tls18.c: New test.
3646 * elf/tst-tlsmod18a.c: New file.
3647
3648 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
3649
3650 [BZ #6875]
3651 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
3652
3653 2008-10-31 Ulrich Drepper <drepper@redhat.com>
3654
3655 [BZ #6867]
3656 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
3657
3658 [BZ #6919]
3659 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
3660 Fix length of copy operation.
3661
3662 2008-10-02 Pierre Habouzit <madcoder@debian.org>
3663
3664 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
3665 and fix its calling convention.
3666
3667 2008-10-07 Andreas Schwab <schwab@suse.de>
3668
3669 [BZ #6942]
3670 * resolv/res_send.c (send_vc): Fix last change.
3671 (send_dg): Align here as well.
3672
3673 2008-10-31 Ulrich Drepper <drepper@redhat.com>
3674
3675 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
3676 return value in case rlimit is RLIM_INFINITY.
3677
3678 [BZ #6947]
3679 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
3680 for UL_SETFSIZE.
3681 * resource/Makefile (tests): Add bug-ulimit1.
3682 * resource/bug-ulimit1.c: New file.
3683
3684 [BZ #6974]
3685 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
3686 without dot. Properly terminate the string with a null byte.
3687 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
3688
3689 [BZ #6980]
3690 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
3691 negative sizees.
3692 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
3693 negative __size.
3694
3695 [BZ #6995]
3696 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
3697
3698 2008-10-30 Ulrich Drepper <drepper@redhat.com>
3699
3700 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
3701 abort if there is no initgroups_dyn function.
3702
3703 * resolv/res_send.c (send_dg): On timeout, only return nonzero
3704 result if any of the queries really provided an answer.
3705
3706 2008-10-28 Ulrich Drepper <drepper@redhat.com>
3707
3708 * po/lt.po: Update from translation team.
3709
3710 2008-10-26 Ulrich Drepper <drepper@redhat.com>
3711
3712 * po/id.po: Update from translation team.
3713
3714 2008-10-24 Ulrich Drepper <drepper@redhat.com>
3715
3716 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
3717 Fix tests for existence of second reply.
3718
3719 2008-10-23 Ulrich Drepper <drepper@redhat.com>
3720
3721 * po/id.po: New file.
3722 Contributed by the Indonesian translation team.
3723
3724 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
3725
3726 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
3727 initialization.
3728
3729 2008-10-17 Jakub Jelinek <jakub@redhat.com>
3730
3731 * elf/Makefile: Add rules to build and run tst-tls17.
3732 * elf/tst-tls17.c: New test.
3733 * elf/tst-tlsmod17a.c: New file.
3734 * elf/tst-tlsmod17b.c: Likewise.
3735
3736 2008-10-17 Ulrich Drepper <drepper@redhat.com>
3737
3738 * stdlib/divmod_1.c: Use correct type for dummy variable.
3739 * stdlib/mod_1.c: Likewise.
3740
3741 2008-10-16 Ulrich Drepper <drepper@redhat.com>
3742
3743 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
3744
3745 2008-10-16 Jakub Jelinek <jakub@redhat.com>
3746
3747 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
3748 __nonnull order for C++.
3749 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
3750 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
3751
3752 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
3753
3754 * stdlib/longlong.h: Update from GCC.
3755
3756 2008-10-09 Jakub Jelinek <jakub@redhat.com>
3757 David S. Miller <davem@davemloft.net>
3758
3759 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
3760 make sure any registers used with 64-bit 'branch-on-register'
3761 instructions have their top 32-bits clear.
3762 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
3763 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
3764
3765 2008-09-18 Andreas Schwab <schwab@suse.de>
3766
3767 [BZ #6942]
3768 * resolv/res_send.c (send_vc): Fix use of unaligned address.
3769 Properly handle partial reads.
3770
3771 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
3772
3773 * elf/elf.h (STO_MIPS_PLT): New.
3774 (R_MIPS_COPY): New.
3775 (R_MIPS_JUMP_SLOT): New.
3776 (R_MIPS_NUM): Redefine to 128.
3777 (DT_MIPS_PLTGOT): New.
3778 (DT_MIPS_RWPLT): New.
3779 (DT_MIPS_NUM): Redefine to 0x35.
3780
3781 2008-10-01 Ulrich Drepper <drepper@redhat.com>
3782
3783 * timezone/africa: Update from tzdata2008f.
3784 * timezone/asia: Likewise.
3785 * timezone/australasia: Likewise.
3786 * timezone/europe: Likewise.
3787 * timezone/leapseconds: Likewise.
3788 * timezone/northamerica: Likewise.
3789 * timezone/southamerica: Likewise.
3790 * timezone/zone.tab: Likewise.
3791
3792 2008-09-30 Ulrich Drepper <drepper@redhat.com>
3793
3794 * nscd/connections.c: Disable use of paccept for now.
3795
3796 2008-09-29 Ulrich Drepper <drepper@redhat.com>
3797
3798 * socket/Versions: Remove paccept export for GLIBC_2.9.
3799 * socket/Makefile (routines): Remove paccept.
3800 * socket/sys/socket.h: Remove paccept declaration.
3801
3802 * po/sv.po: Update from translation team.
3803
3804 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
3805
3806 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
3807 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3808
3809 2008-09-16 Ulrich Drepper <drepper@redhat.com>
3810
3811 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
3812 Patch by Olivier Fourdan <ofourdan@redhat.com>.
3813
3814 2008-09-15 Ulrich Drepper <drepper@redhat.com>
3815
3816 * sunrpc/rpc/svc.h: Declare svcfd_create.
3817 Patch by Michael Solberg <msolberg@redhat.com>.
3818
3819 2008-09-12 Flavio Leitner <fleitner@redhat.com>
3820 Ulrich Drepper <drepper@redhat.com>
3821
3822 * malloc/malloc.c (public_vALLOc): Try other arenas in case
3823 _int_valloc fails.
3824 (public_pVALLOc): Likewise.
3825
3826 2008-09-02 Andreas Jaeger <aj@suse.de>
3827
3828 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
3829 commit.
3830
3831 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
3832
3833 [BZ #6860]
3834 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
3835
3836 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
3837
3838 * Makefile (check-data): Check data directory in add-ons.
3839 * elf/Makefile (check-data): Likewise.
3840
3841 2008-08-18 Roland McGrath <roland@redhat.com>
3842
3843 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
3844 * configure: Regenerated.
3845 * config.make.in (cflags-cpu): New substituted variable.
3846 (with-cpu): Variable removed.
3847 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
3848
3849 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
3850
3851 [BZ #6845]
3852 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
3853 __signbitl definition and __LONG_DOUBLE_128__ guard from:
3854 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
3855 redundant. Functions which call floating point assembler operations
3856 should go into a sysdeps powerpc/fpu directory.
3857
3858 2008-08-15 Ulrich Drepper <drepper@redhat.com>
3859
3860 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
3861 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3862
3863 2008-08-14 Ulrich Drepper <drepper@redhat.com>
3864
3865 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
3866
3867 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
3868 change related to AT_EXECFN. We cannot use that string.
3869 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
3870 _dl_execfn member.
3871 * elf/dl-support.c: Remove _dl_execfn variable.
3872 (_dl_aux_init): Remove handling of AT_EXECFN.
3873 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
3874 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
3875
3876 2008-08-13 Ulrich Drepper <drepper@redhat.com>
3877
3878 [BZ #6544]
3879 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
3880 byte gets added to writes and seeks from the end use the length of
3881 the buffer and not the currently terminating NUL byte.
3882
3883 [BZ #6634]
3884 * login/utmp_file.c (getutent_r_file): Take additional parameter.
3885 Set to true if locking failed.
3886 (getutid_r_file): Adjust caller.
3887 (pututline_file): Likewise. Return NULL in this case.
3888 Patch mostly by halesh.s@gmail.com.
3889
3890 2008-08-12 Ulrich Drepper <drepper@redhat.com>
3891
3892 [BZ #6589]
3893 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
3894 Define.
3895 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
3896
3897 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
3898
3899 [BZ #6839]
3900 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
3901 macro since it is now available in elf/dynamic-link.h.
3902
3903 2008-08-12 Roland McGrath <roland@frob.com>
3904
3905 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
3906 in case used outside of libc.
3907 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
3908
3909 2008-08-11 Ulrich Drepper <drepper@redhat.com>
3910
3911 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
3912 directly instead of going through dn_comp.
3913
3914 2008-08-11 Aurelien Jarno <aurel32@debian.org>
3915
3916 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3917 Fix asm constraints.
3918
3919 2008-08-07 Ulrich Drepper <drepper@redhat.com>
3920
3921 [BZ #6790]
3922 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
3923 (IPV6_PMTUDISC_PROBE): Likewise.
3924
3925 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
3926
3927 [BZ #6791]
3928 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
3929
3930 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
3931 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3932
3933 [BZ #6817]
3934 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
3935 Added the members 'vsx' and 'arch_2_06'.
3936 (_dl_powerpc_platforms): Add the member 'power7'.
3937 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
3938 to reflect the changes required by VSX and ISA 2.06.
3939 Modify _DL_PLATFORMS_COUNT to reflect the addition of
3940 'power7'.
3941 Defined PPC_PLATFORM_POWER7.
3942 (_dl_string_platform): Add support for POWER7.
3943 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
3944 capability and ISA 2.06.
3945
3946 2008-08-07 Ulrich Drepper <drepper@redhat.com>
3947
3948 [BZ #6824]
3949 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
3950 macro to detect use of 128 bit long double.
3951 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
3952
3953 2008-08-05 Ulrich Drepper <drepper@redhat.com>
3954
3955 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
3956
3957 [BZ #5794]
3958 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
3959 parameters.
3960 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
3961 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
3962
3963 2008-08-03 Ulrich Drepper <drepper@redhat.com>
3964
3965 * nscd/connections.c (main_loop_poll): Pass a buffer which is
3966 guaranteed to be large enough to read inotify event. Ignore
3967 EAGAIN error. Better error message. Add branch predicition.
3968 (main_loop_epoll): Likewise.
3969
3970 2008-08-02 Roland McGrath <roland@frob.com>
3971
3972 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
3973 Add memory clobbers.
3974
3975 2008-08-02 Ulrich Drepper <drepper@redhat.com>
3976
3977 * manual/arith.texi: Avoid @strong{Note:}.
3978 * manual/creature.texi: Likewise.
3979 * manual/filesys.texi: Likewise.
3980 * manual/math.texi: Likewise.
3981 * manual/memory.texi: Likewise.
3982 * manual/resource.texi: Likewise.
3983 * manual/syslog.texi: Likewise.
3984 * manual/time.texi: Likewise.
3985
3986 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
3987 to prevent warning.
3988
3989 2008-08-01 Ulrich Drepper <drepper@redhat.com>
3990
3991 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
3992 new epoll_create1 interface.
3993 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3994 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
3995 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3996
3997 * include/arpa/nameser.h (NS_GET16): Use const pointer.
3998 (NS_GET32): Likewise.
3999
4000 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
4001 syscalls, too.
4002
4003 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
4004 use the AT_EXECFN value if it is no absolute path.
4005 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
4006 __ASSUME_AT_EXECFN.
4007
4008 * Versions.def: Add GLIBC_2.9 to libresolv.
4009 * include/resolv.h: Remove hidden proto declarations for __ns_*
4010 functions. Add them for __dn_count_labels and __p_secstodate.
4011 * include/arpa/nameser.h: Add a number of hidden proto declarations.
4012 Define ns_msg_getflags macro here.
4013 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
4014 and __p_secstodate.
4015 * resolv/Versions: Export functions from <arpa/nameser.h> from
4016 libresolv in version GLIBC_2.9.
4017 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
4018 hidden definitions.
4019 * resolv/ns_netint.c: Likewise.
4020 * resolv/ns_parse.c: Likewise.
4021 * resolv/ns_print.c: Likewise.
4022 * resolv/ns_samedomain.c: Likewise.
4023 * resolv/ns_ttl.c: Likewise.
4024 * resolv/arpa/nameser_compat.h: Likewise.
4025 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
4026 function calls.
4027 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
4028 instead of ns_get16.
4029 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
4030 __ns_get32 instead of ns_get16 and ns_get32 respectively.
4031 (gaih_getanswer_slice): Likewise.
4032 * resolv/Makefile (libresolv-routines): Add ns_date.
4033 * resolv/ns_date.c: New file.
4034
4035 * elf/Makefile (check-localplt.out): Also check libresolv and
4036 libcrypt.
4037
4038 2008-07-31 Ulrich Drepper <drepper@redhat.com>
4039
4040 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4041 __ASSUME_O_CLOEXEC.
4042
4043 2008-07-30 Ulrich Drepper <drepper@redhat.com>
4044
4045 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
4046 buffer passed to NSS functions.
4047
4048 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
4049
4050 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
4051 Define.
4052
4053 * misc/syslog.c (openlog_internal): Fix compile problem.
4054
4055 2008-07-28 Roland McGrath <roland@redhat.com>
4056
4057 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
4058
4059 2008-07-28 Ulrich Drepper <drepper@redhat.com>
4060
4061 * io/ftw.c (add_object): Remove inline to avoid warning.
4062
4063 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
4064
4065 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
4066 Use it instead of locally defined resplen2 variable.
4067 (res_nsend): Adjust for __libc_res_nsend interface change.
4068 (send_vc): Initialize *resplen2 if necessary. Read length of
4069 package into an appropriately aligned variable. Store converted length
4070 in new variable and use it appropriately.
4071 Add branch prediction help.
4072 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
4073 and pass it on to __libc_res_nsend. Adjust all callers.
4074 (__libc_res_nsearch): Likewise.
4075 (__libc_res_nqeurydomain): Likewise.
4076 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
4077 change.
4078 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
4079 Define resplen2 variable and pass it to __libc_res_nsearch and then
4080 to gaih_getanswer.
4081 (getanswer_r): In case of incorrect DNS data don't overread buffer.
4082 Add branch prediction.
4083 (gaih_getanswer_slice): Likewise. Check for invalid data types.
4084 (gaih_getanswer): Don't decode second slice if first one failed due
4085 to a too small buffer. Don't let not found status of second
4086 decoder shadow results of the first.
4087 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
4088 and __libc_res_nquery interface changes
4089 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
4090 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
4091 __libc_res_nsearch, and __libc_res_nsend.
4092 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
4093 change.
4094 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
4095 __libc_res_nsearch interface changes.
4096
4097 2008-07-27 Ulrich Drepper <drepper@redhat.com>
4098
4099 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
4100
4101 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
4102 file descriptors with close-on-exec set.
4103 (exec_comm_child): Fix the case where the write end of the pipe is
4104 STDOUT_FILENO already. In case it is, clear close-on-exec.
4105
4106 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
4107 * io/pipe2.c: Likewise.
4108 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
4109 instead of __ASSUME_PACCEPT.
4110 * include/unistd.h: Declare __have_pipe2.
4111 * libio/iopopen.c: Implement "e" flag.
4112 * libio/Makefile (tests): Add tst-popen1.
4113 * libio/tst-popen1.c: New file.
4114
4115 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
4116 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4117
4118 2008-07-26 Ulrich Drepper <drepper@redhat.com>
4119
4120 [BZ #6771]
4121 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
4122 success call of _IO_SEEKOFF or calls which failed because the
4123 descriptor is for a pipe.
4124
4125 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
4126 magic number.
4127
4128 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
4129
4130 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
4131 F_SETFD use if we know fopen set the flag.
4132
4133 * login/utmp_file.c (setutent_file): Minor optimization in case
4134 O_CLOEXEC is available.
4135
4136 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
4137
4138 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
4139 * elf/Makefile: Use pie-ccflag variable.
4140 * nscd/Makefile: Likewise.
4141 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
4142
4143 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
4144
4145 [BZ #6724]
4146 * Versions.def: Add GLIBC_2.9 version tag for libutil.
4147 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
4148 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
4149 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
4150 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
4151 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
4152 utmp32, utmpx32 and login32.
4153 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
4154 versions of struct utmp functions to libc and libutil.
4155 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
4156 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
4157 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
4158 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
4159 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
4160 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
4161 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
4162 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
4163 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
4164 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
4165 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
4166 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
4167 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
4168 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
4169 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
4170 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
4171 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
4172 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
4173 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
4174 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
4175 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
4176 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
4177
4178 2008-07-26 Ulrich Drepper <drepper@redhat.com>
4179
4180 * scripts/gen-as-const.awk: Generate more widely usable code by
4181 using 64-bit arithmetic.
4182
4183 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
4184 the same treatment as narrow output code in last patch.
4185
4186 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
4187
4188 [BZ #6763]
4189 * elf/dl-load.c (local_strdup): Remove inline.
4190 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
4191 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
4192 part of the object.
4193
4194 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
4195
4196 2008-07-25 Ulrich Drepper <drepper@redhat.com>
4197
4198 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
4199 the new syscalls, too.
4200
4201 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
4202 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
4203
4204 [BZ #6698]
4205 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
4206 parameter for end of buffer. If temporary copy is too large use
4207 malloc.
4208 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
4209 interface change.
4210 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
4211 string rewrite when allocating buffer.
4212
4213 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
4214 syscalls, too.
4215
4216 * nscd/connections.c (nscd_init): Clean up fcntl call.
4217
4218 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
4219 SOCK_NONBLOCK if possible.
4220
4221 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
4222 SOCK_CLOEXEC if available.
4223
4224 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
4225 __libc_clntudp_bufcreate_internal.
4226 * include/sys/socket.h: Declare __have_sock_cloexec.
4227 * socket/Makefile (aux): Add have_sock_cloexec.
4228 * socket/have_sock_cloexec.c: New file.
4229 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
4230 __libc_clntudp_bufcreate.
4231 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
4232 which takes an additional parameter. Create socket with non-blocking
4233 mode and close-on-exec flag set, if wanted.
4234 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
4235 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
4236 instead of clntudp_create. The socket has already the close-on-exec
4237 flag set if SOCK_CLOEXEC is defined.
4238
4239 2008-07-24 Ulrich Drepper <drepper@redhat.com>
4240
4241 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4242 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
4243 appropriate.
4244 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
4245 non-blocking mode by using socket, paccept, and inotify_init1.
4246
4247 * Versions.def (glibc): Add GLIBC_2.9.
4248 * io/Makefile (routines): Add dup3 and pipe2.
4249 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
4250 * io/dup3.c: New file.
4251 * io/pipe2.c: New file.
4252 * posix/unistd.h: Declare dup3 and pipe2.
4253 * socket/Makefile (routines): Add paccept.
4254 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
4255 * socket/paccept.c: New file.
4256 * socket/sys/socket.h: Declare paccept.
4257 * sysdeps/unix/syscalls.list: Add entry for dup3.
4258 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
4259 epoll_create2 and inotify_init1.
4260 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
4261 * sysdeps/unix/sysv/linux/paccept.c: New file.
4262 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
4263 possible.
4264 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
4265 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
4266 inotify_init1, and pipe2 entries.
4267 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
4268 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
4269 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
4270 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
4271 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
4272 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
4273 SOCK_NONBLOCK.
4274 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
4275 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
4276 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
4277 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
4278 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
4279 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
4280 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
4281 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
4282 EPOLL_NONBLOCK. Declare epoll_create2.
4283 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
4284 EFD_NONBLOCK.
4285 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
4286 IN_NONBLOCK. Declare inotify_init1.
4287 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
4288 SFD_NONBLOCK.
4289 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
4290 TFD_NONBLOCK.
4291
4292 * elf/elf.h: Define AT_EXECFN.
4293 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
4294 LD_ORIGIN_PATH.
4295 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
4296 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
4297 if __ASSUME_AT_EXECFN is defined.
4298 (_dl_aux_init): Handle AT_EXECFN.
4299 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
4300 for 2.6.27 and up.
4301 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
4302 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
4303 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
4304 _dl_execfn if available and avoid compatibility code if
4305 __ASSUME_AT_EXECFN is defined.
4306
4307 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
4308 _dl_discover_osversion only for older kernels.
4309
4310 2008-07-22 Roland McGrath <roland@frob.com>
4311
4312 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
4313
4314 2008-07-21 Roland McGrath <roland@frob.com>
4315
4316 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
4317 returned too much data out of line.
4318
4319 2008-07-20 Ulrich Drepper <drepper@redhat.com>
4320
4321 * locale/setlocale.c (setname): Remove inline to avoid compiler
4322 warning.
4323
4324 [BZ #6712]
4325 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
4326
4327 2008-07-15 Ulrich Drepper <drepper@redhat.com>
4328
4329 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
4330 doesn't manage to write anything, fail.
4331
4332 * malloc/hooks.c (__malloc_check_init): Remove printf.
4333
4334 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4335
4336 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
4337
4338 2008-07-12 Ulrich Drepper <drepper@redhat.com>
4339
4340 * nscd/connections.c (main_loop_poll): Fix handling of read errors
4341 from inotify.
4342 (main_loop_epoll): Likewise.
4343
4344 2008-07-09 Ulrich Drepper <drepper@redhat.com>
4345
4346 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
4347
4348 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
4349 if DEBUG is defined.
4350
4351 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
4352 query. Adjust buffer size computation for padding.
4353
4354 2008-07-08 Ulrich Drepper <drepper@redhat.com>
4355
4356 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
4357 * stdio-common/tst-setvbuf1.c: New file.
4358 * stdio-common/tst-setvbuf1.expect: New file.
4359
4360 [BZ #6719]
4361 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
4362 when selecting fully-buffered stream.
4363 Patch by Wang Xin <wxinee@gmail.com>.
4364
4365 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
4366
4367 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4368 (__open_2): New function.
4369 (__open64_2): New alias to __open_2.
4370 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
4371 (__openat_2): New function.
4372 (__openat64_2): New alias to __openat_2.
4373
4374 2008-07-06 Ulrich Drepper <drepper@redhat.com>
4375
4376 [BZ #6723]
4377 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4378
4379 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4380
4381 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
4382 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
4383 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
4384 __hurd_dfail.
4385 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4386 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4387 * sysdeps/mach/hurd/send.c (__send): Likewise.
4388 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
4389 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
4390
4391 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4392
4393 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
4394 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
4395 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
4396 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
4397 * hurd/get-host.c (_hurd_get_host_config): Likewise.
4398 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
4399
4400 2008-06-27 Ulrich Drepper <drepper@redhat.com>
4401
4402 [BZ #6657]
4403 * time/strptime_l.c: Don't clear s.era_cnt after successful match
4404 of %EY.
4405 Patch by Petr Baudis.
4406
4407 2008-06-26 Ulrich Drepper <drepper@redhat.com>
4408
4409 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
4410 Patch by Peter Jones <pjones@redhat.com>.
4411
4412 2008-06-25 Ulrich Drepper <drepper@redhat.com>
4413
4414 [BZ #6654]
4415 * stdlib/canonicalize.c (__realpath): readlink can write too much
4416 into the buffer on platforms without PATH_MAX.
4417
4418 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
4419
4420 [BZ #6653]
4421 * posix/tst-regex.c (main): Rename to...
4422 (do_test): ... this. Remove cmdline option processing.
4423 (TIMEOUT): Define.
4424 (TEST_FUNCTION): Define.
4425 (CMDLINE_OPTIONS): Define.
4426
4427 2008-06-25 Ulrich Drepper <drepper@redhat.com>
4428
4429 [BZ #5210]
4430 * configure.in: Add -Werror to -fstack-protector test to catch
4431 unsupported architectures.
4432 Patch by Gilles Esponasse <g.esp@free.fr>.
4433
4434 2008-06-17 Joseph Myers <joseph@codesourcery.com>
4435
4436 * stdlib/tst-setcontext.c: Set back_in_main before exit if
4437 getcontext returns ENOSYS.
4438
4439 2008-06-18 Ulrich Drepper <drepper@redhat.com>
4440
4441 * nscd/connections.c (main_loop_poll): Fix test for read error.
4442 (main_loop_epoll): Likewise.
4443
4444 2008-06-13 Ulrich Drepper <drepper@redhat.com>
4445
4446 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
4447 better place so it is not called when nscd is used.
4448
4449 * nscd/connections.c: Also recognize and handle changes to the
4450 resolver configuration file.
4451
4452 2008-06-12 Ulrich Drepper <drepper@redhat.com>
4453
4454 * time/strftime.c: Pass reference to tzset_called around to handle
4455 recursive calls.
4456
4457 [BZ #6612]
4458 * time/strftime.c (__strftime_internal): Call tzset() only
4459 when printing timezone-dependent values.
4460 Based on a patch by Petr Baudis <pasky@suse.cz>.
4461
4462 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
4463 unconditionally use second gaih_getanswer_slice result.
4464
4465 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
4466 (getaddrinfo): RES must always be non-NULL.
4467
4468 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4469
4470 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
4471 cr[34] registers.
4472 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
4473 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
4474 Likewise.
4475 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
4476 register.
4477
4478 2008-06-12 Ulrich Drepper <drepper@redhat.com>
4479
4480 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
4481 fields.
4482 * nscd/connections.c (inotify_fd): New variable.
4483 (nscd_init): Try to open an inotify descriptor.
4484 If successful, watch files for databases using inotify instead of
4485 having prune threads stat the files.
4486 (nscd_run_prune): Recognize clear_cache flag being set and call
4487 prune_cache appropriately.
4488 (main_loop_poll): Add inotify descriptor to wait set and handle the
4489 reported changes.
4490 (main_loop_epoll): Likewise.
4491 * nscd/cache.c (prune_cache): Don't stat files for databases if
4492 inotify is used.
4493 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
4494 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
4495
4496 * nscd/grpcache.c (cache_addgr): Correctly compute size of
4497 fixed-size portion of the record.
4498 * nscd/servicescache.c (cache_addserv): Likewise.
4499 * nscd/pwdcache.c (cache_addpw): Likewise.
4500 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4501
4502 2008-06-11 Ulrich Drepper <drepper@redhat.com>
4503
4504 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
4505 out we don't use uninitialized memory.
4506
4507 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
4508 the client.
4509
4510 2008-06-10 Ulrich Drepper <drepper@redhat.com>
4511
4512 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
4513 ignore T_DNAME messages.
4514 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
4515
4516 2008-06-05 Jakub Jelinek <jakub@redhat.com>
4517
4518 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
4519 Avoid segfault if first GETC returns eof/'\0'/'\n'.
4520
4521 2008-06-03 Jakub Jelinek <jakub@redhat.com>
4522
4523 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
4524 instead of portstr to nscd_getserv_r. Patch by
4525 Roman Kagan <rkagan@mail.ru>.
4526
4527 2008-05-26 Jim Meyering <meyering@redhat.com>
4528
4529 Remove more useless "if" tests before "free".
4530 * include/inline-hashtab.h (htab_delete): Likewise.
4531 * libio/freopen.c (freopen): Likewise.
4532 * libio/freopen64.c (freopen64): Likewise.
4533 * locale/programs/ld-collate.c (collate_read): Likewise.
4534 * misc/fstab.c (libc_freeres_fn): Likewise.
4535 * posix/glob.c (globfree): Likewise.
4536
4537 2008-05-24 Ulrich Drepper <drepper@redhat.com>
4538
4539 * string/Makefile (strop-tests): Add memmem.
4540 * string/test-memmem.c: New file.
4541 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
4542 (test_init): Size buf1 according to BUF1PAGES.
4543
4544 2008-05-24 Jakub Jelinek <jakub@redhat.com>
4545
4546 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
4547 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
4548 (CFLAGS-scanf17.c): New.
4549 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
4550 * stdio-common/scanf15.c (main): Likewise.
4551 * stdio-common/scanf16.c: New file.
4552 * stdio-common/scanf17.c: New file.
4553
4554 2008-05-24 Ulrich Drepper <drepper@redhat.com>
4555
4556 * resolv/res_send.c (send_dg): If we already have one of two
4557 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
4558 use the one answer insted of failing.
4559
4560 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
4561
4562 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
4563 being executed on PowerPC as the expected result exceeds IBM
4564 long double 128 __LDBL_MAX__.
4565
4566 2008-05-21 Roland McGrath <roland@redhat.com>
4567
4568 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
4569
4570 * Makefile (check-data): Use $(abi-name) before other guesses.
4571 Look in $(add-ons) dirs before scripts/data/.
4572 * elf/Makefile (check-data): Likewise.
4573
4574 * scripts/soversions.awk: Grok ABI line.
4575 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
4576 Emit definition for abi-name variable.
4577
4578 2008-05-21 Ulrich Drepper <drepper@redhat.com>
4579
4580 * string/endian.h: Define new fixed-size hto* and *toh macros only
4581 if [__USE_BSD].
4582
4583 * iconvdata/Depend: Add localedata.
4584
4585 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
4586
4587 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
4588
4589 2008-05-08 David S. Miller <davem@davemloft.net>
4590
4591 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
4592 HIDDEN_JUMPTARGET.
4593 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4594 (__SYSCALL_CLOBBERS): Remove %g* registers.
4595 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4596 (__SYSCALL_CLOBBERS): Likewise.
4597 * scripts/data/localplt-sparc-linux-gnu.data: New file.
4598 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
4599
4600 2008-05-21 Jakub Jelinek <jakub@redhat.com>
4601
4602 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
4603 (CALL_ERRNO_LOCATION): Define.
4604 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4605 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
4606 (CALL_ERRNO_LOCATION): Define.
4607 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
4608 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
4609 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
4610
4611 2008-05-20 Ulrich Drepper <drepper@redhat.com>
4612
4613 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
4614 variable.
4615
4616 2008-05-20 Jakub Jelinek <jakub@redhat.com>
4617
4618 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
4619 (FIRST_FRAME_POINTER): Define.
4620
4621 2008-05-09 David S. Miller <davem@davemloft.net>
4622
4623 * sysdeps/sparc/sparc64/backtrace.c: New file.
4624
4625 2008-05-14 David S. Miller <davem@davemloft.net>
4626
4627 * sysdeps/sparc/machine-gmon.h: New file.
4628 * sysdeps/sparc/sparc-mcount.S: Likewise.
4629 * sysdeps/sparc/Makefile: Add sparc-mcount target to
4630 sysdep_routines in gmon directory.
4631
4632 2008-05-19 Jakub Jelinek <jakub@redhat.com>
4633
4634 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
4635
4636 2008-05-19 Ulrich Drepper <drepper@redhat.com>
4637
4638 * resolv/res_query.c (__libc_res_nquery): In case one of two
4639 answer was too short don't try to read that answer's header.
4640
4641 * resolv/res_send.c (send_dg): In case of timeout and there are
4642 two queries and one has been answered, return value indicating
4643 success.
4644
4645 2008-05-18 Ulrich Drepper <drepper@redhat.com>
4646
4647 * nscd/cache.c (cache_add): Take additional parameter specifying
4648 whether this is in response of a cache refill. Check alignment
4649 of package data. Revamp waking of pruning thread.
4650 (prune_cache): Small optimization.
4651 * nscd/nscd.h: Adjust cache_add prototypes.
4652 * nscd/aicache.c: Adjust cache_add calls.
4653 * nscd/grpcache.c: Likewise.
4654 * nscd/hstcache.c: Likewise.
4655 * nscd/initgrcache.c: Likewise.
4656 * nscd/pwdcache.c: Likewise.
4657 * nscd/servicescache.c: Likewise.
4658 * nscd/connections.c (restart): Really disable cache use before
4659 exec attempt. If it fails, reenable cache.
4660 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
4661 time to max to be able to notice concurrent cache additions. Unlock
4662 prune_lock while performing gc. Afterwards compute wakeup time with
4663 current wakeup_time value in mind.
4664
4665 2008-05-17 Ulrich Drepper <drepper@redhat.com>
4666
4667 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
4668
4669 * nscd/mem.c (gc): Correctly determine highest used array element
4670 in mark.
4671
4672 * nscd/mem.c (markrange): Add assert to check entries are all
4673 aligned. Small cleanup in bitmap use.
4674
4675 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
4676 blockoff of type nscd_ssize_t.
4677 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
4678 (mempoll_alloc): Record block offset and not address.
4679
4680 * nscd/mem.c (gc): Fix test for stack overuse.
4681
4682 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
4683 more asserts.
4684
4685 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
4686 entry is available, believe it.
4687
4688 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
4689 no answers return NSS_STATUS_NOTFOUND.
4690 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
4691 buffer does not have any content.
4692
4693 2008-05-16 Ulrich Drepper <drepper@redhat.com>
4694
4695 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
4696
4697 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
4698 lookup, don't assign canon unconditionally.
4699
4700 2008-05-14 Ulrich Drepper <drepper@redhat.com>
4701
4702 * string/Makefile (distribute): Add str-two-way.h.
4703
4704 2008-03-29 Eric Blake <ebb9@byu.net>
4705
4706 Rewrite string searches to O(n) rather than O(n^2).
4707 * string/str-two-way.h: New file. For linear fixed-allocation
4708 string searching.
4709 * string/memmem.c: New implementation.
4710 * string/strstr.c: New implementation.
4711 * string/strcasestr.c: New implementation.
4712
4713 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
4714
4715 * posix/regcomp.c (optimize_utf8): Add a note on why we test
4716 opr.ctx_type.
4717 (calc_first): Initialize constraint field.
4718 (duplicate_node_closure): Use it instead of special casing ANCHORS.
4719 Use search_duplicated_node to avoid loops. Fix grammar.
4720 (duplicate_node): Merge constraint field for all node types.
4721 (calc_eclosure_iter): Look at constraint field for all node types.
4722 * posix/regex_internal.c (create_cd_newstate): Don't look at
4723 create_cd_newstate.
4724
4725 2008-05-14 Ulrich Drepper <drepper@redhat.com>
4726
4727 [BZ #6428]
4728 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
4729
4730 [BZ #6442]
4731 * string/endian.h: Add macros for fixed-size endian conversion.
4732 * bits/byteswap.h: Allow inclusion from <endian.h>.
4733 * sysdeps/i386/bits/byteswap.h: Likewise.
4734 * sysdeps/ia64/bits/byteswap.h: Likewise.
4735 * sysdeps/s390/bits/byteswap.h: Likewise.
4736 * sysdeps/x86_64/bits/byteswap.h: Likewise.
4737 * string/Makefile (tests): Add tst-endian.
4738 * string/tst-endian.c: New file.
4739
4740 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
4741 Patch by Reuben Thomas.
4742
4743 2008-05-14 Joseph Myers <joseph@codesourcery.com>
4744
4745 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
4746
4747 2008-05-14 Ulrich Drepper <drepper@redhat.com>
4748
4749 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
4750
4751 [BZ #6461]
4752 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
4753 Add missing braces.
4754 (BODY for __gconv_transform_internal_ascii): Likewise.
4755
4756 [BZ #6472]
4757 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
4758 to be treated like link-local addresses.
4759 (match_prefix): Don't treat IPv4 loopback address special when
4760 converting to v4 mapped addressed.
4761
4762 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
4763 if necessary.
4764 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
4765 * posix/tst-rfc3484-2.c: Likewise.
4766 * posix/tst-rfc3484-3.c: Likewise.
4767
4768 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
4769 and SCTP.
4770
4771 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
4772
4773 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
4774
4775 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
4776
4777 2008-05-13 Ulrich Drepper <drepper@redhat.com>
4778
4779 * po/lt.po: New file. From Lituanian translation team.
4780
4781 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
4782
4783 Introduce TLS descriptors for i386 and x86_64.
4784 * include/inline-hashtab.h: New file, copied from 2005's
4785 libiberty, with fix for memory leak imported afterwards by
4786 Glauber de Oliveira Costa.
4787 * elf/tlsdeschtab.h: New file.
4788 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
4789 (_dl_allocate_static_tls): ... here. Rearrange failure path.
4790 (CHECK_STATIC_TLS): Move to...
4791 * elf/dynamic-link.h: ... this file.
4792 (TRY_STATIC_TLS): New macro.
4793 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
4794 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
4795 R_386_TLS_DESC): Define.
4796 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
4797 binutils.
4798 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
4799 R_X86_64_TLSDESC): Define.
4800 (R_386_NUM, R_X86_64_NUM): Adjust.
4801 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
4802 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4803 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4804 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
4805 release tlsdesc_table.
4806 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
4807 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
4808 (elf_machine_rel): Handle R_386_TLS_DESC.
4809 (elf_machine_rela): Likewise.
4810 (elf_machine_lazy_rel): Likewise.
4811 (elf_machine_lazy_rela): Likewise.
4812 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
4813 * sysdeps/i386/dl-tlsdesc.S: New file.
4814 * sysdeps/i386/dl-tlsdesc.h: New file.
4815 * sysdeps/i386/tlsdesc.c: New file.
4816 * sysdeps/i386/tlsdesc.sym: New file.
4817 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
4818 tlsdesc_table.
4819 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
4820 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
4821 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
4822 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
4823 release tlsdesc_table.
4824 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
4825 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
4826 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
4827 (elf_machine_rel): Handle R_X86_64_TLSDESC.
4828 (elf_machine_rela): Likewise.
4829 (elf_machine_lazy_rel): Likewise.
4830 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
4831 (__tls_get_addr): Do not declare for non-shared compiles.
4832 * sysdeps/x86_64/dl-tlsdesc.S: New file.
4833 * sysdeps/x86_64/dl-tlsdesc.h: New file.
4834 * sysdeps/x86_64/tlsdesc.c: New file.
4835 * sysdeps/x86_64/tlsdesc.sym: New file.
4836 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
4837 tlsdesc_table for both 32- and 64-bit structs.
4838
4839 2008-05-11 Ulrich Drepper <drepper@redhat.com>
4840
4841 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
4842 its own function. This reduces the frame setup costs and more.
4843
4844 2008-02-11 Joseph Myers <joseph@codesourcery.com>
4845
4846 [BZ #3406]
4847 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
4848 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
4849
4850 2008-05-11 Ulrich Drepper <drepper@redhat.com>
4851
4852 * io/openat.c (__openat_2): Also pass fd to __openat.
4853 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
4854 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
4855
4856 * string/tester.c (test_memcmp): Add a few more tests.
4857 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
4858
4859 2008-05-10 Ulrich Drepper <drepper@redhat.com>
4860
4861 * nscd/cache.c (cache_add): Before returning with failure and this
4862 is the first use of the record, mark it as unusable.
4863 * nscd/aicache.c: Don't touch the dataset after cache_add returns
4864 reporting a failure.
4865 * nscd/grpcache.c: Likewise
4866 * nscd/hstcache.c: Likewise.
4867 * nscd/initgrcache.c: Likewise.
4868 * nscd/pwdcache.c: Likewise.
4869 * nscd/servicescache.c: Likewise.
4870
4871 2008-05-10 Roland McGrath <roland@redhat.com>
4872
4873 [BZ #6505]
4874 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
4875
4876 2008-05-08 David S. Miller <davem@davemloft.net>
4877
4878 * misc/truncate64.c (truncate64): Use __truncate not truncate.
4879
4880 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
4881 (__ieee754_y0l): Likewise.
4882 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
4883 (__ieee754_y1l): Likewise.
4884 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
4885 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
4886 frexpl and ldexpl. math_private.h provides them and the latter
4887 is not even used.
4888 (__log1pl): Use __frexpl.
4889
4890 2008-05-10 Ulrich Drepper <drepper@redhat.com>
4891
4892 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
4893 prototypes.
4894 * include/arpa/nameser_compat.h: Define T_UNSPEC.
4895 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
4896 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
4897 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
4898 af==AF_UNSPEC.
4899 (_nss_nis_gethostbyname4_r): New function.
4900 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4901 Change to also handle af==AF_UNSPEC.
4902 (get_tablename): New function. Use it to avoid duplication.
4903 (_nss_nisplus_gethostbyname4_r): New function.
4904 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
4905 available.
4906 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
4907 * nss/nss.h: Define struct gaih_addrtuple.
4908 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
4909 af==AF_UNSPEC.
4910 (_nss_files_gethostbyname4_r): New function.
4911 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
4912 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
4913 calls.
4914 * resolv/res_query.c (__libc_res_nquery): Take two additional
4915 parameters for second answer buffer. Handle type=T_UNSPEC to mean
4916 look up IPv4 and IPv6.
4917 Change all callers.
4918 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
4919 for an additional query and answer buffer. Pass to send_vc and
4920 send_dg.
4921 (send_vc): Send possibly two requests and receive two answers.
4922 (send_dg): Likewise.
4923 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
4924 __libc_res_nquery.
4925 (_nss_dns_gethostbyname4_r): New function.
4926 (gaih_getanswer_slice): Likewise.
4927 (gaih_getanswer): Likewise.
4928 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
4929 __libc_res_nquery call.
4930 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
4931 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
4932 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
4933 available.
4934
4935 2008-05-05 David S. Miller <davem@davemloft.net>
4936
4937 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
4938 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
4939
4940 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4941
4942 Fix termios bit macros.
4943 Move *DLY definitions where they belong, in termios.h.
4944 Add *[0-3] definitions.
4945 Fixes confusion between VT and FF.
4946 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
4947 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
4948 are already defined to avoid collision with termios.h.
4949 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
4950 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
4951 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
4952 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
4953 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
4954 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
4955 VTDLY, VT0, VT1): New macros.
4956 [__USE_GNU] (OLCUC): Change value of macro.
4957 [__USE_XOPEN] (OFILL): New macro.
4958 [__USE_BSD] (CRTSCTS): Change value.
4959 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
4960 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
4961 (B7200, B14400, B28800, B76800): New macros.
4962
4963 2008-05-01 David S. Miller <davem@davemloft.net>
4964
4965 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
4966 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
4967 (gen-as-const-headers): Add it.
4968 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
4969 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
4970 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
4971 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
4972
4973 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
4974 six system call parameters.
4975 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
4976
4977 2008-04-30 Ulrich Drepper <drepper@redhat.com>
4978
4979 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
4980 RUSAGE_LWP.
4981 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
4982 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
4983
4984 2008-04-30 Jakub Jelinek <jakub@redhat.com>
4985
4986 * stdlib/tst-setcontext.c: Include unistd.h.
4987
4988 2008-04-25 David S. Miller <davem@davemloft.net>
4989
4990 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
4991 Pass "union semun" properly in to sys_ipc, it must be passed
4992 by value, not by reference.
4993
4994 2008-04-22 Jakub Jelinek <jakub@redhat.com>
4995
4996 * nscd/Makefile (nscd-cflags): Set back to -fpie.
4997 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
4998 * nscd/connections.c (mem_in_flight): Likewise.
4999
5000 * nscd/nscd.h (dbs): Make hidden.
5001
5002 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
5003 Avoid returning -1, return 0 instead.
5004
5005 2008-04-19 Ulrich Drepper <drepper@redhat.com>
5006
5007 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
5008
5009 2008-04-15 Ulrich Drepper <drepper@redhat.com>
5010
5011 [BZ #5209]
5012 * sysdeps/unix/sysv/linux/times.c: New file.
5013
5014 [BZ #5381]
5015 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
5016 mem_in_flight_list variables. Add new parameter to mempool_alloc
5017 prototype.
5018 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
5019 appropriate mem_in_flight element.
5020 (gc): Take allocations which have not yet been committed to the
5021 database into account.
5022 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
5023 Reset mem_in_flight before returning.
5024 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
5025 cue it up in mem_in_flight_list.
5026 * nscd/aicache.c: Adjust mempool_alloc call.
5027 * nscd/grpcache.c: Likewise.
5028 * nscd/hstcache.c: Likewise.
5029 * nscd/initgrcache.c: Likewise.
5030 * nscd/pwdcache.c: Likewise.
5031 * nscd/servicescache.c: Likewise.
5032 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
5033 of -fpie.
5034
5035 * nscd/connections.c (handle_request): Provide better error message
5036 in case SELinux forbids the service.
5037
5038 * version.h (VERSION): Bump to 2.8.90.
5039
5040 2008-04-17 Jakub Jelinek <jakub@redhat.com>
5041
5042 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
5043
5044 2008-04-11 Ulrich Drepper <drepper@redhat.com>
5045
5046 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
5047 Also use for 32-bit.
5048 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
5049 __nextafter instead of nextafter to avoid local PLT.
5050 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
5051 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5052
5053 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
5054
5055 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
5056 __fe_nomask_env.
5057 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
5058 <fenv_libc.h> instead of <fenv.h>.
5059 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
5060 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
5061
5062 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
5063
5064 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
5065 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
5066 function from fegetexcept and make old name weak alias.
5067 * include/fenv.h: Declare __fegetexcept.
5068 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
5069 fegetexcept.
5070 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
5071 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
5072 to fetestexcept.
5073 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
5074 instead of frexpl to avoid local PLT.
5075 * math/s_significandl.c (__significandl): Use __ilogbl instead of
5076 ilogbl to avoid local PLT.
5077 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
5078 instead of ldexpl to avoid local PLT.
5079 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
5080 __roundl not roundl to avoid local PLT.
5081 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
5082 local PLTs. Use __sincosl instead of separate sinl and cosl
5083 calls.
5084 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
5085
5086 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
5087 version for ppc64 to 2.4.21 since without it makecontext will fail.
5088
5089 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
5090 to the ABI in use.
5091 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
5092 .__tls_get_addr.
5093 [__powerpc64__] (TLS_GD): Likewise.
5094
5095 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
5096
5097 [BZ #4997]
5098 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
5099 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
5100 mantissa.
5101 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
5102 Likewise. Also account for when x is an odd number between 2^52
5103 and 2^53-1.
5104 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
5105 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
5106 * math/libm-test.inc (lround_test, llround_test): Added test cases to
5107 detect aforementioned erroneous conditions.
5108
5109 2008-04-11 Jakub Jelinek <jakub@redhat.com>
5110
5111 * configure.in: Check for -fno-section-anchors in addition to
5112 -fno-toplevel-reorder.
5113
5114 2008-04-11 Ulrich Drepper <drepper@redhat.com>
5115
5116 * include/features.h (__GLIBC_MINOR__): Bump to 8.
5117
5118 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
5119 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
5120 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
5121 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
5122 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
5123 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
5124
5125 2008-04-11 Jakub Jelinek <jakub@redhat.com>
5126
5127 [BZ #5443]
5128 * time/era.c: Transform __libc_setlocale_lock into rwlock.
5129 * time/alt_digit.c: Likewise.
5130 * wcsmbs/wcsmbsload.c: Likewise.
5131
5132 2008-04-10 Ulrich Drepper <drepper@redhat.com>
5133
5134 * version.h (VERSION): Bump to 2.8.
5135
5136 * timzeone/asia: Update from tzdata2008b.
5137 * timezone/backward: Likewise.
5138 * timezone/europe: Likewise.
5139 * timezone/northamerica: Likewise.
5140 * timezone/southamerica: Likewise.
5141 * timezone/iso3166.tab: Likewise.
5142 * timezone/leapseconds: Likewise.
5143 * timezone/zone.tab: Likewise.
5144 * timezone/private.h: Update from tzcode2008a.
5145 * timezone/zdump.c: Likewise.
5146 * timezone/zic.c: Likewise.
5147
5148 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
5149
5150 [BZ #5741]
5151 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
5152 Define additonal Data Cache Block instruction macros.
5153 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
5154 Replace dcbst with dcbf and sync with sync/isync.
5155
5156 2008-02-21 Alan Modra <amodra@bigpond.net.au>
5157
5158 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
5159 Always set ELF_RTYPE_CLASS_PLT.
5160 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
5161
5162 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
5163
5164 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
5165 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
5166 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
5167 For ISA 2.01 and later replace mftb with mfspr 268.
5168
5169 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
5170
5171 [BZ #5768]
5172 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
5173 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
5174
5175 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
5176
5177 [BZ #5768]
5178 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
5179 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
5180 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
5181 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
5182
5183 2008-04-10 Jakub Jelinek <jakub@redhat.com>
5184
5185 * stdlib/tst-makecontext.c (othervar): New variable.
5186 (cf): Test sign extending the argument to long.
5187
5188 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
5189
5190 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
5191 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
5192 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
5193 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
5194 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
5195 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
5196 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
5197
5198 2008-02-22 Alan Modra <amodra@bigpond.net.au>
5199
5200 * elf/Makefile (tests): Substitute tests-vis-yes here.
5201 (tests-vis-yes): Delete.
5202 (modules-name, modules-vis-yes): Similarly.
5203
5204 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
5205
5206 [BZ #4407]
5207 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
5208 Preserve sign in signgamp when x is zero.
5209
5210 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
5211
5212 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
5213 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
5214 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
5215 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
5216 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
5217 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
5218
5219 2008-04-09 Ulrich Drepper <drepper@redhat.com>
5220
5221 [BZ #4314]
5222 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
5223 buffers.
5224
5225 [BZ #5209]
5226 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
5227 a reserved error value.
5228
5229 * stdlib/tst-makecontext.c: Change parameter to cf to negative
5230 value to check for correct sign extension.
5231
5232 [BZ #5436]
5233 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5234 Copy 64-bit parameter values even though this is not required in
5235 the standard.
5236
5237 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
5238 PC save.
5239
5240 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
5241
5242 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
5243 PC save.
5244
5245 2008-04-09 Jakub Jelinek <jakub@redhat.com>
5246
5247 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
5248
5249 2008-04-09 Ulrich Drepper <drepper@redhat.com>
5250
5251 [BZ #5998]
5252 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
5253 in line-buffered stream failed.
5254 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
5255
5256 2008-04-08 Ulrich Drepper <drepper@redhat.com>
5257
5258 [BZ #6024]
5259 * scripts/abi-versions.awk: If the version specified by
5260 --enable-oldest-abi is older than the first version for this
5261 architecture, use the default version.
5262
5263 * locale/programs/ld-collate.c (collate_read): Ignore script lines
5264 as well when ignoring the whole category.
5265
5266 2008-04-07 Ulrich Drepper <drepper@redhat.com>
5267
5268 [BZ #6042]
5269 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
5270 ETHERTYPE_* definitions.
5271 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
5272
5273 2008-04-07 Jakub Jelinek <jakub@redhat.com>
5274
5275 * stdlib/mbtowc.c (__no_r_state): Remove.
5276 (mbtowc): New static state variable. Use it instead of
5277 __no_r_state.
5278 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
5279 (__wctomb_state): New hidden variable.
5280 (wctomb): Use __wctomb_state instead of __no_r_state.
5281 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
5282 (__wctomb_state): New extern decl.
5283 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
5284
5285 2008-04-07 Ulrich Drepper <drepper@redhat.com>
5286
5287 [BZ #5475]
5288 * resolv/res_init.c: Handle scope IDs in resolv.conf.
5289
5290 2008-04-07 Jakub Jelinek <jakub@redhat.com>
5291
5292 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
5293
5294 2008-04-06 Ulrich Drepper <drepper@redhat.com>
5295
5296 * po/nl.po: Update from translation team.
5297
5298 2008-03-31 Ulrich Drepper <drepper@redhat.com>
5299
5300 [BZ #6007]
5301 * string/strfry.c: Handle empty strings again.
5302
5303 2008-03-30 Ulrich Drepper <drepper@redhat.com>
5304
5305 [BZ #5443]
5306 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
5307 before looking for translation.
5308 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
5309 * locale/freelocale.c: Likewise.
5310 * locale/newlocale.c: Likewise.
5311 * locale/setlocale.c: Likewise.
5312 Based partially on a patch by ryo@np.css.fujitsu.com.
5313
5314 2008-03-30 Jakub Jelinek <jakub@redhat.com>
5315
5316 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
5317 acquiring wrlock. Do conv_tab allocation while holding lock.
5318 * intl/Makefile: Add rules to build and run tst-gettext6.
5319 * intl/tst-gettext6.c: New test.
5320 * intl/tst-gettext6.sh: New file.
5321
5322 2008-03-30 Ulrich Drepper <drepper@redhat.com>
5323
5324 * po/nl.po: Update from translation team.
5325
5326 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
5327 provided through st_blksize, try the default size before giving up.
5328
5329 2008-03-29 Ulrich Drepper <drepper@redhat.com>
5330
5331 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
5332
5333 [BZ #5939]
5334 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
5335
5336 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
5337 error message. POSIX today does not require the messages to be in
5338 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
5339
5340 [BZ #5979]
5341 * sunrpc/auth_unix.c: Unify printed strings.
5342 * sunrpc/clnt_tcp.c: Likewise.
5343 * sunrpc/clnt_udp.c: Likewise.
5344 * sunrpc/clnt_unix.c: Likewise.
5345 * sunrpc/svc_tcp.c: Likewise.
5346 * sunrpc/svc_udp.c: Likewise.
5347 * sunrpc/svc_unix.c: Likewise.
5348 * sunrpc/xdr.c: Likewise.
5349 * sunrpc/xdr_array.c: Likewise.
5350 * sunrpc/xdr_rec.c: Likewise.
5351 * sunrpc/xdr_ref.c: Likewise.
5352 * locale/programs/ld-time.c (time_finish): Unify messages.
5353 * locale/programs/locfile.c (handle_copy): Fix typo.
5354 * nscd/nscd.c (options): Fix typo.
5355
5356 [BZ #5995]
5357 * stdlib/strtod_l.c: Use correct sign for result in one more
5358 underflow case.
5359 Patch by Eric Blake <ebb9@byu.net>.
5360
5361 2008-03-27 Jakub Jelinek <jakub@redhat.com>
5362
5363 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
5364 and creat system calls.
5365 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
5366 call.
5367 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
5368 system calls.
5369 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5370 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5371 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5372
5373 2008-03-27 Ulrich Drepper <drepper@redhat.com>
5374
5375 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
5376 <linux/limits.h> has defined it.
5377 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
5378 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
5379 headers.
5380 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
5381 it instead of ARG_MAX.
5382
5383 2008-03-25 Jakub Jelinek <jakub@redhat.com>
5384
5385 * posix/gai.conf: Fix comment for scope nullbits.
5386 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
5387 default to 128 bits for v4 mapped addresses.
5388
5389 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
5390
5391 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
5392 ptrace call to get the ieee_instruction_pointer from the kernel.
5393 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
5394 ptrace call to set the ieee_instructtion_pointer.
5395 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
5396 Add comment that ieee_instruction_pointer is always 0.
5397
5398 2008-03-09 Andreas Jaeger <aj@suse.de>
5399
5400 [BZ #5857]
5401 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
5402 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
5403 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
5404
5405 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
5406 (rint_test): Likewise.
5407
5408 2008-03-24 Ulrich Drepper <drepper@redhat.com>
5409
5410 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
5411 call.
5412 (__nisfind_server): Similar for open readColdStartFile call.
5413 Patch partially by Jim Meyering.
5414 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
5415 around internal_setent call.
5416
5417 * po/vi.po: New Vietnamese translation.
5418
5419 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
5420 ADJ_OFFSET_SS_READ.
5421
5422 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
5423 remove CLONE_STOPPED.
5424
5425 2008-02-10 Jim Meyering <meyering@redhat.com>
5426
5427 Remove useless "if" before "free":
5428 * elf/ldconfig.c (parse_conf_include): Likewise.
5429 * gmon/gmon.c (weak_alias): Likewise.
5430 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
5431 * inet/rcmd.c (__validuser2_sa): Likewise.
5432 * intl/bindtextdom.c (set_binding_values): Likewise.
5433 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
5434 * libio/genops.c (save_for_backup): Likewise.
5435 * libio/wgenops.c (save_for_wbackup): Likewise.
5436 * locale/programs/ld-collate.c (collate_read): Likewise.
5437 * locale/programs/linereader.c (get_string): Likewise.
5438 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
5439 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
5440 * resolv/res_debug.c (do_section): Likewise.
5441 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
5442 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
5443 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
5444 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5445 * time/tzset.c (tzset_internal): Likewise.
5446
5447 2008-03-18 Jakub Jelinek <jakub@redhat.com>
5448
5449 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
5450 of ASSEMBLER.
5451
5452 2008-03-11 Ulrich Drepper <drepper@redhat.com>
5453
5454 [BZ #5903]
5455 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
5456 not stream for output file. Open output file here.
5457 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
5458 and output file name.
5459 (process_fd): Likewise.
5460 (process_file): Likewise.
5461 (main): Adjust callers of changed functions.
5462 * iconv/iconv_prog.h: Adjust prototype.
5463
5464 2008-03-09 Andreas Jaeger <aj@suse.de>
5465
5466 [BZ #5753]
5467 * sysdeps/ia64/ieee754.h: Use protected namespace
5468 __BIG_ENDIAN/__LITTLE_ENDIAN.
5469 * sysdeps/ieee754/ieee754.h: Likewise.
5470 Patch by Aurelien Jarno <aurelien@aurel32.net>.
5471
5472 2008-03-08 Roland McGrath <roland@frob.com>
5473
5474 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
5475 ignore a signal that came from a machine exception, treat it as a
5476 fatal core-dump signal instead.
5477 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5478
5479 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5480 Clear DF bit in thread state's eflags.
5481 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
5482
5483 2008-03-08 Ulrich Drepper <drepper@redhat.com>
5484
5485 [BZ #5774]
5486 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
5487 of NAN(...) sequence.
5488 * stdlib/Makefile (tests): Add tst-strtod6.
5489 * stdlib/tst-strtod6.c: New file.
5490
5491 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
5492
5493 [BZ #5762]
5494 * posix/getopt.c (_getopt_internal_r): Clarify error message by
5495 putting offending option character in quotes. Clean up error
5496 messages.
5497 * po/be.po: Adjust msgstr in translation file.
5498 * po/bg.po: Likewise.
5499 * po/ca.po: Likewise.
5500 * po/cs.po: Likewise.
5501 * po/da.po: Likewise.
5502 * po/de.po: Likewise.
5503 * po/es.po: Likewise.
5504 * po/fr.po: Likewise.
5505 * po/hr.po: Likewise.
5506 * po/ko.po: Likewise.
5507 * po/nl.po: Likewise.
5508 * po/rw.po: Likewise.
5509 * po/sk.po: Likewise.
5510 * po/sv.po: Likewise.
5511 * po/tr.po: Likewise.
5512 * po/zh_CN.po: Likewise.
5513 * po/zh_TW.po: Likewise.
5514
5515 [BZ #5760]
5516 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
5517 Patch by Roland Bless <roland@bless.de>.
5518
5519 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
5520 .o file.
5521 * elf/Makefile (routines): Add dl-sysdep.
5522 (elide-routines.os): Likewise.
5523
5524 2008-03-07 Ulrich Drepper <drepper@redhat.com>
5525
5526 [BZ #5786]
5527 * elf/dl-sysdep.c: Undefine ROUND after use.
5528 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
5529 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
5530 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
5531 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
5532 to ...
5533 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
5534 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
5535 if necessary.
5536 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
5537
5538 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
5539 _dl_tls_get_addr_soft element.
5540 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
5541 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
5542 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
5543 GLRO.
5544 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5545 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
5546 of internal_function.
5547
5548 * stdlib/Makefile (aux): Add tens_in_limb.
5549 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
5550 * stdlib/tens_in_limb.c: ...here. New file.
5551
5552 [BZ #5778]
5553 * sysdeps/unix/sysv/linux/pathconf.h: Declare
5554 __statfs_chown_restricted.
5555 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
5556 for _PC_CHOWN_RESTRICTED.
5557 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
5558 Implement __statfs_chown_restricted.
5559 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
5560 _POSIX_CHOWN_RESTRICTED value to zero.
5561 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
5562 defined to zero.
5563
5564 * sysdeps/x86_64/rtld-memset.c: New file.
5565
5566 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
5567
5568 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
5569
5570 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
5571 Barcelona machine. Make default fall through branch of
5572 __x86_64_preferred_memory_instruction check as the integer code path.
5573
5574 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
5575
5576 * sysdeps/x86_64/cacheinfo.c
5577 (__x86_64_preferred_memory_instruction): New variable.
5578 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5579
5580 * sysdeps/x86_64/memset.S: Rewrite.
5581
5582 2008-03-04 Jakub Jelinek <jakub@redhat.com>
5583
5584 * include/stdio.h (__asprintf_chk, __dprintf_chk,
5585 __obstack_printf_chk): New prototypes.
5586 (__vasprintf_chk, __vdprintf_chk,
5587 __obstack_vprintf_chk): Likewise.
5588 Add libc_hidden_proto.
5589 * libio/obprintf.c
5590 (_IO_obstack_jumps): No longer static, add attribute_hidden.
5591 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
5592 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5593 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
5594 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
5595 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
5596 __obstack_vprintf_chk): New prototypes.
5597 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
5598 obstack_vprintf): New inlines.
5599 * debug/dprintf_chk.c: New file.
5600 * debug/vdprintf_chk.c: New file.
5601 * debug/asprintf_chk.c: New file.
5602 * debug/vasprintf_chk.c: New file.
5603 * debug/obprintf_chk.c: New file.
5604 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
5605 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
5606 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
5607 @@GLIBC_2.8.
5608 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
5609 vdprintf_chk and obprintf_chk, set CFLAGS for them.
5610 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
5611 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
5612 libc_hidden_proto.
5613 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
5614 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
5615 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
5616 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
5617 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
5618 @@GLIBC_2.8.
5619 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
5620 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
5621 obstack_vprintf_chk.
5622 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
5623 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
5624 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
5625 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
5626 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
5627 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
5628
5629 2008-03-04 Ulrich Drepper <drepper@redhat.com>
5630
5631 [BZ #5779]
5632 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
5633 Patch by Roy Marples <roy@marples.name>.
5634
5635 [BZ #5736]
5636 * malloc/malloc.c: Fix typo in comment.
5637
5638 [BZ #5627]
5639 * locale/iso-639.def: Add Shuswap.
5640
5641 2008-02-25 Jakub Jelinek <jakub@redhat.com>
5642
5643 [BZ #5790]
5644 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
5645 overwrite *h_errnop/*errnop values from getanswer_r in case of
5646 failure.
5647
5648 2008-03-03 Ulrich Drepper <drepper@redhat.com>
5649
5650 [BZ #5818]
5651 * nscd/connections.c (dbs): Add initializers for .suggested_module.
5652 (verify_persistent_db): Remove one unnecessary test and add a new one
5653 for bad configuration.
5654 (nscd_init): Improve error reported when persistent database cannot
5655 be reused.
5656 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
5657 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
5658 .suggested_module and .max_db_size and case config file says the
5659 values are zero.
5660 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
5661
5662 [BZ #5854]
5663 * nis/ypclnt.c (yp_order): Fix handling of return value of
5664 do_ypcall_tr call.
5665 Patch by Jeff Moyer <jmoyer@redhat.com>.
5666
5667 * po/fr.po: Update from translation team.
5668
5669 2008-02-22 Andreas Jaeger <aj@suse.de>,
5670 Carlos O'Donell <carlos@systemhalted.org>
5671
5672 [BZ #5012]
5673 * FAQ.in: Describe why glibc needs to be compiled with
5674 optimization.
5675
5676 2008-02-19 Roland McGrath <roland@redhat.com>
5677
5678 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
5679
5680 2008-02-15 Ulrich Drepper <drepper@redhat.com>
5681
5682 [BZ #5737]
5683 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
5684 __USE_MISC is defined.
5685
5686 2008-02-10 Ulrich Drepper <drepper@redhat.com>
5687
5688 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
5689 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
5690 sys/timerfd.h.
5691 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
5692 timerfd_gettime, timerfd_settime.
5693 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
5694 timerfd_gettime, timerfd_settime for GLIBC_2.8.
5695
5696 2008-02-08 Roland McGrath <roland@redhat.com>
5697
5698 * elf/elf.h (NT_PPC_SPE): New macro.
5699
5700 2008-02-06 Roland McGrath <roland@redhat.com>
5701
5702 * Makerules ($(common-objpfx)sysd-rules):
5703 Depend on $(sysdep-makeconfigs).
5704
5705 2008-01-31 Roland McGrath <roland@redhat.com>
5706
5707 [BZ #5442]
5708 * configure.in: Use -print-file-name if it yields a directory,
5709 for each of include and include-fixed.
5710 * configure: Regenerated.
5711
5712 * Makeconfig (sysd-rules-targets): New variable.
5713 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
5714 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
5715
5716 2008-01-30 Roland McGrath <roland@redhat.com>
5717
5718 * manual/libc.texinfo: Update back-cover text.
5719
5720 * elf/elf.h (NT_386_TLS): New macro.
5721
5722 2008-01-29 Roland McGrath <roland@redhat.com>
5723
5724 * Makeconfig (sysd-rules-patterns): New variable.
5725 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
5726 (check-inhibit-asm): New canned sequence, replaces ...
5727 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
5728 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
5729 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
5730 (CFLAGS-rtld): Variable removed.
5731
5732 2008-01-24 Roland McGrath <roland@redhat.com>
5733
5734 * configure.in: Let configure fragments set base_os.
5735 * configure: Regenerated.
5736
5737 2008-01-22 Ulrich Drepper <drepper@redhat.com>
5738
5739 * po/ko.po: Update from translation team.
5740
5741 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
5742
5743 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
5744
5745 2008-01-12 Andreas Jaeger <aj@suse.de>
5746
5747 [BZ #5040]
5748 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
5749 Add EPOLLRDHUP.
5750
5751 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
5752
5753 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
5754 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
5755 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
5756
5757 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
5758
5759 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
5760 * elf/dl-close.c (_dl_close): Check for it.
5761 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
5762 (_dl_allocate_static_tls): Likewise.
5763 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
5764 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
5765 to it.
5766 * elf/tst-tls16.c: New file.
5767 * elf/tst-tlsmod16a.c: New file.
5768 * elf/tst-tlsmod16b.c: New file.
5769 * elf/Makefile: Add rules to build and run tst-tls16.
5770
5771 2008-01-16 Ulrich Drepper <drepper@redhat.com>
5772
5773 [BZ #5628]
5774 * bits/shm.h: Fix comment describing shmid_ds.
5775 * sysdeps/gnu/bits/shm.h: Likewise.
5776 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
5777 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5778 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5779 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5780 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5781 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5782 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5783 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5784 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
5785
5786 [BZ #5607]
5787 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
5788 prototypes.
5789 * conform/data/limits.h-data: Adjust limits changed in v6 and add
5790 additional suffixes.
5791 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
5792 Add optional functions mq_timedreceive and mq_timedsend.
5793 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
5794 * conform/data/pthread.h-data: Fix prototype of
5795 pthread_condattr_setclock. pthread_sigmask is not required in v6.
5796 * conform/data/semaphore.h-data: Allow time.h definitions.
5797 * conform/data/signal.h-data: Likewise.
5798 * conform/data/stdio.h-data: getw and putw are not required in v6.
5799 * conform/data/stdlib.h-data: Change setstate prototype.
5800 * conform/data/string.h-data: Fix strerror_r prototype.
5801 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
5802 * conform/data/unistd.h-data: pthread_atfork not required in v6.
5803 Fix readlink prototype.
5804 * conform/data/netinet/in.h-data: Add const to in6addr_any and
5805 in6addr_loopback.
5806 * inet/netinet/in.h: Cleanup namespace.
5807 * posix/regex.h: Likewise.
5808 * resolv/netdb.h: Likewise.
5809 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
5810 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5811 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5812 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
5813 of names of in in6_addr.
5814 (default_precedence): Likewise.
5815 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
5816 NULL definition.
5817
5818 2008-01-15 Ulrich Drepper <drepper@redhat.com>
5819
5820 * conform/data/fmtmsg.h-data: Add missing allows.
5821 * conform/data/ftw.h-data: Likewise.
5822 * conform/data/inttypes.h-data: Likewise.
5823 * conform/data/math.h-data: Likewise.
5824 * conform/data/signal.h-data: Likewise.
5825 * conform/data/net/if.h-data: Likewise.
5826 * conform/data/netinet/in.h-data: Likewise.
5827 * conform/data/sys/socket.h-data: Likewise.
5828
5829 [BZ #5614]
5830 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
5831 (__strtok_r): Simplify.
5832 * string/tester.c (test_strtok_r): Add test case for futile search
5833 with single-character seach string.
5834
5835 2008-01-12 Ulrich Drepper <drepper@redhat.com>
5836
5837 * po/ko.po: Update from translation team.
5838
5839 2008-01-11 Andreas Jaeger <aj@suse.de>
5840
5841 [BZ #5600]
5842 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
5843 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
5844 kernel header.
5845
5846 2008-01-10 Ulrich Drepper <drepper@redhat.com>
5847
5848 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
5849 native interface lookup in all the relevant places.
5850
5851 2008-01-10 Jakub Jelinek <jakub@redhat.com>
5852 Ulrich Drepper <drepper@redhat.com>
5853
5854 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
5855 field. Use sockaddr_in6 for source_addr.
5856 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
5857 (match_prefix): Likewise.
5858 (get_label): Likewise.
5859 (get_precedence): Likewise.
5860 (rfc3484_sort): Change to use indirect access to results array.
5861 Adjust to use of sockaddr_in6. Replace service_order test with
5862 simple index comparison.
5863 (getaddrinfo): Define order array. Initialize it. Don't initialize
5864 service_order field. Adjust qsort_t calls. Access sorted result
5865 array indirectly through order array.
5866 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
5867 * posix/tst-rfc3484-2.c: Likewise.
5868 * posix/tst-rfc3484-3.c: Likewise.
5869
5870 2008-01-09 Ulrich Drepper <drepper@redhat.com>
5871
5872 [BZ #5541]
5873 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
5874 pollfd structures.
5875 Patch by André Cruz.
5876
5877 [BZ #5545]
5878 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
5879 (clnt_spcreateerror): Likewise.
5880
5881 [BZ #5553]
5882 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
5883 (public_mEMALIGn): Likewise.
5884 Patch mostly by Daniel Jacobowitz.
5885
5886 2008-01-09 Jakub Jelinek <jakub@redhat.com>
5887
5888 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
5889 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
5890 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
5891 * stdlib/tst-makecontext2.c: New test.
5892
5893 2008-01-08 Jakub Jelinek <jakub@redhat.com>
5894
5895 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
5896 defined.
5897 (REINIT_PARAMS): Likewise. Undefine before end of file.
5898 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
5899 transliteration hooks and REINIT_PARAMS afterwards.
5900 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
5901 status.
5902 (REINIT_PARAMS): Define.
5903 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
5904 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
5905 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
5906 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
5907 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
5908 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
5909 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
5910 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
5911 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
5912 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
5913 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
5914 * iconvdata/tst-iconv7.c: New test.
5915
5916 2008-01-07 Ulrich Drepper <drepper@redhat.com>
5917
5918 * libio/stdio.h (vscanf): Fix definition for loser compilers.
5919
5920 2008-01-05 Jakub Jelinek <jakub@redhat.com>
5921
5922 [BZ #5112]
5923 * nscd/connections.c (restart): Fix condition.
5924
5925 2008-01-03 Jakub Jelinek <jakub@redhat.com>
5926
5927 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
5928 __ctype_toupper_loc): Add __THROW.
5929
5930 2008-01-02 Ulrich Drepper <drepper@redhat.com>
5931
5932 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
5933 recognition of interface family.
5934
5935 * posix/getconf.c: Update copyright year.
5936 * nss/getent.c: Likewise.
5937 * iconv/iconvconfig.c: Likewise.
5938 * iconv/iconv_prog.c: Likewise.
5939 * elf/ldconfig.c: Likewise.
5940 * catgets/gencat.c: Likewise.
5941 * csu/version.c: Likewise.
5942 * elf/ldd.bash.in: Likewise.
5943 * elf/sprof.c (print_version): Likewise.
5944 * locale/programs/locale.c: Likewise.
5945 * locale/programs/localedef.c: Likewise.
5946 * nscd/nscd.c (print_version): Likewise.
5947 * debug/xtrace.sh: Likewise.
5948 * malloc/memusage.sh: Likewise.
5949 * malloc/mtrace.pl: Likewise.
5950 * debug/catchsegv.sh: Likewise.
5951
5952 2007-12-26 Ulrich Drepper <drepper@redhat.com>
5953
5954 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
5955 second lookup.
5956
5957 2007-12-23 Ulrich Drepper <drepper@redhat.com>
5958
5959 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
5960 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5961
5962 2007-12-17 Roland McGrath <roland@redhat.com>
5963
5964 * inet/ether_line.c (ether_line): Remove unused variable.
5965
5966 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
5967
5968 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
5969 and winp.
5970 * login/openpty.c (openpty): Likewise.
5971 * login/pty.h (openpty, forkpty): Likewise.
5972 * manual/terminal.texi (openpty, forkpty): Likewise.
5973
5974 2007-12-17 Ulrich Drepper <drepper@redhat.com>
5975
5976 * malloc/malloc.c (public_cALLOc): For arenas other than
5977 main_arena, count all bytes inside the mprotect_size range of the
5978 heap as uninitialized.
5979
5980 2007-12-16 Ulrich Drepper <drepper@redhat.com>
5981
5982 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
5983 executable stacks.
5984
5985 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
5986 mTRIm for all of them.
5987 (mTRIm): Additionally iterate over all free blocks and use madvise
5988 to free memory for all those blocks which contain at least one
5989 memory page.
5990 * malloc/tst-trim1.c: New file.
5991 * malloc/Makefile (tests): Add tst-trim1.
5992
5993 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
5994
5995 2007-12-14 Ulrich Drepper <drepper@redhat.com>
5996
5997 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
5998 First cast argument to long
5999 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
6000 Return long.
6001 (__vdso_clock_gettime): Likewise.
6002 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
6003 return long.
6004
6005 2007-12-13 Ulrich Drepper <drepper@redhat.com>
6006
6007 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
6008 * locale/nl_langinfo_l.c: Real implementation, copied from
6009 nl_langinfo.c.
6010 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
6011
6012 2007-12-01 Jim Meyering <meyering@redhat.com>
6013
6014 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6015 that would inhibit utf8-optimization of a regexp containing line-
6016 or buffer-anchors, e.g., `^', `$'.
6017
6018 2007-12-12 Ulrich Drepper <drepper@redhat.com>
6019
6020 * time/bug-getdate1.c (do_test): Don't use century values which
6021 aren't valid on 32-bit systems.
6022
6023 2007-12-12 Jakub Jelinek <jakub@redhat.com>
6024
6025 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
6026 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
6027 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
6028 __strcat_g, __strncat_g): Add __asm__.
6029
6030 2007-12-12 Ulrich Drepper <drepper@redhat.com>
6031
6032 [BZ #5477]
6033 * io/fchmodat.c: Fix typo in stub_warning use.
6034 Patch by Petr Salinger.
6035
6036 2007-12-11 Ulrich Drepper <drepper@redhat.com>
6037
6038 * iconvdata/hp-thai8.c: New file.
6039 * iconvdata/Makefile: Add rules for hp-thai8.c.
6040 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
6041 * iconvdata/gconv-modules: Likewise.
6042
6043 [BZ #5464]
6044 * iconvdata/hp-greek8.c: New file.
6045 * iconvdata/Makefile: Add rules for hp-greek8.c.
6046 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
6047 * iconvdata/gconv-modules: Likewise.
6048
6049 [BZ #5463]
6050 * iconvdata/hp-turkish8.c: New file.
6051 * iconvdata/Makefile: Add rules for hp-turkish8.c.
6052 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
6053 * iconvdata/gconv-modules: Likewise.
6054
6055 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
6056 (shrink_heap): ... this new function.
6057 (heap_trim): Call shrink_heap instead of grow_heap.
6058
6059 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
6060 case don't call alloc_perturb.
6061
6062 2007-12-10 Ulrich Drepper <drepper@redhat.com>
6063
6064 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
6065 possible.
6066 * sysdeps/unix/sysv/linux/kernel-features.h
6067 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
6068 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
6069
6070 2007-12-08 Ulrich Drepper <drepper@redhat.com>
6071
6072 [BZ #5424]
6073 * stdio-common/vfprintf.c: Do not overflow when adding to done.
6074 * stdio-common/Makefile (tests): Add bug22.
6075 * stdio-common/bug22.c: New file.
6076
6077 [BZ #5451]
6078 * time/getdate.c: Fix filling in default values.
6079 * time/bug-getdate1.c: New file.
6080 * time/Makefile: Add rules to build and run bug-getdate1.
6081
6082 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
6083 * iconvdata/ebcdic-es.c: Likewise.
6084 * iconvdata/ebcdic-es-a.c: Likewise.
6085 * iconvdata/ebcdic-uk.c: Likewise.
6086 * iconvdata/iso8859-16.c: Likewise.
6087 * iconvdata/viscii.c: Likewise.
6088 * iconvdata/iso8859-9e.c: Likewise.
6089 * iconvdata/Makefile: Adjust appropriately.
6090
6091 [BZ #5428]
6092 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
6093 __need_wint_t.
6094
6095 2007-12-07 Ulrich Drepper <drepper@redhat.com>
6096
6097 [BZ #5427]
6098 * iconvdata/hp-roman9.c: New file.
6099 * iconvdata/Makefile: Add rules for hp-roman9.c.
6100 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
6101 * iconvdata/gconv-modules: Likewise.
6102
6103 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
6104 * iconvdata/Makefile: Adjust appropriately.
6105
6106 [BZ #5441]
6107 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
6108 structure, it's allocated with alloca.
6109 * stdio-common/Makefile (tests): Add bug21.
6110 * stdio-common/bug21.c: New file.
6111
6112 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
6113
6114 [BZ #5452]
6115 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
6116 keyword for gcc's braced-groups.
6117
6118 2007-12-07 Ulrich Drepper <drepper@redhat.com>
6119
6120 [BZ #5454]
6121 * inet/ether_line.c: Strip hostname of whitespaces.
6122 * inet/Makefile (tests): Add tst-ether_line.
6123 * inet/tst-ether_line.c: New file.
6124
6125 2007-12-03 Ulrich Drepper <drepper@redhat.com>
6126
6127 [BZ #5439]
6128 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
6129
6130 [BZ #5435]
6131 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
6132
6133 * stdlib/tst-setcontext.c: Catch the case where the links gets
6134 messed up and we do not reach main again.
6135
6136 * po/ca.po: Update from translation team.
6137
6138 2007-11-26 Ulrich Drepper <drepper@redhat.com>
6139
6140 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
6141 * posix/regex.h (REG_ENOSYS): Likewise.
6142 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
6143
6144 2007-11-25 Ulrich Drepper <drepper@redhat.com>
6145
6146 * nscd/nscd.h (MAX_STACK_USE): Define.
6147 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
6148 (gc): Initialize stack_used based on allocation in prune_cache.
6149 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
6150 Clear array before use.
6151
6152 * nscd/aicache.c (addhstaiX): Update statistics counter in case
6153 memory allocation failed.
6154 * nscd/hstcache.c (cache_addhst): Likewise.
6155 * nscd/grpcache.c (cache_addgr): Likewise.
6156 * nscd/servicescache.c (cache_addserv): Likewise.
6157 * nscd/pwdcache.c (cache_addpw): Likewise.
6158 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6159
6160 2007-11-23 Ulrich Drepper <drepper@redhat.com>
6161
6162 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
6163 and creat system calls.
6164
6165 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
6166
6167 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
6168
6169 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
6170 Add netiucv/iucv.h.
6171 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
6172 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
6173 protocol.
6174 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
6175 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
6176 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
6177
6178 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
6179
6180 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
6181 strncat): Define as macros to avoid compile errors.
6182
6183 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
6184 creat entries.
6185
6186 2007-11-22 Ulrich Drepper <drepper@redhat.com>
6187
6188 [BZ #5382]
6189 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
6190 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6191 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
6192 overflow it.
6193 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6194
6195 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
6196 Return zero in case the thread library is not NPTL.
6197
6198 [BZ #5375]
6199 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
6200 initializing interface list.
6201
6202 [BZ #5378]
6203 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
6204 use result of nss_getgrgid_r if nothing was found. For other
6205 error return with a failure.
6206 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
6207
6208 * locale/programs/ld-collate.c (collate_read): Fix loop to match
6209 macro name.
6210
6211 2007-11-19 Ulrich Drepper <drepper@redhat.com>
6212
6213 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
6214 (get_scope): For IPv4 scope, use scopes table.
6215 (fini): Free scopes table if necessary.
6216 (free_scopelist): New function.
6217 (scopecmp): New function.
6218 (gaiconf_init): Also handle scopev4 entries.
6219 * posix/tst-rfc3484.c (do_test): Initialize scopes.
6220 * posix/tst-rfc3484-2.c (do_test): Likewise.
6221 * posix/gai.conf: Document scopev4 defaults.
6222 * posix/Makefile (tests): Add tst-rfc3484-3.
6223 * posix/tst-rfc3484-3.c: New file.
6224
6225 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
6226 Teredo tunnels.
6227 * posix/gai.conf: Update for current default tables.
6228
6229 2007-11-19 Ulrich Drepper <drepper@redhat.com>
6230
6231 * po/tr.po: Update from translation team.
6232
6233 2007-11-18 Roland McGrath <roland@frob.com>
6234
6235 * manual/arith.texi (Remainder Functions): Spelling fix.
6236 From Shaun Silk <genix@mysoul.com.au>.
6237
6238 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
6239
6240 2007-11-17 Ulrich Drepper <drepper@redhat.com>
6241
6242 * po/zh_CN.po: Update from translation team.
6243
6244 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
6245 Add sys/signalfd.h and sys/eventfd.h.
6246
6247 2007-11-15 Bruno Haible <bruno@clisp.org>
6248
6249 [BZ #5346]
6250 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
6251 union.
6252 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
6253 (DCIGETTEXT): Change the allocation of the 'search' variable so that
6254 it needs only fixed stack space. Delay the initialization of
6255 msgid_len until it is needed.
6256
6257 2007-11-15 Andreas Jaeger <aj@suse.de>
6258
6259 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
6260 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
6261
6262 2007-11-15 Ulrich Drepper <drepper@redhat.com>
6263
6264 * po/ko.po: Update from translation team.
6265
6266 2007-11-14 Ulrich Drepper <drepper@redhat.com>
6267
6268 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
6269 significantly. The device type is also part of the ifinfomsg data.
6270
6271 * po/sv.po: Update from translation team.
6272 * po/nl.po: Likewise.
6273
6274 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
6275 to wake up in 24 hours.
6276
6277 * nscd/gai.c (__ioctl): Define. Include check_native.c.
6278
6279 2007-11-13 Ulrich Drepper <drepper@redhat.com>
6280
6281 * po/cs.po: Update from translation team.
6282 * po/pl.po: Likewise.
6283
6284 * include/ifaddrs.h: Remove in6ai_temporary.
6285 (struct in6addrinfo): Add index element.
6286 Declare __check_native.
6287 * inet/Makefile (aux): Add check_native.
6288 * sysdeps/unix/sysv/linux/check_native.c: New file.
6289 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
6290 IFA_F_TEMPORARY. Pass back ifa_index.
6291 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
6292 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
6293 call __check_native if necessary.
6294 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
6295 to sort addresses. Pass information about the results.
6296 * posix/tst-rfc3484.c: Adjust for addition of index field and change
6297 of rfc3484_sort interface.
6298 * posix/tst-rfc3484-2.c: Likewise.
6299
6300 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
6301 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
6302 for _quicksort.
6303 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
6304 (qsort_r): Renamed from qsort. Take additional parameter and pass it
6305 on as third parameter to compare function and _quicksort.
6306 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
6307 to the compare function.
6308 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
6309 * Versions.def: Add GLIBC_2.8 for libc.
6310
6311 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
6312 * posix/tst-rfc3484-2.c: Likewise.
6313
6314 * include/kernel-features.h: Moved to...
6315 * sysdeps/mach/hurd/kernel-features.h: ...here.
6316
6317 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
6318
6319 * sysdeps/i386/i586/memcpy_chk.S: New file.
6320 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
6321 * sysdeps/i386/i586/memset_chk.S: Likewise.
6322
6323 2007-11-12 Ulrich Drepper <drepper@redhat.com>
6324
6325 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
6326 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
6327 list of interfaces. Also store prefix length.
6328 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
6329 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
6330 prefix if source and destination address are in the same subnet.
6331 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
6332 Always look for matching record in in6ai list.
6333 Correct source_addr_len value for IPv6->IPv4 converted records.
6334
6335 2007-11-11 Roland McGrath <roland@frob.com>
6336
6337 * include/kernel-features.h: New file.
6338
6339 2007-11-10 Ulrich Drepper <drepper@redhat.com>
6340
6341 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
6342 complications for 64-bit platforms.
6343
6344 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
6345 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
6346 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
6347 open64_2.
6348 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
6349 entries.
6350 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6351 * sysdeps/wordsize-64/alphasort.c: New file.
6352 * sysdeps/wordsize-64/alphasort64.c: New file.
6353 * sysdeps/wordsize-64/fseeko.c: New file.
6354 * sysdeps/wordsize-64/fseeko64.c: New file.
6355 * sysdeps/wordsize-64/ftello.c: New file.
6356 * sysdeps/wordsize-64/ftello64.c: New file.
6357 * sysdeps/wordsize-64/ftw.c: New file.
6358 * sysdeps/wordsize-64/ftw64.c: New file.
6359 * sysdeps/wordsize-64/iofgetpos.c: New file.
6360 * sysdeps/wordsize-64/iofgetpos64.c: New file.
6361 * sysdeps/wordsize-64/iofopen.c: New file.
6362 * sysdeps/wordsize-64/iofopen64.c: New file.
6363 * sysdeps/wordsize-64/iofsetpos.c: New file.
6364 * sysdeps/wordsize-64/iofsetpos64.c: New file.
6365 * sysdeps/wordsize-64/lockf.c: New file.
6366 * sysdeps/wordsize-64/lockf64.c: New file.
6367 * sysdeps/wordsize-64/mkostemp.c: New file.
6368 * sysdeps/wordsize-64/mkostemp64.c: New file.
6369 * sysdeps/wordsize-64/mkstemp.c: New file.
6370 * sysdeps/wordsize-64/mkstemp64.c: New file.
6371 * sysdeps/wordsize-64/scandir.c: New file.
6372 * sysdeps/wordsize-64/scandir64.c: New file.
6373 * sysdeps/wordsize-64/tmpfile.c: New file.
6374 * sysdeps/wordsize-64/tmpfile64.c: New file.
6375 * sysdeps/wordsize-64/versionsort.c: New file.
6376 * sysdeps/wordsize-64/versionsort64.c: New file.
6377 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
6378 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
6379 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
6380 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
6381 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
6382 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
6383 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
6384 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
6385 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
6386 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
6387 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
6388 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
6389
6390 * crypt/sha256-crypt.c: Fix a comment.
6391 * crypt/sha512-crypt.c: Likewise.
6392
6393 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
6394
6395 * sysdeps/x86_64/memset.S: Add sfence after movnti.
6396
6397 2007-11-07 Ulrich Drepper <drepper@redhat.com>
6398
6399 [BZ #5277]
6400 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
6401 because output buffer is too small break, don't loop.
6402 * iconvdata/Makefile (tests): Add bug-iconv6.
6403 * iconvdata/bug-iconv6.c: New file.
6404
6405 2007-11-06 Ulrich Drepper <drepper@redhat.com>
6406
6407 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
6408 with size_t type.
6409 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
6410 size_t. Add casts where needed.
6411
6412 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
6413 old headers, don't call avc_has_perm if we don't have the
6414 permission information.
6415
6416 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
6417
6418 * elf/rtld.c (dl_main): Use the page size to find the map start.
6419
6420 2007-11-05 Ulrich Drepper <drepper@redhat.com>
6421
6422 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
6423 Patch by Szymon Siwek <sls@poczta.wp.pl>.
6424
6425 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
6426 when the lookup call failed.
6427
6428 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
6429 Add prune_cond and wakeup_time.
6430 (CACHE_PRUNE_INTERNAL): Define.
6431 Update declarations of prune_cache and setup_thread.
6432 * nscd/connections.c (dbs): Update initializers.
6433 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
6434 (nscd_init): Default number of threads is now 4.
6435 (invalidate_cache): Take lock before calling prune_cache.
6436 (handle_request): If SELinux forbids the request, say so.
6437 (readylist_cond): Use static initializer.
6438 (nscd_run_prune): New function. Used only by pruning threads.
6439 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
6440 here.
6441 (fd_ready): Update nscd_run reference.
6442 (start_threads): No need to initialize readylist_cond.
6443 Start pruning threads separately.
6444 * nscd/nscd_setup_thread.c: Change return value type to int and always
6445 return 0.
6446 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
6447 to int and return nonzero value if we can use the TID address hack.
6448 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
6449 the database is later than the new entry's timeout, update the
6450 wakeup time and wake the cleanup thread.
6451 (prune_cache): Return seconds the next entry in the database is still
6452 valid. Remove locking for pruning here.
6453 * nscd/nscd.conf: Document default number of threads.
6454
6455 2007-10-31 Ulrich Drepper <drepper@redhat.com>
6456
6457 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
6458 stack is properly aligned for the target function.
6459 Correct unwind info.
6460
6461 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
6462 when using auditing libraries.
6463
6464 2007-10-29 Ulrich Drepper <drepper@redhat.com>
6465
6466 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
6467 _nss_dns_getnetbyaddr2_r.
6468 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
6469 extra parameter to getanswer_r.
6470 (_nss_dns_getnetbyaddr_r): Now a wrapper around
6471 _nss_dns_getnetbyaddr2_r.
6472
6473 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
6474 gethstbynm3_r.
6475 * nscd/gethstbynm2_r.c: Remove.
6476 * nscd/gethstbynm3_r.c: New file.
6477 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
6478 __gethostbyaddr_r.
6479 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
6480 __gethostbyaddr_r compatibility wrapper.
6481 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
6482 determining timeout of entry.
6483 (lookup): Take new parameter and pass it to __gethostbyname3_r and
6484 __gethostbyaddr2_r.
6485 (addhstbyX): Pass reference to variable for TTL to lookup and
6486 cache_addhst.
6487 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
6488 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
6489 and __nss_next2. Remove __nss_services_lookup.
6490 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
6491 Add compat wrapper.
6492 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
6493 __nss_next2.
6494 * nss/getXXent_r.c: Likewise.
6495 * nss/getnssent_r.c: Likewise.
6496 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
6497 does not exist in module, try the optional second name.
6498 (__nss_next2): New function.
6499 (__nss_next): Now wrapper around __nss_next2.
6500 * nss/nsswitch.h: Adjust __nss_lookup prototype.
6501 Declare __nss_next2.
6502 Adjust definition of db_lookup_function type.
6503 * nss/service-lookup.c: Define NO_COMPAT.
6504 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
6505 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
6506 * inet/ether_ntoh.c: Likewise.
6507 * sunrpc/netname.c: Likewise.
6508 * sunrpc/publickey.c: Likewise.
6509 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
6510 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
6511 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
6512 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
6513 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
6514
6515 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
6516
6517 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
6518
6519 2007-10-28 Ulrich Drepper <drepper@redhat.com>
6520
6521 [BZ #5204]
6522 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
6523 * crypt/sha512c-test.c: Likewise.
6524
6525 [BZ #5225]
6526 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
6527 to keep track of end of %[ format string element.
6528 * stdio-common/Makefile (tests): Add bug20.
6529 * stdio-common/bug20.c: New file.
6530
6531 [BZ #5222]
6532 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
6533 path elements in counting mode.
6534
6535 2007-10-27 Andreas Jaeger <aj@suse.de>
6536
6537 [BZ #5040]
6538 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
6539
6540 [BZ #3112]
6541 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
6542 (__cleanup): Free shared library when exiting.
6543 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
6544 (__cleanup): Free shared library when exiting.
6545
6546 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
6547
6548 [BZ #2549]
6549 * math/libm-test.inc (check_float_internal): Support
6550 denormalized return.
6551
6552 2007-10-23 Andreas Jaeger <aj@suse.de>
6553
6554 [BZ #5208]
6555 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
6556 __LONG_LONG_PAIR to handle little endian byte order.
6557 Suggested by abhishekrai@google.com
6558
6559 2007-10-27 Ulrich Drepper <drepper@redhat.com>
6560
6561 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
6562
6563 2007-10-26 Ulrich Drepper <drepper@redhat.com>
6564
6565 * nscd/cache.c (prune_cache): Move test for modified file outside
6566 of locking.
6567
6568 2007-10-21 Andreas Jaeger <aj@suse.de>
6569
6570 * manual/texinfo.tex: Update to latest version.
6571
6572 * manual/sysinfo.texi (System Parameters): Fix Formatting.
6573
6574 * manual/arith.texi (Status bit operations): Fix formatting.
6575
6576 * manual/errno.texi (Error Messages): Fix formatting.
6577
6578 * manual/sysinfo.texi (System Parameters): Fix formatting.
6579
6580 * manual/libc.texinfo: Update VERSION and UPDATED.
6581
6582 2007-10-19 Roland McGrath <roland@redhat.com>
6583
6584 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
6585
6586 2007-10-06 David S. Miller <davem@davemloft.net>
6587
6588 * configure.in: Add sparcv9v2 and sparc64v2.
6589 * scripts/config.sub: Likewise.
6590 * configure: Regenerate.
6591 * elf/elf.h (HWCAP_SPARC_N2): New.
6592 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
6593 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
6594 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
6595 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
6596 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
6597 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
6598 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
6599
6600 2007-10-18 Ulrich Drepper <drepper@redhat.com>
6601
6602 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
6603 even if the poll result indicates there is data to read.
6604 Patch by Jeff Moyer <jmoyer@redhat.com>.
6605
6606 2007-10-18 Roland McGrath <roland@redhat.com>
6607
6608 * elf/elf.h (NT_PPC_VMX): New macro.
6609
6610 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6611
6612 * version.h (VERSION): Set to 2.7.90.
6613
6614 2007-10-17 Jakub Jelinek <jakub@redhat.com>
6615
6616 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
6617 weak_alias.
6618
6619 2007-10-17 Roland McGrath <roland@frob.com>
6620
6621 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
6622 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
6623
6624 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6625
6626 * version.h (VERSION): Bump to 2.7.
6627 * include/features.h (__GLIBC_MINOR__): Bump to 7.
6628
6629 [BZ #5186]
6630 * time/tzset.c (__tz_convert): Don't force testing for a change of
6631 TZ if not called from localtime. But then also see whether the
6632 file changed, in case __use_tzfile is set.
6633
6634 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
6635 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6636 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6637 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6638 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6639 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6640 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6641 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6642
6643 2007-10-17 Jakub Jelinek <jakub@redhat.com>
6644
6645 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
6646 and admin selects to be able to replace the gai.conf file, lock
6647 data structures around the qsort call.
6648
6649 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6650
6651 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
6652 new memset.
6653 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
6654 too high for the improvements. Implement bzero unconditionally for
6655 use in libc.
6656
6657 2007-10-17 Ulrich Drepper <drepper@redhat.com>
6658 Jakub Jelinek <jakub@redhat.com>
6659
6660 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
6661 even when time_t is 32-bit.
6662 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
6663 timezone data read by __tzfile_default. Ensure __tzname[0] is
6664 always set after the search.
6665
6666 2007-10-16 Ulrich Drepper <drepper@redhat.com>
6667
6668 * time/tzfile.c (__tzfile_read): Help the compiler recognize
6669 unreachable code on 32-bit machines.
6670
6671 2007-10-16 Jakub Jelinek <jakub@redhat.com>
6672
6673 [BZ #5184]
6674 * time/strftime_l.c: Include stdbool.h.
6675 (my_strftime): New wrapper, old function renamed to...
6676 (__strftime_internal): ... new function. Add tzset_called
6677 argument, pass it down to recursive calls, don't call tzset ()
6678 if already true, set to true after call to tzset ().
6679
6680 2007-10-16 Ulrich Drepper <drepper@redhat.com>
6681
6682 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
6683 into account when copying TZ string.
6684
6685 2007-10-16 Jakub Jelinek <jakub@redhat.com>
6686
6687 * time/tzfile.c (__tzfile_compute): For use_last case set i to
6688 num_transition rather than num_transitions - 1.
6689
6690 2007-10-16 Jakub Jelinek <jakub@redhat.com>
6691
6692 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
6693 PIC indirect jump.
6694
6695 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
6696 a local label rather than HIDDEN_JUMPTARGET.
6697
6698 2007-10-15 Ulrich Drepper <drepper@redhat.com>
6699
6700 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
6701 (init_cacheinfo): Initialize it.
6702 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
6703 Always define bzero.
6704 Remove non-glibc code.
6705 * sysdeps/x86_64/bzero.S: Make an empty file.
6706
6707 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
6708
6709 * sysdeps/x86_64/cacheinfo.c
6710 (__x86_64_preferred_memory_instruction): New.
6711 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
6712
6713 * sysdeps/x86_64/memset.S: Rewrite.
6714
6715 2007-10-15 Roland McGrath <roland@redhat.com>
6716
6717 * po/libc.pot: Regenerated.
6718
6719 2007-10-15 Ulrich Drepper <drepper@redhat.com>
6720
6721 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
6722 pointers.
6723
6724 [BZ #3425]
6725 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
6726 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
6727 address record to T_A/T_AAAA requests.
6728
6729 2007-10-14 Ulrich Drepper <drepper@redhat.com>
6730
6731 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
6732
6733 * posix/glob.c: Add some branch prediction throughout.
6734
6735 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
6736 read from nscd.
6737
6738 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
6739 service_order.
6740 (rfc3484_sort): Make sure that even if qsort doesn't support
6741 stable sorting out sorting here is stable by comparing service_order.
6742 (getaddrinfo): Initialize service_order.
6743 * posix/tst-rfc3484.c (do_test): Adjust for addition of
6744 service_order field to sorting structure.
6745 * posix/tst-rfc3484-2.c (do_test): Likewise.
6746
6747 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
6748 * time/tzset.c (tzset_internal): Break TZ string parsing out into
6749 __tzset_parse_tz and updating of daylight, timezone, tzname into
6750 update_vars.
6751 (__tz_compute): Renamed from tz_compute. Take additional parameters.
6752 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
6753 happens in __tz_compute.
6754 * time/tzfile.c (__tzfile_read): Also read TZ string.
6755 (find_transition): Fold into __tzfile_compute.
6756 (__tzfile_compute): For times beyond the last transition try to
6757 use the TZ string.
6758 * timezone/tst-timezone.c: Information in daylight and tzname does
6759 change for Asia/Tokyo timezone with more concrete information.
6760 Remove the test.
6761
6762 * include/stdio.h: Add libc_hidden_proto for ftello.
6763 * libio/ftello.c: Add libc_hidden_def.
6764
6765 [BZ #1140]
6766 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
6767 on the specified time and not the last entries in the file. Move
6768 code to determine tzname[] to...
6769 (find_transition): ...here. Add ugly guess for times before the
6770 first transition.
6771
6772 2007-10-13 Ulrich Drepper <drepper@redhat.com>
6773
6774 [BZ #3195]
6775 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
6776 no entry.
6777 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
6778 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6779 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6780 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6781
6782 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
6783 read mechanism when there are no group members and avoid no-op
6784 read syscall in this case.
6785
6786 [BZ #3242]
6787 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
6788 (__readall): If reading failed due to EAGAIN error wait a bit
6789 and possibly try again.
6790 (__readvall): Likewise.
6791
6792 2007-10-13 Bruno Haible <bruno@clisp.org>
6793
6794 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
6795 when we cannot recode the message.
6796
6797 2007-10-13 Ulrich Drepper <drepper@redhat.com>
6798
6799 [BZ #4359]
6800 * libio/__freading.c (__freading): Don't return true for
6801 write-only streams. For read/write streams, check whether we
6802 performed a read operation already.
6803 * libio/Makefile (tests): Add tst-ext2.
6804 * libio/tst-ext2.c: New file.
6805
6806 2007-10-12 Ulrich Drepper <drepper@redhat.com>
6807
6808 * locale/programs/repertoire.c (repertoire_read): Always free
6809 memory for repertoire file name [Coverity CID 270].
6810
6811 * elf/cache.c (save_aux_cache): Free memory allocated for
6812 temporary file name [Coverity CID 267].
6813
6814 2007-10-12 Jakub Jelinek <jakub@redhat.com>
6815
6816 * misc/Makefile (headers): Add bits/error.h.
6817
6818 2007-10-12 Ulrich Drepper <drepper@redhat.com>
6819
6820 * posix/fnmatch_loop.c: Take rule index returned as part of
6821 findidx return value into account when accessing weights.
6822 * posix/regcomp.c: Likewise.
6823 * posix/regexec.c: Likewise.
6824
6825 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
6826 (skip_to): Fix problems with parameter of elifdef/elifndef.
6827
6828 2007-10-11 Ulrich Drepper <drepper@redhat.com>
6829
6830 * iconv/gconv_simple.c: Add some branch prediction.
6831
6832 2007-10-12 Jakub Jelinek <jakub@redhat.com>
6833
6834 * locale/programs/ld-collate.c (collate_read): If ignore_content
6835 and nowtok is tok_define, eat any tok_eol tokens.
6836
6837 2007-10-11 Jakub Jelinek <jakub@redhat.com>
6838
6839 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
6840 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
6841
6842 * inet/netinet/in.h: Don't include bits/socket.h.
6843 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
6844 macro.
6845 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6846
6847 2007-10-10 Ulrich Drepper <drepper@redhat.com>
6848
6849 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
6850 and tok_elifndef.
6851 * locale/programs/locfile-kw.gperf: Likewise.
6852 * locale/programs/ld-collate.c: Implement primitive preprocessor.
6853
6854 2007-10-10 Jakub Jelinek <jakub@redhat.com>
6855
6856 * stdio-common/printf-parse.h: Include string.h and wchar.h.
6857 (__find_specwc): Change into __extern_always_inline function.
6858 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
6859 (__parse_one_specmb): Remove ps argument.
6860 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
6861 Adjust __find_specmb and __parse_one_specmb callers.
6862 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
6863 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
6864 Removed.
6865 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
6866 caller.
6867
6868 2007-10-09 Ulrich Drepper <drepper@redhat.com>
6869
6870 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
6871 with some Pentium Ds.
6872
6873 2007-10-08 Ulrich Drepper <drepper@redhat.com>
6874
6875 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
6876 __read not read.
6877 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
6878 __write not write.
6879
6880 2007-10-07 Ulrich Drepper <drepper@redhat.com>
6881
6882 [BZ #181]
6883 * locale/C-time.c: Set week_1stday data to 19971201.
6884 * locale/programs/ld-time.c (time_finish): Default for
6885 first_workday is Monday.
6886
6887 [BZ #2633]
6888 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
6889
6890 [BZ #5103]
6891 * posix/glob.c (glob): Recognize patterns starting \/.
6892 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
6893 (main): Add test for pattern starting \/.
6894
6895 * misc/error.h: Use __const instead of const.
6896 * misc/bits/error.h: Likewise.
6897
6898 2007-10-07 Andreas Jaeger <aj@suse.de>
6899
6900 * include/bits/error.h: New file.
6901
6902 * misc/bits/error.h (error_at_line): Fix prototype.
6903
6904 2007-10-06 Ulrich Drepper <drepper@redhat.com>
6905
6906 [BZ #3924]
6907 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
6908 more little bugs in creating the stack frame when pltexit has to
6909 be called.
6910
6911 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
6912 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
6913
6914 [BZ #4407]
6915 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
6916 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6917 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6918 * math/libm-test.inc: Add test for this case.
6919
6920 [BZ #5010]
6921 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
6922 (svc_register): Initialize sc_mapped. Set to TRUE if call to
6923 map service succeeded.
6924 (svc_is_mapped): New function.
6925 (svc_unregister): Use it before trying to unmap service.
6926
6927 2007-10-05 Ulrich Drepper <drepper@redhat.com>
6928
6929 * timezone/zic.c: Update from tzcode2007h.
6930
6931 [BZ #5063]
6932 * timezone/africa: Update from tzdata2007h.
6933 * timezone/antarctica: Likewise.
6934 * timezone/asia: Likewise.
6935 * timezone/australasia: Likewise.
6936 * timezone/europe: Likewise.
6937 * timezone/leapseconds: Likewise.
6938 * timezone/northamerica: Likewise.
6939 * timezone/southamerica: Likewise.
6940 * timzeone/zone.tab: Likewise.
6941
6942 [BZ #5104]
6943 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
6944
6945 [BZ #5113]
6946 * string/bits/string2.h (__strdup): Cast parameters to calloc to
6947 avoid warning with -Wconversion.
6948 (__strndup): Likewise.
6949 Half the patch by Christian Iseli <christian.iseli@licr.org>.
6950
6951 [BZ #5112]
6952 * nscd/connections.c (restart): Don't resync if database is
6953 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
6954
6955 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
6956 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
6957
6958 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
6959 evetnfd_read, eventfd_write.
6960 * sysdeps/unix/sysv/linux/eventfd.c: New file.
6961 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
6962 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
6963 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
6964 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
6965 eventfd_write for GLIBC_2.7.
6966
6967 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
6968 * sysdeps/unix/sysv/linux/signalfd.c: New file.
6969 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
6970 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
6971
6972 2007-10-04 Jakub Jelinek <jakub@redhat.com>
6973
6974 * stdlib/msort.c: Include stdint.h.
6975 (struct msort_param): New type.
6976 (msort_with_tmp): Use struct msort_param pointer for unchanging
6977 parameters. Add optimized handling for several common sizes
6978 and indirect sorting mode.
6979 (qsort): Adjust msort_with_tmp callers. For big S use indirect
6980 sorting.
6981 Suggested by Belazougui Djamel .
6982
6983 * stdlib/Makefile (tests): Add tst-qsort2.
6984 * stdlib/tst-qsort2.c: New test.
6985
6986 2007-10-04 Ulrich Drepper <drepper@redhat.com>
6987
6988 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
6989 for dup2 in case another thread races with the current one. Retry
6990 in this case.
6991
6992 * misc/error.h: Remove support for use outside of libc. We have to
6993 include <features.h> now. Include <bits/error.h> if possible.
6994 * misc/bits/error.h: New file.
6995
6996 2007-10-03 Jakub Jelinek <jakub@redhat.com>
6997
6998 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
6999 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
7000 __extern_always_inline functions unconditionally, drop macros.
7001
7002 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
7003 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
7004 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
7005
7006 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
7007 add __artificial__ attribute.
7008
7009 2007-10-02 Ulrich Drepper <drepper@redhat.com>
7010
7011 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
7012 backward to forward direction.
7013
7014 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
7015
7016 [BZ #645]
7017 * locale/programs/ld-collate.c (collate_finish): Compare against last
7018 used section which is known to have rules defined.
7019 (collate_read): After order_start, correctly record order of sections
7020 and queue sections up.
7021
7022 2007-10-01 Ulrich Drepper <drepper@redhat.com>
7023
7024 [BZ #5071]
7025 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
7026 the same number of pages.
7027 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
7028
7029 * locale/programs/ld-collate.c (collate_read): After initial copy
7030 statement, continue in state 0.
7031
7032 * include/stdio_ext.h (__fsetlocking): Define as macro.
7033
7034 2007-09-30 Ulrich Drepper <drepper@redhat.com>
7035
7036 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
7037 of section order.
7038
7039 * po/pt_BR.po: Fix typo.
7040
7041 2007-09-29 Ulrich Drepper <drepper@redhat.com>
7042
7043 * iconvdata/Makefile (modules): Add ISO8859-9E.
7044 (distribute): Add iso8859-9e.c.
7045 (gen-8bit-gap-modules): Add iso8859-9e.
7046 * iconvdata/iso8859-9e.c: New file.
7047 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
7048 * iconvdata/TESTS: Likewise.
7049 * iconvdata/tst-tables.sh: Likewise.
7050
7051 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7052
7053 * locale/iso-639.def: Add several new entries.
7054
7055 2007-09-24 Jakub Jelinek <jakub@redhat.com>
7056
7057 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
7058 void * pointers instead of struct link_map **.
7059 (_dl_scope_free): Change argument type to void *.
7060 * include/link.h (struct link_map): Change type of l_reldeps
7061 to struct link_map_reldeps, move l_reldepsact into that
7062 struct too.
7063 * elf/dl-deps.c: Include atomic.h.
7064 (_dl_map_object_deps): Only change l->l_initfini when it is
7065 fully populated, use _dl_scope_free for freeing it. Optimize
7066 removal of libs from reldeps by using l_reserved flag, when
7067 some removal is needed, allocate a new list instead of
7068 reallocating and free the old with _dl_scope_free. Adjust
7069 for l_reldeps and l_reldepsact changes.
7070 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
7071 searching in l_initfini and l_reldeps without holding dl_load_lock.
7072 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
7073 l_reldepsact changes.
7074 * elf/dl-close.c (_dl_close_worker): Likewise.
7075 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
7076
7077 2007-09-28 Ulrich Drepper <drepper@redhat.com>
7078
7079 * iconvdata/Makefile (modules): Add KOI8-RU.
7080 (distribute): Add koi8-ru.c.
7081 (gen-8bit-gap-modules): Add koi8-ru.
7082 * iconvdata/koi8-ru.c: New file.
7083 * iconvdata/gconv-modules: Add entries for KOI8-RU.
7084 * iconvdata/TESTS: Likewise.
7085 * iconvdata/tst-tables.sh: Likewise.
7086
7087 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
7088
7089 2007-09-26 Jakub Jelinek <jakub@redhat.com>
7090
7091 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
7092 with __warning__/__error__ attributes.
7093 (__warnattr): Define.
7094 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
7095 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
7096 __warnattr.
7097 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
7098 of __*_chk if compile time detectable overflow is found.
7099 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
7100 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
7101 with __warnattr.
7102 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
7103 instead of __*_chk if compile time detectable overflow is found.
7104 (__gets_alias): Rename to...
7105 (__gets_warn): ... this. Add __warnattr.
7106 (gets): Call __gets_warn instead of __gets_alias.
7107 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
7108 aliases with __warnattr.
7109 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
7110 time detectable overflow is found.
7111 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
7112 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
7113 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
7114 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
7115 __getdomainname_chk_warn): New aliases with __warnattr.
7116 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
7117 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
7118 __*_chk_warn instead of __*_chk if compile time detectable overflow
7119 is found.
7120 (__getgroups_chk): Rename argument to __listlen from listlen.
7121 (__getwd_alias): Rename to...
7122 (__getwd_warn): ... this. Add __warnattr.
7123 (getwd): Call __getwd_warn instead of __getwd_alias.
7124 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
7125 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
7126 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
7127 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
7128 __wcsnrtombs_chk_warn): New aliases with __warnattr.
7129 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
7130 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
7131 compile time detectable overflow is found.
7132 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
7133 to use __*_chk or not.
7134 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
7135 in comparisons which function should be called and in __*_chk*
7136 arguments. Call __*_chk_warn instead of __*_chk if compile time
7137 detectable overflow is found.
7138 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
7139 __*_chk argument.
7140 * debug/tst-chk1.c (do_test): Add a few more tests.
7141
7142 2007-09-24 Ulrich Drepper <drepper@redhat.com>
7143
7144 [BZ #5058]
7145 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
7146 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
7147 (_nl_unload_domain): Finalize conversions_lock.
7148 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
7149 handling table of known conversions.
7150
7151 2007-09-24 Jakub Jelinek <jakub@redhat.com>
7152
7153 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
7154 close_not_cancel_no_status instead of close.
7155
7156 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
7157
7158 [BZ #5028]
7159 * posix/regcomp.c (lookup_collation_sequence_value): Check that
7160 nrules != 0 for multibyte chars.
7161
7162 2007-09-23 Ulrich Drepper <drepper@redhat.com>
7163
7164 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
7165 Provide better error message in case the type is unknown.
7166
7167 [BZ #4963]
7168 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
7169 * string/stratcliff.c: Make usable to test wide char functions.
7170 * wcsmbs/wcsatcliff.c: New file.
7171 * wcsmbs/Makefiel (tests): Add wcsatcliff.
7172
7173 [BZ #4972]
7174 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
7175 (distribute): Add mac-centraleurope.c.
7176 (gen-8bit-gap-modules): Add mac-centraleurope.
7177 * iconvdata/mac-centraleurope.c: New file.
7178 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
7179 * iconvdata/TESTS: Likewise.
7180 * iconvdata/tst-tables.sh: Likewise.
7181
7182 [BZ #5043]
7183 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
7184
7185 2007-09-21 Ulrich Drepper <drepper@redhat.com>
7186
7187 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
7188 from __x86_64_core_cache_size_half.
7189 (init_cacheinfo): Compute shared cache size for AMD processors with
7190 shared L3 correctly.
7191 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
7192 name change.
7193 Patch in large parts by Evandro Menezes.
7194
7195 2007-09-19 Ulrich Drepper <drepper@redhat.com>
7196
7197 * elf/dl-lookup.c (add_dependency): Handle failing memory
7198 allocation for dependency list. Remove unnecessary check.
7199
7200 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
7201 open/close when determining source addresses.
7202
7203 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
7204 sha512-crypt, and sha512.
7205 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
7206 (distribute): Add sha256.h and sha512.h.
7207 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
7208 and call the appropriate code.
7209 * crypt/sha256-crypt.c: New file.
7210 * crypt/sha256.c: New file.
7211 * crypt/sha256.h: New file.
7212 * crypt/sha256c-test.c: New file.
7213 * crypt/sha256test.c: New file.
7214 * crypt/sha512-crypt.c: New file.
7215 * crypt/sha512.c: New file.
7216 * crypt/sha512.h: New file.
7217 * crypt/sha512c-test.c: New file.
7218 * crypt/sha512test.c: New file.
7219
7220 2007-09-19 Jakub Jelinek <jakub@redhat.com>
7221
7222 * misc/bits/syslog.h (syslog): Remove extraneous argument from
7223 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
7224 __syslog_chk.
7225
7226 2007-09-18 Jakub Jelinek <jakub@redhat.com>
7227
7228 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
7229 %as in fscanf format strings.
7230
7231 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
7232 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7233 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7234 Likewise.
7235 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7236 Likewise.
7237
7238 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
7239 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
7240 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
7241 * elf/dl-sym.c (do_sym): Likewise.
7242 * include/link.h (struct link_map): Add l_serial field.
7243 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
7244 * elf/dl-lookup.c (add_dependency): Add flags argument.
7245 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
7246 flags, use THREAD_GSCOPE_RESET_FLAG before and
7247 THREAD_GSCOPE_SET_FLAG after
7248 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
7249 Don't dereference map until it has been found on some list.
7250 If map->l_serial changed, return -1.
7251
7252 2007-09-17 Jakub Jelinek <jakub@redhat.com>
7253
7254 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
7255 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
7256 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
7257 libc_hidden_proto.
7258 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
7259 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
7260 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
7261 add libc_hidden_proto.
7262 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7263 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7264 conformance requested.
7265 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
7266 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
7267 conformance requested.
7268 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
7269 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
7270 conformance requested.
7271 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
7272 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
7273 ISO C99 or POSIX conformance requested.
7274 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
7275 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
7276 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
7277 and __isoc99_vsscanf@@GLIBC_2.7.
7278 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
7279 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
7280 (tests): Add scanf14.
7281 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
7282 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
7283 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
7284 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
7285 CFLAGS-isoc99_scanf.c): Add $(exceptions).
7286 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
7287 from using internal headers.
7288 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
7289 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
7290 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
7291 and __isoc99_vswscanf@@GLIBC_2.7.
7292 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
7293 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
7294 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
7295 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
7296 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
7297 * stdio-common/isoc99_scanf.c: New file.
7298 * stdio-common/isoc99_vsscanf.c: New file.
7299 * stdio-common/isoc99_vscanf.c: New file.
7300 * stdio-common/isoc99_vfscanf.c: New file.
7301 * stdio-common/isoc99_fscanf.c: New file.
7302 * stdio-common/isoc99_sscanf.c: New file.
7303 * wcsmbs/isoc99_fwscanf.c: New file.
7304 * wcsmbs/isoc99_vswscanf.c: New file.
7305 * wcsmbs/isoc99_swscanf.c: New file.
7306 * wcsmbs/isoc99_wscanf.c: New file.
7307 * wcsmbs/isoc99_vwscanf.c: New file.
7308 * wcsmbs/isoc99_vfwscanf.c: New file.
7309 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
7310 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
7311 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
7312 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
7313 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
7314 * stdio-common/scanf14.c: New test.
7315 * stdio-common/scanf15.c: New test.
7316 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7317 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
7318 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
7319 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
7320 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
7321 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
7322 __nldbl___isoc99_scanf@@GLIBC_2.7,
7323 __nldbl___isoc99_fscanf@@GLIBC_2.7,
7324 __nldbl___isoc99_sscanf@@GLIBC_2.7,
7325 __nldbl___isoc99_vscanf@@GLIBC_2.7,
7326 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
7327 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
7328 __nldbl___isoc99_wscanf@@GLIBC_2.7,
7329 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
7330 __nldbl___isoc99_swscanf@@GLIBC_2.7,
7331 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
7332 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
7333 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
7334 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
7335 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
7336 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
7337 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
7338 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
7339 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7340 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
7341 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
7342 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
7343 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
7344 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
7345 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
7346 functions.
7347 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
7348 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
7349 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
7350 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
7351 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
7352 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
7353 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
7354 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
7355 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
7356 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
7357 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
7358 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
7359
7360 * stdio-common/Makefile (tests): Add scanf13.
7361 (scanf13-ENV): New.
7362 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
7363 m modifier followed by l.
7364 (STRING_ARG): Add width argument.
7365 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
7366 <case L_('C')>: Handle %mlc and %mC.
7367 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
7368 arguments.
7369 * stdio-common/scanf13.c: New test.
7370
7371 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
7372 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
7373
7374 2007-09-18 Ulrich Drepper <drepper@redhat.com>
7375
7376 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
7377 type and __THROW marker of splice, vmsplice, and tee.
7378 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7379 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7380 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7381 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7382 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7383 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7384 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7385 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
7386 as cancellation points.
7387
7388 2003-11-01 Daniel Jacobowitz <dan@debian.org>
7389
7390 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
7391 parse more than three parts of the version number.
7392
7393 2007-09-15 Ulrich Drepper <drepper@redhat.com>
7394
7395 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
7396 modifier. Patch by Jakub Jelinek.
7397
7398 2007-08-26 Jakub Jelinek <jakub@redhat.com>
7399
7400 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
7401 call_fallocate in misc subdir.
7402 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
7403 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
7404 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
7405 instead of __fallocate64.
7406 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
7407
7408 2007-09-15 Jakub Jelinek <jakub@redhat.com>
7409
7410 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
7411 * rt/Makefile (headers): Add bits/mqueue2.h.
7412 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
7413 optimizing with GCC and __va_arg_pack_len is defined.
7414 * rt/bits/mqueue2.h: New file.
7415 * rt/mq_open.c (__mq_open): Renamed from mq_open.
7416 (mq_open): New strong_alias.
7417 (__mq_open_2): New function.
7418 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
7419 (mq_open): New strong_alias.
7420 (__mq_open_2): New function.
7421 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
7422 * Versions.def (librt): Add GLIBC_2.7 version.
7423 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
7424 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
7425
7426 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
7427 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
7428 is defined rather than when not C++.
7429 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
7430 __openat64_alias): New redirects.
7431 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
7432 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
7433 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
7434 (open, open64, openat, openat64): Rewrite as __extern_always_inline
7435 functions instead of function-like macros.
7436
7437 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
7438
7439 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
7440 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
7441 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
7442
7443 2007-09-15 Mike Frysinger <vapier@gentoo.org>
7444
7445 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
7446 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
7447
7448 2007-09-14 Mike Frysinger <vapier@gentoo.org>
7449
7450 * inet/tst-network.c: Increment ERRORS for failing tests.
7451
7452 2007-09-07 Jakub Jelinek <jakub@redhat.com>
7453
7454 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
7455 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
7456 implement as __extern_always_inline function.
7457 (vsyslog): Define as __extern_always_inline function unconditionally.
7458 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
7459 When __va_arg_pack is defined, implement as __extern_always_inline
7460 functions.
7461 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7462 __extern_always_inline functions unconditionally.
7463 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
7464 bits/stdio2.h will be included.
7465 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
7466 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
7467 implement as __extern_always_inline functions.
7468 (vswprintf, vwprintf, vfwprintf): Define as
7469 __extern_always_inline functions unconditionally.
7470 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
7471
7472 2007-09-03 Jakub Jelinek <jakub@redhat.com>
7473
7474 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
7475 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
7476 attribute.
7477 * include/features.h (__USE_EXTERN_INLINES): Define only when
7478 __extern_inline is defined.
7479 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
7480 is defined instead of when not __cplusplus.
7481 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
7482 is defined instead of when not __cplusplus.
7483 * socket/sys/socket.h: Include bits/socket2.h when
7484 __extern_always_inline is defined instead of when not __cplusplus.
7485 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
7486 is defined instead of when not __cplusplus.
7487 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
7488 is defined instead of when not __cplusplus.
7489 * string/string.h: Include bits/string3.h when __extern_always_inline
7490 is defined instead of when not __cplusplus.
7491 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
7492 is defined instead of when not __cplusplus.
7493 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
7494 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
7495 is not defined.
7496 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
7497 defined __extern_always_inline instead of !defined __cplusplus.
7498 * libio/bits/stdio-ldbl.h: Likewise.
7499 * wcsmbs/bits/wchar-ldbl.h: Likewise.
7500 * misc/bits/syslog.h (syslog): Don't define for C++.
7501 (vsyslog): Use __extern_always_inline function for C++ instead of
7502 a macro.
7503 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
7504 whenever that macro is defined.
7505 (vprintf): Don't provide the inline for C++.
7506 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
7507 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
7508 define the macros for C++.
7509 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
7510 __extern_always_inline functions for C++.
7511 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
7512 stat64, lstat64, fstat64, fstatat64): Don't define if not
7513 __USE_EXTERN_INLINES.
7514 * wcsmbs/bits/wchar2.h: Fix #error message.
7515 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
7516 (vswprintf, vwprintf, vfwprintf): Define using
7517 __extern_always_inline functions for C++.
7518 * string/bits/string3.h: Don't #undef macros if __cplusplus.
7519 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
7520 strncpy, strcat, strncat): Define as __extern_always_inline
7521 functions instead of macros for C++.
7522 * math/bits/cmathcalls.h: Guard __extern_inline routines with
7523 defined __extern_inline.
7524 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
7525 to __extern_inline whenever that macro is defined.
7526 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7527 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7528 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
7529 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
7530 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7531 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7532 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7533 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
7534 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
7535 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
7536 prototypes. Only provide __extern_inline routines if
7537 __USE_EXTERN_INLINES.
7538 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
7539 tests.
7540 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
7541 For now avoid some *printf tests in C++. Skip all testing
7542 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
7543 is not.
7544 * debug/tst-chk4.cc: New file.
7545 * debug/tst-chk5.cc: New file.
7546 * debug/tst-chk6.cc: New file.
7547 * debug/tst-lfschk4.cc: New file.
7548 * debug/tst-lfschk5.cc: New file.
7549 * debug/tst-lfschk6.cc: New file.
7550 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
7551 prototypes in C++.
7552 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
7553 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
7554 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
7555
7556 2007-09-13 Ulrich Drepper <drepper@redhat.com>
7557
7558 * po/cs.po: Update from translation team.
7559
7560 2007-09-11 Roland McGrath <roland@redhat.com>
7561
7562 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
7563 compiling.
7564
7565 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
7566
7567 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
7568
7569 2007-09-05 Roland McGrath <roland@redhat.com>
7570
7571 * manual/signal.texi (Signaling Another Process): Typo fix.
7572 From Karl Berry <karl@freefriends.org>.
7573
7574 2007-08-29 Ulrich Drepper <drepper@redhat.com>
7575
7576 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
7577 zero if not defined.
7578 (make_request): Recognize optimistic addresses and treat them like
7579 deprecated addresses.
7580 Reported by Neil Horman <nhorman@redhat.com>.
7581
7582 2007-08-28 Ulrich Drepper <drepper@redhat.com>
7583
7584 * nscd/connections.c (send_ro_fd): Also transfer file size.
7585 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
7586 file size don't call fstat.
7587
7588 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
7589 ahead and map the file. This should always be correct and we can
7590 catch problems later.
7591
7592 2007-08-28 Jakub Jelinek <jakub@redhat.com>
7593
7594 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
7595 prototypes.
7596 (__fread_alias, __fread_unlocked_alias): New aliases.
7597 (fread): New extern inline.
7598 (fread_unlocked): Likewise. Undef macro before definition of
7599 the inline function.
7600 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
7601 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
7602 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
7603 and __fread_unlocked_chk@@GLIBC_2.7.
7604 * debug/fread_chk.c: New file.
7605 * debug/fread_u_chk.c: New file.
7606 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
7607
7608 2007-08-27 Jakub Jelinek <jakub@redhat.com>
7609
7610 * sysdeps/unix/sysv/linux/syscalls.list
7611 (personality): Change caller to EXTRA.
7612
7613 2007-08-25 Ulrich Drepper <drepper@redhat.com>
7614
7615 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
7616 to keep gcc quiet.
7617 * iconvdata/iso-2022-cn.c (BODY): Likewise.
7618
7619 * locale/programs/ld-collate.c (collate_output): Avoid warning if
7620 NDEBUG is defined.
7621
7622 * Makerules: Use -p option with mkdir.
7623
7624 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
7625 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
7626 (_xdr_directory_obj): Likewise.
7627 (xdr_entry_obj): Likewise.
7628 (xdr_group_obj): Likewise.
7629 (xdr_link_obj): Likewise.
7630 (xdr_table_obj): Likewise.
7631 (_xdr_nis_result): Likewise.
7632 (_xdr_ns_request): Likewise.
7633 (_xdr_ib_request): Likewise.
7634 (_xdr_nis_taglist): Likewise.
7635 (xdr_cback_data): Likewise.
7636 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
7637 (xdr_ypresp_maplist): Likewise.
7638
7639 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
7640
7641 * posix/regex_internal.h: Prevent some declarations and definitions
7642 to be seen when used in tests.
7643
7644 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
7645 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
7646
7647 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
7648
7649 * config.make.in (datarootdir): Add to shut up configure.
7650
7651 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
7652 associativity for fully-associative caches.
7653
7654 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
7655 requests. Fill on more associativity values for L2.
7656 Patch mostly by Evandro Menezes.
7657
7658 2007-08-24 Ulrich Drepper <drepper@redhat.com>
7659
7660 * sysdeps/unix/sysv/linux/x86_64/init-first.c
7661 (_libc_vdso_platform_setup): Avoid using exported variable by using
7662 alias.
7663
7664 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
7665
7666 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
7667 fallocate64 as EXTRA. It is not referenced if the symbol isn't
7668 defined.
7669
7670 2007-08-23 Ulrich Drepper <drepper@redhat.com>
7671
7672 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
7673 align stack for call if pltexit is to be used.
7674
7675 [BZ #3924]
7676 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
7677 align for function call in case pltexit has to be called later.
7678
7679 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
7680 implicit atomic operation when storing function pointer.
7681 (_dl_runtime_profile): Likewise.
7682
7683 2007-08-17 Jakub Jelinek <jakub@redhat.com>
7684
7685 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
7686 NIS_NOTFOUND.
7687
7688 2007-08-21 Ulrich Drepper <drepper@redhat.com>
7689
7690 [BZ #4566]
7691 * string/strtok.c: Fix typo in comment.
7692
7693 [BZ #4582]
7694 * debug/segfault.c: Fix typos in comments.
7695
7696 [BZ #4588]
7697 * stdio-common/tempnam.c: Fix comment, it is not checked that
7698 TMPDIR points to a writable directory.
7699
7700 [BZ #4726]
7701 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
7702 memory allocated for the name server address.
7703
7704 [BZ #4946]
7705 * nscd/connections.c (handle_request): Using sendfile always
7706 requires that mmap is used for the database.
7707 Patch by Petr Baudis <pasky@suse.cz>.
7708
7709 [BZ #4905]
7710 * nscd/hstcache.c (cache_addhst): When reloading an entry which
7711 suddenly has two or more addresses, ignore it and remove the old
7712 entry.
7713
7714 [BZ #4814]
7715 * resolv/res_hconf.c: Prepare for compiling outside libc.
7716 * nscd/res_hconf.c: New file.
7717 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
7718 the new file.
7719 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
7720 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
7721
7722 * nscd/hstcache.c (cache_addhst): Minimal optimization.
7723
7724 [BZ #4925]
7725 * debug/pcprofiledump.c: Turn on internationalization by calling
7726 setlocale. Patch mostly by Benno Schulenberg.
7727
7728 [BZ #4936]
7729 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
7730 the state.
7731 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
7732 * iconvdata/bug-iconv5.c: New file.
7733
7734 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
7735
7736 [BZ #4896]
7737 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
7738 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
7739 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
7740 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
7741 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
7742 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
7743 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
7744 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
7745
7746 2007-08-21 Ulrich Drepper <drepper@redhat.com>
7747
7748 [BZ #4937]
7749 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
7750 lookup loop. Suggested by John Reiser.
7751
7752 2007-08-21 Jakub Jelinek <jakub@redhat.com>
7753
7754 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
7755
7756 2007-08-20 Ulrich Drepper <drepper@redhat.com>
7757
7758 * csu/libc-start.c: Don't handle VDSO_SETUP here.
7759 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
7760 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
7761 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
7762 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
7763 to...
7764 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
7765
7766 2007-08-18 Ulrich Drepper <drepper@redhat.com>
7767
7768 * po/nl.po: Update from translation team.
7769
7770 2007-08-16 Andreas Jaeger <aj@suse.de>
7771
7772 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
7773 Reported by Peter Festner <peter.festner@ewetel.net>.
7774
7775 2007-08-17 Jakub Jelinek <jakub@redhat.com>
7776
7777 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
7778
7779 2007-08-16 Jakub Jelinek <jakub@redhat.com>
7780
7781 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
7782 to check for undefined symbols.
7783
7784 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
7785 If the syscall fails, set errno to the actual returned error number
7786 rather than EINVAL.
7787 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
7788 arguments are incorrect, set errno to EINVAL, if the syscall
7789 fails, set errno to the actual returned error number.
7790
7791 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
7792 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
7793
7794 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
7795 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
7796 file.
7797 (ASI_PNF, ASI_BLK_P): Don't define.
7798 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
7799 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
7800 file.
7801 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
7802 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
7803 file.
7804
7805 2007-08-15 Jakub Jelinek <jakub@redhat.com>
7806
7807 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
7808 FE_UNDERFLOW on Niagara CPUs.
7809
7810 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
7811 exceptions.
7812
7813 2007-08-14 Jakub Jelinek <jakub@redhat.com>
7814
7815 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
7816 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
7817 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
7818 flush should be used or not inside of the function.
7819 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
7820
7821 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
7822 __thread_start): Use HIDDEN_JUMPTARGET.
7823 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
7824 __thread_start): Likewise.
7825 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
7826
7827 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
7828 Add libc_hidden_proto.
7829 (STRTOF): Add libc_hidden_proto.
7830 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
7831 (strtold_l, wcstold_l): Use them as second argument for
7832 long_double_symbol.
7833
7834 2007-08-14 Ulrich Drepper <drepper@redhat.com>
7835
7836 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
7837
7838 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7839
7840 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
7841
7842 2007-08-14 Ulrich Drepper <drepper@redhat.com>
7843
7844 * po/bg.po: New file. From the translation team.
7845
7846 2007-08-13 Jakub Jelinek <jakub@redhat.com>
7847
7848 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
7849 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
7850 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
7851 when each feature was introduced.
7852
7853 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
7854 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
7855 (CHECK_HASH): New macro.
7856 (PREPARE_VERSION): Use it.
7857
7858 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
7859 prototype if not __ASSUME_PSELECT.
7860 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
7861 prototype if not __ASSUME_PPOLL.
7862
7863 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
7864
7865 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
7866 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
7867 is defined.
7868
7869 2007-08-13 Ulrich Drepper <drepper@redhat.com>
7870
7871 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7872 (_libc_vdso_platform_setup): If vDSO is not available point
7873 __vdso_gettimeofday to the vsyscall.
7874 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
7875 __vdso_gettimeofday instead of vsyscall.
7876
7877 2007-08-13 Jakub Jelinek <jakub@redhat.com>
7878
7879 * nscd/servicescache.c: Include kernel-features.h.
7880 * nscd/gai.c: Likewise.
7881 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
7882 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
7883 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
7884 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
7885 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
7886 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
7887 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
7888 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
7889 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
7890
7891 2007-08-12 Ulrich Drepper <drepper@redhat.com>
7892
7893 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
7894 and _dl_get_origin defines anymore.
7895
7896 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
7897 Build fix for systems which might lack POSIX timer support.
7898
7899 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
7900 (_libc_vdso_platform_setup): Mangle function pointers before storing
7901 them.
7902 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
7903 Demangle vdso pointer before use.
7904 (INTERNAL_VSYSCALL): Likewise.
7905
7906 * elf/cache.c (primes): Mark as const.
7907 Noted by Roland McGrath.
7908
7909 2007-08-01 Andreas Jaeger <aj@suse.de>
7910 Jakub Jelinek <jakub@redhat.com>
7911
7912 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
7913 (options): Add option.
7914 (parse_opt): Handle option.
7915 (manual_link): Adjust process_file caller. Call implicit_soname.
7916 (search_dir): Formatting. Use and populate auxiliary cache.
7917 (main): Load and save auxiliary cache.
7918 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
7919 stat64 from fstat64 to caller.
7920 (implicit_soname): New function.
7921 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
7922 leave *soname as NULL.
7923 * elf/cache.c: Include libgen.h.
7924 (print_entry, print_cache, compare, save_cache, add_to_cache):
7925 Formatting and cleanups.
7926 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
7927 aux_cache_file): New structures.
7928 (AUX_CACHEMAGIC): Define.
7929 (primes): New array.
7930 (aux_hash_size, aux_hash): New variables.
7931 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
7932 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
7933 load_aux_cache, save_aux_cache): New functions.
7934 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
7935 (init_aux_cache, search_aux_cache, add_to_aux_cache,
7936 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
7937 (process_file): Adjust prototype.
7938
7939 2007-08-12 Jakub Jelinek <jakub@redhat.com>
7940
7941 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
7942 with __need_size_t.
7943
7944 2007-08-12 Ulrich Drepper <drepper@redhat.com>
7945
7946 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
7947 r_found_version structure as second parameter.
7948 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
7949 (_dl_vdso_vsym): Change type of second parameter accordingly.
7950 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
7951 (_libc_vdso_platform_setup): Adjust.
7952 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7953 (_libc_vdso_platform_setup): Likewise.
7954
7955 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
7956 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
7957 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
7958 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
7959 * csu/libc-start.c: Pretty printing.
7960 Use VDSO_SETUP if defined.
7961 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
7962 and let generic code call into _libc_vdso_platform_setup.
7963 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
7964 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
7965 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
7966 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
7967 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
7968 for GLIBC_PRIVATE.
7969 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
7970 (sysdep_rountines): Add dl-vdso.
7971
7972 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
7973 of routines.
7974
7975 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
7976 attribute_hidden to __vdso_gettimeofday prototype.
7977
7978 2007-08-12 Roland McGrath <roland@redhat.com>
7979
7980 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
7981 From: Karl Berry <karl@freefriends.org>.
7982
7983 2007-08-11 Ulrich Drepper <drepper@redhat.com>
7984
7985 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
7986 an atime update for the files we read.
7987
7988 2007-08-10 Ulrich Drepper <drepper@redhat.com>
7989
7990 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
7991
7992 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
7993 instead of mkstemp.
7994
7995 * misc/Makefile (routines): Add mkostemp and mkostemp64.
7996 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
7997 * misc/mkostemp.c: New file.
7998 * misc/mkostemp64.c: New file.
7999 * stdlib/stdlib.h: Declare the new functions.
8000 * sysdeps/posix/tempname.c: Add new parameter which is added to
8001 the flags for open. Remove __GT_BIGFILE handling.
8002 * stdio-common/tempname.c: Likewise.
8003 * include/stdio.h: Adjust __gen_tempname prototype.
8004 Renumber __GT_* constants.
8005 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
8006 * misc/mkdtemp.c: Likewise.
8007 * misc/mkstemp.c: Likewise.
8008 * misc/mkstemp64.c: Likewise.
8009 * misc/mktemp.c: Likewise.
8010 * stdio-common/tempnam.c: Likewise.
8011 * stdio-common/tmpfile.c: Likewise.
8012 * stdio-common/tmpfile64.c: Likewise.
8013 * stdio-common/tmpnam.c: Likewise.
8014 * stdio-common/tmpnam_r.c: Likewise.
8015
8016 2007-08-10 Roland McGrath <roland@frob.com>
8017
8018 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
8019 New macros.
8020 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
8021 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8022
8023 2007-08-10 Ulrich Drepper <drepper@redhat.com>
8024
8025 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
8026 possible.
8027 * nss/nss_files/files-alias.c (internal_setent): Likewise.
8028 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
8029 * nss/nss_files/files-have_o_cloexec.c: New file.
8030
8031 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
8032 available.
8033
8034 2007-08-10 Jakub Jelinek <jakub@redhat.com>
8035
8036 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
8037 ___new_wcstold_l): New weak aliases.
8038 (strtold_l, wcstold_l): Use them as second argument for
8039 long_double_symbol.
8040
8041 2007-08-09 Ulrich Drepper <drepper@redhat.com>
8042
8043 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
8044 register in test for error.
8045
8046 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
8047 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
8048
8049 * po/sv.po: Update from translation team.
8050
8051 2007-08-06 Roland McGrath <roland@redhat.com>
8052
8053 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
8054 Remove __strto*_l inlines.
8055 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
8056 * stdlib/strtod.c: Add libc_hidden_def.
8057 * stdlib/strtod_l.c: Likewise.
8058 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
8059 for __new_strtold and __new_wcstold.
8060 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
8061 __STRTOF, STRTOF.
8062 * stdlib/strtol.c: Add libc_hidden_def.
8063 * stdlib/strtol_l.c: Likewise.
8064 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
8065 strtoq.
8066
8067 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
8068
8069 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
8070 * scripts/data/localplt-generic.data: ... here.
8071 * elf/Makefile (check-data): Get generic file if no other.
8072 ($(objpfx)check-localplt.out): Make target unconditional.
8073
8074 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
8075 Use ElfW(Nhdr).
8076
8077 2007-08-05 Ulrich Drepper <drepper@redhat.com>
8078
8079 * po/zh_CN.po: Updated translation from translation team.
8080
8081 2007-08-05 Jakub Jelinek <jakub@redhat.com>
8082
8083 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
8084 Don't use CGOTSETUP and CGOTRESTORE macros.
8085
8086 2007-08-04 Roland McGrath <roland@redhat.com>
8087
8088 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
8089
8090 2007-08-04 Jakub Jelinek <jakub@redhat.com>
8091
8092 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
8093 __extension__ around the whole statement expression.
8094
8095 2007-08-04 Ulrich Drepper <drepper@redhat.com>
8096
8097 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
8098 elements during initialization.
8099
8100 * po/pl.po: Updated translation from translation team.
8101 * po/tr.po: Likewise.
8102 * po/nl.po: Likewise.
8103
8104 2007-08-03 Ulrich Drepper <drepper@redhat.com>
8105
8106 * rt/aio.h: Add __nonnull attributes.
8107
8108 2007-08-03 Jakub Jelinek <jakub@redhat.com>
8109
8110 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
8111 * stdlib/Makefile (tests): Add tst-strtod5.
8112 (tst-strtod5-ENV): New.
8113 * stdlib/tst-strtod5.c: New file.
8114
8115 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
8116 failed.
8117 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
8118 on failure.
8119
8120 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
8121 allocated.
8122
8123 2007-08-03 Jakub Jelinek <jakub@redhat.com>
8124
8125 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
8126 numbers.
8127
8128 2007-08-02 Ulrich Drepper <drepper@redhat.com>
8129
8130 * io/Makefile (aux): Add have_o_cloexec.
8131 * include/fcntl.h: Declare __have_o_cloexec.
8132 * io/have_o_cloexec.c: New file.
8133 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
8134 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
8135 fcntl call if not necessary.
8136 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
8137 of local variable.
8138
8139 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
8140 Avoid memset, add explicit initialization.
8141 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
8142 to the end and change into zero-sized array.
8143 Move lock member to fill a hole on 64-bit platforms.
8144
8145 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
8146 inline functions.
8147 * include/stdlib.h: Add __strto*_internal prototypes here.
8148 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
8149 inline functions.
8150 * include/wchar.h: Add __wcsto*_internal prototypes.
8151 * sysdeps/generic/inttypes.h: No need to protect the declaration
8152 of the __strto*_internal and __wcsto*_internal members here.
8153
8154 * rt/mqueue.h: Change const to __const and add nonnull attributes.
8155
8156 2007-08-02 Roland McGrath <roland@redhat.com>
8157
8158 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
8159 $(inst_bindir)/getconf if possible.
8160
8161 * posix/Makefile ($(objpfx)getconf.speclist): New target.
8162 (generated): Add it.
8163 ($(inst_libexecdir)/getconf): Use it.
8164
8165 2007-08-01 Ulrich Drepper <drepper@redhat.com>
8166
8167 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
8168 /proc is faster and sufficient. /sys is still needed for
8169 __get_nprocs_conf.
8170
8171 2007-08-01 Jakub Jelinek <jakub@redhat.com>
8172
8173 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
8174 syscall as __fallocate64.
8175 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
8176 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
8177
8178 2007-07-30 Jakub Jelinek <jakub@redhat.com>
8179
8180 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
8181 value.
8182
8183 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
8184 if off_t is different rank from size_t.
8185
8186 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
8187 uw_frame_state_for): Avoid type punning warnings.
8188 * sysdeps/generic/unwind-dw2-fde-glibc.c
8189 (_Unwind_IteratePhdrCallback): Likewise.
8190 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
8191 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
8192 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
8193 pointers.
8194
8195 2007-07-31 Ulrich Drepper <drepper@redhat.com>
8196
8197 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
8198 total processors using sysfs.
8199 (__get_nprocs): Use sysfs to determine which processors are online.
8200
8201 2007-07-31 Jakub Jelinek <jakub@redhat.com>
8202
8203 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
8204 syscall arguments count.
8205
8206 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
8207
8208 2007-07-30 Roland McGrath <roland@redhat.com>
8209
8210 * manual/libc.texinfo: Update copyrights, formatting magic, and
8211 @dircategory. From Karl Berry <karl@freefriends.org>.
8212
8213 2007-07-29 Ulrich Drepper <drepper@redhat.com>
8214
8215 [BZ #4860]
8216 * io/Makefile (headers): Add bits/fcntl2.h.
8217
8218 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
8219 using gcc builtin.
8220 (__CPU_EQUAL_S): Likewise.
8221
8222 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
8223 (tests): Add tst-cpuset.
8224 * posix/sched_cpualloc.c: New file.
8225 * posix/sched_cpufree.c: New file.
8226 * posix/tst-cpuset.c: New file.
8227 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
8228 GLIBC_2.7.
8229 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
8230 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
8231 macros. Define CPU_*_S macros.
8232
8233 2007-07-28 Ulrich Drepper <drepper@redhat.com>
8234
8235 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
8236 entry.
8237
8238 [BZ #4858]
8239 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
8240 #.0g and value rounded to 1.0.
8241 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
8242
8243 2007-07-26 Jakub Jelinek <jakub@redhat.com>
8244
8245 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
8246 for int_frac_digits and frac_digits.
8247
8248 * login/logout.c (logout): Avoid aliasing violation.
8249 * login/logwtmp.c (logwtmp): Likewise.
8250
8251 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
8252
8253 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
8254 to avoid warning.
8255 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
8256 warning.
8257 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
8258 warning.
8259 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
8260 to avoid warnings.
8261
8262 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
8263 void **.
8264 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
8265
8266 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
8267 char * to avoid warning.
8268 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
8269
8270 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
8271
8272 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
8273 allocate_arrays): Cast second argument to charmap_find_symbol
8274 to char * to avoid warnings.
8275
8276 * locale/programs/repertoire.c (repertoire_new_char): Change
8277 from_nr, to_nr and cnt to unsigned long, adjust printf format
8278 string.
8279
8280 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
8281 Cast second argument to new_element to char * to avoid warnings.
8282
8283 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
8284
8285 * intl/gettextP.h (struct loaded_domain): Change plural to const
8286 struct expression *.
8287 * intl/plural-eval.c (plural_eval): Change first argument to
8288 const struct expression *.
8289 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
8290 argument to const struct expression **.
8291 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
8292 prototypes.
8293 * intl/loadmsgcat (_nl_unload_domain): Cast away const
8294 in call to __gettext_free_exp.
8295
8296 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
8297 unitialized wstring/wpattern var warnings.
8298
8299 * posix/runtests.c (struct a_test): Make data field const char *.
8300
8301 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
8302 vars if not LDBL_MANT_DIG >= 106.
8303
8304 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
8305
8306 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
8307 __find_specmb to avoid warning.
8308
8309 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
8310
8311 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
8312 to avoid warnings.
8313
8314 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
8315 initializer.
8316
8317 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
8318 tv var when it will be actually used.
8319
8320 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
8321 to avoid warnings.
8322
8323 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
8324 char array resp. pointer.
8325 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
8326 char array.
8327 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
8328 to const unsigned char **.
8329 (ucs4_to_cns11643): Change second argument to unsigned char *.
8330 * iconvdata/euc-tw.c (BODY): Change endp type to
8331 const unsigned char *.
8332 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
8333 to unsigned char *.
8334 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
8335 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
8336 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
8337 types to unsigned char pointers/arrays instead of char.
8338 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
8339 to unsigned char *.
8340 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
8341 * iconvdata/jis0212.h: Include assert.h.
8342 (ucs4_to_jisx0212): Change second argument to unsigned char *.
8343 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
8344 of trying to handle that.
8345 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
8346 shut up a warning.
8347 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
8348 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
8349 two dimensional const unsigned char arrays.
8350 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
8351 Initialize endp to inptr to shut up a warning.
8352
8353 2007-07-20 Jakub Jelinek <jakub@redhat.com>
8354
8355 [BZ #4772]
8356 * time/strptime_l.c (__strptime_internal): Silently ignore
8357 strftime modifiers and field width in recursive calls.
8358
8359 * include/time.h (enum ptime_locale_status): Remove.
8360 (__strptime_internal): Remove decided and era_cnt arguments,
8361 add statep argument.
8362 * time/strptime_l.c (__strptime_internal): Remove decided
8363 and era_cnt arguments, add statep argument. Don't recompute
8364 any fields in recursive calls, only update caller's tm
8365 and state, if recursive call fails, don't change tm nor
8366 any state.
8367 (get_alt_number): Adjust.
8368 (recursive): Adjust caller.
8369 (strptime): Likewise.
8370 * time/strptime.c (strptime): Likewise.
8371
8372 2007-07-19 Jakub Jelinek <jakub@redhat.com>
8373
8374 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
8375 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
8376 if from and to charsets are the same.
8377 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
8378 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
8379 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
8380
8381 2007-07-17 Jakub Jelinek <jakub@redhat.com>
8382
8383 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
8384 Don't define wint_t when __need_mbstate_t unless it
8385 is necessary.
8386 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
8387 in the typedef if possible.
8388 * wctype/wctype.h (wint_t): Define by including
8389 wchar.h with __need_wint_t instead of including stddef.h
8390 with __need_wint_t and as fallback definining it ourselves.
8391 * iconv/gconv.h (__need_wint_t): Define before including
8392 wchar.h.
8393 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
8394 or _GLIBCPP_USE_WCHAR_T.
8395 (__need_wchar_t): Don't define
8396 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8397 (__need_wint_t): Don't define before including stddef.h,
8398 define before including wchar.h only if _LIBC or
8399 _GLIBCPP_USE_WCHAR_T.
8400 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
8401 * sysdeps/mach/hurd/_G_config.h: Likewise.
8402 * sysdeps/generic/_G_config.h: Likewise.
8403 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
8404 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
8405 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
8406 if _LIBC or _GLIBCPP_USE_WCHAR_T.
8407
8408 2007-07-28 Ulrich Drepper <drepper@redhat.com>
8409
8410 * sysdeps/posix/posix_fallocate64.c: Undefine
8411 __posix_fallocate64_l64 before alias handling.
8412 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
8413 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
8414 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
8415 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
8416
8417 * io/tst-posix_fallocate.c: Include <fcntl.h>.
8418
8419 2007-07-23 Jakub Jelinek <jakub@redhat.com>
8420
8421 * locale/programs/ld-collate.c (atwc): New variable.
8422 (add_to_tablewc): New toplevel function, moved from collate_output.
8423 (collate_output): Remove add_to_tablewc nested function.
8424
8425 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
8426 (name_insert): New function.
8427 (write_output): Remove hash_table and hash_size vars and name_insert
8428 nested function.
8429
8430 2007-07-24 Roland McGrath <roland@redhat.com>
8431
8432 * Makerules (install-others-programs-nosubdir): New target.
8433 (install-no-libc.a-nosubdir): Depend on it.
8434
8435 * iconv/Makefile (install-others-programs): Set this instead of
8436 install-others.
8437 * login/Makefile (install-others-programs): Likewise.
8438 * posix/Makefile (install-others-programs): Likewise.
8439
8440 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
8441 dependencies.
8442
8443 2007-07-23 Ulrich Drepper <drepper@redhat.com>
8444
8445 * io/Makefile (tests): Add tst-posix_fallocate.
8446 * io/tst-posix_fallocate.c: New file.
8447
8448 * sysdeps/unix/sysv/linux/kernel-features.h: Define
8449 __ASSUME_FALLOCATE.
8450
8451 2007-07-22 Roland McGrath <roland@frob.com>
8452
8453 * hurd/getdport.c: Add missing copyright year update.
8454
8455 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
8456 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
8457
8458 2007-07-22 Ulrich Drepper <drepper@redhat.com>
8459
8460 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
8461
8462 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
8463 O_CLOEXEC is needed.
8464 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
8465 Avoid additional fcntl to set O_CLOEXEC if not needed.
8466 * nis/nss_compat/compat-initgroups.c: Likewise.
8467 * nis/nss_compat/compat-pwd.c: Likewise.
8468 * nis/nss_compat/compat-spwd.c: Likewise.
8469
8470 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
8471
8472 [BZ #3665]
8473 * manual/errno.texi: Change ECANCELED value to 119.
8474
8475 [BZ #4610]
8476 * mach/lock-intern.h: Include <sys/cdefs.h>.
8477
8478 [BZ #4178]
8479 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
8480 reading A.
8481
8482 [BZ #4126]
8483 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
8484 to __sigsuspend.
8485
8486 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
8487
8488 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
8489
8490 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
8491 `__ASSEMBLER__'.
8492 * sysdeps/mach/hurd/i386/tls.h: Likewise.
8493
8494 2007-07-21 Ulrich Drepper <drepper@redhat.com>
8495
8496 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
8497 descriptor received from nscd.
8498
8499 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
8500
8501 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
8502 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8503 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8504 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8505 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8506 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8507
8508 2007-07-20 Jakub Jelinek <jakub@redhat.com>
8509
8510 [BZ #4816]
8511 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
8512
8513 [BZ #4813]
8514 * login/forkpty.c (forkpty): Close master and slave fds on
8515 fork failure. Patch by
8516 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
8517
8518 2007-07-18 Jakub Jelinek <jakub@redhat.com>
8519
8520 * include/features.h (__USE_ISOC95): New define.
8521 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
8522 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
8523 for -std=iso9899:199409.
8524 * CONFORMANCE: Remove comments about unsupported AMD1.
8525
8526 2007-07-17 Jakub Jelinek <jakub@redhat.com>
8527
8528 * sysdeps/ia64/sched_cpucount.c: New file.
8529 * sysdeps/powerpc/sched_cpucount.c: New file.
8530
8531 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
8532 __BEGIN_DECLS/__END_DECLS around the prototype.
8533 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
8534 pointer to const cpu_set_t.
8535
8536 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
8537 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
8538 __need_size_t and include stddef.h.
8539 * sysvipc/sys/msg.h: Likewise.
8540 * posix/sched.h: Likewise.
8541 * hurd/hurd/signal.h (__need_size_t): Define.
8542
8543 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
8544 neither does signal.h in pedantic ISO C namespaces. stdio.h
8545 no longer defines wint_t or wchar_t.
8546
8547 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
8548 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
8549 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
8550 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
8551 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
8552 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
8553 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
8554 * debug/printf_chk.c (__printf_chk): Likewise.
8555 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
8556 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
8557
8558 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
8559 Define.
8560
8561 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
8562 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
8563
8564 2007-07-16 Jakub Jelinek <jakub@redhat.com>
8565
8566 [BZ #4792]
8567 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
8568 * malloc/malloc.h (realloc): Likewise.
8569
8570 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
8571 if one of proc_file_chain streams has that fileno.
8572 * stdio-common/Makefile (tests): Add tst-popen2.
8573 * stdio-common/tst-popen2.c: New test.
8574
8575 2007-07-14 Jakub Jelinek <jakub@redhat.com>
8576
8577 * elf/ldconfig.c: Allow GPLv2 or any later version.
8578 * elf/readlib.c: Likewise.
8579 * elf/chroot_canon.c: Likewise.
8580 * elf/cache.c: Likewise.
8581 * nscd/mem.c: Likewise.
8582 * nscd/getpwuid_r.c: Likewise.
8583 * nscd/grpcache.c: Likewise.
8584 * nscd/aicache.c: Likewise.
8585 * nscd/getsrvbynm_r.c: Likewise.
8586 * nscd/nscd.c: Likewise.
8587 * nscd/servicescache.c: Likewise.
8588 * nscd/getsrvbypt_r.c: Likewise.
8589 * nscd/initgrcache.c: Likewise.
8590 * nscd/gethstbyad_r.c: Likewise.
8591 * nscd/gethstbynm2_r.c: Likewise.
8592 * nscd/getgrnam_r.c: Likewise.
8593 * nscd/nscd_setup_thread.c: Likewise.
8594 * nscd/getpwnam_r.c: Likewise.
8595 * nscd/gai.c: Likewise.
8596 * nscd/connections.c: Likewise.
8597 * nscd/dbg_log.c: Likewise.
8598 * nscd/cache.c: Likewise.
8599 * nscd/hstcache.c: Likewise.
8600 * nscd/nscd_conf.c: Likewise.
8601 * nscd/getgrgid_r.c: Likewise.
8602 * nscd/pwdcache.c: Likewise.
8603 * catgets/gencat.c: Likewise.
8604 * locale/programs/linereader.h: Likewise.
8605 * locale/programs/locarchive.c: Likewise.
8606 * locale/programs/ld-paper.c: Likewise.
8607 * locale/programs/locfile-kw.h: Likewise.
8608 * locale/programs/ld-address.c: Likewise.
8609 * locale/programs/xmalloc.c: Likewise.
8610 * locale/programs/ld-time.c: Likewise.
8611 * locale/programs/localedef.c: Likewise.
8612 * locale/programs/simple-hash.c: Likewise.
8613 * locale/programs/xstrdup.c: Likewise.
8614 * locale/programs/ld-numeric.c: Likewise.
8615 * locale/programs/locfile-kw.gperf: Likewise.
8616 * locale/programs/ld-collate.c: Likewise.
8617 * locale/programs/charmap-kw.gperf: Likewise.
8618 * locale/programs/charmap.h: Likewise.
8619 * locale/programs/charmap-kw.h: Likewise.
8620 * locale/programs/config.h: Likewise.
8621 * locale/programs/locfile.c: Likewise.
8622 * locale/programs/ld-ctype.c: Likewise.
8623 * locale/programs/charmap.c: Likewise.
8624 * locale/programs/ld-messages.c: Likewise.
8625 * locale/programs/repertoire.h: Likewise.
8626 * locale/programs/locale.c: Likewise.
8627 * locale/programs/ld-name.c: Likewise.
8628 * locale/programs/linereader.c: Likewise.
8629 * locale/programs/locfile.h: Likewise.
8630 * locale/programs/3level.h: Likewise.
8631 * locale/programs/ld-monetary.c: Likewise.
8632 * locale/programs/ld-measurement.c: Likewise.
8633 * locale/programs/charmap-dir.c: Likewise.
8634 * locale/programs/ld-identification.c: Likewise.
8635 * locale/programs/localedef.h: Likewise.
8636 * locale/programs/charmap-dir.h: Likewise.
8637 * locale/programs/repertoire.c: Likewise.
8638 * locale/programs/simple-hash.h: Likewise.
8639 * locale/programs/ld-telephone.c: Likewise.
8640 * locale/programs/locale-spec.c: Likewise.
8641 * locale/programs/locfile-token.h: Likewise.
8642 * posix/getconf.c: Likewise.
8643 * iconv/dummy-repertoire.c: Likewise.
8644 * iconv/iconv_charmap.c: Likewise.
8645 * iconv/iconvconfig.c: Likewise.
8646 * iconv/iconv_prog.c: Likewise.
8647 * malloc/memusagestat.c: Likewise.
8648 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
8649
8650 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8651
8652 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
8653 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
8654 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
8655 check for the first argument.
8656
8657 2007-07-12 Jakub Jelinek <jakub@redhat.com>
8658
8659 [BZ #4775]
8660 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
8661 (__tgmath_real_type): Fix if expr is const int or other const
8662 qualified integral type.
8663 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
8664 expressions and handle const qualified arguments.
8665 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
8666 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
8667 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
8668 statement expressions.
8669 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
8670 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
8671 (__TGMATH_UNARY_IMAG): Define.
8672 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
8673 * math/Makefile (tests): Add test-tgmath2.
8674 (CFLAGS-test-tgmath2.c): Add.
8675 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
8676 count_cfloat, count_cldouble): New variables.
8677 (NCCALLS): Define.
8678 (main): Check number of complex calls as well.
8679 (F(compile_test)): Add complex tests and tests with const qualified
8680 arguments.
8681 (y, z, ccount): Define.
8682 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
8683 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
8684 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
8685 F(cproj)): New functions.
8686 * math/test-tgmath2.c: New test.
8687
8688 2007-07-11 Jakub Jelinek <jakub@redhat.com>
8689
8690 [BZ #4776]
8691 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
8692 RPATH etc. as "/" rather than "", don't segfault on empty paths,
8693 instead output ".".
8694 * dlfcn/Makefile (distribute): Add glreflib3.c.
8695 (module-names): Add glreflib3.
8696 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
8697 glreflib1.so.
8698 (LDFLAGS_glreflib3.so): New.
8699 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
8700 glreflib1.so.
8701 * dlfcn/glreflib3.c: New file.
8702
8703 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
8704 returned -1, return NULL.
8705 * intl/explodename.c (_nl_explode_name): Return -1 if
8706 _nl_normalize_codeset failed.
8707
8708 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
8709
8710 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
8711 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
8712 and avoid branch misspredicts for > 31 bytes memset case.
8713 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
8714 Remove toc ref to __cache_line_size.
8715
8716 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
8717 to get ISA-V2.0 branch hints.
8718 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
8719 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
8720 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8721 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8722 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8723 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
8724 Remove toc ref to __cache_line_size.
8725
8726 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
8727 Include math_ldbl_opt.h.
8728
8729 2007-07-10 Ulrich Drepper <drepper@redhat.com>
8730
8731 [BZ #4773]
8732 * time/strptime_l.c (__strptime_internal): Implement greedy
8733 matching of weekday and month names.
8734
8735 2007-07-09 Roland McGrath <roland@redhat.com>
8736
8737 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
8738 (ELF_NOTE_ABI): Use it.
8739 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
8740
8741 2007-07-09 Ulrich Drepper <drepper@redhat.com>
8742
8743 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
8744 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
8745
8746 2007-07-07 Ulrich Drepper <drepper@redhat.com>
8747
8748 [BZ #4745]
8749 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
8750 in loop to look for conversion specifier to avoid testing of
8751 wrong errno value.
8752 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
8753 * stdio-common/bug18.c: New file.
8754 * stdio-common/bug18a.c: New file.
8755 * stdio-common/bug19.c: New file.
8756 * stdio-common/bug19a.c: New file.
8757
8758 2007-07-05 Mike Frysinger <vapier@gentoo.org>
8759
8760 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
8761 running awk script.
8762
8763 2007-07-01 Jakub Jelinek <jakub@redhat.com>
8764
8765 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
8766 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
8767 Return NULL if mmap failed instead of asserting it does not.
8768 (calloc): Check for integer overflow.
8769
8770 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
8771 than LONG_MAX / 10.
8772
8773 2007-07-03 Jakub Jelinek <jakub@redhat.com>
8774
8775 [BZ #4702]
8776 * nis/nss-default.c: Include errno.h.
8777 (init): Preserve errno.
8778
8779 2007-07-02 Ulrich Drepper <drepper@redhat.com>
8780
8781 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
8782
8783 2007-06-30 Ulrich Drepper <drepper@redhat.com>
8784
8785 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
8786
8787 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
8788
8789 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
8790
8791 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
8792
8793 * sysdeps/s390/dl-procinfo.c: New file.
8794 * sysdeps/s390/dl-procinfo.h: New file.
8795 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
8796
8797 2007-06-29 Jakub Jelinek <jakub@redhat.com>
8798
8799 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
8800 in PT_NOTE segments with multiple notes.
8801 * elf/readelflib.c (process_elf_file): Likewise.
8802
8803 2007-06-22 Ulrich Drepper <drepper@redhat.com>
8804
8805 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
8806 ISO C compliant.
8807
8808 2007-06-19 Ulrich Drepper <drepper@redhat.com>
8809
8810 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
8811
8812 2007-06-13 Jakub Jelinek <jakub@redhat.com>
8813
8814 * include/link.h: Don't include rtld-lowlevel.h.
8815 (struct link_map): Remove l_scope_lock.
8816 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
8817 (_dl_scope_free_list): New field (variable) in _rtld_global.
8818 (DL_LOOKUP_SCOPE_LOCK): Remove.
8819 (_dl_scope_free): New prototype.
8820 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
8821 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
8822 (_dl_profile_fixup): Likewise.
8823 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
8824 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
8825 THREAD_GSCOPE_RESET_FLAG around it.
8826 * elf/dl-close.c (_dl_close_worker): Don't use
8827 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
8828 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
8829 scopes were queued or if l_scope_mem has been abandoned.
8830 * elf/dl-open.c (_dl_scope_free): New function.
8831 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
8832 * elf/dl-support.c (_dl_scope_free_list): New variable.
8833 * elf/dl-lookup.c (add_dependency): Remove flags argument.
8834 Remove DL_LOOKUP_SCOPE_LOCK handling.
8835 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
8836 handling.
8837 * elf/dl-object.c (_dl_new_object): Don't use
8838 __rtld_mrlock_initialize.
8839
8840 2007-06-19 Ulrich Drepper <drepper@redhat.com>
8841
8842 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
8843 to fill in holes
8844 (rtld_global_ro): Likewise.
8845
8846 2007-06-18 Jakub Jelinek <jakub@redhat.com>
8847
8848 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
8849 Move PT_LOAD checking to...
8850 (_dl_addr_inside_object): ... here, new function.
8851 * elf/dl-sym.c (do_sym): If not l_contiguous,
8852 call _dl_addr_inside_object.
8853 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
8854 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8855 * elf/dl-open.c (dl_open_worker): Likewise.
8856 (_dl_addr_inside_object): New function if IS_IN_rtld.
8857 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
8858 holes are present or are PROT_NONE protected.
8859 * include/link.h (struct link_map): Add l_contiguous field.
8860 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
8861
8862 2007-06-18 Jakub Jelinek <jakub@redhat.com>
8863 Tomas Janousek <tjanouse@redhat.com>
8864 Ulrich Drepper <drepper@redhat.com>
8865
8866 [BZ #4647]
8867 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
8868 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
8869 socket.
8870 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
8871 unused member a bitmap.
8872 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
8873 servers are configured.
8874
8875 2007-06-18 Jakub Jelinek <jakub@redhat.com>
8876
8877 * elf/rtld.c (dl_main): Don't call init_tls more than once.
8878
8879 2007-06-17 Andreas Schwab <schwab@suse.de>
8880
8881 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
8882
8883 2007-06-16 Andreas Jaeger <aj@suse.de>
8884
8885 [BZ #4125]
8886 * sysdeps/unix/sysv/linux/sys/ptrace.h
8887 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
8888 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
8889 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
8890 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
8891 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
8892 Define.
8893 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8894 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8895 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8896 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8897
8898 2007-06-16 Ulrich Drepper <drepper@redhat.com>
8899
8900 [BZ #4599]
8901 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
8902 determining whether there are IPv4/IPv6 addresses, ignore loopback
8903 addresses.
8904
8905 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
8906
8907 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
8908 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
8909 as the return type. Change type of "r" variable to CMPtype.
8910 * soft-fp/eqsf2.c (__eqsf2): Likewise.
8911 * soft-fp/eqtf2.c (__eqtf2): Likewise.
8912 * soft-fp/gedf2.c (__gedf2): Likewise.
8913 * soft-fp/gesf2.c (__gesf2): Likewise.
8914 * soft-fp/getf2.c (__getf2): Likewise.
8915 * soft-fp/ledf2.c (__ledf2): Likewise.
8916 * soft-fp/lesf2.c (__lesf2): Likewise.
8917 * soft-fp/letf2.c (__letf2): Likewise.
8918 * soft-fp/unorddf2 (__unorddf2): Likewise.
8919 * soft-fp/unordsf2 (__unordsf2): Likewise.
8920 * soft-fp/unordtf2 (__unordtf2): Likewise.
8921
8922 2007-06-09 Ulrich Drepper <drepper@redhat.com>
8923
8924 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
8925 make sure gcc doesn't mess around with this.
8926
8927 2007-06-08 Ulrich Drepper <drepper@redhat.com>
8928
8929 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
8930
8931 2007-06-08 Jakub Jelinek <jakub@redhat.com>
8932
8933 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
8934 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
8935 at most once per _dl_close_worker.
8936
8937 2007-06-08 Ulrich Drepper <drepper@redhat.com>
8938
8939 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
8940 __sched_cpucount as const.
8941 * posix/sched_cpucount.c: Adjust.
8942
8943 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
8944 instruction for counting bits.
8945 * sysdeps/x86_64/sched_cpucount.c: New file.
8946
8947 2007-06-07 Ulrich Drepper <drepper@redhat.com>
8948
8949 * configure.in: Avoid variable named BASH.
8950 * config.make.in: Likewise.
8951 Patch in part by Mike Frysinger.
8952
8953 2007-06-06 Jakub Jelinek <jakub@redhat.com>
8954
8955 [BZ #4586]
8956 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
8957 pseudo-zeros as zero.
8958 * sysdeps/x86_64/ldbl2mpn.c: New file.
8959 * sysdeps/ia64/ldbl2mpn.c: New file.
8960
8961 2007-06-04 Jakub Jelinek <jakub@redhat.com>
8962
8963 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
8964 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
8965 Remove unreachable code at the end.
8966
8967 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
8968
8969 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
8970 ldbl-128ibm in comment.
8971 (fpclassifyl): Correct classification of denormals.
8972 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
8973 return value for MIN denormal. Rewrite using long double math too
8974 correctly handle denormals and canonicalize the results.
8975
8976 2007-06-05 Jakub Jelinek <jakub@redhat.com>
8977
8978 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
8979 (__mpn_construct_long_double): Fix conversion where result ought
8980 to be smaller than __LDBL_MIN__, or the low double should be
8981 denormal. Fix decision where to negate low double - honor round
8982 to even rules.
8983 * stdio-common/tst-sprintf2.c: Include string.h.
8984 (COMPARE_LDBL): Define.
8985 (TEST): Also test whether a string hexadecimal float representation
8986 can be parsed back to the number.
8987 (main): Add a couple of further tests.
8988
8989 2007-06-04 Jakub Jelinek <jakub@redhat.com>
8990
8991 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
8992 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
8993 is non-zero, but smaller than 2 * __DBL_MIN__.
8994 * stdio-common/tst-sprintf2.c: New test.
8995 * stdio-common/Makefile (tests): Add tst-sprintf2.
8996
8997 * math/test-misc.c (main): Don't run last batch of tests with
8998 IBM long double format.
8999
9000 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9001
9002 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
9003 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
9004 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
9005 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
9006 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9007 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
9008 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
9009 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
9010 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
9011 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9012 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
9013 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
9014 New file.
9015 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
9016 New file.
9017 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
9018 New file.
9019 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
9020 New file.
9021 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
9022 New file.
9023 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
9024 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
9025 New file.
9026 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
9027 New file.
9028 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
9029 New file.
9030 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
9031 New file.
9032 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
9033 New file.
9034
9035 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9036
9037 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
9038 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
9039 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
9040 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
9041 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
9042 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
9043 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
9044 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
9045
9046 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
9047
9048 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
9049 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9050 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
9051 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9052 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
9053 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9054 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
9055 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
9056
9057 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
9058
9059 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
9060 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
9061 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
9062 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
9063
9064 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
9065
9066 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
9067 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
9068
9069 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
9070
9071 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
9072 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
9073 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
9074 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
9075
9076 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
9077
9078 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
9079 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
9080
9081 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
9082
9083 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
9084 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
9085
9086 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
9087 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
9088 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
9089 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9090
9091 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
9092
9093 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
9094 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
9095 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
9096 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
9097
9098 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
9099
9100 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
9101 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
9102 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
9103 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
9104 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
9105 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
9106
9107 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
9108
9109 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
9110 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
9111 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
9112 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
9113
9114 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
9115
9116 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
9117 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
9118 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
9119 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
9120 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
9121 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
9122 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
9123 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
9124 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
9125 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
9126 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
9127 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
9128 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
9129 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
9130 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
9131 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
9132
9133 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
9134
9135 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
9136 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
9137
9138 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
9139
9140 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
9141 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
9142
9143 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
9144
9145 * sysdeps/powerpc/powerpc32/970/Implies: New file.
9146 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
9147 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
9148 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
9149 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
9150 * sysdeps/powerpc/powerpc64/970/Implies: New file.
9151 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
9152 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
9153 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
9154 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
9155
9156 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
9157
9158 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
9159
9160 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
9161
9162 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
9163 branch miss-predicts. Ensure that cache line crossing does not impact
9164 dispatch grouping.
9165
9166 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
9167
9168 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
9169 "../../powerpc32/power4/memcopy.h".
9170 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
9171 "../../powerpc32/power4/wordcopy.c".
9172
9173 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
9174
9175 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
9176 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
9177 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
9178 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
9179 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
9180 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
9181
9182 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
9183
9184 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
9185
9186 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
9187
9188 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
9189 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
9190 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
9191 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
9192 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
9193 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
9194 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
9195 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
9196
9197 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
9198
9199 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
9200
9201 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
9202
9203 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
9204 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
9205 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
9206 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
9207 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
9208 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
9209 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
9210
9211 2007-05-29 Roland McGrath <roland@redhat.com>
9212
9213 * po/Makefile (po-sed-cmd): New variable.
9214 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
9215
9216 2007-05-29 Ulrich Drepper <drepper@redhat.com>
9217
9218 * crypt/md5-crypt.c: Fix comment.
9219
9220 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
9221 of crashing. When this is the case or if the reply is malformed,
9222 don't try to close the new file descriptor since it does not
9223 exist.
9224 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
9225
9226 2007-05-28 Jakub Jelinek <jakub@redhat.com>
9227
9228 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
9229 if __NR_utimensat is not defined.
9230
9231 2007-05-26 Ulrich Drepper <drepper@redhat.com>
9232
9233 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
9234
9235 2007-05-25 Jakub Jelinek <jakub@redhat.com>
9236
9237 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
9238 (open): Fix comment typos. Don't call __open_2 if flags
9239 is a compile time constant without O_CREAT.
9240 (__open64_2): Add nonnull attribute.
9241 (open64): Fix comment typos. Don't call __open64_2 if flags
9242 is a compile time constant without O_CREAT.
9243 (__openat_2): Add nonnull attribute, fix nonnull attribute
9244 on redirect.
9245 (openat): Fix comment typos. Don't call __openat_2 if flags
9246 is a compile time constant without O_CREAT.
9247 (__openat64_2): Add nonnull attribute, fix nonnull attribute
9248 on redirect.
9249 (openat64): Fix comment typos. Don't call __openat64_2 if flags
9250 is a compile time constant without O_CREAT.
9251
9252 2007-05-24 Ulrich Drepper <drepper@redhat.com>
9253
9254 * Makerules (sysd-rules): Define PTW for ptw-* files.
9255 * Versions: Define GLIBC_2.7 for libc.
9256 * include/stdio.h: Declare __fortify_fail.
9257 * debug/fortify_fail.c: New file.
9258 * debug/Makefile (routines): Add fortify_fail.
9259 * debug/chk_fail.c: Use __fortify_fail.
9260 * debug/stack_chk_fail.c: Likewise.
9261 * io/Versions: Export __open_2, __open64_2, __openat_2, and
9262 __openat64_2 for GLIBC_2.7.
9263 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
9264 * io/open.c: Define *_2 variant of function which checks for O_CREAT
9265 and fails if necessary.
9266 * io/open64.c: Likewise.
9267 * io/openat.c: Likewise.
9268 * io/openat64.c: Likewise.
9269 * sysdeps/unix/sysv/linux/open64.c: Likewise.
9270 * sysdeps/unix/sysv/linux/openat.c: Likewise.
9271 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
9272 * io/bits/fcntl2.h: New file.
9273 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
9274 __openat64_2.
9275 * include/bits/fcntl2.h: New file.
9276 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9277 Add open_2.
9278 * sysdeps/unix/sysv/linux/open_2.c: New file.
9279
9280 2007-05-21 Ulrich Drepper <drepper@redhat.com>
9281
9282 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
9283 as second parameter to handle_intel.
9284
9285 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
9286 the entry.
9287
9288 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
9289 handling to ...
9290 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
9291 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
9292 cacheinfo.
9293 * sysdeps/x86_64/memcpy.S: Complete rewrite.
9294 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
9295 Patch by Evandro Menezes <evandro.menezes@amd.com>.
9296
9297 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
9298
9299 2007-05-21 Jakub Jelinek <jakub@redhat.com>
9300
9301 [BZ #4525]
9302 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
9303 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
9304 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
9305
9306 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
9307
9308 [BZ #4514]
9309 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
9310 reinitialize workend at the start of each do_positional format spec
9311 loop, free workstart before do_positional loops.
9312 (printf_unknown): Fix size of work_buffer.
9313 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
9314
9315 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
9316 (public_sET_STATe): If ms->version < 3, put all chunks into
9317 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
9318 chunks.
9319
9320 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
9321 * malloc/hooks.c: Likewise.
9322 * malloc/arena.c: Likewise.
9323 * malloc/malloc.c (do_check_malloc_state): Don't assert
9324 n_mmaps is not greater than n_mmaps_max. This removes the need
9325 for the previous change.
9326
9327 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
9328 2007-05-07 commit.
9329
9330 2007-05-19 Ulrich Drepper <drepper@redhat.com>
9331
9332 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
9333 Define for kernel >= 2.6.22.
9334
9335 2007-05-18 Ulrich Drepper <drepper@redhat.com>
9336
9337 * elf/dl-close.c (_dl_close_worker): When removing object from
9338 global scope, wait for all lookups to finish afterwards.
9339 * elf/dl-open.c (add_to_global): When global scope array must
9340 grow, allocate a new one and free old array only after all
9341 lookups finish.
9342 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
9343 (_dl_lookup_symbol_x): Likewise.
9344 * elf/dl-support.c: Define _dl_wait_lookup_done.
9345 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
9346 _dl_wait_lookup_done.
9347
9348 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
9349 not overlapping with arena.
9350
9351 * malloc/mcheck.c (reallochook): If size==0, free the block.
9352
9353 * rt/tst-shm.c: Use fstat64 instead of fstat.
9354
9355 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
9356 __NR_sync_file_range is not defined.
9357
9358 2007-05-17 Ulrich Drepper <drepper@redhat.com>
9359
9360 Dummy files to prevent stub versions from being used.
9361 * sysdeps/x86_64/fpu/k_cosl.c: New file.
9362 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
9363 * sysdeps/x86_64/fpu/k_sinl.c: New file.
9364 * sysdeps/x86_64/fpu/k_tanl.c: New file.
9365
9366 * version.h (VERSION): Set to 2.6.90.
9367
9368 2007-05-14 Ulrich Drepper <drepper@redhat.com>
9369
9370 * version.h (VERSION): Define to 2.6.
9371 * include/features.h (__GLIBC_MINOR__): Define to 6.
9372
9373 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
9374
9375 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
9376 sizes.
9377
9378 2007-05-13 Ulrich Drepper <drepper@redhat.com>
9379
9380 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
9381 number of mmaps. n_mmaps_max is the target.
9382 * malloc/hooks.c: Likewise.
9383 * malloc/arena.c: Likewise.
9384
9385 2007-05-12 Andreas Jaeger <aj@suse.de>
9386
9387 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
9388 getpid.
9389
9390 2007-05-11 Ulrich Drepper <drepper@redhat.com>
9391
9392 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
9393 adding new variables.
9394
9395 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
9396 optimize. Completely extend global scope array before making the
9397 new entries visible.
9398
9399 2007-05-10 Ulrich Drepper <drepper@redhat.com>
9400
9401 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
9402 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
9403 tst-getcpu.
9404
9405 * include/link.h: Move l_version and l_nversion members around to
9406 fill gaps.
9407
9408 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
9409
9410 * sysdeps/unix/sysv/linux/sched_setaffinity.c
9411 (__sched_setaffinity_new): If syscall was successful and
9412 RESET_VGETCPU_CACHE is defined, use it before returning.
9413 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
9414
9415 * io/sys/stat.h: Make sure struct timespec is defined for
9416 __USE_ATFILE.
9417
9418 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
9419 UTIME_OMIT.
9420 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
9421 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
9422 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
9423 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
9424 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
9425 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
9426 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
9427 * io/sys/stat.h: Declare utimensat, futimens.
9428 * io/utimensat.c: New file.
9429 * io/futimens.c: New file.
9430 * sysdeps/unix/sysv/linux/utimensat.c: New file.
9431 * sysdeps/unix/sysv/linux/futimens.c: New file.
9432 * io/Makefile (routines): Add utimensat, futimens.
9433 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
9434 * sysdeps/unix/sysv/linux/lutimes.c: New file.
9435 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
9436 available.
9437
9438 * include/sys/cdefs.h: Redefine __nonnull so that test for
9439 incorrect parameters in the libc code itself are not omitted.
9440
9441 2007-05-09 Jakub Jelinek <jakub@redhat.com>
9442
9443 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
9444 exception in addition to inexact when asked to raise only FE_INEXACT.
9445
9446 [BZ #3427]
9447 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
9448 in *envp.
9449
9450 2007-05-07 Ulrich Drepper <drepper@redhat.com>
9451
9452 [BZ #4403]
9453 * string/strfry.c (strfry): Make result more random.
9454
9455 2007-05-07 Richard Henderson <rth@redhat.com>
9456
9457 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
9458 if __NO_LONG_DOUBLE_MATH.
9459 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
9460 available in the compiler, add .arch directive to the assembly.
9461
9462 2007-05-07 Jakub Jelinek <jakub@redhat.com>
9463
9464 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
9465 compat_symbol to GLIBC_2_1.
9466 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
9467 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
9468 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
9469 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
9470 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
9471 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
9472 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
9473 libc, not libm.
9474 (__isnanl): New compat_symbol.
9475
9476 2007-05-07 Ulrich Drepper <drepper@redhat.com>
9477 Jakub Jelinek <jakub@redhat.com>
9478
9479 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
9480 (new_heap): Initialize mprotect_size.
9481 (grow_heap): When growing, only mprotect from mprotect_size till
9482 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
9483 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
9484
9485 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
9486 Peter Bergner <bergner@us.ibm.com>
9487
9488 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
9489 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
9490 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
9491 * sysdeps/powerpc/fpu/fe_mask.c: New file.
9492 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
9493 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
9494 Call __fe_mask_env() if all FP exceptions disabled.
9495 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
9496 from old FPSCR to new fenv to propagate DFP rounding modes.
9497 Call __fe_mask_env() if FP exceptions previously enabled.
9498 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
9499 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
9500 transitioning from all exceptions disabled to any exception enabled
9501 or visa versa.
9502 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
9503 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
9504 when transitioning from all exceptions disabled to any exception
9505 enabled or visa versa.
9506 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
9507 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
9508 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
9509 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
9510 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
9511 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
9512
9513 2007-05-06 Ulrich Drepper <drepper@redhat.com>
9514
9515 [BZ #4465]
9516 * posix/unistd.h: Remove __THROW from fdatasync.
9517
9518 2007-05-06 Mike Frysinger <vapier@gentoo.org>
9519
9520 [BZ #4465]
9521 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
9522
9523 2007-05-06 Ulrich Drepper <drepper@redhat.com>
9524
9525 * stdio-common/vfprintf.c (process_string_arg): Optimize
9526 ridiculous precision in wide char code printing multi-byte string.
9527 Reported by Jim Meyering <jim@meyering.net>.
9528
9529 [BZ #4131]
9530 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
9531 boundaries to work around systems with overlapping binary loading.
9532 Based on a patch by Suzuki <suzuki@in.ibm.com>.
9533
9534 2007-05-04 Ulrich Drepper <drepper@redhat.com>
9535
9536 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
9537 __mbsnrtowcs after last change.
9538
9539 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
9540 (get_ident): Likewise.
9541
9542 2007-05-03 Jakub Jelinek <jakub@redhat.com>
9543
9544 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
9545 with setting the sticky bit.
9546 * math/test-misc.c (main): Add more truncation tests.
9547
9548 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
9549
9550 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
9551 double in the function declaration.
9552 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
9553 double in the function declaration.
9554 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9555 float in the function declaration.
9556 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
9557 float in the function declaration.
9558
9559 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
9560 denormal operands. Do not generate FP_EX_DENORM exception.
9561 (FP_UNPACK_RAW_EP): Ditto.
9562 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
9563 undefined _FP_UNPACK_RAW_E.
9564 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
9565 undefined _FP_UNPACK_RAW_EP.
9566 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
9567 undefined _FP_PACK_RAW_E.
9568 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
9569 undefined _FP_PACK_RAW_EP.
9570
9571 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
9572 _FP_FRAC_COPY_2.
9573 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
9574 _FP_FRAC_COPY_4.
9575
9576 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
9577 Jakub Jelinek <jakub@redhat.com>
9578
9579 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
9580 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
9581 this case.
9582 * soft-fp/op-common.h (FP_TRUNC): Ditto.
9583
9584 2007-05-03 Jakub Jelinek <jakub@redhat.com>
9585
9586 * math/test-misc.c (main): Add tests for rounding long double
9587 values close to smallest double denormalized value to double.
9588
9589 2007-04-30 Joseph Myers <joseph@codesourcery.com>
9590
9591 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
9592 condition for truncating to 0. Set sticky bit for such
9593 truncation.
9594
9595 2007-05-02 Jakub Jelinek <jakub@redhat.com>
9596
9597 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
9598 fixed length array for ignore.
9599
9600 2007-04-30 Ulrich Drepper <drepper@redhat.com>
9601
9602 [BZ #4438]
9603 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
9604 stack for large precisions.
9605 * stdio-common/test-vfprintf.c (main): Add test for large
9606 precision.
9607
9608 2007-04-30 Jakub Jelinek <jakub@redhat.com>
9609
9610 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
9611 for exponent 0.
9612 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
9613
9614 [BZ #4439]
9615 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
9616 account in the size check.
9617 * resolv/tst-inet_ntop.c: New test.
9618 * resolv/Makefile (tests): Add tst-inet_ntop.
9619
9620 2007-04-30 Ulrich Drepper <drepper@redhat.com>
9621 Jakub Jelinek <jakub@redhat.com>
9622
9623 [BZ #4349]
9624 * malloc/malloc.c: Keep separate list for first blocks on the bin
9625 lists with a given size. This helps skipping over list elements
9626 we know won't fit in two places.
9627 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
9628
9629 2007-04-28 Ulrich Drepper <drepper@redhat.com>
9630
9631 [BZ #4102]
9632 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
9633 label to Teredo tunnel addresses 2001://32.
9634
9635 2007-04-27 Ulrich Drepper <drepper@redhat.com>
9636
9637 * locale/programs/ld-collate.c (collate_read): Allow order_start
9638 after copy.
9639
9640 * locale/programs/ld-collate.c (collate_read): Fix printing of
9641 error message.
9642
9643 [BZ #3213]
9644 * locale/C-translit.h.in: Add entry for U2044.
9645
9646 [BZ #4342]
9647 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
9648 hexa-decimal floats without exponent.
9649 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
9650
9651 2007-04-25 Ulrich Drepper <drepper@redhat.com>
9652
9653 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
9654 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
9655 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
9656 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
9657 GLIBC_2.6.
9658 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
9659 Add sched_getcpu.
9660
9661 2007-04-25 Jakub Jelinek <jakub@redhat.com>
9662
9663 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
9664 of 0 after the out_fail label.
9665
9666 2007-04-25 Ulrich Drepper <drepper@redhat.com>
9667
9668 [BZ #4406]
9669 * iconv/gconv_charset.h (strip): Allow ':'.
9670 * iconv/iconv_open.c (iconv_open): Adjust comment.
9671
9672 2007-04-25 Jakub Jelinek <jakub@redhat.com>
9673
9674 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
9675 version.
9676
9677 2007-04-23 Jakub Jelinek <jakub@redhat.com>
9678
9679 [BZ #4381]
9680 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
9681 alignment of buffer and tmp_buffer.
9682 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
9683 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
9684 alignment of buffer.
9685 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
9686 bigger than INT_MAX.
9687 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
9688 h_errnop arguments. Fail if buflen is too small.
9689 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
9690
9691 2007-04-23 Jakub Jelinek <jakub@redhat.com>
9692
9693 [BZ #4405]
9694 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
9695 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
9696
9697 2007-04-22 Roland McGrath <roland@redhat.com>
9698
9699 * elf/elf.h (NT_PRXFPREG): New macro.
9700
9701 2007-04-19 Andreas Jaeger <aj@suse.de>
9702
9703 [BZ #3905]
9704 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
9705 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
9706 Added.
9707
9708 2007-04-19 Ulrich Drepper <drepper@redhat.com>
9709
9710 * include/sys/mman.h: Mark madvise hidden.
9711 * misc/madvise.c: Add libc_hidden_def.
9712
9713 2007-04-06 Jakub Jelinek <jakub@redhat.com>
9714
9715 * nis/nis_domain_of.c (__nis_domain_of): New function.
9716 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
9717 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
9718 * nis/nis_call.c (rec_dirsearch): Likewise.
9719 (first_shoot): Likewise. Remove search_parent_first argument.
9720 (struct nis_server_cache): Rename search_parent_first field
9721 to search_parent.
9722 (nis_server_cache_search, nis_server_cache_add): Rename
9723 search_parent_first argument to search_parent.
9724 (__nisfind_server): Likewise. If search_parent, call
9725 __nis_domain_of.
9726
9727 2007-04-18 Ulrich Drepper <drepper@redhat.com>
9728
9729 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
9730
9731 2007-04-17 Ulrich Drepper <drepper@redhat.com>
9732
9733 [BZ #4368]
9734 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
9735
9736 2007-04-16 Ulrich Drepper <drepper@redhat.com>
9737
9738 [BZ #4364]
9739 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
9740
9741 2007-04-15 Jakub Jelinek <jakub@redhat.com>
9742
9743 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
9744 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
9745 current number of locales in SUPPORTED.
9746 (create_archive): Initialize serial.
9747 (enlarge_archive): Preserve aliases rather than duplicating
9748 their locrecs.
9749
9750 2007-04-13 Jakub Jelinek <jakub@redhat.com>
9751
9752 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
9753 after _IO_un_link, not before it.
9754
9755 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
9756 special case handling when wcp == wstartp + 1. Fix a comment typo.
9757 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
9758
9759 2007-03-30 Jakub Jelinek <jakub@redhat.com>
9760
9761 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
9762 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
9763 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
9764 Remove __THROW.
9765 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
9766 _IO_file_xsgetn_maybe_mmap): Likewise.
9767 * libio/oldfileops.c (old_do_write): Likewise.
9768 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
9769 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
9770 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
9771 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
9772 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
9773 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
9774 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
9775 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
9776 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
9777 _IO_file_underflow, _IO_file_underflow_mmap,
9778 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
9779 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
9780 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
9781 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
9782 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
9783 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
9784 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
9785 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
9786 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
9787 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
9788 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
9789 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
9790 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
9791 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
9792 _IO_adjust_column_internal, _IO_default_uflow_internal,
9793 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
9794 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
9795 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
9796 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
9797 _IO_file_close_it_internal, _IO_file_underflow_internal,
9798 _IO_file_overflow_internal, _IO_file_attach_internal,
9799 _IO_file_fopen_internal, _IO_file_sync_internal,
9800 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
9801 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
9802 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
9803 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
9804 _IO_seekpos_unlocked): Likewise.
9805 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
9806 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
9807
9808 2007-04-16 Jakub Jelinek <jakub@redhat.com>
9809
9810 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
9811 argument in xmalloc size computation.
9812
9813 2007-04-01 Jakub Jelinek <jakub@redhat.com>
9814
9815 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
9816 math_opt_barrier and math_force_eval macros.
9817
9818 2007-03-27 Jakub Jelinek <jakub@redhat.com>
9819
9820 [BZ #3306]
9821 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
9822 * sysdeps/i386/fpu/math_private.h: New file.
9823 * sysdeps/x86_64/fpu/math_private.h: New file.
9824 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
9825 math_force_eval macros. Use "+m" constraint on asm rather than
9826 "=m" and "m".
9827 * math/s_nextafter.c (__nextafter): Likewise.
9828 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
9829 Likewise.
9830 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
9831 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
9832 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9833 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
9834 math_opt_barrier and math_force_eval macros.
9835 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
9836 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
9837 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
9838 (__nexttoward): Use math_opt_barrier and
9839 math_force_eval macros. Use "+m" constraint on asm rather than
9840 "=m" and "m". Only use asm to force double result if
9841 FLT_EVAL_METHOD is 2.
9842 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
9843 (__nexttowardf): Use math_opt_barrier and
9844 math_force_eval macros. Use "+m" constraint on asm rather than
9845 "=m" and "m". Only use asm to force double result if
9846 FLT_EVAL_METHOD is not 0.
9847 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
9848 (__nexttowardf): Use math_opt_barrier and
9849 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
9850 x to float using asm.
9851 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
9852 (__nldbl_nexttowardf): Use math_opt_barrier and
9853 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
9854 x to float using asm.
9855 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
9856 (__nexttowardf): Use math_opt_barrier and math_force_eval
9857 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
9858 * math/bug-nextafter.c (zero, inf): New variables.
9859 (main): Add new tests.
9860 * math/bug-nexttoward.c (zero, inf): New variables.
9861 (main): Add new tests.
9862
9863 2007-03-22 Jakub Jelinek <jakub@redhat.com>
9864
9865 [BZ #3427]
9866 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
9867 exceptions both in SW and MXCSR.
9868 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
9869 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
9870 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
9871 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9872 in MXCSR if SSE is available.
9873 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
9874 and ldsodefs.h.
9875 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
9876 Fix comment typo.
9877 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
9878 Return 0 rather than 1.
9879 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
9880 Remove incorrect part of a comment. Fix argument to feraiseexcept.
9881 * math/test-fenv.c (feholdexcept_tests): New function.
9882 (main): Call it.
9883
9884 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
9885
9886 [BZ #3427]
9887 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
9888 in SW.
9889
9890 2007-04-13 Jakub Jelinek <jakub@redhat.com>
9891
9892 [BZ #4344]
9893 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
9894 Reported by David Anderson <davea42@earthlink.net>.
9895
9896 2007-04-07 Ulrich Drepper <drepper@redhat.com>
9897
9898 * posix/sys/wait.h: Remove unnecessary forward declaration.
9899
9900 2007-04-05 Jakub Jelinek <jakub@redhat.com>
9901
9902 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
9903 with obj->do_servers after first_shoot.
9904
9905 2007-04-03 Ulrich Drepper <drepper@redhat.com>
9906
9907 * posix/Makefile (routines): Add sched_cpucount.
9908 (tests): Add tst-cpucount.
9909 * posix/sched_cpucount.c: New file.
9910 * posix/tst-cpucount.c: New file.
9911 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
9912 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
9913 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9914 * posix/sched.h: Define CPU_COUNT.
9915
9916 2007-03-27 Jakub Jelinek <jakub@redhat.com>
9917
9918 * posix/fnmatch.c (STRUCT): Define.
9919 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
9920 * posix/fnmatch_loop.c (struct STRUCT): New type.
9921 (FCT): Add ends argument. If ends != NULL and normal * is
9922 seen in the pattern, store current pattern and string pointers
9923 and return. Adjust recursive calls.
9924 (EXT): Adjust FCT callers.
9925 (STRUCT): Undef at the end of the file.
9926 * posix/Makefile (tests): Add tst-fnmatch2.
9927 * posix/tst-fnmatch2.c: New test.
9928
9929 2007-04-01 Jakub Jelinek <jakub@redhat.com>
9930
9931 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
9932 and 1 on failure.
9933
9934 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
9935 Change last argument to unsigned int.
9936
9937 2007-03-23 Jakub Jelinek <jakub@redhat.com>
9938
9939 * scripts/check-local-headers.sh: Filter out sys/capability.h.
9940
9941 2007-03-22 Jakub Jelinek <jakub@redhat.com>
9942
9943 * config.h.in (HAVE_LIBCAP): Add.
9944 * nscd/selinux.h: Include sys/capability.h rather than non-existent
9945 sys/capabilities.h.
9946 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
9947 free_caps. Cast away const from 4th cap_set_flag argument.
9948
9949 2007-03-26 Ulrich Drepper <drepper@redhat.com>
9950
9951 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
9952 GLIBC_2.6.
9953 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9954 Add sync_file_range.
9955 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
9956
9957 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
9958
9959 * sysdeps/powerpc/bits/atomic.h
9960 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
9961 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
9962 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9963 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
9964 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9965 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
9966 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
9967 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9968 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9969 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9970 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
9971 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
9972 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
9973 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
9974 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9975 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
9976 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9977 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
9978 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
9979 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
9980
9981 2007-03-20 Jakub Jelinek <jakub@redhat.com>
9982
9983 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
9984 (__cache_line_size): Define the variable here. Add
9985 attribute_hidden, remove weak_extern.
9986 (__libc_start_main): Set __cache_line_size
9987 unconditionally.
9988 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
9989 (__cache_line_size): Define the variable here. Add
9990 attribute_hidden, remove weak_extern.
9991 (DL_PLATFORM_AUXV): Set __cache_line_size
9992 unconditionally.
9993 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
9994 weak_extern, add attribute_hidden.
9995 (__elf_machine_runtime_setup): Assume __cache_line_size is always
9996 defined in ld.so.
9997 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
9998 definition.
9999 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
10000
10001 2007-03-26 Jakub Jelinek <jakub@redhat.com>
10002
10003 [BZ #4276]
10004 * timezone/africa: Update from tzdata2007d.
10005 * timezone/asia: Likewise.
10006 * timezone/australasia: Likewise.
10007 * timezone/backward: Likewise.
10008 * timezone/europe: Likewise.
10009 * timezone/iso3166.tab: Likewise.
10010 * timezone/leapseconds: Likewise.
10011 * timezone/northamerica: Likewise.
10012 * timezone/southamerica: Likewise.
10013 * timezone/zone.tab: Likewise.
10014
10015 * timezone/private.h: Update from tzcode2007d.
10016 * timezone/zdump.c: Likewise.
10017 * timezone/zic.c: Likewise.
10018
10019 2007-03-21 Jakub Jelinek <jakub@redhat.com>
10020
10021 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
10022 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
10023 variables.
10024 (nis_server_cache_search, nis_server_cache_add): New functions.
10025 (__nisfind_server): Use them. Add dbp and flags argument, if
10026 call __nisbind_create.
10027 (__nisbind_create): Add server_used and current_ep arguments,
10028 only call __nis_findfastest if server_used is ~0.
10029 (__do_niscall2, __prepare_niscall): Adjust callers.
10030 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
10031 ckey_cache_euid, ckey_cache_lock): New variables.
10032 (get_ckey): New function.
10033 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
10034 __pmap_getnisport. Save __pmap_getnisport result in
10035 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
10036 key.
10037 * nis/nis_lookup.c (nis_lookup): Likewise.
10038 * nis/nis_table.c (nis_list): Likewise.
10039 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
10040 prototypes.
10041
10042 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
10043 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
10044 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
10045 _nss_nisplus_getservbyport_r): Likewise.
10046 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
10047 _nss_nisplus_getnetbyaddr_r): Likewise.
10048 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
10049 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
10050 _nss_nisplus_getntohost_r): Likewise.
10051 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
10052 _nss_nisplus_getrpcbynumber_r): Likewise.
10053
10054 2007-03-20 Jakub Jelinek <jakub@redhat.com>
10055
10056 * configure.in (libc_cv_gnu89_inline): Only do compile test.
10057 * configure: Rebuilt.
10058
10059 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
10060 bit-fields.
10061 * soft-fp/extended.h (_FP_UNION_E): Likewise.
10062
10063 2006-06-07 Joseph Myers <joseph@codesourcery.com>
10064
10065 [BZ #2831]
10066 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
10067 bit-fields.
10068
10069 2007-03-18 Jakub Jelinek <jakub@redhat.com>
10070
10071 * nscd/gai.c: Include alloca.h.
10072 (__libc_use_alloca): Define.
10073
10074 2007-03-16 Jakub Jelinek <jakub@redhat.com>
10075
10076 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
10077 smaller scopes.
10078 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
10079 (DL_DST_REQUIRED): Adjust user.
10080
10081 * include/dlfcn.h (struct link_map): New forward decl.
10082
10083 * inet/getnameinfo.c: Include stddef.h.
10084 (getnameinfo): Use offsetof.
10085
10086 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
10087
10088 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
10089
10090 * string/strerror_l.c: Include stdlib.h.
10091
10092 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
10093 * config.make.in (gnu89-inline-CFLAGS): New variable.
10094 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
10095 -std=gnu99.
10096 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
10097 * argp/argp.h: Use it.
10098 * bits/mathinline.h: Likewise.
10099 * bits/sigset.h: Likewise.
10100 * bits/string.h: Likewise.
10101 * ctype/ctype.h: Likewise.
10102 * hurd/hurd.h: Likewise.
10103 * hurd/hurd/fd.h: Likewise.
10104 * hurd/hurd/port.h: Likewise.
10105 * hurd/hurd/signal.h: Likewise.
10106 * hurd/hurd/threadvar.h: Likewise.
10107 * hurd/hurd/userlink.h: Likewise.
10108 * io/sys/stat.h: Likewise.
10109 * libio/bits/stdio.h: Likewise.
10110 * libio/bits/stdio2.h: Likewise.
10111 * mach/lock-intern.h: Likewise.
10112 * mach/mach/mig_support.h: Likewise.
10113 * math/bits/cmathcalls.h: Likewise.
10114 * posix/bits/unistd.h: Likewise.
10115 * socket/bits/socket2.h: Likewise.
10116 * stdlib/bits/stdlib.h: Likewise.
10117 * stdlib/stdlib.h: Likewise.
10118 * string/argz.h: Likewise.
10119 * string/bits/string2.h: Likewise.
10120 * string/bits/string3.h: Likewise.
10121 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
10122 * sysdeps/generic/inttypes.h: Likewise.
10123 * sysdeps/generic/machine-lock.h: Likewise.
10124 * sysdeps/generic/machine-sp.h: Likewise.
10125 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
10126 * sysdeps/i386/i486/bits/string.h: Likewise.
10127 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
10128 * sysdeps/mach/alpha/machine-lock.h: Likewise.
10129 * sysdeps/mach/alpha/machine-sp.h: Likewise.
10130 * sysdeps/mach/i386/machine-lock.h: Likewise.
10131 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10132 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
10133 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
10134 * sysdeps/s390/bits/string.h: Likewise.
10135 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
10136 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
10137 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
10138 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
10139 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10140 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
10141 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10142 * wcsmbs/bits/wchar2.h: Likewise.
10143 * wcsmbs/wchar.h: Likewise.
10144 * stdlib/gmp.h: Likewise. Include <features.h> to get
10145 __extern_inline definition.
10146
10147 2007-03-15 Jakub Jelinek <jakub@redhat.com>
10148
10149 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
10150 NULL.
10151
10152 [BZ #3919]
10153 * math/libm-test.inc (log_test): Test -Inf and NaN.
10154 (log10_test, log1p_test, log2_test): Test -Inf.
10155 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
10156 FE_INVALID when argument is qNaN.
10157 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
10158 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
10159 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
10160 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
10161 andb $1, %ah with testb $1, %ah, don't test for parity, instead
10162 testb $4, %ah and jump if non-zero.
10163 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
10164 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
10165
10166 [BZ #4101]
10167 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
10168 ancestors with the same depths.
10169 Patch by Niels Moeller <nisse@lysator.liu.se>.
10170 (filter_doc): Don't crash if argp is NULL.
10171 * argp/Makefile (tests): Add tst-argp2.
10172 * argp/tst-argp2.c: New test.
10173
10174 [BZ #4130]
10175 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
10176 open_not_cancel_2.
10177 (updwtmp_file): Likewise.
10178
10179 [BZ #4181]
10180 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
10181 (inet6_opt_append): Don't check extlen is big enough if extbuf
10182 is NULL.
10183 (inet6_opt_finish): Likewise.
10184 * inet/Makefile (tests): Add test-inet6_opt.
10185 * inet/test-inet6_opt.c: New test.
10186
10187 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
10188 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
10189 NLMSG_ERR. Instead use a page sized buffer.
10190 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
10191 buffer.
10192
10193 2007-03-14 Richard Henderson <rth@redhat.com>
10194
10195 * sysdeps/alpha/fpu/s_llround.c: New file.
10196 * sysdeps/alpha/fpu/s_llroundf.c: New file.
10197 * sysdeps/alpha/fpu/s_lround.c: New file.
10198 * sysdeps/alpha/fpu/s_lroundf.c: New file.
10199 * sysdeps/alpha/fpu/s_round.c: New file.
10200 * sysdeps/alpha/fpu/s_roundf.c: New file.
10201 * sysdeps/alpha/fpu/s_trunc.c: New file.
10202 * sysdeps/alpha/fpu/s_truncf.c: New file.
10203
10204 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
10205 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10206 * sysdeps/alpha/fpu/s_floor.c: Likewise.
10207 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10208 * sysdeps/alpha/fpu/s_rint.c: Likewise.
10209 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
10210
10211 * sysdeps/alpha/fpu/s_fmax.S: New file.
10212 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
10213 * sysdeps/alpha/fpu/s_fmin.S: New file.
10214 * sysdeps/alpha/fpu/s_fminf.S: New file.
10215 * sysdeps/alpha/fpu/s_isnan.c: New file.
10216 * sysdeps/alpha/fpu/s_isnanf.c: New file.
10217 * sysdeps/alpha/fpu/s_llrint.c: New file.
10218 * sysdeps/alpha/fpu/s_llrintf.c: New file.
10219 * sysdeps/alpha/fpu/s_lrint.c: New file.
10220 * sysdeps/alpha/fpu/s_lrintf.c: New file.
10221 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
10222 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
10223
10224 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
10225 (__fdimf, fdimf, __fdim, fdim): Remove.
10226 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
10227 (__isnanf, __isnan, __isnanl): New.
10228
10229 2007-03-13 Richard Henderson <rth@redhat.com>
10230
10231 * sysdeps/ieee754/ldbl-128/Makefile: New file.
10232
10233 2007-03-13 Richard Henderson <rth@redhat.com>
10234
10235 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
10236 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
10237 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
10238 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
10239 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
10240 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
10241
10242 2007-03-13 Richard Henderson <rth@redhat.com>
10243
10244 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
10245 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
10246 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
10247 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
10248 Move to dl-auxv.h; initialize instead of extern weak.
10249 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
10250 weak symbol.
10251 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
10252 Extern instead of initialized.
10253
10254 2007-03-13 Richard Henderson <rth@redhat.com>
10255
10256 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
10257 __sigsuspend_nocancel.
10258
10259 2007-03-06 Ulrich Drepper <drepper@redhat.com>
10260
10261 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
10262 172.16/12 address range.
10263
10264 2007-03-02 Jakub Jelinek <jakub@redhat.com>
10265
10266 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
10267 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
10268 message.
10269
10270 2007-03-01 Jakub Jelinek <jakub@redhat.com>
10271
10272 [BZ #4069]
10273 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
10274 earlier.
10275 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
10276
10277 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
10278 for x qNaN and y either +-inf or non-integer value.
10279 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
10280 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
10281 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10282
10283 2007-02-10 Mike Frysinger <vapier@gentoo.org>
10284
10285 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
10286 from sysdep_headers.
10287
10288 2007-02-28 Jakub Jelinek <jakub@redhat.com>
10289
10290 * time/tzfile.c (find_transition): Instead of a linear search try to
10291 guess the transition index, use a linear search if the result is at
10292 most 10 transitions away from the guess or binary search otherwise.
10293
10294 2007-02-27 Jakub Jelinek <jakub@redhat.com>
10295
10296 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
10297 memory reallocation.
10298
10299 2007-02-21 Ulrich Drepper <drepper@redhat.com>
10300
10301 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
10302 and fix some typos.
10303 Optimize use of TOLOWER.
10304
10305 [BZ #3325]
10306 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
10307 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10308 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10309
10310 [BZ #3458]
10311 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
10312 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
10313
10314 [BZ #4076]
10315 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
10316 (open_dir_stream): Likewise.
10317 * io/Makefile (tests): Add bug-ftw5.
10318 * io/bug-ftw5.c: New file.
10319
10320 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
10321 * nscd/servicescache.c (cache_addserv): Likewise.
10322
10323 * nscd/grpcache.c (cache_addgr): In case a record changed on
10324 refresh, adjust key_copy.
10325
10326 [BZ #4074]
10327 * nscd/pwdcache.c (cache_addpw): In case a record changed on
10328 refresh, adjust key_copy.
10329
10330 [BZ #4070]
10331 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
10332 special cases.
10333 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
10334
10335 2007-02-19 Ulrich Drepper <drepper@redhat.com>
10336
10337 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
10338 optimization.
10339
10340 * stdio-common/vfscanf.c: Small cleanups throughout.
10341
10342 2007-02-18 Ulrich Drepper <drepper@redhat.com>
10343
10344 [BZ #3325]
10345 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
10346 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10347 * sysdeps/i386/fpu/e_fmod.S: Likewise.
10348 Patch by Jared Casper <jaredcasper@gmail.com>.
10349
10350 * sysdeps/unix/closedir.c: Outside libc don't use locking.
10351 * sysdeps/unix/opendir.c: Likewise.
10352 * sysdeps/unix/readdir.c: Likewise.
10353
10354 [BZ #2211]
10355 * stdio-common/vfscanf.c: Handle localized digits etc for floating
10356 point numbers.
10357 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
10358
10359 * stdio-common/vfscanf.c: Fix problems in width accounting.
10360 * stdio-common/tst-sscanf.c (double_tests): New tests.
10361 (main): Hook them up.
10362
10363 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
10364 More simplifications of floating-point reader.
10365
10366 * stdio-common/Makefile (tests): Add tst-swscanf.
10367 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
10368 testing.
10369 * stdio-common/tst-swscanf.c: New file.
10370
10371 2007-02-17 Ulrich Drepper <drepper@redhat.com>
10372
10373 [BZ #2633]
10374 * libio/stdio.h: Define struct _IO_FILE in global namespace.
10375 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
10376 Remove using for __jmp_buf_tag.
10377 * locale/locale.h (struct lconv): Also define in std namespace.
10378 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
10379
10380 [BZ #3842]
10381 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
10382 using __libc_enable_secure.
10383
10384 [BZ #3818]
10385 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
10386
10387 [BZ #3745]
10388 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
10389 of names for ellipsises.
10390
10391 [BZ #3348]
10392 * malloc/memusage.sh: Cleanups.
10393 * debug/xtrace.sh: Quoting and trap changes.
10394
10395 2007-02-16 Ulrich Drepper <drepper@redhat.com>
10396
10397 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
10398
10399 * locale/iso-3166.def: Update entry for Serbia.
10400 * locale/iso-4217.def: Define RSD, remove CSD.
10401
10402 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
10403 and 64-bit operations.
10404
10405 [BZ #4040]
10406 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
10407 16-bit operations.
10408
10409 * nscd/nscd.c (parse_opt): One more conversion to use send instead
10410 of writev.
10411
10412 2007-02-15 Ulrich Drepper <drepper@redhat.com>
10413
10414 [BZ #3991]
10415 * assert/assert.h (assert): Simplify.
10416 (assert_perror): Likewise.
10417 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
10418
10419 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
10420 reqdata.
10421
10422 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
10423 change: don't pass NULL in place of an integer.
10424
10425 2007-02-02 Bruno Haible <bruno@clisp.org>
10426
10427 [BZ #3954]
10428 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
10429 Add mapping for U+327E.
10430 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
10431 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10432 mapping of 0xD9 0xE8.
10433 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
10434 mapping of U+327E.
10435 Reported by Jungshik Shin <jungshik@google.com>.
10436
10437 [BZ #3955]
10438 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
10439 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
10440 Reported by Jungshik Shin <jungshik@google.com>.
10441
10442 2007-02-14 Ulrich Drepper <drepper@redhat.com>
10443
10444 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
10445 byte variants.
10446
10447 [BZ #4040]
10448 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
10449 byte variants. Patch mostly be tom@tommay.net.
10450
10451 2007-02-14 Jakub Jelinek <jakub@redhat.com>
10452
10453 [BZ #3996]
10454 * posix/glob.c (attribute_hidden): Define if not defined.
10455 (glob): Unescape dirname, filename or username when needed and not
10456 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
10457 is NULL. Handle unescaped [ in pattern without closing ].
10458 Don't pass GLOB_CHECK down to recursive glob for directories.
10459 (__glob_pattern_type): New function.
10460 (__glob_pattern_p): Implement using __glob_pattern_type.
10461 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10462 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10463 Remove unreachable code.
10464 * posix/globtest.sh: Add a couple of new tests.
10465
10466 2007-02-13 Ulrich Drepper <drepper@redhat.com>
10467
10468 * po/ru.po: Update from translation team.
10469
10470 2007-02-12 Jakub Jelinek <jakub@redhat.com>
10471
10472 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
10473 to the list of i486+ CPUs.
10474 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10475
10476 2007-02-12 Ulrich Drepper <drepper@redhat.com>
10477
10478 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
10479 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
10480 references.
10481
10482 2007-02-09 Ulrich Drepper <drepper@redhat.com>
10483
10484 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
10485
10486 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
10487 * resolv/res_mkquery.c: Define __res_nopt.
10488 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
10489 try adding EDNS0 record.
10490 * resolv/res_send.c (send_dg): If request failed with FORMERR and
10491 EDNS0 record was send make sure we don't try it again.
10492 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
10493 * include/resolv.h: Declare __res_nopt.
10494
10495 2007-02-08 Jakub Jelinek <jakub@redhat.com>
10496
10497 [BZ #3944]
10498 * time/strptime_l.c (__strptime_internal): Set have_mon for
10499 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
10500 have been computed from tm_yday and tm_year. Don't crash
10501 in day_of_the_week or day_of_the_year if not have_mon
10502 and tm_mon contains bogus value.
10503 * time/Makefile (tests): Add tst-strptime3.
10504 * time/tst-strptime3.c: New test.
10505
10506 2007-02-05 Jakub Jelinek <jakub@redhat.com>
10507
10508 [BZ #3957]
10509 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
10510 bit for RE_HAT_LISTS_NOT_NEWLINE.
10511 (build_charclass_op): Remove bogus comment.
10512 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
10513 * posix/bug-regex27.c: New test.
10514 * posix/bug-regex28.c: New test.
10515
10516 2007-02-03 Ulrich Drepper <drepper@redhat.com>
10517
10518 * po/sv.po: Update from translation team.
10519
10520 2007-02-02 Ulrich Drepper <drepper@redhat.com>
10521
10522 * nscd/nscd_helper.c (open_socket): Minor size optimization.
10523
10524 2007-02-02 Jakub Jelinek <jakub@redhat.com>
10525
10526 * include/locale.h (__uselocale): Add libc_hidden_proto.
10527 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
10528
10529 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
10530 gettimeofday.
10531
10532 2007-02-01 Ulrich Drepper <drepper@redhat.com>
10533
10534 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
10535 returning.
10536 (PTR_DEMANGLE): Real definition now that it's not the same as
10537 PRT_MANGLE anymore.
10538 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10539
10540 * string/strerror_l.c: New file.
10541 * string/Makefile (routines): Add strerror_l.
10542 * string/string.h: Declare strerror_l.
10543 * string/Versions: Export strerror_l for GLIBC_2.6.
10544
10545 2007-01-31 Ulrich Drepper <drepper@redhat.com>
10546
10547 * nscd/nscd_helper.c (open_socket): Now takes request type and key
10548 as parameter. Construct request record. Try sending request
10549 before the first poll use, it usually succeeds. Adjust all
10550 callers.
10551 * nscd/nscd-client.h: Define MAXKEYLEN.
10552 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
10553
10554 2007-01-31 Jakub Jelinek <jakub@redhat.com>
10555
10556 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
10557 from return value.
10558 * nscd/nscd_helper.c: Include string.h.
10559 (__nscd_cache_search): Remove const qualifier from return value.
10560 On strict alignment architectures check hash entry and data head
10561 alignment.
10562 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
10563 mmapped data during GC cycle contains garbage. If
10564 __nscd_drop_map_ref fails, decrement mapped->counter when returning
10565 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
10566 dropped to 0.
10567 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
10568 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
10569 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
10570 * nscd/nscd_getai.c (__nscd_getai): Likewise.
10571 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
10572
10573 2007-01-30 Ulrich Drepper <drepper@redhat.com>
10574
10575 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
10576
10577 2007-01-26 Ulrich Drepper <drepper@redhat.com>
10578
10579 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
10580 names not numbers in cfi_*.
10581
10582 2007-01-26 Andreas Jaeger <aj@suse.de>
10583
10584 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
10585 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
10586 Correct values of PER_HPUX and PER_OSF4.
10587
10588 2007-01-24 Ulrich Drepper <drepper@redhat.com>
10589
10590 * elf/dl-minimal.c: Undefine _itoa first.
10591 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
10592 * malloc/mtrace.c: Revert last change.
10593 * posix/wordexp.c: Likewise.
10594
10595 2007-01-24 Jakub Jelinek <jakub@redhat.com>
10596
10597 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
10598 and __geode__ to the list of i486+ CPUs.
10599 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
10600
10601 2007-01-23 Ulrich Drepper <drepper@redhat.com>
10602
10603 * stdio-common/_itoa.c: Include <limits.h>.
10604 * stdio-common/_itowa.c: Likewise.
10605
10606 2007-01-22 Ulrich Drepper <drepper@redhat.com>
10607
10608 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
10609 platforms.
10610 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
10611 64-bit platforms.
10612 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
10613 possible.
10614 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
10615 if possible.
10616
10617 [BZ #3902]
10618 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
10619 * stdio-common/Makefile (tests): Add bug17.
10620 * stdio-common/bug17.c: New file.
10621
10622 2007-01-19 Ulrich Drepper <drepper@redhat.com>
10623
10624 * iconvdata/brf.c: New file.
10625 * iconvdata/testdata/BRF: New file.
10626 * iconvdata/testdata/BRF..UTF8: New file.
10627 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
10628 * iconvdata/Makefile: Add rules to build BRF.
10629 * iconvdata/TESTS: Add BRF entry.
10630 * iconvdata/gconv-modules: Likewise.
10631 * iconvdata/tst-tables.sh: Likewise.
10632
10633 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
10634
10635 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
10636 type `long long int', not `long int'.
10637 (wcstoq): Likewise.
10638
10639 2007-01-18 Ulrich Drepper <drepper@redhat.com>
10640
10641 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
10642 of values on 64-bit platforms which are too large.
10643
10644 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
10645 Joe Kerian <jkerian@us.us.ibm.com>
10646
10647 [BZ #2749]
10648 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
10649 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
10650 (__copysignl): Use signbit() for comparison.
10651 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
10652 SET_LDOUBLE_WORDS64.
10653
10654 [BZ #2423, #2749]
10655 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
10656 (__ceill): Remove calls to fegetround(), fesetround().
10657 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
10658 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
10659 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
10660
10661 2007-01-17 Jakub Jelinek <jakub@redhat.com>
10662
10663 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
10664
10665 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
10666
10667 2007-01-17 Ulrich Drepper <drepper@redhat.com>
10668
10669 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
10670 demangle pointer.
10671 * csu/libc-start.c: Likewise.
10672
10673 2007-01-16 Ulrich Drepper <drepper@redhat.com>
10674
10675 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
10676 really work anyway.
10677
10678 2007-01-15 Ulrich Drepper <drepper@redhat.com>
10679
10680 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
10681 users.
10682 (handle_request): Remove unnecessary tests.
10683
10684 * nscd/cache.c (cache_add): Record the failure to add to the cache.
10685
10686 2007-01-15 Jakub Jelinek <jakub@redhat.com>
10687
10688 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
10689 workbits in semi-raw fraction.
10690
10691 * math/test-misc.c: Add new tests.
10692
10693 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
10694
10695 * math/basic-test.c: Include test-skeleton.c.
10696 (TEST_TRUNC): Define.
10697 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
10698 (main): Rename to ...
10699 (do_test): ...this. Run new tests.
10700 (TEST_FUNCTION): Define.
10701
10702 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
10703 Joe Kerian <jkerian@us.us.ibm.com>
10704
10705 [BZ #2749]
10706 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
10707 handling for high words.
10708 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
10709 and overflow for infinity.
10710
10711 2007-01-15 Ulrich Drepper <drepper@redhat.com>
10712
10713 * nscd/connections.c (handle_request): Add a __builtin_expect.
10714
10715 * nscd/connections.c (serv2db): Change type into structure which
10716 also says whether this is a request for data. Renamed to
10717 servinfo. All users changed.
10718 (handle_request): Much simpler test whether we should search the cache.
10719
10720 * nscd/connections.c (handle_request): Fix thinko in selinux test
10721 invocation.
10722
10723 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
10724 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
10725 it before getting dl_load_lock and then relock.
10726 (_dl_lookup_symbol_x): Pass flags to add_dependency.
10727 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
10728 case we unlocked the scope.
10729 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
10730 _dl_lookup_symbol_x in case we locked the scope.
10731 (_dl_profile_fixup): Likewise.
10732 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
10733 set DL_LOOKUP_SCOPE_LOCK.
10734
10735 2007-01-13 Ulrich Drepper <drepper@redhat.com>
10736
10737 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
10738 CFLAGS-getsrvbynpt_r.c.
10739 * nscd/getsrvbynm_r.c: New file.
10740 * nscd/getsrvbypt_r.c: New file.
10741 * nscd/nscd_getserv_r.c: New file.
10742 * nscd/servicescache.c: New file.
10743 * nscd/Makefile (routines): Add nscd_getserv_r.
10744 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
10745 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
10746 CFLAGS-getsrvbypt_r.c.
10747 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
10748 table. Add entries for services database.
10749 * nscd/connections.c (serv2str): Mark as const. Add entries for
10750 services database.
10751 (dbs): Add .reset_res and servdb initialization.
10752 (serv2db): Add entries for services database.
10753 (verify_persistent_db): Accept dbnr == servdb.
10754 (invalidate_cache): Rewrite database name recognition to use a table.
10755 Call res_init() if .reset_res is set for database.
10756 (handle_request): Add code to handle services database.
10757 * nscd/gai.c: Don't define __getservbyname_r.
10758 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
10759 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
10760 (serv_response_header): Define.
10761 (struct datahead): Add serv_response_header member.
10762 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
10763 using table.
10764 * nscd/nscd.conf: Add entries for services database.
10765 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
10766 Declare serv_iov_disabled.
10767 Declare addservbyname, readdservbyname, addservbyport, and
10768 readdservbyport.
10769 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
10770 (find_db): Fix error message.
10771 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
10772 __nscd_getservbyname_r, and __nscd_getservbyport_r.
10773 * nscd/selinux.c (perms): Add entries for services database.
10774 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
10775 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
10776
10777 * nscd/grpcache.c: Remove obsolete code. Cleanups.
10778 * nscd/hstcache.c: Likewise.
10779 * nscd/pwdcache.c: Likewise.
10780
10781 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
10782 computation of keylen.
10783
10784 * include/string.h: Only redefine strndupa if this is really for
10785 libc code.
10786
10787 2007-01-12 Ulrich Drepper <drepper@redhat.com>
10788
10789 * nscd/nscd_gethst_r.c: Minor cleanups.
10790
10791 * nscd/connections.c (handle_request): Check selinux permissions
10792 for all non-admin commands.
10793
10794 * sysdeps/i386/i486/bits/atomic.h: Define
10795 atomic_compare_and_exchange_val_acq,
10796 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
10797 using __sync_* built-ins for gcc >= 4.1.
10798 * sysdeps/x86_64/bits/atomic.h: Likewise.
10799
10800 [BZ #3840]
10801 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
10802 and .oS.d files.
10803
10804 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
10805
10806 * stdlib/tst-makecontext.c: Include errno.h. Change main()
10807 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
10808 (do_test): Check errno and exit(0) if ENOSYS.
10809
10810 2007-01-11 Jakub Jelinek <jakub@redhat.com>
10811
10812 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
10813 thousands separators.
10814 * stdlib/Makefile: Add rules to build and run tst-strtod4.
10815 * stdlib/tst-strtod4.c: New test.
10816
10817 [BZ #3855]
10818 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
10819 hexadecimal digit should accept just the initial 0.
10820 * stdlib/tst-strtod2.c (tests): New variable.
10821 (do_test): Run several tests rather than just one.
10822
10823 2007-01-11 Jakub Jelinek <jakub@redhat.com>
10824
10825 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
10826 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
10827
10828 2007-01-10 Ulrich Drepper <drepper@redhat.com>
10829
10830 * io/fts.c: Make sure fts_cur is always valid after return from
10831 fts_read.
10832 Patch by Miloslav Trmac <mitr@redhat.com>.
10833
10834 2006-10-27 Richard Sandiford <richard@codesourcery.com>
10835
10836 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
10837 (R_MIPS_NUM): Bump by 1.
10838
10839 2007-01-03 Jakub Jelinek <jakub@redhat.com>
10840
10841 * posix/execvp.c: Include alloca.h.
10842 (allocate_scripts_argv): Renamed to...
10843 (scripts_argv): ... this. Don't allocate buffer here nor count
10844 arguments.
10845 (execvp): Use alloca if possible.
10846 * posix/Makefile: Add rules to build and run tst-vfork3 test.
10847 * posix/tst-vfork3.c: New test.
10848
10849 2007-01-03 Ulrich Drepper <drepper@redhat.com>
10850
10851 * string/Makefile (tst-strxfrm2-ENV): Define.
10852 * stdlib/Makefile (tst-strtod3-ENV): Define.
10853
10854 2007-01-02 Ulrich Drepper <drepper@redhat.com>
10855
10856 * posix/getconf.c: Update copyright year.
10857 * nss/getent.c: Likewise.
10858 * iconv/iconvconfig.c: Likewise.
10859 * iconv/iconv_prog.c: Likewise.
10860 * elf/ldconfig.c: Likewise.
10861 * catgets/gencat.c: Likewise.
10862 * csu/version.c: Likewise.
10863 * elf/ldd.bash.in: Likewise.
10864 * elf/sprof.c (print_version): Likewise.
10865 * locale/programs/locale.c: Likewise.
10866 * locale/programs/localedef.c: Likewise.
10867 * nscd/nscd.c (print_version): Likewise.
10868 * debug/xtrace.sh: Likewise.
10869 * malloc/memusage.sh: Likewise.
10870 * malloc/mtrace.pl: Likewise.
10871 * debug/catchsegv.sh: Likewise.
10872
10873 2006-12-24 Ulrich Drepper <drepper@redhat.com>
10874
10875 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
10876 attempts.
10877
10878 2006-12-23 Ulrich Drepper <drepper@redhat.com>
10879
10880 * posix/wordexp.c: Remove some unnecessary tests.
10881
10882 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
10883
10884 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
10885 blacklist the group till after we look it up.
10886
10887 2006-12-21 Ulrich Drepper <drepper@redhat.com>
10888
10889 * include/atomic.h (atomic_forced_read): New macro.
10890
10891 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
10892
10893 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
10894
10895 2006-12-19 Jakub Jelinek <jakub@redhat.com>
10896
10897 * nss/getXXbyYY_r.c: Include atomic.h.
10898 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
10899 add atomic_write_barrier () in between.
10900
10901 * stdlib/Makefile (tests): Add tst-makecontext.
10902 * stdlib/tst-makecontext.c: New test.
10903
10904 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
10905 (__makecontext): Don't realign uc_mcontext.uc_regs.
10906
10907 2006-11-28 Jakub Jelinek <jakub@redhat.com>
10908
10909 * elf/dl-support.c: Include dl-procinfo.h.
10910 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
10911 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
10912 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
10913 Define.
10914 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
10915 hardcoded constants.
10916 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
10917 PPC_PLATFORM_* macros for array designators.
10918
10919 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
10920
10921 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
10922 names to the beginning.
10923 (_dl_powerpc_platforms): Add "power6x".
10924 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10925 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
10926 (_DL_PLATFORMS_COUNT): Increase.
10927 (_dl_string_platform): Handle power6x case.
10928 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
10929 PPC_FEATURE_POWER6_EXT): Define.
10930 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
10931
10932 2006-12-18 Jakub Jelinek <jakub@redhat.com>
10933
10934 [BZ #3747]
10935 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
10936 [-2^31 .. 2^31) range.
10937 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
10938 targets.
10939 * stdlib/tst-rand48-2.c: New test.
10940 * stdlib/Makefile (tests): Add tst-rand48-2.
10941
10942 2006-12-14 Jakub Jelinek <jakub@redhat.com>
10943
10944 * misc/tst-pselect.c (do_test): Fix sigblock argument.
10945
10946 2006-12-14 Ulrich Drepper <drepper@redhat.com>
10947
10948 * misc/tst-pselect.c (do_test): Make sure the helper process is
10949 terminating when the test is aborted.
10950
10951 2006-12-13 Ulrich Drepper <drepper@redhat.com>
10952
10953 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
10954 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
10955 Handle relatime mount option.
10956
10957 [BZ #2337]
10958 * libio/Makefile (tests): Add tst-setvbuf1.
10959 * libio/tst-setvbuf1.c: New file.
10960
10961 2006-12-08 Jakub Jelinek <jakub@redhat.com>
10962
10963 [BZ #2337]
10964 * libio/genops.c (__uflow): Fix a typo.
10965 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
10966 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
10967 the narrow buffer size.
10968
10969 2006-11-24 Jakub Jelinek <jakub@redhat.com>
10970
10971 [BZ #2337]
10972 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
10973 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
10974 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
10975 in _flags.
10976 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
10977 _IO_wstr_finish): Likewise.
10978 * libio/wmemstream.c (open_wmemstream): Likewise.
10979 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
10980 even for wide streams.
10981
10982 2006-12-13 Jakub Jelinek <jakub@redhat.com>
10983
10984 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
10985 kernel-features.h.
10986
10987 2006-12-11 Ulrich Drepper <drepper@redhat.com>
10988
10989 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
10990 separators also if no non-zero digits found.
10991 * stdlib/Makefile (tests): Add tst-strtod3.
10992
10993 2006-12-09 Ulrich Drepper <drepper@redhat.com>
10994
10995 [BZ #3632]
10996 * include/features.h: Fix comment about default value for
10997 _POSIX_C_SOURCE.
10998
10999 [BZ #3664]
11000 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
11001 empty parsed strings.
11002 * stdlib/Makefile (tests): Add tst-strtod2.
11003 * stdlib/tst-strtod2.c: New file.
11004
11005 [BZ #3673]
11006 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
11007 computation.
11008 * stdlib/Makefile (tests): Add tst-atof2.
11009 * stdlib/tst-atof2.c: New file.
11010
11011 [BZ #3674]
11012 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
11013 correctly if removing trailing zero of hex-float.
11014 * stdlib/Makefile (tests): Add tst-atof1.
11015 * stdlib/tst-atof1.c: New file.
11016
11017 2006-12-09 Jakub Jelinek <jakub@redhat.com>
11018
11019 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
11020 Start searching for next comma at p rather than rest.
11021 * misc/Makefile (tests): Add tst-mntent2.
11022 * misc/tst-mntent2.c: New test.
11023
11024 * misc/getusershell.c (initshells): Check for integer overflows.
11025 Make strings buffer one bigger as fgets always succeeds when second
11026 argument is 1. Don't use calloc for shells array. Disallow
11027 / as shell.
11028
11029 2006-12-08 Ulrich Drepper <drepper@redhat.com>
11030
11031 * malloc/memusage.c: Handle realloc with new size of zero and
11032 non-NULL pointer correctly.
11033 (me): Really write first record twice.
11034 (struct entry): Make format bi-arch safe.
11035 (dest): Write out more realloc statistics.
11036 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
11037
11038 2006-12-05 Jakub Jelinek <jakub@redhat.com>
11039
11040 * nis/nis_subr.c (nis_getnames): Revert last change.
11041
11042 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11043
11044 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
11045 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
11046 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
11047 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
11048 ENOTTY.
11049 * io/Makefile: Add rules to build and run tst-ttyname_r test.
11050 * io/tst-ttyname_r.c: New test.
11051
11052 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11053
11054 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
11055
11056 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
11057
11058 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
11059 jump table entries.
11060
11061 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
11062
11063 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
11064 `clone' function to ensure proper unwinding stop of gdb.
11065 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
11066
11067 2006-12-01 Ulrich Drepper <drepper@redhat.com>
11068
11069 * nscd/nscd.init: Remove obsolete and commented-out -S option
11070 handling.
11071
11072 2006-11-23 Jakub Jelinek <jakub@redhat.com>
11073
11074 [BZ #3514]
11075 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
11076
11077 [BZ #3515]
11078 * manual/string.texi (strtok): Remove duplicate paragraph.
11079
11080 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11081
11082 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
11083 libgcc not supporting `rflags' unwinding (register # >= 17).
11084
11085 2006-11-30 Jakub Jelinek <jakub@redhat.com>
11086
11087 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
11088 succeeded.
11089
11090 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
11091 Jakub Jelinek <jakub@redhat.com>
11092 Jan Kratochvil <jan.kratochvil@redhat.com>
11093
11094 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
11095 unwind information.
11096 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
11097 'restore_rt' even in the 'signal' directory.
11098 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
11099
11100 2006-11-27 Jakub Jelinek <jakub@redhat.com>
11101
11102 [BZ #3559]
11103 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11104 malloc crashed. Don't allocate memory unnecessarily in each
11105 loop.
11106
11107 2006-10-21 Jakub Jelinek <jakub@redhat.com>
11108
11109 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
11110
11111 2006-11-20 Ulrich Drepper <drepper@redhat.com>
11112
11113 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
11114
11115 2006-11-18 Bruno Haible <bruno@clisp.org>
11116
11117 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
11118 __sysconf only after having tried to call getgroups32.
11119
11120 2006-11-19 Ulrich Drepper <drepper@redhat.com>
11121
11122 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
11123 addresses for IPv4 queries if they can be mapped.
11124
11125 2006-11-16 Jakub Jelinek <jakub@redhat.com>
11126
11127 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
11128 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
11129 (signmask): Add .size directive.
11130 (othermask): Add .type directive.
11131
11132 2006-11-14 Ulrich Drepper <drepper@redhat.com>
11133
11134 * po/nl.po: Update from translation team.
11135
11136 * timezone/zdump.c: Redo fix for BZ #3137.
11137
11138 2006-11-14 Jakub Jelinek <jakub@redhat.com>
11139
11140 * nss/nss_files/files-alias.c (get_next_alias): Set line back
11141 to first_unused after parsing :include: file.
11142
11143 2006-11-10 Ulrich Drepper <drepper@redhat.com>
11144
11145 * timezone/africa: Update from tzdata2006o.
11146 * timezone/antarctica: Likewise.
11147 * timezone/asia: Likewise.
11148 * timezone/australasia: Likewise.
11149 * timezone/backward: Likewise.
11150 * timezone/europe: Likewise.
11151 * timezone/iso3166.tab: Likewise.
11152 * timezone/northamerica: Likewise.
11153 * timezone/southamerica: Likewise.
11154 * timezone/zone.tab: Likewise.
11155
11156 * time/tzfile.c (__tzfile_read): Extend to handle new file format
11157 on machines with 64-bit time_t.
11158
11159 * timezone/checktab.awk: Update from tzcode2006o.
11160 * timezone/ialloc.c: Likewise.
11161 * timezone/private.h: Likewise.
11162 * timezone/scheck.c: Likewise.
11163 * timezone/tzfile.h: Likewise.
11164 * timezone/tzselect.ksh: Likewise.
11165 * timezone/zdump.c: Likewise.
11166 * timezone/zic.c: Likewise.
11167
11168 [BZ #3483]
11169 * elf/ldconfig.c (main): Call setlocale and textdomain.
11170 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11171
11172 [BZ #3480]
11173 * manual/argp.texi: Fix typos.
11174 * manual/charset.texi: Likewise.
11175 * manual/errno.texi: Likewise.
11176 * manual/filesys.texi: Likewise.
11177 * manual/lang.texi: Likewise.
11178 * manual/maint.texi: Likewise.
11179 * manual/memory.texi: Likewise.
11180 * manual/message.texi: Likewise.
11181 * manual/resource.texi: Likewise.
11182 * manual/search.texi: Likewise.
11183 * manual/signal.texi: Likewise.
11184 * manual/startup.texi: Likewise.
11185 * manual/stdio.texi: Likewise.
11186 * manual/sysinfo.texi: Likewise.
11187 * manual/syslog.texi: Likewise.
11188 * manual/time.texi: Likewise.
11189 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11190
11191 [BZ #3465]
11192 * sunrpc/clnt_raw.c: Minimal message improvements.
11193 * sunrpc/pm_getmaps.c: Likewise.
11194 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
11195 * nis/nis_print_group_entry.c: Likewise.
11196 * locale/programs/repertoire.c: Likewise.
11197 * locale/programs/charmap.c: Likewise.
11198 * malloc/memusage.sh: Likewise.
11199 * elf/dl-deps.c: Likewise.
11200 * locale/programs/ld-collate.c: Likewise.
11201 * libio/vswprintf.c: Likewise.
11202 * malloc/memusagestat.c: Likewise.
11203 * sunrpc/auth_unix.c: Likewise.
11204 * sunrpc/rpc_main.c: Likewise.
11205 * nscd/cache.c: Likewise.
11206 * locale/programs/repertoire.c: Unify output messages.
11207 * locale/programs/charmap.c: Likewise.
11208 * locale/programs/ld-ctype.c: Likewise.
11209 * locale/programs/ld-monetary.c: Likewise.
11210 * locale/programs/ld-numeric.c: Likewise.
11211 * locale/programs/ld-time.c: Likewise.
11212 * elf/ldconfig.c: Likewise.
11213 * nscd/selinux.c: Likewise.
11214 * elf/cache.c: Likewise.
11215 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
11216
11217 [BZ #3451]
11218 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
11219 change atomic.
11220 (ceil): Likewise.
11221
11222 2006-11-10 Jakub Jelinek <jakub@redhat.com>
11223
11224 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
11225 if N is one bigger than return value.
11226 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
11227 and l1 last arguments, if buf is defined, verify the return value
11228 equals to strlen (buf) and verify no byte beyond passed length
11229 is modified.
11230
11231 2006-11-10 Ulrich Drepper <drepper@redhat.com>
11232
11233 * po/sv.po: Update from translation team.
11234
11235 2006-11-09 Ulrich Drepper <drepper@redhat.com>
11236
11237 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
11238 noinline attribute.
11239
11240 2006-11-10 Jakub Jelinek <jakub@redhat.com>
11241
11242 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
11243 noinline attribute.
11244
11245 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
11246 Use __new_sys_siglist instead of _sys_siglist_internal as
11247 second macro argument.
11248 (_old_sys_siglist): Use declare_symbol_alias macro instead of
11249 strong_alias.
11250
11251 2006-11-09 Ulrich Drepper <drepper@redhat.com>
11252
11253 [BZ #3493]
11254 * posix/unistd.h (sysconf): Remove const attribute.
11255
11256 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
11257 temporary or deprecated addresses.
11258 Patch by Sridhar Samudrala <sri@us.ibm.com>.
11259
11260 * string/Makefile (tests): Add tst-strxfrm2.
11261 * string/tst-strxfrm2.c: New file.
11262
11263 2006-10-09 Jakub Jelinek <jakub@redhat.com>
11264
11265 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
11266 rather than r->r_brk.
11267
11268 2006-11-08 Jakub Jelinek <jakub@redhat.com>
11269
11270 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
11271 optimization even if needed > n.
11272
11273 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
11274 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
11275 return false, otherwise return true.
11276 (cache_rpath): Return decompose_rpath return value.
11277
11278 2006-11-07 Jakub Jelinek <jakub@redhat.com>
11279
11280 * include/libc-symbols.h (declare_symbol): Rename to...
11281 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
11282 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
11283 .size directive.
11284 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
11285 changes.
11286 * sysdeps/gnu/siglist.c: Likewise.
11287
11288 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
11289
11290 * sysdeps/powerpc/fpu/bits/mathinline.h
11291 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
11292 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
11293
11294 2006-11-05 Ulrich Drepper <drepper@redhat.com>
11295
11296 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
11297 Update handling of cache descriptor 0x49 for new models.
11298 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
11299 Likewise.
11300
11301 2006-11-02 Jakub Jelinek <jakub@redhat.com>
11302
11303 * malloc/memusage.c (dest): Reset not_me back to false after
11304 printing statistics.
11305
11306 2006-11-02 Ulrich Drepper <drepper@redhat.com>
11307
11308 * configure.in: Work around ld --help change and avoid -z relro
11309 test completely if the architecture doesn't care about security.
11310
11311 2006-11-01 Ulrich Drepper <drepper@redhat.com>
11312
11313 * po/sv.po: Update from translation team.
11314
11315 2006-10-31 Ulrich Drepper <drepper@redhat.com>
11316
11317 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
11318 generate compatibility version.
11319
11320 2006-10-29 Ulrich Drepper <drepper@redhat.com>
11321
11322 * configure.in: Relax -z relro requirement a bit.
11323
11324 * po/sv.po: Update from translation team.
11325
11326 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11327
11328 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
11329 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
11330 * elf/dl-close.c (_dl_close_worker): Likewise.
11331 * elf/dl-open.c (_dl_open_worker): Likewise.
11332 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
11333
11334 2006-10-27 Ulrich Drepper <drepper@redhat.com>
11335
11336 * configure.in: Require assembler support for visibility, compiler
11337 support for visibility and aliases, linker support for various -z
11338 options.
11339 * Makeconfig: Remove conditional code which now is unnecessary.
11340 * config.h.in: Likewise.
11341 * config.make.in: Likewise.
11342 * dlfcn/Makefile: Likewise.
11343 * elf/Makefile: Likewise.
11344 * elf/dl-load.c: Likewise.
11345 * elf/rtld.c: Likewise.
11346 * include/libc-symbols.h: Likewise.
11347 * include/stdio.h: Likewise.
11348 * io/Makefile: Likewise.
11349 * io/fstat.c: Likewise.
11350 * io/fstat64.c: Likewise.
11351 * io/fstatat.c: Likewise.
11352 * io/fstatat64.c: Likewise.
11353 * io/lstat.c: Likewise.
11354 * io/lstat64.c: Likewise.
11355 * io/mknod.c: Likewise.
11356 * io/mknodat.c: Likewise.
11357 * io/stat.c: Likewise.
11358 * io/stat64.c: Likewise.
11359 * libio/stdio.c: Likewise.
11360 * nscd/Makefile: Likewise.
11361 * stdlib/Makefile: Likewise.
11362 * stdlib/atexit.c: Likewise.
11363 * sysdeps/generic/ldsodefs.h: Likewise.
11364 * sysdeps/i386/dl-machine.h: Likewise.
11365 * sysdeps/i386/sysdep.h: Likewise.
11366 * sysdeps/i386/i686/memcmp.S: Likewise.
11367 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11368 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
11369 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
11370
11371 * Makerules: USE_TLS support is now default.
11372 * tls.make.c: Likewise.
11373 * csu/Versions: Likewise.
11374 * csu/libc-start.c: Likewise.
11375 * csu/libc-tls.c: Likewise.
11376 * csu/version.c: Likewise.
11377 * dlfcn/dlinfo.c: Likewise.
11378 * elf/dl-addr.c: Likewise.
11379 * elf/dl-cache.c: Likewise.
11380 * elf/dl-close.c: Likewise.
11381 * elf/dl-iteratephdr.c: Likewise.
11382 * elf/dl-load.c: Likewise.
11383 * elf/dl-lookup.c: Likewise.
11384 * elf/dl-object.c: Likewise.
11385 * elf/dl-open.c: Likewise.
11386 * elf/dl-reloc.c: Likewise.
11387 * elf/dl-support.c: Likewise.
11388 * elf/dl-sym.c: Likewise.
11389 * elf/dl-sysdep.c: Likewise.
11390 * elf/dl-tls.c: Likewise.
11391 * elf/ldconfig.c: Likewise.
11392 * elf/rtld.c: Likewise.
11393 * elf/tst-tls-dlinfo.c: Likewise.
11394 * elf/tst-tls1.c: Likewise.
11395 * elf/tst-tls10.h: Likewise.
11396 * elf/tst-tls14.c: Likewise.
11397 * elf/tst-tls2.c: Likewise.
11398 * elf/tst-tls3.c: Likewise.
11399 * elf/tst-tls4.c: Likewise.
11400 * elf/tst-tls5.c: Likewise.
11401 * elf/tst-tls6.c: Likewise.
11402 * elf/tst-tls7.c: Likewise.
11403 * elf/tst-tls8.c: Likewise.
11404 * elf/tst-tls9.c: Likewise.
11405 * elf/tst-tlsmod1.c: Likewise.
11406 * elf/tst-tlsmod13.c: Likewise.
11407 * elf/tst-tlsmod13a.c: Likewise.
11408 * elf/tst-tlsmod14a.c: Likewise.
11409 * elf/tst-tlsmod2.c: Likewise.
11410 * elf/tst-tlsmod3.c: Likewise.
11411 * elf/tst-tlsmod4.c: Likewise.
11412 * elf/tst-tlsmod5.c: Likewise.
11413 * elf/tst-tlsmod6.c: Likewise.
11414 * include/errno.h: Likewise.
11415 * include/link.h: Likewise.
11416 * include/tls.h: Likewise.
11417 * locale/global-locale.c: Likewise.
11418 * locale/localeinfo.h: Likewise.
11419 * malloc/arena.c: Likewise.
11420 * malloc/hooks.c: Likewise.
11421 * malloc/malloc.c: Likewise.
11422 * resolv/Versions: Likewise.
11423 * sysdeps/alpha/dl-machine.h: Likewise.
11424 * sysdeps/alpha/libc-tls.c: Likewise.
11425 * sysdeps/generic/ldsodefs.h: Likewise.
11426 * sysdeps/generic/tls.h: Likewise.
11427 * sysdeps/i386/dl-machine.h: Likewise.
11428 * sysdeps/ia64/dl-machine.h: Likewise.
11429 * sysdeps/ia64/libc-tls.c: Likewise.
11430 * sysdeps/mach/hurd/fork.c: Likewise.
11431 * sysdeps/mach/hurd/i386/tls.h: Likewise.
11432 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
11433 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11434 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11435 * sysdeps/s390/libc-tls.c: Likewise.
11436 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11437 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11438 * sysdeps/sh/dl-machine.h: Likewise.
11439 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11440 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11441 * sysdeps/x86_64/dl-machine.h: Likewise.
11442
11443 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
11444 split out locking and parameter checking.
11445 (_dl_close): Call _dl_close_worker after locking and checking.
11446 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
11447 _dl_close.
11448 * elf/Makefile: Add rules to build and run tst-thrlock.
11449 * elf/tst-thrlock.c: New file.
11450
11451 [BZ #3426]
11452 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
11453 reality.
11454
11455 [BZ #3429]
11456 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
11457 we are sure we do not need it anymore for _dl_close. Also move
11458 the asserts inside the lock region.
11459 Patch mostly by Suzuki <suzuki@in.ibm.com>.
11460
11461 2006-10-27 Jakub Jelinek <jakub@redhat.com>
11462
11463 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
11464 argument.
11465 (_dl_lookup_symbol_x): Adjust caller.
11466
11467 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
11468 _ns_global_scope.
11469 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
11470
11471 * elf/dl-libc.c: Revert l_scope name changes.
11472 * elf/dl-load.c: Likewise.
11473 * elf/dl-object.c: Likewise.
11474 * elf/rtld.c: Likewise.
11475 * elf/dl-close.c (_dl_close): Likewise.
11476 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
11477 always use __rtld_mrlock_{change,done}. Always free old scope list
11478 here if not l_scope_mem.
11479 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
11480 change. Never free scope list here. Just __rtld_mrlock_lock before
11481 the lookup and __rtld_mrlock_unlock it after the lookup.
11482 * elf/dl-sym.c: Likewise.
11483 * include/link.h (struct r_scoperec): Remove.
11484 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
11485 with l_scope_mem and l_scoperec_lock with l_scope_lock.
11486
11487 2006-10-25 Ulrich Drepper <drepper@redhat.com>
11488
11489 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
11490
11491 2006-10-18 Ulrich Drepper <drepper@redhat.com>
11492
11493 * configure.in: Disable building profile libraries by default.
11494
11495 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11496
11497 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
11498 as signed longs, check for x_base + pos overflow.
11499 * sunrpc/Makefile (tests): Add tst-xdrmem2.
11500 * sunrpc/tst-xdrmem2.c: New test.
11501
11502 2006-10-18 Ulrich Drepper <drepper@redhat.com>
11503
11504 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
11505 _dl_lookup_symbol_x code.
11506
11507 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11508
11509 * elf/dl-runtime.c: Include sysdep-cancel.h.
11510 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
11511 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
11512 instead of catomic_* macros.
11513 * elf/dl-sym.c: Include sysdep-cancel.h.
11514 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
11515 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11516 * elf/dl-close.c: Include sysdep-cancel.h.
11517 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
11518 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11519 * elf/dl-open.c: Include sysdep-cancel.h.
11520 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
11521 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
11522
11523 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11524
11525 [BZ #3313]
11526 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
11527 fastbin rather than end of fastbin array.
11528
11529 2006-10-18 Ulrich Drepper <drepper@redhat.com>
11530
11531 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
11532 body macro.
11533 * sysdeps/x86_64/bits/atomic.h
11534 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
11535 (catomic_decrement): Use correct body macro.
11536
11537 2006-10-17 Jakub Jelinek <jakub@redhat.com>
11538
11539 * include/atomic.h: Add a unique prefix to all local variables
11540 in macros.
11541 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
11542
11543 2006-10-16 Ulrich Drepper <drepper@redhat.com>
11544
11545 [BZ #3369]
11546 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
11547 and 7.
11548
11549 2006-10-14 Ulrich Drepper <drepper@redhat.com>
11550
11551 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
11552
11553 2006-10-13 Ulrich Drepper <drepper@redhat.com>
11554
11555 [BZ #3313]
11556 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
11557 determine highest fast bin to consolidate, always look into all of
11558 them.
11559 (do_check_malloc_state): Only require for empty bins for large
11560 sizes in main arena.
11561
11562 * libio/stdio.h: Add more __wur attributes.
11563
11564 * elf/dl-minimal.c (realloc): Optimize last patch.
11565
11566 2006-10-12 Richard Sandiford <richard@codesourcery.com>
11567
11568 [BZ #3352]
11569 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
11570 and use memcpy() if it does.
11571
11572 2006-11-12 Andreas Jaeger <aj@suse.de>
11573
11574 [BZ #2510]
11575 * manual/search.texi (Hash Search Function): Clarify.
11576 (Array Search Function): Clarify.
11577
11578 2006-11-12 Joseph Myers <joseph@codesourcery.com>
11579
11580 [BZ #2830]
11581 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
11582 shifting.
11583 * math/atest-exp2.c (read_mpn_hex): Likewise.
11584 * math/atest-sincos.c (main): Likewise.
11585
11586 2006-10-11 Ulrich Drepper <drepper@redhat.com>
11587
11588 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
11589 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
11590 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
11591 version GLIBC_2.6.
11592 * Versions.def: Add GLIBC_2.6 for libc.
11593
11594 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
11595
11596 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
11597
11598 2006-10-11 Jakub Jelinek <jakub@redhat.com>
11599
11600 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
11601
11602 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
11603
11604 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
11605 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
11606
11607 2006-10-11 Ulrich Drepper <drepper@redhat.com>
11608
11609 * include/atomic.c: Define catomic_* operations.
11610 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
11611 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
11612 * malloc/memusage.c: Likewise.
11613 * gmon/mcount.c: Likewise.
11614 * elf/dl-close.c: Likewise.
11615 * elf/dl-open.c: Likewise.
11616 * elf/dl-profile.c: Likewise.
11617 * elf/dl-sym.c: Likewise.
11618 * elf/dl-runtime.c: Likewise.
11619 * elf/dl-fptr.c: Likewise.
11620 * resolv/res_libc.c: Likewise.
11621
11622 2006-10-10 Ulrich Drepper <drepper@redhat.com>
11623
11624 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
11625 components which lack them.
11626
11627 * nis/nis_subr.c (nis_getnames): Make sure that we always return
11628 at least one entry consisting of the parameter concatenated with
11629 the domain.
11630
11631 2006-10-10 Roland McGrath <roland@frob.com>
11632
11633 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
11634 * sysdeps/mach/hurd/futimes.c: Likewise.
11635 * sysdeps/mach/hurd/lutimes.c: Likewise.
11636
11637 2006-10-09 Ulrich Drepper <drepper@redhat.com>
11638 Jakub Jelinek <jakub@redhat.com>
11639
11640 Implement reference counting of scope records.
11641 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
11642 from the list in objects which remain. Always allocate new scope
11643 record.
11644 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
11645 don't resize, allocate a new one.
11646 * elf/dl-runtime.c: Update reference counters before using a scope
11647 array.
11648 * elf/dl-sym.c: Likewise.
11649 * elf/dl-libc.c: Adjust for l_scope name change.
11650 * elf/dl-load.c: Likewise.
11651 * elf/dl-object.c: Likewise.
11652 * elf/rtld.c: Likewise.
11653 * include/link.h: Include <rtld-lowlevel.h>. Define struct
11654 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
11655 Add l_scoperec_lock.
11656 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
11657 * sysdeps/generic/rtld-lowlevel.h: New file.
11658
11659 * include/atomic.h: Rename atomic_and to atomic_and_val and
11660 atomic_or to atomic_or_val. Define new macros atomic_and and
11661 atomic_or which do not return values.
11662 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
11663 Various cleanups.
11664 * sysdeps/i386/i486/bits/atomic.h: Likewise.
11665
11666 * po/sv.po: Update from translation team.
11667
11668 2006-10-07 Ulrich Drepper <drepper@redhat.com>
11669
11670 * Versions.def: Add GLIBC_2.6 to libpthread.
11671
11672 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
11673 (versioned_symbol): Likewise.
11674 (compat_symbol): Likewise.
11675
11676 * po/tr.po: Update from translation team.
11677
11678 2006-10-06 Ulrich Drepper <drepper@redhat.com>
11679
11680 * nis/Banner: Removed. It's been integral part forever and the
11681 author info is incomplete anyway.
11682 * libio/Banner: Likewise.
11683
11684 * nis/nis_table.c (nis_list): If __follow_path fails in the new
11685 code, make sure the nis_freeresult call doesn't crash and that the
11686 result is reported correctly.
11687
11688 2006-09-27 Jakub Jelinek <jakub@redhat.com>
11689
11690 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
11691 when callback is NULL.
11692
11693 * nis/Versions (libnss_nisplus): Add
11694 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
11695 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
11696 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
11697 _nss_create_tablename): Rename to...
11698 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
11699 ... these. No longer static.
11700 (internal_setgrent): Adjust users.
11701 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
11702 Don't use locking around _nss_grp_create_tablename call.
11703 * nis/nss_nisplus/nisplus-initgroups.c: New file.
11704
11705 2006-10-06 Ulrich Drepper <drepper@redhat.com>
11706
11707 * version.h (VERSION): Bump to 2.5.90 for new development tree.
11708
11709 2006-10-06 Andreas Jaeger <aj@suse.de>
11710
11711 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
11712
11713 2006-10-06 Ulrich Drepper <drepper@redhat.com>
11714
11715 * po/pl.po: Update from translation team.
11716
11717 * nscd/nscd.c (main): Fix typo in message.
11718 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
11719
11720 2006-10-02 Jakub Jelinek <jakub@redhat.com>
11721
11722 [BZ #3291]
11723 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
11724 errno.h, signal.h, unistd.h and sysdep-cancel.h.
11725 (__sigprocmask): Define.
11726
11727 2006-10-02 Ulrich Drepper <drepper@redhat.com>
11728
11729 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
11730 used.
11731
11732 2006-10-02 Jakub Jelinek <jakub@redhat.com>
11733
11734 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
11735 in oldtotal and newtotal calculation.
11736 * nscd/nscd-client.h (struct mapped_database): Add datasize
11737 field.
11738 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
11739 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
11740 increased.
11741 (__nscd_cache_search): Add checks to make sure we never reference
11742 data beyond the current mapping.
11743
11744 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
11745
11746 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
11747 variables const to avoid compiler warnings.
11748
11749 * io/fts.c (fts_close): Remove redundant checks.
11750 (fts_build): Likewise.
11751 (fts_palloc): Likewise.
11752
11753 * manual/message.texi (Advanced gettext functions,
11754 Using gettextized software): Fix typos.
11755
11756 2006-09-30 Ulrich Drepper <drepper@redhat.com>
11757
11758 * posix/glob.c (glob_in_dir): Add some comments and asserts to
11759 explain why there are no leaks.
11760
11761 2006-09-29 Ulrich Drepper <drepper@redhat.com>
11762
11763 * libio/wmemstream.c: Include <wchar.h>.
11764 * libio/bug-wmemstream1.c: Likewise.
11765 * libio/tst-wmemstream1.c: Likewise.
11766 * libio/tst-wmemstream2.c: Likewise.
11767
11768 * version.h (RELEASE): Bump to 2.5.
11769 * README: Regenerated.
11770
11771 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
11772
11773 [BZ #3273]
11774 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
11775 found no group members.
11776 Patch by Petr Baudis.
11777
11778 2006-09-29 Jakub Jelinek <jakub@redhat.com>
11779
11780 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
11781 assert bootstrap_map.l_tls_modid is zero.
11782 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
11783 if USE___THREAD.
11784
11785 2006-09-27 Ulrich Drepper <drepper@redhat.com>
11786
11787 * libio/stdio.h: Move open_wmemstream prototype to ...
11788 * wcsmbs/wchar.h: ... here.
11789
11790 2006-09-25 Jakub Jelinek <jakub@redhat.com>
11791
11792 [BZ #3252]
11793 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
11794 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
11795 __{,l}chown to handle the rest.
11796 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
11797 fchownat syscall and __ASSUME_32BITUIDS case inline, call
11798 __{,l}chown to handle the rest.
11799 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
11800 i386/fchownat.c.
11801 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
11802 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
11803
11804 [BZ #3253]
11805 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11806 time, rather allocate increasingly bigger arrays of pointers, if
11807 possible with alloca, if too large with malloc.
11808
11809 2006-09-24 Jakub Jelinek <jakub@redhat.com>
11810
11811 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
11812
11813 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
11814
11815 2006-09-24 Ulrich Drepper <drepper@redhat.com>
11816
11817 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
11818 home addresses.
11819 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
11820 IFA_F_HOMEADDRESS flag for interfaces.
11821 * include/ifaddrs.h (struct in6addrinfo): Define
11822 in6ai_homeaddress.
11823
11824 2006-09-21 Jakub Jelinek <jakub@redhat.com>
11825
11826 [BZ #3225]
11827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
11828 PTR_DEMANGLE3): Define.
11829 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
11830 PTR_DEMANGLE3): Likewise.
11831 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
11832 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
11833 Likewise.
11834 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11835
11836 2006-09-20 Jakub Jelinek <jakub@redhat.com>
11837
11838 * po/libc.pot: Regenerated.
11839 * po/be.po: Updated.
11840 * po/ca.po: Likewise.
11841 * po/cs.po: Likewise.
11842 * po/da.po: Likewise.
11843 * po/de.po: Likewise.
11844 * po/el.po: Likewise.
11845 * po/en_GB.po: Likewise.
11846 * po/es.po: Likewise.
11847 * po/fi.po: Likewise.
11848 * po/fr.po: Likewise.
11849 * po/gl.po: Likewise.
11850 * po/hr.po: Likewise.
11851 * po/hu.po: Likewise.
11852 * po/ja.po: Likewise.
11853 * po/ko.po: Likewise.
11854 * po/nb.po: Likewise.
11855 * po/nl.po: Likewise.
11856 * po/pl.po: Likewise.
11857 * po/pt_BR.po: Likewise.
11858 * po/ru.po: Likewise.
11859 * po/rw.po: Likewise.
11860 * po/sk.po: Likewise.
11861 * po/sv.po: Likewise.
11862 * po/tr.po: Likewise.
11863 * po/zh_CN.po: Likewise.
11864 * po/zh_TW.po: Likewise.
11865
11866 [BZ #3137]
11867 * iconv/iconv_prog.c (main): Fix spelling in error message.
11868 * iconv/iconvconfig.c (main): Likewise.
11869 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
11870 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
11871 * locale/programs/localedef.c (main): Likewise.
11872 * locale/programs/repertoire.c (repertoire_read): Likewise.
11873 * timezone/zdump.c (main): Likewise.
11874 * nscd/connections.c (handle_request): Fix spelling in log message.
11875 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
11876
11877 2006-09-20 Ulrich Drepper <drepper@redhat.com>
11878
11879 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
11880 interfaces.
11881
11882 2006-09-20 Andreas Jaeger <aj@suse.de>
11883
11884 * math/libm-test.inc (lrint_test_upward): Fix typo.
11885
11886 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
11887
11888 [BZ #2592]
11889 * math/libm-test.inc (lrint_test_tonearest): New function.
11890 (lrint_test_towardzero): New function.
11891 (lrint_test_downward): New function.
11892 (lrint_test_upward): New function.
11893 (main): Run these new tests.
11894 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
11895 of values near to 0.
11896 (two52): Use double not long double.
11897 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11898 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11899 (two23): Use float not double.
11900 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11901 (two23): Use float not double.
11902 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
11903 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11904 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
11905 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11906
11907 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
11908
11909 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
11910 Cast sp to unsigned long to avoid compiler warning.
11911 Use __makecontext_ret function instead of a trampoline on the stack.
11912 (__makecontext_ret): New function.
11913 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
11914
11915 2006-09-19 Jakub Jelinek <jakub@redhat.com>
11916
11917 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
11918 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
11919 bits.
11920
11921 2006-09-19 Ulrich Drepper <drepper@redhat.com>
11922
11923 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
11924 sure no reference to the unloaded map's search list remains in the
11925 dependency's scope.
11926
11927 2006-09-16 Jakub Jelinek <jakub@redhat.com>
11928
11929 * elf/Makefile: Add rules to build and run unload7 test.
11930 * elf/unload7.c: New test.
11931 * elf/unload7mod1.c: New file.
11932 * elf/unload7mod2.c: New file.
11933
11934 2006-09-18 Jakub Jelinek <jakub@redhat.com>
11935
11936 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
11937 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
11938 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11939 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
11940 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11941 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
11942 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
11943 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
11944 PTRACE_GETEVENTMSG): Likewise.
11945 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
11946 values.
11947
11948 2006-09-17 Mike Frysinger <vapier@gentoo.org>
11949
11950 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
11951 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
11952 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
11953 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
11954
11955 2006-09-16 Jakub Jelinek <jakub@redhat.com>
11956
11957 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
11958 write '\0' to the fd.
11959 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
11960 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
11961 Change regs to unsigned long pointer from unsigned int, fix fscr
11962 offset.
11963
11964 2006-09-14 Jakub Jelinek <jakub@redhat.com>
11965
11966 * io/Makefile (CFLAGS-fstatat.c): Set.
11967 (CFLAGS-fstatat64.c): Likewise.
11968 (CFLAGS-mknodat.c): Likewise.
11969
11970 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
11971 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11972 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
11973 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
11974
11975 2006-09-14 Jakub Jelinek <jakub@redhat.com>
11976 Steven Munroe <sjmunroe@us.ibm.com>
11977
11978 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
11979 names to the beginning. Rename "cell" to "cellbe".
11980 (_dl_powerpc_platforms): New.
11981 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
11982 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
11983 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
11984 (_DL_HWCAP_PLATFORM): Define to new mask.
11985 (_dl_platform_string, _dl_string_platform): New functions.
11986 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
11987 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
11988
11989 2006-09-12 Jakub Jelinek <jakub@redhat.com>
11990
11991 [BZ #2526]
11992 * README.libm: Fix a thinko in sqrt algorithm description.
11993
11994 [BZ #3143]
11995 * manual/string.texi (argz_delete): Fix prototype.
11996 Patch by <alpt@freaknet.org>.
11997
11998 2006-08-26 Joseph Myers <joseph@codesourcery.com>
11999
12000 [BZ #3138]
12001 * io/test-lfs.c (do_prepare): Give name_len type size_t.
12002 * io/tst-fcntl.c (do_prepare): Likewise.
12003 * posix/tst-exec.c (do_prepare): Likewise.
12004 * posix/tst-preadwrite.c (do_prepare): Likewise.
12005 * posix/tst-spawn.c (do_prepare): Likewise.
12006 * posix/tst-truncate.c (do_prepare): Likewise.
12007 * rt/tst-aio.c (do_prepare): Likewise.
12008 * rt/tst-aio64.c (do_prepare): Likewise.
12009 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
12010 size_t.
12011
12012 2006-09-09 Ulrich Drepper <drepper@redhat.com>
12013
12014 [BZ #2821]
12015 * time/mktime.c (guess_time_tm): Fix overflow detection.
12016 * time/Makefile (tests): Add bug-mktime1.
12017 * time/bug-mktime1.c: New file.
12018
12019 [BZ #3189, #3188]
12020 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
12021 (mremap): Likewise.
12022
12023 2006-09-07 Jakub Jelinek <jakub@redhat.com>
12024
12025 [BZ #1006]
12026 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12027 Ensure relocation doesn't clobber any bits outside of the
12028 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
12029 R_SPARC_HI22 and R_SPARC_H44.
12030
12031 [BZ #2775]
12032 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
12033 (long) (MINSIZE + nb - old_size) is positive.
12034
12035 * malloc/arena.c (grow_heap): When growing bail even if new_size
12036 is negative.
12037
12038 [BZ #3155]
12039 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
12040 stack below r1.
12041
12042 2006-09-06 Jakub Jelinek <jakub@redhat.com>
12043
12044 * posix/regex_internal.c (re_string_reconstruct): Handle
12045 offset < pstr->valid_raw_len && pstr->offsets_needed case.
12046 Ensure no bytes read before raw_mbs array. Pass a saved copy of
12047 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
12048 re_string_context_at.
12049 * posix/Makefile: Add rules to build and run bug-regex26 test.
12050 * posix/bug-regex26.c: New test.
12051
12052 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
12053 rather than col_sym_free. Move seqp declaration earlier.
12054
12055 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
12056
12057 2006-09-05 Jakub Jelinek <jakub@redhat.com>
12058
12059 * nscd/initgrcache.c (addinitgroupsX): Move any_success
12060 decl before first goto out.
12061
12062 2006-09-04 Jakub Jelinek <jakub@redhat.com>
12063
12064 * Makerules (shlib.lds): If have-hash-style, put .hash section
12065 at the end of the RO segment.
12066
12067 2006-09-04 Ulrich Drepper <drepper@redhat.com>
12068
12069 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
12070 style hash table format is used.
12071
12072 2006-09-04 Jakub Jelinek <jakub@redhat.com>
12073
12074 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
12075 randomization rather than before.
12076 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
12077
12078 2006-08-31 Jakub Jelinek <jakub@redhat.com>
12079
12080 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
12081
12082 * malloc/malloc.c (_int_malloc): Use full list insert and not
12083 shortcut which assumes the list is empty for large requests
12084 too.
12085
12086 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
12087
12088 2006-08-30 Jakub Jelinek <jakub@redhat.com>
12089
12090 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
12091 and offout arguments to the prototype.
12092 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
12093 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
12094 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
12095 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
12096 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
12097 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
12098 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
12099 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
12100
12101 2006-08-28 Ulrich Drepper <drepper@redhat.com>
12102
12103 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
12104
12105 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
12106 dlopen parameters.
12107
12108 2006-08-28 Jakub Jelinek <jakub@redhat.com>
12109
12110 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
12111 only if herrno is NETDB_INTERNAL. Handle errors other than
12112 ERANGE outside of the loops, handle TRY_AGAIN.
12113
12114 * locale/programs/ld-ctype.c (translit_flatten): Issue error
12115 if other's ctype category was missing.
12116 * locale/programs/ld-collate.c (collate_read): Return if
12117 copy_locale's collate category is missing.
12118
12119 2006-08-27 Ulrich Drepper <drepper@redhat.com>
12120
12121 [BZ #2684]
12122 * malloc/malloc.c (public_rEALLOc): Try harder by using other
12123 arenas if allocation failed.
12124 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
12125
12126 2006-08-26 Ulrich Drepper <drepper@redhat.com>
12127
12128 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
12129 waste bins[0..1].
12130 (malloc_state): Reduce bins size by 2.
12131 (_int_malloc): Fix test for large enough buffer for early termination.
12132 When no unsorted block matches perfectly and an exiting block has
12133 to be split, use full list insert and not shortcut which assumes
12134 the list is empty.
12135
12136 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
12137 failure.
12138
12139 2006-08-24 Ulrich Drepper <drepper@redhat.com>
12140
12141 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
12142 do anything.
12143
12144 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
12145 symbol require exact match (these are PLTs).
12146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12147 (_dl_ppc64_addr_sym_match): Likewise.
12148
12149 [BZ #2683]
12150 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
12151 If symbol has a value use it.
12152 * elf/tst-dladdr1.c: New file.
12153 * elf/Makefile: Add rules to build and run tst-addr1.
12154
12155 2006-08-24 Jakub Jelinek <jakub@redhat.com>
12156
12157 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
12158 keeps failing and heap growth or new heap creation isn't
12159 successful either.
12160 * malloc/tst-malloc.c (main): Add new tests.
12161
12162 2006-08-24 Ulrich Drepper <drepper@redhat.com>
12163
12164 [BZ #2734]
12165 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
12166 as in the x86-64 code to use bswap.
12167
12168 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
12169
12170 [BZ #2680]
12171 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
12172 __USE_UNIX98.
12173 * posix/bits/unistd.h: Likewise.
12174
12175 2006-05-15 Mike Frysinger <vapier@gentoo.org>
12176
12177 [BZ #2751]
12178 * string/strchr.c: Add cast to avoid warning.
12179
12180 2006-08-21 Ulrich Drepper <drepper@redhat.com>
12181
12182 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
12183 platforms define as 512K. For 64-bit platforms as 32MB. The lower
12184 limit is needed to avoid the exploding of the address space
12185 requirement for secondary heaps.
12186 * malloc/arena.c (HEAP_MAX_SIZE): Define using
12187 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
12188
12189 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
12190
12191 [BZ #3018]
12192 * Makerules (depfiles): Handle extra-test-objs the same as
12193 extra-objs.
12194 (common-mostlyclean): Likewise.
12195 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
12196 instead.
12197 * elf/Makefile (extra-objs): Likewise.
12198 * stdlib/Makefile (extra-objs): Likewise.
12199
12200 2006-08-14 Eric Blake <ebb9@byu.net>
12201
12202 [BZ #3044]
12203 * misc/error.h: Assume C89 or better.
12204 * misc/error.c: Likewise.
12205
12206 2006-08-21 Ulrich Drepper <drepper@redhat.com>
12207
12208 [BZ #3040]
12209 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
12210 __ASSUME_ATFCTS is defined.
12211
12212 2006-08-19 Ulrich Drepper <drepper@redhat.com>
12213
12214 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
12215 to sort in each call.
12216
12217 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
12218 is empty simply return and use next service.
12219 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
12220
12221 * locale/programs/charmap.c (charmap_read): Add new parameter. It
12222 tells us when not finding a charmap file is an error.
12223 * locale/programs/charmap.h: Adjust charmap_read prototype.
12224 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
12225 cannot find a charmap.
12226 * locale/programs/localedef.c (main): Adjust charmap_read call.
12227
12228 2006-08-15 Jakub Jelinek <jakub@redhat.com>
12229
12230 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
12231 sysdeps/posix/pause.c implementation instead.
12232
12233 2006-08-09 Jakub Jelinek <jakub@redhat.com>
12234
12235 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
12236 to EPERM.
12237
12238 2006-08-13 Andreas Schwab <schwab@suse.de>
12239
12240 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
12241 Don't clobber caller's LRSAVE.
12242 (_dl_prof_resolve): Likewise.
12243
12244 2006-08-14 Ulrich Drepper <drepper@redhat.com>
12245
12246 [BZ #1996]
12247 * libio/memstream.c (open_memstream): Allocate initial buffer with
12248 calloc.
12249 * libio/wmemstream.c (open_wmemstream): Likewise.
12250 * libio/strops.c: Pretty printing.
12251 (_IO_str_overflow): Clear uninitialized part of the new buffer.
12252 (enlarge_userbuf): New function.
12253 (_IO_str_seekoff): Call it if seek position is larger than current
12254 buffer.
12255 * libio/wstrops.c: Likewise.
12256 * libio/vasprintf.c: Add comment as to why we do not have to use
12257 calloc instead of malloc to allocate initial buffer.
12258 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
12259 * libio/bug-memstream1.c: New file.
12260 * libio/bug-wmemstream1.c: New file.
12261
12262 2006-08-13 Ulrich Drepper <drepper@redhat.com>
12263
12264 * libio/wstrops.c: Remove dead macro definitions and comments.
12265 * libio/strops.c: Likewise.
12266
12267 [BZ #2764]
12268 * login/utmpname.c (__utmpname): Remove unnecessary test.
12269
12270 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
12271
12272 [BZ #2832]
12273 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
12274 0s from integers.
12275
12276 2006-08-13 Ulrich Drepper <drepper@redhat.com>
12277
12278 [BZ #2987]
12279 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
12280 for CPU clocks.
12281 * sysdeps/unix/clock_settime.c: Add support for platform-specific
12282 setting of CPU clocks.
12283
12284 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
12285
12286 [BZ #2841]
12287 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
12288 since C99 requires the result to promote to 'int' when uint_least8_t
12289 and uint_least16_t promote to 'int'.
12290
12291 2006-08-12 Ulrich Drepper <drepper@redhat.com>
12292
12293 [BZ #3013]
12294 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
12295 lenght of one output field, correct bitmask creation.
12296 * locale/programs/ld-time.c: Add alignment.
12297
12298 [BZ #2997]
12299 * misc/error.c: Add space between program name and message if file
12300 name is missing.
12301
12302 2006-08-03 Eric Blake <ebb9@byu.net>
12303
12304 [BZ #2998]
12305 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
12306
12307 2006-08-09 Ulrich Drepper <drepper@redhat.com>
12308
12309 * malloc/memusagestat.c: Silence warnings.
12310
12311 * malloc/malloc.c: Dynamically size mmap treshold if the program
12312 frees mmaped blocks.
12313 Patch by Valerie Henson and Arjan van de Ven.
12314
12315 2006-08-08 Jakub Jelinek <jakub@redhat.com>
12316
12317 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
12318 __USE_GNU.
12319
12320 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
12321 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
12322 (DEF): Don't put the var into .gnu.linkonce.r.* section.
12323 Only provide var definitions in strtol_l (or for *ull*
12324 in strtoll_l).
12325
12326 * stdio-common/bug16.c (tests): New array.
12327 (do_tests): Allow the first hexadecimal digit
12328 to be 1, 2, 4 or 8. Do 3 additional tests.
12329
12330 * sysdeps/s390/fpu/libm-test-ulps: Update.
12331
12332 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
12333 fchownat syscall if available.
12334 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
12335 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
12336 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
12337
12338 2006-08-07 Ulrich Drepper <drepper@redhat.com>
12339
12340 * nis/nis_xdr.c: Avoid some function calls.
12341
12342 2006-08-07 Jakub Jelinek <jakub@redhat.com>
12343 Ulrich Drepper <drepper@redhat.com>
12344
12345 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
12346 short cut if only one name component is stripped away.
12347
12348 2006-08-07 Ulrich Drepper <drepper@redhat.com>
12349
12350 * nis/nis_call.c: Minor cleanups throughout.
12351 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
12352 (first_shoot): Add search_parent_first parameter. Only if it is set
12353 search parent server first.
12354 If directory for table found through cold start cache is not the same
12355 as referenced in the cache, don't use it.
12356 (__nisfind_server): Take additional parameter. Pass it on to
12357 first_shoot.
12358 (__prepare_niscall): Adjust __nisfind_server call.
12359 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
12360 * nis/nis_table.c: Adjust __nisfind_server call.
12361 * nis/nis_lookup.c: Likewise.
12362 (nis_lookup): Don't loop endlessly if name is reduced to ".".
12363
12364 2006-08-03 Ulrich Drepper <drepper@redhat.com>
12365
12366 [BZ #2182]
12367 * math/s_cacosh.c: Return values from positive branch.
12368 * math/s_cacoshf.c: Likewise.
12369 * math/s_cacoshl.c: Likewise.
12370
12371 [BZ #2883]
12372 * sysvipc/sys/msg.h: Change return value to ssize_t.
12373 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
12374 * sysvipc/msgrcv.c: Likewise.
12375 * include/sys/msg.h: Likewise.
12376
12377 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
12378 test introduced in patch for bz #661.
12379 (getgrouplist): Simplify code a bit. Don't allocate one additional
12380 element for NEWGROUPS.
12381
12382 [BZ #2908]
12383 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
12384 'f', use '1' as leading digit not '\1'.
12385 * stdio-common/Makefile (tests): Add bug16.
12386 * stdio-common/bug16.c: New file.
12387
12388 [BZ #2914]
12389 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
12390 and don't try to open it. The patch introducing the macro
12391 contained a bug and used the same file name as the new file
12392 instead of using /var/adm/hostid. Nobody complaint so I'm taking
12393 this out completely.
12394
12395 [BZ #2926]
12396 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
12397 Patch by Jerry James <Jerry.James@usu.edu>.
12398
12399 * rt/Makefile (tests): Add tst-clock2.
12400 * rt/tst-clock2.c: New file.
12401
12402 [BZ #2978]
12403 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
12404 function and its parameters and pass it to new thread.
12405 (__gai_notify): Add support for alternative waiting for completion.
12406 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
12407 waiting for completion.
12408 * resolv/getaddrinfo_a.c: Likewise.
12409 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
12410 waiting for completion is used.
12411 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
12412 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
12413 * resolv/gai_error.c: Likewise.
12414 * resolv/gai_sigqueue.c: Likewise.
12415
12416 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
12417
12418 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
12419 errno to EBADF and return MACH_PORT_NULL.
12420
12421 2006-06-23 Joseph Myers <joseph@codesourcery.com>
12422
12423 [BZ #2980]
12424 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
12425
12426 2006-08-02 Ulrich Drepper <drepper@redhat.com>
12427
12428 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
12429 walk them instead of the symbol table.
12430
12431 2006-08-01 Ulrich Drepper <drepper@redhat.com>
12432
12433 [BZ #2098]
12434 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
12435 status of NSS calls, not the number of returned entries.
12436
12437 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
12438 request_key, keyctl.
12439
12440 2006-07-31 Ulrich Drepper <drepper@redhat.com>
12441
12442 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
12443
12444 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
12445
12446 * elf/tst-auditmod1.c: Fix typo in #error.
12447
12448 2006-07-31 Ulrich Drepper <drepper@redhat.com>
12449
12450 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
12451
12452 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
12453
12454 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
12455
12456 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
12457 that the directory is empty even on non-POSIX filesystems.
12458
12459 2006-07-31 Ulrich Drepper <drepper@redhat.com>
12460
12461 * elf/dl-open.c (dl_open_worker): Add branch prediction.
12462
12463 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
12464 the backend NSS module. If backend setgrent call failed, don't have
12465 internal_setgrent fail. Just remember this until it is needed.
12466 * nis/nss_compat/compat-pwd.c: Likewise.
12467 * nis/nss_compat/compat-spwd.c: Likewise.
12468
12469 2006-07-30 Roland McGrath <roland@redhat.com>
12470
12471 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
12472 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
12473 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
12474 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
12475
12476 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
12477 (nanosleep_not_cancel): New macro.
12478 (sigsuspend_not_cancel): new macro.
12479 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
12480 (do_sigsuspend): Define as inline.
12481 (__sigsuspend): Always use do_sigsuspend.
12482 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
12483 * include/signal.h: Declare __sigsuspend_nocancel.
12484 * sysdeps/posix/pause.c
12485 [! NO_CANCELLATION] (__pause_nocancel): New function.
12486
12487 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
12488 * include/time.h (__nanosleep_nocancel): Likewise.
12489
12490 2006-07-30 Ulrich Drepper <drepper@redhat.com>
12491
12492 * locale/programs/localedef.c (add_to_readlist): Rename local
12493 variables to avoid confusion.
12494
12495 * locale/programs/charmap.c (charmap_read): Emit error message if
12496 charmap couldn't be found or read.
12497
12498 2006-07-28 Ulrich Drepper <drepper@redhat.com>
12499
12500 * sysdeps/unix/sysv/linux/kernel-features.h: Define
12501 __ASSUME_FUTEX_LOCK_PI.
12502 * include/time.h: Declare __nanosleep_nocancel.
12503 * include/unistd.h: Declare __pause_nocancel.
12504
12505 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
12506 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
12507 get the __stack_chk_fail_local definition when it's needed.
12508
12509 2006-07-26 Ulrich Drepper <drepper@redhat.com>
12510
12511 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
12512 * dlfcn/bug-atexit3.c: New file.
12513 * dlfcn/bug-atexit3-lib.cc: New file.
12514
12515 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
12516 used when the namespace is not the base namespace.
12517
12518 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
12519
12520 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
12521 (__new_exitfn): Bump it in every successful call.
12522 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
12523 more exit handlers, call them right away.
12524 * stdlib/exit.h: Declare __new_exitfn_called.
12525
12526 2006-07-25 Ulrich Drepper <drepper@redhat.com>
12527
12528 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
12529 calling registered handler.
12530
12531 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
12532 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
12533 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
12534 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
12535 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12536 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
12537 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
12538 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
12539
12540 2006-07-10 Ulrich Drepper <drepper@redhat.com>
12541
12542 * elf/dl-lookup.c (dl_new_hash): New functions.
12543 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
12544 value here. Compute new-style hash value. Pass new hash value
12545 and reference to variable with the old value to do_lookup_x.
12546 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
12547 old-style hash table.
12548 (_dl_debug_bindings): Pass new hash value and reference to variable
12549 with the old value to do_lookup_x.
12550 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
12551 new-style hash value and change old-style hash value parameter to
12552 be a reference. Reoganize functions to determine whether
12553 new-style hash table is available. Only fall back on old-style
12554 table. If old-style hash value is needed, compute it here.
12555 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
12556 entry.
12557 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
12558 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
12559 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
12560 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
12561 * Makeconfig: If linker supports --hash-style option add it to all
12562 linker command lines to build DSOs.
12563 * config.make.in: Define have-hash-style.
12564 * configure.in: Test whether linker supports --hash-style option.
12565
12566 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
12567 * sysdeps/generic/ldsodefs.h: Adjust prototype.
12568
12569 2006-06-27 Ulrich Drepper <drepper@redhat.com>
12570
12571 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
12572 auditing.
12573
12574 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
12575 RPATH of main map twice.
12576
12577 2006-06-22 Ulrich Drepper <drepper@redhat.com>
12578
12579 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
12580 look further, return original strings.
12581 (_nl_find_msg): Do not return found translation if the conversion
12582 failed. Either signal the string is unusable or that something went
12583 wrong and the original should be used.
12584
12585 2006-06-21 Ulrich Drepper <drepper@redhat.com>
12586
12587 * string/_strerror.c (__strerror_r): Add __builtin_expect.
12588
12589 2006-06-14 Jakub Jelinek <jakub@redhat.com>
12590
12591 [BZ #2766]
12592 * misc/insremque.c (insque): Handle prev == NULL.
12593 * misc/Makefile (tests): Add tst-insremque.
12594 * misc/tst-insremque.c: New test.
12595
12596 2006-06-17 Ulrich Drepper <drepper@redhat.com>
12597
12598 [BZ #2792]
12599 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
12600 conflict with DL_DST_REQUIRED.
12601
12602 2006-06-16 Ulrich Drepper <drepper@redhat.com>
12603
12604 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
12605 match what Solaris does.
12606
12607 2006-06-04 Ulrich Drepper <drepper@redhat.com>
12608
12609 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
12610 local_setegid instead of seteuid and setegid.
12611 * sysdeps/generic/local-setxid.h: New file.
12612 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
12613
12614 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
12615
12616 * string/Makefile (tests): Add bug-envz1.
12617 * string/bug-envz1.c: New file.
12618
12619 2006-06-02 Jakub Jelinek <jakub@redhat.com>
12620
12621 * posix/regex_internal.c (re_string_skip_chars): If no character has
12622 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
12623 to the byte which couldn't be converted.
12624 (re_string_reconstruct): Don't clear valid_raw_len before calling
12625 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
12626 tip_context using re_string_context_at.
12627 * posix/Makefile: Add rules to build and run bug-regex25 test.
12628 * posix/bug-regex25.c: New test.
12629
12630 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
12631
12632 [BZ #2703]
12633 * string/envz.c (envz_strip): Correct erroneously reversed src
12634 and dest parameters to memmove() invocation.
12635
12636 2006-05-30 Jakub Jelinek <jakub@redhat.com>
12637
12638 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
12639 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
12640 to make sure the database has been already invalidated.
12641 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
12642 after the cache has been invalidated. Use pthread_mutex_lock rather
12643 than pthread_mutex_trylock if fd != -1.
12644 * nscd/connections.c (invalidate_cache): Add fd argument, write
12645 response to fd if not calling prune_cache, pass fd to prune_cache.
12646 (handle_request): Adjust invalidate_cache caller.
12647 (nscd_run): Pass -1 as fd to prune_cache.
12648
12649 2006-05-30 Ulrich Drepper <drepper@redhat.com>
12650
12651 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
12652 the correct place.
12653
12654 2006-05-29 Ulrich Drepper <drepper@redhat.com>
12655
12656 * nscd/nscd.h (struct database_dyn): Add prunelock field.
12657 * nscd/cache.c (prune_cache): Take prunelock before starting the
12658 work. Just return in case it is already taken.
12659 * nscd/connections.c (dbs): Initialize .prunelock.
12660
12661 2006-05-25 Ulrich Drepper <drepper@redhat.com>
12662
12663 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
12664 copying. No need to allocate new array for group members. Just
12665 move the pointers and update the size.
12666
12667 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
12668 Avoid memory leak in case realloc fails. Simplification for
12669 better code generation.
12670
12671 Avoid deprecation warning because of libc_hidden_proto for
12672 inet6_option_alloc.
12673 * inet/inet6_option.c (option_alloc): Renamed from
12674 inet6_option_alloc. Made static.
12675 (inet6_option_alloc): Now a simple wrapper around option_alloc.
12676 (inet6_option_append): Call option_alloc.
12677 * include/netinet/in.h: Remove libc_hidden_proto for
12678 inet6_option_alloc.
12679
12680 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
12681 for cleanup when cb!=NULL [Coverity CID 233].
12682
12683 2006-05-24 Ulrich Drepper <drepper@redhat.com>
12684
12685 [BZ #2693]
12686 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
12687 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
12688 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
12689 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
12690 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
12691 and inet6_rth_getaddr.
12692 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
12693 array.
12694 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
12695 Mark inet6_option_* interfaces as deprecated.
12696 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
12697 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
12698 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
12699 inet6_rth_segments, and inet6_rth_getaddr.
12700 * inet/inet6_opt.c: New file.
12701 * inet/inet6_rth.c: New file.
12702
12703 * inet/netinet/icmp6.h: Pretty printing.
12704
12705 [BZ #2683]
12706 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
12707
12708 2006-05-23 Ulrich Drepper <drepper@redhat.com>
12709
12710 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
12711 doing it all here. When server does not know the answer do not
12712 fail immediate, try parent first.
12713
12714 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
12715 overflow test.
12716
12717 2006-05-20 Ulrich Drepper <drepper@redhat.com>
12718
12719 * nis/nis_call.c (__prepare_niscall): New function. Split out
12720 from __do_niscall.
12721 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
12722 and exported.
12723 (__follow_path): New function. Split out from nis_list.
12724 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
12725 _xdr_nis_result.
12726 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
12727 _xdr_nis_result.
12728 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
12729 and __follow_path.
12730 * nis/Versions: Export __prepare_niscall, __create_ib_request,
12731 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
12732 from libnsl for version GLIBC_PRIVATE.
12733 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
12734 Remove entry parameter from _nss_nisplus_parse_pwent and
12735 _nss_nisplus_parse_grent.
12736 * nis/nss_nisplus/nisplus-parser.c: Likewise.
12737 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
12738 again. Rewrite getpwent handling to not use nis_first_entry and
12739 nis_next_entry. Roll out own niscall handling.
12740 * nis/nss_nisplus/nisplus-grp.c: Likewise.
12741
12742 * sunrpc/xdr_rec.c: Fix typo in comment.
12743
12744 2006-05-19 Ulrich Drepper <drepper@redhat.com>
12745
12746 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
12747 handling.
12748
12749 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
12750 to allocate memory for my_pollfd. Better initialization of
12751 cb_is_running. Use TEMP_FAILURE_RETRY.
12752
12753 * malloc/memusage.sh (memusageso): Add quotes.
12754 (memusagestat): Likewise.
12755 * debug/xtrace.sh (pcprofileso): Likewise.
12756 (pcprofiledump): Likewise.
12757 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
12758 replacement.
12759 * malloc/Makefile ($(objpfx)memusage): Likewise.
12760
12761 * nis/nis_callback.c (__nis_create_callback): Calls to
12762 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
12763 asprintf call fails.
12764
12765 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
12766 no uninitialized memory is passed to sendto.
12767
12768 2006-05-18 Ulrich Drepper <drepper@redhat.com>
12769
12770 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
12771 of snprintf+strdup. Handle OOM.
12772 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
12773 cb->serv together. Remove now obsolete free calls.
12774 (__nis_destroy_callback): Remove now obsolete free call.
12775
12776 2006-05-18 David Woodhouse <dwmw2@redhat.com>
12777
12778 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
12779 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
12780 and ULA respectively). Set precedence for IPv4 address to 10 as
12781 defined in RFC3484 for preferring IPv6.
12782 * posix/gai.conf: Update to match the new default tables.
12783
12784 2006-05-18 Jakub Jelinek <jakub@redhat.com>
12785
12786 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
12787 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
12788 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
12789 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
12790
12791 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
12792 Removed.
12793 (init_nss_interface): Remove initialization of these variables.
12794
12795 2006-05-18 Ulrich Drepper <drepper@redhat.com>
12796
12797 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
12798 nis_free_directory forward to avoid duplication.
12799
12800 2006-05-17 Ulrich Drepper <drepper@redhat.com>
12801
12802 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
12803 rec_dirsearch returning NULL.
12804 (first_shoot): Handle __nis_finddirectory returning NULL.
12805 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
12806
12807 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
12808 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
12809
12810 2006-05-17 Jakub Jelinek <jakub@redhat.com>
12811
12812 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
12813 pid changed.
12814
12815 2006-05-15 Ulrich Drepper <drepper@redhat.com>
12816
12817 * include/rpc/pmap_prot.h: Mark all functions as hidden.
12818
12819 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
12820 * nscd/nscd_getgr_r.c: Likewise.
12821
12822 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
12823
12824 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
12825 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
12826
12827 * stdlib/longlong.h (__clz_tab): Mark as hidden.
12828
12829 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
12830
12831 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
12832
12833 * include/rpc/auth.h: Mark xdr_des_block_internal and
12834 xdr_opaque_auth_internal as hidden.
12835
12836 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
12837 hidden.
12838
12839 * include/rpc/xdr.h: Mark all _internal functions as hidden.
12840
12841 * misc/getusershell.c (okshells): Don't use static initializers,
12842 do it dynamically.
12843
12844 * stdlib/fmtmsg.c (keywords): Change type of len element to
12845 uint32_t to not waste space on 64bit machines.
12846
12847 * locale/setlocale.c: Change _nl_category_names into a string.
12848 Add new _nl_category_name_idxs. Change all users.
12849 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
12850 Declare _nl_category_name_idxs.
12851 * locale/findlocale.c: Adjust for _nl_category_names change.
12852 * locale/loadlocale.c: Likewise.
12853 * locale/newlocale.c: Likewise.
12854 * intl/dcigettext.c: Likewise.
12855
12856 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
12857 (add_alias2): ...here. New function.
12858 (__gconv_read_conf): Simplify builtin alias handling.
12859 (builtin_aliases): Convert to string to avoid relocations.
12860 * iconv/gconv_builtin.h: Add comment about correct formatting.
12861
12862 2006-05-15 Jakub Jelinek <jakub@redhat.com>
12863
12864 * resolv/res_debug.c (loc_ntoa): Make error const.
12865
12866 2006-05-14 Andreas Schwab <schwab@suse.de>
12867
12868 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
12869
12870 2006-05-12 Jakub Jelinek <jakub@redhat.com>
12871
12872 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
12873 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
12874 sizeof (cpu_set_t).
12875
12876 2006-05-11 Ulrich Drepper <drepper@redhat.com>
12877
12878 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
12879
12880 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
12881
12882 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
12883 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
12884
12885 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
12886 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
12887
12888 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
12889 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
12890 xdr_cback_data.
12891
12892 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
12893 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12894 xdr_ypupdate_args.
12895
12896 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
12897 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
12898
12899 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
12900 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
12901
12902 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
12903 * include/rpcsvc/nis_callback.h: New file.
12904
12905 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
12906 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
12907
12908 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12909 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12910
12911 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
12912 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
12913
12914 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
12915 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
12916
12917 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
12918 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
12919 xdr_ypdelete_args.
12920
12921 * nis/nis_xdr.h: Mark all functions as hidden. Remove
12922 __BEGIN_DECLS and __END_DECLS, the header is not installed.
12923
12924 * nis/nis_error.c: Remove table of strings. Use position
12925 independent mechanism.
12926 * nis/nis_error.h: New file.
12927
12928 2006-05-11 Jakub Jelinek <jakub@redhat.com>
12929
12930 * locale/programs/ld-time.c (time_finish): If wide era name or
12931 format aren't provided, set both wname and wformat to L"".
12932
12933 2006-05-10 Ulrich Drepper <drepper@redhat.com>
12934
12935 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
12936 results if the call was succesful.
12937
12938 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
12939
12940 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
12941 as hidden.
12942
12943 2006-05-10 Jakub Jelinek <jakub@redhat.com>
12944
12945 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
12946
12947 2006-05-10 Ulrich Drepper <drepper@redhat.com>
12948
12949 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
12950 caller makes sure this is not the case.
12951 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
12952
12953 2006-05-09 Ulrich Drepper <drepper@redhat.com>
12954
12955 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
12956 calls.
12957
12958 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
12959 [Coverity CID 229, 230]
12960
12961 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
12962 DGETTEXT calls.
12963 (hol_help): Likewise. [Coverity CID 226, 227]
12964
12965 * string/argz-replace.c (__argz_replace): Unconditionally call
12966 free on SRC. [Coverity CID 225]
12967
12968 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
12969 the return value of __nis_default_owner and __nis_default_group,
12970 it has been especially allocated. [Coverity CID 224]
12971
12972 * nis/nis_defaults.c (searchXYX): New functions. Used by both
12973 searchgroup and searchowner. Significantly simplified.
12974 (__nis_default_owner): Remove duplication. Do not locally copy the
12975 string before duplicating it.
12976 (__nis_default_group): Likewise.
12977
12978 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
12979 we must clear the variable before calling __nisfind_server.
12980
12981 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
12982 nis_getnames. [Coverity CID 223]
12983
12984 * locale/programs/locfile.c (locfile_read): Use alloca instead of
12985 xmalloc to allocate local repertoire name. [Coverity CID 222]
12986
12987 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
12988 allocate memory for the input to add_bytes. [Coverity CID 221]
12989
12990 * posix/wordexp.c (w_addword): Free word if realloc fails and it
12991 was allocated here. [Coverity CID 219, 220]
12992
12993 * posix/getconf.c (print_all): Free confstr data after printing.
12994 [Coverity CID 218]
12995
12996 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
12997 list allocation fails. [Coverity CID 215]
12998
12999 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
13000 [Coverity CID 213]
13001
13002 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
13003 string is NULL. [Coverity CID 212]
13004 * argp/Makefile: Add rules to build and run bug-argp1.
13005 * argp/bug-argp1.c: New file.
13006
13007 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
13008 end of string.
13009 * stdlib/canonicalize.c (__realpath): Likewise.
13010
13011 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
13012 pointer. [Coverity CID 206]
13013
13014 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
13015 in statically linked code.
13016 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
13017 statically built code, be prepared to have no link map.
13018 [Coverity CID 205]
13019
13020 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
13021 dgettext calls. [Coverity CID 204]
13022
13023 * argp/argp-help.c (struct uparams): Remove valid member. Change
13024 the one user.
13025 (uparam_names): Reduce size. Avoid relative relocations.
13026 Moved to read-only segment.
13027 (fill_in_uparams): Update for new layout.
13028
13029 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
13030 assumed to always be != NULL. [Coverity CID 202]
13031
13032 * argp/argp-help.c (hol_entry_help): Remove some dead code
13033 [Coverity CID 200].
13034
13035 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
13036 away a few more unconditional yperr2nss calls.
13037 (_nss_nis_getservbyname_r): Likewise.
13038
13039 2006-05-06 Ulrich Drepper <drepper@redhat.com>
13040
13041 * sysdeps/generic/ldsodefs.h: Remove support for non-core
13042 architectures.
13043
13044 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
13045 that unused memory passed to sendto is nevertheless initialized.
13046
13047 [BZ #2499]
13048 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
13049 possibly unaligned memory accesses.
13050
13051 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
13052 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
13053 and __putlong respectively. Correct buffer overflow check for
13054 NS_NOTIFY_OP.
13055
13056 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
13057
13058 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
13059 (send_dg): Rewrite error handling to be more compact and avoid
13060 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
13061
13062 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
13063
13064 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
13065 instead of ns_get16.
13066 (res_queriesmatch): Likewise. Minor optimization.
13067
13068 [BZ #2499]
13069 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
13070 __libc_res_nsend might reallocate the buffer for the answer. In
13071 this case we have to reload the HP pointer.
13072
13073 2006-05-05 Ulrich Drepper <drepper@redhat.com>
13074
13075 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
13076 some branch prediction hints.
13077
13078 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
13079 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13080 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13081 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13082 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13083 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13084 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
13085 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13086
13087 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
13088
13089 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
13090 by a GOT relocation to make Scrt1.o position independent.
13091 * sysdeps/s390/s390-64/elf/start.S: Likewise.
13092
13093 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
13094 six system call parameters.
13095 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
13096
13097 2006-05-05 Ulrich Drepper <drepper@redhat.com>
13098
13099 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
13100 malloc&bzero.
13101
13102 * sunrpc/svc_udp.c (BZERO): Remove definition.
13103 (CALLOC): Define.
13104 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
13105
13106 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
13107 (des_SPtrans): Use uint32_t type.
13108 (des_skb): Likewise.
13109
13110 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
13111
13112 2006-05-05 Jakub Jelinek <jakub@redhat.com>
13113
13114 [BZ #2509]
13115 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
13116 on 32-bit arches.
13117
13118 2006-05-05 Ulrich Drepper <drepper@redhat.com>
13119
13120 * locale/programs/ld-address.c (address_finish): Fix one more
13121 place where the iso639 array might be accessed beyond the limits.
13122
13123 2006-05-04 Ulrich Drepper <drepper@redhat.com>
13124
13125 * nis/nis_table.c (nis_list): Avoid clearing res twice before
13126 filling it for the first time.
13127
13128 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
13129 Adjust all callers.
13130 Free res object content before returning.
13131
13132 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
13133
13134 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
13135 client->cl_auth.
13136
13137 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
13138 cleanup for initial thread, just the free call on TVP.
13139
13140 * nscd/gai.c (__getline): Define.
13141
13142
13143 See ChangeLog.16 for earlier changes.