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