* bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
[glibc.git] / ChangeLog
blob4fa39d277ed0467e9d4b4a3a6b30ee77062104e4
1 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
3         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
4         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
6 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
8         [BZ #4792]
9         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
10         * malloc/malloc.h (realloc): Likewise.
12 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
14         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
15         if one of proc_file_chain streams has that fileno.
16         * stdio-common/Makefile (tests): Add tst-popen2.
17         * stdio-common/tst-popen2.c: New test.
19 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
21         * elf/ldconfig.c: Allow GPLv2 or any later version.
22         * elf/readlib.c: Likewise.
23         * elf/chroot_canon.c: Likewise.
24         * elf/cache.c: Likewise.
25         * nscd/mem.c: Likewise.
26         * nscd/getpwuid_r.c: Likewise.
27         * nscd/grpcache.c: Likewise.
28         * nscd/aicache.c: Likewise.
29         * nscd/getsrvbynm_r.c: Likewise.
30         * nscd/nscd.c: Likewise.
31         * nscd/servicescache.c: Likewise.
32         * nscd/getsrvbypt_r.c: Likewise.
33         * nscd/initgrcache.c: Likewise.
34         * nscd/gethstbyad_r.c: Likewise.
35         * nscd/gethstbynm2_r.c: Likewise.
36         * nscd/getgrnam_r.c: Likewise.
37         * nscd/nscd_setup_thread.c: Likewise.
38         * nscd/getpwnam_r.c: Likewise.
39         * nscd/gai.c: Likewise.
40         * nscd/connections.c: Likewise.
41         * nscd/dbg_log.c: Likewise.
42         * nscd/cache.c: Likewise.
43         * nscd/hstcache.c: Likewise.
44         * nscd/nscd_conf.c: Likewise.
45         * nscd/getgrgid_r.c: Likewise.
46         * nscd/pwdcache.c: Likewise.
47         * catgets/gencat.c: Likewise.
48         * locale/programs/linereader.h: Likewise.
49         * locale/programs/locarchive.c: Likewise.
50         * locale/programs/ld-paper.c: Likewise.
51         * locale/programs/locfile-kw.h: Likewise.
52         * locale/programs/ld-address.c: Likewise.
53         * locale/programs/xmalloc.c: Likewise.
54         * locale/programs/ld-time.c: Likewise.
55         * locale/programs/localedef.c: Likewise.
56         * locale/programs/simple-hash.c: Likewise.
57         * locale/programs/xstrdup.c: Likewise.
58         * locale/programs/ld-numeric.c: Likewise.
59         * locale/programs/locfile-kw.gperf: Likewise.
60         * locale/programs/ld-collate.c: Likewise.
61         * locale/programs/charmap-kw.gperf: Likewise.
62         * locale/programs/charmap.h: Likewise.
63         * locale/programs/charmap-kw.h: Likewise.
64         * locale/programs/config.h: Likewise.
65         * locale/programs/locfile.c: Likewise.
66         * locale/programs/ld-ctype.c: Likewise.
67         * locale/programs/charmap.c: Likewise.
68         * locale/programs/ld-messages.c: Likewise.
69         * locale/programs/repertoire.h: Likewise.
70         * locale/programs/locale.c: Likewise.
71         * locale/programs/ld-name.c: Likewise.
72         * locale/programs/linereader.c: Likewise.
73         * locale/programs/locfile.h: Likewise.
74         * locale/programs/3level.h: Likewise.
75         * locale/programs/ld-monetary.c: Likewise.
76         * locale/programs/ld-measurement.c: Likewise.
77         * locale/programs/charmap-dir.c: Likewise.
78         * locale/programs/ld-identification.c: Likewise.
79         * locale/programs/localedef.h: Likewise.
80         * locale/programs/charmap-dir.h: Likewise.
81         * locale/programs/repertoire.c: Likewise.
82         * locale/programs/simple-hash.h: Likewise.
83         * locale/programs/ld-telephone.c: Likewise.
84         * locale/programs/locale-spec.c: Likewise.
85         * locale/programs/locfile-token.h: Likewise.
86         * posix/getconf.c: Likewise.
87         * iconv/dummy-repertoire.c: Likewise.
88         * iconv/iconv_charmap.c: Likewise.
89         * iconv/iconvconfig.c: Likewise.
90         * iconv/iconv_prog.c: Likewise.
91         * malloc/memusagestat.c: Likewise.
92         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
94 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
96         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
97         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
98         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
99         check for the first argument.
101 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
103         [BZ #4775]
104         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
105         (__tgmath_real_type): Fix if expr is const int or other const
106         qualified integral type.
107         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
108         expressions and handle const qualified arguments.
109         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
110         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
111         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
112         statement expressions.
113         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
114         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
115         (__TGMATH_UNARY_IMAG): Define.
116         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
117         * math/Makefile (tests): Add test-tgmath2.
118         (CFLAGS-test-tgmath2.c): Add.
119         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
120         count_cfloat, count_cldouble): New variables.
121         (NCCALLS): Define.
122         (main): Check number of complex calls as well.
123         (F(compile_test)): Add complex tests and tests with const qualified
124         arguments.
125         (y, z, ccount): Define.
126         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
127         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
128         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
129         F(cproj)): New functions.
130         * math/test-tgmath2.c: New test.
132 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
134         [BZ #4776]
135         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
136         RPATH etc. as "/" rather than "", don't segfault on empty paths,
137         instead output ".".
138         * dlfcn/Makefile (distribute): Add glreflib3.c.
139         (module-names): Add glreflib3.
140         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
141         glreflib1.so.
142         (LDFLAGS_glreflib3.so): New.
143         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
144         glreflib1.so.
145         * dlfcn/glreflib3.c: New file.
147         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
148         returned -1, return NULL.
149         * intl/explodename.c (_nl_explode_name): Return -1 if
150         _nl_normalize_codeset failed.
152 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
154         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
155         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
156         and avoid branch misspredicts for > 31 bytes memset case.
157         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
158         Remove toc ref to __cache_line_size.
160         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
161         to get ISA-V2.0 branch hints.
162         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
163         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
164         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
165         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
166         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
167         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
168         Remove toc ref to __cache_line_size.
170         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
171         Include math_ldbl_opt.h.
173 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
175         [BZ #4773]
176         * time/strptime_l.c (__strptime_internal): Implement greedy
177         matching of weekday and month names.
179 2007-07-09  Roland McGrath  <roland@redhat.com>
181         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
182         (ELF_NOTE_ABI): Use it.
183         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
185 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
187         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
188         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
190 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
192         [BZ #4745]
193         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
194         in loop to look for conversion specifier to avoid testing of
195         wrong errno value.
196         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
197         * stdio-common/bug18.c: New file.
198         * stdio-common/bug18a.c: New file.
199         * stdio-common/bug19.c: New file.
200         * stdio-common/bug19a.c: New file.
202 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
204         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
205         running awk script.
207 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
209         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
210         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
211         Return NULL if mmap failed instead of asserting it does not.
212         (calloc): Check for integer overflow.
214         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
215         than LONG_MAX / 10.
217 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
219         [BZ #4702]
220         * nis/nss-default.c: Include errno.h.
221         (init): Preserve errno.
223 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
225         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
227 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
229         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
231 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
233         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
235 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
237         * sysdeps/s390/dl-procinfo.c: New file.
238         * sysdeps/s390/dl-procinfo.h: New file.
239         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
241 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
243         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
244         in PT_NOTE segments with multiple notes.
245         * elf/readelflib.c (process_elf_file): Likewise.
247 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
249         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
250         ISO C compliant.
252 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
254         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
256 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
258         * include/link.h: Don't include rtld-lowlevel.h.
259         (struct link_map): Remove l_scope_lock.
260         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
261         (_dl_scope_free_list): New field (variable) in _rtld_global.
262         (DL_LOOKUP_SCOPE_LOCK): Remove.
263         (_dl_scope_free): New prototype.
264         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
265         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
266         (_dl_profile_fixup): Likewise.
267         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
268         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
269         THREAD_GSCOPE_RESET_FLAG around it.
270         * elf/dl-close.c (_dl_close_worker): Don't use
271         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
272         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
273         scopes were queued or if l_scope_mem has been abandoned.
274         * elf/dl-open.c (_dl_scope_free): New function.
275         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
276         * elf/dl-support.c (_dl_scope_free_list): New variable.
277         * elf/dl-lookup.c (add_dependency): Remove flags argument.
278         Remove DL_LOOKUP_SCOPE_LOCK handling.
279         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
280         handling.
281         * elf/dl-object.c (_dl_new_object): Don't use
282         __rtld_mrlock_initialize.
284 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
286         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
287         to fill in holes
288         (rtld_global_ro): Likewise.
290 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
292         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
293         Move PT_LOAD checking to...
294         (_dl_addr_inside_object): ... here, new function.
295         * elf/dl-sym.c (do_sym): If not l_contiguous,
296         call _dl_addr_inside_object.
297         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
298         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
299         * elf/dl-open.c (dl_open_worker): Likewise.
300         (_dl_addr_inside_object): New function if IS_IN_rtld.
301         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
302         holes are present or are PROT_NONE protected.
303         * include/link.h (struct link_map): Add l_contiguous field.
304         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
306 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
307             Tomas Janousek  <tjanouse@redhat.com>
308             Ulrich Drepper  <drepper@redhat.com>
310         [BZ #4647]
311         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
312         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
313         socket.
314         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
315         unused member a bitmap.
316         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
317         servers are configured.
319 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
321         * elf/rtld.c (dl_main): Don't call init_tls more than once.
323 2007-06-17  Andreas Schwab  <schwab@suse.de>
325         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
327 2007-06-16  Andreas Jaeger  <aj@suse.de>
329         [BZ #4125]
330         * sysdeps/unix/sysv/linux/sys/ptrace.h
331         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
332         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
333         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
334         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
335         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
336         Define.
337         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
338         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
339         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
340         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
342 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
344         [BZ #4599]
345         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
346         determining whether there are IPv4/IPv6 addresses, ignore loopback
347         addresses.
349 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
351         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
352         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
353         as the return type.  Change type of "r" variable to CMPtype.
354         * soft-fp/eqsf2.c (__eqsf2): Likewise.
355         * soft-fp/eqtf2.c (__eqtf2): Likewise.
356         * soft-fp/gedf2.c (__gedf2): Likewise.
357         * soft-fp/gesf2.c (__gesf2): Likewise.
358         * soft-fp/getf2.c (__getf2): Likewise.
359         * soft-fp/ledf2.c (__ledf2): Likewise.
360         * soft-fp/lesf2.c (__lesf2): Likewise.
361         * soft-fp/letf2.c (__letf2): Likewise.
362         * soft-fp/unorddf2 (__unorddf2): Likewise.
363         * soft-fp/unordsf2 (__unordsf2): Likewise.
364         * soft-fp/unordtf2 (__unordtf2): Likewise.
366 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
368         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
369         make sure gcc doesn't mess around with this.
371 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
373         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
375 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
377         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
378         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
379         at most once per _dl_close_worker.
381 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
383         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
384         __sched_cpucount as const.
385         * posix/sched_cpucount.c: Adjust.
387         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
388         instruction for counting bits.
389         * sysdeps/x86_64/sched_cpucount.c: New file.
391 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
393         * configure.in: Avoid variable named BASH.
394         * config.make.in: Likewise.
395         Patch in part by Mike Frysinger.
397 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
399         [BZ #4586]
400         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
401         pseudo-zeros as zero.
402         * sysdeps/x86_64/ldbl2mpn.c: New file.
403         * sysdeps/ia64/ldbl2mpn.c: New file.
405 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
407         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
408         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
409         Remove unreachable code at the end.
411 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
413         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
414         ldbl-128ibm in comment.
415         (fpclassifyl): Correct classification of denormals.
416         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
417         return value for MIN denormal. Rewrite using long double math too
418         correctly handle denormals and canonicalize the results.
420 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
422         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
423         (__mpn_construct_long_double): Fix conversion where result ought
424         to be smaller than __LDBL_MIN__, or the low double should be
425         denormal.  Fix decision where to negate low double - honor round
426         to even rules.
427         * stdio-common/tst-sprintf2.c: Include string.h.
428         (COMPARE_LDBL): Define.
429         (TEST): Also test whether a string hexadecimal float representation
430         can be parsed back to the number.
431         (main): Add a couple of further tests.
433 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
435         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
436         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
437         is non-zero, but smaller than 2 * __DBL_MIN__.
438         * stdio-common/tst-sprintf2.c: New test.
439         * stdio-common/Makefile (tests): Add tst-sprintf2.
441         * math/test-misc.c (main): Don't run last batch of tests with
442         IBM long double format.
444 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
446         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
447         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
448         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
449         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
450         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
451         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
452         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
453         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
454         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
455         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
458         New file.
459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
460         New file.
461         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
462         New file.
463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
464         New file.
465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
466         New file.
467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
469         New file.
470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
471         New file.
472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
473         New file.
474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
475         New file.
476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
477         New file.
479 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
481         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
482         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
483         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
484         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
485         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
486         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
487         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
488         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
490 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
492         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
493         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
494         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
495         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
496         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
497         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
498         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
499         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
501 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
503         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
504         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
505         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
506         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
508 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
510         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
511         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
513 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
515         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
516         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
517         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
518         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
520 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
522         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
523         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
525 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
527         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
528         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
530         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
531         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
532         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
533         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
535 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
537         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
538         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
539         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
540         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
542 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
544         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
545         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
546         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
547         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
548         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
549         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
551 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
553         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
554         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
555         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
556         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
558 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
560         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
561         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
562         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
563         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
564         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
565         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
566         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
567         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
568         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
569         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
570         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
571         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
572         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
573         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
574         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
575         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
577 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
579         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
580         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
582 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
584         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
585         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
587 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
589         * sysdeps/powerpc/powerpc32/970/Implies: New file.
590         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
591         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
592         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
593         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
594         * sysdeps/powerpc/powerpc64/970/Implies: New file.
595         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
596         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
597         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
598         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
600 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
602         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
604 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
606         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
607         branch miss-predicts. Ensure that cache line crossing does not impact
608         dispatch grouping.
610 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
612         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
613         "../../powerpc32/power4/memcopy.h".
614         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
615         "../../powerpc32/power4/wordcopy.c".
617 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
619         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
620         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
621         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
622         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
623         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
624         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
626 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
628         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
630 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
632         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
633         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
634         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
635         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
636         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
637         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
638         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
639         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
641 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
643         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
645 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
647         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
648         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
649         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
650         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
651         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
652         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
653         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
655 2007-05-29  Roland McGrath  <roland@redhat.com>
657         * po/Makefile (po-sed-cmd): New variable.
658         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
660 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
662         * crypt/md5-crypt.c: Fix comment.
664         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
665         of crashing.  When this is the case or if the reply is malformed,
666         don't try to close the new file descriptor since it does not
667         exist.
668         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
670 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
672         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
673         if __NR_utimensat is not defined.
675 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
677         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
679 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
681         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
682         (open): Fix comment typos.  Don't call __open_2 if flags
683         is a compile time constant without O_CREAT.
684         (__open64_2): Add nonnull attribute.
685         (open64): Fix comment typos.  Don't call __open64_2 if flags
686         is a compile time constant without O_CREAT.
687         (__openat_2): Add nonnull attribute, fix nonnull attribute
688         on redirect.
689         (openat): Fix comment typos.  Don't call __openat_2 if flags
690         is a compile time constant without O_CREAT.
691         (__openat64_2): Add nonnull attribute, fix nonnull attribute
692         on redirect.
693         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
694         is a compile time constant without O_CREAT.
696 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
698         * Makerules (sysd-rules): Define PTW for ptw-* files.
699         * Versions: Define GLIBC_2.7 for libc.
700         * include/stdio.h: Declare __fortify_fail.
701         * debug/fortify_fail.c: New file.
702         * debug/Makefile (routines): Add fortify_fail.
703         * debug/chk_fail.c: Use __fortify_fail.
704         * debug/stack_chk_fail.c: Likewise.
705         * io/Versions: Export __open_2, __open64_2, __openat_2, and
706         __openat64_2 for GLIBC_2.7.
707         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
708         * io/open.c: Define *_2 variant of function which checks for O_CREAT
709         and fails if necessary.
710         * io/open64.c: Likewise.
711         * io/openat.c: Likewise.
712         * io/openat64.c: Likewise.
713         * sysdeps/unix/sysv/linux/open64.c: Likewise.
714         * sysdeps/unix/sysv/linux/openat.c: Likewise.
715         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
716         * io/bits/fcntl2.h: New file.
717         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
718         __openat64_2.
719         * include/bits/fcntl2.h: New file.
720         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
721         Add open_2.
722         * sysdeps/unix/sysv/linux/open_2.c: New file.
724 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
726         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
727         as second parameter to handle_intel.
729         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
730         the entry.
732         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
733         handling to ...
734         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
735         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
736         cacheinfo.
737         * sysdeps/x86_64/memcpy.S: Complete rewrite.
738         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
739         Patch by Evandro Menezes <evandro.menezes@amd.com>.
741         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
743 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
745         [BZ #4525]
746         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
747         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
748         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
750         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
752         [BZ #4514]
753         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
754         reinitialize workend at the start of each do_positional format spec
755         loop, free workstart before do_positional loops.
756         (printf_unknown): Fix size of work_buffer.
757         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
759         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
760         (public_sET_STATe): If ms->version < 3, put all chunks into
761         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
762         chunks.
764         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
765         * malloc/hooks.c: Likewise.
766         * malloc/arena.c: Likewise.
767         * malloc/malloc.c (do_check_malloc_state): Don't assert
768         n_mmaps is not greater than n_mmaps_max.  This removes the need
769         for the previous change.
771         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
772         2007-05-07 commit.
774 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
776         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
777         Define for kernel >= 2.6.22.
779 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
781         * elf/dl-close.c (_dl_close_worker): When removing object from
782         global scope, wait for all lookups to finish afterwards.
783         * elf/dl-open.c (add_to_global): When global scope array must
784         grow, allocate a new one and free old array only after all
785         lookups finish.
786         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
787         (_dl_lookup_symbol_x): Likewise.
788         * elf/dl-support.c: Define _dl_wait_lookup_done.
789         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
790         _dl_wait_lookup_done.
792         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
793         not overlapping with arena.
795         * malloc/mcheck.c (reallochook): If size==0, free the block.
797         * rt/tst-shm.c: Use fstat64 instead of fstat.
799         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
800         __NR_sync_file_range is not defined.
802 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
804         Dummy files to prevent stub versions from being used.
805         * sysdeps/x86_64/fpu/k_cosl.c: New file.
806         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
807         * sysdeps/x86_64/fpu/k_sinl.c: New file.
808         * sysdeps/x86_64/fpu/k_tanl.c: New file.
810         * version.h (VERSION): Set to 2.6.90.
812 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
814         * version.h (VERSION): Define to 2.6.
815         * include/features.h (__GLIBC_MINOR__): Define to 6.
817         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
819         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
820         sizes.
822 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
824         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
825         number of mmaps.  n_mmaps_max is the target.
826         * malloc/hooks.c: Likewise.
827         * malloc/arena.c: Likewise.
829 2007-05-12  Andreas Jaeger  <aj@suse.de>
831         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
832         getpid.
834 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
836         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
837         adding new variables.
839         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
840         optimize.  Completely extend global scope array before making the
841         new entries visible.
843 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
845         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
846         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
847         tst-getcpu.
849         * include/link.h: Move l_version and l_nversion members around to
850         fill gaps.
852         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
854         * sysdeps/unix/sysv/linux/sched_setaffinity.c
855         (__sched_setaffinity_new): If syscall was successful and
856         RESET_VGETCPU_CACHE is defined, use it before returning.
857         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
859         * io/sys/stat.h: Make sure struct timespec is defined for
860         __USE_ATFILE.
862         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
863         UTIME_OMIT.
864         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
865         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
866         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
867         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
868         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
869         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
870         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
871         * io/sys/stat.h: Declare utimensat, futimens.
872         * io/utimensat.c: New file.
873         * io/futimens.c: New file.
874         * sysdeps/unix/sysv/linux/utimensat.c: New file.
875         * sysdeps/unix/sysv/linux/futimens.c: New file.
876         * io/Makefile (routines): Add utimensat, futimens.
877         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
878         * sysdeps/unix/sysv/linux/lutimes.c: New file.
879         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
880         available.
882         * include/sys/cdefs.h: Redefine __nonnull so that test for
883         incorrect parameters in the libc code itself are not omitted.
885 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
887         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
888         exception in addition to inexact when asked to raise only FE_INEXACT.
890         [BZ #3427]
891         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
892         in *envp.
894 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
896         [BZ #4403]
897         * string/strfry.c (strfry): Make result more random.
899 2007-05-07  Richard Henderson  <rth@redhat.com>
901         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
902         if __NO_LONG_DOUBLE_MATH.
903         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
904         available in the compiler, add .arch directive to the assembly.
906 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
908         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
909         compat_symbol to GLIBC_2_1.
910         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
911         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
912         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
913         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
914         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
915         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
916         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
917         libc, not libm.
918         (__isnanl): New compat_symbol.
920 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
921             Jakub Jelinek  <jakub@redhat.com>
923         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
924         (new_heap): Initialize mprotect_size.
925         (grow_heap): When growing, only mprotect from mprotect_size till
926         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
927         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
929 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
930             Peter Bergner  <bergner@us.ibm.com>
932         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
933         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
934         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
935         * sysdeps/powerpc/fpu/fe_mask.c: New file.
936         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
937         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
938         Call __fe_mask_env() if all FP exceptions disabled.
939         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
940         from old FPSCR to new fenv to propagate DFP rounding modes.
941         Call __fe_mask_env() if FP exceptions previously enabled.
942         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
943         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
944         transitioning from all exceptions disabled to any exception enabled
945         or visa versa.
946         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
947         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
948         when transitioning from all exceptions disabled to any exception
949         enabled or visa versa.
950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
957 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
959         [BZ #4465]
960         * posix/unistd.h: Remove __THROW from fdatasync.
962 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
964         [BZ #4465]
965         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
967 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
969         * stdio-common/vfprintf.c (process_string_arg): Optimize
970         ridiculous precision in wide char code printing multi-byte string.
971         Reported by Jim Meyering <jim@meyering.net>.
973         [BZ #4131]
974         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
975         boundaries to work around systems with overlapping binary loading.
976         Based on a patch by Suzuki <suzuki@in.ibm.com>.
978 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
980         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
981         __mbsnrtowcs after last change.
983         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
984         (get_ident): Likewise.
986 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
988         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
989         with setting the sticky bit.
990         * math/test-misc.c (main): Add more truncation tests.
992 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
994         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
995         double in the function declaration.
996         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
997         double in the function declaration.
998         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
999         float in the function declaration.
1000         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
1001         float in the function declaration.
1003         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
1004         denormal operands.  Do not generate FP_EX_DENORM exception.
1005         (FP_UNPACK_RAW_EP): Ditto.
1006         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
1007         undefined _FP_UNPACK_RAW_E.
1008         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
1009         undefined _FP_UNPACK_RAW_EP.
1010         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
1011         undefined _FP_PACK_RAW_E.
1012         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
1013         undefined _FP_PACK_RAW_EP.
1015         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
1016         _FP_FRAC_COPY_2.
1017         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
1018         _FP_FRAC_COPY_4.
1020 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
1021             Jakub Jelinek  <jakub@redhat.com>
1023         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
1024         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
1025         this case.
1026         * soft-fp/op-common.h (FP_TRUNC): Ditto.
1028 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
1030         * math/test-misc.c (main): Add tests for rounding long double
1031         values close to smallest double denormalized value to double.
1033 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
1035         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
1036         condition for truncating to 0.  Set sticky bit for such
1037         truncation.
1039 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
1041         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
1042         fixed length array for ignore.
1044 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
1046         [BZ #4438]
1047         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
1048         stack for large precisions.
1049         * stdio-common/test-vfprintf.c (main): Add test for large
1050         precision.
1052 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
1054         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
1055         for exponent 0.
1056         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
1058         [BZ #4439]
1059         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
1060         account in the size check.
1061         * resolv/tst-inet_ntop.c: New test.
1062         * resolv/Makefile (tests): Add tst-inet_ntop.
1064 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
1065             Jakub Jelinek  <jakub@redhat.com>
1067         [BZ #4349]
1068         * malloc/malloc.c: Keep separate list for first blocks on the bin
1069         lists with a given size.  This helps skipping over list elements
1070         we know won't fit in two places.
1071         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
1073 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
1075         [BZ #4102]
1076         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
1077         label to Teredo tunnel addresses 2001://32.
1079 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
1081         * locale/programs/ld-collate.c (collate_read): Allow order_start
1082         after copy.
1084         * locale/programs/ld-collate.c (collate_read): Fix printing of
1085         error message.
1087         [BZ #3213]
1088         * locale/C-translit.h.in: Add entry for U2044.
1090         [BZ #4342]
1091         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
1092         hexa-decimal floats without exponent.
1093         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
1095 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
1097         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
1098         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
1099         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
1100         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
1101         GLIBC_2.6.
1102         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
1103         Add sched_getcpu.
1105 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
1107         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
1108         of 0 after the out_fail label.
1110 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
1112         [BZ #4406]
1113         * iconv/gconv_charset.h (strip): Allow ':'.
1114         * iconv/iconv_open.c (iconv_open): Adjust comment.
1116 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
1118         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
1119         version.
1121 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
1123         [BZ #4381]
1124         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
1125         alignment of buffer and tmp_buffer.
1126         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
1127         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
1128         alignment of buffer.
1129         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
1130         bigger than INT_MAX.
1131         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
1132         h_errnop arguments.  Fail if buflen is too small.
1133         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
1135 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
1137         [BZ #4405]
1138         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
1139         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
1141 2007-04-22  Roland McGrath  <roland@redhat.com>
1143         * elf/elf.h (NT_PRXFPREG): New macro.
1145 2007-04-19  Andreas Jaeger  <aj@suse.de>
1147         [BZ #3905]
1148         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
1149         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
1150         Added.
1152 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
1154         * include/sys/mman.h: Mark madvise hidden.
1155         * misc/madvise.c: Add libc_hidden_def.
1157 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
1159         * nis/nis_domain_of.c (__nis_domain_of): New function.
1160         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
1161         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
1162         * nis/nis_call.c (rec_dirsearch): Likewise.
1163         (first_shoot): Likewise.  Remove search_parent_first argument.
1164         (struct nis_server_cache): Rename search_parent_first field
1165         to search_parent.
1166         (nis_server_cache_search, nis_server_cache_add): Rename
1167         search_parent_first argument to search_parent.
1168         (__nisfind_server): Likewise.  If search_parent, call
1169         __nis_domain_of.
1171 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
1173         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
1175 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
1177         [BZ #4368]
1178         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
1180 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
1182         [BZ #4364]
1183         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
1185 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
1187         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
1188         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
1189         current number of locales in SUPPORTED.
1190         (create_archive): Initialize serial.
1191         (enlarge_archive): Preserve aliases rather than duplicating
1192         their locrecs.
1194 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
1196         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
1197         after _IO_un_link, not before it.
1199         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
1200         special case handling when wcp == wstartp + 1.  Fix a comment typo.
1201         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
1203 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
1205         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
1206         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
1207         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
1208         Remove __THROW.
1209         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
1210         _IO_file_xsgetn_maybe_mmap): Likewise.
1211         * libio/oldfileops.c (old_do_write): Likewise.
1212         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
1213         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
1214         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
1215         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
1216         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
1217         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
1218         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
1219         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
1220         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
1221         _IO_file_underflow, _IO_file_underflow_mmap,
1222         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
1223         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
1224         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
1225         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
1226         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
1227         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
1228         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
1229         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
1230         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
1231         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
1232         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
1233         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
1234         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
1235         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
1236         _IO_adjust_column_internal, _IO_default_uflow_internal,
1237         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
1238         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
1239         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
1240         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
1241         _IO_file_close_it_internal, _IO_file_underflow_internal,
1242         _IO_file_overflow_internal, _IO_file_attach_internal,
1243         _IO_file_fopen_internal, _IO_file_sync_internal,
1244         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
1245         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
1246         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
1247         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
1248         _IO_seekpos_unlocked): Likewise.
1249         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
1250         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
1252 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
1254         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
1255         argument in xmalloc size computation.
1257 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
1259         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
1260         math_opt_barrier and math_force_eval macros.
1262 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
1264         [BZ #3306]
1265         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
1266         * sysdeps/i386/fpu/math_private.h: New file.
1267         * sysdeps/x86_64/fpu/math_private.h: New file.
1268         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
1269         math_force_eval macros.  Use "+m" constraint on asm rather than
1270         "=m" and "m".
1271         * math/s_nextafter.c (__nextafter): Likewise.
1272         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
1273         Likewise.
1274         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
1275         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
1276         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
1277         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
1278         math_opt_barrier and math_force_eval macros.
1279         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
1280         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
1281         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
1282         (__nexttoward): Use math_opt_barrier and
1283         math_force_eval macros.  Use "+m" constraint on asm rather than
1284         "=m" and "m".  Only use asm to force double result if
1285         FLT_EVAL_METHOD is 2.
1286         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
1287         (__nexttowardf): Use math_opt_barrier and
1288         math_force_eval macros.  Use "+m" constraint on asm rather than
1289         "=m" and "m".  Only use asm to force double result if
1290         FLT_EVAL_METHOD is not 0.
1291         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
1292         (__nexttowardf): Use math_opt_barrier and
1293         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
1294         x to float using asm.
1295         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
1296         (__nldbl_nexttowardf): Use math_opt_barrier and
1297         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
1298         x to float using asm.
1299         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
1300         (__nexttowardf): Use math_opt_barrier and math_force_eval
1301         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
1302         * math/bug-nextafter.c (zero, inf): New variables.
1303         (main): Add new tests.
1304         * math/bug-nexttoward.c (zero, inf): New variables.
1305         (main): Add new tests.
1307 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
1309         [BZ #3427]
1310         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
1311         exceptions both in SW and MXCSR.
1312         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
1313         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
1314         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1315         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
1316         in MXCSR if SSE is available.
1317         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
1318         and ldsodefs.h.
1319         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
1320         Fix comment typo.
1321         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
1322         Return 0 rather than 1.
1323         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
1324         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
1325         * math/test-fenv.c (feholdexcept_tests): New function.
1326         (main): Call it.
1328 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
1330         [BZ #3427]
1331         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
1332         in SW.
1334 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
1336         [BZ #4344]
1337         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
1338         Reported by David Anderson <davea42@earthlink.net>.
1340 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
1342         * posix/sys/wait.h: Remove unnecessary forward declaration.
1344 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
1346         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
1347         with obj->do_servers after first_shoot.
1349 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
1351         * posix/Makefile (routines): Add sched_cpucount.
1352         (tests): Add tst-cpucount.
1353         * posix/sched_cpucount.c: New file.
1354         * posix/tst-cpucount.c: New file.
1355         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
1356         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
1357         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
1358         * posix/sched.h: Define CPU_COUNT.
1360 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
1362         * posix/fnmatch.c (STRUCT): Define.
1363         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
1364         * posix/fnmatch_loop.c (struct STRUCT): New type.
1365         (FCT): Add ends argument.  If ends != NULL and normal * is
1366         seen in the pattern, store current pattern and string pointers
1367         and return.  Adjust recursive calls.
1368         (EXT): Adjust FCT callers.
1369         (STRUCT): Undef at the end of the file.
1370         * posix/Makefile (tests): Add tst-fnmatch2.
1371         * posix/tst-fnmatch2.c: New test.
1373 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
1375         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
1376         and 1 on failure.
1378         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1379         Change last argument to unsigned int.
1381 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
1383         * scripts/check-local-headers.sh: Filter out sys/capability.h.
1385 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
1387         * config.h.in (HAVE_LIBCAP): Add.
1388         * nscd/selinux.h: Include sys/capability.h rather than non-existent
1389         sys/capabilities.h.
1390         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
1391         free_caps.  Cast away const from 4th cap_set_flag argument.
1393 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
1395         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
1396         GLIBC_2.6.
1397         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1398         Add sync_file_range.
1399         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1401 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
1403         * sysdeps/powerpc/bits/atomic.h
1404         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
1405         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
1406         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
1407         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
1408         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
1409         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
1410         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
1411         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
1412         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
1413         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
1414         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
1415         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
1416         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
1417         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
1418         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
1419         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
1420         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
1421         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
1422         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
1423         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
1425 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
1427         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
1428         (__cache_line_size): Define the variable here.  Add
1429         attribute_hidden, remove weak_extern.
1430         (__libc_start_main): Set __cache_line_size
1431         unconditionally.
1432         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1433         (__cache_line_size): Define the variable here.  Add
1434         attribute_hidden, remove weak_extern.
1435         (DL_PLATFORM_AUXV): Set __cache_line_size
1436         unconditionally.
1437         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
1438         weak_extern, add attribute_hidden.
1439         (__elf_machine_runtime_setup): Assume __cache_line_size is always
1440         defined in ld.so.
1441         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
1442         definition.
1443         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
1445 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
1447         [BZ #4276]
1448         * timezone/africa: Update from tzdata2007d.
1449         * timezone/asia: Likewise.
1450         * timezone/australasia: Likewise.
1451         * timezone/backward: Likewise.
1452         * timezone/europe: Likewise.
1453         * timezone/iso3166.tab: Likewise.
1454         * timezone/leapseconds: Likewise.
1455         * timezone/northamerica: Likewise.
1456         * timezone/southamerica: Likewise.
1457         * timezone/zone.tab: Likewise.
1459         * timezone/private.h: Update from tzcode2007d.
1460         * timezone/zdump.c: Likewise.
1461         * timezone/zic.c: Likewise.
1463 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1465         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
1466         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
1467         variables.
1468         (nis_server_cache_search, nis_server_cache_add): New functions.
1469         (__nisfind_server): Use them.  Add dbp and flags argument, if
1470         call __nisbind_create.
1471         (__nisbind_create): Add server_used and current_ep arguments,
1472         only call __nis_findfastest if server_used is ~0.
1473         (__do_niscall2, __prepare_niscall): Adjust callers.
1474         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
1475         ckey_cache_euid, ckey_cache_lock): New variables.
1476         (get_ckey): New function.
1477         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
1478         __pmap_getnisport.  Save __pmap_getnisport result in
1479         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
1480         key.
1481         * nis/nis_lookup.c (nis_lookup): Likewise.
1482         * nis/nis_table.c (nis_list): Likewise.
1483         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
1484         prototypes.
1486         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
1487         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
1488         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
1489         _nss_nisplus_getservbyport_r): Likewise.
1490         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
1491         _nss_nisplus_getnetbyaddr_r): Likewise.
1492         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
1493         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
1494         _nss_nisplus_getntohost_r): Likewise.
1495         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
1496         _nss_nisplus_getrpcbynumber_r): Likewise.
1498 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
1500         * configure.in (libc_cv_gnu89_inline): Only do compile test.
1501         * configure: Rebuilt.
1503         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
1504         bit-fields.
1505         * soft-fp/extended.h (_FP_UNION_E): Likewise.
1507 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
1509         [BZ #2831]
1510         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
1511         bit-fields.
1513 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
1515         * nscd/gai.c: Include alloca.h.
1516         (__libc_use_alloca): Define.
1518 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
1520         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
1521         smaller scopes.
1522         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
1523         (DL_DST_REQUIRED): Adjust user.
1525         * include/dlfcn.h (struct link_map): New forward decl.
1527         * inet/getnameinfo.c: Include stddef.h.
1528         (getnameinfo): Use offsetof.
1530         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
1532         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
1534         * string/strerror_l.c: Include stdlib.h.
1536         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
1537         * config.make.in (gnu89-inline-CFLAGS): New variable.
1538         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
1539         -std=gnu99.
1540         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
1541         * argp/argp.h: Use it.
1542         * bits/mathinline.h: Likewise.
1543         * bits/sigset.h: Likewise.
1544         * bits/string.h: Likewise.
1545         * ctype/ctype.h: Likewise.
1546         * hurd/hurd.h: Likewise.
1547         * hurd/hurd/fd.h: Likewise.
1548         * hurd/hurd/port.h: Likewise.
1549         * hurd/hurd/signal.h: Likewise.
1550         * hurd/hurd/threadvar.h: Likewise.
1551         * hurd/hurd/userlink.h: Likewise.
1552         * io/sys/stat.h: Likewise.
1553         * libio/bits/stdio.h: Likewise.
1554         * libio/bits/stdio2.h: Likewise.
1555         * mach/lock-intern.h: Likewise.
1556         * mach/mach/mig_support.h: Likewise.
1557         * math/bits/cmathcalls.h: Likewise.
1558         * posix/bits/unistd.h: Likewise.
1559         * socket/bits/socket2.h: Likewise.
1560         * stdlib/bits/stdlib.h: Likewise.
1561         * stdlib/stdlib.h: Likewise.
1562         * string/argz.h: Likewise.
1563         * string/bits/string2.h: Likewise.
1564         * string/bits/string3.h: Likewise.
1565         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
1566         * sysdeps/generic/inttypes.h: Likewise.
1567         * sysdeps/generic/machine-lock.h: Likewise.
1568         * sysdeps/generic/machine-sp.h: Likewise.
1569         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1570         * sysdeps/i386/i486/bits/string.h: Likewise.
1571         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
1572         * sysdeps/mach/alpha/machine-lock.h: Likewise.
1573         * sysdeps/mach/alpha/machine-sp.h: Likewise.
1574         * sysdeps/mach/i386/machine-lock.h: Likewise.
1575         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
1576         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1577         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
1578         * sysdeps/s390/bits/string.h: Likewise.
1579         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
1580         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
1581         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1582         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
1583         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1584         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
1585         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
1586         * wcsmbs/bits/wchar2.h: Likewise.
1587         * wcsmbs/wchar.h: Likewise.
1588         * stdlib/gmp.h: Likewise.  Include <features.h> to get
1589         __extern_inline definition.
1591 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
1593         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
1594         NULL.
1596         [BZ #3919]
1597         * math/libm-test.inc (log_test): Test -Inf and NaN.
1598         (log10_test, log1p_test, log2_test): Test -Inf.
1599         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
1600         FE_INVALID when argument is qNaN.
1601         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
1602         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
1603         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
1604         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
1605         andb $1, %ah with testb $1, %ah, don't test for parity, instead
1606         testb $4, %ah and jump if non-zero.
1607         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1608         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
1610         [BZ #4101]
1611         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
1612         ancestors with the same depths.
1613         Patch by Niels Moeller <nisse@lysator.liu.se>.
1614         (filter_doc): Don't crash if argp is NULL.
1615         * argp/Makefile (tests): Add tst-argp2.
1616         * argp/tst-argp2.c: New test.
1618         [BZ #4130]
1619         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
1620         open_not_cancel_2.
1621         (updwtmp_file): Likewise.
1623         [BZ #4181]
1624         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
1625         (inet6_opt_append): Don't check extlen is big enough if extbuf
1626         is NULL.
1627         (inet6_opt_finish): Likewise.
1628         * inet/Makefile (tests): Add test-inet6_opt.
1629         * inet/test-inet6_opt.c: New test.
1631         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
1632         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
1633         NLMSG_ERR.  Instead use a page sized buffer.
1634         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
1635         buffer.
1637 2007-03-14  Richard Henderson  <rth@redhat.com>
1639         * sysdeps/alpha/fpu/s_llround.c: New file.
1640         * sysdeps/alpha/fpu/s_llroundf.c: New file.
1641         * sysdeps/alpha/fpu/s_lround.c: New file.
1642         * sysdeps/alpha/fpu/s_lroundf.c: New file.
1643         * sysdeps/alpha/fpu/s_round.c: New file.
1644         * sysdeps/alpha/fpu/s_roundf.c: New file.
1645         * sysdeps/alpha/fpu/s_trunc.c: New file.
1646         * sysdeps/alpha/fpu/s_truncf.c: New file.
1648         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
1649         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
1650         * sysdeps/alpha/fpu/s_floor.c: Likewise.
1651         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
1652         * sysdeps/alpha/fpu/s_rint.c: Likewise.
1653         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
1655         * sysdeps/alpha/fpu/s_fmax.S: New file.
1656         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
1657         * sysdeps/alpha/fpu/s_fmin.S: New file.
1658         * sysdeps/alpha/fpu/s_fminf.S: New file.
1659         * sysdeps/alpha/fpu/s_isnan.c: New file.
1660         * sysdeps/alpha/fpu/s_isnanf.c: New file.
1661         * sysdeps/alpha/fpu/s_llrint.c: New file.
1662         * sysdeps/alpha/fpu/s_llrintf.c: New file.
1663         * sysdeps/alpha/fpu/s_lrint.c: New file.
1664         * sysdeps/alpha/fpu/s_lrintf.c: New file.
1665         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
1666         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
1668         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
1669         (__fdimf, fdimf, __fdim, fdim): Remove.
1670         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
1671         (__isnanf, __isnan, __isnanl): New.
1673 2007-03-13  Richard Henderson  <rth@redhat.com>
1675         * sysdeps/ieee754/ldbl-128/Makefile: New file.
1677 2007-03-13  Richard Henderson  <rth@redhat.com>
1679         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
1680         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
1681         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
1682         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
1683         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
1684         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
1686 2007-03-13  Richard Henderson  <rth@redhat.com>
1688         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
1689         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
1690         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
1691         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
1692         Move to dl-auxv.h; initialize instead of extern weak.
1693         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
1694         weak symbol.
1695         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
1696         Extern instead of initialized.
1698 2007-03-13  Richard Henderson  <rth@redhat.com>
1700         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
1701         __sigsuspend_nocancel.
1703 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
1705         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
1706         172.16/12 address range.
1708 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
1710         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
1711         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
1712         message.
1714 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
1716         [BZ #4069]
1717         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
1718         earlier.
1719         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
1721         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
1722         for x qNaN and y either +-inf or non-integer value.
1723         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
1724         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
1725         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
1727 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
1729         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
1730         from sysdep_headers.
1732 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
1734         * time/tzfile.c (find_transition): Instead of a linear search try to
1735         guess the transition index, use a linear search if the result is at
1736         most 10 transitions away from the guess or binary search otherwise.
1738 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
1740         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
1741         memory reallocation.
1743 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
1745         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
1746         and fix some typos.
1747         Optimize use of TOLOWER.
1749         [BZ #3325]
1750         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
1751         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
1752         * sysdeps/i386/fpu/e_fmod.S: Likewise.
1754         [BZ #3458]
1755         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
1756         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
1758         [BZ #4076]
1759         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
1760         (open_dir_stream): Likewise.
1761         * io/Makefile (tests): Add bug-ftw5.
1762         * io/bug-ftw5.c: New file.
1764         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
1765         * nscd/servicescache.c (cache_addserv): Likewise.
1767         * nscd/grpcache.c (cache_addgr): In case a record changed on
1768         refresh, adjust key_copy.
1770         [BZ #4074]
1771         * nscd/pwdcache.c (cache_addpw): In case a record changed on
1772         refresh, adjust key_copy.
1774         [BZ #4070]
1775         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
1776         special cases.
1777         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
1779 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
1781         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
1782         optimization.
1784         * stdio-common/vfscanf.c: Small cleanups throughout.
1786 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
1788         [BZ #3325]
1789         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
1790         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
1791         * sysdeps/i386/fpu/e_fmod.S: Likewise.
1792         Patch by Jared Casper <jaredcasper@gmail.com>.
1794         * sysdeps/unix/closedir.c: Outside libc don't use locking.
1795         * sysdeps/unix/opendir.c: Likewise.
1796         * sysdeps/unix/readdir.c: Likewise.
1798         [BZ #2211]
1799         * stdio-common/vfscanf.c: Handle localized digits etc for floating
1800         point numbers.
1801         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
1803         * stdio-common/vfscanf.c: Fix problems in width accounting.
1804         * stdio-common/tst-sscanf.c (double_tests): New tests.
1805         (main): Hook them up.
1807         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
1808         More simplifications of floating-point reader.
1810         * stdio-common/Makefile (tests): Add tst-swscanf.
1811         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
1812         testing.
1813         * stdio-common/tst-swscanf.c: New file.
1815 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
1817         [BZ #2633]
1818         * libio/stdio.h: Define struct _IO_FILE in global namespace.
1819         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
1820         Remove using for __jmp_buf_tag.
1821         * locale/locale.h (struct lconv): Also define in std namespace.
1822         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
1824         [BZ #3842]
1825         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
1826         using __libc_enable_secure.
1828         [BZ #3818]
1829         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
1831         [BZ #3745]
1832         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
1833         of names for ellipsises.
1835         [BZ #3348]
1836         * malloc/memusage.sh: Cleanups.
1837         * debug/xtrace.sh: Quoting and trap changes.
1839 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
1841         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
1843         * locale/iso-3166.def: Update entry for Serbia.
1844         * locale/iso-4217.def: Define RSD, remove CSD.
1846         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
1847         and 64-bit operations.
1849         [BZ #4040]
1850         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
1851         16-bit operations.
1853         * nscd/nscd.c (parse_opt): One more conversion to use send instead
1854         of writev.
1856 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
1858         [BZ #3991]
1859         * assert/assert.h (assert): Simplify.
1860         (assert_perror): Likewise.
1861         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
1863         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
1864         reqdata.
1866         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
1867         change: don't pass NULL in place of an integer.
1869 2007-02-02  Bruno Haible  <bruno@clisp.org>
1871         [BZ #3954]
1872         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
1873         Add mapping for U+327E.
1874         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
1875         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
1876         mapping of 0xD9 0xE8.
1877         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
1878         mapping of U+327E.
1879         Reported by Jungshik Shin <jungshik@google.com>.
1881         [BZ #3955]
1882         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
1883         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
1884         Reported by Jungshik Shin <jungshik@google.com>.
1886 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
1888         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
1889         byte variants.
1891         [BZ #4040]
1892         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
1893         byte variants.  Patch mostly be tom@tommay.net.
1895 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
1897         [BZ #3996]
1898         * posix/glob.c (attribute_hidden): Define if not defined.
1899         (glob): Unescape dirname, filename or username when needed and not
1900         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
1901         is NULL.  Handle unescaped [ in pattern without closing ].
1902         Don't pass GLOB_CHECK down to recursive glob for directories.
1903         (__glob_pattern_type): New function.
1904         (__glob_pattern_p): Implement using __glob_pattern_type.
1905         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
1906         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
1907         Remove unreachable code.
1908         * posix/globtest.sh: Add a couple of new tests.
1910 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
1912         * po/ru.po: Update from translation team.
1914 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
1916         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
1917         to the list of i486+ CPUs.
1918         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
1920 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
1922         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
1923         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
1924         references.
1926 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
1928         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
1930         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
1931         * resolv/res_mkquery.c: Define __res_nopt.
1932         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
1933         try adding EDNS0 record.
1934         * resolv/res_send.c (send_dg): If request failed with FORMERR and
1935         EDNS0 record was send make sure we don't try it again.
1936         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
1937         * include/resolv.h: Declare __res_nopt.
1939 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
1941         [BZ #3944]
1942         * time/strptime_l.c (__strptime_internal): Set have_mon for
1943         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
1944         have been computed from tm_yday and tm_year.  Don't crash
1945         in day_of_the_week or day_of_the_year if not have_mon
1946         and tm_mon contains bogus value.
1947         * time/Makefile (tests): Add tst-strptime3.
1948         * time/tst-strptime3.c: New test.
1950 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
1952         [BZ #3957]
1953         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
1954         bit for RE_HAT_LISTS_NOT_NEWLINE.
1955         (build_charclass_op): Remove bogus comment.
1956         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
1957         * posix/bug-regex27.c: New test.
1958         * posix/bug-regex28.c: New test.
1960 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
1962         * po/sv.po: Update from translation team.
1964 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
1966         * nscd/nscd_helper.c (open_socket): Minor size optimization.
1968 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
1970         * include/locale.h (__uselocale): Add libc_hidden_proto.
1971         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
1973         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
1974         gettimeofday.
1976 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
1978         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
1979         returning.
1980         (PTR_DEMANGLE): Real definition now that it's not the same as
1981         PRT_MANGLE anymore.
1982         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1984         * string/strerror_l.c: New file.
1985         * string/Makefile (routines): Add strerror_l.
1986         * string/string.h: Declare strerror_l.
1987         * string/Versions: Export strerror_l for GLIBC_2.6.
1989 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
1991         * nscd/nscd_helper.c (open_socket): Now takes request type and key
1992         as parameter.  Construct request record.  Try sending request
1993         before the first poll use, it usually succeeds.  Adjust all
1994         callers.
1995         * nscd/nscd-client.h: Define MAXKEYLEN.
1996         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
1998 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
2000         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
2001         from return value.
2002         * nscd/nscd_helper.c: Include string.h.
2003         (__nscd_cache_search): Remove const qualifier from return value.
2004         On strict alignment architectures check hash entry and data head
2005         alignment.
2006         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
2007         mmapped data during GC cycle contains garbage.  If
2008         __nscd_drop_map_ref fails, decrement mapped->counter when returning
2009         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
2010         dropped to 0.
2011         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2012         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2013         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
2014         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2015         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2017 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
2019         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
2021 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
2023         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
2024         names not numbers in cfi_*.
2026 2007-01-26  Andreas Jaeger  <aj@suse.de>
2028         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
2029         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
2030         Correct values of PER_HPUX and PER_OSF4.
2032 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
2034         * elf/dl-minimal.c: Undefine _itoa first.
2035         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
2036         * malloc/mtrace.c: Revert last change.
2037         * posix/wordexp.c: Likewise.
2039 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
2041         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
2042         and __geode__ to the list of i486+ CPUs.
2043         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
2045 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
2047         * stdio-common/_itoa.c: Include <limits.h>.
2048         * stdio-common/_itowa.c: Likewise.
2050 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
2052         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
2053         platforms.
2054         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
2055         64-bit platforms.
2056         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
2057         possible.
2058         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
2059         if possible.
2061         [BZ #3902]
2062         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
2063         * stdio-common/Makefile (tests): Add bug17.
2064         * stdio-common/bug17.c: New file.
2066 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
2068         * iconvdata/brf.c: New file.
2069         * iconvdata/testdata/BRF: New file.
2070         * iconvdata/testdata/BRF..UTF8: New file.
2071         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2072         * iconvdata/Makefile: Add rules to build BRF.
2073         * iconvdata/TESTS: Add BRF entry.
2074         * iconvdata/gconv-modules: Likewise.
2075         * iconvdata/tst-tables.sh: Likewise.
2077 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
2079         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
2080         type `long long int', not `long int'.
2081         (wcstoq): Likewise.
2083 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
2085         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
2086         of values on 64-bit platforms which are too large.
2088 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
2089             Joe Kerian  <jkerian@us.us.ibm.com>
2091         [BZ #2749]
2092         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
2093         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
2094         (__copysignl): Use signbit() for comparison.
2095         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
2096         SET_LDOUBLE_WORDS64.
2098         [BZ #2423, #2749]
2099         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
2100         (__ceill): Remove calls to fegetround(), fesetround().
2101         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
2102         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
2103         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
2105 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
2107         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
2109         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
2111 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
2113         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
2114         demangle pointer.
2115         * csu/libc-start.c: Likewise.
2117 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
2119         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
2120         really work anyway.
2122 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
2124         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
2125         users.
2126         (handle_request): Remove unnecessary tests.
2128         * nscd/cache.c (cache_add): Record the failure to add to the cache.
2130 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
2132         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
2133         workbits in semi-raw fraction.
2135         * math/test-misc.c: Add new tests.
2137 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
2139         * math/basic-test.c: Include test-skeleton.c.
2140         (TEST_TRUNC): Define.
2141         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
2142         (main): Rename to ...
2143         (do_test): ...this.  Run new tests.
2144         (TEST_FUNCTION): Define.
2146 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
2147             Joe Kerian  <jkerian@us.us.ibm.com>
2149         [BZ #2749]
2150         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
2151         handling for high words.
2152         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
2153         and overflow for infinity.
2155 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
2157         * nscd/connections.c (handle_request): Add a __builtin_expect.
2159         * nscd/connections.c (serv2db): Change type into structure which
2160         also says whether this is a request for data.  Renamed to
2161         servinfo.  All users changed.
2162         (handle_request): Much simpler test whether we should search the cache.
2164         * nscd/connections.c (handle_request): Fix thinko in selinux test
2165         invocation.
2167         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
2168         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
2169         it before getting dl_load_lock and then relock.
2170         (_dl_lookup_symbol_x): Pass flags to add_dependency.
2171         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
2172         case we unlocked the scope.
2173         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
2174         _dl_lookup_symbol_x in case we locked the scope.
2175         (_dl_profile_fixup): Likewise.
2176         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
2177         set DL_LOOKUP_SCOPE_LOCK.
2179 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
2181         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
2182         CFLAGS-getsrvbynpt_r.c.
2183         * nscd/getsrvbynm_r.c: New file.
2184         * nscd/getsrvbypt_r.c: New file.
2185         * nscd/nscd_getserv_r.c: New file.
2186         * nscd/servicescache.c: New file.
2187         * nscd/Makefile (routines): Add nscd_getserv_r.
2188         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
2189         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
2190         CFLAGS-getsrvbypt_r.c.
2191         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
2192         table.  Add entries for services database.
2193         * nscd/connections.c (serv2str): Mark as const.  Add entries for
2194         services database.
2195         (dbs): Add .reset_res and servdb initialization.
2196         (serv2db): Add entries for services database.
2197         (verify_persistent_db): Accept dbnr == servdb.
2198         (invalidate_cache): Rewrite database name recognition to use a table.
2199         Call res_init() if .reset_res is set for database.
2200         (handle_request): Add code to handle services database.
2201         * nscd/gai.c: Don't define __getservbyname_r.
2202         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
2203         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
2204         (serv_response_header): Define.
2205         (struct datahead): Add serv_response_header member.
2206         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
2207         using table.
2208         * nscd/nscd.conf: Add entries for services database.
2209         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
2210         Declare serv_iov_disabled.
2211         Declare addservbyname, readdservbyname, addservbyport, and
2212         readdservbyport.
2213         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
2214         (find_db): Fix error message.
2215         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
2216         __nscd_getservbyname_r, and __nscd_getservbyport_r.
2217         * nscd/selinux.c (perms): Add entries for services database.
2218         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
2219         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
2221         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
2222         * nscd/hstcache.c: Likewise.
2223         * nscd/pwdcache.c: Likewise.
2225         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
2226         computation of keylen.
2228         * include/string.h: Only redefine strndupa if this is really for
2229         libc code.
2231 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
2233         * nscd/nscd_gethst_r.c: Minor cleanups.
2235         * nscd/connections.c (handle_request): Check selinux permissions
2236         for all non-admin commands.
2238         * sysdeps/i386/i486/bits/atomic.h: Define
2239         atomic_compare_and_exchange_val_acq,
2240         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
2241         using __sync_* built-ins for gcc >= 4.1.
2242         * sysdeps/x86_64/bits/atomic.h: Likewise.
2244         [BZ #3840]
2245         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
2246         and .oS.d files.
2248 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
2250         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
2251         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
2252         (do_test): Check errno and exit(0) if ENOSYS.
2254 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
2256         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
2257         thousands separators.
2258         * stdlib/Makefile: Add rules to build and run tst-strtod4.
2259         * stdlib/tst-strtod4.c: New test.
2261         [BZ #3855]
2262         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
2263         hexadecimal digit should accept just the initial 0.
2264         * stdlib/tst-strtod2.c (tests): New variable.
2265         (do_test): Run several tests rather than just one.
2267 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
2269         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
2270         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
2272 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
2274         * io/fts.c: Make sure fts_cur is always valid after return from
2275         fts_read.
2276         Patch by Miloslav Trmac <mitr@redhat.com>.
2278 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
2280         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
2281         (R_MIPS_NUM): Bump by 1.
2283 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
2285         * posix/execvp.c: Include alloca.h.
2286         (allocate_scripts_argv): Renamed to...
2287         (scripts_argv): ... this.  Don't allocate buffer here nor count
2288         arguments.
2289         (execvp): Use alloca if possible.
2290         * posix/Makefile: Add rules to build and run tst-vfork3 test.
2291         * posix/tst-vfork3.c: New test.
2293 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
2295         * string/Makefile (tst-strxfrm2-ENV): Define.
2296         * stdlib/Makefile (tst-strtod3-ENV): Define.
2298 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
2300         * posix/getconf.c: Update copyright year.
2301         * nss/getent.c: Likewise.
2302         * iconv/iconvconfig.c: Likewise.
2303         * iconv/iconv_prog.c: Likewise.
2304         * elf/ldconfig.c: Likewise.
2305         * catgets/gencat.c: Likewise.
2306         * csu/version.c: Likewise.
2307         * elf/ldd.bash.in: Likewise.
2308         * elf/sprof.c (print_version): Likewise.
2309         * locale/programs/locale.c: Likewise.
2310         * locale/programs/localedef.c: Likewise.
2311         * nscd/nscd.c (print_version): Likewise.
2312         * debug/xtrace.sh: Likewise.
2313         * malloc/memusage.sh: Likewise.
2314         * malloc/mtrace.pl: Likewise.
2315         * debug/catchsegv.sh: Likewise.
2317 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
2319         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
2320         attempts.
2322 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
2324         * posix/wordexp.c: Remove some unnecessary tests.
2326 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
2328         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
2329         blacklist the group till after we look it up.
2331 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
2333         * include/atomic.h (atomic_forced_read): New macro.
2335 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2337         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
2339 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
2341         * nss/getXXbyYY_r.c: Include atomic.h.
2342         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
2343         add atomic_write_barrier () in between.
2345         * stdlib/Makefile (tests): Add tst-makecontext.
2346         * stdlib/tst-makecontext.c: New test.
2348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
2349         (__makecontext): Don't realign uc_mcontext.uc_regs.
2351 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
2353         * elf/dl-support.c: Include dl-procinfo.h.
2354         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
2355         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
2356         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
2357         Define.
2358         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
2359         hardcoded constants.
2360         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
2361         PPC_PLATFORM_* macros for array designators.
2363 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
2365         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
2366         names to the beginning.
2367         (_dl_powerpc_platforms): Add "power6x".
2368         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
2369         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
2370         (_DL_PLATFORMS_COUNT): Increase.
2371         (_dl_string_platform): Handle power6x case.
2372         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
2373         PPC_FEATURE_POWER6_EXT): Define.
2374         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
2376 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
2378         [BZ #3747]
2379         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
2380         [-2^31 .. 2^31) range.
2381         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
2382         targets.
2383         * stdlib/tst-rand48-2.c: New test.
2384         * stdlib/Makefile (tests): Add tst-rand48-2.
2386 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
2388         * misc/tst-pselect.c (do_test): Fix sigblock argument.
2390 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
2392         * misc/tst-pselect.c (do_test): Make sure the helper process is
2393         terminating when the test is aborted.
2395 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
2397         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
2398         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2399         Handle relatime mount option.
2401         [BZ #2337]
2402         * libio/Makefile (tests): Add tst-setvbuf1.
2403         * libio/tst-setvbuf1.c: New file.
2405 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
2407         [BZ #2337]
2408         * libio/genops.c (__uflow): Fix a typo.
2409         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
2410         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
2411         the narrow buffer size.
2413 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
2415         [BZ #2337]
2416         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
2417         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
2418         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
2419         in _flags.
2420         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
2421         _IO_wstr_finish): Likewise.
2422         * libio/wmemstream.c (open_wmemstream): Likewise.
2423         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
2424         even for wide streams.
2426 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
2428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
2429         kernel-features.h.
2431 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
2433         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
2434         separators also if no non-zero digits found.
2435         * stdlib/Makefile (tests): Add tst-strtod3.
2437 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
2439         [BZ #3632]
2440         * include/features.h: Fix comment about default value for
2441         _POSIX_C_SOURCE.
2443         [BZ #3664]
2444         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
2445         empty parsed strings.
2446         * stdlib/Makefile (tests): Add tst-strtod2.
2447         * stdlib/tst-strtod2.c: New file.
2449         [BZ #3673]
2450         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
2451         computation.
2452         * stdlib/Makefile (tests): Add tst-atof2.
2453         * stdlib/tst-atof2.c: New file.
2455         [BZ #3674]
2456         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
2457         correctly if removing trailing zero of hex-float.
2458         * stdlib/Makefile (tests): Add tst-atof1.
2459         * stdlib/tst-atof1.c: New file.
2461 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
2463         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
2464         Start searching for next comma at p rather than rest.
2465         * misc/Makefile (tests): Add tst-mntent2.
2466         * misc/tst-mntent2.c: New test.
2468         * misc/getusershell.c (initshells): Check for integer overflows.
2469         Make strings buffer one bigger as fgets always succeeds when second
2470         argument is 1.  Don't use calloc for shells array.  Disallow
2471         / as shell.
2473 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
2475         * malloc/memusage.c: Handle realloc with new size of zero and
2476         non-NULL pointer correctly.
2477         (me): Really write first record twice.
2478         (struct entry): Make format bi-arch safe.
2479         (dest): Write out more realloc statistics.
2480         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
2482 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
2484         * nis/nis_subr.c (nis_getnames): Revert last change.
2486 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2488         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
2489         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
2490         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
2491         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
2492         ENOTTY.
2493         * io/Makefile: Add rules to build and run tst-ttyname_r test.
2494         * io/tst-ttyname_r.c: New test.
2496 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2498         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
2500 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
2502         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
2503         jump table entries.
2505 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
2507         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
2508         `clone' function to ensure proper unwinding stop of gdb.
2509         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2511 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
2513         * nscd/nscd.init: Remove obsolete and commented-out -S option
2514         handling.
2516 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
2518         [BZ #3514]
2519         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
2521         [BZ #3515]
2522         * manual/string.texi (strtok): Remove duplicate paragraph.
2524 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2526         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
2527         libgcc not supporting `rflags' unwinding (register # >= 17).
2529 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
2531         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
2532         succeeded.
2534 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
2535             Jakub Jelinek  <jakub@redhat.com>
2536             Jan Kratochvil  <jan.kratochvil@redhat.com>
2538         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
2539         unwind information.
2540         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
2541         'restore_rt' even in the 'signal' directory.
2542         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
2544 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
2546         [BZ #3559]
2547         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
2548         malloc crashed.  Don't allocate memory unnecessarily in each
2549         loop.
2551 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
2553         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
2555 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
2557         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
2559 2006-11-18  Bruno Haible  <bruno@clisp.org>
2561         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
2562         __sysconf only after having tried to call getgroups32.
2564 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
2566         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
2567         addresses for IPv4 queries if they can be mapped.
2569 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
2571         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
2572         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
2573         (signmask): Add .size directive.
2574         (othermask): Add .type directive.
2576 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
2578         * po/nl.po: Update from translation team.
2580         * timezone/zdump.c: Redo fix for BZ #3137.
2582 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
2584         * nss/nss_files/files-alias.c (get_next_alias): Set line back
2585         to first_unused after parsing :include: file.
2587 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
2589         * timezone/africa: Update from tzdata2006o.
2590         * timezone/antarctica: Likewise.
2591         * timezone/asia: Likewise.
2592         * timezone/australasia: Likewise.
2593         * timezone/backward: Likewise.
2594         * timezone/europe: Likewise.
2595         * timezone/iso3166.tab: Likewise.
2596         * timezone/northamerica: Likewise.
2597         * timezone/southamerica: Likewise.
2598         * timezone/zone.tab: Likewise.
2600         * time/tzfile.c (__tzfile_read): Extend to handle new file format
2601         on machines with 64-bit time_t.
2603         * timezone/checktab.awk: Update from tzcode2006o.
2604         * timezone/ialloc.c: Likewise.
2605         * timezone/private.h: Likewise.
2606         * timezone/scheck.c: Likewise.
2607         * timezone/tzfile.h: Likewise.
2608         * timezone/tzselect.ksh: Likewise.
2609         * timezone/zdump.c: Likewise.
2610         * timezone/zic.c: Likewise.
2612         [BZ #3483]
2613         * elf/ldconfig.c (main): Call setlocale and textdomain.
2614         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
2616         [BZ #3480]
2617         * manual/argp.texi: Fix typos.
2618         * manual/charset.texi: Likewise.
2619         * manual/errno.texi: Likewise.
2620         * manual/filesys.texi: Likewise.
2621         * manual/lang.texi: Likewise.
2622         * manual/maint.texi: Likewise.
2623         * manual/memory.texi: Likewise.
2624         * manual/message.texi: Likewise.
2625         * manual/resource.texi: Likewise.
2626         * manual/search.texi: Likewise.
2627         * manual/signal.texi: Likewise.
2628         * manual/startup.texi: Likewise.
2629         * manual/stdio.texi: Likewise.
2630         * manual/sysinfo.texi: Likewise.
2631         * manual/syslog.texi: Likewise.
2632         * manual/time.texi: Likewise.
2633         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2635         [BZ #3465]
2636         * sunrpc/clnt_raw.c: Minimal message improvements.
2637         * sunrpc/pm_getmaps.c: Likewise.
2638         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
2639         * nis/nis_print_group_entry.c: Likewise.
2640         * locale/programs/repertoire.c: Likewise.
2641         * locale/programs/charmap.c: Likewise.
2642         * malloc/memusage.sh: Likewise.
2643         * elf/dl-deps.c: Likewise.
2644         * locale/programs/ld-collate.c: Likewise.
2645         * libio/vswprintf.c: Likewise.
2646         * malloc/memusagestat.c: Likewise.
2647         * sunrpc/auth_unix.c: Likewise.
2648         * sunrpc/rpc_main.c: Likewise.
2649         * nscd/cache.c: Likewise.
2650         * locale/programs/repertoire.c: Unify output messages.
2651         * locale/programs/charmap.c: Likewise.
2652         * locale/programs/ld-ctype.c: Likewise.
2653         * locale/programs/ld-monetary.c: Likewise.
2654         * locale/programs/ld-numeric.c: Likewise.
2655         * locale/programs/ld-time.c: Likewise.
2656         * elf/ldconfig.c: Likewise.
2657         * nscd/selinux.c: Likewise.
2658         * elf/cache.c: Likewise.
2659         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
2661         [BZ #3451]
2662         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
2663         change atomic.
2664         (ceil): Likewise.
2666 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
2668         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
2669         if N is one bigger than return value.
2670         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
2671         and l1 last arguments, if buf is defined, verify the return value
2672         equals to strlen (buf) and verify no byte beyond passed length
2673         is modified.
2675 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
2677         * po/sv.po: Update from translation team.
2679 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
2681         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
2682         noinline attribute.
2684 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
2686         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
2687         noinline attribute.
2689         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
2690         Use __new_sys_siglist instead of _sys_siglist_internal as
2691         second macro argument.
2692         (_old_sys_siglist): Use declare_symbol_alias macro instead of
2693         strong_alias.
2695 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
2697         [BZ #3493]
2698         * posix/unistd.h (sysconf): Remove const attribute.
2700         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
2701         temporary or deprecated addresses.
2702         Patch by Sridhar Samudrala <sri@us.ibm.com>.
2704         * string/Makefile (tests): Add tst-strxfrm2.
2705         * string/tst-strxfrm2.c: New file.
2707 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
2709         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
2710         rather than r->r_brk.
2712 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
2714         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
2715         optimization even if needed > n.
2717         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
2718         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
2719         return false, otherwise return true.
2720         (cache_rpath): Return decompose_rpath return value.
2722 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
2724         * include/libc-symbols.h (declare_symbol): Rename to...
2725         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
2726         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
2727         .size directive.
2728         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
2729         changes.
2730         * sysdeps/gnu/siglist.c: Likewise.
2732 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
2734         * sysdeps/powerpc/fpu/bits/mathinline.h
2735         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
2736         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
2738 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
2740         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
2741         Update handling of cache descriptor 0x49 for new models.
2742         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
2743         Likewise.
2745 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
2747         * malloc/memusage.c (dest): Reset not_me back to false after
2748         printing statistics.
2750 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
2752         * configure.in: Work around ld --help change and avoid -z relro
2753         test completely if the architecture doesn't care about security.
2755 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
2757         * po/sv.po: Update from translation team.
2759 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
2761         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
2762         generate compatibility version.
2764 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
2766         * configure.in: Relax -z relro requirement a bit.
2768         * po/sv.po: Update from translation team.
2770 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2772         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
2773         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
2774         * elf/dl-close.c (_dl_close_worker): Likewise.
2775         * elf/dl-open.c (_dl_open_worker): Likewise.
2776         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
2778 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
2780         * configure.in: Require assembler support for visibility, compiler
2781         support for visibility and aliases, linker support for various -z
2782         options.
2783         * Makeconfig: Remove conditional code which now is unnecessary.
2784         * config.h.in: Likewise.
2785         * config.make.in: Likewise.
2786         * dlfcn/Makefile: Likewise.
2787         * elf/Makefile: Likewise.
2788         * elf/dl-load.c: Likewise.
2789         * elf/rtld.c: Likewise.
2790         * include/libc-symbols.h: Likewise.
2791         * include/stdio.h: Likewise.
2792         * io/Makefile: Likewise.
2793         * io/fstat.c: Likewise.
2794         * io/fstat64.c: Likewise.
2795         * io/fstatat.c: Likewise.
2796         * io/fstatat64.c: Likewise.
2797         * io/lstat.c: Likewise.
2798         * io/lstat64.c: Likewise.
2799         * io/mknod.c: Likewise.
2800         * io/mknodat.c: Likewise.
2801         * io/stat.c: Likewise.
2802         * io/stat64.c: Likewise.
2803         * libio/stdio.c: Likewise.
2804         * nscd/Makefile: Likewise.
2805         * stdlib/Makefile: Likewise.
2806         * stdlib/atexit.c: Likewise.
2807         * sysdeps/generic/ldsodefs.h: Likewise.
2808         * sysdeps/i386/dl-machine.h: Likewise.
2809         * sysdeps/i386/sysdep.h: Likewise.
2810         * sysdeps/i386/i686/memcmp.S: Likewise.
2811         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2812         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2813         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2815         * Makerules: USE_TLS support is now default.
2816         * tls.make.c: Likewise.
2817         * csu/Versions: Likewise.
2818         * csu/libc-start.c: Likewise.
2819         * csu/libc-tls.c: Likewise.
2820         * csu/version.c: Likewise.
2821         * dlfcn/dlinfo.c: Likewise.
2822         * elf/dl-addr.c: Likewise.
2823         * elf/dl-cache.c: Likewise.
2824         * elf/dl-close.c: Likewise.
2825         * elf/dl-iteratephdr.c: Likewise.
2826         * elf/dl-load.c: Likewise.
2827         * elf/dl-lookup.c: Likewise.
2828         * elf/dl-object.c: Likewise.
2829         * elf/dl-open.c: Likewise.
2830         * elf/dl-reloc.c: Likewise.
2831         * elf/dl-support.c: Likewise.
2832         * elf/dl-sym.c: Likewise.
2833         * elf/dl-sysdep.c: Likewise.
2834         * elf/dl-tls.c: Likewise.
2835         * elf/ldconfig.c: Likewise.
2836         * elf/rtld.c: Likewise.
2837         * elf/tst-tls-dlinfo.c: Likewise.
2838         * elf/tst-tls1.c: Likewise.
2839         * elf/tst-tls10.h: Likewise.
2840         * elf/tst-tls14.c: Likewise.
2841         * elf/tst-tls2.c: Likewise.
2842         * elf/tst-tls3.c: Likewise.
2843         * elf/tst-tls4.c: Likewise.
2844         * elf/tst-tls5.c: Likewise.
2845         * elf/tst-tls6.c: Likewise.
2846         * elf/tst-tls7.c: Likewise.
2847         * elf/tst-tls8.c: Likewise.
2848         * elf/tst-tls9.c: Likewise.
2849         * elf/tst-tlsmod1.c: Likewise.
2850         * elf/tst-tlsmod13.c: Likewise.
2851         * elf/tst-tlsmod13a.c: Likewise.
2852         * elf/tst-tlsmod14a.c: Likewise.
2853         * elf/tst-tlsmod2.c: Likewise.
2854         * elf/tst-tlsmod3.c: Likewise.
2855         * elf/tst-tlsmod4.c: Likewise.
2856         * elf/tst-tlsmod5.c: Likewise.
2857         * elf/tst-tlsmod6.c: Likewise.
2858         * include/errno.h: Likewise.
2859         * include/link.h: Likewise.
2860         * include/tls.h: Likewise.
2861         * locale/global-locale.c: Likewise.
2862         * locale/localeinfo.h: Likewise.
2863         * malloc/arena.c: Likewise.
2864         * malloc/hooks.c: Likewise.
2865         * malloc/malloc.c: Likewise.
2866         * resolv/Versions: Likewise.
2867         * sysdeps/alpha/dl-machine.h: Likewise.
2868         * sysdeps/alpha/libc-tls.c: Likewise.
2869         * sysdeps/generic/ldsodefs.h: Likewise.
2870         * sysdeps/generic/tls.h: Likewise.
2871         * sysdeps/i386/dl-machine.h: Likewise.
2872         * sysdeps/ia64/dl-machine.h: Likewise.
2873         * sysdeps/ia64/libc-tls.c: Likewise.
2874         * sysdeps/mach/hurd/fork.c: Likewise.
2875         * sysdeps/mach/hurd/i386/tls.h: Likewise.
2876         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
2877         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
2878         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
2879         * sysdeps/s390/libc-tls.c: Likewise.
2880         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2881         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2882         * sysdeps/sh/dl-machine.h: Likewise.
2883         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2884         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2885         * sysdeps/x86_64/dl-machine.h: Likewise.
2887         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
2888         split out locking and parameter checking.
2889         (_dl_close): Call _dl_close_worker after locking and checking.
2890         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
2891         _dl_close.
2892         * elf/Makefile: Add rules to build and run tst-thrlock.
2893         * elf/tst-thrlock.c:  New file.
2895         [BZ #3426]
2896         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
2897         reality.
2899         [BZ #3429]
2900         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
2901         we are sure we do not need it anymore for _dl_close.  Also move
2902         the asserts inside the lock region.
2903         Patch mostly by Suzuki <suzuki@in.ibm.com>.
2905 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
2907         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
2908         argument.
2909         (_dl_lookup_symbol_x): Adjust caller.
2911         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
2912         _ns_global_scope.
2913         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
2915         * elf/dl-libc.c: Revert l_scope name changes.
2916         * elf/dl-load.c: Likewise.
2917         * elf/dl-object.c: Likewise.
2918         * elf/rtld.c: Likewise.
2919         * elf/dl-close.c (_dl_close): Likewise.
2920         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
2921         always use __rtld_mrlock_{change,done}.  Always free old scope list
2922         here if not l_scope_mem.
2923         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
2924         change.  Never free scope list here.  Just __rtld_mrlock_lock before
2925         the lookup and __rtld_mrlock_unlock it after the lookup.
2926         * elf/dl-sym.c: Likewise.
2927         * include/link.h (struct r_scoperec): Remove.
2928         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
2929         with l_scope_mem and l_scoperec_lock with l_scope_lock.
2931 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
2933         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
2935 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
2937         * configure.in: Disable building profile libraries by default.
2939 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
2941         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
2942         as signed longs, check for x_base + pos overflow.
2943         * sunrpc/Makefile (tests): Add tst-xdrmem2.
2944         * sunrpc/tst-xdrmem2.c: New test.
2946 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
2948         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
2949         _dl_lookup_symbol_x code.
2951 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
2953         * elf/dl-runtime.c: Include sysdep-cancel.h.
2954         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
2955         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
2956         instead of catomic_* macros.
2957         * elf/dl-sym.c: Include sysdep-cancel.h.
2958         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
2959         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
2960         * elf/dl-close.c: Include sysdep-cancel.h.
2961         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
2962         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
2963         * elf/dl-open.c: Include sysdep-cancel.h.
2964         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
2965         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
2967 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
2969         [BZ #3313]
2970         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
2971         fastbin rather than end of fastbin array.
2973 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
2975         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
2976         body macro.
2977         * sysdeps/x86_64/bits/atomic.h
2978         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
2979         (catomic_decrement): Use correct body macro.
2981 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
2983         * include/atomic.h: Add a unique prefix to all local variables
2984         in macros.
2985         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
2987 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
2989         [BZ #3369]
2990         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
2991         and 7.
2993 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
2995         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
2997 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
2999         [BZ #3313]
3000         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
3001         determine highest fast bin to consolidate, always look into all of
3002         them.
3003         (do_check_malloc_state): Only require for empty bins for large
3004         sizes in main arena.
3006         * libio/stdio.h: Add more __wur attributes.
3008         * elf/dl-minimal.c (realloc): Optimize last patch.
3010 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
3012         [BZ #3352]
3013         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
3014         and use memcpy() if it does.
3016 2006-11-12  Andreas Jaeger  <aj@suse.de>
3018         [BZ #2510]
3019         * manual/search.texi (Hash Search Function): Clarify.
3020         (Array Search Function): Clarify.
3022 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
3024         [BZ #2830]
3025         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
3026         shifting.
3027         * math/atest-exp2.c (read_mpn_hex): Likewise.
3028         * math/atest-sincos.c (main): Likewise.
3030 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
3032         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
3033         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
3034         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
3035         version GLIBC_2.6.
3036         * Versions.def: Add GLIBC_2.6 for libc.
3038         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
3040         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
3042 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
3044         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
3046         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
3048         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
3049         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
3051 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
3053         * include/atomic.c: Define catomic_* operations.
3054         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
3055         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
3056         * malloc/memusage.c: Likewise.
3057         * gmon/mcount.c: Likewise.
3058         * elf/dl-close.c: Likewise.
3059         * elf/dl-open.c: Likewise.
3060         * elf/dl-profile.c: Likewise.
3061         * elf/dl-sym.c: Likewise.
3062         * elf/dl-runtime.c: Likewise.
3063         * elf/dl-fptr.c: Likewise.
3064         * resolv/res_libc.c: Likewise.
3066 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
3068         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
3069         components which lack them.
3071         * nis/nis_subr.c (nis_getnames): Make sure that we always return
3072         at least one entry consisting of the parameter concatenated with
3073         the domain.
3075 2006-10-10  Roland McGrath  <roland@frob.com>
3077         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
3078         * sysdeps/mach/hurd/futimes.c: Likewise.
3079         * sysdeps/mach/hurd/lutimes.c: Likewise.
3081 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
3082             Jakub Jelinek  <jakub@redhat.com>
3084         Implement reference counting of scope records.
3085         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
3086         from the list in objects which remain.  Always allocate new scope
3087         record.
3088         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
3089         don't resize, allocate a new one.
3090         * elf/dl-runtime.c: Update reference counters before using a scope
3091         array.
3092         * elf/dl-sym.c: Likewise.
3093         * elf/dl-libc.c: Adjust for l_scope name change.
3094         * elf/dl-load.c: Likewise.
3095         * elf/dl-object.c: Likewise.
3096         * elf/rtld.c: Likewise.
3097         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
3098         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
3099         Add l_scoperec_lock.
3100         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
3101         * sysdeps/generic/rtld-lowlevel.h: New file.
3103         * include/atomic.h: Rename atomic_and to atomic_and_val and
3104         atomic_or to atomic_or_val.  Define new macros atomic_and and
3105         atomic_or which do not return values.
3106         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
3107         Various cleanups.
3108         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3110         * po/sv.po: Update from translation team.
3112 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
3114         * Versions.def: Add GLIBC_2.6 to libpthread.
3116         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
3117         (versioned_symbol): Likewise.
3118         (compat_symbol): Likewise.
3120         * po/tr.po: Update from translation team.
3122 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
3124         * nis/Banner: Removed.  It's been integral part forever and the
3125         author info is incomplete anyway.
3126         * libio/Banner: Likewise.
3128         * nis/nis_table.c (nis_list): If __follow_path fails in the new
3129         code, make sure the nis_freeresult call doesn't crash and that the
3130         result is reported correctly.
3132 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
3134         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
3135         when callback is NULL.
3137         * nis/Versions (libnss_nisplus): Add
3138         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
3139         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
3140         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
3141         _nss_create_tablename): Rename to...
3142         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
3143         ... these.  No longer static.
3144         (internal_setgrent): Adjust users.
3145         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
3146         Don't use locking around _nss_grp_create_tablename call.
3147         * nis/nss_nisplus/nisplus-initgroups.c: New file.
3149 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
3151         * version.h (VERSION): Bump to 2.5.90 for new development tree.
3153 2006-10-06  Andreas Jaeger  <aj@suse.de>
3155         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
3157 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
3159         * po/pl.po: Update from translation team.
3161         * nscd/nscd.c (main): Fix typo in message.
3162         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
3164 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
3166         [BZ #3291]
3167         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
3168         errno.h, signal.h, unistd.h and sysdep-cancel.h.
3169         (__sigprocmask): Define.
3171 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
3173         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
3174         used.
3176 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
3178         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
3179         in oldtotal and newtotal calculation.
3180         * nscd/nscd-client.h (struct mapped_database): Add datasize
3181         field.
3182         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
3183         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
3184         increased.
3185         (__nscd_cache_search): Add checks to make sure we never reference
3186         data beyond the current mapping.
3188 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
3190         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
3191         variables const to avoid compiler warnings.
3193         * io/fts.c (fts_close): Remove redundant checks.
3194         (fts_build): Likewise.
3195         (fts_palloc): Likewise.
3197         * manual/message.texi (Advanced gettext functions,
3198         Using gettextized software): Fix typos.
3200 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
3202         * posix/glob.c (glob_in_dir): Add some comments and asserts to
3203         explain why there are no leaks.
3205 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
3207         * libio/wmemstream.c: Include <wchar.h>.
3208         * libio/bug-wmemstream1.c: Likewise.
3209         * libio/tst-wmemstream1.c: Likewise.
3210         * libio/tst-wmemstream2.c: Likewise.
3212         * version.h (RELEASE): Bump to 2.5.
3213         * README: Regenerated.
3215         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
3217         [BZ #3273]
3218         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
3219         found no group members.
3220         Patch by Petr Baudis.
3222 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
3224         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
3225         assert bootstrap_map.l_tls_modid is zero.
3226         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
3227         if USE___THREAD.
3229 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
3231         * libio/stdio.h: Move open_wmemstream prototype to ...
3232         * wcsmbs/wchar.h: ... here.
3234 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
3236         [BZ #3252]
3237         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
3238         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
3239         __{,l}chown to handle the rest.
3240         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
3241         fchownat syscall and __ASSUME_32BITUIDS case inline, call
3242         __{,l}chown to handle the rest.
3243         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
3244         i386/fchownat.c.
3245         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
3246         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
3248         [BZ #3253]
3249         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
3250         time, rather allocate increasingly bigger arrays of pointers, if
3251         possible with alloca, if too large with malloc.
3253 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
3255         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
3257         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
3259 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
3261         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
3262         home addresses.
3263         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
3264         IFA_F_HOMEADDRESS flag for interfaces.
3265         * include/ifaddrs.h (struct in6addrinfo): Define
3266         in6ai_homeaddress.
3268 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
3270         [BZ #3225]
3271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
3272         PTR_DEMANGLE3): Define.
3273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
3274         PTR_DEMANGLE3): Likewise.
3275         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
3276         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3277         Likewise.
3278         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
3280 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
3282         * po/libc.pot: Regenerated.
3283         * po/be.po: Updated.
3284         * po/ca.po: Likewise.
3285         * po/cs.po: Likewise.
3286         * po/da.po: Likewise.
3287         * po/de.po: Likewise.
3288         * po/el.po: Likewise.
3289         * po/en_GB.po: Likewise.
3290         * po/es.po: Likewise.
3291         * po/fi.po: Likewise.
3292         * po/fr.po: Likewise.
3293         * po/gl.po: Likewise.
3294         * po/hr.po: Likewise.
3295         * po/hu.po: Likewise.
3296         * po/ja.po: Likewise.
3297         * po/ko.po: Likewise.
3298         * po/nb.po: Likewise.
3299         * po/nl.po: Likewise.
3300         * po/pl.po: Likewise.
3301         * po/pt_BR.po: Likewise.
3302         * po/ru.po: Likewise.
3303         * po/rw.po: Likewise.
3304         * po/sk.po: Likewise.
3305         * po/sv.po: Likewise.
3306         * po/tr.po: Likewise.
3307         * po/zh_CN.po: Likewise.
3308         * po/zh_TW.po: Likewise.
3310         [BZ #3137]
3311         * iconv/iconv_prog.c (main): Fix spelling in error message.
3312         * iconv/iconvconfig.c (main): Likewise.
3313         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
3314         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
3315         * locale/programs/localedef.c (main): Likewise.
3316         * locale/programs/repertoire.c (repertoire_read): Likewise.
3317         * timezone/zdump.c (main): Likewise.
3318         * nscd/connections.c (handle_request): Fix spelling in log message.
3319         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
3321 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
3323         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
3324         interfaces.
3326 2006-09-20  Andreas Jaeger  <aj@suse.de>
3328         * math/libm-test.inc (lrint_test_upward): Fix typo.
3330 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
3332         [BZ #2592]
3333         * math/libm-test.inc (lrint_test_tonearest): New function.
3334         (lrint_test_towardzero): New function.
3335         (lrint_test_downward): New function.
3336         (lrint_test_upward): New function.
3337         (main): Run these new tests.
3338         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
3339         of values near to 0.
3340         (two52): Use double not long double.
3341         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
3342         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
3343         (two23): Use float not double.
3344         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
3345         (two23): Use float not double.
3346         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
3347         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
3348         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
3349         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
3351 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3353         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
3354         Cast sp to unsigned long to avoid compiler warning.
3355         Use __makecontext_ret function instead of a trampoline on the stack.
3356         (__makecontext_ret): New function.
3357         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
3359 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
3361         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
3362         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
3363         bits.
3365 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
3367         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
3368         sure no reference to the unloaded map's search list remains in the
3369         dependency's scope.
3371 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
3373         * elf/Makefile: Add rules to build and run unload7 test.
3374         * elf/unload7.c: New test.
3375         * elf/unload7mod1.c: New file.
3376         * elf/unload7mod2.c: New file.
3378 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
3380         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
3381         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
3382         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
3383         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
3384         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
3385         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
3386         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
3387         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
3388         PTRACE_GETEVENTMSG): Likewise.
3389         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
3390         values.
3392 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
3394         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
3395         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
3396         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
3397         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
3399 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
3401         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
3402         write '\0' to the fd.
3403         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
3404         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
3405         Change regs to unsigned long pointer from unsigned int, fix fscr
3406         offset.
3408 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
3410         * io/Makefile (CFLAGS-fstatat.c): Set.
3411         (CFLAGS-fstatat64.c): Likewise.
3412         (CFLAGS-mknodat.c): Likewise.
3414         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
3415         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
3416         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
3417         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
3419 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
3420             Steven Munroe  <sjmunroe@us.ibm.com>
3422         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
3423         names to the beginning.  Rename "cell" to "cellbe".
3424         (_dl_powerpc_platforms): New.
3425         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
3426         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
3427         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
3428         (_DL_HWCAP_PLATFORM): Define to new mask.
3429         (_dl_platform_string, _dl_string_platform): New functions.
3430         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
3431         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
3433 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
3435         [BZ #2526]
3436         * README.libm: Fix a thinko in sqrt algorithm description.
3438         [BZ #3143]
3439         * manual/string.texi (argz_delete): Fix prototype.
3440         Patch by <alpt@freaknet.org>.
3442 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
3444         [BZ #3138]
3445         * io/test-lfs.c (do_prepare): Give name_len type size_t.
3446         * io/tst-fcntl.c (do_prepare): Likewise.
3447         * posix/tst-exec.c (do_prepare): Likewise.
3448         * posix/tst-preadwrite.c (do_prepare): Likewise.
3449         * posix/tst-spawn.c (do_prepare): Likewise.
3450         * posix/tst-truncate.c (do_prepare): Likewise.
3451         * rt/tst-aio.c (do_prepare): Likewise.
3452         * rt/tst-aio64.c (do_prepare): Likewise.
3453         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
3454         size_t.
3456 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
3458         [BZ #2821]
3459         * time/mktime.c (guess_time_tm): Fix overflow detection.
3460         * time/Makefile (tests): Add bug-mktime1.
3461         * time/bug-mktime1.c: New file.
3463         [BZ #3189, #3188]
3464         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
3465         (mremap): Likewise.
3467 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
3469         [BZ #1006]
3470         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
3471         Ensure relocation doesn't clobber any bits outside of the
3472         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
3473         R_SPARC_HI22 and R_SPARC_H44.
3475         [BZ #2775]
3476         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
3477         (long) (MINSIZE + nb - old_size) is positive.
3479         * malloc/arena.c (grow_heap): When growing bail even if new_size
3480         is negative.
3482         [BZ #3155]
3483         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
3484         stack below r1.
3486 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
3488         * posix/regex_internal.c (re_string_reconstruct): Handle
3489         offset < pstr->valid_raw_len && pstr->offsets_needed case.
3490         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
3491         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
3492         re_string_context_at.
3493         * posix/Makefile: Add rules to build and run bug-regex26 test.
3494         * posix/bug-regex26.c: New test.
3496         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
3497         rather than col_sym_free.  Move seqp declaration earlier.
3499         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
3501 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
3503         * nscd/initgrcache.c (addinitgroupsX): Move any_success
3504         decl before first goto out.
3506 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
3508         * Makerules (shlib.lds): If have-hash-style, put .hash section
3509         at the end of the RO segment.
3511 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
3513         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
3514         style hash table format is used.
3516 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
3518         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
3519         randomization rather than before.
3520         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
3522 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
3524         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
3526         * malloc/malloc.c (_int_malloc): Use full list insert and not
3527         shortcut which assumes the list is empty for large requests
3528         too.
3530         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
3532 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
3534         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
3535         and offout arguments to the prototype.
3536         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
3537         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
3538         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
3539         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
3540         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
3541         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
3542         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
3543         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
3545 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
3547         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
3549         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
3550         dlopen parameters.
3552 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
3554         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
3555         only if herrno is NETDB_INTERNAL.  Handle errors other than
3556         ERANGE outside of the loops, handle TRY_AGAIN.
3558         * locale/programs/ld-ctype.c (translit_flatten): Issue error
3559         if other's ctype category was missing.
3560         * locale/programs/ld-collate.c (collate_read): Return if
3561         copy_locale's collate category is missing.
3563 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
3565         [BZ #2684]
3566         * malloc/malloc.c (public_rEALLOc): Try harder by using other
3567         arenas if allocation failed.
3568         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
3570 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
3572         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
3573         waste bins[0..1].
3574         (malloc_state): Reduce bins size by 2.
3575         (_int_malloc): Fix test for large enough buffer for early termination.
3576         When no unsorted block matches perfectly and an exiting block has
3577         to be split, use full list insert and not shortcut which assumes
3578         the list is empty.
3580         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
3581         failure.
3583 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
3585         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
3586         do anything.
3588         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
3589         symbol require exact match (these are PLTs).
3590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
3591         (_dl_ppc64_addr_sym_match): Likewise.
3593         [BZ #2683]
3594         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
3595         If symbol has a value use it.
3596         * elf/tst-dladdr1.c: New file.
3597         * elf/Makefile: Add rules to build and run tst-addr1.
3599 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
3601         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
3602         keeps failing and heap growth or new heap creation isn't
3603         successful either.
3604         * malloc/tst-malloc.c (main): Add new tests.
3606 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
3608         [BZ #2734]
3609         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
3610         as in the x86-64 code to use bswap.
3612 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
3614         [BZ #2680]
3615         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
3616         __USE_UNIX98.
3617         * posix/bits/unistd.h: Likewise.
3619 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
3621         [BZ #2751]
3622         * string/strchr.c: Add cast to avoid warning.
3624 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
3626         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
3627         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
3628         limit is needed to avoid the exploding of the address space
3629         requirement for secondary heaps.
3630         * malloc/arena.c (HEAP_MAX_SIZE): Define using
3631         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
3633 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
3635         [BZ #3018]
3636         * Makerules (depfiles): Handle extra-test-objs the same as
3637         extra-objs.
3638         (common-mostlyclean): Likewise.
3639         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
3640         instead.
3641         * elf/Makefile (extra-objs): Likewise.
3642         * stdlib/Makefile (extra-objs): Likewise.
3644 2006-08-14  Eric Blake  <ebb9@byu.net>
3646         [BZ #3044]
3647         * misc/error.h: Assume C89 or better.
3648         * misc/error.c: Likewise.
3650 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
3652         [BZ #3040]
3653         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
3654         __ASSUME_ATFCTS is defined.
3656 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
3658         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
3659         to sort in each call.
3661         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
3662         is empty simply return and use next service.
3663         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
3665         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
3666         tells us when not finding a charmap file is an error.
3667         * locale/programs/charmap.h: Adjust charmap_read prototype.
3668         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
3669         cannot find a charmap.
3670         * locale/programs/localedef.c (main): Adjust charmap_read call.
3672 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
3674         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
3675         sysdeps/posix/pause.c implementation instead.
3677 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
3679         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
3680         to EPERM.
3682 2006-08-13  Andreas Schwab  <schwab@suse.de>
3684         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
3685         Don't clobber caller's LRSAVE.
3686         (_dl_prof_resolve): Likewise.
3688 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
3690         [BZ #1996]
3691         * libio/memstream.c (open_memstream): Allocate initial buffer with
3692         calloc.
3693         * libio/wmemstream.c (open_wmemstream): Likewise.
3694         * libio/strops.c: Pretty printing.
3695         (_IO_str_overflow): Clear uninitialized part of the new buffer.
3696         (enlarge_userbuf): New function.
3697         (_IO_str_seekoff): Call it if seek position is larger than current
3698         buffer.
3699         * libio/wstrops.c: Likewise.
3700         * libio/vasprintf.c: Add comment as to why we do not have to use
3701         calloc instead of malloc to allocate initial buffer.
3702         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
3703         * libio/bug-memstream1.c: New file.
3704         * libio/bug-wmemstream1.c: New file.
3706 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
3708         * libio/wstrops.c: Remove dead macro definitions and comments.
3709         * libio/strops.c: Likewise.
3711         [BZ #2764]
3712         * login/utmpname.c (__utmpname): Remove unnecessary test.
3714 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
3716         [BZ #2832]
3717         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
3718         0s from integers.
3720 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
3722         [BZ #2987]
3723         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
3724         for CPU clocks.
3725         * sysdeps/unix/clock_settime.c: Add support for platform-specific
3726         setting of CPU clocks.
3728 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3730         [BZ #2841]
3731         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
3732         since C99 requires the result to promote to 'int' when uint_least8_t
3733         and uint_least16_t promote to 'int'.
3735 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
3737         [BZ #3013]
3738         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
3739         lenght of one output field, correct bitmask creation.
3740         * locale/programs/ld-time.c: Add alignment.
3742         [BZ #2997]
3743         * misc/error.c: Add space between program name and message if file
3744         name is missing.
3746 2006-08-03  Eric Blake  <ebb9@byu.net>
3748         [BZ #2998]
3749         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
3751 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
3753         * malloc/memusagestat.c: Silence warnings.
3755         * malloc/malloc.c: Dynamically size mmap treshold if the program
3756         frees mmaped blocks.
3757         Patch by Valerie Henson and Arjan van de Ven.
3759 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
3761         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
3762         __USE_GNU.
3764         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
3765         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
3766         (DEF): Don't put the var into .gnu.linkonce.r.* section.
3767         Only provide var definitions in strtol_l (or for *ull*
3768         in strtoll_l).
3770         * stdio-common/bug16.c (tests): New array.
3771         (do_tests): Allow the first hexadecimal digit
3772         to be 1, 2, 4 or 8.  Do 3 additional tests.
3774         * sysdeps/s390/fpu/libm-test-ulps: Update.
3776         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
3777         fchownat syscall if available.
3778         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
3779         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
3780         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
3782 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
3784         * nis/nis_xdr.c: Avoid some function calls.
3786 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
3787             Ulrich Drepper  <drepper@redhat.com>
3789         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
3790         short cut if only one name component is stripped away.
3792 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
3794         * nis/nis_call.c: Minor cleanups throughout.
3795         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
3796         (first_shoot): Add search_parent_first parameter.  Only if it is set
3797         search parent server first.
3798         If directory for table found through cold start cache is not the same
3799         as referenced in the cache, don't use it.
3800         (__nisfind_server): Take additional parameter.  Pass it on to
3801         first_shoot.
3802         (__prepare_niscall): Adjust __nisfind_server call.
3803         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
3804         * nis/nis_table.c: Adjust __nisfind_server call.
3805         * nis/nis_lookup.c: Likewise.
3806         (nis_lookup): Don't loop endlessly if name is reduced to ".".
3808 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
3810         [BZ #2182]
3811         * math/s_cacosh.c: Return values from positive branch.
3812         * math/s_cacoshf.c: Likewise.
3813         * math/s_cacoshl.c: Likewise.
3815         [BZ #2883]
3816         * sysvipc/sys/msg.h: Change return value to ssize_t.
3817         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3818         * sysvipc/msgrcv.c: Likewise.
3819         * include/sys/msg.h: Likewise.
3821         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
3822         test introduced in patch for bz #661.
3823         (getgrouplist): Simplify code a bit.  Don't allocate one additional
3824         element for NEWGROUPS.
3826         [BZ #2908]
3827         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
3828         'f', use '1' as leading digit not '\1'.
3829         * stdio-common/Makefile (tests): Add bug16.
3830         * stdio-common/bug16.c: New file.
3832         [BZ #2914]
3833         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
3834         and don't try to open it.  The patch introducing the macro
3835         contained a bug and used the same file name as the new file
3836         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
3837         this out completely.
3839         [BZ #2926]
3840         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
3841         Patch by Jerry James <Jerry.James@usu.edu>.
3843         * rt/Makefile (tests): Add tst-clock2.
3844         * rt/tst-clock2.c: New file.
3846         [BZ #2978]
3847         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
3848         function and its parameters and pass it to new thread.
3849         (__gai_notify): Add support for alternative waiting for completion.
3850         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
3851         waiting for completion.
3852         * resolv/getaddrinfo_a.c: Likewise.
3853         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
3854         waiting for completion is used.
3855         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
3856         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
3857         * resolv/gai_error.c: Likewise.
3858         * resolv/gai_sigqueue.c: Likewise.
3860 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
3862         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
3863         errno to EBADF and return MACH_PORT_NULL.
3865 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
3867         [BZ #2980]
3868         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
3870 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
3872         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
3873         walk them instead of the symbol table.
3875 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
3877         [BZ #2098]
3878         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
3879         status of NSS calls, not the number of returned entries.
3881         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
3882         request_key, keyctl.
3884 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
3886         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
3888 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
3890         * elf/tst-auditmod1.c: Fix typo in #error.
3892 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
3894         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
3896         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
3898 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
3900         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
3901         that the directory is empty even on non-POSIX filesystems.
3903 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
3905         * elf/dl-open.c (dl_open_worker): Add branch prediction.
3907         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
3908         the backend NSS module.  If backend setgrent call failed, don't have
3909         internal_setgrent fail.  Just remember this until it is needed.
3910         * nis/nss_compat/compat-pwd.c: Likewise.
3911         * nis/nss_compat/compat-spwd.c: Likewise.
3913 2006-07-30  Roland McGrath  <roland@redhat.com>
3915         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
3916         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
3917         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
3918         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
3920         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
3921         (nanosleep_not_cancel): New macro.
3922         (sigsuspend_not_cancel): new macro.
3923         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
3924         (do_sigsuspend): Define as inline.
3925         (__sigsuspend): Always use do_sigsuspend.
3926         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
3927         * include/signal.h: Declare __sigsuspend_nocancel.
3928         * sysdeps/posix/pause.c
3929         [! NO_CANCELLATION] (__pause_nocancel): New function.
3931         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
3932         * include/time.h (__nanosleep_nocancel): Likewise.
3934 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
3936         * locale/programs/localedef.c (add_to_readlist): Rename local
3937         variables to avoid confusion.
3939         * locale/programs/charmap.c (charmap_read): Emit error message if
3940         charmap couldn't be found or read.
3942 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
3944         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3945         __ASSUME_FUTEX_LOCK_PI.
3946         * include/time.h: Declare __nanosleep_nocancel.
3947         * include/unistd.h: Declare __pause_nocancel.
3949         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
3950         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
3951         get the __stack_chk_fail_local definition when it's needed.
3953 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
3955         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
3956         * dlfcn/bug-atexit3.c: New file.
3957         * dlfcn/bug-atexit3-lib.cc: New file.
3959         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
3960         used when the namespace is not the base namespace.
3962 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
3964         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
3965         (__new_exitfn): Bump it in every successful call.
3966         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
3967         more exit handlers, call them right away.
3968         * stdlib/exit.h: Declare __new_exitfn_called.
3970 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
3972         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
3973         calling registered handler.
3975         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
3976         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3977         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3978         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3979         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3980         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3981         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3982         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3984 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
3986         * elf/dl-lookup.c (dl_new_hash): New functions.
3987         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
3988         value here.  Compute new-style hash value.  Pass new hash value
3989         and reference to variable with the old value to do_lookup_x.
3990         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
3991         old-style hash table.
3992         (_dl_debug_bindings): Pass new hash value and reference to variable
3993         with the old value to do_lookup_x.
3994         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
3995         new-style hash value and change old-style hash value parameter to
3996         be a reference.  Reoganize functions to determine whether
3997         new-style hash table is available.  Only fall back on old-style
3998         table.  If old-style hash value is needed, compute it here.
3999         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
4000         entry.
4001         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
4002         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
4003         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
4004         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
4005         * Makeconfig: If linker supports --hash-style option add it to all
4006         linker command lines to build DSOs.
4007         * config.make.in: Define have-hash-style.
4008         * configure.in: Test whether linker supports --hash-style option.
4010         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
4011         * sysdeps/generic/ldsodefs.h: Adjust prototype.
4013 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
4015         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
4016         auditing.
4018         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
4019         RPATH of main map twice.
4021 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
4023         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
4024         look further, return original strings.
4025         (_nl_find_msg): Do not return found translation if the conversion
4026         failed.  Either signal the string is unusable or that something went
4027         wrong and the original should be used.
4029 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
4031         * string/_strerror.c (__strerror_r): Add __builtin_expect.
4033 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
4035         [BZ #2766]
4036         * misc/insremque.c (insque): Handle prev == NULL.
4037         * misc/Makefile (tests): Add tst-insremque.
4038         * misc/tst-insremque.c: New test.
4040 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
4042         [BZ #2792]
4043         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
4044         conflict with DL_DST_REQUIRED.
4046 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
4048         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
4049         match what Solaris does.
4051 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
4053         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
4054         local_setegid instead of seteuid and setegid.
4055         * sysdeps/generic/local-setxid.h: New file.
4056         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
4058         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
4060         * string/Makefile (tests): Add bug-envz1.
4061         * string/bug-envz1.c: New file.
4063 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
4065         * posix/regex_internal.c (re_string_skip_chars): If no character has
4066         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
4067         to the byte which couldn't be converted.
4068         (re_string_reconstruct): Don't clear valid_raw_len before calling
4069         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
4070         tip_context using re_string_context_at.
4071         * posix/Makefile: Add rules to build and run bug-regex25 test.
4072         * posix/bug-regex25.c: New test.
4074 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
4076         [BZ #2703]
4077         * string/envz.c (envz_strip): Correct erroneously reversed src
4078         and dest parameters to memmove() invocation.
4080 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
4082         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
4083         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
4084         to make sure the database has been already invalidated.
4085         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
4086         after the cache has been invalidated.  Use pthread_mutex_lock rather
4087         than pthread_mutex_trylock if fd != -1.
4088         * nscd/connections.c (invalidate_cache): Add fd argument, write
4089         response to fd if not calling prune_cache, pass fd to prune_cache.
4090         (handle_request): Adjust invalidate_cache caller.
4091         (nscd_run): Pass -1 as fd to prune_cache.
4093 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
4095         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
4096         the correct place.
4098 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
4100         * nscd/nscd.h (struct database_dyn): Add prunelock field.
4101         * nscd/cache.c (prune_cache): Take prunelock before starting the
4102         work.  Just return in case it is already taken.
4103         * nscd/connections.c (dbs): Initialize .prunelock.
4105 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
4107         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
4108         copying.  No need to allocate new array for group members.  Just
4109         move the pointers and update the size.
4111         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
4112         Avoid memory leak in case realloc fails.  Simplification for
4113         better code generation.
4115         Avoid deprecation warning because of libc_hidden_proto for
4116         inet6_option_alloc.
4117         * inet/inet6_option.c (option_alloc): Renamed from
4118         inet6_option_alloc.  Made static.
4119         (inet6_option_alloc): Now a simple wrapper around option_alloc.
4120         (inet6_option_append): Call option_alloc.
4121         * include/netinet/in.h: Remove libc_hidden_proto for
4122         inet6_option_alloc.
4124         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
4125         for cleanup when cb!=NULL [Coverity CID 233].
4127 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
4129         [BZ #2693]
4130         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
4131         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
4132         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
4133         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
4134         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
4135         and inet6_rth_getaddr.
4136         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
4137         array.
4138         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
4139         Mark inet6_option_* interfaces as deprecated.
4140         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
4141         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
4142         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
4143         inet6_rth_segments, and inet6_rth_getaddr.
4144         * inet/inet6_opt.c: New file.
4145         * inet/inet6_rth.c: New file.
4147         * inet/netinet/icmp6.h: Pretty printing.
4149         [BZ #2683]
4150         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
4152 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
4154         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
4155         doing it all here.  When server does not know the answer do not
4156         fail immediate, try parent first.
4158         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
4159         overflow test.
4161 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
4163         * nis/nis_call.c (__prepare_niscall): New function.  Split out
4164         from __do_niscall.
4165         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
4166         and exported.
4167         (__follow_path): New function.  Split out from nis_list.
4168         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
4169         _xdr_nis_result.
4170         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
4171         _xdr_nis_result.
4172         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
4173         and __follow_path.
4174         * nis/Versions: Export __prepare_niscall, __create_ib_request,
4175         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
4176         from libnsl for version GLIBC_PRIVATE.
4177         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
4178         Remove entry parameter from _nss_nisplus_parse_pwent and
4179         _nss_nisplus_parse_grent.
4180         * nis/nss_nisplus/nisplus-parser.c: Likewise.
4181         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
4182         again.  Rewrite getpwent handling to not use nis_first_entry and
4183         nis_next_entry.  Roll out own niscall handling.
4184         * nis/nss_nisplus/nisplus-grp.c: Likewise.
4186         * sunrpc/xdr_rec.c: Fix typo in comment.
4188 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
4190         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
4191         handling.
4193         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
4194         to allocate memory for my_pollfd.  Better initialization of
4195         cb_is_running.  Use TEMP_FAILURE_RETRY.
4197         * malloc/memusage.sh (memusageso): Add quotes.
4198         (memusagestat): Likewise.
4199         * debug/xtrace.sh (pcprofileso): Likewise.
4200         (pcprofiledump): Likewise.
4201         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
4202         replacement.
4203         * malloc/Makefile ($(objpfx)memusage): Likewise.
4205         * nis/nis_callback.c (__nis_create_callback): Calls to
4206         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
4207         asprintf call fails.
4209         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
4210         no uninitialized memory is passed to sendto.
4212 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
4214         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
4215         of snprintf+strdup.  Handle OOM.
4216         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
4217         cb->serv together.  Remove now obsolete free calls.
4218         (__nis_destroy_callback): Remove now obsolete free call.
4220 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
4222         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
4223         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
4224         and ULA respectively). Set precedence for IPv4 address to 10 as
4225         defined in RFC3484 for preferring IPv6.
4226         * posix/gai.conf: Update to match the new default tables.
4228 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
4230         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
4231         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
4232         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
4233         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
4235         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
4236         Removed.
4237         (init_nss_interface): Remove initialization of these variables.
4239 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
4241         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
4242         nis_free_directory forward to avoid duplication.
4244 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
4246         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
4247         rec_dirsearch returning NULL.
4248         (first_shoot): Handle __nis_finddirectory returning NULL.
4249         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
4251         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
4252         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
4254 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
4256         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
4257         pid changed.
4259 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
4261         * include/rpc/pmap_prot.h: Mark all functions as hidden.
4263         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
4264         * nscd/nscd_getgr_r.c: Likewise.
4266         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
4268         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
4269         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
4271         * stdlib/longlong.h (__clz_tab): Mark as hidden.
4273         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
4275         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
4277         * include/rpc/auth.h: Mark xdr_des_block_internal and
4278         xdr_opaque_auth_internal as hidden.
4280         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
4281         hidden.
4283         * include/rpc/xdr.h: Mark all _internal functions as hidden.
4285         * misc/getusershell.c (okshells): Don't use static initializers,
4286         do it dynamically.
4288         * stdlib/fmtmsg.c (keywords): Change type of len element to
4289         uint32_t to not waste space on 64bit machines.
4291         * locale/setlocale.c: Change _nl_category_names into a string.
4292         Add new _nl_category_name_idxs.  Change all users.
4293         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
4294         Declare _nl_category_name_idxs.
4295         * locale/findlocale.c: Adjust for _nl_category_names change.
4296         * locale/loadlocale.c: Likewise.
4297         * locale/newlocale.c: Likewise.
4298         * intl/dcigettext.c: Likewise.
4300         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
4301         (add_alias2): ...here.  New function.
4302         (__gconv_read_conf): Simplify builtin alias handling.
4303         (builtin_aliases): Convert to string to avoid relocations.
4304         * iconv/gconv_builtin.h: Add comment about correct formatting.
4306 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
4308         * resolv/res_debug.c (loc_ntoa): Make error const.
4310 2006-05-14  Andreas Schwab  <schwab@suse.de>
4312         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
4314 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
4316         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
4317         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
4318         sizeof (cpu_set_t).
4320 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
4322         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
4324         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
4326         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
4327         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
4329         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
4330         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
4332         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
4333         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
4334         xdr_cback_data.
4336         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
4337         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
4338         xdr_ypupdate_args.
4340         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
4341         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
4343         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
4344         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
4346         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
4347         * include/rpcsvc/nis_callback.h: New file.
4349         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
4350         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
4352         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
4353         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
4355         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
4356         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
4358         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
4359         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
4361         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
4362         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
4363         xdr_ypdelete_args.
4365         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
4366         __BEGIN_DECLS and __END_DECLS, the header is not installed.
4368         * nis/nis_error.c: Remove table of strings.  Use position
4369         independent mechanism.
4370         * nis/nis_error.h: New file.
4372 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
4374         * locale/programs/ld-time.c (time_finish): If wide era name or
4375         format aren't provided, set both wname and wformat to L"".
4377 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
4379         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
4380         results if the call was succesful.
4382         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
4384         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
4385         as hidden.
4387 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
4389         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
4391 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
4393         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
4394         caller makes sure this is not the case.
4395         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
4397 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
4399         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
4400         calls.
4402         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
4403         [Coverity CID 229, 230]
4405         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
4406         DGETTEXT calls.
4407         (hol_help): Likewise.  [Coverity CID 226, 227]
4409         * string/argz-replace.c (__argz_replace): Unconditionally call
4410         free on SRC.  [Coverity CID 225]
4412         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
4413         the return value of __nis_default_owner and __nis_default_group,
4414         it has been especially allocated.  [Coverity CID 224]
4416         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
4417         searchgroup and searchowner.  Significantly simplified.
4418         (__nis_default_owner): Remove duplication.  Do not locally copy the
4419         string before duplicating it.
4420         (__nis_default_group): Likewise.
4422         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
4423         we must clear the variable before calling __nisfind_server.
4425         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
4426         nis_getnames.  [Coverity CID 223]
4428         * locale/programs/locfile.c (locfile_read): Use alloca instead of
4429         xmalloc to allocate local repertoire name.  [Coverity CID 222]
4431         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
4432         allocate memory for the input to add_bytes.  [Coverity CID 221]
4434         * posix/wordexp.c (w_addword): Free word if realloc fails and it
4435         was allocated here.  [Coverity CID 219, 220]
4437         * posix/getconf.c (print_all): Free confstr data after printing.
4438         [Coverity CID 218]
4440         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
4441         list allocation fails.  [Coverity CID 215]
4443         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
4444         [Coverity CID 213]
4446         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
4447         string is NULL.  [Coverity CID 212]
4448         * argp/Makefile: Add rules to build and run bug-argp1.
4449         * argp/bug-argp1.c: New file.
4451         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
4452         end of string.
4453         * stdlib/canonicalize.c (__realpath): Likewise.
4455         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
4456         pointer.  [Coverity CID 206]
4458         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
4459         in statically linked code.
4460         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
4461         statically built code, be prepared to have no link map.
4462         [Coverity CID 205]
4464         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
4465         dgettext calls. [Coverity CID 204]
4467         * argp/argp-help.c (struct uparams): Remove valid member.  Change
4468         the one user.
4469         (uparam_names): Reduce size.  Avoid relative relocations.
4470         Moved to read-only segment.
4471         (fill_in_uparams): Update for new layout.
4473         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
4474         assumed to always be != NULL. [Coverity CID 202]
4476         * argp/argp-help.c (hol_entry_help): Remove some dead code
4477         [Coverity CID 200].
4479         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
4480         away a few more unconditional yperr2nss calls.
4481         (_nss_nis_getservbyname_r): Likewise.
4483 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
4485         * sysdeps/generic/ldsodefs.h: Remove support for non-core
4486         architectures.
4488         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
4489         that unused memory passed to sendto is nevertheless initialized.
4491         [BZ #2499]
4492         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
4493         possibly unaligned memory accesses.
4495         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
4496         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
4497         and __putlong respectively.  Correct buffer overflow check for
4498         NS_NOTIFY_OP.
4500         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
4502         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
4503         (send_dg): Rewrite error handling to be more compact and avoid
4504         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
4506         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
4508         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
4509         instead of ns_get16.
4510         (res_queriesmatch): Likewise.  Minor optimization.
4512         [BZ #2499]
4513         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
4514         __libc_res_nsend might reallocate the buffer for the answer.  In
4515         this case we have to reload the HP pointer.
4517 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
4519         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
4520         some branch prediction hints.
4522         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
4523         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4524         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4525         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
4526         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4527         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4528         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4529         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4531 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4533         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
4534         by a GOT relocation to make Scrt1.o position independent.
4535         * sysdeps/s390/s390-64/elf/start.S: Likewise.
4537         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
4538         six system call parameters.
4539         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
4541 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
4543         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
4544         malloc&bzero.
4546         * sunrpc/svc_udp.c (BZERO): Remove definition.
4547         (CALLOC): Define.
4548         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
4550         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
4551         (des_SPtrans): Use uint32_t type.
4552         (des_skb): Likewise.
4554         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
4556 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
4558         [BZ #2509]
4559         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
4560         on 32-bit arches.
4562 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
4564         * locale/programs/ld-address.c (address_finish): Fix one more
4565         place where the iso639 array might be accessed beyond the limits.
4567 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
4569         * nis/nis_table.c (nis_list): Avoid clearing res twice before
4570         filling it for the first time.
4572         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
4573         Adjust all callers.
4574         Free res object content before returning.
4576         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
4578         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
4579         client->cl_auth.
4581         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
4582         cleanup for initial thread, just the free call on TVP.
4584         * nscd/gai.c (__getline): Define.
4587 See ChangeLog.16 for earlier changes.