1 2007-07-18 Jakub Jelinek <jakub@redhat.com>
3 * include/features.h (__USE_ISOC95): New define.
4 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6 for -std=iso9899:199409.
7 * CONFORMANCE: Remove comments about unsupported AMD1.
9 2007-07-17 Jakub Jelinek <jakub@redhat.com>
11 * sysdeps/ia64/sched_cpucount.c: New file.
12 * sysdeps/powerpc/sched_cpucount.c: New file.
14 2007-07-17 Jakub Jelinek <jakub@redhat.com>
16 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
17 __BEGIN_DECLS/__END_DECLS around the prototype.
18 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
19 pointer to const cpu_set_t.
21 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
22 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
23 __need_size_t and include stddef.h.
24 * sysvipc/sys/msg.h: Likewise.
25 * posix/sched.h: Likewise.
26 * hurd/hurd/signal.h (__need_size_t): Define.
28 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
29 neither does signal.h in pedantic ISO C namespaces. stdio.h
30 no longer defines wint_t or wchar_t.
32 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
33 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
34 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
35 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
36 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
37 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
38 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
39 * debug/printf_chk.c (__printf_chk): Likewise.
40 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
41 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
43 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
46 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
47 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
49 2007-07-16 Jakub Jelinek <jakub@redhat.com>
52 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
53 * malloc/malloc.h (realloc): Likewise.
55 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
56 if one of proc_file_chain streams has that fileno.
57 * stdio-common/Makefile (tests): Add tst-popen2.
58 * stdio-common/tst-popen2.c: New test.
60 2007-07-14 Jakub Jelinek <jakub@redhat.com>
62 * elf/ldconfig.c: Allow GPLv2 or any later version.
63 * elf/readlib.c: Likewise.
64 * elf/chroot_canon.c: Likewise.
65 * elf/cache.c: Likewise.
66 * nscd/mem.c: Likewise.
67 * nscd/getpwuid_r.c: Likewise.
68 * nscd/grpcache.c: Likewise.
69 * nscd/aicache.c: Likewise.
70 * nscd/getsrvbynm_r.c: Likewise.
71 * nscd/nscd.c: Likewise.
72 * nscd/servicescache.c: Likewise.
73 * nscd/getsrvbypt_r.c: Likewise.
74 * nscd/initgrcache.c: Likewise.
75 * nscd/gethstbyad_r.c: Likewise.
76 * nscd/gethstbynm2_r.c: Likewise.
77 * nscd/getgrnam_r.c: Likewise.
78 * nscd/nscd_setup_thread.c: Likewise.
79 * nscd/getpwnam_r.c: Likewise.
80 * nscd/gai.c: Likewise.
81 * nscd/connections.c: Likewise.
82 * nscd/dbg_log.c: Likewise.
83 * nscd/cache.c: Likewise.
84 * nscd/hstcache.c: Likewise.
85 * nscd/nscd_conf.c: Likewise.
86 * nscd/getgrgid_r.c: Likewise.
87 * nscd/pwdcache.c: Likewise.
88 * catgets/gencat.c: Likewise.
89 * locale/programs/linereader.h: Likewise.
90 * locale/programs/locarchive.c: Likewise.
91 * locale/programs/ld-paper.c: Likewise.
92 * locale/programs/locfile-kw.h: Likewise.
93 * locale/programs/ld-address.c: Likewise.
94 * locale/programs/xmalloc.c: Likewise.
95 * locale/programs/ld-time.c: Likewise.
96 * locale/programs/localedef.c: Likewise.
97 * locale/programs/simple-hash.c: Likewise.
98 * locale/programs/xstrdup.c: Likewise.
99 * locale/programs/ld-numeric.c: Likewise.
100 * locale/programs/locfile-kw.gperf: Likewise.
101 * locale/programs/ld-collate.c: Likewise.
102 * locale/programs/charmap-kw.gperf: Likewise.
103 * locale/programs/charmap.h: Likewise.
104 * locale/programs/charmap-kw.h: Likewise.
105 * locale/programs/config.h: Likewise.
106 * locale/programs/locfile.c: Likewise.
107 * locale/programs/ld-ctype.c: Likewise.
108 * locale/programs/charmap.c: Likewise.
109 * locale/programs/ld-messages.c: Likewise.
110 * locale/programs/repertoire.h: Likewise.
111 * locale/programs/locale.c: Likewise.
112 * locale/programs/ld-name.c: Likewise.
113 * locale/programs/linereader.c: Likewise.
114 * locale/programs/locfile.h: Likewise.
115 * locale/programs/3level.h: Likewise.
116 * locale/programs/ld-monetary.c: Likewise.
117 * locale/programs/ld-measurement.c: Likewise.
118 * locale/programs/charmap-dir.c: Likewise.
119 * locale/programs/ld-identification.c: Likewise.
120 * locale/programs/localedef.h: Likewise.
121 * locale/programs/charmap-dir.h: Likewise.
122 * locale/programs/repertoire.c: Likewise.
123 * locale/programs/simple-hash.h: Likewise.
124 * locale/programs/ld-telephone.c: Likewise.
125 * locale/programs/locale-spec.c: Likewise.
126 * locale/programs/locfile-token.h: Likewise.
127 * posix/getconf.c: Likewise.
128 * iconv/dummy-repertoire.c: Likewise.
129 * iconv/iconv_charmap.c: Likewise.
130 * iconv/iconvconfig.c: Likewise.
131 * iconv/iconv_prog.c: Likewise.
132 * malloc/memusagestat.c: Likewise.
133 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
135 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
137 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
138 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
139 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
140 check for the first argument.
142 2007-07-12 Jakub Jelinek <jakub@redhat.com>
145 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
146 (__tgmath_real_type): Fix if expr is const int or other const
147 qualified integral type.
148 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
149 expressions and handle const qualified arguments.
150 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
151 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
152 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
153 statement expressions.
154 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
155 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
156 (__TGMATH_UNARY_IMAG): Define.
157 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
158 * math/Makefile (tests): Add test-tgmath2.
159 (CFLAGS-test-tgmath2.c): Add.
160 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
161 count_cfloat, count_cldouble): New variables.
163 (main): Check number of complex calls as well.
164 (F(compile_test)): Add complex tests and tests with const qualified
166 (y, z, ccount): Define.
167 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
168 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
169 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
170 F(cproj)): New functions.
171 * math/test-tgmath2.c: New test.
173 2007-07-11 Jakub Jelinek <jakub@redhat.com>
176 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
177 RPATH etc. as "/" rather than "", don't segfault on empty paths,
179 * dlfcn/Makefile (distribute): Add glreflib3.c.
180 (module-names): Add glreflib3.
181 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
183 (LDFLAGS_glreflib3.so): New.
184 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
186 * dlfcn/glreflib3.c: New file.
188 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
189 returned -1, return NULL.
190 * intl/explodename.c (_nl_explode_name): Return -1 if
191 _nl_normalize_codeset failed.
193 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
195 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
196 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
197 and avoid branch misspredicts for > 31 bytes memset case.
198 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
199 Remove toc ref to __cache_line_size.
201 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
202 to get ISA-V2.0 branch hints.
203 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
204 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
205 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
206 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
207 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
208 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
209 Remove toc ref to __cache_line_size.
211 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
212 Include math_ldbl_opt.h.
214 2007-07-10 Ulrich Drepper <drepper@redhat.com>
217 * time/strptime_l.c (__strptime_internal): Implement greedy
218 matching of weekday and month names.
220 2007-07-09 Roland McGrath <roland@redhat.com>
222 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
223 (ELF_NOTE_ABI): Use it.
224 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
226 2007-07-09 Ulrich Drepper <drepper@redhat.com>
228 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
229 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
231 2007-07-07 Ulrich Drepper <drepper@redhat.com>
234 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
235 in loop to look for conversion specifier to avoid testing of
237 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
238 * stdio-common/bug18.c: New file.
239 * stdio-common/bug18a.c: New file.
240 * stdio-common/bug19.c: New file.
241 * stdio-common/bug19a.c: New file.
243 2007-07-05 Mike Frysinger <vapier@gentoo.org>
245 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
248 2007-07-01 Jakub Jelinek <jakub@redhat.com>
250 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
251 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
252 Return NULL if mmap failed instead of asserting it does not.
253 (calloc): Check for integer overflow.
255 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
258 2007-07-03 Jakub Jelinek <jakub@redhat.com>
261 * nis/nss-default.c: Include errno.h.
262 (init): Preserve errno.
264 2007-07-02 Ulrich Drepper <drepper@redhat.com>
266 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
268 2007-06-30 Ulrich Drepper <drepper@redhat.com>
270 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
272 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
274 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
276 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
278 * sysdeps/s390/dl-procinfo.c: New file.
279 * sysdeps/s390/dl-procinfo.h: New file.
280 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
282 2007-06-29 Jakub Jelinek <jakub@redhat.com>
284 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
285 in PT_NOTE segments with multiple notes.
286 * elf/readelflib.c (process_elf_file): Likewise.
288 2007-06-22 Ulrich Drepper <drepper@redhat.com>
290 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
293 2007-06-19 Ulrich Drepper <drepper@redhat.com>
295 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
297 2007-06-13 Jakub Jelinek <jakub@redhat.com>
299 * include/link.h: Don't include rtld-lowlevel.h.
300 (struct link_map): Remove l_scope_lock.
301 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
302 (_dl_scope_free_list): New field (variable) in _rtld_global.
303 (DL_LOOKUP_SCOPE_LOCK): Remove.
304 (_dl_scope_free): New prototype.
305 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
306 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
307 (_dl_profile_fixup): Likewise.
308 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
309 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
310 THREAD_GSCOPE_RESET_FLAG around it.
311 * elf/dl-close.c (_dl_close_worker): Don't use
312 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
313 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
314 scopes were queued or if l_scope_mem has been abandoned.
315 * elf/dl-open.c (_dl_scope_free): New function.
316 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
317 * elf/dl-support.c (_dl_scope_free_list): New variable.
318 * elf/dl-lookup.c (add_dependency): Remove flags argument.
319 Remove DL_LOOKUP_SCOPE_LOCK handling.
320 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
322 * elf/dl-object.c (_dl_new_object): Don't use
323 __rtld_mrlock_initialize.
325 2007-06-19 Ulrich Drepper <drepper@redhat.com>
327 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
329 (rtld_global_ro): Likewise.
331 2007-06-18 Jakub Jelinek <jakub@redhat.com>
333 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
334 Move PT_LOAD checking to...
335 (_dl_addr_inside_object): ... here, new function.
336 * elf/dl-sym.c (do_sym): If not l_contiguous,
337 call _dl_addr_inside_object.
338 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
339 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
340 * elf/dl-open.c (dl_open_worker): Likewise.
341 (_dl_addr_inside_object): New function if IS_IN_rtld.
342 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
343 holes are present or are PROT_NONE protected.
344 * include/link.h (struct link_map): Add l_contiguous field.
345 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
347 2007-06-18 Jakub Jelinek <jakub@redhat.com>
348 Tomas Janousek <tjanouse@redhat.com>
349 Ulrich Drepper <drepper@redhat.com>
352 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
353 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
355 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
356 unused member a bitmap.
357 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
358 servers are configured.
360 2007-06-18 Jakub Jelinek <jakub@redhat.com>
362 * elf/rtld.c (dl_main): Don't call init_tls more than once.
364 2007-06-17 Andreas Schwab <schwab@suse.de>
366 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
368 2007-06-16 Andreas Jaeger <aj@suse.de>
371 * sysdeps/unix/sysv/linux/sys/ptrace.h
372 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
373 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
374 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
375 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
376 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
378 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
379 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
380 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
381 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
383 2007-06-16 Ulrich Drepper <drepper@redhat.com>
386 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
387 determining whether there are IPv4/IPv6 addresses, ignore loopback
390 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
392 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
393 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
394 as the return type. Change type of "r" variable to CMPtype.
395 * soft-fp/eqsf2.c (__eqsf2): Likewise.
396 * soft-fp/eqtf2.c (__eqtf2): Likewise.
397 * soft-fp/gedf2.c (__gedf2): Likewise.
398 * soft-fp/gesf2.c (__gesf2): Likewise.
399 * soft-fp/getf2.c (__getf2): Likewise.
400 * soft-fp/ledf2.c (__ledf2): Likewise.
401 * soft-fp/lesf2.c (__lesf2): Likewise.
402 * soft-fp/letf2.c (__letf2): Likewise.
403 * soft-fp/unorddf2 (__unorddf2): Likewise.
404 * soft-fp/unordsf2 (__unordsf2): Likewise.
405 * soft-fp/unordtf2 (__unordtf2): Likewise.
407 2007-06-09 Ulrich Drepper <drepper@redhat.com>
409 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
410 make sure gcc doesn't mess around with this.
412 2007-06-08 Ulrich Drepper <drepper@redhat.com>
414 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
416 2007-06-08 Jakub Jelinek <jakub@redhat.com>
418 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
419 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
420 at most once per _dl_close_worker.
422 2007-06-08 Ulrich Drepper <drepper@redhat.com>
424 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
425 __sched_cpucount as const.
426 * posix/sched_cpucount.c: Adjust.
428 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
429 instruction for counting bits.
430 * sysdeps/x86_64/sched_cpucount.c: New file.
432 2007-06-07 Ulrich Drepper <drepper@redhat.com>
434 * configure.in: Avoid variable named BASH.
435 * config.make.in: Likewise.
436 Patch in part by Mike Frysinger.
438 2007-06-06 Jakub Jelinek <jakub@redhat.com>
441 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
442 pseudo-zeros as zero.
443 * sysdeps/x86_64/ldbl2mpn.c: New file.
444 * sysdeps/ia64/ldbl2mpn.c: New file.
446 2007-06-04 Jakub Jelinek <jakub@redhat.com>
448 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
449 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
450 Remove unreachable code at the end.
452 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
454 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
455 ldbl-128ibm in comment.
456 (fpclassifyl): Correct classification of denormals.
457 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
458 return value for MIN denormal. Rewrite using long double math too
459 correctly handle denormals and canonicalize the results.
461 2007-06-05 Jakub Jelinek <jakub@redhat.com>
463 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
464 (__mpn_construct_long_double): Fix conversion where result ought
465 to be smaller than __LDBL_MIN__, or the low double should be
466 denormal. Fix decision where to negate low double - honor round
468 * stdio-common/tst-sprintf2.c: Include string.h.
469 (COMPARE_LDBL): Define.
470 (TEST): Also test whether a string hexadecimal float representation
471 can be parsed back to the number.
472 (main): Add a couple of further tests.
474 2007-06-04 Jakub Jelinek <jakub@redhat.com>
476 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
477 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
478 is non-zero, but smaller than 2 * __DBL_MIN__.
479 * stdio-common/tst-sprintf2.c: New test.
480 * stdio-common/Makefile (tests): Add tst-sprintf2.
482 * math/test-misc.c (main): Don't run last batch of tests with
483 IBM long double format.
485 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
487 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
488 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
489 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
490 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
491 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
492 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
493 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
494 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
495 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
496 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
497 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
498 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
500 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
502 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
504 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
506 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
508 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
509 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
511 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
513 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
520 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
522 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
523 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
524 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
525 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
526 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
527 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
528 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
529 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
531 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
533 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
534 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
535 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
536 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
537 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
538 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
539 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
540 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
542 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
544 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
545 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
546 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
547 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
549 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
551 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
552 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
554 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
556 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
557 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
558 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
559 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
561 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
563 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
564 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
566 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
568 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
569 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
571 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
572 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
573 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
574 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
576 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
578 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
579 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
580 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
581 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
583 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
585 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
586 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
587 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
588 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
589 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
590 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
592 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
594 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
595 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
596 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
597 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
599 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
601 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
602 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
603 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
604 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
605 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
606 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
607 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
608 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
609 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
610 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
611 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
612 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
613 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
614 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
615 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
616 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
618 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
620 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
621 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
623 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
625 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
626 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
628 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
630 * sysdeps/powerpc/powerpc32/970/Implies: New file.
631 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
632 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
633 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
634 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
635 * sysdeps/powerpc/powerpc64/970/Implies: New file.
636 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
637 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
638 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
639 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
641 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
643 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
645 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
647 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
648 branch miss-predicts. Ensure that cache line crossing does not impact
651 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
653 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
654 "../../powerpc32/power4/memcopy.h".
655 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
656 "../../powerpc32/power4/wordcopy.c".
658 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
660 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
661 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
662 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
663 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
664 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
665 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
667 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
669 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
671 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
673 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
674 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
675 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
676 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
677 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
678 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
679 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
680 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
682 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
684 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
686 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
688 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
689 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
690 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
691 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
692 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
693 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
694 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
696 2007-05-29 Roland McGrath <roland@redhat.com>
698 * po/Makefile (po-sed-cmd): New variable.
699 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
701 2007-05-29 Ulrich Drepper <drepper@redhat.com>
703 * crypt/md5-crypt.c: Fix comment.
705 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
706 of crashing. When this is the case or if the reply is malformed,
707 don't try to close the new file descriptor since it does not
709 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
711 2007-05-28 Jakub Jelinek <jakub@redhat.com>
713 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
714 if __NR_utimensat is not defined.
716 2007-05-26 Ulrich Drepper <drepper@redhat.com>
718 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
720 2007-05-25 Jakub Jelinek <jakub@redhat.com>
722 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
723 (open): Fix comment typos. Don't call __open_2 if flags
724 is a compile time constant without O_CREAT.
725 (__open64_2): Add nonnull attribute.
726 (open64): Fix comment typos. Don't call __open64_2 if flags
727 is a compile time constant without O_CREAT.
728 (__openat_2): Add nonnull attribute, fix nonnull attribute
730 (openat): Fix comment typos. Don't call __openat_2 if flags
731 is a compile time constant without O_CREAT.
732 (__openat64_2): Add nonnull attribute, fix nonnull attribute
734 (openat64): Fix comment typos. Don't call __openat64_2 if flags
735 is a compile time constant without O_CREAT.
737 2007-05-24 Ulrich Drepper <drepper@redhat.com>
739 * Makerules (sysd-rules): Define PTW for ptw-* files.
740 * Versions: Define GLIBC_2.7 for libc.
741 * include/stdio.h: Declare __fortify_fail.
742 * debug/fortify_fail.c: New file.
743 * debug/Makefile (routines): Add fortify_fail.
744 * debug/chk_fail.c: Use __fortify_fail.
745 * debug/stack_chk_fail.c: Likewise.
746 * io/Versions: Export __open_2, __open64_2, __openat_2, and
747 __openat64_2 for GLIBC_2.7.
748 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
749 * io/open.c: Define *_2 variant of function which checks for O_CREAT
750 and fails if necessary.
751 * io/open64.c: Likewise.
752 * io/openat.c: Likewise.
753 * io/openat64.c: Likewise.
754 * sysdeps/unix/sysv/linux/open64.c: Likewise.
755 * sysdeps/unix/sysv/linux/openat.c: Likewise.
756 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
757 * io/bits/fcntl2.h: New file.
758 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
760 * include/bits/fcntl2.h: New file.
761 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
763 * sysdeps/unix/sysv/linux/open_2.c: New file.
765 2007-05-21 Ulrich Drepper <drepper@redhat.com>
767 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
768 as second parameter to handle_intel.
770 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
773 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
775 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
776 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
778 * sysdeps/x86_64/memcpy.S: Complete rewrite.
779 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
780 Patch by Evandro Menezes <evandro.menezes@amd.com>.
782 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
784 2007-05-21 Jakub Jelinek <jakub@redhat.com>
787 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
788 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
789 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
791 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
794 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
795 reinitialize workend at the start of each do_positional format spec
796 loop, free workstart before do_positional loops.
797 (printf_unknown): Fix size of work_buffer.
798 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
800 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
801 (public_sET_STATe): If ms->version < 3, put all chunks into
802 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
805 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
806 * malloc/hooks.c: Likewise.
807 * malloc/arena.c: Likewise.
808 * malloc/malloc.c (do_check_malloc_state): Don't assert
809 n_mmaps is not greater than n_mmaps_max. This removes the need
810 for the previous change.
812 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
815 2007-05-19 Ulrich Drepper <drepper@redhat.com>
817 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
818 Define for kernel >= 2.6.22.
820 2007-05-18 Ulrich Drepper <drepper@redhat.com>
822 * elf/dl-close.c (_dl_close_worker): When removing object from
823 global scope, wait for all lookups to finish afterwards.
824 * elf/dl-open.c (add_to_global): When global scope array must
825 grow, allocate a new one and free old array only after all
827 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
828 (_dl_lookup_symbol_x): Likewise.
829 * elf/dl-support.c: Define _dl_wait_lookup_done.
830 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
831 _dl_wait_lookup_done.
833 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
834 not overlapping with arena.
836 * malloc/mcheck.c (reallochook): If size==0, free the block.
838 * rt/tst-shm.c: Use fstat64 instead of fstat.
840 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
841 __NR_sync_file_range is not defined.
843 2007-05-17 Ulrich Drepper <drepper@redhat.com>
845 Dummy files to prevent stub versions from being used.
846 * sysdeps/x86_64/fpu/k_cosl.c: New file.
847 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
848 * sysdeps/x86_64/fpu/k_sinl.c: New file.
849 * sysdeps/x86_64/fpu/k_tanl.c: New file.
851 * version.h (VERSION): Set to 2.6.90.
853 2007-05-14 Ulrich Drepper <drepper@redhat.com>
855 * version.h (VERSION): Define to 2.6.
856 * include/features.h (__GLIBC_MINOR__): Define to 6.
858 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
860 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
863 2007-05-13 Ulrich Drepper <drepper@redhat.com>
865 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
866 number of mmaps. n_mmaps_max is the target.
867 * malloc/hooks.c: Likewise.
868 * malloc/arena.c: Likewise.
870 2007-05-12 Andreas Jaeger <aj@suse.de>
872 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
875 2007-05-11 Ulrich Drepper <drepper@redhat.com>
877 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
878 adding new variables.
880 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
881 optimize. Completely extend global scope array before making the
884 2007-05-10 Ulrich Drepper <drepper@redhat.com>
886 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
887 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
890 * include/link.h: Move l_version and l_nversion members around to
893 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
895 * sysdeps/unix/sysv/linux/sched_setaffinity.c
896 (__sched_setaffinity_new): If syscall was successful and
897 RESET_VGETCPU_CACHE is defined, use it before returning.
898 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
900 * io/sys/stat.h: Make sure struct timespec is defined for
903 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
905 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
906 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
907 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
908 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
909 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
910 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
911 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
912 * io/sys/stat.h: Declare utimensat, futimens.
913 * io/utimensat.c: New file.
914 * io/futimens.c: New file.
915 * sysdeps/unix/sysv/linux/utimensat.c: New file.
916 * sysdeps/unix/sysv/linux/futimens.c: New file.
917 * io/Makefile (routines): Add utimensat, futimens.
918 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
919 * sysdeps/unix/sysv/linux/lutimes.c: New file.
920 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
923 * include/sys/cdefs.h: Redefine __nonnull so that test for
924 incorrect parameters in the libc code itself are not omitted.
926 2007-05-09 Jakub Jelinek <jakub@redhat.com>
928 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
929 exception in addition to inexact when asked to raise only FE_INEXACT.
932 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
935 2007-05-07 Ulrich Drepper <drepper@redhat.com>
938 * string/strfry.c (strfry): Make result more random.
940 2007-05-07 Richard Henderson <rth@redhat.com>
942 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
943 if __NO_LONG_DOUBLE_MATH.
944 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
945 available in the compiler, add .arch directive to the assembly.
947 2007-05-07 Jakub Jelinek <jakub@redhat.com>
949 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
950 compat_symbol to GLIBC_2_1.
951 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
952 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
953 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
954 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
955 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
956 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
957 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
959 (__isnanl): New compat_symbol.
961 2007-05-07 Ulrich Drepper <drepper@redhat.com>
962 Jakub Jelinek <jakub@redhat.com>
964 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
965 (new_heap): Initialize mprotect_size.
966 (grow_heap): When growing, only mprotect from mprotect_size till
967 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
968 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
970 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
971 Peter Bergner <bergner@us.ibm.com>
973 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
974 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
975 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
976 * sysdeps/powerpc/fpu/fe_mask.c: New file.
977 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
978 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
979 Call __fe_mask_env() if all FP exceptions disabled.
980 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
981 from old FPSCR to new fenv to propagate DFP rounding modes.
982 Call __fe_mask_env() if FP exceptions previously enabled.
983 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
984 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
985 transitioning from all exceptions disabled to any exception enabled
987 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
988 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
989 when transitioning from all exceptions disabled to any exception
990 enabled or visa versa.
991 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
992 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
993 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
994 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
995 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
996 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
998 2007-05-06 Ulrich Drepper <drepper@redhat.com>
1001 * posix/unistd.h: Remove __THROW from fdatasync.
1003 2007-05-06 Mike Frysinger <vapier@gentoo.org>
1006 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
1008 2007-05-06 Ulrich Drepper <drepper@redhat.com>
1010 * stdio-common/vfprintf.c (process_string_arg): Optimize
1011 ridiculous precision in wide char code printing multi-byte string.
1012 Reported by Jim Meyering <jim@meyering.net>.
1015 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
1016 boundaries to work around systems with overlapping binary loading.
1017 Based on a patch by Suzuki <suzuki@in.ibm.com>.
1019 2007-05-04 Ulrich Drepper <drepper@redhat.com>
1021 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
1022 __mbsnrtowcs after last change.
1024 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
1025 (get_ident): Likewise.
1027 2007-05-03 Jakub Jelinek <jakub@redhat.com>
1029 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
1030 with setting the sticky bit.
1031 * math/test-misc.c (main): Add more truncation tests.
1033 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
1035 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
1036 double in the function declaration.
1037 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
1038 double in the function declaration.
1039 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
1040 float in the function declaration.
1041 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
1042 float in the function declaration.
1044 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
1045 denormal operands. Do not generate FP_EX_DENORM exception.
1046 (FP_UNPACK_RAW_EP): Ditto.
1047 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
1048 undefined _FP_UNPACK_RAW_E.
1049 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
1050 undefined _FP_UNPACK_RAW_EP.
1051 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
1052 undefined _FP_PACK_RAW_E.
1053 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
1054 undefined _FP_PACK_RAW_EP.
1056 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
1058 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
1061 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
1062 Jakub Jelinek <jakub@redhat.com>
1064 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
1065 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
1067 * soft-fp/op-common.h (FP_TRUNC): Ditto.
1069 2007-05-03 Jakub Jelinek <jakub@redhat.com>
1071 * math/test-misc.c (main): Add tests for rounding long double
1072 values close to smallest double denormalized value to double.
1074 2007-04-30 Joseph Myers <joseph@codesourcery.com>
1076 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
1077 condition for truncating to 0. Set sticky bit for such
1080 2007-05-02 Jakub Jelinek <jakub@redhat.com>
1082 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
1083 fixed length array for ignore.
1085 2007-04-30 Ulrich Drepper <drepper@redhat.com>
1088 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
1089 stack for large precisions.
1090 * stdio-common/test-vfprintf.c (main): Add test for large
1093 2007-04-30 Jakub Jelinek <jakub@redhat.com>
1095 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
1097 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
1100 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
1101 account in the size check.
1102 * resolv/tst-inet_ntop.c: New test.
1103 * resolv/Makefile (tests): Add tst-inet_ntop.
1105 2007-04-30 Ulrich Drepper <drepper@redhat.com>
1106 Jakub Jelinek <jakub@redhat.com>
1109 * malloc/malloc.c: Keep separate list for first blocks on the bin
1110 lists with a given size. This helps skipping over list elements
1111 we know won't fit in two places.
1112 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
1114 2007-04-28 Ulrich Drepper <drepper@redhat.com>
1117 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
1118 label to Teredo tunnel addresses 2001://32.
1120 2007-04-27 Ulrich Drepper <drepper@redhat.com>
1122 * locale/programs/ld-collate.c (collate_read): Allow order_start
1125 * locale/programs/ld-collate.c (collate_read): Fix printing of
1129 * locale/C-translit.h.in: Add entry for U2044.
1132 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
1133 hexa-decimal floats without exponent.
1134 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
1136 2007-04-25 Ulrich Drepper <drepper@redhat.com>
1138 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
1139 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
1140 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
1141 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
1143 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
1146 2007-04-25 Jakub Jelinek <jakub@redhat.com>
1148 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
1149 of 0 after the out_fail label.
1151 2007-04-25 Ulrich Drepper <drepper@redhat.com>
1154 * iconv/gconv_charset.h (strip): Allow ':'.
1155 * iconv/iconv_open.c (iconv_open): Adjust comment.
1157 2007-04-25 Jakub Jelinek <jakub@redhat.com>
1159 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
1162 2007-04-23 Jakub Jelinek <jakub@redhat.com>
1165 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
1166 alignment of buffer and tmp_buffer.
1167 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
1168 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
1169 alignment of buffer.
1170 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
1171 bigger than INT_MAX.
1172 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
1173 h_errnop arguments. Fail if buflen is too small.
1174 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
1176 2007-04-23 Jakub Jelinek <jakub@redhat.com>
1179 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
1180 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
1182 2007-04-22 Roland McGrath <roland@redhat.com>
1184 * elf/elf.h (NT_PRXFPREG): New macro.
1186 2007-04-19 Andreas Jaeger <aj@suse.de>
1189 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
1190 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
1193 2007-04-19 Ulrich Drepper <drepper@redhat.com>
1195 * include/sys/mman.h: Mark madvise hidden.
1196 * misc/madvise.c: Add libc_hidden_def.
1198 2007-04-06 Jakub Jelinek <jakub@redhat.com>
1200 * nis/nis_domain_of.c (__nis_domain_of): New function.
1201 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
1202 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
1203 * nis/nis_call.c (rec_dirsearch): Likewise.
1204 (first_shoot): Likewise. Remove search_parent_first argument.
1205 (struct nis_server_cache): Rename search_parent_first field
1207 (nis_server_cache_search, nis_server_cache_add): Rename
1208 search_parent_first argument to search_parent.
1209 (__nisfind_server): Likewise. If search_parent, call
1212 2007-04-18 Ulrich Drepper <drepper@redhat.com>
1214 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
1216 2007-04-17 Ulrich Drepper <drepper@redhat.com>
1219 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
1221 2007-04-16 Ulrich Drepper <drepper@redhat.com>
1224 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
1226 2007-04-15 Jakub Jelinek <jakub@redhat.com>
1228 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
1229 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
1230 current number of locales in SUPPORTED.
1231 (create_archive): Initialize serial.
1232 (enlarge_archive): Preserve aliases rather than duplicating
1235 2007-04-13 Jakub Jelinek <jakub@redhat.com>
1237 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
1238 after _IO_un_link, not before it.
1240 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
1241 special case handling when wcp == wstartp + 1. Fix a comment typo.
1242 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
1244 2007-03-30 Jakub Jelinek <jakub@redhat.com>
1246 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
1247 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
1248 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
1250 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
1251 _IO_file_xsgetn_maybe_mmap): Likewise.
1252 * libio/oldfileops.c (old_do_write): Likewise.
1253 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
1254 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
1255 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
1256 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
1257 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
1258 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
1259 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
1260 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
1261 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
1262 _IO_file_underflow, _IO_file_underflow_mmap,
1263 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
1264 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
1265 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
1266 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
1267 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
1268 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
1269 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
1270 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
1271 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
1272 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
1273 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
1274 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
1275 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
1276 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
1277 _IO_adjust_column_internal, _IO_default_uflow_internal,
1278 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
1279 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
1280 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
1281 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
1282 _IO_file_close_it_internal, _IO_file_underflow_internal,
1283 _IO_file_overflow_internal, _IO_file_attach_internal,
1284 _IO_file_fopen_internal, _IO_file_sync_internal,
1285 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
1286 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
1287 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
1288 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
1289 _IO_seekpos_unlocked): Likewise.
1290 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
1291 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
1293 2007-04-16 Jakub Jelinek <jakub@redhat.com>
1295 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
1296 argument in xmalloc size computation.
1298 2007-04-01 Jakub Jelinek <jakub@redhat.com>
1300 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
1301 math_opt_barrier and math_force_eval macros.
1303 2007-03-27 Jakub Jelinek <jakub@redhat.com>
1306 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
1307 * sysdeps/i386/fpu/math_private.h: New file.
1308 * sysdeps/x86_64/fpu/math_private.h: New file.
1309 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
1310 math_force_eval macros. Use "+m" constraint on asm rather than
1312 * math/s_nextafter.c (__nextafter): Likewise.
1313 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
1315 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
1316 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
1317 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
1318 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
1319 math_opt_barrier and math_force_eval macros.
1320 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
1321 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
1322 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
1323 (__nexttoward): Use math_opt_barrier and
1324 math_force_eval macros. Use "+m" constraint on asm rather than
1325 "=m" and "m". Only use asm to force double result if
1326 FLT_EVAL_METHOD is 2.
1327 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
1328 (__nexttowardf): Use math_opt_barrier and
1329 math_force_eval macros. Use "+m" constraint on asm rather than
1330 "=m" and "m". Only use asm to force double result if
1331 FLT_EVAL_METHOD is not 0.
1332 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
1333 (__nexttowardf): Use math_opt_barrier and
1334 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
1335 x to float using asm.
1336 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
1337 (__nldbl_nexttowardf): Use math_opt_barrier and
1338 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
1339 x to float using asm.
1340 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
1341 (__nexttowardf): Use math_opt_barrier and math_force_eval
1342 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
1343 * math/bug-nextafter.c (zero, inf): New variables.
1344 (main): Add new tests.
1345 * math/bug-nexttoward.c (zero, inf): New variables.
1346 (main): Add new tests.
1348 2007-03-22 Jakub Jelinek <jakub@redhat.com>
1351 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
1352 exceptions both in SW and MXCSR.
1353 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
1354 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
1355 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1356 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
1357 in MXCSR if SSE is available.
1358 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
1360 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
1362 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
1363 Return 0 rather than 1.
1364 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
1365 Remove incorrect part of a comment. Fix argument to feraiseexcept.
1366 * math/test-fenv.c (feholdexcept_tests): New function.
1369 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
1372 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
1375 2007-04-13 Jakub Jelinek <jakub@redhat.com>
1378 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
1379 Reported by David Anderson <davea42@earthlink.net>.
1381 2007-04-07 Ulrich Drepper <drepper@redhat.com>
1383 * posix/sys/wait.h: Remove unnecessary forward declaration.
1385 2007-04-05 Jakub Jelinek <jakub@redhat.com>
1387 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
1388 with obj->do_servers after first_shoot.
1390 2007-04-03 Ulrich Drepper <drepper@redhat.com>
1392 * posix/Makefile (routines): Add sched_cpucount.
1393 (tests): Add tst-cpucount.
1394 * posix/sched_cpucount.c: New file.
1395 * posix/tst-cpucount.c: New file.
1396 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
1397 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
1398 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
1399 * posix/sched.h: Define CPU_COUNT.
1401 2007-03-27 Jakub Jelinek <jakub@redhat.com>
1403 * posix/fnmatch.c (STRUCT): Define.
1404 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
1405 * posix/fnmatch_loop.c (struct STRUCT): New type.
1406 (FCT): Add ends argument. If ends != NULL and normal * is
1407 seen in the pattern, store current pattern and string pointers
1408 and return. Adjust recursive calls.
1409 (EXT): Adjust FCT callers.
1410 (STRUCT): Undef at the end of the file.
1411 * posix/Makefile (tests): Add tst-fnmatch2.
1412 * posix/tst-fnmatch2.c: New test.
1414 2007-04-01 Jakub Jelinek <jakub@redhat.com>
1416 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
1419 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1420 Change last argument to unsigned int.
1422 2007-03-23 Jakub Jelinek <jakub@redhat.com>
1424 * scripts/check-local-headers.sh: Filter out sys/capability.h.
1426 2007-03-22 Jakub Jelinek <jakub@redhat.com>
1428 * config.h.in (HAVE_LIBCAP): Add.
1429 * nscd/selinux.h: Include sys/capability.h rather than non-existent
1431 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
1432 free_caps. Cast away const from 4th cap_set_flag argument.
1434 2007-03-26 Ulrich Drepper <drepper@redhat.com>
1436 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
1438 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1439 Add sync_file_range.
1440 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1442 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
1444 * sysdeps/powerpc/bits/atomic.h
1445 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
1446 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
1447 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
1448 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
1449 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
1450 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
1451 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
1452 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
1453 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
1454 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
1455 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
1456 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
1457 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
1458 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
1459 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
1460 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
1461 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
1462 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
1463 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
1464 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
1466 2007-03-20 Jakub Jelinek <jakub@redhat.com>
1468 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
1469 (__cache_line_size): Define the variable here. Add
1470 attribute_hidden, remove weak_extern.
1471 (__libc_start_main): Set __cache_line_size
1473 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1474 (__cache_line_size): Define the variable here. Add
1475 attribute_hidden, remove weak_extern.
1476 (DL_PLATFORM_AUXV): Set __cache_line_size
1478 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
1479 weak_extern, add attribute_hidden.
1480 (__elf_machine_runtime_setup): Assume __cache_line_size is always
1482 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
1484 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
1486 2007-03-26 Jakub Jelinek <jakub@redhat.com>
1489 * timezone/africa: Update from tzdata2007d.
1490 * timezone/asia: Likewise.
1491 * timezone/australasia: Likewise.
1492 * timezone/backward: Likewise.
1493 * timezone/europe: Likewise.
1494 * timezone/iso3166.tab: Likewise.
1495 * timezone/leapseconds: Likewise.
1496 * timezone/northamerica: Likewise.
1497 * timezone/southamerica: Likewise.
1498 * timezone/zone.tab: Likewise.
1500 * timezone/private.h: Update from tzcode2007d.
1501 * timezone/zdump.c: Likewise.
1502 * timezone/zic.c: Likewise.
1504 2007-03-21 Jakub Jelinek <jakub@redhat.com>
1506 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
1507 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
1509 (nis_server_cache_search, nis_server_cache_add): New functions.
1510 (__nisfind_server): Use them. Add dbp and flags argument, if
1511 call __nisbind_create.
1512 (__nisbind_create): Add server_used and current_ep arguments,
1513 only call __nis_findfastest if server_used is ~0.
1514 (__do_niscall2, __prepare_niscall): Adjust callers.
1515 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
1516 ckey_cache_euid, ckey_cache_lock): New variables.
1517 (get_ckey): New function.
1518 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
1519 __pmap_getnisport. Save __pmap_getnisport result in
1520 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
1522 * nis/nis_lookup.c (nis_lookup): Likewise.
1523 * nis/nis_table.c (nis_list): Likewise.
1524 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
1527 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
1528 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
1529 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
1530 _nss_nisplus_getservbyport_r): Likewise.
1531 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
1532 _nss_nisplus_getnetbyaddr_r): Likewise.
1533 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
1534 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
1535 _nss_nisplus_getntohost_r): Likewise.
1536 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
1537 _nss_nisplus_getrpcbynumber_r): Likewise.
1539 2007-03-20 Jakub Jelinek <jakub@redhat.com>
1541 * configure.in (libc_cv_gnu89_inline): Only do compile test.
1542 * configure: Rebuilt.
1544 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
1546 * soft-fp/extended.h (_FP_UNION_E): Likewise.
1548 2006-06-07 Joseph Myers <joseph@codesourcery.com>
1551 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
1554 2007-03-18 Jakub Jelinek <jakub@redhat.com>
1556 * nscd/gai.c: Include alloca.h.
1557 (__libc_use_alloca): Define.
1559 2007-03-16 Jakub Jelinek <jakub@redhat.com>
1561 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
1563 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
1564 (DL_DST_REQUIRED): Adjust user.
1566 * include/dlfcn.h (struct link_map): New forward decl.
1568 * inet/getnameinfo.c: Include stddef.h.
1569 (getnameinfo): Use offsetof.
1571 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
1573 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
1575 * string/strerror_l.c: Include stdlib.h.
1577 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
1578 * config.make.in (gnu89-inline-CFLAGS): New variable.
1579 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
1581 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
1582 * argp/argp.h: Use it.
1583 * bits/mathinline.h: Likewise.
1584 * bits/sigset.h: Likewise.
1585 * bits/string.h: Likewise.
1586 * ctype/ctype.h: Likewise.
1587 * hurd/hurd.h: Likewise.
1588 * hurd/hurd/fd.h: Likewise.
1589 * hurd/hurd/port.h: Likewise.
1590 * hurd/hurd/signal.h: Likewise.
1591 * hurd/hurd/threadvar.h: Likewise.
1592 * hurd/hurd/userlink.h: Likewise.
1593 * io/sys/stat.h: Likewise.
1594 * libio/bits/stdio.h: Likewise.
1595 * libio/bits/stdio2.h: Likewise.
1596 * mach/lock-intern.h: Likewise.
1597 * mach/mach/mig_support.h: Likewise.
1598 * math/bits/cmathcalls.h: Likewise.
1599 * posix/bits/unistd.h: Likewise.
1600 * socket/bits/socket2.h: Likewise.
1601 * stdlib/bits/stdlib.h: Likewise.
1602 * stdlib/stdlib.h: Likewise.
1603 * string/argz.h: Likewise.
1604 * string/bits/string2.h: Likewise.
1605 * string/bits/string3.h: Likewise.
1606 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
1607 * sysdeps/generic/inttypes.h: Likewise.
1608 * sysdeps/generic/machine-lock.h: Likewise.
1609 * sysdeps/generic/machine-sp.h: Likewise.
1610 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1611 * sysdeps/i386/i486/bits/string.h: Likewise.
1612 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
1613 * sysdeps/mach/alpha/machine-lock.h: Likewise.
1614 * sysdeps/mach/alpha/machine-sp.h: Likewise.
1615 * sysdeps/mach/i386/machine-lock.h: Likewise.
1616 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
1617 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1618 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
1619 * sysdeps/s390/bits/string.h: Likewise.
1620 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
1621 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
1622 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1623 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
1624 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1625 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
1626 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
1627 * wcsmbs/bits/wchar2.h: Likewise.
1628 * wcsmbs/wchar.h: Likewise.
1629 * stdlib/gmp.h: Likewise. Include <features.h> to get
1630 __extern_inline definition.
1632 2007-03-15 Jakub Jelinek <jakub@redhat.com>
1634 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
1638 * math/libm-test.inc (log_test): Test -Inf and NaN.
1639 (log10_test, log1p_test, log2_test): Test -Inf.
1640 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
1641 FE_INVALID when argument is qNaN.
1642 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
1643 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
1644 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
1645 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
1646 andb $1, %ah with testb $1, %ah, don't test for parity, instead
1647 testb $4, %ah and jump if non-zero.
1648 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1649 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
1652 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
1653 ancestors with the same depths.
1654 Patch by Niels Moeller <nisse@lysator.liu.se>.
1655 (filter_doc): Don't crash if argp is NULL.
1656 * argp/Makefile (tests): Add tst-argp2.
1657 * argp/tst-argp2.c: New test.
1660 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
1662 (updwtmp_file): Likewise.
1665 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
1666 (inet6_opt_append): Don't check extlen is big enough if extbuf
1668 (inet6_opt_finish): Likewise.
1669 * inet/Makefile (tests): Add test-inet6_opt.
1670 * inet/test-inet6_opt.c: New test.
1672 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
1673 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
1674 NLMSG_ERR. Instead use a page sized buffer.
1675 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
1678 2007-03-14 Richard Henderson <rth@redhat.com>
1680 * sysdeps/alpha/fpu/s_llround.c: New file.
1681 * sysdeps/alpha/fpu/s_llroundf.c: New file.
1682 * sysdeps/alpha/fpu/s_lround.c: New file.
1683 * sysdeps/alpha/fpu/s_lroundf.c: New file.
1684 * sysdeps/alpha/fpu/s_round.c: New file.
1685 * sysdeps/alpha/fpu/s_roundf.c: New file.
1686 * sysdeps/alpha/fpu/s_trunc.c: New file.
1687 * sysdeps/alpha/fpu/s_truncf.c: New file.
1689 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
1690 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
1691 * sysdeps/alpha/fpu/s_floor.c: Likewise.
1692 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
1693 * sysdeps/alpha/fpu/s_rint.c: Likewise.
1694 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
1696 * sysdeps/alpha/fpu/s_fmax.S: New file.
1697 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
1698 * sysdeps/alpha/fpu/s_fmin.S: New file.
1699 * sysdeps/alpha/fpu/s_fminf.S: New file.
1700 * sysdeps/alpha/fpu/s_isnan.c: New file.
1701 * sysdeps/alpha/fpu/s_isnanf.c: New file.
1702 * sysdeps/alpha/fpu/s_llrint.c: New file.
1703 * sysdeps/alpha/fpu/s_llrintf.c: New file.
1704 * sysdeps/alpha/fpu/s_lrint.c: New file.
1705 * sysdeps/alpha/fpu/s_lrintf.c: New file.
1706 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
1707 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
1709 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
1710 (__fdimf, fdimf, __fdim, fdim): Remove.
1711 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
1712 (__isnanf, __isnan, __isnanl): New.
1714 2007-03-13 Richard Henderson <rth@redhat.com>
1716 * sysdeps/ieee754/ldbl-128/Makefile: New file.
1718 2007-03-13 Richard Henderson <rth@redhat.com>
1720 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
1721 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
1722 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
1723 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
1724 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
1725 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
1727 2007-03-13 Richard Henderson <rth@redhat.com>
1729 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
1730 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
1731 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
1732 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
1733 Move to dl-auxv.h; initialize instead of extern weak.
1734 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
1736 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
1737 Extern instead of initialized.
1739 2007-03-13 Richard Henderson <rth@redhat.com>
1741 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
1742 __sigsuspend_nocancel.
1744 2007-03-06 Ulrich Drepper <drepper@redhat.com>
1746 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
1747 172.16/12 address range.
1749 2007-03-02 Jakub Jelinek <jakub@redhat.com>
1751 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
1752 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
1755 2007-03-01 Jakub Jelinek <jakub@redhat.com>
1758 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
1760 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
1762 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
1763 for x qNaN and y either +-inf or non-integer value.
1764 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
1765 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
1766 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
1768 2007-02-10 Mike Frysinger <vapier@gentoo.org>
1770 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
1771 from sysdep_headers.
1773 2007-02-28 Jakub Jelinek <jakub@redhat.com>
1775 * time/tzfile.c (find_transition): Instead of a linear search try to
1776 guess the transition index, use a linear search if the result is at
1777 most 10 transitions away from the guess or binary search otherwise.
1779 2007-02-27 Jakub Jelinek <jakub@redhat.com>
1781 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
1782 memory reallocation.
1784 2007-02-21 Ulrich Drepper <drepper@redhat.com>
1786 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
1788 Optimize use of TOLOWER.
1791 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
1792 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
1793 * sysdeps/i386/fpu/e_fmod.S: Likewise.
1796 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
1797 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
1800 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
1801 (open_dir_stream): Likewise.
1802 * io/Makefile (tests): Add bug-ftw5.
1803 * io/bug-ftw5.c: New file.
1805 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
1806 * nscd/servicescache.c (cache_addserv): Likewise.
1808 * nscd/grpcache.c (cache_addgr): In case a record changed on
1809 refresh, adjust key_copy.
1812 * nscd/pwdcache.c (cache_addpw): In case a record changed on
1813 refresh, adjust key_copy.
1816 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
1818 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
1820 2007-02-19 Ulrich Drepper <drepper@redhat.com>
1822 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
1825 * stdio-common/vfscanf.c: Small cleanups throughout.
1827 2007-02-18 Ulrich Drepper <drepper@redhat.com>
1830 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
1831 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
1832 * sysdeps/i386/fpu/e_fmod.S: Likewise.
1833 Patch by Jared Casper <jaredcasper@gmail.com>.
1835 * sysdeps/unix/closedir.c: Outside libc don't use locking.
1836 * sysdeps/unix/opendir.c: Likewise.
1837 * sysdeps/unix/readdir.c: Likewise.
1840 * stdio-common/vfscanf.c: Handle localized digits etc for floating
1842 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
1844 * stdio-common/vfscanf.c: Fix problems in width accounting.
1845 * stdio-common/tst-sscanf.c (double_tests): New tests.
1846 (main): Hook them up.
1848 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
1849 More simplifications of floating-point reader.
1851 * stdio-common/Makefile (tests): Add tst-swscanf.
1852 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
1854 * stdio-common/tst-swscanf.c: New file.
1856 2007-02-17 Ulrich Drepper <drepper@redhat.com>
1859 * libio/stdio.h: Define struct _IO_FILE in global namespace.
1860 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
1861 Remove using for __jmp_buf_tag.
1862 * locale/locale.h (struct lconv): Also define in std namespace.
1863 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
1866 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
1867 using __libc_enable_secure.
1870 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
1873 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
1874 of names for ellipsises.
1877 * malloc/memusage.sh: Cleanups.
1878 * debug/xtrace.sh: Quoting and trap changes.
1880 2007-02-16 Ulrich Drepper <drepper@redhat.com>
1882 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
1884 * locale/iso-3166.def: Update entry for Serbia.
1885 * locale/iso-4217.def: Define RSD, remove CSD.
1887 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
1888 and 64-bit operations.
1891 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
1894 * nscd/nscd.c (parse_opt): One more conversion to use send instead
1897 2007-02-15 Ulrich Drepper <drepper@redhat.com>
1900 * assert/assert.h (assert): Simplify.
1901 (assert_perror): Likewise.
1902 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
1904 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
1907 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
1908 change: don't pass NULL in place of an integer.
1910 2007-02-02 Bruno Haible <bruno@clisp.org>
1913 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
1914 Add mapping for U+327E.
1915 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
1916 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
1917 mapping of 0xD9 0xE8.
1918 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
1920 Reported by Jungshik Shin <jungshik@google.com>.
1923 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
1924 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
1925 Reported by Jungshik Shin <jungshik@google.com>.
1927 2007-02-14 Ulrich Drepper <drepper@redhat.com>
1929 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
1933 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
1934 byte variants. Patch mostly be tom@tommay.net.
1936 2007-02-14 Jakub Jelinek <jakub@redhat.com>
1939 * posix/glob.c (attribute_hidden): Define if not defined.
1940 (glob): Unescape dirname, filename or username when needed and not
1941 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
1942 is NULL. Handle unescaped [ in pattern without closing ].
1943 Don't pass GLOB_CHECK down to recursive glob for directories.
1944 (__glob_pattern_type): New function.
1945 (__glob_pattern_p): Implement using __glob_pattern_type.
1946 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
1947 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
1948 Remove unreachable code.
1949 * posix/globtest.sh: Add a couple of new tests.
1951 2007-02-13 Ulrich Drepper <drepper@redhat.com>
1953 * po/ru.po: Update from translation team.
1955 2007-02-12 Jakub Jelinek <jakub@redhat.com>
1957 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
1958 to the list of i486+ CPUs.
1959 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
1961 2007-02-12 Ulrich Drepper <drepper@redhat.com>
1963 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
1964 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
1967 2007-02-09 Ulrich Drepper <drepper@redhat.com>
1969 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
1971 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
1972 * resolv/res_mkquery.c: Define __res_nopt.
1973 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
1974 try adding EDNS0 record.
1975 * resolv/res_send.c (send_dg): If request failed with FORMERR and
1976 EDNS0 record was send make sure we don't try it again.
1977 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
1978 * include/resolv.h: Declare __res_nopt.
1980 2007-02-08 Jakub Jelinek <jakub@redhat.com>
1983 * time/strptime_l.c (__strptime_internal): Set have_mon for
1984 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
1985 have been computed from tm_yday and tm_year. Don't crash
1986 in day_of_the_week or day_of_the_year if not have_mon
1987 and tm_mon contains bogus value.
1988 * time/Makefile (tests): Add tst-strptime3.
1989 * time/tst-strptime3.c: New test.
1991 2007-02-05 Jakub Jelinek <jakub@redhat.com>
1994 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
1995 bit for RE_HAT_LISTS_NOT_NEWLINE.
1996 (build_charclass_op): Remove bogus comment.
1997 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
1998 * posix/bug-regex27.c: New test.
1999 * posix/bug-regex28.c: New test.
2001 2007-02-03 Ulrich Drepper <drepper@redhat.com>
2003 * po/sv.po: Update from translation team.
2005 2007-02-02 Ulrich Drepper <drepper@redhat.com>
2007 * nscd/nscd_helper.c (open_socket): Minor size optimization.
2009 2007-02-02 Jakub Jelinek <jakub@redhat.com>
2011 * include/locale.h (__uselocale): Add libc_hidden_proto.
2012 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
2014 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
2017 2007-02-01 Ulrich Drepper <drepper@redhat.com>
2019 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
2021 (PTR_DEMANGLE): Real definition now that it's not the same as
2023 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2025 * string/strerror_l.c: New file.
2026 * string/Makefile (routines): Add strerror_l.
2027 * string/string.h: Declare strerror_l.
2028 * string/Versions: Export strerror_l for GLIBC_2.6.
2030 2007-01-31 Ulrich Drepper <drepper@redhat.com>
2032 * nscd/nscd_helper.c (open_socket): Now takes request type and key
2033 as parameter. Construct request record. Try sending request
2034 before the first poll use, it usually succeeds. Adjust all
2036 * nscd/nscd-client.h: Define MAXKEYLEN.
2037 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
2039 2007-01-31 Jakub Jelinek <jakub@redhat.com>
2041 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
2043 * nscd/nscd_helper.c: Include string.h.
2044 (__nscd_cache_search): Remove const qualifier from return value.
2045 On strict alignment architectures check hash entry and data head
2047 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
2048 mmapped data during GC cycle contains garbage. If
2049 __nscd_drop_map_ref fails, decrement mapped->counter when returning
2050 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
2052 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2053 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2054 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
2055 * nscd/nscd_getai.c (__nscd_getai): Likewise.
2056 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2058 2007-01-30 Ulrich Drepper <drepper@redhat.com>
2060 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
2062 2007-01-26 Ulrich Drepper <drepper@redhat.com>
2064 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
2065 names not numbers in cfi_*.
2067 2007-01-26 Andreas Jaeger <aj@suse.de>
2069 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
2070 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
2071 Correct values of PER_HPUX and PER_OSF4.
2073 2007-01-24 Ulrich Drepper <drepper@redhat.com>
2075 * elf/dl-minimal.c: Undefine _itoa first.
2076 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
2077 * malloc/mtrace.c: Revert last change.
2078 * posix/wordexp.c: Likewise.
2080 2007-01-24 Jakub Jelinek <jakub@redhat.com>
2082 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
2083 and __geode__ to the list of i486+ CPUs.
2084 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
2086 2007-01-23 Ulrich Drepper <drepper@redhat.com>
2088 * stdio-common/_itoa.c: Include <limits.h>.
2089 * stdio-common/_itowa.c: Likewise.
2091 2007-01-22 Ulrich Drepper <drepper@redhat.com>
2093 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
2095 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
2097 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
2099 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
2103 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
2104 * stdio-common/Makefile (tests): Add bug17.
2105 * stdio-common/bug17.c: New file.
2107 2007-01-19 Ulrich Drepper <drepper@redhat.com>
2109 * iconvdata/brf.c: New file.
2110 * iconvdata/testdata/BRF: New file.
2111 * iconvdata/testdata/BRF..UTF8: New file.
2112 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2113 * iconvdata/Makefile: Add rules to build BRF.
2114 * iconvdata/TESTS: Add BRF entry.
2115 * iconvdata/gconv-modules: Likewise.
2116 * iconvdata/tst-tables.sh: Likewise.
2118 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
2120 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
2121 type `long long int', not `long int'.
2124 2007-01-18 Ulrich Drepper <drepper@redhat.com>
2126 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
2127 of values on 64-bit platforms which are too large.
2129 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
2130 Joe Kerian <jkerian@us.us.ibm.com>
2133 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
2134 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
2135 (__copysignl): Use signbit() for comparison.
2136 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
2137 SET_LDOUBLE_WORDS64.
2140 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
2141 (__ceill): Remove calls to fegetround(), fesetround().
2142 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
2143 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
2144 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
2146 2007-01-17 Jakub Jelinek <jakub@redhat.com>
2148 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
2150 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
2152 2007-01-17 Ulrich Drepper <drepper@redhat.com>
2154 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
2156 * csu/libc-start.c: Likewise.
2158 2007-01-16 Ulrich Drepper <drepper@redhat.com>
2160 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
2163 2007-01-15 Ulrich Drepper <drepper@redhat.com>
2165 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
2167 (handle_request): Remove unnecessary tests.
2169 * nscd/cache.c (cache_add): Record the failure to add to the cache.
2171 2007-01-15 Jakub Jelinek <jakub@redhat.com>
2173 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
2174 workbits in semi-raw fraction.
2176 * math/test-misc.c: Add new tests.
2178 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
2180 * math/basic-test.c: Include test-skeleton.c.
2181 (TEST_TRUNC): Define.
2182 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
2183 (main): Rename to ...
2184 (do_test): ...this. Run new tests.
2185 (TEST_FUNCTION): Define.
2187 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
2188 Joe Kerian <jkerian@us.us.ibm.com>
2191 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
2192 handling for high words.
2193 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
2194 and overflow for infinity.
2196 2007-01-15 Ulrich Drepper <drepper@redhat.com>
2198 * nscd/connections.c (handle_request): Add a __builtin_expect.
2200 * nscd/connections.c (serv2db): Change type into structure which
2201 also says whether this is a request for data. Renamed to
2202 servinfo. All users changed.
2203 (handle_request): Much simpler test whether we should search the cache.
2205 * nscd/connections.c (handle_request): Fix thinko in selinux test
2208 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
2209 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
2210 it before getting dl_load_lock and then relock.
2211 (_dl_lookup_symbol_x): Pass flags to add_dependency.
2212 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
2213 case we unlocked the scope.
2214 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
2215 _dl_lookup_symbol_x in case we locked the scope.
2216 (_dl_profile_fixup): Likewise.
2217 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
2218 set DL_LOOKUP_SCOPE_LOCK.
2220 2007-01-13 Ulrich Drepper <drepper@redhat.com>
2222 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
2223 CFLAGS-getsrvbynpt_r.c.
2224 * nscd/getsrvbynm_r.c: New file.
2225 * nscd/getsrvbypt_r.c: New file.
2226 * nscd/nscd_getserv_r.c: New file.
2227 * nscd/servicescache.c: New file.
2228 * nscd/Makefile (routines): Add nscd_getserv_r.
2229 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
2230 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
2231 CFLAGS-getsrvbypt_r.c.
2232 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
2233 table. Add entries for services database.
2234 * nscd/connections.c (serv2str): Mark as const. Add entries for
2236 (dbs): Add .reset_res and servdb initialization.
2237 (serv2db): Add entries for services database.
2238 (verify_persistent_db): Accept dbnr == servdb.
2239 (invalidate_cache): Rewrite database name recognition to use a table.
2240 Call res_init() if .reset_res is set for database.
2241 (handle_request): Add code to handle services database.
2242 * nscd/gai.c: Don't define __getservbyname_r.
2243 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
2244 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
2245 (serv_response_header): Define.
2246 (struct datahead): Add serv_response_header member.
2247 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
2249 * nscd/nscd.conf: Add entries for services database.
2250 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
2251 Declare serv_iov_disabled.
2252 Declare addservbyname, readdservbyname, addservbyport, and
2254 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
2255 (find_db): Fix error message.
2256 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
2257 __nscd_getservbyname_r, and __nscd_getservbyport_r.
2258 * nscd/selinux.c (perms): Add entries for services database.
2259 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
2260 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
2262 * nscd/grpcache.c: Remove obsolete code. Cleanups.
2263 * nscd/hstcache.c: Likewise.
2264 * nscd/pwdcache.c: Likewise.
2266 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
2267 computation of keylen.
2269 * include/string.h: Only redefine strndupa if this is really for
2272 2007-01-12 Ulrich Drepper <drepper@redhat.com>
2274 * nscd/nscd_gethst_r.c: Minor cleanups.
2276 * nscd/connections.c (handle_request): Check selinux permissions
2277 for all non-admin commands.
2279 * sysdeps/i386/i486/bits/atomic.h: Define
2280 atomic_compare_and_exchange_val_acq,
2281 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
2282 using __sync_* built-ins for gcc >= 4.1.
2283 * sysdeps/x86_64/bits/atomic.h: Likewise.
2286 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
2289 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
2291 * stdlib/tst-makecontext.c: Include errno.h. Change main()
2292 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
2293 (do_test): Check errno and exit(0) if ENOSYS.
2295 2007-01-11 Jakub Jelinek <jakub@redhat.com>
2297 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
2298 thousands separators.
2299 * stdlib/Makefile: Add rules to build and run tst-strtod4.
2300 * stdlib/tst-strtod4.c: New test.
2303 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
2304 hexadecimal digit should accept just the initial 0.
2305 * stdlib/tst-strtod2.c (tests): New variable.
2306 (do_test): Run several tests rather than just one.
2308 2007-01-11 Jakub Jelinek <jakub@redhat.com>
2310 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
2311 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
2313 2007-01-10 Ulrich Drepper <drepper@redhat.com>
2315 * io/fts.c: Make sure fts_cur is always valid after return from
2317 Patch by Miloslav Trmac <mitr@redhat.com>.
2319 2006-10-27 Richard Sandiford <richard@codesourcery.com>
2321 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
2322 (R_MIPS_NUM): Bump by 1.
2324 2007-01-03 Jakub Jelinek <jakub@redhat.com>
2326 * posix/execvp.c: Include alloca.h.
2327 (allocate_scripts_argv): Renamed to...
2328 (scripts_argv): ... this. Don't allocate buffer here nor count
2330 (execvp): Use alloca if possible.
2331 * posix/Makefile: Add rules to build and run tst-vfork3 test.
2332 * posix/tst-vfork3.c: New test.
2334 2007-01-03 Ulrich Drepper <drepper@redhat.com>
2336 * string/Makefile (tst-strxfrm2-ENV): Define.
2337 * stdlib/Makefile (tst-strtod3-ENV): Define.
2339 2007-01-02 Ulrich Drepper <drepper@redhat.com>
2341 * posix/getconf.c: Update copyright year.
2342 * nss/getent.c: Likewise.
2343 * iconv/iconvconfig.c: Likewise.
2344 * iconv/iconv_prog.c: Likewise.
2345 * elf/ldconfig.c: Likewise.
2346 * catgets/gencat.c: Likewise.
2347 * csu/version.c: Likewise.
2348 * elf/ldd.bash.in: Likewise.
2349 * elf/sprof.c (print_version): Likewise.
2350 * locale/programs/locale.c: Likewise.
2351 * locale/programs/localedef.c: Likewise.
2352 * nscd/nscd.c (print_version): Likewise.
2353 * debug/xtrace.sh: Likewise.
2354 * malloc/memusage.sh: Likewise.
2355 * malloc/mtrace.pl: Likewise.
2356 * debug/catchsegv.sh: Likewise.
2358 2006-12-24 Ulrich Drepper <drepper@redhat.com>
2360 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
2363 2006-12-23 Ulrich Drepper <drepper@redhat.com>
2365 * posix/wordexp.c: Remove some unnecessary tests.
2367 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
2369 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
2370 blacklist the group till after we look it up.
2372 2006-12-21 Ulrich Drepper <drepper@redhat.com>
2374 * include/atomic.h (atomic_forced_read): New macro.
2376 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
2378 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
2380 2006-12-19 Jakub Jelinek <jakub@redhat.com>
2382 * nss/getXXbyYY_r.c: Include atomic.h.
2383 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
2384 add atomic_write_barrier () in between.
2386 * stdlib/Makefile (tests): Add tst-makecontext.
2387 * stdlib/tst-makecontext.c: New test.
2389 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
2390 (__makecontext): Don't realign uc_mcontext.uc_regs.
2392 2006-11-28 Jakub Jelinek <jakub@redhat.com>
2394 * elf/dl-support.c: Include dl-procinfo.h.
2395 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
2396 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
2397 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
2399 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
2400 hardcoded constants.
2401 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
2402 PPC_PLATFORM_* macros for array designators.
2404 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
2406 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
2407 names to the beginning.
2408 (_dl_powerpc_platforms): Add "power6x".
2409 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
2410 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
2411 (_DL_PLATFORMS_COUNT): Increase.
2412 (_dl_string_platform): Handle power6x case.
2413 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
2414 PPC_FEATURE_POWER6_EXT): Define.
2415 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
2417 2006-12-18 Jakub Jelinek <jakub@redhat.com>
2420 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
2421 [-2^31 .. 2^31) range.
2422 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
2424 * stdlib/tst-rand48-2.c: New test.
2425 * stdlib/Makefile (tests): Add tst-rand48-2.
2427 2006-12-14 Jakub Jelinek <jakub@redhat.com>
2429 * misc/tst-pselect.c (do_test): Fix sigblock argument.
2431 2006-12-14 Ulrich Drepper <drepper@redhat.com>
2433 * misc/tst-pselect.c (do_test): Make sure the helper process is
2434 terminating when the test is aborted.
2436 2006-12-13 Ulrich Drepper <drepper@redhat.com>
2438 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
2439 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2440 Handle relatime mount option.
2443 * libio/Makefile (tests): Add tst-setvbuf1.
2444 * libio/tst-setvbuf1.c: New file.
2446 2006-12-08 Jakub Jelinek <jakub@redhat.com>
2449 * libio/genops.c (__uflow): Fix a typo.
2450 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
2451 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
2452 the narrow buffer size.
2454 2006-11-24 Jakub Jelinek <jakub@redhat.com>
2457 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
2458 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
2459 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
2461 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
2462 _IO_wstr_finish): Likewise.
2463 * libio/wmemstream.c (open_wmemstream): Likewise.
2464 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
2465 even for wide streams.
2467 2006-12-13 Jakub Jelinek <jakub@redhat.com>
2469 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
2472 2006-12-11 Ulrich Drepper <drepper@redhat.com>
2474 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
2475 separators also if no non-zero digits found.
2476 * stdlib/Makefile (tests): Add tst-strtod3.
2478 2006-12-09 Ulrich Drepper <drepper@redhat.com>
2481 * include/features.h: Fix comment about default value for
2485 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
2486 empty parsed strings.
2487 * stdlib/Makefile (tests): Add tst-strtod2.
2488 * stdlib/tst-strtod2.c: New file.
2491 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
2493 * stdlib/Makefile (tests): Add tst-atof2.
2494 * stdlib/tst-atof2.c: New file.
2497 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
2498 correctly if removing trailing zero of hex-float.
2499 * stdlib/Makefile (tests): Add tst-atof1.
2500 * stdlib/tst-atof1.c: New file.
2502 2006-12-09 Jakub Jelinek <jakub@redhat.com>
2504 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
2505 Start searching for next comma at p rather than rest.
2506 * misc/Makefile (tests): Add tst-mntent2.
2507 * misc/tst-mntent2.c: New test.
2509 * misc/getusershell.c (initshells): Check for integer overflows.
2510 Make strings buffer one bigger as fgets always succeeds when second
2511 argument is 1. Don't use calloc for shells array. Disallow
2514 2006-12-08 Ulrich Drepper <drepper@redhat.com>
2516 * malloc/memusage.c: Handle realloc with new size of zero and
2517 non-NULL pointer correctly.
2518 (me): Really write first record twice.
2519 (struct entry): Make format bi-arch safe.
2520 (dest): Write out more realloc statistics.
2521 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
2523 2006-12-05 Jakub Jelinek <jakub@redhat.com>
2525 * nis/nis_subr.c (nis_getnames): Revert last change.
2527 2006-12-04 Jakub Jelinek <jakub@redhat.com>
2529 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
2530 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
2531 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
2532 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
2534 * io/Makefile: Add rules to build and run tst-ttyname_r test.
2535 * io/tst-ttyname_r.c: New test.
2537 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2539 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
2541 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
2543 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
2546 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2548 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
2549 `clone' function to ensure proper unwinding stop of gdb.
2550 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2552 2006-12-01 Ulrich Drepper <drepper@redhat.com>
2554 * nscd/nscd.init: Remove obsolete and commented-out -S option
2557 2006-11-23 Jakub Jelinek <jakub@redhat.com>
2560 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
2563 * manual/string.texi (strtok): Remove duplicate paragraph.
2565 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2567 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
2568 libgcc not supporting `rflags' unwinding (register # >= 17).
2570 2006-11-30 Jakub Jelinek <jakub@redhat.com>
2572 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
2575 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
2576 Jakub Jelinek <jakub@redhat.com>
2577 Jan Kratochvil <jan.kratochvil@redhat.com>
2579 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
2581 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
2582 'restore_rt' even in the 'signal' directory.
2583 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
2585 2006-11-27 Jakub Jelinek <jakub@redhat.com>
2588 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
2589 malloc crashed. Don't allocate memory unnecessarily in each
2592 2006-10-21 Jakub Jelinek <jakub@redhat.com>
2594 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
2596 2006-11-20 Ulrich Drepper <drepper@redhat.com>
2598 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
2600 2006-11-18 Bruno Haible <bruno@clisp.org>
2602 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
2603 __sysconf only after having tried to call getgroups32.
2605 2006-11-19 Ulrich Drepper <drepper@redhat.com>
2607 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
2608 addresses for IPv4 queries if they can be mapped.
2610 2006-11-16 Jakub Jelinek <jakub@redhat.com>
2612 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
2613 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
2614 (signmask): Add .size directive.
2615 (othermask): Add .type directive.
2617 2006-11-14 Ulrich Drepper <drepper@redhat.com>
2619 * po/nl.po: Update from translation team.
2621 * timezone/zdump.c: Redo fix for BZ #3137.
2623 2006-11-14 Jakub Jelinek <jakub@redhat.com>
2625 * nss/nss_files/files-alias.c (get_next_alias): Set line back
2626 to first_unused after parsing :include: file.
2628 2006-11-10 Ulrich Drepper <drepper@redhat.com>
2630 * timezone/africa: Update from tzdata2006o.
2631 * timezone/antarctica: Likewise.
2632 * timezone/asia: Likewise.
2633 * timezone/australasia: Likewise.
2634 * timezone/backward: Likewise.
2635 * timezone/europe: Likewise.
2636 * timezone/iso3166.tab: Likewise.
2637 * timezone/northamerica: Likewise.
2638 * timezone/southamerica: Likewise.
2639 * timezone/zone.tab: Likewise.
2641 * time/tzfile.c (__tzfile_read): Extend to handle new file format
2642 on machines with 64-bit time_t.
2644 * timezone/checktab.awk: Update from tzcode2006o.
2645 * timezone/ialloc.c: Likewise.
2646 * timezone/private.h: Likewise.
2647 * timezone/scheck.c: Likewise.
2648 * timezone/tzfile.h: Likewise.
2649 * timezone/tzselect.ksh: Likewise.
2650 * timezone/zdump.c: Likewise.
2651 * timezone/zic.c: Likewise.
2654 * elf/ldconfig.c (main): Call setlocale and textdomain.
2655 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
2658 * manual/argp.texi: Fix typos.
2659 * manual/charset.texi: Likewise.
2660 * manual/errno.texi: Likewise.
2661 * manual/filesys.texi: Likewise.
2662 * manual/lang.texi: Likewise.
2663 * manual/maint.texi: Likewise.
2664 * manual/memory.texi: Likewise.
2665 * manual/message.texi: Likewise.
2666 * manual/resource.texi: Likewise.
2667 * manual/search.texi: Likewise.
2668 * manual/signal.texi: Likewise.
2669 * manual/startup.texi: Likewise.
2670 * manual/stdio.texi: Likewise.
2671 * manual/sysinfo.texi: Likewise.
2672 * manual/syslog.texi: Likewise.
2673 * manual/time.texi: Likewise.
2674 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2677 * sunrpc/clnt_raw.c: Minimal message improvements.
2678 * sunrpc/pm_getmaps.c: Likewise.
2679 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
2680 * nis/nis_print_group_entry.c: Likewise.
2681 * locale/programs/repertoire.c: Likewise.
2682 * locale/programs/charmap.c: Likewise.
2683 * malloc/memusage.sh: Likewise.
2684 * elf/dl-deps.c: Likewise.
2685 * locale/programs/ld-collate.c: Likewise.
2686 * libio/vswprintf.c: Likewise.
2687 * malloc/memusagestat.c: Likewise.
2688 * sunrpc/auth_unix.c: Likewise.
2689 * sunrpc/rpc_main.c: Likewise.
2690 * nscd/cache.c: Likewise.
2691 * locale/programs/repertoire.c: Unify output messages.
2692 * locale/programs/charmap.c: Likewise.
2693 * locale/programs/ld-ctype.c: Likewise.
2694 * locale/programs/ld-monetary.c: Likewise.
2695 * locale/programs/ld-numeric.c: Likewise.
2696 * locale/programs/ld-time.c: Likewise.
2697 * elf/ldconfig.c: Likewise.
2698 * nscd/selinux.c: Likewise.
2699 * elf/cache.c: Likewise.
2700 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
2703 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
2707 2006-11-10 Jakub Jelinek <jakub@redhat.com>
2709 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
2710 if N is one bigger than return value.
2711 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
2712 and l1 last arguments, if buf is defined, verify the return value
2713 equals to strlen (buf) and verify no byte beyond passed length
2716 2006-11-10 Ulrich Drepper <drepper@redhat.com>
2718 * po/sv.po: Update from translation team.
2720 2006-11-09 Ulrich Drepper <drepper@redhat.com>
2722 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
2725 2006-11-10 Jakub Jelinek <jakub@redhat.com>
2727 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
2730 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
2731 Use __new_sys_siglist instead of _sys_siglist_internal as
2732 second macro argument.
2733 (_old_sys_siglist): Use declare_symbol_alias macro instead of
2736 2006-11-09 Ulrich Drepper <drepper@redhat.com>
2739 * posix/unistd.h (sysconf): Remove const attribute.
2741 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
2742 temporary or deprecated addresses.
2743 Patch by Sridhar Samudrala <sri@us.ibm.com>.
2745 * string/Makefile (tests): Add tst-strxfrm2.
2746 * string/tst-strxfrm2.c: New file.
2748 2006-10-09 Jakub Jelinek <jakub@redhat.com>
2750 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
2751 rather than r->r_brk.
2753 2006-11-08 Jakub Jelinek <jakub@redhat.com>
2755 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
2756 optimization even if needed > n.
2758 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
2759 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
2760 return false, otherwise return true.
2761 (cache_rpath): Return decompose_rpath return value.
2763 2006-11-07 Jakub Jelinek <jakub@redhat.com>
2765 * include/libc-symbols.h (declare_symbol): Rename to...
2766 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
2767 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
2769 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
2771 * sysdeps/gnu/siglist.c: Likewise.
2773 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
2775 * sysdeps/powerpc/fpu/bits/mathinline.h
2776 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
2777 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
2779 2006-11-05 Ulrich Drepper <drepper@redhat.com>
2781 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
2782 Update handling of cache descriptor 0x49 for new models.
2783 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
2786 2006-11-02 Jakub Jelinek <jakub@redhat.com>
2788 * malloc/memusage.c (dest): Reset not_me back to false after
2789 printing statistics.
2791 2006-11-02 Ulrich Drepper <drepper@redhat.com>
2793 * configure.in: Work around ld --help change and avoid -z relro
2794 test completely if the architecture doesn't care about security.
2796 2006-11-01 Ulrich Drepper <drepper@redhat.com>
2798 * po/sv.po: Update from translation team.
2800 2006-10-31 Ulrich Drepper <drepper@redhat.com>
2802 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
2803 generate compatibility version.
2805 2006-10-29 Ulrich Drepper <drepper@redhat.com>
2807 * configure.in: Relax -z relro requirement a bit.
2809 * po/sv.po: Update from translation team.
2811 2006-10-29 Jakub Jelinek <jakub@redhat.com>
2813 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
2814 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
2815 * elf/dl-close.c (_dl_close_worker): Likewise.
2816 * elf/dl-open.c (_dl_open_worker): Likewise.
2817 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
2819 2006-10-27 Ulrich Drepper <drepper@redhat.com>
2821 * configure.in: Require assembler support for visibility, compiler
2822 support for visibility and aliases, linker support for various -z
2824 * Makeconfig: Remove conditional code which now is unnecessary.
2825 * config.h.in: Likewise.
2826 * config.make.in: Likewise.
2827 * dlfcn/Makefile: Likewise.
2828 * elf/Makefile: Likewise.
2829 * elf/dl-load.c: Likewise.
2830 * elf/rtld.c: Likewise.
2831 * include/libc-symbols.h: Likewise.
2832 * include/stdio.h: Likewise.
2833 * io/Makefile: Likewise.
2834 * io/fstat.c: Likewise.
2835 * io/fstat64.c: Likewise.
2836 * io/fstatat.c: Likewise.
2837 * io/fstatat64.c: Likewise.
2838 * io/lstat.c: Likewise.
2839 * io/lstat64.c: Likewise.
2840 * io/mknod.c: Likewise.
2841 * io/mknodat.c: Likewise.
2842 * io/stat.c: Likewise.
2843 * io/stat64.c: Likewise.
2844 * libio/stdio.c: Likewise.
2845 * nscd/Makefile: Likewise.
2846 * stdlib/Makefile: Likewise.
2847 * stdlib/atexit.c: Likewise.
2848 * sysdeps/generic/ldsodefs.h: Likewise.
2849 * sysdeps/i386/dl-machine.h: Likewise.
2850 * sysdeps/i386/sysdep.h: Likewise.
2851 * sysdeps/i386/i686/memcmp.S: Likewise.
2852 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2853 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2854 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2856 * Makerules: USE_TLS support is now default.
2857 * tls.make.c: Likewise.
2858 * csu/Versions: Likewise.
2859 * csu/libc-start.c: Likewise.
2860 * csu/libc-tls.c: Likewise.
2861 * csu/version.c: Likewise.
2862 * dlfcn/dlinfo.c: Likewise.
2863 * elf/dl-addr.c: Likewise.
2864 * elf/dl-cache.c: Likewise.
2865 * elf/dl-close.c: Likewise.
2866 * elf/dl-iteratephdr.c: Likewise.
2867 * elf/dl-load.c: Likewise.
2868 * elf/dl-lookup.c: Likewise.
2869 * elf/dl-object.c: Likewise.
2870 * elf/dl-open.c: Likewise.
2871 * elf/dl-reloc.c: Likewise.
2872 * elf/dl-support.c: Likewise.
2873 * elf/dl-sym.c: Likewise.
2874 * elf/dl-sysdep.c: Likewise.
2875 * elf/dl-tls.c: Likewise.
2876 * elf/ldconfig.c: Likewise.
2877 * elf/rtld.c: Likewise.
2878 * elf/tst-tls-dlinfo.c: Likewise.
2879 * elf/tst-tls1.c: Likewise.
2880 * elf/tst-tls10.h: Likewise.
2881 * elf/tst-tls14.c: Likewise.
2882 * elf/tst-tls2.c: Likewise.
2883 * elf/tst-tls3.c: Likewise.
2884 * elf/tst-tls4.c: Likewise.
2885 * elf/tst-tls5.c: Likewise.
2886 * elf/tst-tls6.c: Likewise.
2887 * elf/tst-tls7.c: Likewise.
2888 * elf/tst-tls8.c: Likewise.
2889 * elf/tst-tls9.c: Likewise.
2890 * elf/tst-tlsmod1.c: Likewise.
2891 * elf/tst-tlsmod13.c: Likewise.
2892 * elf/tst-tlsmod13a.c: Likewise.
2893 * elf/tst-tlsmod14a.c: Likewise.
2894 * elf/tst-tlsmod2.c: Likewise.
2895 * elf/tst-tlsmod3.c: Likewise.
2896 * elf/tst-tlsmod4.c: Likewise.
2897 * elf/tst-tlsmod5.c: Likewise.
2898 * elf/tst-tlsmod6.c: Likewise.
2899 * include/errno.h: Likewise.
2900 * include/link.h: Likewise.
2901 * include/tls.h: Likewise.
2902 * locale/global-locale.c: Likewise.
2903 * locale/localeinfo.h: Likewise.
2904 * malloc/arena.c: Likewise.
2905 * malloc/hooks.c: Likewise.
2906 * malloc/malloc.c: Likewise.
2907 * resolv/Versions: Likewise.
2908 * sysdeps/alpha/dl-machine.h: Likewise.
2909 * sysdeps/alpha/libc-tls.c: Likewise.
2910 * sysdeps/generic/ldsodefs.h: Likewise.
2911 * sysdeps/generic/tls.h: Likewise.
2912 * sysdeps/i386/dl-machine.h: Likewise.
2913 * sysdeps/ia64/dl-machine.h: Likewise.
2914 * sysdeps/ia64/libc-tls.c: Likewise.
2915 * sysdeps/mach/hurd/fork.c: Likewise.
2916 * sysdeps/mach/hurd/i386/tls.h: Likewise.
2917 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
2918 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
2919 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
2920 * sysdeps/s390/libc-tls.c: Likewise.
2921 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2922 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2923 * sysdeps/sh/dl-machine.h: Likewise.
2924 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2925 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2926 * sysdeps/x86_64/dl-machine.h: Likewise.
2928 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
2929 split out locking and parameter checking.
2930 (_dl_close): Call _dl_close_worker after locking and checking.
2931 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
2933 * elf/Makefile: Add rules to build and run tst-thrlock.
2934 * elf/tst-thrlock.c: New file.
2937 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
2941 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
2942 we are sure we do not need it anymore for _dl_close. Also move
2943 the asserts inside the lock region.
2944 Patch mostly by Suzuki <suzuki@in.ibm.com>.
2946 2006-10-27 Jakub Jelinek <jakub@redhat.com>
2948 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
2950 (_dl_lookup_symbol_x): Adjust caller.
2952 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
2954 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
2956 * elf/dl-libc.c: Revert l_scope name changes.
2957 * elf/dl-load.c: Likewise.
2958 * elf/dl-object.c: Likewise.
2959 * elf/rtld.c: Likewise.
2960 * elf/dl-close.c (_dl_close): Likewise.
2961 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
2962 always use __rtld_mrlock_{change,done}. Always free old scope list
2963 here if not l_scope_mem.
2964 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
2965 change. Never free scope list here. Just __rtld_mrlock_lock before
2966 the lookup and __rtld_mrlock_unlock it after the lookup.
2967 * elf/dl-sym.c: Likewise.
2968 * include/link.h (struct r_scoperec): Remove.
2969 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
2970 with l_scope_mem and l_scoperec_lock with l_scope_lock.
2972 2006-10-25 Ulrich Drepper <drepper@redhat.com>
2974 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
2976 2006-10-18 Ulrich Drepper <drepper@redhat.com>
2978 * configure.in: Disable building profile libraries by default.
2980 2006-10-17 Jakub Jelinek <jakub@redhat.com>
2982 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
2983 as signed longs, check for x_base + pos overflow.
2984 * sunrpc/Makefile (tests): Add tst-xdrmem2.
2985 * sunrpc/tst-xdrmem2.c: New test.
2987 2006-10-18 Ulrich Drepper <drepper@redhat.com>
2989 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
2990 _dl_lookup_symbol_x code.
2992 2006-10-17 Jakub Jelinek <jakub@redhat.com>
2994 * elf/dl-runtime.c: Include sysdep-cancel.h.
2995 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
2996 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
2997 instead of catomic_* macros.
2998 * elf/dl-sym.c: Include sysdep-cancel.h.
2999 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
3000 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
3001 * elf/dl-close.c: Include sysdep-cancel.h.
3002 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
3003 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
3004 * elf/dl-open.c: Include sysdep-cancel.h.
3005 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
3006 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
3008 2006-10-17 Jakub Jelinek <jakub@redhat.com>
3011 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
3012 fastbin rather than end of fastbin array.
3014 2006-10-18 Ulrich Drepper <drepper@redhat.com>
3016 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
3018 * sysdeps/x86_64/bits/atomic.h
3019 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
3020 (catomic_decrement): Use correct body macro.
3022 2006-10-17 Jakub Jelinek <jakub@redhat.com>
3024 * include/atomic.h: Add a unique prefix to all local variables
3026 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
3028 2006-10-16 Ulrich Drepper <drepper@redhat.com>
3031 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
3034 2006-10-14 Ulrich Drepper <drepper@redhat.com>
3036 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
3038 2006-10-13 Ulrich Drepper <drepper@redhat.com>
3041 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
3042 determine highest fast bin to consolidate, always look into all of
3044 (do_check_malloc_state): Only require for empty bins for large
3045 sizes in main arena.
3047 * libio/stdio.h: Add more __wur attributes.
3049 * elf/dl-minimal.c (realloc): Optimize last patch.
3051 2006-10-12 Richard Sandiford <richard@codesourcery.com>
3054 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
3055 and use memcpy() if it does.
3057 2006-11-12 Andreas Jaeger <aj@suse.de>
3060 * manual/search.texi (Hash Search Function): Clarify.
3061 (Array Search Function): Clarify.
3063 2006-11-12 Joseph Myers <joseph@codesourcery.com>
3066 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
3068 * math/atest-exp2.c (read_mpn_hex): Likewise.
3069 * math/atest-sincos.c (main): Likewise.
3071 2006-10-11 Ulrich Drepper <drepper@redhat.com>
3073 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
3074 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
3075 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
3077 * Versions.def: Add GLIBC_2.6 for libc.
3079 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
3081 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
3083 2006-10-11 Jakub Jelinek <jakub@redhat.com>
3085 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
3087 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
3089 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
3090 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
3092 2006-10-11 Ulrich Drepper <drepper@redhat.com>
3094 * include/atomic.c: Define catomic_* operations.
3095 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
3096 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
3097 * malloc/memusage.c: Likewise.
3098 * gmon/mcount.c: Likewise.
3099 * elf/dl-close.c: Likewise.
3100 * elf/dl-open.c: Likewise.
3101 * elf/dl-profile.c: Likewise.
3102 * elf/dl-sym.c: Likewise.
3103 * elf/dl-runtime.c: Likewise.
3104 * elf/dl-fptr.c: Likewise.
3105 * resolv/res_libc.c: Likewise.
3107 2006-10-10 Ulrich Drepper <drepper@redhat.com>
3109 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
3110 components which lack them.
3112 * nis/nis_subr.c (nis_getnames): Make sure that we always return
3113 at least one entry consisting of the parameter concatenated with
3116 2006-10-10 Roland McGrath <roland@frob.com>
3118 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
3119 * sysdeps/mach/hurd/futimes.c: Likewise.
3120 * sysdeps/mach/hurd/lutimes.c: Likewise.
3122 2006-10-09 Ulrich Drepper <drepper@redhat.com>
3123 Jakub Jelinek <jakub@redhat.com>
3125 Implement reference counting of scope records.
3126 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
3127 from the list in objects which remain. Always allocate new scope
3129 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
3130 don't resize, allocate a new one.
3131 * elf/dl-runtime.c: Update reference counters before using a scope
3133 * elf/dl-sym.c: Likewise.
3134 * elf/dl-libc.c: Adjust for l_scope name change.
3135 * elf/dl-load.c: Likewise.
3136 * elf/dl-object.c: Likewise.
3137 * elf/rtld.c: Likewise.
3138 * include/link.h: Include <rtld-lowlevel.h>. Define struct
3139 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
3140 Add l_scoperec_lock.
3141 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
3142 * sysdeps/generic/rtld-lowlevel.h: New file.
3144 * include/atomic.h: Rename atomic_and to atomic_and_val and
3145 atomic_or to atomic_or_val. Define new macros atomic_and and
3146 atomic_or which do not return values.
3147 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
3149 * sysdeps/i386/i486/bits/atomic.h: Likewise.
3151 * po/sv.po: Update from translation team.
3153 2006-10-07 Ulrich Drepper <drepper@redhat.com>
3155 * Versions.def: Add GLIBC_2.6 to libpthread.
3157 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
3158 (versioned_symbol): Likewise.
3159 (compat_symbol): Likewise.
3161 * po/tr.po: Update from translation team.
3163 2006-10-06 Ulrich Drepper <drepper@redhat.com>
3165 * nis/Banner: Removed. It's been integral part forever and the
3166 author info is incomplete anyway.
3167 * libio/Banner: Likewise.
3169 * nis/nis_table.c (nis_list): If __follow_path fails in the new
3170 code, make sure the nis_freeresult call doesn't crash and that the
3171 result is reported correctly.
3173 2006-09-27 Jakub Jelinek <jakub@redhat.com>
3175 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
3176 when callback is NULL.
3178 * nis/Versions (libnss_nisplus): Add
3179 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
3180 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
3181 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
3182 _nss_create_tablename): Rename to...
3183 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
3184 ... these. No longer static.
3185 (internal_setgrent): Adjust users.
3186 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
3187 Don't use locking around _nss_grp_create_tablename call.
3188 * nis/nss_nisplus/nisplus-initgroups.c: New file.
3190 2006-10-06 Ulrich Drepper <drepper@redhat.com>
3192 * version.h (VERSION): Bump to 2.5.90 for new development tree.
3194 2006-10-06 Andreas Jaeger <aj@suse.de>
3196 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
3198 2006-10-06 Ulrich Drepper <drepper@redhat.com>
3200 * po/pl.po: Update from translation team.
3202 * nscd/nscd.c (main): Fix typo in message.
3203 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
3205 2006-10-02 Jakub Jelinek <jakub@redhat.com>
3208 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
3209 errno.h, signal.h, unistd.h and sysdep-cancel.h.
3210 (__sigprocmask): Define.
3212 2006-10-02 Ulrich Drepper <drepper@redhat.com>
3214 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
3217 2006-10-02 Jakub Jelinek <jakub@redhat.com>
3219 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
3220 in oldtotal and newtotal calculation.
3221 * nscd/nscd-client.h (struct mapped_database): Add datasize
3223 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
3224 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
3226 (__nscd_cache_search): Add checks to make sure we never reference
3227 data beyond the current mapping.
3229 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
3231 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
3232 variables const to avoid compiler warnings.
3234 * io/fts.c (fts_close): Remove redundant checks.
3235 (fts_build): Likewise.
3236 (fts_palloc): Likewise.
3238 * manual/message.texi (Advanced gettext functions,
3239 Using gettextized software): Fix typos.
3241 2006-09-30 Ulrich Drepper <drepper@redhat.com>
3243 * posix/glob.c (glob_in_dir): Add some comments and asserts to
3244 explain why there are no leaks.
3246 2006-09-29 Ulrich Drepper <drepper@redhat.com>
3248 * libio/wmemstream.c: Include <wchar.h>.
3249 * libio/bug-wmemstream1.c: Likewise.
3250 * libio/tst-wmemstream1.c: Likewise.
3251 * libio/tst-wmemstream2.c: Likewise.
3253 * version.h (RELEASE): Bump to 2.5.
3254 * README: Regenerated.
3256 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
3259 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
3260 found no group members.
3261 Patch by Petr Baudis.
3263 2006-09-29 Jakub Jelinek <jakub@redhat.com>
3265 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
3266 assert bootstrap_map.l_tls_modid is zero.
3267 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
3270 2006-09-27 Ulrich Drepper <drepper@redhat.com>
3272 * libio/stdio.h: Move open_wmemstream prototype to ...
3273 * wcsmbs/wchar.h: ... here.
3275 2006-09-25 Jakub Jelinek <jakub@redhat.com>
3278 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
3279 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
3280 __{,l}chown to handle the rest.
3281 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
3282 fchownat syscall and __ASSUME_32BITUIDS case inline, call
3283 __{,l}chown to handle the rest.
3284 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
3286 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
3287 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
3290 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
3291 time, rather allocate increasingly bigger arrays of pointers, if
3292 possible with alloca, if too large with malloc.
3294 2006-09-24 Jakub Jelinek <jakub@redhat.com>
3296 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
3298 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
3300 2006-09-24 Ulrich Drepper <drepper@redhat.com>
3302 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
3304 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
3305 IFA_F_HOMEADDRESS flag for interfaces.
3306 * include/ifaddrs.h (struct in6addrinfo): Define
3309 2006-09-21 Jakub Jelinek <jakub@redhat.com>
3312 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
3313 PTR_DEMANGLE3): Define.
3314 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
3315 PTR_DEMANGLE3): Likewise.
3316 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
3317 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3319 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
3321 2006-09-20 Jakub Jelinek <jakub@redhat.com>
3323 * po/libc.pot: Regenerated.
3324 * po/be.po: Updated.
3325 * po/ca.po: Likewise.
3326 * po/cs.po: Likewise.
3327 * po/da.po: Likewise.
3328 * po/de.po: Likewise.
3329 * po/el.po: Likewise.
3330 * po/en_GB.po: Likewise.
3331 * po/es.po: Likewise.
3332 * po/fi.po: Likewise.
3333 * po/fr.po: Likewise.
3334 * po/gl.po: Likewise.
3335 * po/hr.po: Likewise.
3336 * po/hu.po: Likewise.
3337 * po/ja.po: Likewise.
3338 * po/ko.po: Likewise.
3339 * po/nb.po: Likewise.
3340 * po/nl.po: Likewise.
3341 * po/pl.po: Likewise.
3342 * po/pt_BR.po: Likewise.
3343 * po/ru.po: Likewise.
3344 * po/rw.po: Likewise.
3345 * po/sk.po: Likewise.
3346 * po/sv.po: Likewise.
3347 * po/tr.po: Likewise.
3348 * po/zh_CN.po: Likewise.
3349 * po/zh_TW.po: Likewise.
3352 * iconv/iconv_prog.c (main): Fix spelling in error message.
3353 * iconv/iconvconfig.c (main): Likewise.
3354 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
3355 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
3356 * locale/programs/localedef.c (main): Likewise.
3357 * locale/programs/repertoire.c (repertoire_read): Likewise.
3358 * timezone/zdump.c (main): Likewise.
3359 * nscd/connections.c (handle_request): Fix spelling in log message.
3360 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
3362 2006-09-20 Ulrich Drepper <drepper@redhat.com>
3364 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
3367 2006-09-20 Andreas Jaeger <aj@suse.de>
3369 * math/libm-test.inc (lrint_test_upward): Fix typo.
3371 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
3374 * math/libm-test.inc (lrint_test_tonearest): New function.
3375 (lrint_test_towardzero): New function.
3376 (lrint_test_downward): New function.
3377 (lrint_test_upward): New function.
3378 (main): Run these new tests.
3379 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
3380 of values near to 0.
3381 (two52): Use double not long double.
3382 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
3383 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
3384 (two23): Use float not double.
3385 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
3386 (two23): Use float not double.
3387 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
3388 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
3389 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
3390 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
3392 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
3394 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
3395 Cast sp to unsigned long to avoid compiler warning.
3396 Use __makecontext_ret function instead of a trampoline on the stack.
3397 (__makecontext_ret): New function.
3398 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
3400 2006-09-19 Jakub Jelinek <jakub@redhat.com>
3402 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
3403 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
3406 2006-09-19 Ulrich Drepper <drepper@redhat.com>
3408 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
3409 sure no reference to the unloaded map's search list remains in the
3412 2006-09-16 Jakub Jelinek <jakub@redhat.com>
3414 * elf/Makefile: Add rules to build and run unload7 test.
3415 * elf/unload7.c: New test.
3416 * elf/unload7mod1.c: New file.
3417 * elf/unload7mod2.c: New file.
3419 2006-09-18 Jakub Jelinek <jakub@redhat.com>
3421 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
3422 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
3423 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
3424 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
3425 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
3426 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
3427 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
3428 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
3429 PTRACE_GETEVENTMSG): Likewise.
3430 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
3433 2006-09-17 Mike Frysinger <vapier@gentoo.org>
3435 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
3436 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
3437 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
3438 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
3440 2006-09-16 Jakub Jelinek <jakub@redhat.com>
3442 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
3443 write '\0' to the fd.
3444 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
3445 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
3446 Change regs to unsigned long pointer from unsigned int, fix fscr
3449 2006-09-14 Jakub Jelinek <jakub@redhat.com>
3451 * io/Makefile (CFLAGS-fstatat.c): Set.
3452 (CFLAGS-fstatat64.c): Likewise.
3453 (CFLAGS-mknodat.c): Likewise.
3455 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
3456 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
3457 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
3458 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
3460 2006-09-14 Jakub Jelinek <jakub@redhat.com>
3461 Steven Munroe <sjmunroe@us.ibm.com>
3463 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
3464 names to the beginning. Rename "cell" to "cellbe".
3465 (_dl_powerpc_platforms): New.
3466 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
3467 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
3468 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
3469 (_DL_HWCAP_PLATFORM): Define to new mask.
3470 (_dl_platform_string, _dl_string_platform): New functions.
3471 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
3472 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
3474 2006-09-12 Jakub Jelinek <jakub@redhat.com>
3477 * README.libm: Fix a thinko in sqrt algorithm description.
3480 * manual/string.texi (argz_delete): Fix prototype.
3481 Patch by <alpt@freaknet.org>.
3483 2006-08-26 Joseph Myers <joseph@codesourcery.com>
3486 * io/test-lfs.c (do_prepare): Give name_len type size_t.
3487 * io/tst-fcntl.c (do_prepare): Likewise.
3488 * posix/tst-exec.c (do_prepare): Likewise.
3489 * posix/tst-preadwrite.c (do_prepare): Likewise.
3490 * posix/tst-spawn.c (do_prepare): Likewise.
3491 * posix/tst-truncate.c (do_prepare): Likewise.
3492 * rt/tst-aio.c (do_prepare): Likewise.
3493 * rt/tst-aio64.c (do_prepare): Likewise.
3494 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
3497 2006-09-09 Ulrich Drepper <drepper@redhat.com>
3500 * time/mktime.c (guess_time_tm): Fix overflow detection.
3501 * time/Makefile (tests): Add bug-mktime1.
3502 * time/bug-mktime1.c: New file.
3505 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
3508 2006-09-07 Jakub Jelinek <jakub@redhat.com>
3511 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
3512 Ensure relocation doesn't clobber any bits outside of the
3513 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
3514 R_SPARC_HI22 and R_SPARC_H44.
3517 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
3518 (long) (MINSIZE + nb - old_size) is positive.
3520 * malloc/arena.c (grow_heap): When growing bail even if new_size
3524 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
3527 2006-09-06 Jakub Jelinek <jakub@redhat.com>
3529 * posix/regex_internal.c (re_string_reconstruct): Handle
3530 offset < pstr->valid_raw_len && pstr->offsets_needed case.
3531 Ensure no bytes read before raw_mbs array. Pass a saved copy of
3532 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
3533 re_string_context_at.
3534 * posix/Makefile: Add rules to build and run bug-regex26 test.
3535 * posix/bug-regex26.c: New test.
3537 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
3538 rather than col_sym_free. Move seqp declaration earlier.
3540 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
3542 2006-09-05 Jakub Jelinek <jakub@redhat.com>
3544 * nscd/initgrcache.c (addinitgroupsX): Move any_success
3545 decl before first goto out.
3547 2006-09-04 Jakub Jelinek <jakub@redhat.com>
3549 * Makerules (shlib.lds): If have-hash-style, put .hash section
3550 at the end of the RO segment.
3552 2006-09-04 Ulrich Drepper <drepper@redhat.com>
3554 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
3555 style hash table format is used.
3557 2006-09-04 Jakub Jelinek <jakub@redhat.com>
3559 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
3560 randomization rather than before.
3561 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
3563 2006-08-31 Jakub Jelinek <jakub@redhat.com>
3565 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
3567 * malloc/malloc.c (_int_malloc): Use full list insert and not
3568 shortcut which assumes the list is empty for large requests
3571 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
3573 2006-08-30 Jakub Jelinek <jakub@redhat.com>
3575 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
3576 and offout arguments to the prototype.
3577 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
3578 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
3579 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
3580 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
3581 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
3582 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
3583 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
3584 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
3586 2006-08-28 Ulrich Drepper <drepper@redhat.com>
3588 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
3590 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
3593 2006-08-28 Jakub Jelinek <jakub@redhat.com>
3595 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
3596 only if herrno is NETDB_INTERNAL. Handle errors other than
3597 ERANGE outside of the loops, handle TRY_AGAIN.
3599 * locale/programs/ld-ctype.c (translit_flatten): Issue error
3600 if other's ctype category was missing.
3601 * locale/programs/ld-collate.c (collate_read): Return if
3602 copy_locale's collate category is missing.
3604 2006-08-27 Ulrich Drepper <drepper@redhat.com>
3607 * malloc/malloc.c (public_rEALLOc): Try harder by using other
3608 arenas if allocation failed.
3609 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
3611 2006-08-26 Ulrich Drepper <drepper@redhat.com>
3613 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
3615 (malloc_state): Reduce bins size by 2.
3616 (_int_malloc): Fix test for large enough buffer for early termination.
3617 When no unsorted block matches perfectly and an exiting block has
3618 to be split, use full list insert and not shortcut which assumes
3621 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
3624 2006-08-24 Ulrich Drepper <drepper@redhat.com>
3626 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
3629 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
3630 symbol require exact match (these are PLTs).
3631 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
3632 (_dl_ppc64_addr_sym_match): Likewise.
3635 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
3636 If symbol has a value use it.
3637 * elf/tst-dladdr1.c: New file.
3638 * elf/Makefile: Add rules to build and run tst-addr1.
3640 2006-08-24 Jakub Jelinek <jakub@redhat.com>
3642 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
3643 keeps failing and heap growth or new heap creation isn't
3645 * malloc/tst-malloc.c (main): Add new tests.
3647 2006-08-24 Ulrich Drepper <drepper@redhat.com>
3650 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
3651 as in the x86-64 code to use bswap.
3653 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
3656 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
3658 * posix/bits/unistd.h: Likewise.
3660 2006-05-15 Mike Frysinger <vapier@gentoo.org>
3663 * string/strchr.c: Add cast to avoid warning.
3665 2006-08-21 Ulrich Drepper <drepper@redhat.com>
3667 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
3668 platforms define as 512K. For 64-bit platforms as 32MB. The lower
3669 limit is needed to avoid the exploding of the address space
3670 requirement for secondary heaps.
3671 * malloc/arena.c (HEAP_MAX_SIZE): Define using
3672 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
3674 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
3677 * Makerules (depfiles): Handle extra-test-objs the same as
3679 (common-mostlyclean): Likewise.
3680 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
3682 * elf/Makefile (extra-objs): Likewise.
3683 * stdlib/Makefile (extra-objs): Likewise.
3685 2006-08-14 Eric Blake <ebb9@byu.net>
3688 * misc/error.h: Assume C89 or better.
3689 * misc/error.c: Likewise.
3691 2006-08-21 Ulrich Drepper <drepper@redhat.com>
3694 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
3695 __ASSUME_ATFCTS is defined.
3697 2006-08-19 Ulrich Drepper <drepper@redhat.com>
3699 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
3700 to sort in each call.
3702 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
3703 is empty simply return and use next service.
3704 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
3706 * locale/programs/charmap.c (charmap_read): Add new parameter. It
3707 tells us when not finding a charmap file is an error.
3708 * locale/programs/charmap.h: Adjust charmap_read prototype.
3709 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
3710 cannot find a charmap.
3711 * locale/programs/localedef.c (main): Adjust charmap_read call.
3713 2006-08-15 Jakub Jelinek <jakub@redhat.com>
3715 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
3716 sysdeps/posix/pause.c implementation instead.
3718 2006-08-09 Jakub Jelinek <jakub@redhat.com>
3720 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
3723 2006-08-13 Andreas Schwab <schwab@suse.de>
3725 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
3726 Don't clobber caller's LRSAVE.
3727 (_dl_prof_resolve): Likewise.
3729 2006-08-14 Ulrich Drepper <drepper@redhat.com>
3732 * libio/memstream.c (open_memstream): Allocate initial buffer with
3734 * libio/wmemstream.c (open_wmemstream): Likewise.
3735 * libio/strops.c: Pretty printing.
3736 (_IO_str_overflow): Clear uninitialized part of the new buffer.
3737 (enlarge_userbuf): New function.
3738 (_IO_str_seekoff): Call it if seek position is larger than current
3740 * libio/wstrops.c: Likewise.
3741 * libio/vasprintf.c: Add comment as to why we do not have to use
3742 calloc instead of malloc to allocate initial buffer.
3743 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
3744 * libio/bug-memstream1.c: New file.
3745 * libio/bug-wmemstream1.c: New file.
3747 2006-08-13 Ulrich Drepper <drepper@redhat.com>
3749 * libio/wstrops.c: Remove dead macro definitions and comments.
3750 * libio/strops.c: Likewise.
3753 * login/utmpname.c (__utmpname): Remove unnecessary test.
3755 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
3758 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
3761 2006-08-13 Ulrich Drepper <drepper@redhat.com>
3764 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
3766 * sysdeps/unix/clock_settime.c: Add support for platform-specific
3767 setting of CPU clocks.
3769 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
3772 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
3773 since C99 requires the result to promote to 'int' when uint_least8_t
3774 and uint_least16_t promote to 'int'.
3776 2006-08-12 Ulrich Drepper <drepper@redhat.com>
3779 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
3780 lenght of one output field, correct bitmask creation.
3781 * locale/programs/ld-time.c: Add alignment.
3784 * misc/error.c: Add space between program name and message if file
3787 2006-08-03 Eric Blake <ebb9@byu.net>
3790 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
3792 2006-08-09 Ulrich Drepper <drepper@redhat.com>
3794 * malloc/memusagestat.c: Silence warnings.
3796 * malloc/malloc.c: Dynamically size mmap treshold if the program
3797 frees mmaped blocks.
3798 Patch by Valerie Henson and Arjan van de Ven.
3800 2006-08-08 Jakub Jelinek <jakub@redhat.com>
3802 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
3805 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
3806 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
3807 (DEF): Don't put the var into .gnu.linkonce.r.* section.
3808 Only provide var definitions in strtol_l (or for *ull*
3811 * stdio-common/bug16.c (tests): New array.
3812 (do_tests): Allow the first hexadecimal digit
3813 to be 1, 2, 4 or 8. Do 3 additional tests.
3815 * sysdeps/s390/fpu/libm-test-ulps: Update.
3817 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
3818 fchownat syscall if available.
3819 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
3820 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
3821 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
3823 2006-08-07 Ulrich Drepper <drepper@redhat.com>
3825 * nis/nis_xdr.c: Avoid some function calls.
3827 2006-08-07 Jakub Jelinek <jakub@redhat.com>
3828 Ulrich Drepper <drepper@redhat.com>
3830 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
3831 short cut if only one name component is stripped away.
3833 2006-08-07 Ulrich Drepper <drepper@redhat.com>
3835 * nis/nis_call.c: Minor cleanups throughout.
3836 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
3837 (first_shoot): Add search_parent_first parameter. Only if it is set
3838 search parent server first.
3839 If directory for table found through cold start cache is not the same
3840 as referenced in the cache, don't use it.
3841 (__nisfind_server): Take additional parameter. Pass it on to
3843 (__prepare_niscall): Adjust __nisfind_server call.
3844 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
3845 * nis/nis_table.c: Adjust __nisfind_server call.
3846 * nis/nis_lookup.c: Likewise.
3847 (nis_lookup): Don't loop endlessly if name is reduced to ".".
3849 2006-08-03 Ulrich Drepper <drepper@redhat.com>
3852 * math/s_cacosh.c: Return values from positive branch.
3853 * math/s_cacoshf.c: Likewise.
3854 * math/s_cacoshl.c: Likewise.
3857 * sysvipc/sys/msg.h: Change return value to ssize_t.
3858 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3859 * sysvipc/msgrcv.c: Likewise.
3860 * include/sys/msg.h: Likewise.
3862 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
3863 test introduced in patch for bz #661.
3864 (getgrouplist): Simplify code a bit. Don't allocate one additional
3865 element for NEWGROUPS.
3868 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
3869 'f', use '1' as leading digit not '\1'.
3870 * stdio-common/Makefile (tests): Add bug16.
3871 * stdio-common/bug16.c: New file.
3874 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
3875 and don't try to open it. The patch introducing the macro
3876 contained a bug and used the same file name as the new file
3877 instead of using /var/adm/hostid. Nobody complaint so I'm taking
3878 this out completely.
3881 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
3882 Patch by Jerry James <Jerry.James@usu.edu>.
3884 * rt/Makefile (tests): Add tst-clock2.
3885 * rt/tst-clock2.c: New file.
3888 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
3889 function and its parameters and pass it to new thread.
3890 (__gai_notify): Add support for alternative waiting for completion.
3891 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
3892 waiting for completion.
3893 * resolv/getaddrinfo_a.c: Likewise.
3894 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
3895 waiting for completion is used.
3896 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
3897 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
3898 * resolv/gai_error.c: Likewise.
3899 * resolv/gai_sigqueue.c: Likewise.
3901 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
3903 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
3904 errno to EBADF and return MACH_PORT_NULL.
3906 2006-06-23 Joseph Myers <joseph@codesourcery.com>
3909 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
3911 2006-08-02 Ulrich Drepper <drepper@redhat.com>
3913 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
3914 walk them instead of the symbol table.
3916 2006-08-01 Ulrich Drepper <drepper@redhat.com>
3919 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
3920 status of NSS calls, not the number of returned entries.
3922 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
3923 request_key, keyctl.
3925 2006-07-31 Ulrich Drepper <drepper@redhat.com>
3927 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
3929 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
3931 * elf/tst-auditmod1.c: Fix typo in #error.
3933 2006-07-31 Ulrich Drepper <drepper@redhat.com>
3935 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
3937 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
3939 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
3941 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
3942 that the directory is empty even on non-POSIX filesystems.
3944 2006-07-31 Ulrich Drepper <drepper@redhat.com>
3946 * elf/dl-open.c (dl_open_worker): Add branch prediction.
3948 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
3949 the backend NSS module. If backend setgrent call failed, don't have
3950 internal_setgrent fail. Just remember this until it is needed.
3951 * nis/nss_compat/compat-pwd.c: Likewise.
3952 * nis/nss_compat/compat-spwd.c: Likewise.
3954 2006-07-30 Roland McGrath <roland@redhat.com>
3956 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
3957 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
3958 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
3959 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
3961 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
3962 (nanosleep_not_cancel): New macro.
3963 (sigsuspend_not_cancel): new macro.
3964 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
3965 (do_sigsuspend): Define as inline.
3966 (__sigsuspend): Always use do_sigsuspend.
3967 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
3968 * include/signal.h: Declare __sigsuspend_nocancel.
3969 * sysdeps/posix/pause.c
3970 [! NO_CANCELLATION] (__pause_nocancel): New function.
3972 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
3973 * include/time.h (__nanosleep_nocancel): Likewise.
3975 2006-07-30 Ulrich Drepper <drepper@redhat.com>
3977 * locale/programs/localedef.c (add_to_readlist): Rename local
3978 variables to avoid confusion.
3980 * locale/programs/charmap.c (charmap_read): Emit error message if
3981 charmap couldn't be found or read.
3983 2006-07-28 Ulrich Drepper <drepper@redhat.com>
3985 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3986 __ASSUME_FUTEX_LOCK_PI.
3987 * include/time.h: Declare __nanosleep_nocancel.
3988 * include/unistd.h: Declare __pause_nocancel.
3990 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
3991 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
3992 get the __stack_chk_fail_local definition when it's needed.
3994 2006-07-26 Ulrich Drepper <drepper@redhat.com>
3996 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
3997 * dlfcn/bug-atexit3.c: New file.
3998 * dlfcn/bug-atexit3-lib.cc: New file.
4000 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
4001 used when the namespace is not the base namespace.
4003 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
4005 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
4006 (__new_exitfn): Bump it in every successful call.
4007 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
4008 more exit handlers, call them right away.
4009 * stdlib/exit.h: Declare __new_exitfn_called.
4011 2006-07-25 Ulrich Drepper <drepper@redhat.com>
4013 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
4014 calling registered handler.
4016 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
4017 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4018 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4019 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4020 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4021 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4022 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4023 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4025 2006-07-10 Ulrich Drepper <drepper@redhat.com>
4027 * elf/dl-lookup.c (dl_new_hash): New functions.
4028 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
4029 value here. Compute new-style hash value. Pass new hash value
4030 and reference to variable with the old value to do_lookup_x.
4031 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
4032 old-style hash table.
4033 (_dl_debug_bindings): Pass new hash value and reference to variable
4034 with the old value to do_lookup_x.
4035 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
4036 new-style hash value and change old-style hash value parameter to
4037 be a reference. Reoganize functions to determine whether
4038 new-style hash table is available. Only fall back on old-style
4039 table. If old-style hash value is needed, compute it here.
4040 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
4042 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
4043 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
4044 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
4045 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
4046 * Makeconfig: If linker supports --hash-style option add it to all
4047 linker command lines to build DSOs.
4048 * config.make.in: Define have-hash-style.
4049 * configure.in: Test whether linker supports --hash-style option.
4051 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
4052 * sysdeps/generic/ldsodefs.h: Adjust prototype.
4054 2006-06-27 Ulrich Drepper <drepper@redhat.com>
4056 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
4059 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
4060 RPATH of main map twice.
4062 2006-06-22 Ulrich Drepper <drepper@redhat.com>
4064 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
4065 look further, return original strings.
4066 (_nl_find_msg): Do not return found translation if the conversion
4067 failed. Either signal the string is unusable or that something went
4068 wrong and the original should be used.
4070 2006-06-21 Ulrich Drepper <drepper@redhat.com>
4072 * string/_strerror.c (__strerror_r): Add __builtin_expect.
4074 2006-06-14 Jakub Jelinek <jakub@redhat.com>
4077 * misc/insremque.c (insque): Handle prev == NULL.
4078 * misc/Makefile (tests): Add tst-insremque.
4079 * misc/tst-insremque.c: New test.
4081 2006-06-17 Ulrich Drepper <drepper@redhat.com>
4084 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
4085 conflict with DL_DST_REQUIRED.
4087 2006-06-16 Ulrich Drepper <drepper@redhat.com>
4089 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
4090 match what Solaris does.
4092 2006-06-04 Ulrich Drepper <drepper@redhat.com>
4094 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
4095 local_setegid instead of seteuid and setegid.
4096 * sysdeps/generic/local-setxid.h: New file.
4097 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
4099 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
4101 * string/Makefile (tests): Add bug-envz1.
4102 * string/bug-envz1.c: New file.
4104 2006-06-02 Jakub Jelinek <jakub@redhat.com>
4106 * posix/regex_internal.c (re_string_skip_chars): If no character has
4107 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
4108 to the byte which couldn't be converted.
4109 (re_string_reconstruct): Don't clear valid_raw_len before calling
4110 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
4111 tip_context using re_string_context_at.
4112 * posix/Makefile: Add rules to build and run bug-regex25 test.
4113 * posix/bug-regex25.c: New test.
4115 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
4118 * string/envz.c (envz_strip): Correct erroneously reversed src
4119 and dest parameters to memmove() invocation.
4121 2006-05-30 Jakub Jelinek <jakub@redhat.com>
4123 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
4124 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
4125 to make sure the database has been already invalidated.
4126 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
4127 after the cache has been invalidated. Use pthread_mutex_lock rather
4128 than pthread_mutex_trylock if fd != -1.
4129 * nscd/connections.c (invalidate_cache): Add fd argument, write
4130 response to fd if not calling prune_cache, pass fd to prune_cache.
4131 (handle_request): Adjust invalidate_cache caller.
4132 (nscd_run): Pass -1 as fd to prune_cache.
4134 2006-05-30 Ulrich Drepper <drepper@redhat.com>
4136 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
4139 2006-05-29 Ulrich Drepper <drepper@redhat.com>
4141 * nscd/nscd.h (struct database_dyn): Add prunelock field.
4142 * nscd/cache.c (prune_cache): Take prunelock before starting the
4143 work. Just return in case it is already taken.
4144 * nscd/connections.c (dbs): Initialize .prunelock.
4146 2006-05-25 Ulrich Drepper <drepper@redhat.com>
4148 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
4149 copying. No need to allocate new array for group members. Just
4150 move the pointers and update the size.
4152 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
4153 Avoid memory leak in case realloc fails. Simplification for
4154 better code generation.
4156 Avoid deprecation warning because of libc_hidden_proto for
4158 * inet/inet6_option.c (option_alloc): Renamed from
4159 inet6_option_alloc. Made static.
4160 (inet6_option_alloc): Now a simple wrapper around option_alloc.
4161 (inet6_option_append): Call option_alloc.
4162 * include/netinet/in.h: Remove libc_hidden_proto for
4165 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
4166 for cleanup when cb!=NULL [Coverity CID 233].
4168 2006-05-24 Ulrich Drepper <drepper@redhat.com>
4171 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
4172 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
4173 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
4174 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
4175 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
4176 and inet6_rth_getaddr.
4177 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
4179 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
4180 Mark inet6_option_* interfaces as deprecated.
4181 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
4182 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
4183 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
4184 inet6_rth_segments, and inet6_rth_getaddr.
4185 * inet/inet6_opt.c: New file.
4186 * inet/inet6_rth.c: New file.
4188 * inet/netinet/icmp6.h: Pretty printing.
4191 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
4193 2006-05-23 Ulrich Drepper <drepper@redhat.com>
4195 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
4196 doing it all here. When server does not know the answer do not
4197 fail immediate, try parent first.
4199 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
4202 2006-05-20 Ulrich Drepper <drepper@redhat.com>
4204 * nis/nis_call.c (__prepare_niscall): New function. Split out
4206 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
4208 (__follow_path): New function. Split out from nis_list.
4209 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
4211 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
4213 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
4215 * nis/Versions: Export __prepare_niscall, __create_ib_request,
4216 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
4217 from libnsl for version GLIBC_PRIVATE.
4218 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
4219 Remove entry parameter from _nss_nisplus_parse_pwent and
4220 _nss_nisplus_parse_grent.
4221 * nis/nss_nisplus/nisplus-parser.c: Likewise.
4222 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
4223 again. Rewrite getpwent handling to not use nis_first_entry and
4224 nis_next_entry. Roll out own niscall handling.
4225 * nis/nss_nisplus/nisplus-grp.c: Likewise.
4227 * sunrpc/xdr_rec.c: Fix typo in comment.
4229 2006-05-19 Ulrich Drepper <drepper@redhat.com>
4231 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
4234 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
4235 to allocate memory for my_pollfd. Better initialization of
4236 cb_is_running. Use TEMP_FAILURE_RETRY.
4238 * malloc/memusage.sh (memusageso): Add quotes.
4239 (memusagestat): Likewise.
4240 * debug/xtrace.sh (pcprofileso): Likewise.
4241 (pcprofiledump): Likewise.
4242 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
4244 * malloc/Makefile ($(objpfx)memusage): Likewise.
4246 * nis/nis_callback.c (__nis_create_callback): Calls to
4247 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
4248 asprintf call fails.
4250 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
4251 no uninitialized memory is passed to sendto.
4253 2006-05-18 Ulrich Drepper <drepper@redhat.com>
4255 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
4256 of snprintf+strdup. Handle OOM.
4257 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
4258 cb->serv together. Remove now obsolete free calls.
4259 (__nis_destroy_callback): Remove now obsolete free call.
4261 2006-05-18 David Woodhouse <dwmw2@redhat.com>
4263 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
4264 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
4265 and ULA respectively). Set precedence for IPv4 address to 10 as
4266 defined in RFC3484 for preferring IPv6.
4267 * posix/gai.conf: Update to match the new default tables.
4269 2006-05-18 Jakub Jelinek <jakub@redhat.com>
4271 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
4272 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
4273 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
4274 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
4276 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
4278 (init_nss_interface): Remove initialization of these variables.
4280 2006-05-18 Ulrich Drepper <drepper@redhat.com>
4282 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
4283 nis_free_directory forward to avoid duplication.
4285 2006-05-17 Ulrich Drepper <drepper@redhat.com>
4287 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
4288 rec_dirsearch returning NULL.
4289 (first_shoot): Handle __nis_finddirectory returning NULL.
4290 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
4292 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
4293 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
4295 2006-05-17 Jakub Jelinek <jakub@redhat.com>
4297 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
4300 2006-05-15 Ulrich Drepper <drepper@redhat.com>
4302 * include/rpc/pmap_prot.h: Mark all functions as hidden.
4304 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
4305 * nscd/nscd_getgr_r.c: Likewise.
4307 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
4309 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
4310 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
4312 * stdlib/longlong.h (__clz_tab): Mark as hidden.
4314 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
4316 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
4318 * include/rpc/auth.h: Mark xdr_des_block_internal and
4319 xdr_opaque_auth_internal as hidden.
4321 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
4324 * include/rpc/xdr.h: Mark all _internal functions as hidden.
4326 * misc/getusershell.c (okshells): Don't use static initializers,
4329 * stdlib/fmtmsg.c (keywords): Change type of len element to
4330 uint32_t to not waste space on 64bit machines.
4332 * locale/setlocale.c: Change _nl_category_names into a string.
4333 Add new _nl_category_name_idxs. Change all users.
4334 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
4335 Declare _nl_category_name_idxs.
4336 * locale/findlocale.c: Adjust for _nl_category_names change.
4337 * locale/loadlocale.c: Likewise.
4338 * locale/newlocale.c: Likewise.
4339 * intl/dcigettext.c: Likewise.
4341 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
4342 (add_alias2): ...here. New function.
4343 (__gconv_read_conf): Simplify builtin alias handling.
4344 (builtin_aliases): Convert to string to avoid relocations.
4345 * iconv/gconv_builtin.h: Add comment about correct formatting.
4347 2006-05-15 Jakub Jelinek <jakub@redhat.com>
4349 * resolv/res_debug.c (loc_ntoa): Make error const.
4351 2006-05-14 Andreas Schwab <schwab@suse.de>
4353 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
4355 2006-05-12 Jakub Jelinek <jakub@redhat.com>
4357 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
4358 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
4361 2006-05-11 Ulrich Drepper <drepper@redhat.com>
4363 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
4365 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
4367 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
4368 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
4370 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
4371 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
4373 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
4374 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
4377 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
4378 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
4381 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
4382 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
4384 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
4385 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
4387 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
4388 * include/rpcsvc/nis_callback.h: New file.
4390 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
4391 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
4393 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
4394 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
4396 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
4397 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
4399 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
4400 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
4402 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
4403 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
4406 * nis/nis_xdr.h: Mark all functions as hidden. Remove
4407 __BEGIN_DECLS and __END_DECLS, the header is not installed.
4409 * nis/nis_error.c: Remove table of strings. Use position
4410 independent mechanism.
4411 * nis/nis_error.h: New file.
4413 2006-05-11 Jakub Jelinek <jakub@redhat.com>
4415 * locale/programs/ld-time.c (time_finish): If wide era name or
4416 format aren't provided, set both wname and wformat to L"".
4418 2006-05-10 Ulrich Drepper <drepper@redhat.com>
4420 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
4421 results if the call was succesful.
4423 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
4425 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
4428 2006-05-10 Jakub Jelinek <jakub@redhat.com>
4430 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
4432 2006-05-10 Ulrich Drepper <drepper@redhat.com>
4434 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
4435 caller makes sure this is not the case.
4436 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
4438 2006-05-09 Ulrich Drepper <drepper@redhat.com>
4440 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
4443 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
4444 [Coverity CID 229, 230]
4446 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
4448 (hol_help): Likewise. [Coverity CID 226, 227]
4450 * string/argz-replace.c (__argz_replace): Unconditionally call
4451 free on SRC. [Coverity CID 225]
4453 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
4454 the return value of __nis_default_owner and __nis_default_group,
4455 it has been especially allocated. [Coverity CID 224]
4457 * nis/nis_defaults.c (searchXYX): New functions. Used by both
4458 searchgroup and searchowner. Significantly simplified.
4459 (__nis_default_owner): Remove duplication. Do not locally copy the
4460 string before duplicating it.
4461 (__nis_default_group): Likewise.
4463 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
4464 we must clear the variable before calling __nisfind_server.
4466 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
4467 nis_getnames. [Coverity CID 223]
4469 * locale/programs/locfile.c (locfile_read): Use alloca instead of
4470 xmalloc to allocate local repertoire name. [Coverity CID 222]
4472 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
4473 allocate memory for the input to add_bytes. [Coverity CID 221]
4475 * posix/wordexp.c (w_addword): Free word if realloc fails and it
4476 was allocated here. [Coverity CID 219, 220]
4478 * posix/getconf.c (print_all): Free confstr data after printing.
4481 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
4482 list allocation fails. [Coverity CID 215]
4484 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
4487 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
4488 string is NULL. [Coverity CID 212]
4489 * argp/Makefile: Add rules to build and run bug-argp1.
4490 * argp/bug-argp1.c: New file.
4492 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
4494 * stdlib/canonicalize.c (__realpath): Likewise.
4496 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
4497 pointer. [Coverity CID 206]
4499 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
4500 in statically linked code.
4501 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
4502 statically built code, be prepared to have no link map.
4505 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
4506 dgettext calls. [Coverity CID 204]
4508 * argp/argp-help.c (struct uparams): Remove valid member. Change
4510 (uparam_names): Reduce size. Avoid relative relocations.
4511 Moved to read-only segment.
4512 (fill_in_uparams): Update for new layout.
4514 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
4515 assumed to always be != NULL. [Coverity CID 202]
4517 * argp/argp-help.c (hol_entry_help): Remove some dead code
4520 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
4521 away a few more unconditional yperr2nss calls.
4522 (_nss_nis_getservbyname_r): Likewise.
4524 2006-05-06 Ulrich Drepper <drepper@redhat.com>
4526 * sysdeps/generic/ldsodefs.h: Remove support for non-core
4529 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
4530 that unused memory passed to sendto is nevertheless initialized.
4533 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
4534 possibly unaligned memory accesses.
4536 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
4537 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
4538 and __putlong respectively. Correct buffer overflow check for
4541 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
4543 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
4544 (send_dg): Rewrite error handling to be more compact and avoid
4545 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
4547 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
4549 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
4550 instead of ns_get16.
4551 (res_queriesmatch): Likewise. Minor optimization.
4554 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
4555 __libc_res_nsend might reallocate the buffer for the answer. In
4556 this case we have to reload the HP pointer.
4558 2006-05-05 Ulrich Drepper <drepper@redhat.com>
4560 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
4561 some branch prediction hints.
4563 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
4564 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4565 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4566 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4567 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4568 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4569 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4570 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4572 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
4574 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
4575 by a GOT relocation to make Scrt1.o position independent.
4576 * sysdeps/s390/s390-64/elf/start.S: Likewise.
4578 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
4579 six system call parameters.
4580 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
4582 2006-05-05 Ulrich Drepper <drepper@redhat.com>
4584 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
4587 * sunrpc/svc_udp.c (BZERO): Remove definition.
4589 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
4591 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
4592 (des_SPtrans): Use uint32_t type.
4593 (des_skb): Likewise.
4595 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
4597 2006-05-05 Jakub Jelinek <jakub@redhat.com>
4600 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
4603 2006-05-05 Ulrich Drepper <drepper@redhat.com>
4605 * locale/programs/ld-address.c (address_finish): Fix one more
4606 place where the iso639 array might be accessed beyond the limits.
4608 2006-05-04 Ulrich Drepper <drepper@redhat.com>
4610 * nis/nis_table.c (nis_list): Avoid clearing res twice before
4611 filling it for the first time.
4613 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
4615 Free res object content before returning.
4617 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
4619 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
4622 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
4623 cleanup for initial thread, just the free call on TVP.
4625 * nscd/gai.c (__getline): Define.
4628 See ChangeLog.16 for earlier changes.