* rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
[glibc.git] / ChangeLog
blobe7e30ee377c95cf9e31974586c213939ea984071
1 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
3         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
4         * rt/Makefile (headers): Add bits/mqueue2.h.
5         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
6         optimizing with GCC and __va_arg_pack_len is defined.
7         * rt/bits/mqueue2.h: New file.
8         * rt/mq_open.c (__mq_open): Renamed from mq_open.
9         (mq_open): New strong_alias.
10         (__mq_open_2): New function.
11         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
12         (mq_open): New strong_alias.
13         (__mq_open_2): New function.
14         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
15         * Versions.def (librt): Add GLIBC_2.7 version.
16         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
17         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
19         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
20         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
21         is defined rather than when not C++.
22         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
23         __openat64_alias): New redirects.
24         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
25         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
26         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
27         (open, open64, openat, openat64): Rewrite as __extern_always_inline
28         functions instead of function-like macros.
30 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
32         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
33         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
34         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
36 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
38         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
39         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
41 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
43         * inet/tst-network.c: Increment ERRORS for failing tests.
45 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
47         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
48         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
49         implement as __extern_always_inline function.
50         (vsyslog): Define as __extern_always_inline function unconditionally.
51         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
52         When __va_arg_pack is defined, implement as __extern_always_inline
53         functions.
54         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
55         __extern_always_inline functions unconditionally.
56         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
57         bits/stdio2.h will be included.
58         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
59         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
60         implement as __extern_always_inline functions.
61         (vswprintf, vwprintf, vfwprintf): Define as
62         __extern_always_inline functions unconditionally.
63         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
65 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
67         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
68         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
69         attribute.
70         * include/features.h (__USE_EXTERN_INLINES): Define only when
71         __extern_inline is defined.
72         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
73         is defined instead of when not __cplusplus.
74         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
75         is defined instead of when not __cplusplus.
76         * socket/sys/socket.h: Include bits/socket2.h when
77         __extern_always_inline is defined instead of when not __cplusplus.
78         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
79         is defined instead of when not __cplusplus.
80         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
81         is defined instead of when not __cplusplus.
82         * string/string.h: Include bits/string3.h when __extern_always_inline
83         is defined instead of when not __cplusplus.
84         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
85         is defined instead of when not __cplusplus.
86         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
87         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
88         is not defined.
89         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
90         defined __extern_always_inline instead of !defined __cplusplus.
91         * libio/bits/stdio-ldbl.h: Likewise.
92         * wcsmbs/bits/wchar-ldbl.h: Likewise.
93         * misc/bits/syslog.h (syslog): Don't define for C++.
94         (vsyslog): Use __extern_always_inline function for C++ instead of
95         a macro.
96         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
97         whenever that macro is defined.
98         (vprintf): Don't provide the inline for C++.
99         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
100         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
101         define the macros for C++.
102         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
103         __extern_always_inline functions for C++.
104         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
105         stat64, lstat64, fstat64, fstatat64): Don't define if not
106         __USE_EXTERN_INLINES.
107         * wcsmbs/bits/wchar2.h: Fix #error message.
108         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
109         (vswprintf, vwprintf, vfwprintf): Define using
110         __extern_always_inline functions for C++.
111         * string/bits/string3.h: Don't #undef macros if __cplusplus.
112         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
113         strncpy, strcat, strncat): Define as __extern_always_inline
114         functions instead of macros for C++.
115         * math/bits/cmathcalls.h: Guard __extern_inline routines with
116         defined __extern_inline.
117         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
118         to __extern_inline whenever that macro is defined.
119         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
120         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
121         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
122         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
123         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
124         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
125         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
126         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
127         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
128         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
129         prototypes.  Only provide __extern_inline routines if
130         __USE_EXTERN_INLINES.
131         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
132         tests.
133         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
134         For now avoid some *printf tests in C++.  Skip all testing
135         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
136         is not.
137         * debug/tst-chk4.cc: New file.
138         * debug/tst-chk5.cc: New file.
139         * debug/tst-chk6.cc: New file.
140         * debug/tst-lfschk4.cc: New file.
141         * debug/tst-lfschk5.cc: New file.
142         * debug/tst-lfschk6.cc: New file.
143         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
144         prototypes in C++.
145         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
146         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
147         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
149 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
151         * po/cs.po: Update from translation team.
153 2007-09-11  Roland McGrath  <roland@redhat.com>
155         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
156         compiling.
158 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
160         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
162 2007-09-05  Roland McGrath  <roland@redhat.com>
164         * manual/signal.texi (Signaling Another Process): Typo fix.
165         From Karl Berry <karl@freefriends.org>.
167 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
169         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
170         zero if not defined.
171         (make_request): Recognize optimistic addresses and treat them like
172         deprecated addresses.
173         Reported by Neil Horman <nhorman@redhat.com>.
175 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
177         * nscd/connections.c (send_ro_fd): Also transfer file size.
178         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
179         file size don't call fstat.
181         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
182         ahead and map the file.  This should always be correct and we can
183         catch problems later.
185 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
187         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
188         prototypes.
189         (__fread_alias, __fread_unlocked_alias): New aliases.
190         (fread): New extern inline.
191         (fread_unlocked): Likewise.  Undef macro before definition of
192         the inline function.
193         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
194         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
195         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
196         and __fread_unlocked_chk@@GLIBC_2.7.
197         * debug/fread_chk.c: New file.
198         * debug/fread_u_chk.c: New file.
199         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
201 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
203         * sysdeps/unix/sysv/linux/syscalls.list
204         (personality): Change caller to EXTRA.
206 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
208         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
209         to keep gcc quiet.
210         * iconvdata/iso-2022-cn.c (BODY): Likewise.
212         * locale/programs/ld-collate.c (collate_output): Avoid warning if
213         NDEBUG is defined.
215         * Makerules: Use -p option with mkdir.
217         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
218         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
219         (_xdr_directory_obj): Likewise.
220         (xdr_entry_obj): Likewise.
221         (xdr_group_obj): Likewise.
222         (xdr_link_obj): Likewise.
223         (xdr_table_obj): Likewise.
224         (_xdr_nis_result): Likewise.
225         (_xdr_ns_request): Likewise.
226         (_xdr_ib_request): Likewise.
227         (_xdr_nis_taglist): Likewise.
228         (xdr_cback_data): Likewise.
229         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
230         (xdr_ypresp_maplist): Likewise.
232         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
234         * posix/regex_internal.h: Prevent some declarations and definitions
235         to be seen when used in tests.
237         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
238         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
240         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
242         * config.make.in (datarootdir): Add to shut up configure.
244         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
245         associativity for fully-associative caches.
247         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
248         requests.  Fill on more associativity values for L2.
249         Patch mostly by Evandro Menezes.
251 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
253         * sysdeps/unix/sysv/linux/x86_64/init-first.c
254         (_libc_vdso_platform_setup): Avoid using exported variable by using
255         alias.
257         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
259         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
260         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
261         defined.
263 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
265         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
266         align stack for call if pltexit is to be used.
268         [BZ #3924]
269         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
270         align for function call in case pltexit has to be called later.
272         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
273         implicit atomic operation when storing function pointer.
274         (_dl_runtime_profile): Likewise.
276 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
278         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
279         NIS_NOTFOUND.
281 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
283         [BZ #4566]
284         * string/strtok.c: Fix typo in comment.
286         [BZ #4582]
287         * debug/segfault.c: Fix typos in comments.
289         [BZ #4588]
290         * stdio-common/tempnam.c: Fix comment, it is not checked that
291         TMPDIR points to a writable directory.
293         [BZ #4726]
294         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
295         memory allocated for the name server address.
297         [BZ #4946]
298         * nscd/connections.c (handle_request): Using sendfile always
299         requires that mmap is used for the database.
300         Patch by Petr Baudis <pasky@suse.cz>.
302         [BZ #4905]
303         * nscd/hstcache.c (cache_addhst): When reloading an entry which
304         suddenly has two or more addresses, ignore it and remove the old
305         entry.
307         [BZ #4814]
308         * resolv/res_hconf.c: Prepare for compiling outside libc.
309         * nscd/res_hconf.c: New file.
310         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
311         the new file.
312         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
313         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
315         * nscd/hstcache.c (cache_addhst): Minimal optimization.
317         [BZ #4925]
318         * debug/pcprofiledump.c: Turn on internationalization by calling
319         setlocale.  Patch mostly by Benno Schulenberg.
321         [BZ #4936]
322         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
323         the state.
324         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
325         * iconvdata/bug-iconv5.c: New file.
327 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
329         [BZ #4896]
330         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
331         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
332         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
333         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
334         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
335         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
336         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
337         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
339 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
341         [BZ #4937]
342         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
343         lookup loop.  Suggested by John Reiser.
345 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
347         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
349 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
351         * csu/libc-start.c: Don't handle VDSO_SETUP here.
352         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
353         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
354         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
355         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
356         to...
357         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
359 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
361         * po/nl.po: Update from translation team.
363 2007-08-16  Andreas Jaeger  <aj@suse.de>
365         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
366         Reported by Peter Festner <peter.festner@ewetel.net>.
368 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
370         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
372 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
374         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
375         to check for undefined symbols.
377         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
378         If the syscall fails, set errno to the actual returned error number
379         rather than EINVAL.
380         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
381         arguments are incorrect, set errno to EINVAL, if the syscall
382         fails, set errno to the actual returned error number.
384         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
385         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
387         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
388         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
389         file.
390         (ASI_PNF, ASI_BLK_P): Don't define.
391         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
392         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
393         file.
394         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
395         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
396         file.
398 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
400         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
401         FE_UNDERFLOW on Niagara CPUs.
403         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
404         exceptions.
406 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
408         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
409         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
410         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
411         flush should be used or not inside of the function.
412         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
414         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
415         __thread_start): Use HIDDEN_JUMPTARGET.
416         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
417         __thread_start): Likewise.
418         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
420         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
421         Add libc_hidden_proto.
422         (STRTOF): Add libc_hidden_proto.
423         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
424         (strtold_l, wcstold_l): Use them as second argument for
425         long_double_symbol.
427 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
429         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
431 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
433         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
435 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
437         * po/bg.po: New file.  From the translation team.
439 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
441         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
442         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
443         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
444         when each feature was introduced.
446         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
447         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
448         (CHECK_HASH): New macro.
449         (PREPARE_VERSION): Use it.
451         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
452         prototype if not __ASSUME_PSELECT.
453         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
454         prototype if not __ASSUME_PPOLL.
456         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
458         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
459         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
460         is defined.
462 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
464         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
465         (_libc_vdso_platform_setup): If vDSO is not available point
466         __vdso_gettimeofday to the vsyscall.
467         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
468         __vdso_gettimeofday instead of vsyscall.
470 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
472         * nscd/servicescache.c: Include kernel-features.h.
473         * nscd/gai.c: Likewise.
474         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
475         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
476         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
477         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
478         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
479         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
480         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
481         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
482         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
484 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
486         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
487         and _dl_get_origin defines anymore.
489         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
490         Build fix for systems which might lack POSIX timer support.
492         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
493         (_libc_vdso_platform_setup): Mangle function pointers before storing
494         them.
495         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
496         Demangle vdso pointer before use.
497         (INTERNAL_VSYSCALL): Likewise.
499         * elf/cache.c (primes): Mark as const.
500         Noted by Roland McGrath.
502 2007-08-01  Andreas Jaeger  <aj@suse.de>
503             Jakub Jelinek  <jakub@redhat.com>
505         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
506         (options): Add option.
507         (parse_opt): Handle option.
508         (manual_link): Adjust process_file caller.  Call implicit_soname.
509         (search_dir): Formatting.  Use and populate auxiliary cache.
510         (main): Load and save auxiliary cache.
511         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
512         stat64 from fstat64 to caller.
513         (implicit_soname): New function.
514         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
515         leave *soname as NULL.
516         * elf/cache.c: Include libgen.h.
517         (print_entry, print_cache, compare, save_cache, add_to_cache):
518         Formatting and cleanups.
519         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
520         aux_cache_file): New structures.
521         (AUX_CACHEMAGIC): Define.
522         (primes): New array.
523         (aux_hash_size, aux_hash): New variables.
524         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
525         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
526         load_aux_cache, save_aux_cache): New functions.
527         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
528         (init_aux_cache, search_aux_cache, add_to_aux_cache,
529         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
530         (process_file): Adjust prototype.
532 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
534         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
535         with __need_size_t.
537 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
539         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
540         r_found_version structure as second parameter.
541         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
542         (_dl_vdso_vsym): Change type of second parameter accordingly.
543         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
544         (_libc_vdso_platform_setup): Adjust.
545         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
546         (_libc_vdso_platform_setup): Likewise.
548         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
549         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
550         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
551         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
552         * csu/libc-start.c: Pretty printing.
553         Use VDSO_SETUP if defined.
554         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
555         and let generic code call into _libc_vdso_platform_setup.
556         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
557         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
558         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
559         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
560         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
561         for GLIBC_PRIVATE.
562         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
563         (sysdep_rountines): Add dl-vdso.
565         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
566         of routines.
568         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
569         attribute_hidden to __vdso_gettimeofday prototype.
571 2007-08-12  Roland McGrath  <roland@redhat.com>
573         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
574         From: Karl Berry <karl@freefriends.org>.
576 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
578         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
579         an atime update for the files we read.
581 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
583         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
585         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
586         instead of mkstemp.
588         * misc/Makefile (routines): Add mkostemp and mkostemp64.
589         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
590         * misc/mkostemp.c: New file.
591         * misc/mkostemp64.c: New file.
592         * stdlib/stdlib.h: Declare the new functions.
593         * sysdeps/posix/tempname.c: Add new parameter which is added to
594         the flags for open.  Remove __GT_BIGFILE handling.
595         * stdio-common/tempname.c: Likewise.
596         * include/stdio.h: Adjust __gen_tempname prototype.
597         Renumber __GT_* constants.
598         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
599         * misc/mkdtemp.c: Likewise.
600         * misc/mkstemp.c: Likewise.
601         * misc/mkstemp64.c: Likewise.
602         * misc/mktemp.c: Likewise.
603         * stdio-common/tempnam.c: Likewise.
604         * stdio-common/tmpfile.c: Likewise.
605         * stdio-common/tmpfile64.c: Likewise.
606         * stdio-common/tmpnam.c: Likewise.
607         * stdio-common/tmpnam_r.c: Likewise.
609 2007-08-10  Roland McGrath  <roland@frob.com>
611         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
612         New macros.
613         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
614         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
616 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
618         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
619         possible.
620         * nss/nss_files/files-alias.c (internal_setent): Likewise.
621         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
622         * nss/nss_files/files-have_o_cloexec.c: New file.
624         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
625         available.
627 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
629         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
630         ___new_wcstold_l): New weak aliases.
631         (strtold_l, wcstold_l): Use them as second argument for
632         long_double_symbol.
634 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
636         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
637         register in test for error.
639         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
640         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
642         * po/sv.po: Update from translation team.
644 2007-08-06  Roland McGrath  <roland@redhat.com>
646         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
647         Remove __strto*_l inlines.
648         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
649         * stdlib/strtod.c: Add libc_hidden_def.
650         * stdlib/strtod_l.c: Likewise.
651         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
652         for __new_strtold and __new_wcstold.
653         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
654         __STRTOF, STRTOF.
655         * stdlib/strtol.c: Add libc_hidden_def.
656         * stdlib/strtol_l.c: Likewise.
657         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
658         strtoq.
660         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
662         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
663         * scripts/data/localplt-generic.data: ... here.
664         * elf/Makefile (check-data): Get generic file if no other.
665         ($(objpfx)check-localplt.out): Make target unconditional.
667         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
668         Use ElfW(Nhdr).
670 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
672         * po/zh_CN.po: Updated translation from translation team.
674 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
677         Don't use CGOTSETUP and CGOTRESTORE macros.
679 2007-08-04  Roland McGrath  <roland@redhat.com>
681         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
683 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
685         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
686         __extension__ around the whole statement expression.
688 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
690         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
691         elements during initialization.
693         * po/pl.po: Updated translation from translation team.
694         * po/tr.po: Likewise.
695         * po/nl.po: Likewise.
697 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
699         * rt/aio.h: Add __nonnull attributes.
701 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
703         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
704         * stdlib/Makefile (tests): Add tst-strtod5.
705         (tst-strtod5-ENV): New.
706         * stdlib/tst-strtod5.c: New file.
708         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
709         failed.
710         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
711         on failure.
713         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
714         allocated.
716 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
718         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
719         numbers.
721 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
723         * io/Makefile (aux): Add have_o_cloexec.
724         * include/fcntl.h: Declare __have_o_cloexec.
725         * io/have_o_cloexec.c: New file.
726         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
727         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
728         fcntl call if not necessary.
729         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
730         of local variable.
732         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
733         Avoid memset, add explicit initialization.
734         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
735         to the end and change into zero-sized array.
736         Move lock member to fill a hole on 64-bit platforms.
738         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
739         inline functions.
740         * include/stdlib.h: Add __strto*_internal prototypes here.
741         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
742         inline functions.
743         * include/wchar.h: Add __wcsto*_internal prototypes.
744         * sysdeps/generic/inttypes.h: No need to protect the declaration
745         of the __strto*_internal and __wcsto*_internal members here.
747         * rt/mqueue.h: Change const to __const and add nonnull attributes.
749 2007-08-02  Roland McGrath  <roland@redhat.com>
751         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
752         $(inst_bindir)/getconf if possible.
754         * posix/Makefile ($(objpfx)getconf.speclist): New target.
755         (generated): Add it.
756         ($(inst_libexecdir)/getconf): Use it.
758 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
760         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
761         /proc is faster and sufficient.  /sys is still needed for
762         __get_nprocs_conf.
764 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
766         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
767         syscall as __fallocate64.
768         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
769         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
771 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
773         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
774         value.
776         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
777         if off_t is different rank from size_t.
779         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
780         uw_frame_state_for): Avoid type punning warnings.
781         * sysdeps/generic/unwind-dw2-fde-glibc.c
782         (_Unwind_IteratePhdrCallback): Likewise.
783         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
784         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
785         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
786         pointers.
788 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
790         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
791         total processors using sysfs.
792         (__get_nprocs): Use sysfs to determine which processors are online.
794 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
796         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
797         syscall arguments count.
799         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
801 2007-07-30  Roland McGrath  <roland@redhat.com>
803         * manual/libc.texinfo: Update copyrights, formatting magic, and
804         @dircategory.  From Karl Berry <karl@freefriends.org>.
806 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
808         [BZ #4860]
809         * io/Makefile (headers): Add bits/fcntl2.h.
811         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
812         using gcc builtin.
813         (__CPU_EQUAL_S): Likewise.
815         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
816         (tests): Add tst-cpuset.
817         * posix/sched_cpualloc.c: New file.
818         * posix/sched_cpufree.c: New file.
819         * posix/tst-cpuset.c: New file.
820         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
821         GLIBC_2.7.
822         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
823         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
824         macros.  Define CPU_*_S macros.
826 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
828         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
829         entry.
831         [BZ #4858]
832         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
833         #.0g and value rounded to 1.0.
834         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
836 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
838         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
839         for int_frac_digits and frac_digits.
841         * login/logout.c (logout): Avoid aliasing violation.
842         * login/logwtmp.c (logwtmp): Likewise.
844         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
846         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
847         to avoid warning.
848         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
849         warning.
850         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
851         warning.
852         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
853         to avoid warnings.
855         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
856         void **.
857         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
859         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
860         char * to avoid warning.
861         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
863         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
865         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
866         allocate_arrays): Cast second argument to charmap_find_symbol
867         to char * to avoid warnings.
869         * locale/programs/repertoire.c (repertoire_new_char): Change
870         from_nr, to_nr and cnt to unsigned long, adjust printf format
871         string.
873         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
874         Cast second argument to new_element to char * to avoid warnings.
876         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
878         * intl/gettextP.h (struct loaded_domain): Change plural to const
879         struct expression *.
880         * intl/plural-eval.c (plural_eval): Change first argument to
881         const struct expression *.
882         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
883         argument to const struct expression **.
884         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
885         prototypes.
886         * intl/loadmsgcat (_nl_unload_domain): Cast away const
887         in call to __gettext_free_exp.
889         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
890         unitialized wstring/wpattern var warnings.
892         * posix/runtests.c (struct a_test): Make data field const char *.
894         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
895         vars if not LDBL_MANT_DIG >= 106.
897         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
899         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
900         __find_specmb to avoid warning.
902         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
904         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
905         to avoid warnings.
907         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
908         initializer.
910         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
911         tv var when it will be actually used.
913         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
914         to avoid warnings.
916         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
917         char array resp. pointer.
918         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
919         char array.
920         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
921         to const unsigned char **.
922         (ucs4_to_cns11643): Change second argument to unsigned char *.
923         * iconvdata/euc-tw.c (BODY): Change endp type to
924         const unsigned char *.
925         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
926         to unsigned char *.
927         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
928         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
929         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
930         types to unsigned char pointers/arrays instead of char.
931         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
932         to unsigned char *.
933         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
934         * iconvdata/jis0212.h: Include assert.h.
935         (ucs4_to_jisx0212): Change second argument to unsigned char *.
936         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
937         of trying to handle that.
938         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
939         shut up a warning.
940         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
941         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
942         two dimensional const unsigned char arrays.
943         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
944         Initialize endp to inptr to shut up a warning.
946 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
948         [BZ #4772]
949         * time/strptime_l.c (__strptime_internal): Silently ignore
950         strftime modifiers and field width in recursive calls.
952         * include/time.h (enum ptime_locale_status): Remove.
953         (__strptime_internal): Remove decided and era_cnt arguments,
954         add statep argument.
955         * time/strptime_l.c (__strptime_internal): Remove decided
956         and era_cnt arguments, add statep argument.  Don't recompute
957         any fields in recursive calls, only update caller's tm
958         and state, if recursive call fails, don't change tm nor
959         any state.
960         (get_alt_number): Adjust.
961         (recursive): Adjust caller.
962         (strptime): Likewise.
963         * time/strptime.c (strptime): Likewise.
965 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
967         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
968         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
969         if from and to charsets are the same.
970         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
971         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
972         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
974 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
976         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
977         Don't define wint_t when __need_mbstate_t unless it
978         is necessary.
979         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
980         in the typedef if possible.
981         * wctype/wctype.h (wint_t): Define by including
982         wchar.h with __need_wint_t instead of including stddef.h
983         with __need_wint_t and as fallback definining it ourselves.
984         * iconv/gconv.h (__need_wint_t): Define before including
985         wchar.h.
986         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
987         or _GLIBCPP_USE_WCHAR_T.
988         (__need_wchar_t): Don't define
989         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
990         (__need_wint_t): Don't define before including stddef.h,
991         define before including wchar.h only if _LIBC or
992         _GLIBCPP_USE_WCHAR_T.
993         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
994         * sysdeps/mach/hurd/_G_config.h: Likewise.
995         * sysdeps/generic/_G_config.h: Likewise.
996         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
997         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
998         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
999         if _LIBC or _GLIBCPP_USE_WCHAR_T.
1001 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
1003         * sysdeps/posix/posix_fallocate64.c: Undefine
1004         __posix_fallocate64_l64 before alias handling.
1005         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
1006         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
1007         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
1008         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
1010         * io/tst-posix_fallocate.c: Include <fcntl.h>.
1012 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
1014         * locale/programs/ld-collate.c (atwc): New variable.
1015         (add_to_tablewc): New toplevel function, moved from collate_output.
1016         (collate_output): Remove add_to_tablewc nested function.
1018         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
1019         (name_insert): New function.
1020         (write_output): Remove hash_table and hash_size vars and name_insert
1021         nested function.
1023 2007-07-24  Roland McGrath  <roland@redhat.com>
1025         * Makerules (install-others-programs-nosubdir): New target.
1026         (install-no-libc.a-nosubdir): Depend on it.
1028         * iconv/Makefile (install-others-programs): Set this instead of
1029         install-others.
1030         * login/Makefile (install-others-programs): Likewise.
1031         * posix/Makefile (install-others-programs): Likewise.
1033         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
1034         dependencies.
1036 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
1038         * io/Makefile (tests): Add tst-posix_fallocate.
1039         * io/tst-posix_fallocate.c: New file.
1041         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1042         __ASSUME_FALLOCATE.
1044 2007-07-22  Roland McGrath  <roland@frob.com>
1046         * hurd/getdport.c: Add missing copyright year update.
1048         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
1049         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
1051 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
1053         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
1055         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
1056         O_CLOEXEC is needed.
1057         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
1058         Avoid additional fcntl to set O_CLOEXEC if not needed.
1059         * nis/nss_compat/compat-initgroups.c: Likewise.
1060         * nis/nss_compat/compat-pwd.c: Likewise.
1061         * nis/nss_compat/compat-spwd.c: Likewise.
1063 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1065         [BZ #3665]
1066         * manual/errno.texi: Change ECANCELED value to 119.
1068         [BZ #4610]
1069         * mach/lock-intern.h: Include <sys/cdefs.h>.
1071         [BZ #4178]
1072         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
1073         reading A.
1075         [BZ #4126]
1076         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
1077         to __sigsuspend.
1079         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
1081 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
1083         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
1084         `__ASSEMBLER__'.
1085         * sysdeps/mach/hurd/i386/tls.h: Likewise.
1087 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
1089         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
1090         descriptor received from nscd.
1092         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
1094         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
1095         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1096         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1097         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1098         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1099         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1101 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
1103         [BZ #4816]
1104         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
1106         [BZ #4813]
1107         * login/forkpty.c (forkpty): Close master and slave fds on
1108         fork failure.  Patch by
1109         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
1111 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
1113         * include/features.h (__USE_ISOC95): New define.
1114         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
1115         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
1116         for -std=iso9899:199409.
1117         * CONFORMANCE: Remove comments about unsupported AMD1.
1119 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
1121         * sysdeps/ia64/sched_cpucount.c: New file.
1122         * sysdeps/powerpc/sched_cpucount.c: New file.
1124         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
1125         __BEGIN_DECLS/__END_DECLS around the prototype.
1126         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
1127         pointer to const cpu_set_t.
1129         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
1130         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
1131         __need_size_t and include stddef.h.
1132         * sysvipc/sys/msg.h: Likewise.
1133         * posix/sched.h: Likewise.
1134         * hurd/hurd/signal.h (__need_size_t): Define.
1136         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
1137         neither does signal.h in pedantic ISO C namespaces.  stdio.h
1138         no longer defines wint_t or wchar_t.
1140         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
1141         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
1142         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
1143         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
1144         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
1145         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
1146         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
1147         * debug/printf_chk.c (__printf_chk): Likewise.
1148         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
1149         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
1151         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
1152         Define.
1154         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
1155         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
1157 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
1159         [BZ #4792]
1160         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
1161         * malloc/malloc.h (realloc): Likewise.
1163         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
1164         if one of proc_file_chain streams has that fileno.
1165         * stdio-common/Makefile (tests): Add tst-popen2.
1166         * stdio-common/tst-popen2.c: New test.
1168 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
1170         * elf/ldconfig.c: Allow GPLv2 or any later version.
1171         * elf/readlib.c: Likewise.
1172         * elf/chroot_canon.c: Likewise.
1173         * elf/cache.c: Likewise.
1174         * nscd/mem.c: Likewise.
1175         * nscd/getpwuid_r.c: Likewise.
1176         * nscd/grpcache.c: Likewise.
1177         * nscd/aicache.c: Likewise.
1178         * nscd/getsrvbynm_r.c: Likewise.
1179         * nscd/nscd.c: Likewise.
1180         * nscd/servicescache.c: Likewise.
1181         * nscd/getsrvbypt_r.c: Likewise.
1182         * nscd/initgrcache.c: Likewise.
1183         * nscd/gethstbyad_r.c: Likewise.
1184         * nscd/gethstbynm2_r.c: Likewise.
1185         * nscd/getgrnam_r.c: Likewise.
1186         * nscd/nscd_setup_thread.c: Likewise.
1187         * nscd/getpwnam_r.c: Likewise.
1188         * nscd/gai.c: Likewise.
1189         * nscd/connections.c: Likewise.
1190         * nscd/dbg_log.c: Likewise.
1191         * nscd/cache.c: Likewise.
1192         * nscd/hstcache.c: Likewise.
1193         * nscd/nscd_conf.c: Likewise.
1194         * nscd/getgrgid_r.c: Likewise.
1195         * nscd/pwdcache.c: Likewise.
1196         * catgets/gencat.c: Likewise.
1197         * locale/programs/linereader.h: Likewise.
1198         * locale/programs/locarchive.c: Likewise.
1199         * locale/programs/ld-paper.c: Likewise.
1200         * locale/programs/locfile-kw.h: Likewise.
1201         * locale/programs/ld-address.c: Likewise.
1202         * locale/programs/xmalloc.c: Likewise.
1203         * locale/programs/ld-time.c: Likewise.
1204         * locale/programs/localedef.c: Likewise.
1205         * locale/programs/simple-hash.c: Likewise.
1206         * locale/programs/xstrdup.c: Likewise.
1207         * locale/programs/ld-numeric.c: Likewise.
1208         * locale/programs/locfile-kw.gperf: Likewise.
1209         * locale/programs/ld-collate.c: Likewise.
1210         * locale/programs/charmap-kw.gperf: Likewise.
1211         * locale/programs/charmap.h: Likewise.
1212         * locale/programs/charmap-kw.h: Likewise.
1213         * locale/programs/config.h: Likewise.
1214         * locale/programs/locfile.c: Likewise.
1215         * locale/programs/ld-ctype.c: Likewise.
1216         * locale/programs/charmap.c: Likewise.
1217         * locale/programs/ld-messages.c: Likewise.
1218         * locale/programs/repertoire.h: Likewise.
1219         * locale/programs/locale.c: Likewise.
1220         * locale/programs/ld-name.c: Likewise.
1221         * locale/programs/linereader.c: Likewise.
1222         * locale/programs/locfile.h: Likewise.
1223         * locale/programs/3level.h: Likewise.
1224         * locale/programs/ld-monetary.c: Likewise.
1225         * locale/programs/ld-measurement.c: Likewise.
1226         * locale/programs/charmap-dir.c: Likewise.
1227         * locale/programs/ld-identification.c: Likewise.
1228         * locale/programs/localedef.h: Likewise.
1229         * locale/programs/charmap-dir.h: Likewise.
1230         * locale/programs/repertoire.c: Likewise.
1231         * locale/programs/simple-hash.h: Likewise.
1232         * locale/programs/ld-telephone.c: Likewise.
1233         * locale/programs/locale-spec.c: Likewise.
1234         * locale/programs/locfile-token.h: Likewise.
1235         * posix/getconf.c: Likewise.
1236         * iconv/dummy-repertoire.c: Likewise.
1237         * iconv/iconv_charmap.c: Likewise.
1238         * iconv/iconvconfig.c: Likewise.
1239         * iconv/iconv_prog.c: Likewise.
1240         * malloc/memusagestat.c: Likewise.
1241         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
1243 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1245         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
1246         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
1247         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
1248         check for the first argument.
1250 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1252         [BZ #4775]
1253         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
1254         (__tgmath_real_type): Fix if expr is const int or other const
1255         qualified integral type.
1256         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
1257         expressions and handle const qualified arguments.
1258         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
1259         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
1260         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
1261         statement expressions.
1262         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
1263         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
1264         (__TGMATH_UNARY_IMAG): Define.
1265         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
1266         * math/Makefile (tests): Add test-tgmath2.
1267         (CFLAGS-test-tgmath2.c): Add.
1268         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
1269         count_cfloat, count_cldouble): New variables.
1270         (NCCALLS): Define.
1271         (main): Check number of complex calls as well.
1272         (F(compile_test)): Add complex tests and tests with const qualified
1273         arguments.
1274         (y, z, ccount): Define.
1275         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
1276         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
1277         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
1278         F(cproj)): New functions.
1279         * math/test-tgmath2.c: New test.
1281 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
1283         [BZ #4776]
1284         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
1285         RPATH etc. as "/" rather than "", don't segfault on empty paths,
1286         instead output ".".
1287         * dlfcn/Makefile (distribute): Add glreflib3.c.
1288         (module-names): Add glreflib3.
1289         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
1290         glreflib1.so.
1291         (LDFLAGS_glreflib3.so): New.
1292         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
1293         glreflib1.so.
1294         * dlfcn/glreflib3.c: New file.
1296         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
1297         returned -1, return NULL.
1298         * intl/explodename.c (_nl_explode_name): Return -1 if
1299         _nl_normalize_codeset failed.
1301 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
1303         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
1304         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
1305         and avoid branch misspredicts for > 31 bytes memset case.
1306         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
1307         Remove toc ref to __cache_line_size.
1309         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
1310         to get ISA-V2.0 branch hints.
1311         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
1312         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
1313         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
1314         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
1315         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
1316         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
1317         Remove toc ref to __cache_line_size.
1319         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
1320         Include math_ldbl_opt.h.
1322 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
1324         [BZ #4773]
1325         * time/strptime_l.c (__strptime_internal): Implement greedy
1326         matching of weekday and month names.
1328 2007-07-09  Roland McGrath  <roland@redhat.com>
1330         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
1331         (ELF_NOTE_ABI): Use it.
1332         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
1334 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
1336         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
1337         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1339 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
1341         [BZ #4745]
1342         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
1343         in loop to look for conversion specifier to avoid testing of
1344         wrong errno value.
1345         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
1346         * stdio-common/bug18.c: New file.
1347         * stdio-common/bug18a.c: New file.
1348         * stdio-common/bug19.c: New file.
1349         * stdio-common/bug19a.c: New file.
1351 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
1353         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
1354         running awk script.
1356 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
1358         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
1359         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
1360         Return NULL if mmap failed instead of asserting it does not.
1361         (calloc): Check for integer overflow.
1363         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
1364         than LONG_MAX / 10.
1366 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
1368         [BZ #4702]
1369         * nis/nss-default.c: Include errno.h.
1370         (init): Preserve errno.
1372 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
1374         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
1376 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
1378         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
1380 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1382         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
1384 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1386         * sysdeps/s390/dl-procinfo.c: New file.
1387         * sysdeps/s390/dl-procinfo.h: New file.
1388         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
1390 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
1392         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
1393         in PT_NOTE segments with multiple notes.
1394         * elf/readelflib.c (process_elf_file): Likewise.
1396 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
1398         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
1399         ISO C compliant.
1401 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
1403         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
1405 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
1407         * include/link.h: Don't include rtld-lowlevel.h.
1408         (struct link_map): Remove l_scope_lock.
1409         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
1410         (_dl_scope_free_list): New field (variable) in _rtld_global.
1411         (DL_LOOKUP_SCOPE_LOCK): Remove.
1412         (_dl_scope_free): New prototype.
1413         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
1414         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
1415         (_dl_profile_fixup): Likewise.
1416         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
1417         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
1418         THREAD_GSCOPE_RESET_FLAG around it.
1419         * elf/dl-close.c (_dl_close_worker): Don't use
1420         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
1421         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
1422         scopes were queued or if l_scope_mem has been abandoned.
1423         * elf/dl-open.c (_dl_scope_free): New function.
1424         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
1425         * elf/dl-support.c (_dl_scope_free_list): New variable.
1426         * elf/dl-lookup.c (add_dependency): Remove flags argument.
1427         Remove DL_LOOKUP_SCOPE_LOCK handling.
1428         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
1429         handling.
1430         * elf/dl-object.c (_dl_new_object): Don't use
1431         __rtld_mrlock_initialize.
1433 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
1435         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
1436         to fill in holes
1437         (rtld_global_ro): Likewise.
1439 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
1441         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
1442         Move PT_LOAD checking to...
1443         (_dl_addr_inside_object): ... here, new function.
1444         * elf/dl-sym.c (do_sym): If not l_contiguous,
1445         call _dl_addr_inside_object.
1446         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
1447         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
1448         * elf/dl-open.c (dl_open_worker): Likewise.
1449         (_dl_addr_inside_object): New function if IS_IN_rtld.
1450         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
1451         holes are present or are PROT_NONE protected.
1452         * include/link.h (struct link_map): Add l_contiguous field.
1453         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
1455 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
1456             Tomas Janousek  <tjanouse@redhat.com>
1457             Ulrich Drepper  <drepper@redhat.com>
1459         [BZ #4647]
1460         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
1461         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
1462         socket.
1463         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
1464         unused member a bitmap.
1465         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
1466         servers are configured.
1468 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
1470         * elf/rtld.c (dl_main): Don't call init_tls more than once.
1472 2007-06-17  Andreas Schwab  <schwab@suse.de>
1474         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
1476 2007-06-16  Andreas Jaeger  <aj@suse.de>
1478         [BZ #4125]
1479         * sysdeps/unix/sysv/linux/sys/ptrace.h
1480         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
1481         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
1482         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
1483         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
1484         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
1485         Define.
1486         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
1487         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
1488         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
1489         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
1491 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
1493         [BZ #4599]
1494         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
1495         determining whether there are IPv4/IPv6 addresses, ignore loopback
1496         addresses.
1498 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
1500         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
1501         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
1502         as the return type.  Change type of "r" variable to CMPtype.
1503         * soft-fp/eqsf2.c (__eqsf2): Likewise.
1504         * soft-fp/eqtf2.c (__eqtf2): Likewise.
1505         * soft-fp/gedf2.c (__gedf2): Likewise.
1506         * soft-fp/gesf2.c (__gesf2): Likewise.
1507         * soft-fp/getf2.c (__getf2): Likewise.
1508         * soft-fp/ledf2.c (__ledf2): Likewise.
1509         * soft-fp/lesf2.c (__lesf2): Likewise.
1510         * soft-fp/letf2.c (__letf2): Likewise.
1511         * soft-fp/unorddf2 (__unorddf2): Likewise.
1512         * soft-fp/unordsf2 (__unordsf2): Likewise.
1513         * soft-fp/unordtf2 (__unordtf2): Likewise.
1515 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
1517         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
1518         make sure gcc doesn't mess around with this.
1520 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
1522         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
1524 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
1526         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
1527         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
1528         at most once per _dl_close_worker.
1530 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
1532         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
1533         __sched_cpucount as const.
1534         * posix/sched_cpucount.c: Adjust.
1536         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
1537         instruction for counting bits.
1538         * sysdeps/x86_64/sched_cpucount.c: New file.
1540 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
1542         * configure.in: Avoid variable named BASH.
1543         * config.make.in: Likewise.
1544         Patch in part by Mike Frysinger.
1546 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
1548         [BZ #4586]
1549         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
1550         pseudo-zeros as zero.
1551         * sysdeps/x86_64/ldbl2mpn.c: New file.
1552         * sysdeps/ia64/ldbl2mpn.c: New file.
1554 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
1556         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
1557         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
1558         Remove unreachable code at the end.
1560 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
1562         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
1563         ldbl-128ibm in comment.
1564         (fpclassifyl): Correct classification of denormals.
1565         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
1566         return value for MIN denormal. Rewrite using long double math too
1567         correctly handle denormals and canonicalize the results.
1569 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
1571         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
1572         (__mpn_construct_long_double): Fix conversion where result ought
1573         to be smaller than __LDBL_MIN__, or the low double should be
1574         denormal.  Fix decision where to negate low double - honor round
1575         to even rules.
1576         * stdio-common/tst-sprintf2.c: Include string.h.
1577         (COMPARE_LDBL): Define.
1578         (TEST): Also test whether a string hexadecimal float representation
1579         can be parsed back to the number.
1580         (main): Add a couple of further tests.
1582 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
1584         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
1585         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
1586         is non-zero, but smaller than 2 * __DBL_MIN__.
1587         * stdio-common/tst-sprintf2.c: New test.
1588         * stdio-common/Makefile (tests): Add tst-sprintf2.
1590         * math/test-misc.c (main): Don't run last batch of tests with
1591         IBM long double format.
1593 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
1595         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
1596         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
1597         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
1598         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
1599         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
1600         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
1601         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
1602         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
1603         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
1604         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
1605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
1606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
1607         New file.
1608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
1609         New file.
1610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
1611         New file.
1612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
1613         New file.
1614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
1615         New file.
1616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
1617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
1618         New file.
1619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
1620         New file.
1621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
1622         New file.
1623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
1624         New file.
1625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
1626         New file.
1628 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
1630         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
1631         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
1632         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
1633         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
1634         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
1635         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
1636         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
1637         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
1639 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
1641         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
1642         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
1643         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
1644         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
1645         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
1646         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
1647         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
1648         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
1650 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
1652         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
1653         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
1654         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
1655         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
1657 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
1659         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
1660         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
1662 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
1664         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
1665         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
1666         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
1667         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
1669 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
1671         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
1672         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
1674 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
1676         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
1677         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
1679         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
1680         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
1681         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
1682         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
1684 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
1686         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
1687         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
1688         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
1689         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
1691 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
1693         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
1694         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
1695         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
1696         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
1697         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
1698         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
1700 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
1702         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
1703         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
1704         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
1705         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
1707 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
1709         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
1710         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
1711         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
1712         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
1713         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
1714         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
1715         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
1716         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
1717         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
1718         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
1719         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
1720         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
1721         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
1722         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
1723         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
1724         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
1726 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
1728         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
1729         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
1731 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
1733         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
1734         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
1736 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
1738         * sysdeps/powerpc/powerpc32/970/Implies: New file.
1739         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
1740         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
1741         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
1742         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
1743         * sysdeps/powerpc/powerpc64/970/Implies: New file.
1744         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
1745         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
1746         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
1747         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
1749 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
1751         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
1753 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
1755         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
1756         branch miss-predicts. Ensure that cache line crossing does not impact
1757         dispatch grouping.
1759 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
1761         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
1762         "../../powerpc32/power4/memcopy.h".
1763         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
1764         "../../powerpc32/power4/wordcopy.c".
1766 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
1768         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
1769         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
1770         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
1771         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
1772         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
1773         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
1775 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
1777         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
1779 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
1781         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
1782         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
1783         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
1784         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
1785         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
1786         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
1787         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
1788         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
1790 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
1792         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
1794 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
1796         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
1797         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
1798         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
1799         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
1800         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
1801         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
1802         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
1804 2007-05-29  Roland McGrath  <roland@redhat.com>
1806         * po/Makefile (po-sed-cmd): New variable.
1807         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
1809 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
1811         * crypt/md5-crypt.c: Fix comment.
1813         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
1814         of crashing.  When this is the case or if the reply is malformed,
1815         don't try to close the new file descriptor since it does not
1816         exist.
1817         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
1819 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
1821         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
1822         if __NR_utimensat is not defined.
1824 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
1826         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
1828 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
1830         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
1831         (open): Fix comment typos.  Don't call __open_2 if flags
1832         is a compile time constant without O_CREAT.
1833         (__open64_2): Add nonnull attribute.
1834         (open64): Fix comment typos.  Don't call __open64_2 if flags
1835         is a compile time constant without O_CREAT.
1836         (__openat_2): Add nonnull attribute, fix nonnull attribute
1837         on redirect.
1838         (openat): Fix comment typos.  Don't call __openat_2 if flags
1839         is a compile time constant without O_CREAT.
1840         (__openat64_2): Add nonnull attribute, fix nonnull attribute
1841         on redirect.
1842         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
1843         is a compile time constant without O_CREAT.
1845 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
1847         * Makerules (sysd-rules): Define PTW for ptw-* files.
1848         * Versions: Define GLIBC_2.7 for libc.
1849         * include/stdio.h: Declare __fortify_fail.
1850         * debug/fortify_fail.c: New file.
1851         * debug/Makefile (routines): Add fortify_fail.
1852         * debug/chk_fail.c: Use __fortify_fail.
1853         * debug/stack_chk_fail.c: Likewise.
1854         * io/Versions: Export __open_2, __open64_2, __openat_2, and
1855         __openat64_2 for GLIBC_2.7.
1856         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
1857         * io/open.c: Define *_2 variant of function which checks for O_CREAT
1858         and fails if necessary.
1859         * io/open64.c: Likewise.
1860         * io/openat.c: Likewise.
1861         * io/openat64.c: Likewise.
1862         * sysdeps/unix/sysv/linux/open64.c: Likewise.
1863         * sysdeps/unix/sysv/linux/openat.c: Likewise.
1864         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
1865         * io/bits/fcntl2.h: New file.
1866         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
1867         __openat64_2.
1868         * include/bits/fcntl2.h: New file.
1869         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1870         Add open_2.
1871         * sysdeps/unix/sysv/linux/open_2.c: New file.
1873 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
1875         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
1876         as second parameter to handle_intel.
1878         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
1879         the entry.
1881         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
1882         handling to ...
1883         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
1884         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
1885         cacheinfo.
1886         * sysdeps/x86_64/memcpy.S: Complete rewrite.
1887         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
1888         Patch by Evandro Menezes <evandro.menezes@amd.com>.
1890         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
1892 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
1894         [BZ #4525]
1895         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
1896         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
1897         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
1899         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
1901         [BZ #4514]
1902         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
1903         reinitialize workend at the start of each do_positional format spec
1904         loop, free workstart before do_positional loops.
1905         (printf_unknown): Fix size of work_buffer.
1906         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
1908         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
1909         (public_sET_STATe): If ms->version < 3, put all chunks into
1910         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
1911         chunks.
1913         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
1914         * malloc/hooks.c: Likewise.
1915         * malloc/arena.c: Likewise.
1916         * malloc/malloc.c (do_check_malloc_state): Don't assert
1917         n_mmaps is not greater than n_mmaps_max.  This removes the need
1918         for the previous change.
1920         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
1921         2007-05-07 commit.
1923 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
1925         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
1926         Define for kernel >= 2.6.22.
1928 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
1930         * elf/dl-close.c (_dl_close_worker): When removing object from
1931         global scope, wait for all lookups to finish afterwards.
1932         * elf/dl-open.c (add_to_global): When global scope array must
1933         grow, allocate a new one and free old array only after all
1934         lookups finish.
1935         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
1936         (_dl_lookup_symbol_x): Likewise.
1937         * elf/dl-support.c: Define _dl_wait_lookup_done.
1938         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
1939         _dl_wait_lookup_done.
1941         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
1942         not overlapping with arena.
1944         * malloc/mcheck.c (reallochook): If size==0, free the block.
1946         * rt/tst-shm.c: Use fstat64 instead of fstat.
1948         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
1949         __NR_sync_file_range is not defined.
1951 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
1953         Dummy files to prevent stub versions from being used.
1954         * sysdeps/x86_64/fpu/k_cosl.c: New file.
1955         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
1956         * sysdeps/x86_64/fpu/k_sinl.c: New file.
1957         * sysdeps/x86_64/fpu/k_tanl.c: New file.
1959         * version.h (VERSION): Set to 2.6.90.
1961 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
1963         * version.h (VERSION): Define to 2.6.
1964         * include/features.h (__GLIBC_MINOR__): Define to 6.
1966         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
1968         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
1969         sizes.
1971 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
1973         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
1974         number of mmaps.  n_mmaps_max is the target.
1975         * malloc/hooks.c: Likewise.
1976         * malloc/arena.c: Likewise.
1978 2007-05-12  Andreas Jaeger  <aj@suse.de>
1980         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
1981         getpid.
1983 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
1985         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
1986         adding new variables.
1988         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
1989         optimize.  Completely extend global scope array before making the
1990         new entries visible.
1992 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
1994         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
1995         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
1996         tst-getcpu.
1998         * include/link.h: Move l_version and l_nversion members around to
1999         fill gaps.
2001         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
2003         * sysdeps/unix/sysv/linux/sched_setaffinity.c
2004         (__sched_setaffinity_new): If syscall was successful and
2005         RESET_VGETCPU_CACHE is defined, use it before returning.
2006         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
2008         * io/sys/stat.h: Make sure struct timespec is defined for
2009         __USE_ATFILE.
2011         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
2012         UTIME_OMIT.
2013         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2014         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2015         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
2016         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2017         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
2018         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2019         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
2020         * io/sys/stat.h: Declare utimensat, futimens.
2021         * io/utimensat.c: New file.
2022         * io/futimens.c: New file.
2023         * sysdeps/unix/sysv/linux/utimensat.c: New file.
2024         * sysdeps/unix/sysv/linux/futimens.c: New file.
2025         * io/Makefile (routines): Add utimensat, futimens.
2026         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
2027         * sysdeps/unix/sysv/linux/lutimes.c: New file.
2028         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
2029         available.
2031         * include/sys/cdefs.h: Redefine __nonnull so that test for
2032         incorrect parameters in the libc code itself are not omitted.
2034 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
2036         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
2037         exception in addition to inexact when asked to raise only FE_INEXACT.
2039         [BZ #3427]
2040         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
2041         in *envp.
2043 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
2045         [BZ #4403]
2046         * string/strfry.c (strfry): Make result more random.
2048 2007-05-07  Richard Henderson  <rth@redhat.com>
2050         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
2051         if __NO_LONG_DOUBLE_MATH.
2052         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
2053         available in the compiler, add .arch directive to the assembly.
2055 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
2057         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
2058         compat_symbol to GLIBC_2_1.
2059         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
2060         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
2061         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
2062         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
2063         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
2064         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
2065         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
2066         libc, not libm.
2067         (__isnanl): New compat_symbol.
2069 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
2070             Jakub Jelinek  <jakub@redhat.com>
2072         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
2073         (new_heap): Initialize mprotect_size.
2074         (grow_heap): When growing, only mprotect from mprotect_size till
2075         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
2076         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
2078 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
2079             Peter Bergner  <bergner@us.ibm.com>
2081         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
2082         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
2083         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
2084         * sysdeps/powerpc/fpu/fe_mask.c: New file.
2085         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
2086         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
2087         Call __fe_mask_env() if all FP exceptions disabled.
2088         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
2089         from old FPSCR to new fenv to propagate DFP rounding modes.
2090         Call __fe_mask_env() if FP exceptions previously enabled.
2091         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
2092         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
2093         transitioning from all exceptions disabled to any exception enabled
2094         or visa versa.
2095         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
2096         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
2097         when transitioning from all exceptions disabled to any exception
2098         enabled or visa versa.
2099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
2100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
2101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
2102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
2103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
2104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
2106 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
2108         [BZ #4465]
2109         * posix/unistd.h: Remove __THROW from fdatasync.
2111 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
2113         [BZ #4465]
2114         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
2116 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
2118         * stdio-common/vfprintf.c (process_string_arg): Optimize
2119         ridiculous precision in wide char code printing multi-byte string.
2120         Reported by Jim Meyering <jim@meyering.net>.
2122         [BZ #4131]
2123         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
2124         boundaries to work around systems with overlapping binary loading.
2125         Based on a patch by Suzuki <suzuki@in.ibm.com>.
2127 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
2129         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
2130         __mbsnrtowcs after last change.
2132         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
2133         (get_ident): Likewise.
2135 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
2137         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
2138         with setting the sticky bit.
2139         * math/test-misc.c (main): Add more truncation tests.
2141 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
2143         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
2144         double in the function declaration.
2145         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
2146         double in the function declaration.
2147         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
2148         float in the function declaration.
2149         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
2150         float in the function declaration.
2152         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
2153         denormal operands.  Do not generate FP_EX_DENORM exception.
2154         (FP_UNPACK_RAW_EP): Ditto.
2155         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
2156         undefined _FP_UNPACK_RAW_E.
2157         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
2158         undefined _FP_UNPACK_RAW_EP.
2159         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
2160         undefined _FP_PACK_RAW_E.
2161         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
2162         undefined _FP_PACK_RAW_EP.
2164         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
2165         _FP_FRAC_COPY_2.
2166         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
2167         _FP_FRAC_COPY_4.
2169 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
2170             Jakub Jelinek  <jakub@redhat.com>
2172         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
2173         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
2174         this case.
2175         * soft-fp/op-common.h (FP_TRUNC): Ditto.
2177 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
2179         * math/test-misc.c (main): Add tests for rounding long double
2180         values close to smallest double denormalized value to double.
2182 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
2184         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
2185         condition for truncating to 0.  Set sticky bit for such
2186         truncation.
2188 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
2190         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
2191         fixed length array for ignore.
2193 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
2195         [BZ #4438]
2196         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
2197         stack for large precisions.
2198         * stdio-common/test-vfprintf.c (main): Add test for large
2199         precision.
2201 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
2203         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
2204         for exponent 0.
2205         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
2207         [BZ #4439]
2208         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
2209         account in the size check.
2210         * resolv/tst-inet_ntop.c: New test.
2211         * resolv/Makefile (tests): Add tst-inet_ntop.
2213 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
2214             Jakub Jelinek  <jakub@redhat.com>
2216         [BZ #4349]
2217         * malloc/malloc.c: Keep separate list for first blocks on the bin
2218         lists with a given size.  This helps skipping over list elements
2219         we know won't fit in two places.
2220         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
2222 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
2224         [BZ #4102]
2225         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
2226         label to Teredo tunnel addresses 2001://32.
2228 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
2230         * locale/programs/ld-collate.c (collate_read): Allow order_start
2231         after copy.
2233         * locale/programs/ld-collate.c (collate_read): Fix printing of
2234         error message.
2236         [BZ #3213]
2237         * locale/C-translit.h.in: Add entry for U2044.
2239         [BZ #4342]
2240         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
2241         hexa-decimal floats without exponent.
2242         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
2244 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
2246         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
2247         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
2248         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
2249         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
2250         GLIBC_2.6.
2251         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
2252         Add sched_getcpu.
2254 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
2256         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
2257         of 0 after the out_fail label.
2259 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
2261         [BZ #4406]
2262         * iconv/gconv_charset.h (strip): Allow ':'.
2263         * iconv/iconv_open.c (iconv_open): Adjust comment.
2265 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
2267         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
2268         version.
2270 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
2272         [BZ #4381]
2273         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
2274         alignment of buffer and tmp_buffer.
2275         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
2276         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
2277         alignment of buffer.
2278         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
2279         bigger than INT_MAX.
2280         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
2281         h_errnop arguments.  Fail if buflen is too small.
2282         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
2284 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
2286         [BZ #4405]
2287         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
2288         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
2290 2007-04-22  Roland McGrath  <roland@redhat.com>
2292         * elf/elf.h (NT_PRXFPREG): New macro.
2294 2007-04-19  Andreas Jaeger  <aj@suse.de>
2296         [BZ #3905]
2297         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
2298         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
2299         Added.
2301 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
2303         * include/sys/mman.h: Mark madvise hidden.
2304         * misc/madvise.c: Add libc_hidden_def.
2306 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
2308         * nis/nis_domain_of.c (__nis_domain_of): New function.
2309         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
2310         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
2311         * nis/nis_call.c (rec_dirsearch): Likewise.
2312         (first_shoot): Likewise.  Remove search_parent_first argument.
2313         (struct nis_server_cache): Rename search_parent_first field
2314         to search_parent.
2315         (nis_server_cache_search, nis_server_cache_add): Rename
2316         search_parent_first argument to search_parent.
2317         (__nisfind_server): Likewise.  If search_parent, call
2318         __nis_domain_of.
2320 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
2322         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
2324 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
2326         [BZ #4368]
2327         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
2329 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
2331         [BZ #4364]
2332         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
2334 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
2336         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
2337         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
2338         current number of locales in SUPPORTED.
2339         (create_archive): Initialize serial.
2340         (enlarge_archive): Preserve aliases rather than duplicating
2341         their locrecs.
2343 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
2345         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
2346         after _IO_un_link, not before it.
2348         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
2349         special case handling when wcp == wstartp + 1.  Fix a comment typo.
2350         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
2352 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
2354         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
2355         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
2356         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
2357         Remove __THROW.
2358         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
2359         _IO_file_xsgetn_maybe_mmap): Likewise.
2360         * libio/oldfileops.c (old_do_write): Likewise.
2361         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
2362         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
2363         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
2364         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
2365         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
2366         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
2367         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
2368         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
2369         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
2370         _IO_file_underflow, _IO_file_underflow_mmap,
2371         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
2372         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
2373         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
2374         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
2375         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
2376         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
2377         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
2378         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
2379         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
2380         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
2381         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
2382         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
2383         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
2384         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
2385         _IO_adjust_column_internal, _IO_default_uflow_internal,
2386         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
2387         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
2388         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
2389         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
2390         _IO_file_close_it_internal, _IO_file_underflow_internal,
2391         _IO_file_overflow_internal, _IO_file_attach_internal,
2392         _IO_file_fopen_internal, _IO_file_sync_internal,
2393         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
2394         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
2395         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
2396         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
2397         _IO_seekpos_unlocked): Likewise.
2398         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
2399         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
2401 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
2403         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
2404         argument in xmalloc size computation.
2406 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
2408         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
2409         math_opt_barrier and math_force_eval macros.
2411 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
2413         [BZ #3306]
2414         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
2415         * sysdeps/i386/fpu/math_private.h: New file.
2416         * sysdeps/x86_64/fpu/math_private.h: New file.
2417         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
2418         math_force_eval macros.  Use "+m" constraint on asm rather than
2419         "=m" and "m".
2420         * math/s_nextafter.c (__nextafter): Likewise.
2421         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
2422         Likewise.
2423         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
2424         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
2425         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
2426         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
2427         math_opt_barrier and math_force_eval macros.
2428         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
2429         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
2430         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
2431         (__nexttoward): Use math_opt_barrier and
2432         math_force_eval macros.  Use "+m" constraint on asm rather than
2433         "=m" and "m".  Only use asm to force double result if
2434         FLT_EVAL_METHOD is 2.
2435         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
2436         (__nexttowardf): Use math_opt_barrier and
2437         math_force_eval macros.  Use "+m" constraint on asm rather than
2438         "=m" and "m".  Only use asm to force double result if
2439         FLT_EVAL_METHOD is not 0.
2440         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
2441         (__nexttowardf): Use math_opt_barrier and
2442         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
2443         x to float using asm.
2444         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
2445         (__nldbl_nexttowardf): Use math_opt_barrier and
2446         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
2447         x to float using asm.
2448         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
2449         (__nexttowardf): Use math_opt_barrier and math_force_eval
2450         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
2451         * math/bug-nextafter.c (zero, inf): New variables.
2452         (main): Add new tests.
2453         * math/bug-nexttoward.c (zero, inf): New variables.
2454         (main): Add new tests.
2456 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
2458         [BZ #3427]
2459         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
2460         exceptions both in SW and MXCSR.
2461         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
2462         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
2463         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2464         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
2465         in MXCSR if SSE is available.
2466         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
2467         and ldsodefs.h.
2468         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
2469         Fix comment typo.
2470         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
2471         Return 0 rather than 1.
2472         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
2473         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
2474         * math/test-fenv.c (feholdexcept_tests): New function.
2475         (main): Call it.
2477 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
2479         [BZ #3427]
2480         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
2481         in SW.
2483 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
2485         [BZ #4344]
2486         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
2487         Reported by David Anderson <davea42@earthlink.net>.
2489 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
2491         * posix/sys/wait.h: Remove unnecessary forward declaration.
2493 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
2495         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
2496         with obj->do_servers after first_shoot.
2498 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
2500         * posix/Makefile (routines): Add sched_cpucount.
2501         (tests): Add tst-cpucount.
2502         * posix/sched_cpucount.c: New file.
2503         * posix/tst-cpucount.c: New file.
2504         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
2505         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
2506         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
2507         * posix/sched.h: Define CPU_COUNT.
2509 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
2511         * posix/fnmatch.c (STRUCT): Define.
2512         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
2513         * posix/fnmatch_loop.c (struct STRUCT): New type.
2514         (FCT): Add ends argument.  If ends != NULL and normal * is
2515         seen in the pattern, store current pattern and string pointers
2516         and return.  Adjust recursive calls.
2517         (EXT): Adjust FCT callers.
2518         (STRUCT): Undef at the end of the file.
2519         * posix/Makefile (tests): Add tst-fnmatch2.
2520         * posix/tst-fnmatch2.c: New test.
2522 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
2524         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
2525         and 1 on failure.
2527         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
2528         Change last argument to unsigned int.
2530 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
2532         * scripts/check-local-headers.sh: Filter out sys/capability.h.
2534 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
2536         * config.h.in (HAVE_LIBCAP): Add.
2537         * nscd/selinux.h: Include sys/capability.h rather than non-existent
2538         sys/capabilities.h.
2539         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
2540         free_caps.  Cast away const from 4th cap_set_flag argument.
2542 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
2544         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
2545         GLIBC_2.6.
2546         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2547         Add sync_file_range.
2548         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2550 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
2552         * sysdeps/powerpc/bits/atomic.h
2553         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
2554         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
2555         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
2556         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
2557         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
2558         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
2559         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
2560         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
2561         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
2562         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
2563         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
2564         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
2565         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
2566         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
2567         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
2568         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
2569         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
2570         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
2571         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
2572         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
2574 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
2576         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
2577         (__cache_line_size): Define the variable here.  Add
2578         attribute_hidden, remove weak_extern.
2579         (__libc_start_main): Set __cache_line_size
2580         unconditionally.
2581         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
2582         (__cache_line_size): Define the variable here.  Add
2583         attribute_hidden, remove weak_extern.
2584         (DL_PLATFORM_AUXV): Set __cache_line_size
2585         unconditionally.
2586         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
2587         weak_extern, add attribute_hidden.
2588         (__elf_machine_runtime_setup): Assume __cache_line_size is always
2589         defined in ld.so.
2590         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
2591         definition.
2592         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
2594 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
2596         [BZ #4276]
2597         * timezone/africa: Update from tzdata2007d.
2598         * timezone/asia: Likewise.
2599         * timezone/australasia: Likewise.
2600         * timezone/backward: Likewise.
2601         * timezone/europe: Likewise.
2602         * timezone/iso3166.tab: Likewise.
2603         * timezone/leapseconds: Likewise.
2604         * timezone/northamerica: Likewise.
2605         * timezone/southamerica: Likewise.
2606         * timezone/zone.tab: Likewise.
2608         * timezone/private.h: Update from tzcode2007d.
2609         * timezone/zdump.c: Likewise.
2610         * timezone/zic.c: Likewise.
2612 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
2614         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
2615         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
2616         variables.
2617         (nis_server_cache_search, nis_server_cache_add): New functions.
2618         (__nisfind_server): Use them.  Add dbp and flags argument, if
2619         call __nisbind_create.
2620         (__nisbind_create): Add server_used and current_ep arguments,
2621         only call __nis_findfastest if server_used is ~0.
2622         (__do_niscall2, __prepare_niscall): Adjust callers.
2623         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
2624         ckey_cache_euid, ckey_cache_lock): New variables.
2625         (get_ckey): New function.
2626         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
2627         __pmap_getnisport.  Save __pmap_getnisport result in
2628         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
2629         key.
2630         * nis/nis_lookup.c (nis_lookup): Likewise.
2631         * nis/nis_table.c (nis_list): Likewise.
2632         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
2633         prototypes.
2635         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
2636         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
2637         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
2638         _nss_nisplus_getservbyport_r): Likewise.
2639         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
2640         _nss_nisplus_getnetbyaddr_r): Likewise.
2641         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
2642         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
2643         _nss_nisplus_getntohost_r): Likewise.
2644         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
2645         _nss_nisplus_getrpcbynumber_r): Likewise.
2647 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
2649         * configure.in (libc_cv_gnu89_inline): Only do compile test.
2650         * configure: Rebuilt.
2652         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
2653         bit-fields.
2654         * soft-fp/extended.h (_FP_UNION_E): Likewise.
2656 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
2658         [BZ #2831]
2659         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
2660         bit-fields.
2662 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
2664         * nscd/gai.c: Include alloca.h.
2665         (__libc_use_alloca): Define.
2667 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
2669         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
2670         smaller scopes.
2671         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
2672         (DL_DST_REQUIRED): Adjust user.
2674         * include/dlfcn.h (struct link_map): New forward decl.
2676         * inet/getnameinfo.c: Include stddef.h.
2677         (getnameinfo): Use offsetof.
2679         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
2681         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
2683         * string/strerror_l.c: Include stdlib.h.
2685         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
2686         * config.make.in (gnu89-inline-CFLAGS): New variable.
2687         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
2688         -std=gnu99.
2689         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
2690         * argp/argp.h: Use it.
2691         * bits/mathinline.h: Likewise.
2692         * bits/sigset.h: Likewise.
2693         * bits/string.h: Likewise.
2694         * ctype/ctype.h: Likewise.
2695         * hurd/hurd.h: Likewise.
2696         * hurd/hurd/fd.h: Likewise.
2697         * hurd/hurd/port.h: Likewise.
2698         * hurd/hurd/signal.h: Likewise.
2699         * hurd/hurd/threadvar.h: Likewise.
2700         * hurd/hurd/userlink.h: Likewise.
2701         * io/sys/stat.h: Likewise.
2702         * libio/bits/stdio.h: Likewise.
2703         * libio/bits/stdio2.h: Likewise.
2704         * mach/lock-intern.h: Likewise.
2705         * mach/mach/mig_support.h: Likewise.
2706         * math/bits/cmathcalls.h: Likewise.
2707         * posix/bits/unistd.h: Likewise.
2708         * socket/bits/socket2.h: Likewise.
2709         * stdlib/bits/stdlib.h: Likewise.
2710         * stdlib/stdlib.h: Likewise.
2711         * string/argz.h: Likewise.
2712         * string/bits/string2.h: Likewise.
2713         * string/bits/string3.h: Likewise.
2714         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
2715         * sysdeps/generic/inttypes.h: Likewise.
2716         * sysdeps/generic/machine-lock.h: Likewise.
2717         * sysdeps/generic/machine-sp.h: Likewise.
2718         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
2719         * sysdeps/i386/i486/bits/string.h: Likewise.
2720         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
2721         * sysdeps/mach/alpha/machine-lock.h: Likewise.
2722         * sysdeps/mach/alpha/machine-sp.h: Likewise.
2723         * sysdeps/mach/i386/machine-lock.h: Likewise.
2724         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
2725         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
2726         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
2727         * sysdeps/s390/bits/string.h: Likewise.
2728         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
2729         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
2730         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2731         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
2732         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2733         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
2734         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
2735         * wcsmbs/bits/wchar2.h: Likewise.
2736         * wcsmbs/wchar.h: Likewise.
2737         * stdlib/gmp.h: Likewise.  Include <features.h> to get
2738         __extern_inline definition.
2740 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
2742         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
2743         NULL.
2745         [BZ #3919]
2746         * math/libm-test.inc (log_test): Test -Inf and NaN.
2747         (log10_test, log1p_test, log2_test): Test -Inf.
2748         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
2749         FE_INVALID when argument is qNaN.
2750         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
2751         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
2752         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
2753         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
2754         andb $1, %ah with testb $1, %ah, don't test for parity, instead
2755         testb $4, %ah and jump if non-zero.
2756         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
2757         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
2759         [BZ #4101]
2760         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
2761         ancestors with the same depths.
2762         Patch by Niels Moeller <nisse@lysator.liu.se>.
2763         (filter_doc): Don't crash if argp is NULL.
2764         * argp/Makefile (tests): Add tst-argp2.
2765         * argp/tst-argp2.c: New test.
2767         [BZ #4130]
2768         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
2769         open_not_cancel_2.
2770         (updwtmp_file): Likewise.
2772         [BZ #4181]
2773         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
2774         (inet6_opt_append): Don't check extlen is big enough if extbuf
2775         is NULL.
2776         (inet6_opt_finish): Likewise.
2777         * inet/Makefile (tests): Add test-inet6_opt.
2778         * inet/test-inet6_opt.c: New test.
2780         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
2781         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
2782         NLMSG_ERR.  Instead use a page sized buffer.
2783         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
2784         buffer.
2786 2007-03-14  Richard Henderson  <rth@redhat.com>
2788         * sysdeps/alpha/fpu/s_llround.c: New file.
2789         * sysdeps/alpha/fpu/s_llroundf.c: New file.
2790         * sysdeps/alpha/fpu/s_lround.c: New file.
2791         * sysdeps/alpha/fpu/s_lroundf.c: New file.
2792         * sysdeps/alpha/fpu/s_round.c: New file.
2793         * sysdeps/alpha/fpu/s_roundf.c: New file.
2794         * sysdeps/alpha/fpu/s_trunc.c: New file.
2795         * sysdeps/alpha/fpu/s_truncf.c: New file.
2797         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
2798         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
2799         * sysdeps/alpha/fpu/s_floor.c: Likewise.
2800         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
2801         * sysdeps/alpha/fpu/s_rint.c: Likewise.
2802         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
2804         * sysdeps/alpha/fpu/s_fmax.S: New file.
2805         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
2806         * sysdeps/alpha/fpu/s_fmin.S: New file.
2807         * sysdeps/alpha/fpu/s_fminf.S: New file.
2808         * sysdeps/alpha/fpu/s_isnan.c: New file.
2809         * sysdeps/alpha/fpu/s_isnanf.c: New file.
2810         * sysdeps/alpha/fpu/s_llrint.c: New file.
2811         * sysdeps/alpha/fpu/s_llrintf.c: New file.
2812         * sysdeps/alpha/fpu/s_lrint.c: New file.
2813         * sysdeps/alpha/fpu/s_lrintf.c: New file.
2814         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
2815         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
2817         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
2818         (__fdimf, fdimf, __fdim, fdim): Remove.
2819         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
2820         (__isnanf, __isnan, __isnanl): New.
2822 2007-03-13  Richard Henderson  <rth@redhat.com>
2824         * sysdeps/ieee754/ldbl-128/Makefile: New file.
2826 2007-03-13  Richard Henderson  <rth@redhat.com>
2828         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
2829         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
2830         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
2831         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
2832         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
2833         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
2835 2007-03-13  Richard Henderson  <rth@redhat.com>
2837         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
2838         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
2839         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
2840         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
2841         Move to dl-auxv.h; initialize instead of extern weak.
2842         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
2843         weak symbol.
2844         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
2845         Extern instead of initialized.
2847 2007-03-13  Richard Henderson  <rth@redhat.com>
2849         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
2850         __sigsuspend_nocancel.
2852 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
2854         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
2855         172.16/12 address range.
2857 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
2859         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
2860         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
2861         message.
2863 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
2865         [BZ #4069]
2866         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
2867         earlier.
2868         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
2870         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
2871         for x qNaN and y either +-inf or non-integer value.
2872         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
2873         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
2874         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
2876 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
2878         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
2879         from sysdep_headers.
2881 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
2883         * time/tzfile.c (find_transition): Instead of a linear search try to
2884         guess the transition index, use a linear search if the result is at
2885         most 10 transitions away from the guess or binary search otherwise.
2887 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
2889         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
2890         memory reallocation.
2892 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
2894         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
2895         and fix some typos.
2896         Optimize use of TOLOWER.
2898         [BZ #3325]
2899         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
2900         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
2901         * sysdeps/i386/fpu/e_fmod.S: Likewise.
2903         [BZ #3458]
2904         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
2905         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
2907         [BZ #4076]
2908         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
2909         (open_dir_stream): Likewise.
2910         * io/Makefile (tests): Add bug-ftw5.
2911         * io/bug-ftw5.c: New file.
2913         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
2914         * nscd/servicescache.c (cache_addserv): Likewise.
2916         * nscd/grpcache.c (cache_addgr): In case a record changed on
2917         refresh, adjust key_copy.
2919         [BZ #4074]
2920         * nscd/pwdcache.c (cache_addpw): In case a record changed on
2921         refresh, adjust key_copy.
2923         [BZ #4070]
2924         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
2925         special cases.
2926         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
2928 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
2930         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
2931         optimization.
2933         * stdio-common/vfscanf.c: Small cleanups throughout.
2935 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
2937         [BZ #3325]
2938         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
2939         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
2940         * sysdeps/i386/fpu/e_fmod.S: Likewise.
2941         Patch by Jared Casper <jaredcasper@gmail.com>.
2943         * sysdeps/unix/closedir.c: Outside libc don't use locking.
2944         * sysdeps/unix/opendir.c: Likewise.
2945         * sysdeps/unix/readdir.c: Likewise.
2947         [BZ #2211]
2948         * stdio-common/vfscanf.c: Handle localized digits etc for floating
2949         point numbers.
2950         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
2952         * stdio-common/vfscanf.c: Fix problems in width accounting.
2953         * stdio-common/tst-sscanf.c (double_tests): New tests.
2954         (main): Hook them up.
2956         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
2957         More simplifications of floating-point reader.
2959         * stdio-common/Makefile (tests): Add tst-swscanf.
2960         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
2961         testing.
2962         * stdio-common/tst-swscanf.c: New file.
2964 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
2966         [BZ #2633]
2967         * libio/stdio.h: Define struct _IO_FILE in global namespace.
2968         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
2969         Remove using for __jmp_buf_tag.
2970         * locale/locale.h (struct lconv): Also define in std namespace.
2971         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
2973         [BZ #3842]
2974         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
2975         using __libc_enable_secure.
2977         [BZ #3818]
2978         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
2980         [BZ #3745]
2981         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
2982         of names for ellipsises.
2984         [BZ #3348]
2985         * malloc/memusage.sh: Cleanups.
2986         * debug/xtrace.sh: Quoting and trap changes.
2988 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
2990         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
2992         * locale/iso-3166.def: Update entry for Serbia.
2993         * locale/iso-4217.def: Define RSD, remove CSD.
2995         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
2996         and 64-bit operations.
2998         [BZ #4040]
2999         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
3000         16-bit operations.
3002         * nscd/nscd.c (parse_opt): One more conversion to use send instead
3003         of writev.
3005 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
3007         [BZ #3991]
3008         * assert/assert.h (assert): Simplify.
3009         (assert_perror): Likewise.
3010         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
3012         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
3013         reqdata.
3015         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
3016         change: don't pass NULL in place of an integer.
3018 2007-02-02  Bruno Haible  <bruno@clisp.org>
3020         [BZ #3954]
3021         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
3022         Add mapping for U+327E.
3023         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
3024         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
3025         mapping of 0xD9 0xE8.
3026         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
3027         mapping of U+327E.
3028         Reported by Jungshik Shin <jungshik@google.com>.
3030         [BZ #3955]
3031         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
3032         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
3033         Reported by Jungshik Shin <jungshik@google.com>.
3035 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
3037         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
3038         byte variants.
3040         [BZ #4040]
3041         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
3042         byte variants.  Patch mostly be tom@tommay.net.
3044 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
3046         [BZ #3996]
3047         * posix/glob.c (attribute_hidden): Define if not defined.
3048         (glob): Unescape dirname, filename or username when needed and not
3049         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
3050         is NULL.  Handle unescaped [ in pattern without closing ].
3051         Don't pass GLOB_CHECK down to recursive glob for directories.
3052         (__glob_pattern_type): New function.
3053         (__glob_pattern_p): Implement using __glob_pattern_type.
3054         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
3055         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
3056         Remove unreachable code.
3057         * posix/globtest.sh: Add a couple of new tests.
3059 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
3061         * po/ru.po: Update from translation team.
3063 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
3065         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
3066         to the list of i486+ CPUs.
3067         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
3069 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
3071         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
3072         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
3073         references.
3075 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
3077         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
3079         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
3080         * resolv/res_mkquery.c: Define __res_nopt.
3081         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
3082         try adding EDNS0 record.
3083         * resolv/res_send.c (send_dg): If request failed with FORMERR and
3084         EDNS0 record was send make sure we don't try it again.
3085         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
3086         * include/resolv.h: Declare __res_nopt.
3088 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
3090         [BZ #3944]
3091         * time/strptime_l.c (__strptime_internal): Set have_mon for
3092         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
3093         have been computed from tm_yday and tm_year.  Don't crash
3094         in day_of_the_week or day_of_the_year if not have_mon
3095         and tm_mon contains bogus value.
3096         * time/Makefile (tests): Add tst-strptime3.
3097         * time/tst-strptime3.c: New test.
3099 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
3101         [BZ #3957]
3102         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
3103         bit for RE_HAT_LISTS_NOT_NEWLINE.
3104         (build_charclass_op): Remove bogus comment.
3105         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
3106         * posix/bug-regex27.c: New test.
3107         * posix/bug-regex28.c: New test.
3109 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
3111         * po/sv.po: Update from translation team.
3113 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
3115         * nscd/nscd_helper.c (open_socket): Minor size optimization.
3117 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
3119         * include/locale.h (__uselocale): Add libc_hidden_proto.
3120         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
3122         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
3123         gettimeofday.
3125 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
3127         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
3128         returning.
3129         (PTR_DEMANGLE): Real definition now that it's not the same as
3130         PRT_MANGLE anymore.
3131         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
3133         * string/strerror_l.c: New file.
3134         * string/Makefile (routines): Add strerror_l.
3135         * string/string.h: Declare strerror_l.
3136         * string/Versions: Export strerror_l for GLIBC_2.6.
3138 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
3140         * nscd/nscd_helper.c (open_socket): Now takes request type and key
3141         as parameter.  Construct request record.  Try sending request
3142         before the first poll use, it usually succeeds.  Adjust all
3143         callers.
3144         * nscd/nscd-client.h: Define MAXKEYLEN.
3145         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
3147 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
3149         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
3150         from return value.
3151         * nscd/nscd_helper.c: Include string.h.
3152         (__nscd_cache_search): Remove const qualifier from return value.
3153         On strict alignment architectures check hash entry and data head
3154         alignment.
3155         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
3156         mmapped data during GC cycle contains garbage.  If
3157         __nscd_drop_map_ref fails, decrement mapped->counter when returning
3158         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
3159         dropped to 0.
3160         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
3161         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
3162         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3163         * nscd/nscd_getai.c (__nscd_getai): Likewise.
3164         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3166 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
3168         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
3170 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
3172         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
3173         names not numbers in cfi_*.
3175 2007-01-26  Andreas Jaeger  <aj@suse.de>
3177         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
3178         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
3179         Correct values of PER_HPUX and PER_OSF4.
3181 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
3183         * elf/dl-minimal.c: Undefine _itoa first.
3184         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
3185         * malloc/mtrace.c: Revert last change.
3186         * posix/wordexp.c: Likewise.
3188 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
3190         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
3191         and __geode__ to the list of i486+ CPUs.
3192         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
3194 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
3196         * stdio-common/_itoa.c: Include <limits.h>.
3197         * stdio-common/_itowa.c: Likewise.
3199 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
3201         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
3202         platforms.
3203         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
3204         64-bit platforms.
3205         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
3206         possible.
3207         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
3208         if possible.
3210         [BZ #3902]
3211         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
3212         * stdio-common/Makefile (tests): Add bug17.
3213         * stdio-common/bug17.c: New file.
3215 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
3217         * iconvdata/brf.c: New file.
3218         * iconvdata/testdata/BRF: New file.
3219         * iconvdata/testdata/BRF..UTF8: New file.
3220         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3221         * iconvdata/Makefile: Add rules to build BRF.
3222         * iconvdata/TESTS: Add BRF entry.
3223         * iconvdata/gconv-modules: Likewise.
3224         * iconvdata/tst-tables.sh: Likewise.
3226 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
3228         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
3229         type `long long int', not `long int'.
3230         (wcstoq): Likewise.
3232 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
3234         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
3235         of values on 64-bit platforms which are too large.
3237 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
3238             Joe Kerian  <jkerian@us.us.ibm.com>
3240         [BZ #2749]
3241         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
3242         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
3243         (__copysignl): Use signbit() for comparison.
3244         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
3245         SET_LDOUBLE_WORDS64.
3247         [BZ #2423, #2749]
3248         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
3249         (__ceill): Remove calls to fegetround(), fesetround().
3250         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
3251         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
3252         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
3254 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
3256         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
3258         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
3260 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
3262         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
3263         demangle pointer.
3264         * csu/libc-start.c: Likewise.
3266 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
3268         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
3269         really work anyway.
3271 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
3273         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
3274         users.
3275         (handle_request): Remove unnecessary tests.
3277         * nscd/cache.c (cache_add): Record the failure to add to the cache.
3279 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
3281         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
3282         workbits in semi-raw fraction.
3284         * math/test-misc.c: Add new tests.
3286 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
3288         * math/basic-test.c: Include test-skeleton.c.
3289         (TEST_TRUNC): Define.
3290         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
3291         (main): Rename to ...
3292         (do_test): ...this.  Run new tests.
3293         (TEST_FUNCTION): Define.
3295 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
3296             Joe Kerian  <jkerian@us.us.ibm.com>
3298         [BZ #2749]
3299         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
3300         handling for high words.
3301         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
3302         and overflow for infinity.
3304 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
3306         * nscd/connections.c (handle_request): Add a __builtin_expect.
3308         * nscd/connections.c (serv2db): Change type into structure which
3309         also says whether this is a request for data.  Renamed to
3310         servinfo.  All users changed.
3311         (handle_request): Much simpler test whether we should search the cache.
3313         * nscd/connections.c (handle_request): Fix thinko in selinux test
3314         invocation.
3316         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
3317         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
3318         it before getting dl_load_lock and then relock.
3319         (_dl_lookup_symbol_x): Pass flags to add_dependency.
3320         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
3321         case we unlocked the scope.
3322         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
3323         _dl_lookup_symbol_x in case we locked the scope.
3324         (_dl_profile_fixup): Likewise.
3325         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
3326         set DL_LOOKUP_SCOPE_LOCK.
3328 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
3330         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
3331         CFLAGS-getsrvbynpt_r.c.
3332         * nscd/getsrvbynm_r.c: New file.
3333         * nscd/getsrvbypt_r.c: New file.
3334         * nscd/nscd_getserv_r.c: New file.
3335         * nscd/servicescache.c: New file.
3336         * nscd/Makefile (routines): Add nscd_getserv_r.
3337         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
3338         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
3339         CFLAGS-getsrvbypt_r.c.
3340         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
3341         table.  Add entries for services database.
3342         * nscd/connections.c (serv2str): Mark as const.  Add entries for
3343         services database.
3344         (dbs): Add .reset_res and servdb initialization.
3345         (serv2db): Add entries for services database.
3346         (verify_persistent_db): Accept dbnr == servdb.
3347         (invalidate_cache): Rewrite database name recognition to use a table.
3348         Call res_init() if .reset_res is set for database.
3349         (handle_request): Add code to handle services database.
3350         * nscd/gai.c: Don't define __getservbyname_r.
3351         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
3352         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
3353         (serv_response_header): Define.
3354         (struct datahead): Add serv_response_header member.
3355         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
3356         using table.
3357         * nscd/nscd.conf: Add entries for services database.
3358         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
3359         Declare serv_iov_disabled.
3360         Declare addservbyname, readdservbyname, addservbyport, and
3361         readdservbyport.
3362         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
3363         (find_db): Fix error message.
3364         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
3365         __nscd_getservbyname_r, and __nscd_getservbyport_r.
3366         * nscd/selinux.c (perms): Add entries for services database.
3367         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
3368         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
3370         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
3371         * nscd/hstcache.c: Likewise.
3372         * nscd/pwdcache.c: Likewise.
3374         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
3375         computation of keylen.
3377         * include/string.h: Only redefine strndupa if this is really for
3378         libc code.
3380 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
3382         * nscd/nscd_gethst_r.c: Minor cleanups.
3384         * nscd/connections.c (handle_request): Check selinux permissions
3385         for all non-admin commands.
3387         * sysdeps/i386/i486/bits/atomic.h: Define
3388         atomic_compare_and_exchange_val_acq,
3389         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
3390         using __sync_* built-ins for gcc >= 4.1.
3391         * sysdeps/x86_64/bits/atomic.h: Likewise.
3393         [BZ #3840]
3394         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
3395         and .oS.d files.
3397 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
3399         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
3400         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
3401         (do_test): Check errno and exit(0) if ENOSYS.
3403 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
3405         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
3406         thousands separators.
3407         * stdlib/Makefile: Add rules to build and run tst-strtod4.
3408         * stdlib/tst-strtod4.c: New test.
3410         [BZ #3855]
3411         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
3412         hexadecimal digit should accept just the initial 0.
3413         * stdlib/tst-strtod2.c (tests): New variable.
3414         (do_test): Run several tests rather than just one.
3416 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
3418         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
3419         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
3421 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
3423         * io/fts.c: Make sure fts_cur is always valid after return from
3424         fts_read.
3425         Patch by Miloslav Trmac <mitr@redhat.com>.
3427 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
3429         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
3430         (R_MIPS_NUM): Bump by 1.
3432 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
3434         * posix/execvp.c: Include alloca.h.
3435         (allocate_scripts_argv): Renamed to...
3436         (scripts_argv): ... this.  Don't allocate buffer here nor count
3437         arguments.
3438         (execvp): Use alloca if possible.
3439         * posix/Makefile: Add rules to build and run tst-vfork3 test.
3440         * posix/tst-vfork3.c: New test.
3442 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
3444         * string/Makefile (tst-strxfrm2-ENV): Define.
3445         * stdlib/Makefile (tst-strtod3-ENV): Define.
3447 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
3449         * posix/getconf.c: Update copyright year.
3450         * nss/getent.c: Likewise.
3451         * iconv/iconvconfig.c: Likewise.
3452         * iconv/iconv_prog.c: Likewise.
3453         * elf/ldconfig.c: Likewise.
3454         * catgets/gencat.c: Likewise.
3455         * csu/version.c: Likewise.
3456         * elf/ldd.bash.in: Likewise.
3457         * elf/sprof.c (print_version): Likewise.
3458         * locale/programs/locale.c: Likewise.
3459         * locale/programs/localedef.c: Likewise.
3460         * nscd/nscd.c (print_version): Likewise.
3461         * debug/xtrace.sh: Likewise.
3462         * malloc/memusage.sh: Likewise.
3463         * malloc/mtrace.pl: Likewise.
3464         * debug/catchsegv.sh: Likewise.
3466 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
3468         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
3469         attempts.
3471 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
3473         * posix/wordexp.c: Remove some unnecessary tests.
3475 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
3477         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
3478         blacklist the group till after we look it up.
3480 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
3482         * include/atomic.h (atomic_forced_read): New macro.
3484 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3486         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
3488 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
3490         * nss/getXXbyYY_r.c: Include atomic.h.
3491         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
3492         add atomic_write_barrier () in between.
3494         * stdlib/Makefile (tests): Add tst-makecontext.
3495         * stdlib/tst-makecontext.c: New test.
3497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
3498         (__makecontext): Don't realign uc_mcontext.uc_regs.
3500 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
3502         * elf/dl-support.c: Include dl-procinfo.h.
3503         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
3504         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
3505         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
3506         Define.
3507         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
3508         hardcoded constants.
3509         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
3510         PPC_PLATFORM_* macros for array designators.
3512 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
3514         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
3515         names to the beginning.
3516         (_dl_powerpc_platforms): Add "power6x".
3517         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
3518         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
3519         (_DL_PLATFORMS_COUNT): Increase.
3520         (_dl_string_platform): Handle power6x case.
3521         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
3522         PPC_FEATURE_POWER6_EXT): Define.
3523         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
3525 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
3527         [BZ #3747]
3528         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
3529         [-2^31 .. 2^31) range.
3530         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
3531         targets.
3532         * stdlib/tst-rand48-2.c: New test.
3533         * stdlib/Makefile (tests): Add tst-rand48-2.
3535 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
3537         * misc/tst-pselect.c (do_test): Fix sigblock argument.
3539 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
3541         * misc/tst-pselect.c (do_test): Make sure the helper process is
3542         terminating when the test is aborted.
3544 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
3546         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
3547         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
3548         Handle relatime mount option.
3550         [BZ #2337]
3551         * libio/Makefile (tests): Add tst-setvbuf1.
3552         * libio/tst-setvbuf1.c: New file.
3554 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
3556         [BZ #2337]
3557         * libio/genops.c (__uflow): Fix a typo.
3558         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
3559         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
3560         the narrow buffer size.
3562 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
3564         [BZ #2337]
3565         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
3566         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
3567         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
3568         in _flags.
3569         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
3570         _IO_wstr_finish): Likewise.
3571         * libio/wmemstream.c (open_wmemstream): Likewise.
3572         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
3573         even for wide streams.
3575 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
3577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
3578         kernel-features.h.
3580 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
3582         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
3583         separators also if no non-zero digits found.
3584         * stdlib/Makefile (tests): Add tst-strtod3.
3586 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
3588         [BZ #3632]
3589         * include/features.h: Fix comment about default value for
3590         _POSIX_C_SOURCE.
3592         [BZ #3664]
3593         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
3594         empty parsed strings.
3595         * stdlib/Makefile (tests): Add tst-strtod2.
3596         * stdlib/tst-strtod2.c: New file.
3598         [BZ #3673]
3599         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
3600         computation.
3601         * stdlib/Makefile (tests): Add tst-atof2.
3602         * stdlib/tst-atof2.c: New file.
3604         [BZ #3674]
3605         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
3606         correctly if removing trailing zero of hex-float.
3607         * stdlib/Makefile (tests): Add tst-atof1.
3608         * stdlib/tst-atof1.c: New file.
3610 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
3612         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
3613         Start searching for next comma at p rather than rest.
3614         * misc/Makefile (tests): Add tst-mntent2.
3615         * misc/tst-mntent2.c: New test.
3617         * misc/getusershell.c (initshells): Check for integer overflows.
3618         Make strings buffer one bigger as fgets always succeeds when second
3619         argument is 1.  Don't use calloc for shells array.  Disallow
3620         / as shell.
3622 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
3624         * malloc/memusage.c: Handle realloc with new size of zero and
3625         non-NULL pointer correctly.
3626         (me): Really write first record twice.
3627         (struct entry): Make format bi-arch safe.
3628         (dest): Write out more realloc statistics.
3629         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
3631 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
3633         * nis/nis_subr.c (nis_getnames): Revert last change.
3635 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
3637         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
3638         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
3639         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
3640         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
3641         ENOTTY.
3642         * io/Makefile: Add rules to build and run tst-ttyname_r test.
3643         * io/tst-ttyname_r.c: New test.
3645 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3647         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
3649 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
3651         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
3652         jump table entries.
3654 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
3656         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
3657         `clone' function to ensure proper unwinding stop of gdb.
3658         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3660 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
3662         * nscd/nscd.init: Remove obsolete and commented-out -S option
3663         handling.
3665 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
3667         [BZ #3514]
3668         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
3670         [BZ #3515]
3671         * manual/string.texi (strtok): Remove duplicate paragraph.
3673 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3675         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
3676         libgcc not supporting `rflags' unwinding (register # >= 17).
3678 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
3680         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
3681         succeeded.
3683 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
3684             Jakub Jelinek  <jakub@redhat.com>
3685             Jan Kratochvil  <jan.kratochvil@redhat.com>
3687         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
3688         unwind information.
3689         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
3690         'restore_rt' even in the 'signal' directory.
3691         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
3693 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
3695         [BZ #3559]
3696         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
3697         malloc crashed.  Don't allocate memory unnecessarily in each
3698         loop.
3700 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
3702         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
3704 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
3706         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
3708 2006-11-18  Bruno Haible  <bruno@clisp.org>
3710         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
3711         __sysconf only after having tried to call getgroups32.
3713 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
3715         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
3716         addresses for IPv4 queries if they can be mapped.
3718 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
3720         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
3721         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
3722         (signmask): Add .size directive.
3723         (othermask): Add .type directive.
3725 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
3727         * po/nl.po: Update from translation team.
3729         * timezone/zdump.c: Redo fix for BZ #3137.
3731 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
3733         * nss/nss_files/files-alias.c (get_next_alias): Set line back
3734         to first_unused after parsing :include: file.
3736 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
3738         * timezone/africa: Update from tzdata2006o.
3739         * timezone/antarctica: Likewise.
3740         * timezone/asia: Likewise.
3741         * timezone/australasia: Likewise.
3742         * timezone/backward: Likewise.
3743         * timezone/europe: Likewise.
3744         * timezone/iso3166.tab: Likewise.
3745         * timezone/northamerica: Likewise.
3746         * timezone/southamerica: Likewise.
3747         * timezone/zone.tab: Likewise.
3749         * time/tzfile.c (__tzfile_read): Extend to handle new file format
3750         on machines with 64-bit time_t.
3752         * timezone/checktab.awk: Update from tzcode2006o.
3753         * timezone/ialloc.c: Likewise.
3754         * timezone/private.h: Likewise.
3755         * timezone/scheck.c: Likewise.
3756         * timezone/tzfile.h: Likewise.
3757         * timezone/tzselect.ksh: Likewise.
3758         * timezone/zdump.c: Likewise.
3759         * timezone/zic.c: Likewise.
3761         [BZ #3483]
3762         * elf/ldconfig.c (main): Call setlocale and textdomain.
3763         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
3765         [BZ #3480]
3766         * manual/argp.texi: Fix typos.
3767         * manual/charset.texi: Likewise.
3768         * manual/errno.texi: Likewise.
3769         * manual/filesys.texi: Likewise.
3770         * manual/lang.texi: Likewise.
3771         * manual/maint.texi: Likewise.
3772         * manual/memory.texi: Likewise.
3773         * manual/message.texi: Likewise.
3774         * manual/resource.texi: Likewise.
3775         * manual/search.texi: Likewise.
3776         * manual/signal.texi: Likewise.
3777         * manual/startup.texi: Likewise.
3778         * manual/stdio.texi: Likewise.
3779         * manual/sysinfo.texi: Likewise.
3780         * manual/syslog.texi: Likewise.
3781         * manual/time.texi: Likewise.
3782         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3784         [BZ #3465]
3785         * sunrpc/clnt_raw.c: Minimal message improvements.
3786         * sunrpc/pm_getmaps.c: Likewise.
3787         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
3788         * nis/nis_print_group_entry.c: Likewise.
3789         * locale/programs/repertoire.c: Likewise.
3790         * locale/programs/charmap.c: Likewise.
3791         * malloc/memusage.sh: Likewise.
3792         * elf/dl-deps.c: Likewise.
3793         * locale/programs/ld-collate.c: Likewise.
3794         * libio/vswprintf.c: Likewise.
3795         * malloc/memusagestat.c: Likewise.
3796         * sunrpc/auth_unix.c: Likewise.
3797         * sunrpc/rpc_main.c: Likewise.
3798         * nscd/cache.c: Likewise.
3799         * locale/programs/repertoire.c: Unify output messages.
3800         * locale/programs/charmap.c: Likewise.
3801         * locale/programs/ld-ctype.c: Likewise.
3802         * locale/programs/ld-monetary.c: Likewise.
3803         * locale/programs/ld-numeric.c: Likewise.
3804         * locale/programs/ld-time.c: Likewise.
3805         * elf/ldconfig.c: Likewise.
3806         * nscd/selinux.c: Likewise.
3807         * elf/cache.c: Likewise.
3808         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
3810         [BZ #3451]
3811         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
3812         change atomic.
3813         (ceil): Likewise.
3815 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
3817         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
3818         if N is one bigger than return value.
3819         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
3820         and l1 last arguments, if buf is defined, verify the return value
3821         equals to strlen (buf) and verify no byte beyond passed length
3822         is modified.
3824 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
3826         * po/sv.po: Update from translation team.
3828 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
3830         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
3831         noinline attribute.
3833 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
3835         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
3836         noinline attribute.
3838         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
3839         Use __new_sys_siglist instead of _sys_siglist_internal as
3840         second macro argument.
3841         (_old_sys_siglist): Use declare_symbol_alias macro instead of
3842         strong_alias.
3844 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
3846         [BZ #3493]
3847         * posix/unistd.h (sysconf): Remove const attribute.
3849         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
3850         temporary or deprecated addresses.
3851         Patch by Sridhar Samudrala <sri@us.ibm.com>.
3853         * string/Makefile (tests): Add tst-strxfrm2.
3854         * string/tst-strxfrm2.c: New file.
3856 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
3858         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
3859         rather than r->r_brk.
3861 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
3863         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
3864         optimization even if needed > n.
3866         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
3867         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
3868         return false, otherwise return true.
3869         (cache_rpath): Return decompose_rpath return value.
3871 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
3873         * include/libc-symbols.h (declare_symbol): Rename to...
3874         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
3875         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
3876         .size directive.
3877         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
3878         changes.
3879         * sysdeps/gnu/siglist.c: Likewise.
3881 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
3883         * sysdeps/powerpc/fpu/bits/mathinline.h
3884         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
3885         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
3887 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
3889         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
3890         Update handling of cache descriptor 0x49 for new models.
3891         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
3892         Likewise.
3894 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
3896         * malloc/memusage.c (dest): Reset not_me back to false after
3897         printing statistics.
3899 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
3901         * configure.in: Work around ld --help change and avoid -z relro
3902         test completely if the architecture doesn't care about security.
3904 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
3906         * po/sv.po: Update from translation team.
3908 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
3910         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
3911         generate compatibility version.
3913 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
3915         * configure.in: Relax -z relro requirement a bit.
3917         * po/sv.po: Update from translation team.
3919 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
3921         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
3922         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
3923         * elf/dl-close.c (_dl_close_worker): Likewise.
3924         * elf/dl-open.c (_dl_open_worker): Likewise.
3925         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
3927 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
3929         * configure.in: Require assembler support for visibility, compiler
3930         support for visibility and aliases, linker support for various -z
3931         options.
3932         * Makeconfig: Remove conditional code which now is unnecessary.
3933         * config.h.in: Likewise.
3934         * config.make.in: Likewise.
3935         * dlfcn/Makefile: Likewise.
3936         * elf/Makefile: Likewise.
3937         * elf/dl-load.c: Likewise.
3938         * elf/rtld.c: Likewise.
3939         * include/libc-symbols.h: Likewise.
3940         * include/stdio.h: Likewise.
3941         * io/Makefile: Likewise.
3942         * io/fstat.c: Likewise.
3943         * io/fstat64.c: Likewise.
3944         * io/fstatat.c: Likewise.
3945         * io/fstatat64.c: Likewise.
3946         * io/lstat.c: Likewise.
3947         * io/lstat64.c: Likewise.
3948         * io/mknod.c: Likewise.
3949         * io/mknodat.c: Likewise.
3950         * io/stat.c: Likewise.
3951         * io/stat64.c: Likewise.
3952         * libio/stdio.c: Likewise.
3953         * nscd/Makefile: Likewise.
3954         * stdlib/Makefile: Likewise.
3955         * stdlib/atexit.c: Likewise.
3956         * sysdeps/generic/ldsodefs.h: Likewise.
3957         * sysdeps/i386/dl-machine.h: Likewise.
3958         * sysdeps/i386/sysdep.h: Likewise.
3959         * sysdeps/i386/i686/memcmp.S: Likewise.
3960         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3961         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
3962         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3964         * Makerules: USE_TLS support is now default.
3965         * tls.make.c: Likewise.
3966         * csu/Versions: Likewise.
3967         * csu/libc-start.c: Likewise.
3968         * csu/libc-tls.c: Likewise.
3969         * csu/version.c: Likewise.
3970         * dlfcn/dlinfo.c: Likewise.
3971         * elf/dl-addr.c: Likewise.
3972         * elf/dl-cache.c: Likewise.
3973         * elf/dl-close.c: Likewise.
3974         * elf/dl-iteratephdr.c: Likewise.
3975         * elf/dl-load.c: Likewise.
3976         * elf/dl-lookup.c: Likewise.
3977         * elf/dl-object.c: Likewise.
3978         * elf/dl-open.c: Likewise.
3979         * elf/dl-reloc.c: Likewise.
3980         * elf/dl-support.c: Likewise.
3981         * elf/dl-sym.c: Likewise.
3982         * elf/dl-sysdep.c: Likewise.
3983         * elf/dl-tls.c: Likewise.
3984         * elf/ldconfig.c: Likewise.
3985         * elf/rtld.c: Likewise.
3986         * elf/tst-tls-dlinfo.c: Likewise.
3987         * elf/tst-tls1.c: Likewise.
3988         * elf/tst-tls10.h: Likewise.
3989         * elf/tst-tls14.c: Likewise.
3990         * elf/tst-tls2.c: Likewise.
3991         * elf/tst-tls3.c: Likewise.
3992         * elf/tst-tls4.c: Likewise.
3993         * elf/tst-tls5.c: Likewise.
3994         * elf/tst-tls6.c: Likewise.
3995         * elf/tst-tls7.c: Likewise.
3996         * elf/tst-tls8.c: Likewise.
3997         * elf/tst-tls9.c: Likewise.
3998         * elf/tst-tlsmod1.c: Likewise.
3999         * elf/tst-tlsmod13.c: Likewise.
4000         * elf/tst-tlsmod13a.c: Likewise.
4001         * elf/tst-tlsmod14a.c: Likewise.
4002         * elf/tst-tlsmod2.c: Likewise.
4003         * elf/tst-tlsmod3.c: Likewise.
4004         * elf/tst-tlsmod4.c: Likewise.
4005         * elf/tst-tlsmod5.c: Likewise.
4006         * elf/tst-tlsmod6.c: Likewise.
4007         * include/errno.h: Likewise.
4008         * include/link.h: Likewise.
4009         * include/tls.h: Likewise.
4010         * locale/global-locale.c: Likewise.
4011         * locale/localeinfo.h: Likewise.
4012         * malloc/arena.c: Likewise.
4013         * malloc/hooks.c: Likewise.
4014         * malloc/malloc.c: Likewise.
4015         * resolv/Versions: Likewise.
4016         * sysdeps/alpha/dl-machine.h: Likewise.
4017         * sysdeps/alpha/libc-tls.c: Likewise.
4018         * sysdeps/generic/ldsodefs.h: Likewise.
4019         * sysdeps/generic/tls.h: Likewise.
4020         * sysdeps/i386/dl-machine.h: Likewise.
4021         * sysdeps/ia64/dl-machine.h: Likewise.
4022         * sysdeps/ia64/libc-tls.c: Likewise.
4023         * sysdeps/mach/hurd/fork.c: Likewise.
4024         * sysdeps/mach/hurd/i386/tls.h: Likewise.
4025         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
4026         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
4027         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
4028         * sysdeps/s390/libc-tls.c: Likewise.
4029         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4030         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4031         * sysdeps/sh/dl-machine.h: Likewise.
4032         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4033         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4034         * sysdeps/x86_64/dl-machine.h: Likewise.
4036         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
4037         split out locking and parameter checking.
4038         (_dl_close): Call _dl_close_worker after locking and checking.
4039         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
4040         _dl_close.
4041         * elf/Makefile: Add rules to build and run tst-thrlock.
4042         * elf/tst-thrlock.c:  New file.
4044         [BZ #3426]
4045         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
4046         reality.
4048         [BZ #3429]
4049         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
4050         we are sure we do not need it anymore for _dl_close.  Also move
4051         the asserts inside the lock region.
4052         Patch mostly by Suzuki <suzuki@in.ibm.com>.
4054 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
4056         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
4057         argument.
4058         (_dl_lookup_symbol_x): Adjust caller.
4060         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
4061         _ns_global_scope.
4062         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
4064         * elf/dl-libc.c: Revert l_scope name changes.
4065         * elf/dl-load.c: Likewise.
4066         * elf/dl-object.c: Likewise.
4067         * elf/rtld.c: Likewise.
4068         * elf/dl-close.c (_dl_close): Likewise.
4069         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
4070         always use __rtld_mrlock_{change,done}.  Always free old scope list
4071         here if not l_scope_mem.
4072         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
4073         change.  Never free scope list here.  Just __rtld_mrlock_lock before
4074         the lookup and __rtld_mrlock_unlock it after the lookup.
4075         * elf/dl-sym.c: Likewise.
4076         * include/link.h (struct r_scoperec): Remove.
4077         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
4078         with l_scope_mem and l_scoperec_lock with l_scope_lock.
4080 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
4082         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
4084 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
4086         * configure.in: Disable building profile libraries by default.
4088 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
4090         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
4091         as signed longs, check for x_base + pos overflow.
4092         * sunrpc/Makefile (tests): Add tst-xdrmem2.
4093         * sunrpc/tst-xdrmem2.c: New test.
4095 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
4097         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
4098         _dl_lookup_symbol_x code.
4100 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
4102         * elf/dl-runtime.c: Include sysdep-cancel.h.
4103         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
4104         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
4105         instead of catomic_* macros.
4106         * elf/dl-sym.c: Include sysdep-cancel.h.
4107         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
4108         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
4109         * elf/dl-close.c: Include sysdep-cancel.h.
4110         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
4111         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
4112         * elf/dl-open.c: Include sysdep-cancel.h.
4113         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
4114         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
4116 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
4118         [BZ #3313]
4119         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
4120         fastbin rather than end of fastbin array.
4122 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
4124         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
4125         body macro.
4126         * sysdeps/x86_64/bits/atomic.h
4127         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
4128         (catomic_decrement): Use correct body macro.
4130 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
4132         * include/atomic.h: Add a unique prefix to all local variables
4133         in macros.
4134         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
4136 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
4138         [BZ #3369]
4139         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
4140         and 7.
4142 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
4144         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
4146 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
4148         [BZ #3313]
4149         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
4150         determine highest fast bin to consolidate, always look into all of
4151         them.
4152         (do_check_malloc_state): Only require for empty bins for large
4153         sizes in main arena.
4155         * libio/stdio.h: Add more __wur attributes.
4157         * elf/dl-minimal.c (realloc): Optimize last patch.
4159 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
4161         [BZ #3352]
4162         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
4163         and use memcpy() if it does.
4165 2006-11-12  Andreas Jaeger  <aj@suse.de>
4167         [BZ #2510]
4168         * manual/search.texi (Hash Search Function): Clarify.
4169         (Array Search Function): Clarify.
4171 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
4173         [BZ #2830]
4174         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
4175         shifting.
4176         * math/atest-exp2.c (read_mpn_hex): Likewise.
4177         * math/atest-sincos.c (main): Likewise.
4179 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
4181         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
4182         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
4183         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
4184         version GLIBC_2.6.
4185         * Versions.def: Add GLIBC_2.6 for libc.
4187         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
4189         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
4191 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
4193         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
4195         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
4197         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
4198         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
4200 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
4202         * include/atomic.c: Define catomic_* operations.
4203         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
4204         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
4205         * malloc/memusage.c: Likewise.
4206         * gmon/mcount.c: Likewise.
4207         * elf/dl-close.c: Likewise.
4208         * elf/dl-open.c: Likewise.
4209         * elf/dl-profile.c: Likewise.
4210         * elf/dl-sym.c: Likewise.
4211         * elf/dl-runtime.c: Likewise.
4212         * elf/dl-fptr.c: Likewise.
4213         * resolv/res_libc.c: Likewise.
4215 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
4217         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
4218         components which lack them.
4220         * nis/nis_subr.c (nis_getnames): Make sure that we always return
4221         at least one entry consisting of the parameter concatenated with
4222         the domain.
4224 2006-10-10  Roland McGrath  <roland@frob.com>
4226         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
4227         * sysdeps/mach/hurd/futimes.c: Likewise.
4228         * sysdeps/mach/hurd/lutimes.c: Likewise.
4230 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
4231             Jakub Jelinek  <jakub@redhat.com>
4233         Implement reference counting of scope records.
4234         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
4235         from the list in objects which remain.  Always allocate new scope
4236         record.
4237         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
4238         don't resize, allocate a new one.
4239         * elf/dl-runtime.c: Update reference counters before using a scope
4240         array.
4241         * elf/dl-sym.c: Likewise.
4242         * elf/dl-libc.c: Adjust for l_scope name change.
4243         * elf/dl-load.c: Likewise.
4244         * elf/dl-object.c: Likewise.
4245         * elf/rtld.c: Likewise.
4246         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
4247         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
4248         Add l_scoperec_lock.
4249         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
4250         * sysdeps/generic/rtld-lowlevel.h: New file.
4252         * include/atomic.h: Rename atomic_and to atomic_and_val and
4253         atomic_or to atomic_or_val.  Define new macros atomic_and and
4254         atomic_or which do not return values.
4255         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
4256         Various cleanups.
4257         * sysdeps/i386/i486/bits/atomic.h: Likewise.
4259         * po/sv.po: Update from translation team.
4261 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
4263         * Versions.def: Add GLIBC_2.6 to libpthread.
4265         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
4266         (versioned_symbol): Likewise.
4267         (compat_symbol): Likewise.
4269         * po/tr.po: Update from translation team.
4271 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
4273         * nis/Banner: Removed.  It's been integral part forever and the
4274         author info is incomplete anyway.
4275         * libio/Banner: Likewise.
4277         * nis/nis_table.c (nis_list): If __follow_path fails in the new
4278         code, make sure the nis_freeresult call doesn't crash and that the
4279         result is reported correctly.
4281 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
4283         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
4284         when callback is NULL.
4286         * nis/Versions (libnss_nisplus): Add
4287         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
4288         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
4289         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
4290         _nss_create_tablename): Rename to...
4291         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
4292         ... these.  No longer static.
4293         (internal_setgrent): Adjust users.
4294         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
4295         Don't use locking around _nss_grp_create_tablename call.
4296         * nis/nss_nisplus/nisplus-initgroups.c: New file.
4298 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
4300         * version.h (VERSION): Bump to 2.5.90 for new development tree.
4302 2006-10-06  Andreas Jaeger  <aj@suse.de>
4304         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
4306 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
4308         * po/pl.po: Update from translation team.
4310         * nscd/nscd.c (main): Fix typo in message.
4311         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
4313 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
4315         [BZ #3291]
4316         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
4317         errno.h, signal.h, unistd.h and sysdep-cancel.h.
4318         (__sigprocmask): Define.
4320 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
4322         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
4323         used.
4325 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
4327         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
4328         in oldtotal and newtotal calculation.
4329         * nscd/nscd-client.h (struct mapped_database): Add datasize
4330         field.
4331         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
4332         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
4333         increased.
4334         (__nscd_cache_search): Add checks to make sure we never reference
4335         data beyond the current mapping.
4337 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
4339         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
4340         variables const to avoid compiler warnings.
4342         * io/fts.c (fts_close): Remove redundant checks.
4343         (fts_build): Likewise.
4344         (fts_palloc): Likewise.
4346         * manual/message.texi (Advanced gettext functions,
4347         Using gettextized software): Fix typos.
4349 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
4351         * posix/glob.c (glob_in_dir): Add some comments and asserts to
4352         explain why there are no leaks.
4354 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
4356         * libio/wmemstream.c: Include <wchar.h>.
4357         * libio/bug-wmemstream1.c: Likewise.
4358         * libio/tst-wmemstream1.c: Likewise.
4359         * libio/tst-wmemstream2.c: Likewise.
4361         * version.h (RELEASE): Bump to 2.5.
4362         * README: Regenerated.
4364         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
4366         [BZ #3273]
4367         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
4368         found no group members.
4369         Patch by Petr Baudis.
4371 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
4373         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
4374         assert bootstrap_map.l_tls_modid is zero.
4375         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
4376         if USE___THREAD.
4378 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
4380         * libio/stdio.h: Move open_wmemstream prototype to ...
4381         * wcsmbs/wchar.h: ... here.
4383 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
4385         [BZ #3252]
4386         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
4387         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
4388         __{,l}chown to handle the rest.
4389         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
4390         fchownat syscall and __ASSUME_32BITUIDS case inline, call
4391         __{,l}chown to handle the rest.
4392         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
4393         i386/fchownat.c.
4394         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
4395         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
4397         [BZ #3253]
4398         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
4399         time, rather allocate increasingly bigger arrays of pointers, if
4400         possible with alloca, if too large with malloc.
4402 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
4404         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
4406         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
4408 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
4410         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
4411         home addresses.
4412         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
4413         IFA_F_HOMEADDRESS flag for interfaces.
4414         * include/ifaddrs.h (struct in6addrinfo): Define
4415         in6ai_homeaddress.
4417 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
4419         [BZ #3225]
4420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
4421         PTR_DEMANGLE3): Define.
4422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
4423         PTR_DEMANGLE3): Likewise.
4424         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
4425         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
4426         Likewise.
4427         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
4429 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
4431         * po/libc.pot: Regenerated.
4432         * po/be.po: Updated.
4433         * po/ca.po: Likewise.
4434         * po/cs.po: Likewise.
4435         * po/da.po: Likewise.
4436         * po/de.po: Likewise.
4437         * po/el.po: Likewise.
4438         * po/en_GB.po: Likewise.
4439         * po/es.po: Likewise.
4440         * po/fi.po: Likewise.
4441         * po/fr.po: Likewise.
4442         * po/gl.po: Likewise.
4443         * po/hr.po: Likewise.
4444         * po/hu.po: Likewise.
4445         * po/ja.po: Likewise.
4446         * po/ko.po: Likewise.
4447         * po/nb.po: Likewise.
4448         * po/nl.po: Likewise.
4449         * po/pl.po: Likewise.
4450         * po/pt_BR.po: Likewise.
4451         * po/ru.po: Likewise.
4452         * po/rw.po: Likewise.
4453         * po/sk.po: Likewise.
4454         * po/sv.po: Likewise.
4455         * po/tr.po: Likewise.
4456         * po/zh_CN.po: Likewise.
4457         * po/zh_TW.po: Likewise.
4459         [BZ #3137]
4460         * iconv/iconv_prog.c (main): Fix spelling in error message.
4461         * iconv/iconvconfig.c (main): Likewise.
4462         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
4463         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
4464         * locale/programs/localedef.c (main): Likewise.
4465         * locale/programs/repertoire.c (repertoire_read): Likewise.
4466         * timezone/zdump.c (main): Likewise.
4467         * nscd/connections.c (handle_request): Fix spelling in log message.
4468         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
4470 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
4472         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
4473         interfaces.
4475 2006-09-20  Andreas Jaeger  <aj@suse.de>
4477         * math/libm-test.inc (lrint_test_upward): Fix typo.
4479 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
4481         [BZ #2592]
4482         * math/libm-test.inc (lrint_test_tonearest): New function.
4483         (lrint_test_towardzero): New function.
4484         (lrint_test_downward): New function.
4485         (lrint_test_upward): New function.
4486         (main): Run these new tests.
4487         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
4488         of values near to 0.
4489         (two52): Use double not long double.
4490         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
4491         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
4492         (two23): Use float not double.
4493         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
4494         (two23): Use float not double.
4495         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
4496         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
4497         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
4498         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
4500 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4502         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
4503         Cast sp to unsigned long to avoid compiler warning.
4504         Use __makecontext_ret function instead of a trampoline on the stack.
4505         (__makecontext_ret): New function.
4506         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
4508 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
4510         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
4511         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
4512         bits.
4514 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
4516         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
4517         sure no reference to the unloaded map's search list remains in the
4518         dependency's scope.
4520 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
4522         * elf/Makefile: Add rules to build and run unload7 test.
4523         * elf/unload7.c: New test.
4524         * elf/unload7mod1.c: New file.
4525         * elf/unload7mod2.c: New file.
4527 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
4529         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
4530         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
4531         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
4532         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
4533         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
4534         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
4535         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
4536         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
4537         PTRACE_GETEVENTMSG): Likewise.
4538         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
4539         values.
4541 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
4543         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
4544         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
4545         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
4546         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
4548 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
4550         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
4551         write '\0' to the fd.
4552         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
4553         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
4554         Change regs to unsigned long pointer from unsigned int, fix fscr
4555         offset.
4557 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
4559         * io/Makefile (CFLAGS-fstatat.c): Set.
4560         (CFLAGS-fstatat64.c): Likewise.
4561         (CFLAGS-mknodat.c): Likewise.
4563         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
4564         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
4565         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
4566         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
4568 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
4569             Steven Munroe  <sjmunroe@us.ibm.com>
4571         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
4572         names to the beginning.  Rename "cell" to "cellbe".
4573         (_dl_powerpc_platforms): New.
4574         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
4575         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
4576         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
4577         (_DL_HWCAP_PLATFORM): Define to new mask.
4578         (_dl_platform_string, _dl_string_platform): New functions.
4579         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
4580         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
4582 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
4584         [BZ #2526]
4585         * README.libm: Fix a thinko in sqrt algorithm description.
4587         [BZ #3143]
4588         * manual/string.texi (argz_delete): Fix prototype.
4589         Patch by <alpt@freaknet.org>.
4591 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
4593         [BZ #3138]
4594         * io/test-lfs.c (do_prepare): Give name_len type size_t.
4595         * io/tst-fcntl.c (do_prepare): Likewise.
4596         * posix/tst-exec.c (do_prepare): Likewise.
4597         * posix/tst-preadwrite.c (do_prepare): Likewise.
4598         * posix/tst-spawn.c (do_prepare): Likewise.
4599         * posix/tst-truncate.c (do_prepare): Likewise.
4600         * rt/tst-aio.c (do_prepare): Likewise.
4601         * rt/tst-aio64.c (do_prepare): Likewise.
4602         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
4603         size_t.
4605 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
4607         [BZ #2821]
4608         * time/mktime.c (guess_time_tm): Fix overflow detection.
4609         * time/Makefile (tests): Add bug-mktime1.
4610         * time/bug-mktime1.c: New file.
4612         [BZ #3189, #3188]
4613         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
4614         (mremap): Likewise.
4616 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
4618         [BZ #1006]
4619         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
4620         Ensure relocation doesn't clobber any bits outside of the
4621         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
4622         R_SPARC_HI22 and R_SPARC_H44.
4624         [BZ #2775]
4625         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
4626         (long) (MINSIZE + nb - old_size) is positive.
4628         * malloc/arena.c (grow_heap): When growing bail even if new_size
4629         is negative.
4631         [BZ #3155]
4632         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
4633         stack below r1.
4635 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
4637         * posix/regex_internal.c (re_string_reconstruct): Handle
4638         offset < pstr->valid_raw_len && pstr->offsets_needed case.
4639         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
4640         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
4641         re_string_context_at.
4642         * posix/Makefile: Add rules to build and run bug-regex26 test.
4643         * posix/bug-regex26.c: New test.
4645         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
4646         rather than col_sym_free.  Move seqp declaration earlier.
4648         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
4650 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
4652         * nscd/initgrcache.c (addinitgroupsX): Move any_success
4653         decl before first goto out.
4655 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
4657         * Makerules (shlib.lds): If have-hash-style, put .hash section
4658         at the end of the RO segment.
4660 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
4662         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
4663         style hash table format is used.
4665 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
4667         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
4668         randomization rather than before.
4669         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
4671 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
4673         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
4675         * malloc/malloc.c (_int_malloc): Use full list insert and not
4676         shortcut which assumes the list is empty for large requests
4677         too.
4679         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
4681 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
4683         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
4684         and offout arguments to the prototype.
4685         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
4686         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
4687         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
4688         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
4689         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
4690         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
4691         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
4692         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
4694 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
4696         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
4698         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
4699         dlopen parameters.
4701 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
4703         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
4704         only if herrno is NETDB_INTERNAL.  Handle errors other than
4705         ERANGE outside of the loops, handle TRY_AGAIN.
4707         * locale/programs/ld-ctype.c (translit_flatten): Issue error
4708         if other's ctype category was missing.
4709         * locale/programs/ld-collate.c (collate_read): Return if
4710         copy_locale's collate category is missing.
4712 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
4714         [BZ #2684]
4715         * malloc/malloc.c (public_rEALLOc): Try harder by using other
4716         arenas if allocation failed.
4717         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
4719 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
4721         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
4722         waste bins[0..1].
4723         (malloc_state): Reduce bins size by 2.
4724         (_int_malloc): Fix test for large enough buffer for early termination.
4725         When no unsorted block matches perfectly and an exiting block has
4726         to be split, use full list insert and not shortcut which assumes
4727         the list is empty.
4729         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
4730         failure.
4732 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
4734         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
4735         do anything.
4737         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
4738         symbol require exact match (these are PLTs).
4739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
4740         (_dl_ppc64_addr_sym_match): Likewise.
4742         [BZ #2683]
4743         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
4744         If symbol has a value use it.
4745         * elf/tst-dladdr1.c: New file.
4746         * elf/Makefile: Add rules to build and run tst-addr1.
4748 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
4750         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
4751         keeps failing and heap growth or new heap creation isn't
4752         successful either.
4753         * malloc/tst-malloc.c (main): Add new tests.
4755 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
4757         [BZ #2734]
4758         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
4759         as in the x86-64 code to use bswap.
4761 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
4763         [BZ #2680]
4764         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
4765         __USE_UNIX98.
4766         * posix/bits/unistd.h: Likewise.
4768 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
4770         [BZ #2751]
4771         * string/strchr.c: Add cast to avoid warning.
4773 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
4775         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
4776         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
4777         limit is needed to avoid the exploding of the address space
4778         requirement for secondary heaps.
4779         * malloc/arena.c (HEAP_MAX_SIZE): Define using
4780         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
4782 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
4784         [BZ #3018]
4785         * Makerules (depfiles): Handle extra-test-objs the same as
4786         extra-objs.
4787         (common-mostlyclean): Likewise.
4788         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
4789         instead.
4790         * elf/Makefile (extra-objs): Likewise.
4791         * stdlib/Makefile (extra-objs): Likewise.
4793 2006-08-14  Eric Blake  <ebb9@byu.net>
4795         [BZ #3044]
4796         * misc/error.h: Assume C89 or better.
4797         * misc/error.c: Likewise.
4799 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
4801         [BZ #3040]
4802         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
4803         __ASSUME_ATFCTS is defined.
4805 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
4807         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
4808         to sort in each call.
4810         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
4811         is empty simply return and use next service.
4812         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
4814         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
4815         tells us when not finding a charmap file is an error.
4816         * locale/programs/charmap.h: Adjust charmap_read prototype.
4817         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
4818         cannot find a charmap.
4819         * locale/programs/localedef.c (main): Adjust charmap_read call.
4821 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
4823         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
4824         sysdeps/posix/pause.c implementation instead.
4826 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
4828         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
4829         to EPERM.
4831 2006-08-13  Andreas Schwab  <schwab@suse.de>
4833         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
4834         Don't clobber caller's LRSAVE.
4835         (_dl_prof_resolve): Likewise.
4837 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
4839         [BZ #1996]
4840         * libio/memstream.c (open_memstream): Allocate initial buffer with
4841         calloc.
4842         * libio/wmemstream.c (open_wmemstream): Likewise.
4843         * libio/strops.c: Pretty printing.
4844         (_IO_str_overflow): Clear uninitialized part of the new buffer.
4845         (enlarge_userbuf): New function.
4846         (_IO_str_seekoff): Call it if seek position is larger than current
4847         buffer.
4848         * libio/wstrops.c: Likewise.
4849         * libio/vasprintf.c: Add comment as to why we do not have to use
4850         calloc instead of malloc to allocate initial buffer.
4851         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
4852         * libio/bug-memstream1.c: New file.
4853         * libio/bug-wmemstream1.c: New file.
4855 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
4857         * libio/wstrops.c: Remove dead macro definitions and comments.
4858         * libio/strops.c: Likewise.
4860         [BZ #2764]
4861         * login/utmpname.c (__utmpname): Remove unnecessary test.
4863 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
4865         [BZ #2832]
4866         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
4867         0s from integers.
4869 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
4871         [BZ #2987]
4872         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
4873         for CPU clocks.
4874         * sysdeps/unix/clock_settime.c: Add support for platform-specific
4875         setting of CPU clocks.
4877 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4879         [BZ #2841]
4880         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
4881         since C99 requires the result to promote to 'int' when uint_least8_t
4882         and uint_least16_t promote to 'int'.
4884 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
4886         [BZ #3013]
4887         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
4888         lenght of one output field, correct bitmask creation.
4889         * locale/programs/ld-time.c: Add alignment.
4891         [BZ #2997]
4892         * misc/error.c: Add space between program name and message if file
4893         name is missing.
4895 2006-08-03  Eric Blake  <ebb9@byu.net>
4897         [BZ #2998]
4898         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
4900 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
4902         * malloc/memusagestat.c: Silence warnings.
4904         * malloc/malloc.c: Dynamically size mmap treshold if the program
4905         frees mmaped blocks.
4906         Patch by Valerie Henson and Arjan van de Ven.
4908 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
4910         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
4911         __USE_GNU.
4913         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
4914         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
4915         (DEF): Don't put the var into .gnu.linkonce.r.* section.
4916         Only provide var definitions in strtol_l (or for *ull*
4917         in strtoll_l).
4919         * stdio-common/bug16.c (tests): New array.
4920         (do_tests): Allow the first hexadecimal digit
4921         to be 1, 2, 4 or 8.  Do 3 additional tests.
4923         * sysdeps/s390/fpu/libm-test-ulps: Update.
4925         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
4926         fchownat syscall if available.
4927         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
4928         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
4929         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
4931 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
4933         * nis/nis_xdr.c: Avoid some function calls.
4935 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
4936             Ulrich Drepper  <drepper@redhat.com>
4938         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
4939         short cut if only one name component is stripped away.
4941 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
4943         * nis/nis_call.c: Minor cleanups throughout.
4944         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
4945         (first_shoot): Add search_parent_first parameter.  Only if it is set
4946         search parent server first.
4947         If directory for table found through cold start cache is not the same
4948         as referenced in the cache, don't use it.
4949         (__nisfind_server): Take additional parameter.  Pass it on to
4950         first_shoot.
4951         (__prepare_niscall): Adjust __nisfind_server call.
4952         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
4953         * nis/nis_table.c: Adjust __nisfind_server call.
4954         * nis/nis_lookup.c: Likewise.
4955         (nis_lookup): Don't loop endlessly if name is reduced to ".".
4957 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
4959         [BZ #2182]
4960         * math/s_cacosh.c: Return values from positive branch.
4961         * math/s_cacoshf.c: Likewise.
4962         * math/s_cacoshl.c: Likewise.
4964         [BZ #2883]
4965         * sysvipc/sys/msg.h: Change return value to ssize_t.
4966         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
4967         * sysvipc/msgrcv.c: Likewise.
4968         * include/sys/msg.h: Likewise.
4970         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
4971         test introduced in patch for bz #661.
4972         (getgrouplist): Simplify code a bit.  Don't allocate one additional
4973         element for NEWGROUPS.
4975         [BZ #2908]
4976         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
4977         'f', use '1' as leading digit not '\1'.
4978         * stdio-common/Makefile (tests): Add bug16.
4979         * stdio-common/bug16.c: New file.
4981         [BZ #2914]
4982         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
4983         and don't try to open it.  The patch introducing the macro
4984         contained a bug and used the same file name as the new file
4985         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
4986         this out completely.
4988         [BZ #2926]
4989         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
4990         Patch by Jerry James <Jerry.James@usu.edu>.
4992         * rt/Makefile (tests): Add tst-clock2.
4993         * rt/tst-clock2.c: New file.
4995         [BZ #2978]
4996         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
4997         function and its parameters and pass it to new thread.
4998         (__gai_notify): Add support for alternative waiting for completion.
4999         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
5000         waiting for completion.
5001         * resolv/getaddrinfo_a.c: Likewise.
5002         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
5003         waiting for completion is used.
5004         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
5005         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
5006         * resolv/gai_error.c: Likewise.
5007         * resolv/gai_sigqueue.c: Likewise.
5009 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
5011         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
5012         errno to EBADF and return MACH_PORT_NULL.
5014 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
5016         [BZ #2980]
5017         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
5019 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
5021         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
5022         walk them instead of the symbol table.
5024 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
5026         [BZ #2098]
5027         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
5028         status of NSS calls, not the number of returned entries.
5030         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
5031         request_key, keyctl.
5033 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
5035         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
5037 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
5039         * elf/tst-auditmod1.c: Fix typo in #error.
5041 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
5043         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
5045         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
5047 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
5049         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
5050         that the directory is empty even on non-POSIX filesystems.
5052 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
5054         * elf/dl-open.c (dl_open_worker): Add branch prediction.
5056         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
5057         the backend NSS module.  If backend setgrent call failed, don't have
5058         internal_setgrent fail.  Just remember this until it is needed.
5059         * nis/nss_compat/compat-pwd.c: Likewise.
5060         * nis/nss_compat/compat-spwd.c: Likewise.
5062 2006-07-30  Roland McGrath  <roland@redhat.com>
5064         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
5065         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
5066         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
5067         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
5069         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
5070         (nanosleep_not_cancel): New macro.
5071         (sigsuspend_not_cancel): new macro.
5072         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
5073         (do_sigsuspend): Define as inline.
5074         (__sigsuspend): Always use do_sigsuspend.
5075         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
5076         * include/signal.h: Declare __sigsuspend_nocancel.
5077         * sysdeps/posix/pause.c
5078         [! NO_CANCELLATION] (__pause_nocancel): New function.
5080         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
5081         * include/time.h (__nanosleep_nocancel): Likewise.
5083 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
5085         * locale/programs/localedef.c (add_to_readlist): Rename local
5086         variables to avoid confusion.
5088         * locale/programs/charmap.c (charmap_read): Emit error message if
5089         charmap couldn't be found or read.
5091 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
5093         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5094         __ASSUME_FUTEX_LOCK_PI.
5095         * include/time.h: Declare __nanosleep_nocancel.
5096         * include/unistd.h: Declare __pause_nocancel.
5098         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
5099         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
5100         get the __stack_chk_fail_local definition when it's needed.
5102 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
5104         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
5105         * dlfcn/bug-atexit3.c: New file.
5106         * dlfcn/bug-atexit3-lib.cc: New file.
5108         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
5109         used when the namespace is not the base namespace.
5111 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
5113         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
5114         (__new_exitfn): Bump it in every successful call.
5115         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
5116         more exit handlers, call them right away.
5117         * stdlib/exit.h: Declare __new_exitfn_called.
5119 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
5121         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
5122         calling registered handler.
5124         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
5125         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5126         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5127         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
5128         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5129         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5130         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5131         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5133 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
5135         * elf/dl-lookup.c (dl_new_hash): New functions.
5136         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
5137         value here.  Compute new-style hash value.  Pass new hash value
5138         and reference to variable with the old value to do_lookup_x.
5139         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
5140         old-style hash table.
5141         (_dl_debug_bindings): Pass new hash value and reference to variable
5142         with the old value to do_lookup_x.
5143         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
5144         new-style hash value and change old-style hash value parameter to
5145         be a reference.  Reoganize functions to determine whether
5146         new-style hash table is available.  Only fall back on old-style
5147         table.  If old-style hash value is needed, compute it here.
5148         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
5149         entry.
5150         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
5151         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
5152         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
5153         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
5154         * Makeconfig: If linker supports --hash-style option add it to all
5155         linker command lines to build DSOs.
5156         * config.make.in: Define have-hash-style.
5157         * configure.in: Test whether linker supports --hash-style option.
5159         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
5160         * sysdeps/generic/ldsodefs.h: Adjust prototype.
5162 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
5164         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
5165         auditing.
5167         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
5168         RPATH of main map twice.
5170 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
5172         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
5173         look further, return original strings.
5174         (_nl_find_msg): Do not return found translation if the conversion
5175         failed.  Either signal the string is unusable or that something went
5176         wrong and the original should be used.
5178 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
5180         * string/_strerror.c (__strerror_r): Add __builtin_expect.
5182 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
5184         [BZ #2766]
5185         * misc/insremque.c (insque): Handle prev == NULL.
5186         * misc/Makefile (tests): Add tst-insremque.
5187         * misc/tst-insremque.c: New test.
5189 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
5191         [BZ #2792]
5192         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
5193         conflict with DL_DST_REQUIRED.
5195 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
5197         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
5198         match what Solaris does.
5200 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
5202         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
5203         local_setegid instead of seteuid and setegid.
5204         * sysdeps/generic/local-setxid.h: New file.
5205         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
5207         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
5209         * string/Makefile (tests): Add bug-envz1.
5210         * string/bug-envz1.c: New file.
5212 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
5214         * posix/regex_internal.c (re_string_skip_chars): If no character has
5215         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
5216         to the byte which couldn't be converted.
5217         (re_string_reconstruct): Don't clear valid_raw_len before calling
5218         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
5219         tip_context using re_string_context_at.
5220         * posix/Makefile: Add rules to build and run bug-regex25 test.
5221         * posix/bug-regex25.c: New test.
5223 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
5225         [BZ #2703]
5226         * string/envz.c (envz_strip): Correct erroneously reversed src
5227         and dest parameters to memmove() invocation.
5229 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
5231         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
5232         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
5233         to make sure the database has been already invalidated.
5234         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
5235         after the cache has been invalidated.  Use pthread_mutex_lock rather
5236         than pthread_mutex_trylock if fd != -1.
5237         * nscd/connections.c (invalidate_cache): Add fd argument, write
5238         response to fd if not calling prune_cache, pass fd to prune_cache.
5239         (handle_request): Adjust invalidate_cache caller.
5240         (nscd_run): Pass -1 as fd to prune_cache.
5242 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
5244         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
5245         the correct place.
5247 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
5249         * nscd/nscd.h (struct database_dyn): Add prunelock field.
5250         * nscd/cache.c (prune_cache): Take prunelock before starting the
5251         work.  Just return in case it is already taken.
5252         * nscd/connections.c (dbs): Initialize .prunelock.
5254 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
5256         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
5257         copying.  No need to allocate new array for group members.  Just
5258         move the pointers and update the size.
5260         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
5261         Avoid memory leak in case realloc fails.  Simplification for
5262         better code generation.
5264         Avoid deprecation warning because of libc_hidden_proto for
5265         inet6_option_alloc.
5266         * inet/inet6_option.c (option_alloc): Renamed from
5267         inet6_option_alloc.  Made static.
5268         (inet6_option_alloc): Now a simple wrapper around option_alloc.
5269         (inet6_option_append): Call option_alloc.
5270         * include/netinet/in.h: Remove libc_hidden_proto for
5271         inet6_option_alloc.
5273         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
5274         for cleanup when cb!=NULL [Coverity CID 233].
5276 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
5278         [BZ #2693]
5279         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
5280         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
5281         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
5282         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
5283         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
5284         and inet6_rth_getaddr.
5285         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
5286         array.
5287         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
5288         Mark inet6_option_* interfaces as deprecated.
5289         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
5290         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
5291         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
5292         inet6_rth_segments, and inet6_rth_getaddr.
5293         * inet/inet6_opt.c: New file.
5294         * inet/inet6_rth.c: New file.
5296         * inet/netinet/icmp6.h: Pretty printing.
5298         [BZ #2683]
5299         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
5301 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
5303         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
5304         doing it all here.  When server does not know the answer do not
5305         fail immediate, try parent first.
5307         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
5308         overflow test.
5310 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
5312         * nis/nis_call.c (__prepare_niscall): New function.  Split out
5313         from __do_niscall.
5314         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
5315         and exported.
5316         (__follow_path): New function.  Split out from nis_list.
5317         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
5318         _xdr_nis_result.
5319         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
5320         _xdr_nis_result.
5321         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
5322         and __follow_path.
5323         * nis/Versions: Export __prepare_niscall, __create_ib_request,
5324         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
5325         from libnsl for version GLIBC_PRIVATE.
5326         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
5327         Remove entry parameter from _nss_nisplus_parse_pwent and
5328         _nss_nisplus_parse_grent.
5329         * nis/nss_nisplus/nisplus-parser.c: Likewise.
5330         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
5331         again.  Rewrite getpwent handling to not use nis_first_entry and
5332         nis_next_entry.  Roll out own niscall handling.
5333         * nis/nss_nisplus/nisplus-grp.c: Likewise.
5335         * sunrpc/xdr_rec.c: Fix typo in comment.
5337 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
5339         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
5340         handling.
5342         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
5343         to allocate memory for my_pollfd.  Better initialization of
5344         cb_is_running.  Use TEMP_FAILURE_RETRY.
5346         * malloc/memusage.sh (memusageso): Add quotes.
5347         (memusagestat): Likewise.
5348         * debug/xtrace.sh (pcprofileso): Likewise.
5349         (pcprofiledump): Likewise.
5350         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
5351         replacement.
5352         * malloc/Makefile ($(objpfx)memusage): Likewise.
5354         * nis/nis_callback.c (__nis_create_callback): Calls to
5355         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
5356         asprintf call fails.
5358         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
5359         no uninitialized memory is passed to sendto.
5361 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
5363         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
5364         of snprintf+strdup.  Handle OOM.
5365         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
5366         cb->serv together.  Remove now obsolete free calls.
5367         (__nis_destroy_callback): Remove now obsolete free call.
5369 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
5371         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
5372         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
5373         and ULA respectively). Set precedence for IPv4 address to 10 as
5374         defined in RFC3484 for preferring IPv6.
5375         * posix/gai.conf: Update to match the new default tables.
5377 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
5379         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
5380         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
5381         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
5382         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
5384         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
5385         Removed.
5386         (init_nss_interface): Remove initialization of these variables.
5388 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
5390         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
5391         nis_free_directory forward to avoid duplication.
5393 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
5395         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
5396         rec_dirsearch returning NULL.
5397         (first_shoot): Handle __nis_finddirectory returning NULL.
5398         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
5400         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
5401         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
5403 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
5405         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
5406         pid changed.
5408 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
5410         * include/rpc/pmap_prot.h: Mark all functions as hidden.
5412         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
5413         * nscd/nscd_getgr_r.c: Likewise.
5415         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
5417         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
5418         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
5420         * stdlib/longlong.h (__clz_tab): Mark as hidden.
5422         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
5424         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
5426         * include/rpc/auth.h: Mark xdr_des_block_internal and
5427         xdr_opaque_auth_internal as hidden.
5429         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
5430         hidden.
5432         * include/rpc/xdr.h: Mark all _internal functions as hidden.
5434         * misc/getusershell.c (okshells): Don't use static initializers,
5435         do it dynamically.
5437         * stdlib/fmtmsg.c (keywords): Change type of len element to
5438         uint32_t to not waste space on 64bit machines.
5440         * locale/setlocale.c: Change _nl_category_names into a string.
5441         Add new _nl_category_name_idxs.  Change all users.
5442         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
5443         Declare _nl_category_name_idxs.
5444         * locale/findlocale.c: Adjust for _nl_category_names change.
5445         * locale/loadlocale.c: Likewise.
5446         * locale/newlocale.c: Likewise.
5447         * intl/dcigettext.c: Likewise.
5449         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
5450         (add_alias2): ...here.  New function.
5451         (__gconv_read_conf): Simplify builtin alias handling.
5452         (builtin_aliases): Convert to string to avoid relocations.
5453         * iconv/gconv_builtin.h: Add comment about correct formatting.
5455 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
5457         * resolv/res_debug.c (loc_ntoa): Make error const.
5459 2006-05-14  Andreas Schwab  <schwab@suse.de>
5461         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
5463 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
5465         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
5466         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
5467         sizeof (cpu_set_t).
5469 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
5471         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
5473         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
5475         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
5476         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
5478         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
5479         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
5481         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
5482         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
5483         xdr_cback_data.
5485         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
5486         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
5487         xdr_ypupdate_args.
5489         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
5490         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
5492         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
5493         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
5495         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
5496         * include/rpcsvc/nis_callback.h: New file.
5498         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
5499         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
5501         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
5502         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
5504         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
5505         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
5507         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
5508         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
5510         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
5511         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
5512         xdr_ypdelete_args.
5514         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
5515         __BEGIN_DECLS and __END_DECLS, the header is not installed.
5517         * nis/nis_error.c: Remove table of strings.  Use position
5518         independent mechanism.
5519         * nis/nis_error.h: New file.
5521 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
5523         * locale/programs/ld-time.c (time_finish): If wide era name or
5524         format aren't provided, set both wname and wformat to L"".
5526 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
5528         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
5529         results if the call was succesful.
5531         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
5533         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
5534         as hidden.
5536 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
5538         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
5540 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
5542         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
5543         caller makes sure this is not the case.
5544         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
5546 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
5548         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
5549         calls.
5551         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
5552         [Coverity CID 229, 230]
5554         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
5555         DGETTEXT calls.
5556         (hol_help): Likewise.  [Coverity CID 226, 227]
5558         * string/argz-replace.c (__argz_replace): Unconditionally call
5559         free on SRC.  [Coverity CID 225]
5561         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
5562         the return value of __nis_default_owner and __nis_default_group,
5563         it has been especially allocated.  [Coverity CID 224]
5565         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
5566         searchgroup and searchowner.  Significantly simplified.
5567         (__nis_default_owner): Remove duplication.  Do not locally copy the
5568         string before duplicating it.
5569         (__nis_default_group): Likewise.
5571         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
5572         we must clear the variable before calling __nisfind_server.
5574         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
5575         nis_getnames.  [Coverity CID 223]
5577         * locale/programs/locfile.c (locfile_read): Use alloca instead of
5578         xmalloc to allocate local repertoire name.  [Coverity CID 222]
5580         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
5581         allocate memory for the input to add_bytes.  [Coverity CID 221]
5583         * posix/wordexp.c (w_addword): Free word if realloc fails and it
5584         was allocated here.  [Coverity CID 219, 220]
5586         * posix/getconf.c (print_all): Free confstr data after printing.
5587         [Coverity CID 218]
5589         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
5590         list allocation fails.  [Coverity CID 215]
5592         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
5593         [Coverity CID 213]
5595         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
5596         string is NULL.  [Coverity CID 212]
5597         * argp/Makefile: Add rules to build and run bug-argp1.
5598         * argp/bug-argp1.c: New file.
5600         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
5601         end of string.
5602         * stdlib/canonicalize.c (__realpath): Likewise.
5604         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
5605         pointer.  [Coverity CID 206]
5607         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
5608         in statically linked code.
5609         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
5610         statically built code, be prepared to have no link map.
5611         [Coverity CID 205]
5613         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
5614         dgettext calls. [Coverity CID 204]
5616         * argp/argp-help.c (struct uparams): Remove valid member.  Change
5617         the one user.
5618         (uparam_names): Reduce size.  Avoid relative relocations.
5619         Moved to read-only segment.
5620         (fill_in_uparams): Update for new layout.
5622         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
5623         assumed to always be != NULL. [Coverity CID 202]
5625         * argp/argp-help.c (hol_entry_help): Remove some dead code
5626         [Coverity CID 200].
5628         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
5629         away a few more unconditional yperr2nss calls.
5630         (_nss_nis_getservbyname_r): Likewise.
5632 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
5634         * sysdeps/generic/ldsodefs.h: Remove support for non-core
5635         architectures.
5637         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
5638         that unused memory passed to sendto is nevertheless initialized.
5640         [BZ #2499]
5641         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
5642         possibly unaligned memory accesses.
5644         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
5645         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
5646         and __putlong respectively.  Correct buffer overflow check for
5647         NS_NOTIFY_OP.
5649         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
5651         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
5652         (send_dg): Rewrite error handling to be more compact and avoid
5653         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
5655         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
5657         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
5658         instead of ns_get16.
5659         (res_queriesmatch): Likewise.  Minor optimization.
5661         [BZ #2499]
5662         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
5663         __libc_res_nsend might reallocate the buffer for the answer.  In
5664         this case we have to reload the HP pointer.
5666 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
5668         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
5669         some branch prediction hints.
5671         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
5672         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5673         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5674         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
5675         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5676         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5677         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5678         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5680 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5682         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
5683         by a GOT relocation to make Scrt1.o position independent.
5684         * sysdeps/s390/s390-64/elf/start.S: Likewise.
5686         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
5687         six system call parameters.
5688         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
5690 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
5692         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
5693         malloc&bzero.
5695         * sunrpc/svc_udp.c (BZERO): Remove definition.
5696         (CALLOC): Define.
5697         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
5699         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
5700         (des_SPtrans): Use uint32_t type.
5701         (des_skb): Likewise.
5703         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
5705 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
5707         [BZ #2509]
5708         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
5709         on 32-bit arches.
5711 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
5713         * locale/programs/ld-address.c (address_finish): Fix one more
5714         place where the iso639 array might be accessed beyond the limits.
5716 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
5718         * nis/nis_table.c (nis_list): Avoid clearing res twice before
5719         filling it for the first time.
5721         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
5722         Adjust all callers.
5723         Free res object content before returning.
5725         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
5727         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
5728         client->cl_auth.
5730         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
5731         cleanup for initial thread, just the free call on TVP.
5733         * nscd/gai.c (__getline): Define.
5736 See ChangeLog.16 for earlier changes.