.
[kopensolaris-gnu/glibc.git] / ChangeLog
1 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
2
3         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
4
5         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6         O_CLOEXEC is needed.
7         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
8         Avoid additional fcntl to set O_CLOEXEC if not needed.
9         * nis/nss_compat/compat-initgroups.c: Likewise.
10         * nis/nss_compat/compat-pwd.c: Likewise.
11         * nis/nss_compat/compat-spwd.c: Likewise.
12
13 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14
15         * manual/errno.texi: Change ECANCELED value to 119.
16
17         * mach/lock-intern.h: Include <sys/cdefs.h>.
18
19         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
20         reading A.
21
22         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
23         to __sigsuspend.
24
25         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
26
27 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
28
29         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
30         `__ASSEMBLER__'.
31         * sysdeps/mach/hurd/i386/tls.h: Likewise.
32
33 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
34
35         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
36         descriptor received from nscd.
37
38         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
39
40         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
41         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
42         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
43         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
44         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
46
47 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
48
49         [BZ #4816]
50         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
51
52         [BZ #4813]
53         * login/forkpty.c (forkpty): Close master and slave fds on
54         fork failure.  Patch by
55         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
56
57 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
58
59         * include/features.h (__USE_ISOC95): New define.
60         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
61         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
62         for -std=iso9899:199409.
63         * CONFORMANCE: Remove comments about unsupported AMD1.
64
65 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
66
67         * sysdeps/ia64/sched_cpucount.c: New file.
68         * sysdeps/powerpc/sched_cpucount.c: New file.
69
70         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
71         __BEGIN_DECLS/__END_DECLS around the prototype.
72         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
73         pointer to const cpu_set_t.
74
75         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
76         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
77         __need_size_t and include stddef.h.
78         * sysvipc/sys/msg.h: Likewise.
79         * posix/sched.h: Likewise.
80         * hurd/hurd/signal.h (__need_size_t): Define.
81
82         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
83         neither does signal.h in pedantic ISO C namespaces.  stdio.h
84         no longer defines wint_t or wchar_t.
85
86         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
87         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
88         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
89         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
90         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
91         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
92         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
93         * debug/printf_chk.c (__printf_chk): Likewise.
94         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
95         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
96
97         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
98         Define.
99
100         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
101         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
102
103 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
104
105         [BZ #4792]
106         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
107         * malloc/malloc.h (realloc): Likewise.
108
109         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
110         if one of proc_file_chain streams has that fileno.
111         * stdio-common/Makefile (tests): Add tst-popen2.
112         * stdio-common/tst-popen2.c: New test.
113
114 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
115
116         * elf/ldconfig.c: Allow GPLv2 or any later version.
117         * elf/readlib.c: Likewise.
118         * elf/chroot_canon.c: Likewise.
119         * elf/cache.c: Likewise.
120         * nscd/mem.c: Likewise.
121         * nscd/getpwuid_r.c: Likewise.
122         * nscd/grpcache.c: Likewise.
123         * nscd/aicache.c: Likewise.
124         * nscd/getsrvbynm_r.c: Likewise.
125         * nscd/nscd.c: Likewise.
126         * nscd/servicescache.c: Likewise.
127         * nscd/getsrvbypt_r.c: Likewise.
128         * nscd/initgrcache.c: Likewise.
129         * nscd/gethstbyad_r.c: Likewise.
130         * nscd/gethstbynm2_r.c: Likewise.
131         * nscd/getgrnam_r.c: Likewise.
132         * nscd/nscd_setup_thread.c: Likewise.
133         * nscd/getpwnam_r.c: Likewise.
134         * nscd/gai.c: Likewise.
135         * nscd/connections.c: Likewise.
136         * nscd/dbg_log.c: Likewise.
137         * nscd/cache.c: Likewise.
138         * nscd/hstcache.c: Likewise.
139         * nscd/nscd_conf.c: Likewise.
140         * nscd/getgrgid_r.c: Likewise.
141         * nscd/pwdcache.c: Likewise.
142         * catgets/gencat.c: Likewise.
143         * locale/programs/linereader.h: Likewise.
144         * locale/programs/locarchive.c: Likewise.
145         * locale/programs/ld-paper.c: Likewise.
146         * locale/programs/locfile-kw.h: Likewise.
147         * locale/programs/ld-address.c: Likewise.
148         * locale/programs/xmalloc.c: Likewise.
149         * locale/programs/ld-time.c: Likewise.
150         * locale/programs/localedef.c: Likewise.
151         * locale/programs/simple-hash.c: Likewise.
152         * locale/programs/xstrdup.c: Likewise.
153         * locale/programs/ld-numeric.c: Likewise.
154         * locale/programs/locfile-kw.gperf: Likewise.
155         * locale/programs/ld-collate.c: Likewise.
156         * locale/programs/charmap-kw.gperf: Likewise.
157         * locale/programs/charmap.h: Likewise.
158         * locale/programs/charmap-kw.h: Likewise.
159         * locale/programs/config.h: Likewise.
160         * locale/programs/locfile.c: Likewise.
161         * locale/programs/ld-ctype.c: Likewise.
162         * locale/programs/charmap.c: Likewise.
163         * locale/programs/ld-messages.c: Likewise.
164         * locale/programs/repertoire.h: Likewise.
165         * locale/programs/locale.c: Likewise.
166         * locale/programs/ld-name.c: Likewise.
167         * locale/programs/linereader.c: Likewise.
168         * locale/programs/locfile.h: Likewise.
169         * locale/programs/3level.h: Likewise.
170         * locale/programs/ld-monetary.c: Likewise.
171         * locale/programs/ld-measurement.c: Likewise.
172         * locale/programs/charmap-dir.c: Likewise.
173         * locale/programs/ld-identification.c: Likewise.
174         * locale/programs/localedef.h: Likewise.
175         * locale/programs/charmap-dir.h: Likewise.
176         * locale/programs/repertoire.c: Likewise.
177         * locale/programs/simple-hash.h: Likewise.
178         * locale/programs/ld-telephone.c: Likewise.
179         * locale/programs/locale-spec.c: Likewise.
180         * locale/programs/locfile-token.h: Likewise.
181         * posix/getconf.c: Likewise.
182         * iconv/dummy-repertoire.c: Likewise.
183         * iconv/iconv_charmap.c: Likewise.
184         * iconv/iconvconfig.c: Likewise.
185         * iconv/iconv_prog.c: Likewise.
186         * malloc/memusagestat.c: Likewise.
187         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
188
189 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
190
191         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
192         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
193         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
194         check for the first argument.
195
196 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
197
198         [BZ #4775]
199         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
200         (__tgmath_real_type): Fix if expr is const int or other const
201         qualified integral type.
202         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
203         expressions and handle const qualified arguments.
204         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
205         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
206         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
207         statement expressions.
208         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
209         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
210         (__TGMATH_UNARY_IMAG): Define.
211         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
212         * math/Makefile (tests): Add test-tgmath2.
213         (CFLAGS-test-tgmath2.c): Add.
214         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
215         count_cfloat, count_cldouble): New variables.
216         (NCCALLS): Define.
217         (main): Check number of complex calls as well.
218         (F(compile_test)): Add complex tests and tests with const qualified
219         arguments.
220         (y, z, ccount): Define.
221         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
222         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
223         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
224         F(cproj)): New functions.
225         * math/test-tgmath2.c: New test.
226
227 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
228
229         [BZ #4776]
230         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
231         RPATH etc. as "/" rather than "", don't segfault on empty paths,
232         instead output ".".
233         * dlfcn/Makefile (distribute): Add glreflib3.c.
234         (module-names): Add glreflib3.
235         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
236         glreflib1.so.
237         (LDFLAGS_glreflib3.so): New.
238         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
239         glreflib1.so.
240         * dlfcn/glreflib3.c: New file.
241
242         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
243         returned -1, return NULL.
244         * intl/explodename.c (_nl_explode_name): Return -1 if
245         _nl_normalize_codeset failed.
246
247 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
248
249         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
250         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
251         and avoid branch misspredicts for > 31 bytes memset case.
252         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
253         Remove toc ref to __cache_line_size.
254
255         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
256         to get ISA-V2.0 branch hints.
257         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
258         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
259         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
260         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
261         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
262         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
263         Remove toc ref to __cache_line_size.
264
265         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
266         Include math_ldbl_opt.h.
267
268 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
269
270         [BZ #4773]
271         * time/strptime_l.c (__strptime_internal): Implement greedy
272         matching of weekday and month names.
273
274 2007-07-09  Roland McGrath  <roland@redhat.com>
275
276         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
277         (ELF_NOTE_ABI): Use it.
278         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
279
280 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
281
282         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
283         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
284
285 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
286
287         [BZ #4745]
288         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
289         in loop to look for conversion specifier to avoid testing of
290         wrong errno value.
291         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
292         * stdio-common/bug18.c: New file.
293         * stdio-common/bug18a.c: New file.
294         * stdio-common/bug19.c: New file.
295         * stdio-common/bug19a.c: New file.
296
297 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
298
299         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
300         running awk script.
301
302 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
303
304         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
305         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
306         Return NULL if mmap failed instead of asserting it does not.
307         (calloc): Check for integer overflow.
308
309         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
310         than LONG_MAX / 10.
311
312 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
313
314         [BZ #4702]
315         * nis/nss-default.c: Include errno.h.
316         (init): Preserve errno.
317
318 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
319
320         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
321
322 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
323
324         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
325
326 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
327
328         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
329
330 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
331
332         * sysdeps/s390/dl-procinfo.c: New file.
333         * sysdeps/s390/dl-procinfo.h: New file.
334         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
335
336 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
337
338         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
339         in PT_NOTE segments with multiple notes.
340         * elf/readelflib.c (process_elf_file): Likewise.
341
342 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
343
344         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
345         ISO C compliant.
346
347 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
348
349         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
350
351 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
352
353         * include/link.h: Don't include rtld-lowlevel.h.
354         (struct link_map): Remove l_scope_lock.
355         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
356         (_dl_scope_free_list): New field (variable) in _rtld_global.
357         (DL_LOOKUP_SCOPE_LOCK): Remove.
358         (_dl_scope_free): New prototype.
359         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
360         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
361         (_dl_profile_fixup): Likewise.
362         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
363         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
364         THREAD_GSCOPE_RESET_FLAG around it.
365         * elf/dl-close.c (_dl_close_worker): Don't use
366         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
367         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
368         scopes were queued or if l_scope_mem has been abandoned.
369         * elf/dl-open.c (_dl_scope_free): New function.
370         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
371         * elf/dl-support.c (_dl_scope_free_list): New variable.
372         * elf/dl-lookup.c (add_dependency): Remove flags argument.
373         Remove DL_LOOKUP_SCOPE_LOCK handling.
374         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
375         handling.
376         * elf/dl-object.c (_dl_new_object): Don't use
377         __rtld_mrlock_initialize.
378
379 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
380
381         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
382         to fill in holes
383         (rtld_global_ro): Likewise.
384
385 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
386
387         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
388         Move PT_LOAD checking to...
389         (_dl_addr_inside_object): ... here, new function.
390         * elf/dl-sym.c (do_sym): If not l_contiguous,
391         call _dl_addr_inside_object.
392         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
393         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
394         * elf/dl-open.c (dl_open_worker): Likewise.
395         (_dl_addr_inside_object): New function if IS_IN_rtld.
396         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
397         holes are present or are PROT_NONE protected.
398         * include/link.h (struct link_map): Add l_contiguous field.
399         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
400
401 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
402             Tomas Janousek  <tjanouse@redhat.com>
403             Ulrich Drepper  <drepper@redhat.com>
404
405         [BZ #4647]
406         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
407         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
408         socket.
409         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
410         unused member a bitmap.
411         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
412         servers are configured.
413
414 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
415
416         * elf/rtld.c (dl_main): Don't call init_tls more than once.
417
418 2007-06-17  Andreas Schwab  <schwab@suse.de>
419
420         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
421
422 2007-06-16  Andreas Jaeger  <aj@suse.de>
423
424         [BZ #4125]
425         * sysdeps/unix/sysv/linux/sys/ptrace.h
426         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
427         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
428         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
429         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
430         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
431         Define.
432         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
433         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
434         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
435         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
436
437 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
438
439         [BZ #4599]
440         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
441         determining whether there are IPv4/IPv6 addresses, ignore loopback
442         addresses.
443
444 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
445
446         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
447         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
448         as the return type.  Change type of "r" variable to CMPtype.
449         * soft-fp/eqsf2.c (__eqsf2): Likewise.
450         * soft-fp/eqtf2.c (__eqtf2): Likewise.
451         * soft-fp/gedf2.c (__gedf2): Likewise.
452         * soft-fp/gesf2.c (__gesf2): Likewise.
453         * soft-fp/getf2.c (__getf2): Likewise.
454         * soft-fp/ledf2.c (__ledf2): Likewise.
455         * soft-fp/lesf2.c (__lesf2): Likewise.
456         * soft-fp/letf2.c (__letf2): Likewise.
457         * soft-fp/unorddf2 (__unorddf2): Likewise.
458         * soft-fp/unordsf2 (__unordsf2): Likewise.
459         * soft-fp/unordtf2 (__unordtf2): Likewise.
460
461 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
462
463         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
464         make sure gcc doesn't mess around with this.
465
466 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
467
468         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
469
470 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
471
472         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
473         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
474         at most once per _dl_close_worker.
475
476 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
477
478         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
479         __sched_cpucount as const.
480         * posix/sched_cpucount.c: Adjust.
481
482         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
483         instruction for counting bits.
484         * sysdeps/x86_64/sched_cpucount.c: New file.
485
486 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
487
488         * configure.in: Avoid variable named BASH.
489         * config.make.in: Likewise.
490         Patch in part by Mike Frysinger.
491
492 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
493
494         [BZ #4586]
495         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
496         pseudo-zeros as zero.
497         * sysdeps/x86_64/ldbl2mpn.c: New file.
498         * sysdeps/ia64/ldbl2mpn.c: New file.
499
500 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
501
502         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
503         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
504         Remove unreachable code at the end.
505
506 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
507
508         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
509         ldbl-128ibm in comment.
510         (fpclassifyl): Correct classification of denormals.
511         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
512         return value for MIN denormal. Rewrite using long double math too
513         correctly handle denormals and canonicalize the results.
514
515 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
516
517         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
518         (__mpn_construct_long_double): Fix conversion where result ought
519         to be smaller than __LDBL_MIN__, or the low double should be
520         denormal.  Fix decision where to negate low double - honor round
521         to even rules.
522         * stdio-common/tst-sprintf2.c: Include string.h.
523         (COMPARE_LDBL): Define.
524         (TEST): Also test whether a string hexadecimal float representation
525         can be parsed back to the number.
526         (main): Add a couple of further tests.
527
528 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
529
530         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
531         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
532         is non-zero, but smaller than 2 * __DBL_MIN__.
533         * stdio-common/tst-sprintf2.c: New test.
534         * stdio-common/Makefile (tests): Add tst-sprintf2.
535
536         * math/test-misc.c (main): Don't run last batch of tests with
537         IBM long double format.
538
539 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
540
541         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
542         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
543         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
544         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
545         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
546         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
547         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
548         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
549         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
550         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
553         New file.
554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
555         New file.
556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
557         New file.
558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
559         New file.
560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
561         New file.
562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
564         New file.
565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
566         New file.
567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
568         New file.
569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
570         New file.
571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
572         New file.
573
574 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
575
576         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
577         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
578         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
579         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
580         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
581         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
582         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
583         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
584
585 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
586
587         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
588         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
589         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
590         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
591         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
592         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
593         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
594         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
595
596 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
597
598         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
599         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
600         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
601         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
602
603 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
604
605         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
606         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
607
608 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
609
610         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
611         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
612         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
613         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
614
615 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
616
617         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
618         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
619
620 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
621
622         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
623         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
624
625         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
626         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
627         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
628         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
629
630 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
631
632         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
633         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
634         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
635         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
636
637 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
638
639         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
640         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
641         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
642         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
643         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
644         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
645
646 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
647
648         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
649         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
650         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
651         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
652
653 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
654
655         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
656         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
657         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
658         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
659         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
660         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
661         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
662         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
663         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
664         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
665         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
666         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
667         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
668         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
669         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
670         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
671
672 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
673
674         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
675         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
676
677 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
678
679         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
680         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
681
682 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
683
684         * sysdeps/powerpc/powerpc32/970/Implies: New file.
685         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
686         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
687         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
688         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
689         * sysdeps/powerpc/powerpc64/970/Implies: New file.
690         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
691         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
692         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
693         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
694
695 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
696
697         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
698
699 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
700
701         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
702         branch miss-predicts. Ensure that cache line crossing does not impact
703         dispatch grouping.
704
705 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
706
707         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
708         "../../powerpc32/power4/memcopy.h".
709         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
710         "../../powerpc32/power4/wordcopy.c".
711
712 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
713
714         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
715         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
716         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
717         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
718         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
719         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
720
721 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
722
723         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
724
725 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
726
727         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
728         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
729         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
730         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
731         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
732         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
733         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
734         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
735
736 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
737
738         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
739
740 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
741
742         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
743         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
744         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
745         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
746         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
747         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
748         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
749
750 2007-05-29  Roland McGrath  <roland@redhat.com>
751
752         * po/Makefile (po-sed-cmd): New variable.
753         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
754
755 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
756
757         * crypt/md5-crypt.c: Fix comment.
758
759         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
760         of crashing.  When this is the case or if the reply is malformed,
761         don't try to close the new file descriptor since it does not
762         exist.
763         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
764
765 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
766
767         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
768         if __NR_utimensat is not defined.
769
770 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
771
772         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
773
774 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
775
776         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
777         (open): Fix comment typos.  Don't call __open_2 if flags
778         is a compile time constant without O_CREAT.
779         (__open64_2): Add nonnull attribute.
780         (open64): Fix comment typos.  Don't call __open64_2 if flags
781         is a compile time constant without O_CREAT.
782         (__openat_2): Add nonnull attribute, fix nonnull attribute
783         on redirect.
784         (openat): Fix comment typos.  Don't call __openat_2 if flags
785         is a compile time constant without O_CREAT.
786         (__openat64_2): Add nonnull attribute, fix nonnull attribute
787         on redirect.
788         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
789         is a compile time constant without O_CREAT.
790
791 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
792
793         * Makerules (sysd-rules): Define PTW for ptw-* files.
794         * Versions: Define GLIBC_2.7 for libc.
795         * include/stdio.h: Declare __fortify_fail.
796         * debug/fortify_fail.c: New file.
797         * debug/Makefile (routines): Add fortify_fail.
798         * debug/chk_fail.c: Use __fortify_fail.
799         * debug/stack_chk_fail.c: Likewise.
800         * io/Versions: Export __open_2, __open64_2, __openat_2, and
801         __openat64_2 for GLIBC_2.7.
802         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
803         * io/open.c: Define *_2 variant of function which checks for O_CREAT
804         and fails if necessary.
805         * io/open64.c: Likewise.
806         * io/openat.c: Likewise.
807         * io/openat64.c: Likewise.
808         * sysdeps/unix/sysv/linux/open64.c: Likewise.
809         * sysdeps/unix/sysv/linux/openat.c: Likewise.
810         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
811         * io/bits/fcntl2.h: New file.
812         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
813         __openat64_2.
814         * include/bits/fcntl2.h: New file.
815         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
816         Add open_2.
817         * sysdeps/unix/sysv/linux/open_2.c: New file.
818
819 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
820
821         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
822         as second parameter to handle_intel.
823
824         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
825         the entry.
826
827         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
828         handling to ...
829         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
830         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
831         cacheinfo.
832         * sysdeps/x86_64/memcpy.S: Complete rewrite.
833         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
834         Patch by Evandro Menezes <evandro.menezes@amd.com>.
835
836         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
837
838 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
839
840         [BZ #4525]
841         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
842         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
843         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
844
845         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
846
847         [BZ #4514]
848         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
849         reinitialize workend at the start of each do_positional format spec
850         loop, free workstart before do_positional loops.
851         (printf_unknown): Fix size of work_buffer.
852         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
853
854         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
855         (public_sET_STATe): If ms->version < 3, put all chunks into
856         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
857         chunks.
858
859         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
860         * malloc/hooks.c: Likewise.
861         * malloc/arena.c: Likewise.
862         * malloc/malloc.c (do_check_malloc_state): Don't assert
863         n_mmaps is not greater than n_mmaps_max.  This removes the need
864         for the previous change.
865
866         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
867         2007-05-07 commit.
868
869 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
870
871         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
872         Define for kernel >= 2.6.22.
873
874 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
875
876         * elf/dl-close.c (_dl_close_worker): When removing object from
877         global scope, wait for all lookups to finish afterwards.
878         * elf/dl-open.c (add_to_global): When global scope array must
879         grow, allocate a new one and free old array only after all
880         lookups finish.
881         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
882         (_dl_lookup_symbol_x): Likewise.
883         * elf/dl-support.c: Define _dl_wait_lookup_done.
884         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
885         _dl_wait_lookup_done.
886
887         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
888         not overlapping with arena.
889
890         * malloc/mcheck.c (reallochook): If size==0, free the block.
891
892         * rt/tst-shm.c: Use fstat64 instead of fstat.
893
894         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
895         __NR_sync_file_range is not defined.
896
897 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
898
899         Dummy files to prevent stub versions from being used.
900         * sysdeps/x86_64/fpu/k_cosl.c: New file.
901         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
902         * sysdeps/x86_64/fpu/k_sinl.c: New file.
903         * sysdeps/x86_64/fpu/k_tanl.c: New file.
904
905         * version.h (VERSION): Set to 2.6.90.
906
907 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
908
909         * version.h (VERSION): Define to 2.6.
910         * include/features.h (__GLIBC_MINOR__): Define to 6.
911
912         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
913
914         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
915         sizes.
916
917 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
918
919         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
920         number of mmaps.  n_mmaps_max is the target.
921         * malloc/hooks.c: Likewise.
922         * malloc/arena.c: Likewise.
923
924 2007-05-12  Andreas Jaeger  <aj@suse.de>
925
926         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
927         getpid.
928
929 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
930
931         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
932         adding new variables.
933
934         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
935         optimize.  Completely extend global scope array before making the
936         new entries visible.
937
938 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
939
940         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
941         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
942         tst-getcpu.
943
944         * include/link.h: Move l_version and l_nversion members around to
945         fill gaps.
946
947         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
948
949         * sysdeps/unix/sysv/linux/sched_setaffinity.c
950         (__sched_setaffinity_new): If syscall was successful and
951         RESET_VGETCPU_CACHE is defined, use it before returning.
952         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
953
954         * io/sys/stat.h: Make sure struct timespec is defined for
955         __USE_ATFILE.
956
957         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
958         UTIME_OMIT.
959         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
960         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
961         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
962         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
963         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
964         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
965         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
966         * io/sys/stat.h: Declare utimensat, futimens.
967         * io/utimensat.c: New file.
968         * io/futimens.c: New file.
969         * sysdeps/unix/sysv/linux/utimensat.c: New file.
970         * sysdeps/unix/sysv/linux/futimens.c: New file.
971         * io/Makefile (routines): Add utimensat, futimens.
972         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
973         * sysdeps/unix/sysv/linux/lutimes.c: New file.
974         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
975         available.
976
977         * include/sys/cdefs.h: Redefine __nonnull so that test for
978         incorrect parameters in the libc code itself are not omitted.
979
980 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
981
982         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
983         exception in addition to inexact when asked to raise only FE_INEXACT.
984
985         [BZ #3427]
986         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
987         in *envp.
988
989 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
990
991         [BZ #4403]
992         * string/strfry.c (strfry): Make result more random.
993
994 2007-05-07  Richard Henderson  <rth@redhat.com>
995
996         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
997         if __NO_LONG_DOUBLE_MATH.
998         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
999         available in the compiler, add .arch directive to the assembly.
1000
1001 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
1002
1003         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
1004         compat_symbol to GLIBC_2_1.
1005         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
1006         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
1007         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
1008         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
1009         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
1010         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
1011         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
1012         libc, not libm.
1013         (__isnanl): New compat_symbol.
1014
1015 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
1016             Jakub Jelinek  <jakub@redhat.com>
1017
1018         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
1019         (new_heap): Initialize mprotect_size.
1020         (grow_heap): When growing, only mprotect from mprotect_size till
1021         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
1022         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
1023
1024 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
1025             Peter Bergner  <bergner@us.ibm.com>
1026
1027         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
1028         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
1029         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
1030         * sysdeps/powerpc/fpu/fe_mask.c: New file.
1031         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
1032         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
1033         Call __fe_mask_env() if all FP exceptions disabled.
1034         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
1035         from old FPSCR to new fenv to propagate DFP rounding modes.
1036         Call __fe_mask_env() if FP exceptions previously enabled.
1037         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
1038         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
1039         transitioning from all exceptions disabled to any exception enabled
1040         or visa versa.
1041         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
1042         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
1043         when transitioning from all exceptions disabled to any exception
1044         enabled or visa versa.
1045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
1046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
1047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
1048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
1049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
1050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
1051
1052 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
1053
1054         [BZ #4465]
1055         * posix/unistd.h: Remove __THROW from fdatasync.
1056
1057 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
1058
1059         [BZ #4465]
1060         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
1061
1062 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
1063
1064         * stdio-common/vfprintf.c (process_string_arg): Optimize
1065         ridiculous precision in wide char code printing multi-byte string.
1066         Reported by Jim Meyering <jim@meyering.net>.
1067
1068         [BZ #4131]
1069         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
1070         boundaries to work around systems with overlapping binary loading.
1071         Based on a patch by Suzuki <suzuki@in.ibm.com>.
1072
1073 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
1074
1075         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
1076         __mbsnrtowcs after last change.
1077
1078         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
1079         (get_ident): Likewise.
1080
1081 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
1082
1083         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
1084         with setting the sticky bit.
1085         * math/test-misc.c (main): Add more truncation tests.
1086
1087 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
1088
1089         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
1090         double in the function declaration.
1091         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
1092         double in the function declaration.
1093         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
1094         float in the function declaration.
1095         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
1096         float in the function declaration.
1097
1098         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
1099         denormal operands.  Do not generate FP_EX_DENORM exception.
1100         (FP_UNPACK_RAW_EP): Ditto.
1101         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
1102         undefined _FP_UNPACK_RAW_E.
1103         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
1104         undefined _FP_UNPACK_RAW_EP.
1105         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
1106         undefined _FP_PACK_RAW_E.
1107         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
1108         undefined _FP_PACK_RAW_EP.
1109
1110         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
1111         _FP_FRAC_COPY_2.
1112         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
1113         _FP_FRAC_COPY_4.
1114
1115 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
1116             Jakub Jelinek  <jakub@redhat.com>
1117
1118         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
1119         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
1120         this case.
1121         * soft-fp/op-common.h (FP_TRUNC): Ditto.
1122
1123 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
1124
1125         * math/test-misc.c (main): Add tests for rounding long double
1126         values close to smallest double denormalized value to double.
1127
1128 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
1129
1130         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
1131         condition for truncating to 0.  Set sticky bit for such
1132         truncation.
1133
1134 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
1135
1136         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
1137         fixed length array for ignore.
1138
1139 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
1140
1141         [BZ #4438]
1142         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
1143         stack for large precisions.
1144         * stdio-common/test-vfprintf.c (main): Add test for large
1145         precision.
1146
1147 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
1148
1149         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
1150         for exponent 0.
1151         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
1152
1153         [BZ #4439]
1154         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
1155         account in the size check.
1156         * resolv/tst-inet_ntop.c: New test.
1157         * resolv/Makefile (tests): Add tst-inet_ntop.
1158
1159 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
1160             Jakub Jelinek  <jakub@redhat.com>
1161
1162         [BZ #4349]
1163         * malloc/malloc.c: Keep separate list for first blocks on the bin
1164         lists with a given size.  This helps skipping over list elements
1165         we know won't fit in two places.
1166         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
1167
1168 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
1169
1170         [BZ #4102]
1171         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
1172         label to Teredo tunnel addresses 2001://32.
1173
1174 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
1175
1176         * locale/programs/ld-collate.c (collate_read): Allow order_start
1177         after copy.
1178
1179         * locale/programs/ld-collate.c (collate_read): Fix printing of
1180         error message.
1181
1182         [BZ #3213]
1183         * locale/C-translit.h.in: Add entry for U2044.
1184
1185         [BZ #4342]
1186         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
1187         hexa-decimal floats without exponent.
1188         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
1189
1190 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
1191
1192         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
1193         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
1194         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
1195         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
1196         GLIBC_2.6.
1197         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
1198         Add sched_getcpu.
1199
1200 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
1201
1202         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
1203         of 0 after the out_fail label.
1204
1205 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
1206
1207         [BZ #4406]
1208         * iconv/gconv_charset.h (strip): Allow ':'.
1209         * iconv/iconv_open.c (iconv_open): Adjust comment.
1210
1211 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
1212
1213         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
1214         version.
1215
1216 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
1217
1218         [BZ #4381]
1219         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
1220         alignment of buffer and tmp_buffer.
1221         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
1222         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
1223         alignment of buffer.
1224         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
1225         bigger than INT_MAX.
1226         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
1227         h_errnop arguments.  Fail if buflen is too small.
1228         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
1229
1230 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
1231
1232         [BZ #4405]
1233         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
1234         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
1235
1236 2007-04-22  Roland McGrath  <roland@redhat.com>
1237
1238         * elf/elf.h (NT_PRXFPREG): New macro.
1239
1240 2007-04-19  Andreas Jaeger  <aj@suse.de>
1241
1242         [BZ #3905]
1243         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
1244         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
1245         Added.
1246
1247 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
1248
1249         * include/sys/mman.h: Mark madvise hidden.
1250         * misc/madvise.c: Add libc_hidden_def.
1251
1252 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
1253
1254         * nis/nis_domain_of.c (__nis_domain_of): New function.
1255         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
1256         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
1257         * nis/nis_call.c (rec_dirsearch): Likewise.
1258         (first_shoot): Likewise.  Remove search_parent_first argument.
1259         (struct nis_server_cache): Rename search_parent_first field
1260         to search_parent.
1261         (nis_server_cache_search, nis_server_cache_add): Rename
1262         search_parent_first argument to search_parent.
1263         (__nisfind_server): Likewise.  If search_parent, call
1264         __nis_domain_of.
1265
1266 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
1267
1268         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
1269
1270 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
1271
1272         [BZ #4368]
1273         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
1274
1275 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
1276
1277         [BZ #4364]
1278         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
1279
1280 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
1281
1282         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
1283         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
1284         current number of locales in SUPPORTED.
1285         (create_archive): Initialize serial.
1286         (enlarge_archive): Preserve aliases rather than duplicating
1287         their locrecs.
1288
1289 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
1290
1291         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
1292         after _IO_un_link, not before it.
1293
1294         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
1295         special case handling when wcp == wstartp + 1.  Fix a comment typo.
1296         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
1297
1298 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
1299
1300         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
1301         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
1302         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
1303         Remove __THROW.
1304         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
1305         _IO_file_xsgetn_maybe_mmap): Likewise.
1306         * libio/oldfileops.c (old_do_write): Likewise.
1307         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
1308         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
1309         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
1310         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
1311         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
1312         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
1313         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
1314         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
1315         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
1316         _IO_file_underflow, _IO_file_underflow_mmap,
1317         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
1318         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
1319         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
1320         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
1321         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
1322         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
1323         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
1324         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
1325         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
1326         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
1327         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
1328         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
1329         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
1330         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
1331         _IO_adjust_column_internal, _IO_default_uflow_internal,
1332         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
1333         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
1334         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
1335         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
1336         _IO_file_close_it_internal, _IO_file_underflow_internal,
1337         _IO_file_overflow_internal, _IO_file_attach_internal,
1338         _IO_file_fopen_internal, _IO_file_sync_internal,
1339         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
1340         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
1341         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
1342         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
1343         _IO_seekpos_unlocked): Likewise.
1344         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
1345         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
1346
1347 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
1348
1349         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
1350         argument in xmalloc size computation.
1351
1352 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
1353
1354         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
1355         math_opt_barrier and math_force_eval macros.
1356
1357 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
1358
1359         [BZ #3306]
1360         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
1361         * sysdeps/i386/fpu/math_private.h: New file.
1362         * sysdeps/x86_64/fpu/math_private.h: New file.
1363         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
1364         math_force_eval macros.  Use "+m" constraint on asm rather than
1365         "=m" and "m".
1366         * math/s_nextafter.c (__nextafter): Likewise.
1367         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
1368         Likewise.
1369         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
1370         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
1371         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
1372         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
1373         math_opt_barrier and math_force_eval macros.
1374         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
1375         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
1376         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
1377         (__nexttoward): Use math_opt_barrier and
1378         math_force_eval macros.  Use "+m" constraint on asm rather than
1379         "=m" and "m".  Only use asm to force double result if
1380         FLT_EVAL_METHOD is 2.
1381         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
1382         (__nexttowardf): Use math_opt_barrier and
1383         math_force_eval macros.  Use "+m" constraint on asm rather than
1384         "=m" and "m".  Only use asm to force double result if
1385         FLT_EVAL_METHOD is not 0.
1386         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
1387         (__nexttowardf): Use math_opt_barrier and
1388         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
1389         x to float using asm.
1390         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
1391         (__nldbl_nexttowardf): Use math_opt_barrier and
1392         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
1393         x to float using asm.
1394         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
1395         (__nexttowardf): Use math_opt_barrier and math_force_eval
1396         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
1397         * math/bug-nextafter.c (zero, inf): New variables.
1398         (main): Add new tests.
1399         * math/bug-nexttoward.c (zero, inf): New variables.
1400         (main): Add new tests.
1401
1402 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
1403
1404         [BZ #3427]
1405         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
1406         exceptions both in SW and MXCSR.
1407         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
1408         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
1409         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1410         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
1411         in MXCSR if SSE is available.
1412         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
1413         and ldsodefs.h.
1414         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
1415         Fix comment typo.
1416         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
1417         Return 0 rather than 1.
1418         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
1419         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
1420         * math/test-fenv.c (feholdexcept_tests): New function.
1421         (main): Call it.
1422
1423 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
1424
1425         [BZ #3427]
1426         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
1427         in SW.
1428
1429 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
1430
1431         [BZ #4344]
1432         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
1433         Reported by David Anderson <davea42@earthlink.net>.
1434
1435 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
1436
1437         * posix/sys/wait.h: Remove unnecessary forward declaration.
1438
1439 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
1440
1441         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
1442         with obj->do_servers after first_shoot.
1443
1444 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
1445
1446         * posix/Makefile (routines): Add sched_cpucount.
1447         (tests): Add tst-cpucount.
1448         * posix/sched_cpucount.c: New file.
1449         * posix/tst-cpucount.c: New file.
1450         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
1451         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
1452         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
1453         * posix/sched.h: Define CPU_COUNT.
1454
1455 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
1456
1457         * posix/fnmatch.c (STRUCT): Define.
1458         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
1459         * posix/fnmatch_loop.c (struct STRUCT): New type.
1460         (FCT): Add ends argument.  If ends != NULL and normal * is
1461         seen in the pattern, store current pattern and string pointers
1462         and return.  Adjust recursive calls.
1463         (EXT): Adjust FCT callers.
1464         (STRUCT): Undef at the end of the file.
1465         * posix/Makefile (tests): Add tst-fnmatch2.
1466         * posix/tst-fnmatch2.c: New test.
1467
1468 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
1469
1470         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
1471         and 1 on failure.
1472
1473         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
1474         Change last argument to unsigned int.
1475
1476 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
1477
1478         * scripts/check-local-headers.sh: Filter out sys/capability.h.
1479
1480 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
1481
1482         * config.h.in (HAVE_LIBCAP): Add.
1483         * nscd/selinux.h: Include sys/capability.h rather than non-existent
1484         sys/capabilities.h.
1485         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
1486         free_caps.  Cast away const from 4th cap_set_flag argument.
1487
1488 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
1489
1490         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
1491         GLIBC_2.6.
1492         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1493         Add sync_file_range.
1494         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1495
1496 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
1497
1498         * sysdeps/powerpc/bits/atomic.h
1499         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
1500         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
1501         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
1502         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
1503         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
1504         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
1505         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
1506         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
1507         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
1508         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
1509         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
1510         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
1511         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
1512         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
1513         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
1514         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
1515         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
1516         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
1517         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
1518         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
1519
1520 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
1521
1522         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
1523         (__cache_line_size): Define the variable here.  Add
1524         attribute_hidden, remove weak_extern.
1525         (__libc_start_main): Set __cache_line_size
1526         unconditionally.
1527         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1528         (__cache_line_size): Define the variable here.  Add
1529         attribute_hidden, remove weak_extern.
1530         (DL_PLATFORM_AUXV): Set __cache_line_size
1531         unconditionally.
1532         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
1533         weak_extern, add attribute_hidden.
1534         (__elf_machine_runtime_setup): Assume __cache_line_size is always
1535         defined in ld.so.
1536         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
1537         definition.
1538         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
1539
1540 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
1541
1542         [BZ #4276]
1543         * timezone/africa: Update from tzdata2007d.
1544         * timezone/asia: Likewise.
1545         * timezone/australasia: Likewise.
1546         * timezone/backward: Likewise.
1547         * timezone/europe: Likewise.
1548         * timezone/iso3166.tab: Likewise.
1549         * timezone/leapseconds: Likewise.
1550         * timezone/northamerica: Likewise.
1551         * timezone/southamerica: Likewise.
1552         * timezone/zone.tab: Likewise.
1553
1554         * timezone/private.h: Update from tzcode2007d.
1555         * timezone/zdump.c: Likewise.
1556         * timezone/zic.c: Likewise.
1557
1558 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1559
1560         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
1561         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
1562         variables.
1563         (nis_server_cache_search, nis_server_cache_add): New functions.
1564         (__nisfind_server): Use them.  Add dbp and flags argument, if
1565         call __nisbind_create.
1566         (__nisbind_create): Add server_used and current_ep arguments,
1567         only call __nis_findfastest if server_used is ~0.
1568         (__do_niscall2, __prepare_niscall): Adjust callers.
1569         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
1570         ckey_cache_euid, ckey_cache_lock): New variables.
1571         (get_ckey): New function.
1572         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
1573         __pmap_getnisport.  Save __pmap_getnisport result in
1574         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
1575         key.
1576         * nis/nis_lookup.c (nis_lookup): Likewise.
1577         * nis/nis_table.c (nis_list): Likewise.
1578         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
1579         prototypes.
1580
1581         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
1582         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
1583         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
1584         _nss_nisplus_getservbyport_r): Likewise.
1585         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
1586         _nss_nisplus_getnetbyaddr_r): Likewise.
1587         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
1588         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
1589         _nss_nisplus_getntohost_r): Likewise.
1590         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
1591         _nss_nisplus_getrpcbynumber_r): Likewise.
1592
1593 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
1594
1595         * configure.in (libc_cv_gnu89_inline): Only do compile test.
1596         * configure: Rebuilt.
1597
1598         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
1599         bit-fields.
1600         * soft-fp/extended.h (_FP_UNION_E): Likewise.
1601
1602 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
1603
1604         [BZ #2831]
1605         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
1606         bit-fields.
1607
1608 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
1609
1610         * nscd/gai.c: Include alloca.h.
1611         (__libc_use_alloca): Define.
1612
1613 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
1614
1615         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
1616         smaller scopes.
1617         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
1618         (DL_DST_REQUIRED): Adjust user.
1619
1620         * include/dlfcn.h (struct link_map): New forward decl.
1621
1622         * inet/getnameinfo.c: Include stddef.h.
1623         (getnameinfo): Use offsetof.
1624
1625         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
1626
1627         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
1628
1629         * string/strerror_l.c: Include stdlib.h.
1630
1631         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
1632         * config.make.in (gnu89-inline-CFLAGS): New variable.
1633         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
1634         -std=gnu99.
1635         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
1636         * argp/argp.h: Use it.
1637         * bits/mathinline.h: Likewise.
1638         * bits/sigset.h: Likewise.
1639         * bits/string.h: Likewise.
1640         * ctype/ctype.h: Likewise.
1641         * hurd/hurd.h: Likewise.
1642         * hurd/hurd/fd.h: Likewise.
1643         * hurd/hurd/port.h: Likewise.
1644         * hurd/hurd/signal.h: Likewise.
1645         * hurd/hurd/threadvar.h: Likewise.
1646         * hurd/hurd/userlink.h: Likewise.
1647         * io/sys/stat.h: Likewise.
1648         * libio/bits/stdio.h: Likewise.
1649         * libio/bits/stdio2.h: Likewise.
1650         * mach/lock-intern.h: Likewise.
1651         * mach/mach/mig_support.h: Likewise.
1652         * math/bits/cmathcalls.h: Likewise.
1653         * posix/bits/unistd.h: Likewise.
1654         * socket/bits/socket2.h: Likewise.
1655         * stdlib/bits/stdlib.h: Likewise.
1656         * stdlib/stdlib.h: Likewise.
1657         * string/argz.h: Likewise.
1658         * string/bits/string2.h: Likewise.
1659         * string/bits/string3.h: Likewise.
1660         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
1661         * sysdeps/generic/inttypes.h: Likewise.
1662         * sysdeps/generic/machine-lock.h: Likewise.
1663         * sysdeps/generic/machine-sp.h: Likewise.
1664         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1665         * sysdeps/i386/i486/bits/string.h: Likewise.
1666         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
1667         * sysdeps/mach/alpha/machine-lock.h: Likewise.
1668         * sysdeps/mach/alpha/machine-sp.h: Likewise.
1669         * sysdeps/mach/i386/machine-lock.h: Likewise.
1670         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
1671         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
1672         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
1673         * sysdeps/s390/bits/string.h: Likewise.
1674         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
1675         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
1676         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
1677         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
1678         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1679         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
1680         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
1681         * wcsmbs/bits/wchar2.h: Likewise.
1682         * wcsmbs/wchar.h: Likewise.
1683         * stdlib/gmp.h: Likewise.  Include <features.h> to get
1684         __extern_inline definition.
1685
1686 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
1687
1688         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
1689         NULL.
1690
1691         [BZ #3919]
1692         * math/libm-test.inc (log_test): Test -Inf and NaN.
1693         (log10_test, log1p_test, log2_test): Test -Inf.
1694         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
1695         FE_INVALID when argument is qNaN.
1696         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
1697         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
1698         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
1699         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
1700         andb $1, %ah with testb $1, %ah, don't test for parity, instead
1701         testb $4, %ah and jump if non-zero.
1702         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1703         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
1704
1705         [BZ #4101]
1706         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
1707         ancestors with the same depths.
1708         Patch by Niels Moeller <nisse@lysator.liu.se>.
1709         (filter_doc): Don't crash if argp is NULL.
1710         * argp/Makefile (tests): Add tst-argp2.
1711         * argp/tst-argp2.c: New test.
1712
1713         [BZ #4130]
1714         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
1715         open_not_cancel_2.
1716         (updwtmp_file): Likewise.
1717
1718         [BZ #4181]
1719         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
1720         (inet6_opt_append): Don't check extlen is big enough if extbuf
1721         is NULL.
1722         (inet6_opt_finish): Likewise.
1723         * inet/Makefile (tests): Add test-inet6_opt.
1724         * inet/test-inet6_opt.c: New test.
1725
1726         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
1727         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
1728         NLMSG_ERR.  Instead use a page sized buffer.
1729         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
1730         buffer.
1731
1732 2007-03-14  Richard Henderson  <rth@redhat.com>
1733
1734         * sysdeps/alpha/fpu/s_llround.c: New file.
1735         * sysdeps/alpha/fpu/s_llroundf.c: New file.
1736         * sysdeps/alpha/fpu/s_lround.c: New file.
1737         * sysdeps/alpha/fpu/s_lroundf.c: New file.
1738         * sysdeps/alpha/fpu/s_round.c: New file.
1739         * sysdeps/alpha/fpu/s_roundf.c: New file.
1740         * sysdeps/alpha/fpu/s_trunc.c: New file.
1741         * sysdeps/alpha/fpu/s_truncf.c: New file.
1742
1743         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
1744         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
1745         * sysdeps/alpha/fpu/s_floor.c: Likewise.
1746         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
1747         * sysdeps/alpha/fpu/s_rint.c: Likewise.
1748         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
1749
1750         * sysdeps/alpha/fpu/s_fmax.S: New file.
1751         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
1752         * sysdeps/alpha/fpu/s_fmin.S: New file.
1753         * sysdeps/alpha/fpu/s_fminf.S: New file.
1754         * sysdeps/alpha/fpu/s_isnan.c: New file.
1755         * sysdeps/alpha/fpu/s_isnanf.c: New file.
1756         * sysdeps/alpha/fpu/s_llrint.c: New file.
1757         * sysdeps/alpha/fpu/s_llrintf.c: New file.
1758         * sysdeps/alpha/fpu/s_lrint.c: New file.
1759         * sysdeps/alpha/fpu/s_lrintf.c: New file.
1760         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
1761         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
1762
1763         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
1764         (__fdimf, fdimf, __fdim, fdim): Remove.
1765         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
1766         (__isnanf, __isnan, __isnanl): New.
1767
1768 2007-03-13  Richard Henderson  <rth@redhat.com>
1769
1770         * sysdeps/ieee754/ldbl-128/Makefile: New file.
1771
1772 2007-03-13  Richard Henderson  <rth@redhat.com>
1773
1774         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
1775         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
1776         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
1777         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
1778         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
1779         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
1780
1781 2007-03-13  Richard Henderson  <rth@redhat.com>
1782
1783         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
1784         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
1785         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
1786         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
1787         Move to dl-auxv.h; initialize instead of extern weak.
1788         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
1789         weak symbol.
1790         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
1791         Extern instead of initialized.
1792
1793 2007-03-13  Richard Henderson  <rth@redhat.com>
1794
1795         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
1796         __sigsuspend_nocancel.
1797
1798 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
1799
1800         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
1801         172.16/12 address range.
1802
1803 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
1804
1805         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
1806         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
1807         message.
1808
1809 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
1810
1811         [BZ #4069]
1812         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
1813         earlier.
1814         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
1815
1816         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
1817         for x qNaN and y either +-inf or non-integer value.
1818         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
1819         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
1820         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
1821
1822 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
1823
1824         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
1825         from sysdep_headers.
1826
1827 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
1828
1829         * time/tzfile.c (find_transition): Instead of a linear search try to
1830         guess the transition index, use a linear search if the result is at
1831         most 10 transitions away from the guess or binary search otherwise.
1832
1833 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
1834
1835         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
1836         memory reallocation.
1837
1838 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
1839
1840         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
1841         and fix some typos.
1842         Optimize use of TOLOWER.
1843
1844         [BZ #3325]
1845         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
1846         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
1847         * sysdeps/i386/fpu/e_fmod.S: Likewise.
1848
1849         [BZ #3458]
1850         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
1851         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
1852
1853         [BZ #4076]
1854         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
1855         (open_dir_stream): Likewise.
1856         * io/Makefile (tests): Add bug-ftw5.
1857         * io/bug-ftw5.c: New file.
1858
1859         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
1860         * nscd/servicescache.c (cache_addserv): Likewise.
1861
1862         * nscd/grpcache.c (cache_addgr): In case a record changed on
1863         refresh, adjust key_copy.
1864
1865         [BZ #4074]
1866         * nscd/pwdcache.c (cache_addpw): In case a record changed on
1867         refresh, adjust key_copy.
1868
1869         [BZ #4070]
1870         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
1871         special cases.
1872         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
1873
1874 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
1875
1876         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
1877         optimization.
1878
1879         * stdio-common/vfscanf.c: Small cleanups throughout.
1880
1881 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
1882
1883         [BZ #3325]
1884         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
1885         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
1886         * sysdeps/i386/fpu/e_fmod.S: Likewise.
1887         Patch by Jared Casper <jaredcasper@gmail.com>.
1888
1889         * sysdeps/unix/closedir.c: Outside libc don't use locking.
1890         * sysdeps/unix/opendir.c: Likewise.
1891         * sysdeps/unix/readdir.c: Likewise.
1892
1893         [BZ #2211]
1894         * stdio-common/vfscanf.c: Handle localized digits etc for floating
1895         point numbers.
1896         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
1897
1898         * stdio-common/vfscanf.c: Fix problems in width accounting.
1899         * stdio-common/tst-sscanf.c (double_tests): New tests.
1900         (main): Hook them up.
1901
1902         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
1903         More simplifications of floating-point reader.
1904
1905         * stdio-common/Makefile (tests): Add tst-swscanf.
1906         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
1907         testing.
1908         * stdio-common/tst-swscanf.c: New file.
1909
1910 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
1911
1912         [BZ #2633]
1913         * libio/stdio.h: Define struct _IO_FILE in global namespace.
1914         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
1915         Remove using for __jmp_buf_tag.
1916         * locale/locale.h (struct lconv): Also define in std namespace.
1917         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
1918
1919         [BZ #3842]
1920         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
1921         using __libc_enable_secure.
1922
1923         [BZ #3818]
1924         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
1925
1926         [BZ #3745]
1927         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
1928         of names for ellipsises.
1929
1930         [BZ #3348]
1931         * malloc/memusage.sh: Cleanups.
1932         * debug/xtrace.sh: Quoting and trap changes.
1933
1934 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
1935
1936         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
1937
1938         * locale/iso-3166.def: Update entry for Serbia.
1939         * locale/iso-4217.def: Define RSD, remove CSD.
1940
1941         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
1942         and 64-bit operations.
1943
1944         [BZ #4040]
1945         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
1946         16-bit operations.
1947
1948         * nscd/nscd.c (parse_opt): One more conversion to use send instead
1949         of writev.
1950
1951 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
1952
1953         [BZ #3991]
1954         * assert/assert.h (assert): Simplify.
1955         (assert_perror): Likewise.
1956         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
1957
1958         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
1959         reqdata.
1960
1961         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
1962         change: don't pass NULL in place of an integer.
1963
1964 2007-02-02  Bruno Haible  <bruno@clisp.org>
1965
1966         [BZ #3954]
1967         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
1968         Add mapping for U+327E.
1969         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
1970         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
1971         mapping of 0xD9 0xE8.
1972         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
1973         mapping of U+327E.
1974         Reported by Jungshik Shin <jungshik@google.com>.
1975
1976         [BZ #3955]
1977         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
1978         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
1979         Reported by Jungshik Shin <jungshik@google.com>.
1980
1981 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
1982
1983         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
1984         byte variants.
1985
1986         [BZ #4040]
1987         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
1988         byte variants.  Patch mostly be tom@tommay.net.
1989
1990 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
1991
1992         [BZ #3996]
1993         * posix/glob.c (attribute_hidden): Define if not defined.
1994         (glob): Unescape dirname, filename or username when needed and not
1995         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
1996         is NULL.  Handle unescaped [ in pattern without closing ].
1997         Don't pass GLOB_CHECK down to recursive glob for directories.
1998         (__glob_pattern_type): New function.
1999         (__glob_pattern_p): Implement using __glob_pattern_type.
2000         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
2001         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
2002         Remove unreachable code.
2003         * posix/globtest.sh: Add a couple of new tests.
2004
2005 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
2006
2007         * po/ru.po: Update from translation team.
2008
2009 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
2010
2011         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
2012         to the list of i486+ CPUs.
2013         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
2014
2015 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
2016
2017         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
2018         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
2019         references.
2020
2021 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
2022
2023         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
2024
2025         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
2026         * resolv/res_mkquery.c: Define __res_nopt.
2027         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
2028         try adding EDNS0 record.
2029         * resolv/res_send.c (send_dg): If request failed with FORMERR and
2030         EDNS0 record was send make sure we don't try it again.
2031         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
2032         * include/resolv.h: Declare __res_nopt.
2033
2034 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
2035
2036         [BZ #3944]
2037         * time/strptime_l.c (__strptime_internal): Set have_mon for
2038         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
2039         have been computed from tm_yday and tm_year.  Don't crash
2040         in day_of_the_week or day_of_the_year if not have_mon
2041         and tm_mon contains bogus value.
2042         * time/Makefile (tests): Add tst-strptime3.
2043         * time/tst-strptime3.c: New test.
2044
2045 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
2046
2047         [BZ #3957]
2048         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
2049         bit for RE_HAT_LISTS_NOT_NEWLINE.
2050         (build_charclass_op): Remove bogus comment.
2051         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
2052         * posix/bug-regex27.c: New test.
2053         * posix/bug-regex28.c: New test.
2054
2055 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
2056
2057         * po/sv.po: Update from translation team.
2058
2059 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
2060
2061         * nscd/nscd_helper.c (open_socket): Minor size optimization.
2062
2063 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
2064
2065         * include/locale.h (__uselocale): Add libc_hidden_proto.
2066         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
2067
2068         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
2069         gettimeofday.
2070
2071 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
2072
2073         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
2074         returning.
2075         (PTR_DEMANGLE): Real definition now that it's not the same as
2076         PRT_MANGLE anymore.
2077         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2078
2079         * string/strerror_l.c: New file.
2080         * string/Makefile (routines): Add strerror_l.
2081         * string/string.h: Declare strerror_l.
2082         * string/Versions: Export strerror_l for GLIBC_2.6.
2083
2084 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
2085
2086         * nscd/nscd_helper.c (open_socket): Now takes request type and key
2087         as parameter.  Construct request record.  Try sending request
2088         before the first poll use, it usually succeeds.  Adjust all
2089         callers.
2090         * nscd/nscd-client.h: Define MAXKEYLEN.
2091         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
2092
2093 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
2094
2095         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
2096         from return value.
2097         * nscd/nscd_helper.c: Include string.h.
2098         (__nscd_cache_search): Remove const qualifier from return value.
2099         On strict alignment architectures check hash entry and data head
2100         alignment.
2101         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
2102         mmapped data during GC cycle contains garbage.  If
2103         __nscd_drop_map_ref fails, decrement mapped->counter when returning
2104         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
2105         dropped to 0.
2106         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2107         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2108         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
2109         * nscd/nscd_getai.c (__nscd_getai): Likewise.
2110         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2111
2112 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
2113
2114         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
2115
2116 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
2117
2118         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
2119         names not numbers in cfi_*.
2120
2121 2007-01-26  Andreas Jaeger  <aj@suse.de>
2122
2123         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
2124         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
2125         Correct values of PER_HPUX and PER_OSF4.
2126
2127 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
2128
2129         * elf/dl-minimal.c: Undefine _itoa first.
2130         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
2131         * malloc/mtrace.c: Revert last change.
2132         * posix/wordexp.c: Likewise.
2133
2134 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
2135
2136         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
2137         and __geode__ to the list of i486+ CPUs.
2138         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
2139
2140 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
2141
2142         * stdio-common/_itoa.c: Include <limits.h>.
2143         * stdio-common/_itowa.c: Likewise.
2144
2145 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
2146
2147         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
2148         platforms.
2149         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
2150         64-bit platforms.
2151         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
2152         possible.
2153         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
2154         if possible.
2155
2156         [BZ #3902]
2157         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
2158         * stdio-common/Makefile (tests): Add bug17.
2159         * stdio-common/bug17.c: New file.
2160
2161 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
2162
2163         * iconvdata/brf.c: New file.
2164         * iconvdata/testdata/BRF: New file.
2165         * iconvdata/testdata/BRF..UTF8: New file.
2166         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2167         * iconvdata/Makefile: Add rules to build BRF.
2168         * iconvdata/TESTS: Add BRF entry.
2169         * iconvdata/gconv-modules: Likewise.
2170         * iconvdata/tst-tables.sh: Likewise.
2171
2172 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
2173
2174         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
2175         type `long long int', not `long int'.
2176         (wcstoq): Likewise.
2177
2178 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
2179
2180         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
2181         of values on 64-bit platforms which are too large.
2182
2183 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
2184             Joe Kerian  <jkerian@us.us.ibm.com>
2185
2186         [BZ #2749]
2187         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
2188         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
2189         (__copysignl): Use signbit() for comparison.
2190         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
2191         SET_LDOUBLE_WORDS64.
2192
2193         [BZ #2423, #2749]
2194         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
2195         (__ceill): Remove calls to fegetround(), fesetround().
2196         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
2197         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
2198         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
2199
2200 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
2201
2202         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
2203
2204         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
2205
2206 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
2207
2208         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
2209         demangle pointer.
2210         * csu/libc-start.c: Likewise.
2211
2212 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
2213
2214         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
2215         really work anyway.
2216
2217 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
2218
2219         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
2220         users.
2221         (handle_request): Remove unnecessary tests.
2222
2223         * nscd/cache.c (cache_add): Record the failure to add to the cache.
2224
2225 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
2226
2227         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
2228         workbits in semi-raw fraction.
2229
2230         * math/test-misc.c: Add new tests.
2231
2232 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
2233
2234         * math/basic-test.c: Include test-skeleton.c.
2235         (TEST_TRUNC): Define.
2236         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
2237         (main): Rename to ...
2238         (do_test): ...this.  Run new tests.
2239         (TEST_FUNCTION): Define.
2240
2241 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
2242             Joe Kerian  <jkerian@us.us.ibm.com>
2243
2244         [BZ #2749]
2245         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
2246         handling for high words.
2247         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
2248         and overflow for infinity.
2249
2250 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
2251
2252         * nscd/connections.c (handle_request): Add a __builtin_expect.
2253
2254         * nscd/connections.c (serv2db): Change type into structure which
2255         also says whether this is a request for data.  Renamed to
2256         servinfo.  All users changed.
2257         (handle_request): Much simpler test whether we should search the cache.
2258
2259         * nscd/connections.c (handle_request): Fix thinko in selinux test
2260         invocation.
2261
2262         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
2263         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
2264         it before getting dl_load_lock and then relock.
2265         (_dl_lookup_symbol_x): Pass flags to add_dependency.
2266         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
2267         case we unlocked the scope.
2268         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
2269         _dl_lookup_symbol_x in case we locked the scope.
2270         (_dl_profile_fixup): Likewise.
2271         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
2272         set DL_LOOKUP_SCOPE_LOCK.
2273
2274 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
2275
2276         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
2277         CFLAGS-getsrvbynpt_r.c.
2278         * nscd/getsrvbynm_r.c: New file.
2279         * nscd/getsrvbypt_r.c: New file.
2280         * nscd/nscd_getserv_r.c: New file.
2281         * nscd/servicescache.c: New file.
2282         * nscd/Makefile (routines): Add nscd_getserv_r.
2283         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
2284         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
2285         CFLAGS-getsrvbypt_r.c.
2286         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
2287         table.  Add entries for services database.
2288         * nscd/connections.c (serv2str): Mark as const.  Add entries for
2289         services database.
2290         (dbs): Add .reset_res and servdb initialization.
2291         (serv2db): Add entries for services database.
2292         (verify_persistent_db): Accept dbnr == servdb.
2293         (invalidate_cache): Rewrite database name recognition to use a table.
2294         Call res_init() if .reset_res is set for database.
2295         (handle_request): Add code to handle services database.
2296         * nscd/gai.c: Don't define __getservbyname_r.
2297         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
2298         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
2299         (serv_response_header): Define.
2300         (struct datahead): Add serv_response_header member.
2301         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
2302         using table.
2303         * nscd/nscd.conf: Add entries for services database.
2304         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
2305         Declare serv_iov_disabled.
2306         Declare addservbyname, readdservbyname, addservbyport, and
2307         readdservbyport.
2308         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
2309         (find_db): Fix error message.
2310         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
2311         __nscd_getservbyname_r, and __nscd_getservbyport_r.
2312         * nscd/selinux.c (perms): Add entries for services database.
2313         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
2314         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
2315
2316         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
2317         * nscd/hstcache.c: Likewise.
2318         * nscd/pwdcache.c: Likewise.
2319
2320         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
2321         computation of keylen.
2322
2323         * include/string.h: Only redefine strndupa if this is really for
2324         libc code.
2325
2326 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
2327
2328         * nscd/nscd_gethst_r.c: Minor cleanups.
2329
2330         * nscd/connections.c (handle_request): Check selinux permissions
2331         for all non-admin commands.
2332
2333         * sysdeps/i386/i486/bits/atomic.h: Define
2334         atomic_compare_and_exchange_val_acq,
2335         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
2336         using __sync_* built-ins for gcc >= 4.1.
2337         * sysdeps/x86_64/bits/atomic.h: Likewise.
2338
2339         [BZ #3840]
2340         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
2341         and .oS.d files.
2342
2343 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
2344
2345         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
2346         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
2347         (do_test): Check errno and exit(0) if ENOSYS.
2348
2349 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
2350
2351         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
2352         thousands separators.
2353         * stdlib/Makefile: Add rules to build and run tst-strtod4.
2354         * stdlib/tst-strtod4.c: New test.
2355
2356         [BZ #3855]
2357         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
2358         hexadecimal digit should accept just the initial 0.
2359         * stdlib/tst-strtod2.c (tests): New variable.
2360         (do_test): Run several tests rather than just one.
2361
2362 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
2363
2364         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
2365         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
2366
2367 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
2368
2369         * io/fts.c: Make sure fts_cur is always valid after return from
2370         fts_read.
2371         Patch by Miloslav Trmac <mitr@redhat.com>.
2372
2373 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
2374
2375         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
2376         (R_MIPS_NUM): Bump by 1.
2377
2378 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
2379
2380         * posix/execvp.c: Include alloca.h.
2381         (allocate_scripts_argv): Renamed to...
2382         (scripts_argv): ... this.  Don't allocate buffer here nor count
2383         arguments.
2384         (execvp): Use alloca if possible.
2385         * posix/Makefile: Add rules to build and run tst-vfork3 test.
2386         * posix/tst-vfork3.c: New test.
2387
2388 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
2389
2390         * string/Makefile (tst-strxfrm2-ENV): Define.
2391         * stdlib/Makefile (tst-strtod3-ENV): Define.
2392
2393 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
2394
2395         * posix/getconf.c: Update copyright year.
2396         * nss/getent.c: Likewise.
2397         * iconv/iconvconfig.c: Likewise.
2398         * iconv/iconv_prog.c: Likewise.
2399         * elf/ldconfig.c: Likewise.
2400         * catgets/gencat.c: Likewise.
2401         * csu/version.c: Likewise.
2402         * elf/ldd.bash.in: Likewise.
2403         * elf/sprof.c (print_version): Likewise.
2404         * locale/programs/locale.c: Likewise.
2405         * locale/programs/localedef.c: Likewise.
2406         * nscd/nscd.c (print_version): Likewise.
2407         * debug/xtrace.sh: Likewise.
2408         * malloc/memusage.sh: Likewise.
2409         * malloc/mtrace.pl: Likewise.
2410         * debug/catchsegv.sh: Likewise.
2411
2412 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
2413
2414         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
2415         attempts.
2416
2417 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
2418
2419         * posix/wordexp.c: Remove some unnecessary tests.
2420
2421 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
2422
2423         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
2424         blacklist the group till after we look it up.
2425
2426 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
2427
2428         * include/atomic.h (atomic_forced_read): New macro.
2429
2430 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
2431
2432         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
2433
2434 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
2435
2436         * nss/getXXbyYY_r.c: Include atomic.h.
2437         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
2438         add atomic_write_barrier () in between.
2439
2440         * stdlib/Makefile (tests): Add tst-makecontext.
2441         * stdlib/tst-makecontext.c: New test.
2442
2443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
2444         (__makecontext): Don't realign uc_mcontext.uc_regs.
2445
2446 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
2447
2448         * elf/dl-support.c: Include dl-procinfo.h.
2449         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
2450         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
2451         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
2452         Define.
2453         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
2454         hardcoded constants.
2455         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
2456         PPC_PLATFORM_* macros for array designators.
2457
2458 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
2459
2460         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
2461         names to the beginning.
2462         (_dl_powerpc_platforms): Add "power6x".
2463         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
2464         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
2465         (_DL_PLATFORMS_COUNT): Increase.
2466         (_dl_string_platform): Handle power6x case.
2467         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
2468         PPC_FEATURE_POWER6_EXT): Define.
2469         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
2470
2471 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
2472
2473         [BZ #3747]
2474         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
2475         [-2^31 .. 2^31) range.
2476         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
2477         targets.
2478         * stdlib/tst-rand48-2.c: New test.
2479         * stdlib/Makefile (tests): Add tst-rand48-2.
2480
2481 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
2482
2483         * misc/tst-pselect.c (do_test): Fix sigblock argument.
2484
2485 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
2486
2487         * misc/tst-pselect.c (do_test): Make sure the helper process is
2488         terminating when the test is aborted.
2489
2490 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
2491
2492         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
2493         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2494         Handle relatime mount option.
2495
2496         [BZ #2337]
2497         * libio/Makefile (tests): Add tst-setvbuf1.
2498         * libio/tst-setvbuf1.c: New file.
2499
2500 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
2501
2502         [BZ #2337]
2503         * libio/genops.c (__uflow): Fix a typo.
2504         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
2505         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
2506         the narrow buffer size.
2507
2508 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
2509
2510         [BZ #2337]
2511         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
2512         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
2513         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
2514         in _flags.
2515         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
2516         _IO_wstr_finish): Likewise.
2517         * libio/wmemstream.c (open_wmemstream): Likewise.
2518         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
2519         even for wide streams.
2520
2521 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
2522
2523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
2524         kernel-features.h.
2525
2526 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
2527
2528         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
2529         separators also if no non-zero digits found.
2530         * stdlib/Makefile (tests): Add tst-strtod3.
2531
2532 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
2533
2534         [BZ #3632]
2535         * include/features.h: Fix comment about default value for
2536         _POSIX_C_SOURCE.
2537
2538         [BZ #3664]
2539         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
2540         empty parsed strings.
2541         * stdlib/Makefile (tests): Add tst-strtod2.
2542         * stdlib/tst-strtod2.c: New file.
2543
2544         [BZ #3673]
2545         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
2546         computation.
2547         * stdlib/Makefile (tests): Add tst-atof2.
2548         * stdlib/tst-atof2.c: New file.
2549
2550         [BZ #3674]
2551         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
2552         correctly if removing trailing zero of hex-float.
2553         * stdlib/Makefile (tests): Add tst-atof1.
2554         * stdlib/tst-atof1.c: New file.
2555
2556 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
2557
2558         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
2559         Start searching for next comma at p rather than rest.
2560         * misc/Makefile (tests): Add tst-mntent2.
2561         * misc/tst-mntent2.c: New test.
2562
2563         * misc/getusershell.c (initshells): Check for integer overflows.
2564         Make strings buffer one bigger as fgets always succeeds when second
2565         argument is 1.  Don't use calloc for shells array.  Disallow
2566         / as shell.
2567
2568 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
2569
2570         * malloc/memusage.c: Handle realloc with new size of zero and
2571         non-NULL pointer correctly.
2572         (me): Really write first record twice.
2573         (struct entry): Make format bi-arch safe.
2574         (dest): Write out more realloc statistics.
2575         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
2576
2577 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
2578
2579         * nis/nis_subr.c (nis_getnames): Revert last change.
2580
2581 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
2582
2583         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
2584         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
2585         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
2586         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
2587         ENOTTY.
2588         * io/Makefile: Add rules to build and run tst-ttyname_r test.
2589         * io/tst-ttyname_r.c: New test.
2590
2591 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2592
2593         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
2594
2595 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
2596
2597         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
2598         jump table entries.
2599
2600 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
2601
2602         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
2603         `clone' function to ensure proper unwinding stop of gdb.
2604         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
2605
2606 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
2607
2608         * nscd/nscd.init: Remove obsolete and commented-out -S option
2609         handling.
2610
2611 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
2612
2613         [BZ #3514]
2614         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
2615
2616         [BZ #3515]
2617         * manual/string.texi (strtok): Remove duplicate paragraph.
2618
2619 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2620
2621         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
2622         libgcc not supporting `rflags' unwinding (register # >= 17).
2623
2624 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
2625
2626         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
2627         succeeded.
2628
2629 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
2630             Jakub Jelinek  <jakub@redhat.com>
2631             Jan Kratochvil  <jan.kratochvil@redhat.com>
2632
2633         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
2634         unwind information.
2635         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
2636         'restore_rt' even in the 'signal' directory.
2637         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
2638
2639 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
2640
2641         [BZ #3559]
2642         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
2643         malloc crashed.  Don't allocate memory unnecessarily in each
2644         loop.
2645
2646 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
2647
2648         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
2649
2650 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
2651
2652         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
2653
2654 2006-11-18  Bruno Haible  <bruno@clisp.org>
2655
2656         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
2657         __sysconf only after having tried to call getgroups32.
2658
2659 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
2660
2661         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
2662         addresses for IPv4 queries if they can be mapped.
2663
2664 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
2665
2666         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
2667         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
2668         (signmask): Add .size directive.
2669         (othermask): Add .type directive.
2670
2671 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
2672
2673         * po/nl.po: Update from translation team.
2674
2675         * timezone/zdump.c: Redo fix for BZ #3137.
2676
2677 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
2678
2679         * nss/nss_files/files-alias.c (get_next_alias): Set line back
2680         to first_unused after parsing :include: file.
2681
2682 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
2683
2684         * timezone/africa: Update from tzdata2006o.
2685         * timezone/antarctica: Likewise.
2686         * timezone/asia: Likewise.
2687         * timezone/australasia: Likewise.
2688         * timezone/backward: Likewise.
2689         * timezone/europe: Likewise.
2690         * timezone/iso3166.tab: Likewise.
2691         * timezone/northamerica: Likewise.
2692         * timezone/southamerica: Likewise.
2693         * timezone/zone.tab: Likewise.
2694
2695         * time/tzfile.c (__tzfile_read): Extend to handle new file format
2696         on machines with 64-bit time_t.
2697
2698         * timezone/checktab.awk: Update from tzcode2006o.
2699         * timezone/ialloc.c: Likewise.
2700         * timezone/private.h: Likewise.
2701         * timezone/scheck.c: Likewise.
2702         * timezone/tzfile.h: Likewise.
2703         * timezone/tzselect.ksh: Likewise.
2704         * timezone/zdump.c: Likewise.
2705         * timezone/zic.c: Likewise.
2706
2707         [BZ #3483]
2708         * elf/ldconfig.c (main): Call setlocale and textdomain.
2709         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
2710
2711         [BZ #3480]
2712         * manual/argp.texi: Fix typos.
2713         * manual/charset.texi: Likewise.
2714         * manual/errno.texi: Likewise.
2715         * manual/filesys.texi: Likewise.
2716         * manual/lang.texi: Likewise.
2717         * manual/maint.texi: Likewise.
2718         * manual/memory.texi: Likewise.
2719         * manual/message.texi: Likewise.
2720         * manual/resource.texi: Likewise.
2721         * manual/search.texi: Likewise.
2722         * manual/signal.texi: Likewise.
2723         * manual/startup.texi: Likewise.
2724         * manual/stdio.texi: Likewise.
2725         * manual/sysinfo.texi: Likewise.
2726         * manual/syslog.texi: Likewise.
2727         * manual/time.texi: Likewise.
2728         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2729
2730         [BZ #3465]
2731         * sunrpc/clnt_raw.c: Minimal message improvements.
2732         * sunrpc/pm_getmaps.c: Likewise.
2733         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
2734         * nis/nis_print_group_entry.c: Likewise.
2735         * locale/programs/repertoire.c: Likewise.
2736         * locale/programs/charmap.c: Likewise.
2737         * malloc/memusage.sh: Likewise.
2738         * elf/dl-deps.c: Likewise.
2739         * locale/programs/ld-collate.c: Likewise.
2740         * libio/vswprintf.c: Likewise.
2741         * malloc/memusagestat.c: Likewise.
2742         * sunrpc/auth_unix.c: Likewise.
2743         * sunrpc/rpc_main.c: Likewise.
2744         * nscd/cache.c: Likewise.
2745         * locale/programs/repertoire.c: Unify output messages.
2746         * locale/programs/charmap.c: Likewise.
2747         * locale/programs/ld-ctype.c: Likewise.
2748         * locale/programs/ld-monetary.c: Likewise.
2749         * locale/programs/ld-numeric.c: Likewise.
2750         * locale/programs/ld-time.c: Likewise.
2751         * elf/ldconfig.c: Likewise.
2752         * nscd/selinux.c: Likewise.
2753         * elf/cache.c: Likewise.
2754         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
2755
2756         [BZ #3451]
2757         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
2758         change atomic.
2759         (ceil): Likewise.
2760
2761 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
2762
2763         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
2764         if N is one bigger than return value.
2765         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
2766         and l1 last arguments, if buf is defined, verify the return value
2767         equals to strlen (buf) and verify no byte beyond passed length
2768         is modified.
2769
2770 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
2771
2772         * po/sv.po: Update from translation team.
2773
2774 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
2775
2776         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
2777         noinline attribute.
2778
2779 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
2780
2781         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
2782         noinline attribute.
2783
2784         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
2785         Use __new_sys_siglist instead of _sys_siglist_internal as
2786         second macro argument.
2787         (_old_sys_siglist): Use declare_symbol_alias macro instead of
2788         strong_alias.
2789
2790 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
2791
2792         [BZ #3493]
2793         * posix/unistd.h (sysconf): Remove const attribute.
2794
2795         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
2796         temporary or deprecated addresses.
2797         Patch by Sridhar Samudrala <sri@us.ibm.com>.
2798
2799         * string/Makefile (tests): Add tst-strxfrm2.
2800         * string/tst-strxfrm2.c: New file.
2801
2802 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
2803
2804         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
2805         rather than r->r_brk.
2806
2807 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
2808
2809         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
2810         optimization even if needed > n.
2811
2812         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
2813         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
2814         return false, otherwise return true.
2815         (cache_rpath): Return decompose_rpath return value.
2816
2817 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
2818
2819         * include/libc-symbols.h (declare_symbol): Rename to...
2820         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
2821         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
2822         .size directive.
2823         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
2824         changes.
2825         * sysdeps/gnu/siglist.c: Likewise.
2826
2827 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
2828
2829         * sysdeps/powerpc/fpu/bits/mathinline.h
2830         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
2831         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
2832
2833 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
2834
2835         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
2836         Update handling of cache descriptor 0x49 for new models.
2837         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
2838         Likewise.
2839
2840 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
2841
2842         * malloc/memusage.c (dest): Reset not_me back to false after
2843         printing statistics.
2844
2845 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
2846
2847         * configure.in: Work around ld --help change and avoid -z relro
2848         test completely if the architecture doesn't care about security.
2849
2850 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
2851
2852         * po/sv.po: Update from translation team.
2853
2854 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
2855
2856         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
2857         generate compatibility version.
2858
2859 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
2860
2861         * configure.in: Relax -z relro requirement a bit.
2862
2863         * po/sv.po: Update from translation team.
2864
2865 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
2866
2867         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
2868         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
2869         * elf/dl-close.c (_dl_close_worker): Likewise.
2870         * elf/dl-open.c (_dl_open_worker): Likewise.
2871         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
2872
2873 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
2874
2875         * configure.in: Require assembler support for visibility, compiler
2876         support for visibility and aliases, linker support for various -z
2877         options.
2878         * Makeconfig: Remove conditional code which now is unnecessary.
2879         * config.h.in: Likewise.
2880         * config.make.in: Likewise.
2881         * dlfcn/Makefile: Likewise.
2882         * elf/Makefile: Likewise.
2883         * elf/dl-load.c: Likewise.
2884         * elf/rtld.c: Likewise.
2885         * include/libc-symbols.h: Likewise.
2886         * include/stdio.h: Likewise.
2887         * io/Makefile: Likewise.
2888         * io/fstat.c: Likewise.
2889         * io/fstat64.c: Likewise.
2890         * io/fstatat.c: Likewise.
2891         * io/fstatat64.c: Likewise.
2892         * io/lstat.c: Likewise.
2893         * io/lstat64.c: Likewise.
2894         * io/mknod.c: Likewise.
2895         * io/mknodat.c: Likewise.
2896         * io/stat.c: Likewise.
2897         * io/stat64.c: Likewise.
2898         * libio/stdio.c: Likewise.
2899         * nscd/Makefile: Likewise.
2900         * stdlib/Makefile: Likewise.
2901         * stdlib/atexit.c: Likewise.
2902         * sysdeps/generic/ldsodefs.h: Likewise.
2903         * sysdeps/i386/dl-machine.h: Likewise.
2904         * sysdeps/i386/sysdep.h: Likewise.
2905         * sysdeps/i386/i686/memcmp.S: Likewise.
2906         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2907         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2908         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2909
2910         * Makerules: USE_TLS support is now default.
2911         * tls.make.c: Likewise.
2912         * csu/Versions: Likewise.
2913         * csu/libc-start.c: Likewise.
2914         * csu/libc-tls.c: Likewise.
2915         * csu/version.c: Likewise.
2916         * dlfcn/dlinfo.c: Likewise.
2917         * elf/dl-addr.c: Likewise.
2918         * elf/dl-cache.c: Likewise.
2919         * elf/dl-close.c: Likewise.
2920         * elf/dl-iteratephdr.c: Likewise.
2921         * elf/dl-load.c: Likewise.
2922         * elf/dl-lookup.c: Likewise.
2923         * elf/dl-object.c: Likewise.
2924         * elf/dl-open.c: Likewise.
2925         * elf/dl-reloc.c: Likewise.
2926         * elf/dl-support.c: Likewise.
2927         * elf/dl-sym.c: Likewise.
2928         * elf/dl-sysdep.c: Likewise.
2929         * elf/dl-tls.c: Likewise.
2930         * elf/ldconfig.c: Likewise.
2931         * elf/rtld.c: Likewise.
2932         * elf/tst-tls-dlinfo.c: Likewise.
2933         * elf/tst-tls1.c: Likewise.
2934         * elf/tst-tls10.h: Likewise.
2935         * elf/tst-tls14.c: Likewise.
2936         * elf/tst-tls2.c: Likewise.
2937         * elf/tst-tls3.c: Likewise.
2938         * elf/tst-tls4.c: Likewise.
2939         * elf/tst-tls5.c: Likewise.
2940         * elf/tst-tls6.c: Likewise.
2941         * elf/tst-tls7.c: Likewise.
2942         * elf/tst-tls8.c: Likewise.
2943         * elf/tst-tls9.c: Likewise.
2944         * elf/tst-tlsmod1.c: Likewise.
2945         * elf/tst-tlsmod13.c: Likewise.
2946         * elf/tst-tlsmod13a.c: Likewise.
2947         * elf/tst-tlsmod14a.c: Likewise.
2948         * elf/tst-tlsmod2.c: Likewise.
2949         * elf/tst-tlsmod3.c: Likewise.
2950         * elf/tst-tlsmod4.c: Likewise.
2951         * elf/tst-tlsmod5.c: Likewise.
2952         * elf/tst-tlsmod6.c: Likewise.
2953         * include/errno.h: Likewise.
2954         * include/link.h: Likewise.
2955         * include/tls.h: Likewise.
2956         * locale/global-locale.c: Likewise.
2957         * locale/localeinfo.h: Likewise.
2958         * malloc/arena.c: Likewise.
2959         * malloc/hooks.c: Likewise.
2960         * malloc/malloc.c: Likewise.
2961         * resolv/Versions: Likewise.
2962         * sysdeps/alpha/dl-machine.h: Likewise.
2963         * sysdeps/alpha/libc-tls.c: Likewise.
2964         * sysdeps/generic/ldsodefs.h: Likewise.
2965         * sysdeps/generic/tls.h: Likewise.
2966         * sysdeps/i386/dl-machine.h: Likewise.
2967         * sysdeps/ia64/dl-machine.h: Likewise.
2968         * sysdeps/ia64/libc-tls.c: Likewise.
2969         * sysdeps/mach/hurd/fork.c: Likewise.
2970         * sysdeps/mach/hurd/i386/tls.h: Likewise.
2971         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
2972         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
2973         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
2974         * sysdeps/s390/libc-tls.c: Likewise.
2975         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2976         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2977         * sysdeps/sh/dl-machine.h: Likewise.
2978         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2979         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2980         * sysdeps/x86_64/dl-machine.h: Likewise.
2981
2982         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
2983         split out locking and parameter checking.
2984         (_dl_close): Call _dl_close_worker after locking and checking.
2985         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
2986         _dl_close.
2987         * elf/Makefile: Add rules to build and run tst-thrlock.
2988         * elf/tst-thrlock.c:  New file.
2989
2990         [BZ #3426]
2991         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
2992         reality.
2993
2994         [BZ #3429]
2995         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
2996         we are sure we do not need it anymore for _dl_close.  Also move
2997         the asserts inside the lock region.
2998         Patch mostly by Suzuki <suzuki@in.ibm.com>.
2999
3000 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
3001
3002         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
3003         argument.
3004         (_dl_lookup_symbol_x): Adjust caller.
3005
3006         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
3007         _ns_global_scope.
3008         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
3009
3010         * elf/dl-libc.c: Revert l_scope name changes.
3011         * elf/dl-load.c: Likewise.
3012         * elf/dl-object.c: Likewise.
3013         * elf/rtld.c: Likewise.
3014         * elf/dl-close.c (_dl_close): Likewise.
3015         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
3016         always use __rtld_mrlock_{change,done}.  Always free old scope list
3017         here if not l_scope_mem.
3018         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
3019         change.  Never free scope list here.  Just __rtld_mrlock_lock before
3020         the lookup and __rtld_mrlock_unlock it after the lookup.
3021         * elf/dl-sym.c: Likewise.
3022         * include/link.h (struct r_scoperec): Remove.
3023         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
3024         with l_scope_mem and l_scoperec_lock with l_scope_lock.
3025
3026 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
3027
3028         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
3029
3030 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
3031
3032         * configure.in: Disable building profile libraries by default.
3033
3034 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
3035
3036         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
3037         as signed longs, check for x_base + pos overflow.
3038         * sunrpc/Makefile (tests): Add tst-xdrmem2.
3039         * sunrpc/tst-xdrmem2.c: New test.
3040
3041 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
3042
3043         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
3044         _dl_lookup_symbol_x code.
3045
3046 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
3047
3048         * elf/dl-runtime.c: Include sysdep-cancel.h.
3049         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
3050         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
3051         instead of catomic_* macros.
3052         * elf/dl-sym.c: Include sysdep-cancel.h.
3053         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
3054         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
3055         * elf/dl-close.c: Include sysdep-cancel.h.
3056         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
3057         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
3058         * elf/dl-open.c: Include sysdep-cancel.h.
3059         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
3060         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
3061
3062 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
3063
3064         [BZ #3313]
3065         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
3066         fastbin rather than end of fastbin array.
3067
3068 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
3069
3070         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
3071         body macro.
3072         * sysdeps/x86_64/bits/atomic.h
3073         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
3074         (catomic_decrement): Use correct body macro.
3075
3076 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
3077
3078         * include/atomic.h: Add a unique prefix to all local variables
3079         in macros.
3080         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
3081
3082 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
3083
3084         [BZ #3369]
3085         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
3086         and 7.
3087
3088 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
3089
3090         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
3091
3092 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
3093
3094         [BZ #3313]
3095         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
3096         determine highest fast bin to consolidate, always look into all of
3097         them.
3098         (do_check_malloc_state): Only require for empty bins for large
3099         sizes in main arena.
3100
3101         * libio/stdio.h: Add more __wur attributes.
3102
3103         * elf/dl-minimal.c (realloc): Optimize last patch.
3104
3105 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
3106
3107         [BZ #3352]
3108         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
3109         and use memcpy() if it does.
3110
3111 2006-11-12  Andreas Jaeger  <aj@suse.de>
3112
3113         [BZ #2510]
3114         * manual/search.texi (Hash Search Function): Clarify.
3115         (Array Search Function): Clarify.
3116
3117 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
3118
3119         [BZ #2830]
3120         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
3121         shifting.
3122         * math/atest-exp2.c (read_mpn_hex): Likewise.
3123         * math/atest-sincos.c (main): Likewise.
3124
3125 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
3126
3127         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
3128         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
3129         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
3130         version GLIBC_2.6.
3131         * Versions.def: Add GLIBC_2.6 for libc.
3132
3133         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
3134
3135         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
3136
3137 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
3138
3139         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
3140
3141         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
3142
3143         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
3144         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
3145
3146 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
3147
3148         * include/atomic.c: Define catomic_* operations.
3149         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
3150         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
3151         * malloc/memusage.c: Likewise.
3152         * gmon/mcount.c: Likewise.
3153         * elf/dl-close.c: Likewise.
3154         * elf/dl-open.c: Likewise.
3155         * elf/dl-profile.c: Likewise.
3156         * elf/dl-sym.c: Likewise.
3157         * elf/dl-runtime.c: Likewise.
3158         * elf/dl-fptr.c: Likewise.
3159         * resolv/res_libc.c: Likewise.
3160
3161 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
3162
3163         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
3164         components which lack them.
3165
3166         * nis/nis_subr.c (nis_getnames): Make sure that we always return
3167         at least one entry consisting of the parameter concatenated with
3168         the domain.
3169
3170 2006-10-10  Roland McGrath  <roland@frob.com>
3171
3172         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
3173         * sysdeps/mach/hurd/futimes.c: Likewise.
3174         * sysdeps/mach/hurd/lutimes.c: Likewise.
3175
3176 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
3177             Jakub Jelinek  <jakub@redhat.com>
3178
3179         Implement reference counting of scope records.
3180         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
3181         from the list in objects which remain.  Always allocate new scope
3182         record.
3183         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
3184         don't resize, allocate a new one.
3185         * elf/dl-runtime.c: Update reference counters before using a scope
3186         array.
3187         * elf/dl-sym.c: Likewise.
3188         * elf/dl-libc.c: Adjust for l_scope name change.
3189         * elf/dl-load.c: Likewise.
3190         * elf/dl-object.c: Likewise.
3191         * elf/rtld.c: Likewise.
3192         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
3193         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
3194         Add l_scoperec_lock.
3195         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
3196         * sysdeps/generic/rtld-lowlevel.h: New file.
3197
3198         * include/atomic.h: Rename atomic_and to atomic_and_val and
3199         atomic_or to atomic_or_val.  Define new macros atomic_and and
3200         atomic_or which do not return values.
3201         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
3202         Various cleanups.
3203         * sysdeps/i386/i486/bits/atomic.h: Likewise.
3204
3205         * po/sv.po: Update from translation team.
3206
3207 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
3208
3209         * Versions.def: Add GLIBC_2.6 to libpthread.
3210
3211         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
3212         (versioned_symbol): Likewise.
3213         (compat_symbol): Likewise.
3214
3215         * po/tr.po: Update from translation team.
3216
3217 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
3218
3219         * nis/Banner: Removed.  It's been integral part forever and the
3220         author info is incomplete anyway.
3221         * libio/Banner: Likewise.
3222
3223         * nis/nis_table.c (nis_list): If __follow_path fails in the new
3224         code, make sure the nis_freeresult call doesn't crash and that the
3225         result is reported correctly.
3226
3227 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
3228
3229         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
3230         when callback is NULL.
3231
3232         * nis/Versions (libnss_nisplus): Add
3233         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
3234         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
3235         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
3236         _nss_create_tablename): Rename to...
3237         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
3238         ... these.  No longer static.
3239         (internal_setgrent): Adjust users.
3240         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
3241         Don't use locking around _nss_grp_create_tablename call.
3242         * nis/nss_nisplus/nisplus-initgroups.c: New file.
3243
3244 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
3245
3246         * version.h (VERSION): Bump to 2.5.90 for new development tree.
3247
3248 2006-10-06  Andreas Jaeger  <aj@suse.de>
3249
3250         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
3251
3252 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
3253
3254         * po/pl.po: Update from translation team.
3255
3256         * nscd/nscd.c (main): Fix typo in message.
3257         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
3258
3259 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
3260
3261         [BZ #3291]
3262         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
3263         errno.h, signal.h, unistd.h and sysdep-cancel.h.
3264         (__sigprocmask): Define.
3265
3266 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
3267
3268         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
3269         used.
3270
3271 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
3272
3273         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
3274         in oldtotal and newtotal calculation.
3275         * nscd/nscd-client.h (struct mapped_database): Add datasize
3276         field.
3277         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
3278         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
3279         increased.
3280         (__nscd_cache_search): Add checks to make sure we never reference
3281         data beyond the current mapping.
3282
3283 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
3284
3285         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
3286         variables const to avoid compiler warnings.
3287
3288         * io/fts.c (fts_close): Remove redundant checks.
3289         (fts_build): Likewise.
3290         (fts_palloc): Likewise.
3291
3292         * manual/message.texi (Advanced gettext functions,
3293         Using gettextized software): Fix typos.
3294
3295 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
3296
3297         * posix/glob.c (glob_in_dir): Add some comments and asserts to
3298         explain why there are no leaks.
3299
3300 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
3301
3302         * libio/wmemstream.c: Include <wchar.h>.
3303         * libio/bug-wmemstream1.c: Likewise.
3304         * libio/tst-wmemstream1.c: Likewise.
3305         * libio/tst-wmemstream2.c: Likewise.
3306
3307         * version.h (RELEASE): Bump to 2.5.
3308         * README: Regenerated.
3309
3310         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
3311
3312         [BZ #3273]
3313         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
3314         found no group members.
3315         Patch by Petr Baudis.
3316
3317 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
3318
3319         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
3320         assert bootstrap_map.l_tls_modid is zero.
3321         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
3322         if USE___THREAD.
3323
3324 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
3325
3326         * libio/stdio.h: Move open_wmemstream prototype to ...
3327         * wcsmbs/wchar.h: ... here.
3328
3329 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
3330
3331         [BZ #3252]
3332         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
3333         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
3334         __{,l}chown to handle the rest.
3335         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
3336         fchownat syscall and __ASSUME_32BITUIDS case inline, call
3337         __{,l}chown to handle the rest.
3338         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
3339         i386/fchownat.c.
3340         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
3341         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
3342
3343         [BZ #3253]
3344         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
3345         time, rather allocate increasingly bigger arrays of pointers, if
3346         possible with alloca, if too large with malloc.
3347
3348 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
3349
3350         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
3351
3352         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
3353
3354 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
3355
3356         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
3357         home addresses.
3358         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
3359         IFA_F_HOMEADDRESS flag for interfaces.
3360         * include/ifaddrs.h (struct in6addrinfo): Define
3361         in6ai_homeaddress.
3362
3363 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
3364
3365         [BZ #3225]
3366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
3367         PTR_DEMANGLE3): Define.
3368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
3369         PTR_DEMANGLE3): Likewise.
3370         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
3371         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
3372         Likewise.
3373         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
3374
3375 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
3376
3377         * po/libc.pot: Regenerated.
3378         * po/be.po: Updated.
3379         * po/ca.po: Likewise.
3380         * po/cs.po: Likewise.
3381         * po/da.po: Likewise.
3382         * po/de.po: Likewise.
3383         * po/el.po: Likewise.
3384         * po/en_GB.po: Likewise.
3385         * po/es.po: Likewise.
3386         * po/fi.po: Likewise.
3387         * po/fr.po: Likewise.
3388         * po/gl.po: Likewise.
3389         * po/hr.po: Likewise.
3390         * po/hu.po: Likewise.
3391         * po/ja.po: Likewise.
3392         * po/ko.po: Likewise.
3393         * po/nb.po: Likewise.
3394         * po/nl.po: Likewise.
3395         * po/pl.po: Likewise.
3396         * po/pt_BR.po: Likewise.
3397         * po/ru.po: Likewise.
3398         * po/rw.po: Likewise.
3399         * po/sk.po: Likewise.
3400         * po/sv.po: Likewise.
3401         * po/tr.po: Likewise.
3402         * po/zh_CN.po: Likewise.
3403         * po/zh_TW.po: Likewise.
3404
3405         [BZ #3137]
3406         * iconv/iconv_prog.c (main): Fix spelling in error message.
3407         * iconv/iconvconfig.c (main): Likewise.
3408         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
3409         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
3410         * locale/programs/localedef.c (main): Likewise.
3411         * locale/programs/repertoire.c (repertoire_read): Likewise.
3412         * timezone/zdump.c (main): Likewise.
3413         * nscd/connections.c (handle_request): Fix spelling in log message.
3414         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
3415
3416 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
3417
3418         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
3419         interfaces.
3420
3421 2006-09-20  Andreas Jaeger  <aj@suse.de>
3422
3423         * math/libm-test.inc (lrint_test_upward): Fix typo.
3424
3425 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
3426
3427         [BZ #2592]
3428         * math/libm-test.inc (lrint_test_tonearest): New function.
3429         (lrint_test_towardzero): New function.
3430         (lrint_test_downward): New function.
3431         (lrint_test_upward): New function.
3432         (main): Run these new tests.
3433         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
3434         of values near to 0.
3435         (two52): Use double not long double.
3436         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
3437         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
3438         (two23): Use float not double.
3439         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
3440         (two23): Use float not double.
3441         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
3442         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
3443         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
3444         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
3445
3446 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3447
3448         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
3449         Cast sp to unsigned long to avoid compiler warning.
3450         Use __makecontext_ret function instead of a trampoline on the stack.
3451         (__makecontext_ret): New function.
3452         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
3453
3454 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
3455
3456         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
3457         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
3458         bits.
3459
3460 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
3461
3462         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
3463         sure no reference to the unloaded map's search list remains in the
3464         dependency's scope.
3465
3466 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
3467
3468         * elf/Makefile: Add rules to build and run unload7 test.
3469         * elf/unload7.c: New test.
3470         * elf/unload7mod1.c: New file.
3471         * elf/unload7mod2.c: New file.
3472
3473 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
3474
3475         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
3476         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
3477         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
3478         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
3479         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
3480         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
3481         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
3482         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
3483         PTRACE_GETEVENTMSG): Likewise.
3484         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
3485         values.
3486
3487 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
3488
3489         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
3490         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
3491         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
3492         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
3493
3494 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
3495
3496         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
3497         write '\0' to the fd.
3498         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
3499         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
3500         Change regs to unsigned long pointer from unsigned int, fix fscr
3501         offset.
3502
3503 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
3504
3505         * io/Makefile (CFLAGS-fstatat.c): Set.
3506         (CFLAGS-fstatat64.c): Likewise.
3507         (CFLAGS-mknodat.c): Likewise.
3508
3509         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
3510         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
3511         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
3512         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
3513
3514 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
3515             Steven Munroe  <sjmunroe@us.ibm.com>
3516
3517         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
3518         names to the beginning.  Rename "cell" to "cellbe".
3519         (_dl_powerpc_platforms): New.
3520         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
3521         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
3522         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
3523         (_DL_HWCAP_PLATFORM): Define to new mask.
3524         (_dl_platform_string, _dl_string_platform): New functions.
3525         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
3526         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
3527
3528 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
3529
3530         [BZ #2526]
3531         * README.libm: Fix a thinko in sqrt algorithm description.
3532
3533         [BZ #3143]
3534         * manual/string.texi (argz_delete): Fix prototype.
3535         Patch by <alpt@freaknet.org>.
3536
3537 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
3538
3539         [BZ #3138]
3540         * io/test-lfs.c (do_prepare): Give name_len type size_t.
3541         * io/tst-fcntl.c (do_prepare): Likewise.
3542         * posix/tst-exec.c (do_prepare): Likewise.
3543         * posix/tst-preadwrite.c (do_prepare): Likewise.
3544         * posix/tst-spawn.c (do_prepare): Likewise.
3545         * posix/tst-truncate.c (do_prepare): Likewise.
3546         * rt/tst-aio.c (do_prepare): Likewise.
3547         * rt/tst-aio64.c (do_prepare): Likewise.
3548         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
3549         size_t.