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