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