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